/* Curbstomp production view (features/curbstomp.js) — Curbstomp's hub, one to one.
   The rules below are Curbstomp's own (its hub page), class for class with a cs- prefix, same structure,
   spacing, sizes and font; only its colours are translated to Flowly's light palette (tokens.css):
   white panels, off-white canvas, hairline borders, Flowly blue where Curbstomp uses teal. Curbstomp's solid
   status colours stay. The 3D viewport stays dark, as in Curbstomp. */

body.page-cs .app-footer { display: none; }
main.app-main.cs-main { padding: 0; flex: 1; min-height: 0; }
.cs, .cs-pop, .cs-msug, .cs-lt-modal {
  /* from tokens.css, so the dark theme reaches the Curbstomp view and its pop-ups (appended to <body>) */
  --panel: var(--card); --panel2: var(--subtle); --line: var(--border-strong); --field: var(--card);
  --muted: var(--text-2); --accent: var(--blue); --accent-ink: #ffffff; --accent-soft: var(--blue-soft);
  --lock: light-dark(#b45309, #fbbf24); --saved: light-dark(#1d4ed8, #93c5fd); --hover: light-dark(#f0f0f3, #2c2c2e);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
}
.cs button, .cs input, .cs select, .cs textarea, .cs-pop button { font: inherit; }
.cs [hidden], .cs-pop [hidden] { display: none !important; }
.cs * { scrollbar-width: thin; scrollbar-color: light-dark(#d1d1d6, #414146) transparent; }
.cs { display: flex; flex-direction: column; height: calc(100dvh - var(--bar-h) - var(--safe-top)); background: var(--subtle); }

/* top bar */
.cs-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.cs-search { flex: 1 1 200px; max-width: 360px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--text); }
.cs-search:focus { outline: 2px solid var(--accent); border-color: transparent; }
.cs-spacer { flex: 1; }
.cs-user { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.cs-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; cursor: pointer; font-size: 13px; }
.cs-ghost:hover { color: var(--text); }
.cs-ghost svg { width: 16px; height: 16px; }
.cs-tree-btn { display: none; padding: 6px 8px; }
.cs-close { display: none; padding: 5px 7px; margin-left: 4px; }

/* three panes */
.cs-panes { --cs-left: 230px; --cs-right: 320px; flex: 1; display: grid; grid-template-columns: var(--cs-left) minmax(0, 1fr) var(--cs-right); min-height: 0; position: relative; }
/* drag handles on the inner edges of the side panes */
.cs-resize { position: absolute; top: 0; bottom: 0; width: 9px; margin-left: -4px; cursor: col-resize; z-index: 5; background: transparent; border: 0; padding: 0; touch-action: none; }
.cs-resize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; transition: background .15s; }
.cs-resize:hover::after, .cs-resize:focus-visible::after, .cs-resize.dragging::after { background: var(--accent); width: 2px; }
.cs-resize:focus-visible { outline: none; }
.cs-rs-left { left: var(--cs-left); }
.cs-rs-right { left: calc(100% - var(--cs-right)); }
body.cs-resizing { cursor: col-resize; user-select: none; }
.cs-side, .cs-detail { overflow-y: auto; background: var(--panel); overscroll-behavior: contain; }
.cs-side { border-right: 1px solid var(--line); padding: 10px 8px 20px; }
.cs-detail { border-left: 1px solid var(--line); padding: 18px; }
.cs-center { overflow-y: auto; padding: 18px; min-width: 0; }
.cs-scrim { display: none; }

/* left: the character tree */
.cs-side h3 { margin: 14px 8px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cs-side h4 { margin: 8px 8px 2px 14px; font-size: 13px; font-weight: 600; }
.cs-fold { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; cursor: pointer; border-radius: 4px; }
.cs-fold:hover { color: var(--text); }
.cs-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .12s; flex: none; }
.cs-fold[aria-expanded="false"] .cs-caret { transform: rotate(-90deg); }
.cs-char { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.cs-char.sub { padding-left: 22px; }
/* nesting: whatever sits under a parent is indented one step (Felix, 2026-11-10) */
.cs-nest { padding-left: 12px; }
.cs-nest > h3 { margin-left: 8px; }
.cs-char:hover { background: var(--hover); }
.cs-char[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cs-char-name { min-width: 0; overflow-wrap: anywhere; }
.cs-n { margin-left: auto; font-size: 12px; color: var(--muted); }
.cs-char[aria-current="true"] .cs-n { color: var(--accent-ink); }
.cs-char:focus-visible { outline: 2px solid var(--accent); }

/* middle: the cards */
.cs-grid-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.cs-grid-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0; }
.cs-grid-head span { color: var(--muted); font-size: 13px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cs-card { position: relative; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.cs-card:hover { border-color: light-dark(#d1d1d6, #414146); }
.cs-card[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cs-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-thumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: linear-gradient(light-dark(#f7f7f9, #212124), light-dark(#efeff2, #27272b) 60%, light-dark(#e9e9ee, #2e2e35)); display: grid; place-items: center; color: #c7c7cc; }
.cs-thumb video { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.cs-card b { font-size: 13px; font-weight: 600; padding: 0 2px; overflow-wrap: anywhere; }
.cs-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 0 2px 2px; }
.cs-tags + .cs-tags { margin-top: -4px; }
.cs-tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.cs-tag.saved { color: var(--saved); border-color: light-dark(#bfdbfe, #1e3c62); }
.cs-tag.lock { color: var(--lock); border-color: #fde68a; }
.cs-tag.due.soon { color: light-dark(#b45309, #f7aa6f); border-color: #fde68a; }
.cs-tag.due.late { color: light-dark(#be123c, #f16789); border-color: light-dark(#fecdd3, #561a22); font-weight: 600; }
.cs-empty { color: var(--muted); padding: 40px 0; text-align: center; grid-column: 1 / -1; }

/* status + assigned */
.cs-st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: light-dark(#101114, #f0f1f3); letter-spacing: .02em; background: light-dark(#8b8d93, #7b7d84); }
.cs-st-WFA { background: #a78bfa; } .cs-st-Temp { background: light-dark(#8b8d93, #7b7d84); } .cs-st-RTK { background: #ff5a5a; }
.cs-st-Done { background: #4ade80; } .cs-st-WIP { background: #facc15; }
button.cs-st { border: 0; cursor: pointer; font-family: inherit; }
button.cs-st:hover { filter: brightness(1.06); }
.cs-names { border: 0; background: transparent; color: var(--text); cursor: pointer; font-weight: 600; font-size: 11px; line-height: 1.3; padding: 2px 4px; border-radius: 5px; text-align: left; }
.cs-names:hover { background-color: var(--hover); }
.cs-names.none { color: var(--muted); font-weight: 500; }
.cs-names:not(.none) { border: 1px solid light-dark(#c7c7cc, #49494f); border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.cs-names:not(.none):hover { border-color: var(--muted); background: transparent; }
button.cs-st:focus-visible, .cs-names:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* one small menu (status / assignees / bell) */
.cs-pop { position: fixed; z-index: 60; min-width: 140px; max-height: 300px; overflow-y: auto; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.cs-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font-size: 13px; line-height: 1.2; cursor: pointer; text-align: left; }
.cs-pop button:hover, .cs-pop button:focus-visible { background: var(--hover); outline: none; }
.cs-pop-note { padding: 6px 8px; font-size: 12px; color: var(--muted); }
.cs-sw2 { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cs-ck { width: 14px; text-align: center; color: var(--accent); flex: none; }

/* right: the clip */
.cs-detail h2 { margin: 0 0 4px; font-size: 18px; overflow-wrap: anywhere; }
.cs-detail h3 { margin: 22px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cs-phead { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.cs-ptitle { margin: 0; flex: 1; min-width: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cs-ptitle span { color: var(--muted); font-weight: 500; }
.cs-cmpbtn { margin: 0; flex: none; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 6px 12px; font-weight: 600; font-size: 12px; line-height: 1; cursor: pointer; }
.cs-cmpbtn:hover { border-color: var(--accent); color: var(--accent); }
.cs-track { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; margin: 0 0 12px; font-size: 12px; }
.cs-track > span { color: var(--muted); }
.cs-stone { display: flex; align-items: center; }
/* a status pill that opens the status menu (clip panel, comment composer): the current status only */
.cs-st.cs-dd { display: inline-flex; align-items: center; padding: 3px 10px; line-height: 1.3; }
.cs-st.none { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.cs-people { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.cs-person { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; }
.cs-person button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 13px; line-height: 1; }
.cs-person button:hover { color: var(--text); }
/* Flowly's end date: one compact row in Curbstomp's .track language */
.cs-date { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.cs-date input { background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 99px; font-size: 12px; padding: 1px 8px; height: 24px; }
.cs-date input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.cs-type { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--tt) 35%, var(--card)); background: color-mix(in srgb, var(--tt) 12%, var(--card)); color: color-mix(in srgb, var(--tt) 75%, light-dark(black, #f5f5f5)); font-size: 12px; font-weight: 600; cursor: pointer; }
.cs-type .cs-sw2 { background: var(--tt); }
.cs-type:hover { border-color: var(--tt); }
.cs-type:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cs-type.none { background: transparent; border-color: var(--line); color: var(--muted); font-weight: 500; }
.cs-type.none .cs-sw2 { background: transparent; box-shadow: inset 0 0 0 1.5px #c7c7cc; }
.cs-q { border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.cs-q:hover { color: var(--accent); border-color: var(--accent); }
/* Flowly's hours: one Kitsu-style slider (your hours on this clip for the day) */
.cs-hours-label { align-self: start; padding-top: 8px; color: var(--muted); }
.cs-hours { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cs-hours-num { min-width: 26px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.cs-hours-num.zero { color: var(--muted); font-weight: 600; }
.cs-hours-track { flex: 1; min-width: 80px; display: flex; flex-direction: column; padding-top: 12px; }
.cs-hours-range { --fill: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill)); }
.cs-hours-range:disabled { opacity: .5; cursor: default; }
.cs-hours-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform .12s; }
.cs-hours-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.cs-hours-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.cs-hours-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cs-hours-scale { position: relative; height: 11px; margin-top: 7px; font-size: 9px; line-height: 11px; color: var(--muted); opacity: .7; pointer-events: none; }
/* each number sits under the knob's CENTRE at that value (the knob is 14 px: it travels from 7 px to 100% − 7 px) */
.cs-hours-scale span { position: absolute; top: 0; left: calc(7px + (100% - 14px) * var(--at)); transform: translateX(-50%); }
.cs-due { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.cs-due svg { width: 11px; height: 11px; }
.cs-due.soon { color: light-dark(#b45309, #f7aa6f); font-weight: 600; }
.cs-due.late { color: light-dark(#be123c, #f16789); font-weight: 700; }
.cs-hint { color: var(--muted); font-size: 13px; }
.cs-lockline { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: light-dark(#fffbeb, #3d3412); color: var(--lock); font-size: 13px; }

/* versions */
.cs-hist { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.cs-hist li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.cs-hist li.has { cursor: pointer; }
.cs-hist-who { color: var(--muted); font-size: 12px; }
.cs-rn { font: 700 11px/1 ui-monospace, Menlo, Consolas, monospace; padding: 4px 6px; border-radius: 5px; background: var(--panel2); color: var(--text); flex: none; }
.cs-rn.vid::after { content: " ▶"; font-size: 9px; }
.cs-hist li.orig .cs-rn { background: var(--pill-bg); color: var(--muted); }
.cs-hist li.has:hover .cs-rn, .cs-hist li.cur .cs-rn { color: var(--accent-ink); background: var(--accent); }

/* which version is playing, marked on the view */
.cs-vbadge { position: absolute; top: 8px; left: 8px; z-index: 3; pointer-events: none; font-weight: 700; font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); color: #fff; }
.cs-vbadge.rev { background: var(--accent); color: var(--accent-ink); }

/* the review player (the viewport stays dark, as in Curbstomp) */
.cs-player { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; margin: 0 0 8px; background: linear-gradient(#2a2b30, #222327 60%, #1c1d21); display: grid; place-items: center; color: light-dark(#4a4c53, #c1c2c7); }
.cs-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cs-player > canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; z-index: 1; }
.cs-player.pen > canvas { cursor: crosshair; }
.cs-player.erase > canvas { cursor: cell; }
.cs-three { position: absolute; inset: 0; }
.cs-three canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.cs-player .cs-three { display: none; }
.cs-player.td .cs-three { display: block; }
.cs-player.td video, .cs-player.td > canvas { visibility: hidden; }
.cs-player.td.pen .cs-three canvas { cursor: crosshair; }
.cs-player.td.erase .cs-three canvas { cursor: cell; }
.cs-tdnote { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 11px; color: light-dark(#8b8d93, #909298); pointer-events: none; }
.cs-tdnote.err { color: #ffb4b4; }
/* frame strip: one square per frame */
.cs-strip { display: flex; gap: 1px; height: 16px; margin: 0; padding: 2px; background: var(--panel2); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; cursor: pointer; touch-action: none; user-select: none; }
.cs-strip i { flex: 1 1 0; min-width: 1px; background: light-dark(#dcdce1, #37373c); border-radius: 1px; position: relative; }
.cs-strip i:hover { background: light-dark(#c7c7cc, #49494f); }
.cs-strip i.c { background: light-dark(#bfdbfe, #1e3c62); }
.cs-strip i.c::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--saved); }
.cs-strip i.a, .cs-strip i.d { background: light-dark(#fecdd3, #561a22); }
.cs-strip i.a::after, .cs-strip i.d::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: #f43f5e; }
.cs-strip i.on { background: var(--accent); }
.cs-strip:focus-visible { outline: 2px solid var(--accent); }
/* one slim bar under the strip */
.cs-bar { display: flex; align-items: center; gap: 2px; padding: 3px 4px; margin: 0 0 14px; background: var(--panel2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.cs-fr { font: 11px/1 ui-monospace, Menlo, Consolas, monospace; padding: 0 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-sep { flex: 1; }
.cs-bar-sep { width: 4px; }
.cs-ic { display: inline-grid; place-items: center; width: 26px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 11px; line-height: 1; }
.cs-ic svg, .cs-ic .cs-dot { pointer-events: none; }
.cs-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cs-ic:hover { color: var(--text); background: light-dark(#e8e8ed, #2f2f36); }
.cs-ic[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.cs-ic:focus-visible { outline: 2px solid var(--accent); }
.cs-ic:disabled { opacity: .35; cursor: default; background: transparent; }
.cs-ic.wide { width: auto; padding: 0 6px; }
.cs-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--panel2); box-shadow: 0 0 0 1px #8b8d93; }
.cs-review.full { position: fixed; inset: 0; z-index: 49; background: #000; display: flex; flex-direction: column; }
.cs-review.full .cs-player { position: relative; inset: auto; flex: 1; aspect-ratio: auto; border-radius: 0; margin: 0; background: #000; }
.cs-review.full .cs-strip { border-radius: 0; border: 0; }
.cs-review.full .cs-bar { border-radius: 0; margin: 0; border: 0; }

/* side-by-side compare, in the clip panel (full screen on request) */
.cs-cmpin { margin: 0 0 14px; }
.cs-cmpin .cs-sel { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cs-cmpin select { background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font-size: 12px; }
.cs-cmpin .cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #000; border-radius: 10px 10px 0 0; overflow: hidden; }
.cs-cmpin .cs-two > div { position: relative; aspect-ratio: 1; }
.cs-cmpin .cs-vbadge { font-size: 13px; }
.cs-cmpin .cs-strip { border-radius: 0; }
.cs-cmpin.full { position: fixed; inset: 0; z-index: 55; margin: 0; background: #0b0c0e; display: flex; flex-direction: column; }
.cs-cmpin.full .cs-sel { padding: 10px 14px; margin: 0; }
.cs-cmpin.full .cs-two { flex: 1; border-radius: 0; min-height: 0; }
.cs-cmpin.full .cs-two > div { aspect-ratio: auto; }
.cs-cmpin.full .cs-bar { margin: 0; border-radius: 0; }

/* comments */
.cs-comments { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 8px; }
.cs-comments li { padding: 10px 12px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line); }
.cs-comments li.cs-hint { background: transparent; border: 0; padding: 0; }
.cs-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.cs-meta b { font-weight: 600; }
.cs-meta time { margin-left: auto; color: var(--muted); font-size: 11px; }
.cs-av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 10px; font-weight: 700; color: light-dark(#15170d, #dfe3ce); text-transform: uppercase; }
.cs-chip { font: 11px/1 ui-monospace, Menlo, Consolas, monospace; padding: 3px 6px; border-radius: 5px; cursor: pointer; border: 1px solid light-dark(#c7d2fe, #1c285b); color: light-dark(#4338ca, #857edd); background: transparent; margin-right: 6px; }
.cs-chip.drawn::after { content: " ✎"; }
.cs-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 2px; line-height: 1; }
.cs-del:hover { color: var(--text); }
.cs-comments li > p { margin: 0; padding-left: 30px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-comments li.other { opacity: .55; }
.cs-comments li.other:hover { opacity: .85; }
.cs-cst { font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 8px; border-radius: 99px; color: light-dark(#101114, #f0f1f3); }
.cs-mention { color: var(--accent); font-weight: 600; }
.cs-mention.me { background: var(--accent-soft); border-radius: 4px; padding: 0 3px; }
.cs-cform { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); }
.cs-cform textarea { display: block; width: 100%; min-height: 52px; resize: vertical; padding: 10px 12px; border: 0; border-radius: 9px 9px 0 0; background: transparent; color: var(--text); }
.cs-cform textarea:focus { outline: none; box-shadow: none; }
.cs-cform:focus-within { border-color: light-dark(#c7c7cc, #49494f); }
.cs-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--line); }
.cs-tagf { font: 11px/1 ui-monospace, Menlo, Consolas, monospace; padding: 5px 7px; border-radius: 5px; cursor: pointer; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.cs-tagf[aria-pressed="true"] { border-color: light-dark(#c7d2fe, #1c285b); color: light-dark(#4338ca, #857edd); }
.cs-cpick { margin-left: auto; }
/* @ in a comment: a list of the production's people with their faces, floating by the box (like Kitsu) */
.cs-msug { position: fixed; z-index: 1000; min-width: 200px; max-width: 280px; max-height: 196px; overflow-y: auto; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.cs-msug button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; color: var(--text); border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.cs-msug button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-msug button.on { background: var(--accent); color: var(--accent-ink); }
.cs-post { margin-left: auto; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 7px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: 13px; }
.cs-cpick + .cs-post { margin-left: 0; }
.cs-post:disabled { opacity: .5; cursor: default; }

/* connect + messages (before the hub opens) */
.cs-center-msg { display: grid; place-items: center; min-height: calc(100dvh - var(--bar-h) - 80px); padding: 24px; }
.cs-connect { max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-connect h2 { font-size: 20px; font-weight: 650; }
.cs-connect p { font-size: 14px; color: var(--text-2); }
.cs-connect-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.cs-connect-mark svg { width: 26px; height: 26px; }
.cs-connect-wait { font-size: 13px; color: var(--text-2); }

/* narrower: the clip panel slides over the cards (with a close button); on phones the tree slides in too */
@media (max-width: 1280px) {
  .cs-panes { grid-template-columns: var(--cs-left) minmax(0, 1fr); }
  .cs-rs-right { display: none; }
  .cs-close { display: inline-grid; place-items: center; }
  .cs-detail { position: fixed; top: calc(var(--bar-h) + var(--safe-top)); right: 0; bottom: 0; width: min(420px, 100%); z-index: 36; box-shadow: -10px 0 32px rgba(0, 0, 0, 0.12); transform: translateX(105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  body.cs-detail-open .cs-detail { transform: none; }
  body.cs-detail-open .cs-scrim { display: block; position: fixed; inset: calc(var(--bar-h) + var(--safe-top)) 0 0; z-index: 35; background: light-dark(rgba(0, 0, 0, 0.14), rgba(255, 255, 255, 0.23)); }
}
@media (max-width: 760px) {
  .cs-panes { grid-template-columns: minmax(0, 1fr); }
  .cs-rs-left { display: none; }
  .cs-tree-btn { display: inline-grid; place-items: center; }
  .cs-side { position: fixed; top: calc(var(--bar-h) + var(--safe-top)); left: 0; bottom: 0; width: min(280px, 86%); z-index: 36; box-shadow: 10px 0 32px rgba(0, 0, 0, 0.12); transform: translateX(-105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  body.cs-tree-open .cs-side { transform: none; }
  body.cs-tree-open .cs-scrim { display: block; position: fixed; inset: calc(var(--bar-h) + var(--safe-top)) 0 0; z-index: 35; background: light-dark(rgba(0, 0, 0, 0.14), rgba(255, 255, 255, 0.23)); }
  .cs-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cs-center { padding: 14px; }
  .cs-search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .cs-detail, .cs-side { transition: none; } }

/* Flowly's own folders and assets in the side menu (Flowly only): a quiet "+" on hover, names typed in place */
.cs-fl-row { position: relative; }
.cs-fl-row > .cs-char { padding-right: 30px; }
.cs-fl-more { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; }
.cs-fl-row:hover > .cs-fl-more, .cs-fl-more:focus-visible, .cs-fl-more[aria-expanded="true"] { opacity: 1; }
.cs-fl-more:hover { background: var(--hover); color: var(--text); }
.cs-fl-row > .cs-char[aria-current="true"] + .cs-fl-more { color: var(--accent-ink); }
h3.cs-fl-row .cs-fl-more { right: 0; }
@media (hover: none) { .cs-fl-more { opacity: .6; } }
.cs-fl-input { display: block; box-sizing: border-box; width: calc(100% - 8px); margin: 4px; height: 28px; padding: 0 8px; border: 1px solid var(--accent); border-radius: 6px; background: var(--field); color: var(--text); font-size: 13px; outline: none; }
.cs-thumb.fl svg { width: 30px; height: 30px; }
.cs-head-act { margin-left: auto; align-self: center; display: flex; align-items: center; }
.cs-head-act .cs-fl-input { width: 200px; margin: 0; }
.cs-phead .cs-fl-input { flex: 1; margin: 0; }

/* Budget (features/budget.js): four quiet tiles, then one card per payment period (newest first), each a light sheet */
.bud-actions { display: flex; gap: 8px; align-items: center; }
.bud-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 22px; }
.bud-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); min-width: 0; }
.bud-tile-l { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.bud-tile-v { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bud-tile-v small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.bud-tile-s { font-size: 12.5px; color: var(--text-2); }
.bud-set { color: var(--blue); font-weight: 500; }
@media (max-width: 900px) { .bud-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bud-period { margin: 0 0 16px; padding: 0; overflow: hidden; border-radius: 16px; }
.bud-period.current { border-color: rgba(0, 113, 227, .28); box-shadow: 0 0 0 3px rgba(0, 113, 227, .06), 0 6px 24px -14px rgba(0, 0, 0, .18); }
.bud-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 14px; flex-wrap: wrap; }
.bud-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.bud-head h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.bud-status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--pill-bg); color: var(--text-2); }
.bud-status.live { background: light-dark(#e8f1fd, #16273d); color: light-dark(#0b5cb8, #6cadf6); }
.bud-status.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.bud-status.late { background: light-dark(#fdecec, #391616); color: light-dark(#c0362c, #dc6d65); }
.bud-due { font-size: 12.5px; color: var(--text-3); }
.bud-figs { display: flex; align-items: baseline; gap: 16px; font-variant-numeric: tabular-nums; }
.bud-figs span { font-size: 13px; color: var(--text-2); }
.bud-figs b { font-size: 15px; font-weight: 600; color: var(--text); }
.bud-figs .bud-amt { font-size: 18px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }

.bud-scroll { overflow-x: auto; border-top: 1px solid var(--border); }
.bud-sheet { border-collapse: collapse; width: 100%; min-width: calc(420px + var(--days, 14) * 36px); table-layout: fixed; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bud-sheet col.c-item { width: 26%; } .bud-sheet col.c-person { width: 10%; } .bud-sheet col.c-num { width: 72px; } .bud-sheet col.c-amt { width: 104px; }
.bud-sheet th, .bud-sheet td { padding: 0 8px; height: 38px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.bud-sheet thead th { height: 44px; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: left; background: light-dark(#fafafc, #1e1e21); }
.bud-sheet .bud-item { position: sticky; left: 0; z-index: 1; background: var(--card); overflow: hidden; text-overflow: ellipsis; padding-left: 20px; }
.bud-sheet thead .bud-item, .bud-sheet tfoot .bud-item { background: light-dark(#fafafc, #1e1e21); }
.bud-name { font-size: 13px; } .bud-path { color: var(--text-3); } .bud-name b { font-weight: 550; color: var(--text); }
.bud-sheet .bud-person { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.bud-sheet .bud-day { padding: 0; text-align: center; text-transform: none; letter-spacing: 0; line-height: 1.15; }
.bud-sheet .bud-day span { display: block; font-size: 10px; font-weight: 500; color: var(--text-3); }
.bud-sheet .bud-day b { display: inline-grid; place-items: center; min-width: 22px; height: 20px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.bud-sheet .bud-day.today b { background: var(--blue); color: #fff; }
.bud-sheet .bud-cell { padding: 0; text-align: center; color: var(--text-2); }
.bud-sheet .we { background: light-dark(rgba(0, 0, 0, .018), rgba(255, 255, 255, 0.05)); }
.bud-sheet .today { background: rgba(0, 113, 227, .045); }
.bud-sheet .wk { box-shadow: inset 1px 0 0 var(--border-strong); }
.bud-h { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 8px; background: light-dark(#e8f1fd, #16273d); color: light-dark(#0b5cb8, #6cadf6); font-weight: 600; }
.bud-sheet .bud-num { text-align: right; padding-right: 20px; color: var(--text); }
.bud-sheet .bud-num.amt { font-weight: 600; }
.bud-sheet tbody tr:hover td { background: light-dark(rgba(0, 0, 0, .015), rgba(255, 255, 255, 0.04)); }
.bud-sheet tbody tr:hover .bud-item { background: light-dark(#fcfcfd, #1d1d20); }
.bud-sheet tfoot td { height: 42px; border-bottom: 0; font-weight: 650; color: var(--text); background: light-dark(#fafafc, #1e1e21); }
.bud-sheet tfoot .bud-cell { color: var(--text-2); font-weight: 600; }
.bud-settings { padding: 18px 20px; max-width: 640px; }
.bud-settings h2 { margin: 0 0 12px; font-size: 16px; }
.bud-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.bud-label { color: var(--text-2); font-size: 13px; }
.bud-control { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bud-pills { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.bud-pills button { border: 1px solid var(--border-strong); background: var(--card); color: var(--text-2); border-radius: 99px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.bud-pills button[aria-checked="true"] { background: var(--blue-700, #0071e3); border-color: transparent; color: #fff; }
.bud-input { height: 32px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; background: var(--card); }
.bud-money { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.bud-money .bud-input { width: 110px; }
.bud-unit { color: var(--text-2); font-size: 13px; }
@media (max-width: 640px) { .bud-row { grid-template-columns: 1fr; gap: 6px; } }
.cs-side-top { display: flex; justify-content: flex-end; align-items: center; min-height: 24px; margin: -4px 0 -6px; }
.cs-side-top .cs-fl-input { margin: 0 0 8px; width: 100%; }
.cs-fl-top-add { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.cs-fl-top-add:hover { color: var(--accent); border-color: var(--accent); }
/* drag to reorder / re-parent: a line above / below, or the row highlighted for "inside" */
[draggable="true"].dragging { opacity: .45; }
.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.drop-inside { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 6px; }
.cs-card.drop-before { box-shadow: -3px 0 0 var(--accent); }
.cs-card.drop-after { box-shadow: 3px 0 0 var(--accent); }
/* Kitsu profile photos next to Curbstomp names (data/people-match.js) */
.cs-who { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.cs-who + .cs-who { margin-left: 8px; }
.cs-names:not(.none) { display: inline-flex; align-items: center; padding: 1px 8px 1px 2px; }
.cs-person { padding-left: 2px; gap: 5px; }
.cs-pop .sk-avatar, .cs-person .sk-avatar, .cs-who .sk-avatar { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
/* hours: the week strip (pick a day; its hours under the date) above the slider */
.cs-hours-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cs-week-row { display: flex; align-items: stretch; gap: 2px; }
.cs-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; flex: 1; min-width: 0; }
.cs-week-nav { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; border-radius: 6px; cursor: pointer; }
.cs-week-nav:hover:not(:disabled) { color: var(--text); background: var(--hover); }
.cs-week-nav:disabled { opacity: .3; cursor: default; }
.cs-day { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 3px 0 2px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; line-height: 1.15; min-width: 0; }
.cs-day:hover { background: var(--hover); }
.cs-day-w { font-size: 9px; text-transform: uppercase; }
.cs-day-n { font-size: 12px; font-weight: 600; color: var(--text); }
.cs-day-h { font-size: 10px; height: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.cs-day.today .cs-day-w { color: var(--accent); font-weight: 700; }
.cs-day[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cs-day:focus-visible { outline: 2px solid var(--accent); }
/* an asset straight in a section (side menu) */
.cs-fl-asset { gap: 8px; }
.cs-fl-asset-ic { width: 15px; height: 15px; flex: none; color: var(--text-2); }
.cs-fl-asset[aria-current="true"] .cs-fl-asset-ic { color: inherit; }
/* Log Time (features/curbstomp.js timeLog / openLogTime): a big button; the logs are comments (a clock badge) */
.cs-logtime-box { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.cs-logtime { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transition: filter .12s, transform .06s; }
.cs-logtime:hover { filter: brightness(1.06); }
.cs-logtime:active { transform: translateY(1px); }
.cs-logtime:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-logtime svg { width: 16px; height: 16px; }
.cs-tlog:empty { display: none; }
.cs-comments li > p.cs-tlog-none { color: var(--muted); font-style: italic; }
/* comment types, shown after the name: a revision ("R5 ▶", like the versions list) or a time log (clock + hours) */
.cs-rtag, .cs-ttag { display: inline-flex; align-items: center; gap: 4px; font: 700 11px/1 ui-monospace, Menlo, Consolas, monospace; padding: 4px 6px; border-radius: 5px; border: 0; }
.cs-rtag { background: var(--accent); color: var(--accent-ink); cursor: default; }
.cs-rtag::after { content: "▶"; font-size: 9px; }
.cs-comments li.other .cs-rtag { background: var(--pill-bg); color: var(--text); cursor: pointer; }
.cs-comments li.other .cs-rtag:hover { background: var(--accent); color: var(--accent-ink); }
.cs-ttag { background: var(--blue-soft); color: light-dark(#0b5cb8, #6cadf6); font-variant-numeric: tabular-nums; }
.cs-ttag svg { width: 12px; height: 12px; }
.modal.cs-lt-modal { width: min(460px, calc(100vw - 32px)); }
.cs-lt { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 18px; }
.cs-lt-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.cs-lt-head p { margin: 2px 0 6px; color: var(--muted); font-size: 13px; }
.cs-lt-label { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cs-lt .cs-hours-num { min-width: 44px; }
.cs-lt-already { margin: 0; min-height: 0; font-size: 12px; color: var(--muted); }
.cs-lt-already:empty { display: none; }
.cs-lt-note { width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; color: var(--text); background: var(--card); }
.cs-lt-note:focus { outline: none; border-color: rgba(0, 113, 227, .5); box-shadow: 0 0 0 3px rgba(0, 113, 227, .12); }
.cs-lt-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.cs-lt-actions .cs-lt-delete { margin-right: auto; color: var(--rose-700, #be123c); }
.cs-ttag.edit { cursor: pointer; transition: background .15s, color .15s; }
.cs-ttag.edit:hover, .cs-ttag.edit:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }

/* a saved version in the comment feed: the same card, highlighted; click plays it, the playing one has a blue edge */
.cs-comments li.cs-ver { background: var(--accent-soft); border-color: light-dark(#cfe1fb, #1e3453); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cs-comments li.cs-ver:hover { border-color: var(--accent); }
.cs-comments li.cs-ver:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cs-comments li.cs-ver.cur { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); cursor: default; }
.cs-comments li.cs-ver .cs-rn { min-width: 22px; text-align: center; background: var(--card); color: var(--accent); border: 1px solid light-dark(#cfe1fb, #1e3453); }
.cs-comments li.cs-ver.cur .cs-rn, .cs-comments li.cs-ver:hover .cs-rn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cs-comments li.cs-ver.orig { background: var(--panel2); border-color: var(--line); }
.cs-comments li.cs-ver.orig .cs-rn { color: var(--muted); border-color: var(--line); }

/* Native mode (a production moved out of Kitsu): Flowly's own comments under the task's facts */
.cs-nabout { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; }
.cs-nhead { margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cs-ncomments { display: grid; gap: 10px; }
.cs-ncompose { display: grid; gap: 6px; }
.cs-ncompose textarea.cs-fl-input { width: 100%; height: auto; margin: 0; padding: 6px 8px; border-color: var(--line); resize: vertical; min-height: 54px; font: inherit; }
.cs-ncompose textarea.cs-fl-input:focus { border-color: var(--accent); }
.cs-ncompose-row { display: flex; align-items: center; gap: 8px; }
.cs-ncompose-row .cs-spacer { flex: 1; }
/* right-click menus: Delete reads as destructive */
.cs-pop button.cs-danger { color: light-dark(#c62828, #df6161); }
.cs-pop button.cs-danger:hover, .cs-pop button.cs-danger:focus-visible { background: light-dark(#fdecea, #3b1a16); }
/* card pictures (Flowly-owned; a production moved out of Kitsu brings Kitsu's small thumbnails) */
.cs-thumb.fl.pic { background: light-dark(#f1f1f4, #27272d); }
.cs-thumb.fl.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the folder icon before every folder's name in the side menu */
.cs-ficon { width: 15px; height: 15px; flex: none; stroke-width: 1.6; color: var(--muted); margin-right: 7px; vertical-align: -3px; }
.cs-char[aria-current="true"] .cs-ficon { color: currentColor; opacity: .9; }
.cs-fold .cs-ficon { margin-left: 4px; margin-right: 6px; width: 13px; height: 13px; }

/* a task panel (moved production): the asset's department tasks as tabs under its name */
.cs-ttabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cs-ttabs button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 99px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.cs-ttabs button:hover { background: var(--hover); color: var(--text); }
.cs-ttabs button.on { background: var(--accent-soft); border-color: light-dark(#cfe1fb, #1e3453); color: var(--accent); }
.cs-ttabs .cs-sw2 { width: 8px; height: 8px; }

/* an asset card (moved production): one rounded pill per task — status dot, task, who is on it */
.cs-tpills { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.cs-tpill { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font-size: 11px; text-align: left; cursor: pointer; }
.cs-tpill:hover { border-color: var(--accent); }
.cs-tpill .cs-sw2 { width: 8px; height: 8px; }
.cs-tpill-name { font-weight: 600; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the face is never cut: the task name and the first name give way first (Felix, 2026-11-12: "why are the icons cropped?") */
.cs-tpill-who { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; flex: none; color: var(--muted); white-space: nowrap; }
.cs-tpill-who + .cs-tpill-who { margin-left: 4px; }
/* asset cards: just the faces, a little overlapped like an avatar stack; the name is on hover */
.cs-tpill-who.face-only + .cs-tpill-who.face-only { margin-left: -4px; }
.cs-tpill-who.face-only > * { box-shadow: 0 0 0 1.5px var(--panel, #fff); border-radius: 50%; }
.cs-tpill-none { margin-left: auto; color: var(--muted); font-style: italic; }

/* the side tree reads as nested folders: a fold arrow per folder that holds folders, children indented under a guide line */
.cs-fl-row { display: flex; align-items: center; }
.cs-fl-row > .cs-char { flex: 1; min-width: 0; padding-left: 8px; }
.cs-twist.none .cs-chev { color: var(--muted); }
/* the fold toggle (the ONLY thing that folds): the folder icon in a small frame — open folder = open, shut folder = folded */
.cs-twist { all: unset; box-sizing: border-box; width: 24px; height: 24px; flex: none; display: grid; place-items: center; color: var(--muted); cursor: pointer; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface, #fff); box-shadow: 0 1px 1px rgba(0,0,0,.04); transition: background .12s, color .12s, border-color .12s; }
.cs-twist .cs-chev { width: 14px; height: 14px; }
.cs-twist[aria-expanded="true"] { color: var(--text); }
.cs-twist[aria-expanded="false"] { background: var(--hover); }
.cs-twist:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.cs-twist:focus-visible { outline: 2px solid var(--accent); }
.cs-twist.none { cursor: default; border: 0; background: none; box-shadow: none; }
/* a section header: arrow + the section's name, which opens it */
h3.cs-sec-row { display: flex; align-items: center; gap: 0; margin-left: 0; }
.cs-sec-pick { flex: 1; min-width: 0; padding: 4px 6px 4px 8px; border-radius: 6px; align-items: flex-start; }
.cs-sec-pick .cs-ficon { flex: none; margin-top: 1px; }
.cs-sec-pick .cs-ficon { margin: 0 6px 0 0; }
.cs-sec-pick:hover { background: var(--hover); }
.cs-sec-pick[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
.cs-sec-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.cs-tree-kids { margin-left: 11px; padding-left: 6px; border-left: 1px solid var(--line); }
.cs-tree-kids:empty { display: none; }

/* a task's review media (moved production): versions, the picture / movie on a dark stage, its pages */
/* the task panel's viewer, in the playlist player's look (Felix, 2026-11-11): a white card, the dark stage, white controls */
.cs-rv { margin: 4px 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(15, 20, 35, .06); overflow: hidden; color: var(--text); }
.cs-rv[hidden] { display: none; }
.cs-rv-head { display: flex; align-items: center; gap: 8px; padding: 7px 8px; font-size: 12px; border-bottom: 1px solid var(--border-strong); }
.cs-rv-ver { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 10px; border: 0; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.cs-rv-ver .cs-caret { color: #fff; }
.cs-rv-when { color: var(--text-2); font-size: 11px; }
.cs-pop .cs-rv-when { color: var(--muted); margin-left: 6px; }
.cs-rv-pages { display: inline-flex; align-items: center; gap: 4px; color: light-dark(#5f6168, #b1b3b8); font-variant-numeric: tabular-nums; }
.cs-rv .cs-ic { color: light-dark(#5f6168, #b1b3b8); background: transparent; border: 0; cursor: pointer; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 16px; }
.cs-rv .cs-ic:hover:not(:disabled) { background: light-dark(#eeeff2, #292b30); color: var(--text); }
.cs-rv .cs-ic:disabled { opacity: .35; cursor: default; }
.cs-rv .cs-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cs-rv-stage { aspect-ratio: 16 / 9; border-radius: 0; background: #17181c; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.cs-rv-stage img, .cs-rv-stage video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.cs-rv-stage:fullscreen { aspect-ratio: auto; border-radius: 0; }
.cs-rv-strip { display: flex; gap: 6px; padding: 8px; overflow-x: auto; border-top: 1px solid var(--border-strong); }
.cs-rv-ctl[hidden] { display: none; }
.cs-rv-ctl { background: var(--card); border-top: 1px solid var(--border-strong); }
.cs-rv-ctl .cs-strip { height: 22px; padding: 5px 10px 3px; gap: 1px; background: transparent; border: 0; border-radius: 0; }
.cs-rv-ctl .cs-strip i { background: light-dark(#e3e4e9, #34353b); border-radius: 1.5px; }
.cs-rv-ctl .cs-strip i:hover { background: light-dark(#cfd0d6, #414247); }
.cs-rv-ctl .cs-strip i.on { background: #2f8cff; box-shadow: 0 0 0 1px rgba(47, 140, 255, .5); }
.cs-rv-ctl .cs-bar { margin: 0; padding: 4px 8px 6px; background: transparent; border: 0; border-radius: 0; color: var(--text); flex-wrap: nowrap; }
.cs-rv-ctl .cs-bar .cs-ic { width: 30px; height: 28px; }
.cs-rv-ctl .cs-bar .cs-ic.wide { width: auto; padding: 0 8px; font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; }
.cs-rv-ctl .cs-fr { color: var(--text); font-size: 12px; }
.cs-rv-strip[hidden] { display: none; }
.cs-rv-thumb { flex: none; width: 76px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 6px; background: light-dark(#f2f3f6, #24262c); color: var(--text-2); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.cs-rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-rv-thumb.on { border-color: var(--accent); }
.cs-rv-thumb svg { width: 18px; height: 18px; }
.cs-busy { cursor: default; color: var(--muted); }
/* right-click menus: roomier rows with a quiet icon each, Delete apart under a hairline */
.cs-pop.cs-ctx { min-width: 188px; padding: 6px; border-radius: 12px; border-color: light-dark(rgba(0, 0, 0, .07), rgba(255, 255, 255, 0.13)); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px rgba(15, 20, 35, .14); animation: cs-ctx-in .12s ease-out; transform-origin: top left; }
.cs-pop.cs-ctx button { gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.cs-pop.cs-ctx button:hover, .cs-pop.cs-ctx button:focus-visible { background: var(--accent-soft, #eef4fe); color: var(--accent, #0b6cf0); }
.cs-pop.cs-ctx .cs-mi { width: 16px; height: 16px; flex: none; stroke-width: 1.8; color: var(--muted); }
.cs-pop.cs-ctx button:hover .cs-mi, .cs-pop.cs-ctx button:focus-visible .cs-mi { color: currentColor; }
.cs-pop.cs-ctx button.cs-danger, .cs-pop.cs-ctx button.cs-danger .cs-mi { color: light-dark(#c62828, #df6161); }
.cs-pop.cs-ctx button.cs-danger:hover, .cs-pop.cs-ctx button.cs-danger:focus-visible { background: light-dark(#fdecea, #3b1a16); color: light-dark(#b71c1c, #e96d6d); }
.cs-pop-sep { height: 1px; margin: 5px 6px; background: var(--line); }
@keyframes cs-ctx-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cs-pop.cs-ctx { animation: none; } }
/* 3D: the asset's published model (SVN publish/<Name>.glb) — a dark stage like Curbstomp's viewport */
.cs-model { position: relative; margin: 0 0 12px; border-radius: 10px; overflow: hidden; background: #2a2b30; }
.cs-model-stage { width: 100%; aspect-ratio: 4 / 3; }
.cs-model-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.cs-model-stage canvas:active { cursor: grabbing; }
.cs-model:fullscreen .cs-model-stage { aspect-ratio: auto; height: calc(100vh - 44px); }
.cs-model-msg { position: absolute; inset: 0 0 44px; display: grid; place-items: center; padding: 16px; color: #c7c8ce; font-size: 12.5px; text-align: center; pointer-events: none; }
.cs-model-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; background: #222327; }
.cs-model-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: light-dark(#101114, #f0f1f3); background: light-dark(#9ad0ff, #265782); padding: 2px 7px; border-radius: 99px; }
.cs-model-rev { flex: 1; min-width: 0; height: 28px; padding: 0 8px; border: 1px solid #3a3b41; border-radius: 7px; background: #2c2d32; color: #e9e9ee; font: inherit; font-size: 12px; }
.cs-model-full { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #c7c8ce; cursor: pointer; }
.cs-model-full:hover { background: #34353b; color: #fff; }
.cs-model-full svg { width: 16px; height: 16px; }
/* the card's "3D · r152" badge */
.cs-thumb { position: relative; }
.cs-3d-badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 99px; background: rgba(16, 17, 20, .78); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(4px); }
/* a section's groups, each a title with its own asset cards (ASSETS → Character, Environment…) */
.cs-gsec { grid-column: 1 / -1; margin: 0 0 22px; }
.cs-gsec-title { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 10px; padding: 4px 8px 4px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cs-gsec-title:hover { background: var(--panel2); }
.cs-gsec-title .cs-ficon { width: 16px; height: 16px; }
.cs-gsec-n { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.cs-gsec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; align-items: start; }
.cs-gsec-loose { grid-column: 1 / -1; margin-bottom: 22px; }
.cs-sec-pick[aria-current="true"] .cs-ficon { color: currentColor; }
.cs-gsec-empty { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Invoice (features/invoice.js): a letter-size page laid out like Flow's own invoices, in a wide pop-up */
.modal.inv-modal { width: min(920px, 100%); padding: 0; background: light-dark(#f2f2f5, #26262c); overflow: hidden; display: flex; flex-direction: column; }
.inv-modal > div { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 32px); }
.inv-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 22px; background: var(--card); border-bottom: 1px solid var(--border); }
.inv-bar h2 { margin: 0 6px 0 0; }
.inv-period { width: auto; height: 34px; }
.inv-spacer { flex: 1; }
.inv-x { width: 34px; padding: 0; justify-content: center; }
.inv-stage { overflow: auto; padding: 24px; }
.inv-paper { color-scheme: light; width: 816px; min-height: 1056px; margin: 0 auto; background: #fff; color: #4a4a4f; box-shadow: 0 2px 14px rgba(0, 0, 0, .12); display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.inv-top { display: grid; grid-template-columns: 1fr 282px; height: 162px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.inv-title { background: #000; color: #fff; padding: 0 28px; display: flex; flex-direction: column; justify-content: center; }
.inv-title h1 { margin: 0; font-size: 30px; font-weight: 400; letter-spacing: .01em; line-height: 1.05; }
.inv-title p { margin: 2px 0 0; font-size: 13.5px; }
.inv-due { background: #2b2b2b; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.inv-due span { font-size: 13.5px; } .inv-due b { font-size: 30px; font-weight: 400; }
.inv-meta { display: flex; justify-content: space-between; gap: 24px; padding: 34px 28px 30px; }
.inv-l { display: block; color: #999; font-size: 13px; }
.inv-client { font-weight: 600; color: #333; margin-bottom: 14px; }
.inv-meta dl { display: grid; grid-template-columns: auto minmax(130px, auto); gap: 5px 12px; margin: 0; }
.inv-meta dt { text-align: right; font-weight: 600; color: #4a4a4f; } .inv-meta dd { margin: 0; }
.inv-items { width: 100%; border-collapse: collapse; }
.inv-items th { font-size: 13px; font-weight: 600; color: #b5b8bc; text-align: left; padding: 0 28px 10px; border-bottom: 3px solid #e3e5e6; }
.inv-items td { padding: 12px 28px; background: #f3f4f3; border-bottom: 1px solid #e3e5e6; vertical-align: top; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.inv-items tbody tr:last-child td { border-bottom: 3px solid #e3e5e6; }
.inv-items td b { display: block; color: #333; font-weight: 600; }
.inv-items td span { font-size: 13px; }
.inv-items .n { text-align: right; white-space: nowrap; }
.inv-totals { align-self: flex-end; width: 330px; margin: 18px 28px 0; }
.inv-totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.inv-totals > div span:first-child { font-weight: 600; text-align: right; flex: 1; padding-right: 44px; }
.inv-totals .due { border-top: 3px solid #e3e5e6; margin-top: 8px; padding-top: 14px; color: #333; }
.inv-notes { padding: 44px 28px 24px; }
.inv-notes h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #333; }
.inv-notes .inv-edit { white-space: pre-wrap; min-height: 3em; }
.inv-foot { margin-top: auto; border-top: 1px solid #ddd; display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; padding: 26px 40px 46px; font-size: 14px; color: #000; line-height: 1.25; }
.inv-foot img { width: 116px; height: 116px; filter: grayscale(1) contrast(1.4); }
.inv-foot .r { text-align: right; align-self: start; }
.inv-edit { outline: none; border-radius: 4px; box-shadow: 0 0 0 1px transparent; transition: box-shadow .12s, background .12s; min-width: 2ch; }
span.inv-edit { display: inline-block; }
.inv-edit:hover { box-shadow: 0 0 0 1px #d6d8dc; }
.inv-edit:focus { box-shadow: 0 0 0 2px var(--blue); background: #fff; color: #333; }
.inv-edit:empty::before { content: attr(data-ph); color: #c2c4c8; font-weight: 400; }
@media (max-width: 960px) { .inv-stage { padding: 12px; } .inv-paper { zoom: .8; } }
@media (max-width: 720px) { .inv-paper { zoom: .5; } .inv-bar { flex-wrap: wrap; } }

/* printing: the page alone, letter, no margins (the page has its own) */
.inv-print { page: invoice; }
@page invoice { size: letter portrait; margin: 0; }
@media print {
  body.printing .inv-print .inv-paper { box-shadow: none; width: 8.5in; min-height: 11in; height: 11in; overflow: hidden; }
  body.printing .inv-print .inv-edit { box-shadow: none !important; }
  body.printing .inv-print .inv-edit:empty::before { content: none; }
}

/* a main folder's folders, as folder icons */
.cs-ftile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-align: center; color: var(--text); }
.cs-ftile:hover { background: var(--panel); border-color: var(--line); }
.cs-ftile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-ftile-ic { display: grid; place-items: center; width: 96px; height: 80px; color: light-dark(#8e8e93, #909095); }
.cs-ftile-ic .cs-ficon { width: 80px; height: 80px; stroke-width: 1.2; }
.cs-ftile:hover .cs-ftile-ic { color: var(--accent); }
.cs-ftile b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cs-ftile-n { font-size: 12px; color: var(--muted); }
.cs-tpill-add { justify-content: center; border-style: dashed; color: var(--muted); font-weight: 600; }
.cs-card:hover .cs-tpill-add { color: var(--accent); border-color: var(--accent); }
.cs-pop.cs-pop-people { width: 240px; padding-top: 0; }
.cs-pop-search { position: sticky; top: 0; z-index: 1; width: 100%; margin: 0 0 4px; border-color: var(--line); background: var(--panel); box-shadow: 0 4px 0 var(--panel), 0 -4px 0 var(--panel); }
.cs-pop-search:focus { border-color: var(--accent); }

/* production Settings › Task types */
.bud-settings + .bud-settings { margin-top: 16px; }

/* production Settings: tabs in the header, the Production card */
.set-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.set-h h2 { margin: 0; }
.set-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bud-control .set-wide { width: 100%; max-width: 360px; }
.bud-control .set-num { width: 90px; }
.bud-control .set-custom { width: 160px; }
.set-chips button[aria-checked="true"] { background: var(--blue-700, #0071e3); border-color: transparent; color: #fff; }
.bud-control .set-sw-add { width: 110px; height: 28px; border-radius: 99px; }
.bud-control .set-desc { width: 100%; height: auto; padding: 8px 10px; resize: vertical; line-height: 1.4; }
.bud-row:has(.set-desc) { align-items: start; }

/* ---- side tree polish (Felix, 2026-11-12: "make the UI pretty and slick") — a file-explorer look:
   every row is [24 px icon slot][name][count], one line each; the icon slot is the fold toggle for folders that
   hold something (no frame, a soft hover); the selected row is a soft tint, not a solid block; hairline guides. */
.cs-side .cs-fl-row { gap: 2px; min-height: 30px; border-radius: 7px; }
.cs-side .cs-fl-row > .cs-char { padding: 5px 8px 5px 4px; border-radius: 7px; font-size: 13.5px; line-height: 20px; }
.cs-side .cs-char-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.cs-side .cs-n { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); padding-left: 8px; }
.cs-side .cs-twist { width: 24px; height: 24px; border: 0; background: none; box-shadow: none; border-radius: 6px; color: var(--muted); }
.cs-side .cs-twist .cs-chev { width: 15px; height: 15px; }
.cs-side .cs-twist[aria-expanded="false"] { background: none; }
.cs-side .cs-twist[aria-expanded="true"] { color: var(--muted); }
.cs-side .cs-twist:not(.none):hover { background: var(--hover); color: var(--text); }
.cs-side .cs-asset-line .cs-twist .cs-chev { width: 14px; height: 14px; color: var(--text-3); }
/* hover and selection: the whole row, softly */
.cs-side .cs-fl-row:hover > .cs-char:not([aria-current="true"]) { background: var(--hover); }
.cs-side .cs-char[aria-current="true"], .cs-side .cs-sec-pick[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cs-side .cs-char[aria-current="true"] .cs-n { color: var(--accent); opacity: .8; }
.cs-side .cs-fl-row:has(> .cs-char[aria-current="true"]) > .cs-twist .cs-chev,
.cs-side .cs-asset-line.on > .cs-twist .cs-chev { color: var(--accent); }
.cs-side .cs-fl-row > .cs-char[aria-current="true"] + .cs-fl-more { color: var(--accent); }
/* section headers (PRODUCTION, EDITS): small caps, the same icon slot */
.cs-side h3.cs-sec-row { margin: 16px 0 2px; }
.cs-side h3.cs-sec-row:first-child { margin-top: 4px; }
.cs-side .cs-sec-pick { padding: 4px 6px 4px 4px; font-size: 11px; letter-spacing: .08em; color: var(--muted); align-items: center; }
.cs-side .cs-sec-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* nesting: one indent per level, a hairline guide under the parent's icon */
.cs-side .cs-tree-kids { margin-left: 12px; padding-left: 8px; border-left: 1px solid light-dark(#ececf0, #2a2a2d); }
/* the highlight is the WHOLE row (icon + name + count), with even padding inside it — never a block beside the icon */
.cs-side .cs-fl-row { padding: 0 2px 0 4px; gap: 6px; }
.cs-side .cs-fl-row > .cs-char, .cs-side .cs-fl-row > .cs-char[aria-current="true"], .cs-side .cs-fl-row:hover > .cs-char:not([aria-current="true"]) { background: none; padding-left: 0; }
.cs-side .cs-fl-row:hover { background: var(--hover); }
.cs-side .cs-fl-row:has(> .cs-char[aria-current="true"]), .cs-side .cs-asset-line.on { background: var(--accent-soft); }
.cs-side .cs-fl-row:has(> .cs-char[aria-current="true"]) > .cs-char, .cs-side .cs-asset-line.on > .cs-char { color: var(--accent); font-weight: 600; }
.cs-side .cs-fl-row .cs-twist:not(.none):hover { background: light-dark(rgba(0, 0, 0, .05), rgba(255, 255, 255, 0.1)); }
.cs-side .cs-fl-row .cs-fl-more { right: 4px; }
.cs-side .cs-fl-row > .cs-sec-pick, .cs-side .cs-fl-row > .cs-sec-pick:hover, .cs-side .cs-fl-row > .cs-sec-pick[aria-current="true"] { background: none; padding-left: 0; }
.cs-side .cs-fl-row:has(> .cs-sec-pick[aria-current="true"]) { background: var(--accent-soft); }
.cs-side .cs-fl-row:has(> .cs-sec-pick[aria-current="true"]) > .cs-sec-pick { color: var(--accent); }

/* the task panel's mini drawing bar (the playlist's tools, compact): tools · colours · undo / redo / clear */
.cs-rv { --rv-bg: #17181c; --rv-bar: #1f2025; --rv-seg: #26272d; --rv-line: #33343b; --rv-ink: #e8e9ee; --rv-dim: #8d8f98; --rv-accent: #2f8cff; }
.cs-rv-wrap { position: relative; }
.cs-rv-wrap:fullscreen { display: grid; background: #17181c; }
.cs-rv-wrap:fullscreen .cs-rv-stage { aspect-ratio: auto; height: 100%; }
.cs-rv-wrap .cs-rv-stage { cursor: default; }
.rd-bar.cs-rv-draw { gap: 4px; padding: 4px 6px; flex-wrap: wrap; }
.rd-bar.cs-rv-draw .rd-group { height: 28px; padding: 0 2px; border-radius: 8px; flex: none; }
.rd-bar.cs-rv-draw .rd-group:nth-child(2) { display: none; } /* size / opacity: [ and ] still change the size */
.rd-bar.cs-rv-draw .rd-btn { width: 24px; height: 24px; }
.rd-bar.cs-rv-draw .rd-btn svg { width: 15px; height: 15px; }
.rd-bar.cs-rv-draw .rd-current, .rd-bar.cs-rv-draw .rd-custom-wrap { display: none; }
.rd-bar.cs-rv-draw .rd-sw { width: 14px; height: 14px; }

/* Upload + Log Time side by side in a task's panel (Felix, 2026-11-12) */
.cs-act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-logtime.cs-upload { background: #1d1d1f; }
.cs-logtime.cs-upload:hover { filter: none; background: #000; }

.set-status button { display: inline-flex; align-items: center; gap: 6px; }
.set-sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.set-status button[aria-checked="true"] { background: var(--sc); color: #fff; }
.set-status button[aria-checked="true"] .set-sdot { background: var(--card); }
.set-hint { margin: 6px 0 0; font-size: 12px; color: var(--text-3, #86868b); }
.cs-pop button.cs-pop-add { color: var(--accent, #0b6cf0); font-weight: 600; }
.cs-pop button.cs-pop-add .cs-mi { width: 14px; height: 14px; }

/* New task type pop-up */
.cs-lt-note.cs-tt-name { min-height: 0; height: 38px; resize: none; }
.cs-tt-sws { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tt-sw { position: relative; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cs-tt-sw[aria-checked="true"], .cs-tt-any.on { box-shadow: 0 0 0 2px light-dark(#fff, var(--card)), 0 0 0 4px var(--accent, #0071e3); }
.cs-tt-any { background: conic-gradient(#ff375f, #ffd60a, #30d158, #64d2ff, #5e5ce6, #bf5af2, #ff375f); overflow: hidden; }
.cs-tt-any input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.cs-tt-prev-row { margin-top: 10px; }

/* production Settings: Chrome-style tabs — a grey strip, the open tab white with curved feet, joined to the page */
.set-chrome { max-width: 720px; border-radius: 12px; overflow: hidden; background: light-dark(#dee1e6, #373b40); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(15,20,35,.06); }
.set-ctabs { display: flex; align-items: flex-end; gap: 0; padding: 8px 12px 0; height: 44px; }
.set-ctab { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; width: 180px; height: 36px; padding: 0 14px; border-radius: 10px 10px 0 0; color: light-dark(#3c4043, #cdd0d2); font-size: 12.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.set-ctab svg { width: 15px; height: 15px; flex: none; color: light-dark(#5f6368, #b1b4b8); }
.set-ctab span { overflow: hidden; text-overflow: ellipsis; }
.set-ctab:not(.active):hover { background: rgba(255,255,255,.45); }
.set-ctab:not(.active) + .set-ctab:not(.active)::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: light-dark(#9aa0a6, #6d7276); } /* the divider between closed tabs */
.set-ctab.active { background: var(--card); color: light-dark(#202124, #e4e5e7); z-index: 1; }
.set-ctab.active svg { color: var(--blue-700, #0071e3); }
.set-ctab.active::before, .set-ctab.active::after { content: ''; position: absolute; bottom: 0; width: 10px; height: 10px; }
.set-ctab.active::before { left: -10px; background: radial-gradient(circle at 0 0, transparent 10px, var(--card) 10.5px); }
.set-ctab.active::after { right: -10px; background: radial-gradient(circle at 100% 0, transparent 10px, var(--card) 10.5px); }
.set-chrome-page { background: var(--card); }
.set-chrome-page > .bud-settings { max-width: none; border-radius: 0; box-shadow: none; border: 0; margin: 0; }
.set-chrome-page > .bud-settings + .bud-settings { margin-top: 0; }
.set-chrome-page > .bud-settings > h2, .set-chrome-page .set-h h2 { display: none; } /* the tab names the page */
.set-chrome-page .set-h { justify-content: flex-end; }

/* Settings across the whole page; the Production tab in category cards */
.set-chrome { max-width: none; }
.set-chrome-page { padding: 20px; background: var(--card); }
.set-chrome-page > .bud-settings { padding: 0; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 16px; align-items: start; }
.set-sec { border: 1px solid var(--border, #e5e5ea); border-radius: 12px; padding: 14px 18px 8px; background: var(--card); }
.set-sec-h { margin: 0 0 6px; }
.set-sec-h h3 { margin: 0; font-size: 14px; font-weight: 650; }
.set-sec-h p { margin: 2px 0 0; font-size: 12px; color: var(--text-3, #86868b); }
.set-sec .bud-row:first-of-type { border-top: 0; }
.set-sw { padding: 6px 0 10px; }
@media (max-width: 640px) { .set-grid { grid-template-columns: 1fr; } }
.set-sw .set-sw-add { width: 120px; height: 28px; border-radius: 99px; }

/* Settings: picked tags + a "+" (software with logos, due-date statuses) */
.set-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.set-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 6px; border: 1px solid var(--border, #e5e5ea); border-radius: 8px; background: var(--card); font-size: 13px; }
.set-tag-ic svg, .set-lib-ic svg { display: block; width: 18px; height: 18px; }
.set-tag-x { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--text-3, #86868b); cursor: pointer; }
.set-tag-x:hover { background: light-dark(rgba(0,0,0,.06), rgba(255, 255, 255, 0.11)); color: var(--text); }
.set-tag-x svg { width: 12px; height: 12px; }
.set-add { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px dashed var(--border-strong, #c7c7cc); border-radius: 8px; background: var(--card); color: var(--text-2); cursor: pointer; }
.set-add:hover { border-color: var(--blue-700, #0071e3); color: var(--blue-700, #0071e3); }
.set-add svg { width: 15px; height: 15px; }
.set-stag { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--sc); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.set-stag-x { padding-right: 2px; }
.set-stag .set-tag-x { color: rgba(255,255,255,.8); }
.set-stag .set-tag-x:hover { background: rgba(255,255,255,.2); color: #fff; }
.set-rule { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 13px; }
.set-rule-l { color: var(--text-2); }
.popover.set-lib-pop { width: 420px; padding: 8px; }
.set-lib-search { width: 100%; height: 34px; margin: 0 0 8px; padding: 0 10px; border: 1px solid var(--border-strong, #c7c7cc); border-radius: 8px; font: inherit; font-size: 13px; }
.set-lib-search:focus { outline: none; border-color: var(--blue-700, #0071e3); }
.set-lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-height: 320px; overflow-y: auto; }
.set-lib-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; font: inherit; font-size: 11.5px; color: var(--text); text-align: center; }
.set-lib-item:hover { background: var(--subtle); }
.set-lib-item .set-lib-ic svg { width: 30px; height: 30px; }
.set-lib-item[aria-pressed="true"] { border-color: var(--blue-700, #0071e3); background: light-dark(#eef4fe, #132139); }
.set-lib-item > svg { position: absolute; top: 6px; right: 6px; width: 13px; height: 13px; color: var(--blue-700, #0071e3); }
.set-lib-name { line-height: 1.2; }
.popover.set-st-pop { padding: 4px; min-width: 220px; max-height: 320px; overflow-y: auto; }
.set-st-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.set-st-item:hover, .set-st-item:focus-visible { background: var(--subtle); outline: none; }
.set-st-name { color: var(--text-2); }

/* a fixed fee: 50% upfront, 50% at the end */
.bud-split { display: flex; gap: 10px; flex-wrap: wrap; }
.bud-split-part { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; min-width: 200px; padding: 10px 14px; border: 1px solid var(--border, #e5e5ea); border-radius: 10px; }
.bud-split-pct { grid-row: span 3; font-size: 20px; font-weight: 700; color: var(--blue-700, #0071e3); }
.bud-split-l { font-size: 12px; color: var(--text-2); }
.bud-split-part b { font-size: 15px; }
.bud-split-on { font-size: 12px; color: var(--text-3, #86868b); }
/* a fixed fee: how it is paid (50% / 50% or all upfront), then its payments */
.bud-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* Settings › Production: the client tag and its picker */
.set-cl-av { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #1d1d1f; color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.set-cl-tag { padding-left: 4px; }
.set-cl-mail { color: var(--text-3, #86868b); font-size: 11.5px; }
.popover.set-cl-pop { width: 320px; padding: 8px; }
.set-cl-list { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.set-cl-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; font: inherit; font-size: 13px; text-align: left; color: var(--text); }
.set-cl-item:hover, .set-cl-item:focus-visible { background: var(--subtle); outline: none; }
.set-cl-item > svg { width: 14px; height: 14px; margin-left: auto; color: var(--blue-700, #0071e3); }
.set-cl-n { display: flex; flex-direction: column; min-width: 0; }
.set-cl-n small { color: var(--text-3, #86868b); font-size: 11.5px; }
.set-cl-new { color: var(--blue-700, #0071e3); font-weight: 600; border-top: 1px solid var(--border, #e5e5ea); border-radius: 0 0 8px 8px; margin-top: 4px; }
.set-cl-new > svg { margin-left: 0; width: 14px; height: 14px; }
.set-cl-none { padding: 8px; font-size: 12.5px; color: var(--text-3, #86868b); }
.set-cl-form { display: flex; flex-direction: column; gap: 6px; padding: 4px; }
.set-cl-form .set-lib-search { margin: 0; }
.set-cl-actions { display: flex; justify-content: flex-end; gap: 6px; }
/* Settings › Legal: papers on the left, the open one on the right */
.lg { position: relative; display: flex; flex-direction: column; gap: 14px; }
.lg.drop::after { content: 'Drop to upload'; position: absolute; inset: 0; display: grid; place-items: center; border: 2px dashed var(--blue-700, #0071e3); border-radius: 12px; background: rgba(238, 244, 254, .9); color: var(--blue-700, #0071e3); font-weight: 600; z-index: 3; }
.lg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lg-bar-l { display: flex; flex-direction: column; }
.lg-bar-l span { font-size: 12px; color: var(--text-3, #86868b); }
.lg-bar-r { display: flex; align-items: center; gap: 8px; }
.lg-body { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; min-height: 70vh; }
.lg-list { display: flex; flex-direction: column; gap: 6px; }
.lg-doc { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border, #e5e5ea); border-radius: 10px; cursor: pointer; background: var(--card); }
.lg-doc:hover { border-color: light-dark(#d1d1d6, #414146); }
.lg-doc.on { border-color: var(--blue-700, #0071e3); box-shadow: 0 0 0 1px var(--blue-700, #0071e3); background: light-dark(#f7faff, #1e1f21); }
.lg-ic { display: grid; place-items: center; width: 38px; height: 46px; border-radius: 6px; background: light-dark(#f1f3f4, #272b2d); color: light-dark(#5f6368, #b1b4b8); font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.lg-ic[data-ext="pdf"] { background: light-dark(#fde8e7, #3e1817); color: light-dark(#c5221f, #e66461); }
.lg-ic[data-ext="docx"] { background: light-dark(#e8f0fe, #14243e); color: light-dark(#1a56c4, #6292ea); }
.lg-meta { display: flex; flex-direction: column; min-width: 0; }
.lg-meta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-meta span { font-size: 11.5px; color: var(--text-3, #86868b); }
.lg-kind { height: 26px; border: 1px solid var(--border, #e5e5ea); border-radius: 6px; background: var(--card); font: inherit; font-size: 12px; }
.lg-del { width: 28px; height: 28px; color: var(--text-3, #86868b); }
.lg-del.armed { background: light-dark(#fdecea, #3b1a16); color: light-dark(#c62828, #df6161); }
.lg-view { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border, #e5e5ea); border-radius: 12px; overflow: hidden; background: light-dark(#f1f3f4, #272b2d); min-height: 70vh; }
.lg-frame { flex: 1; width: 100%; min-height: 70vh; border: 0; background: var(--card); }
.lg-img { max-width: 100%; margin: auto; display: block; }
.lg-open { position: absolute; top: 8px; right: 8px; background: var(--card); }
.lg-empty { margin: auto; padding: 24px; text-align: center; color: var(--text-3, #86868b); font-size: 13px; }
@media (max-width: 900px) { .lg-body { grid-template-columns: 1fr; } }

/* the task panel's drawing bar, minimal: pen, eraser, one colour dot */
.rd-bar.cs-rv-draw > .rd-group:not(:first-child), .rd-bar.cs-rv-draw > .rd-spring { display: none; }
.rd-bar.cs-rv-draw > .rd-group:first-child .rd-btn:not([aria-label^="Brush"]):not([aria-label^="Eraser"]):not(.cs-rv-color) { display: none; }
.cs-rv-dot { display: block; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px light-dark(rgba(255,255,255,.85), rgba(28, 28, 30, 0.85)); }
.cs-rv-sws { display: flex; gap: 6px; padding: 4px; }
.cs-pop .cs-rv-sw { width: 22px; height: 22px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cs-pop .cs-rv-sw:hover { transform: scale(1.12); }

/* the drawing tools in the player's bottom bar (light, like the play controls) */
.cs-rv-ctl .cs-rv-tools { display: inline-flex; align-items: center; gap: 2px; height: auto; padding: 0; margin-right: 8px; background: none; box-shadow: none; }
.cs-rv-ctl .cs-rv-tools .rd-btn:not([aria-label^="Brush"]):not([aria-label^="Eraser"]):not(.cs-rv-color):not(.cs-rv-pic) { display: none; }
.cs-rv-ctl .cs-rv-tools .rd-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none; color: light-dark(#3c4043, #cdd0d2); cursor: pointer; }
.cs-rv-ctl .cs-rv-tools .rd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cs-rv-ctl .cs-rv-tools .rd-btn:hover { background: light-dark(#f1f3f4, #272b2d); }
.cs-rv-ctl .cs-rv-tools .rd-btn[aria-pressed="true"] { background: light-dark(#e8f0fe, #14243e); color: var(--accent, #0b6cf0); }
.cs-rv-ctl .cs-rv-dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.cs-rv-ctl.still .cs-strip, .cs-rv-ctl.still .cs-bar > .cs-ic:not(:last-child), .cs-rv-ctl.still .cs-fr { display: none; }
.cs-rv-ctl .cs-strip i.c { background: #ffb300; } .cs-rv-ctl .cs-strip i.c::after { display: none; }
.cs-rv-ctl .cs-rv-tools .cs-rv-pic { margin-left: 4px; }
.cs-thumb.fl.pic video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

/* the open task: its card and its pill */
.cs-tpill[aria-current="true"] { border-color: var(--accent, #0071e3); background: light-dark(#eef4fe, #132139); box-shadow: 0 0 0 1px var(--accent, #0071e3); }
.cs-grid { align-items: start; } /* a card is as tall as its own tasks, not the tallest in its row (Felix, 2026-11-12) */

/* Due pill (Felix, 2026-11-12): the soonest end date still to meet, on an asset card and its side-menu row.
   Red stroke when late or within 3 days; a quiet grey stroke further out. */
.cs-duepill { align-self: flex-start; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  border: 1.5px solid light-dark(#c7c7cc, #49494f); color: var(--muted); background: transparent; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.cs-duepill.hot { border-color: #e5484d; color: light-dark(#d1242f, #e7747b); }
.cs-char .cs-duepill { margin-left: auto; height: 17px; padding: 0 6px; font-size: 10px; flex: none; }

/* Right-click → Status (Felix, 2026-11-12): the row shows the current status; a click swaps in the status list. */
.cs-menu-sub .cs-menu-cur { margin-left: auto; padding-left: 16px; color: var(--muted); font-size: 12px; }
.cs-menu-sub .cs-mi:last-child { margin-left: 4px; margin-right: 0; opacity: .6; }

/* Branches (Felix, 2026-11-12): a trial / new approach of an asset — its own card beside the asset's, a dashed edge;
   merged branches stay as history, dimmed. In the side menu: under the asset, indented, with the branch mark. */
.cs-card.cs-branch { border-style: dashed; border-color: #b9b0e6; }
.cs-card.cs-branch.merged { opacity: .6; border-color: var(--line); }
.cs-card.cs-branch.merged:hover { opacity: .9; }
.cs-branch-line { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: -4px; padding: 0 2px; font-size: 11px; color: light-dark(#6b5fc7, #8f86d5); }
.cs-card.merged .cs-branch-line { color: var(--muted); }
.cs-branch-line .cs-mi { width: 13px; height: 13px; margin: 0; flex: none; }
.cs-branch-line > span { flex: 1 1 0; min-width: 0; }
.cs-branch-line i { flex-basis: 100%; color: var(--muted); font-style: italic; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cs-fl-row.cs-branch-line-row { padding-left: 14px; }
.cs-fl-row.cs-branch-line-row .cs-chev { color: light-dark(#6b5fc7, #8f86d5); }
.cs-fl-row.cs-branch-line-row.merged { opacity: .55; }

.cs-rv.empty .cs-rv-wrap, .cs-rv.empty .cs-rv-ctl, .cs-rv.empty .cs-rv-strip { display: none; }

/* Motion (Felix, 2026-11-12: "if I delete or add or whatever it's animated … if I open a menu it's animated").
   Short and soft: menus fade/scale in and out, a submenu slides from its row, new cards / tasks / rows grow in,
   deleted ones shrink away, a status colour eases into the new one. Nothing moves with "reduce motion". */
.cs-pop { animation: cs-ctx-in .14s cubic-bezier(.2, .8, .2, 1); transform-origin: top left; }
.cs-pop.cs-subpop { animation: cs-sub-in .14s cubic-bezier(.2, .8, .2, 1); }
.cs-pop.leaving { animation: cs-pop-out .11s ease-in forwards; pointer-events: none; }
@keyframes cs-sub-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes cs-pop-out { to { opacity: 0; transform: scale(.97); } }
.cs-card.cs-enter { animation: cs-card-in .32s cubic-bezier(.2, .8, .2, 1); }
.cs-tpill.cs-enter, .cs-fl-row.cs-enter { animation: cs-row-in .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes cs-card-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cs-row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.cs-leave { animation: cs-leave .18s ease-in forwards; pointer-events: none; }
@keyframes cs-leave { to { opacity: 0; transform: scale(.94); } }
.cs-sw2, .cs-st, .cs-duepill { transition: background-color .25s, color .25s, border-color .25s; }
@media (prefers-reduced-motion: reduce) {
  .cs-pop, .cs-pop.cs-subpop, .cs-pop.leaving, .cs-card.cs-enter, .cs-tpill.cs-enter, .cs-fl-row.cs-enter, .cs-leave { animation: none; }
  .cs-sw2, .cs-st, .cs-duepill { transition: none; }
}

/* New asset pop-up (simple, like the task panel): name, then Tasks / Assigned / End date rows */
.modal.cs-na-modal { width: min(460px, 100%); }
.cs-na-rows { margin: 14px 0 4px; font-size: 13px; gap: 12px 14px; }
.cs-pop { z-index: 80; } /* menus opened from a pop-up sit above it */

/* References: a wide blue button between the task's title and Status (Felix, 2026-11-12) */
.cs-logtime.cs-refs { height: 38px; margin: 2px 0 12px; }

/* An asset's own status (Felix, 2026-11-12: HOLD / WFA / DONE "leave a highlight of the status around the stroke"):
   a ring in the status colour outside the card's edge, and the status as a tag in the picture's corner / the side menu. */
.cs-card.has-ast { outline: 2.5px solid var(--ast); outline-offset: 2px; transition: outline-color .25s; }
.cs-card.has-ast[aria-current="true"] { outline-offset: 3px; }
.cs-thumb { position: relative; }
.cs-ast-tag { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.cs-ast-tag.side { position: static; margin-left: auto; flex: none; padding: 1px 6px; font-size: 10px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .cs-card.has-ast { transition: none; } }

/* Snap a card's picture (features/frame-snap.js): the frame under a window in the card's 4:3 shape */
.modal.snap-modal { width: min(608px, 100%); }
.snap { display: grid; gap: 14px; }
.snap h2 { font-size: 16px; }
.snap-stage { display: block; max-width: 100%; border-radius: 12px; cursor: grab; touch-action: none; }
.snap-stage.grab { cursor: grabbing; }
.snap-row { display: flex; align-items: center; gap: 10px; }
.snap-zlabel { font-size: 12.5px; color: var(--text-3, #86868b); }
.snap-zoom { width: 160px; accent-color: #2f8cff; }
.snap-spacer { flex: 1; }
/* References + the snap button beside it (outside the player, Felix 2026-11-12) */
.cs-refs-row { display: flex; gap: 8px; margin: 2px 0 12px; }
.cs-refs-row .cs-logtime.cs-refs { flex: 1; margin: 0; }
.cs-snap-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); cursor: pointer; transition: background .12s, border-color .12s; }
.cs-snap-btn:hover { background: light-dark(#f2f2f4, #252528); border-color: light-dark(#c7c7cc, #49494f); }
.cs-snap-btn svg { width: 18px; height: 18px; }
.cs-snap-btn[hidden] { display: none; }
/* the snap button, at the right end of the task's title row (outside the player, Felix 2026-11-12) */
.cs-snap-btn { flex: none; margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); cursor: pointer; transition: background .12s, border-color .12s; }
.cs-snap-btn:hover { background: light-dark(#f2f2f4, #252528); border-color: light-dark(#c7c7cc, #49494f); }
.cs-snap-btn svg { width: 17px; height: 17px; }
.cs-snap-btn[hidden] { display: none; }

/* pictures pasted into a comment (Felix, 2026-11-12): small previews in the box, a row under the posted comment */
.cs-cpics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cs-cpic { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--panel2); }
.cs-cpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-cpic.sending img { opacity: .45; }
.cs-cpic-x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.cs-cimgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-left: 30px; }
.cs-cimg { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.cs-cimg img { display: block; max-width: 220px; max-height: 160px; object-fit: contain; }
.cs-picview { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(0, 0, 0, .78); cursor: zoom-out; }
.cs-picview img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
/* a comment being edited in place (right-click → Edit) */
.cs-comments li > .cs-cedit { display: block; width: calc(100% - 30px); margin: 2px 0 0 30px; box-sizing: border-box; resize: vertical; font: inherit; line-height: 1.45; }
/* the composer's send pill (Felix, 2026-11-12: "make Post an icon … a pill like Kitsu"): the status tag + a send icon */
.cs-send { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
.cs-send-go { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); cursor: pointer; padding: 0; }
.cs-send-go:hover { filter: brightness(1.08); }
.cs-send-go:disabled { opacity: .5; cursor: default; }
.cs-send-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-send-go svg { width: 15px; height: 15px; }
.cs-send .cs-st { font-size: 12px; } /* the same size as the Status pill above it */
.inv-warn { color: light-dark(#b45309, #fbbf24); } .inv-next { color: var(--text-2); }
/* the task's Blender file, desktop app only (features/curbstomp.js taskFilesBox) */
.cs-files { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.cs-files[hidden] { display: none; }
.cs-files-name { margin: 0; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-files-note, .cs-files-busy { margin: 0; font-size: 12px; color: var(--text-2); }
.cs-files-busy { color: var(--blue); }
.cs-files-msg { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; font: inherit; font-size: 13px; background: var(--card); color: var(--text); }
.inv-bill-mail { margin-top: 1em; }
