/* Agnostik Cut · Instrument soft: the component layer.
   Load after app.css:  <link rel="stylesheet" href="css/instrument.css">
   Written against 031's class names as of commit d0a5781. Uses only tokens from tokens.css.
   Once it settles, fold each block into app.css and delete this file. Rules: DESIGN-SYSTEM.md. */

body { font-family: var(--ui); font-size: var(--fs); background: var(--bg); }
.app { background: var(--groove); }
.app > .bar { background: var(--body-lo); }

/* ── Panel chrome ── */
.panel { border-radius: 0; box-shadow: inset 0 1px 0 var(--key-hi), inset 0 -1px 0 var(--key-lo); }
.panel.focus { box-shadow: inset 0 1px 0 var(--key-hi), inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent); }

/* ── Keys: one recipe, used by tabs, workspace switch, transport, filters and track toggles ── */
.tabs { align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--groove); }
.tabs button, .tabs .title, .bar .ws button, .binpicks button, .seg button {
  position: relative; padding: 5px 11px 5px 19px; border-radius: var(--r-s); color: var(--dim); font-weight: var(--fw-quiet);
  background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-shadow);
  transition: transform var(--t-key) var(--ease), box-shadow var(--t-key) var(--ease), color var(--t-fast); }
/* the LED */
.tabs button::before, .tabs .title::before, .bar .ws button::before, .binpicks button::before, .seg button::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--led-off); opacity: .6; transition: background var(--led-fade), box-shadow var(--led-fade), opacity var(--led-fade); }
.tabs button:hover, .bar .ws button:hover, .binpicks button:hover, .seg button:hover { color: var(--bright); }
.tabs button:active, .bar .ws button:active, .binpicks button:active, .seg button:active { transform: translateY(1px); box-shadow: var(--key-pressed); }
.tabs button.on, .tabs .title, .bar .ws button.on, .binpicks button.on, .seg button.on {
  color: var(--bright); font-weight: var(--fw-on); transform: translateY(1px); box-shadow: var(--key-pressed); }
.tabs button.on::before, .tabs .title::before, .bar .ws button.on::before, .binpicks button.on::before, .seg button.on::before {
  background: var(--hot); opacity: 1; box-shadow: 0 0 6px var(--hot-glow); }
.bar .ws { background: none; gap: 5px; padding: 0; }
.tabs .extra { align-self: center; padding-bottom: 0; }

/* ── Top bar ── */
.brand { font-weight: 600; letter-spacing: -.01em; }
.proj::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 6px var(--hot-glow); align-self: center; }
.pill { box-shadow: none; border-color: var(--edge); }
.pill.ok i { box-shadow: 0 0 6px var(--ok); }
.btn { background: linear-gradient(var(--key-top), var(--key)); border: 0; box-shadow: var(--key-shadow); }
.btn:active { box-shadow: var(--key-pressed); transform: translateY(1px); }
.btn.primary { background: linear-gradient(var(--hot), var(--hot-press)); color: var(--on-hot);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(0,0,0,.6), 0 3px 10px var(--hot-glow); }
.btn.primary:hover { background: linear-gradient(var(--hot), var(--hot)); }
.search input, .field { background: var(--lcd); border: 0; box-shadow: var(--lcd-inset); border-radius: var(--r); }

/* ── Monitors: black screens set into the body ── */
.screen { margin: 10px 10px 0; border-radius: var(--screen-r); background: var(--screen); box-shadow: var(--screen-bezel); overflow: hidden; }
.screen .words { font-family: var(--words); font-weight: 500; }
.screen .words span.on { color: var(--live); text-shadow: 0 0 14px var(--live-glow); }
.camtag { font-weight: 500; background: rgba(0,0,0,.7); }
.camtag.on { background: var(--cam-a); color: #fff; }
.camtag[data-cam="B"].on { background: var(--cam-b); color: #04201c; }
.angbtn { border-radius: var(--r-s) !important; border: 0; background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-shadow); }
.angbtn.on { box-shadow: var(--key-pressed), inset 0 0 0 1px var(--cam-b); }
.scrub { margin: 10px 10px 0; height: 6px; border: 0; border-radius: 3px; background: var(--groove); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); overflow: visible; }
.scrub .marks { border: 0; border-radius: 3px; background: color-mix(in srgb, var(--blue) 55%, transparent); }
.scrub .head { width: 4px; top: -4px; bottom: -4px; border-radius: 2px; background: var(--bright); box-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* ── Transport: square keys; Play is the grey key; timecode in an LCD window ── */
.transport { padding: 10px 12px 8px; }
.transport .tc { justify-self: start; background: var(--lcd); color: var(--lcd-text); font-weight: 500; padding: 3px 8px; border-radius: var(--r-s); box-shadow: var(--lcd-inset); }
.transport .tc::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; vertical-align: 2px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 5px var(--blue); }
.transport .tc.dur { justify-self: end; color: var(--lcd-dim); font-weight: 400; }
.transport .tc.dur::after { display: none; }
.btns { gap: 6px; }
.btns button { min-width: 36px; height: 34px; border-radius: var(--r); color: var(--text); background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-shadow);
  transition: transform var(--t-key) var(--ease), box-shadow var(--t-key) var(--ease); }
.btns button:hover { background: linear-gradient(var(--raise-hover), var(--key)); }
.btns button:active, .btns button.on { transform: translateY(1px); box-shadow: var(--key-pressed); }
#splay, #pplay { min-width: 46px; background: linear-gradient(var(--key-grey-top), var(--key-grey)); color: var(--on-key-grey); }
#smarkin, #smarkout { font-family: var(--mono); font-weight: 600; }

/* ── Bin and log ── */
.item.sel { background: var(--sel); box-shadow: inset 3px 0 var(--hot); }
.item .d, .item .f { font-family: var(--mono); }
.pk { font-size: 0; }                                         /* marks become LEDs; the initial stays */
.pk::before { content: ""; display: inline-block; width: var(--led); height: var(--led); border-radius: 50%; margin-right: 2px; vertical-align: 1px; background: currentColor; box-shadow: 0 0 5px currentColor; }
.pk sup { font-size: 8.5px; }
.card { background: var(--body-hi); }
.card.cur { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 55%, transparent); }

/* ── Timeline ── */
.cutname { box-shadow: none; font-weight: var(--fw-on); }
.cutname::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; vertical-align: 2px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 6px var(--hot-glow); }
.heads { background: var(--body); }
.heads .tog { border-radius: var(--r-xs); background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-shadow); }
.heads .tog.on { box-shadow: var(--key-pressed); }
.heads .dots i.on { box-shadow: 0 0 5px var(--s); }
.ruler { background: var(--body-hi); }
.ruler .tick span { font-size: 9.5px; }
.clip { border-radius: var(--r-xs); border-color: rgba(0,0,0,.7); }
.track.v .clip { background: linear-gradient(color-mix(in srgb, var(--c) 55%, var(--body-hi)), color-mix(in srgb, var(--c) 40%, var(--body-lo))); }
.track.a .clip { background: var(--audio-tint); }
.clip canvas { opacity: 1; }
.clip.sel { outline: 2px solid var(--blue); box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
/* Filmstrips (js/filmstrip.js): head, middle and tail frames replace the fill once they're in; the person's colour
   stays as a band along the top, and the name sits on a shade so it reads over any picture */
.clip .strip { position: absolute; inset: 0; display: flex; justify-content: space-between; gap: 1px; pointer-events: none; }
.clip .strip img, .clip .strip i { height: 100%; min-width: 0; flex: 0 1 auto; object-fit: cover; opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.clip .strip img[src] { opacity: 1; }
.track.v .clip.film { background: var(--black); box-shadow: inset 0 3px 0 var(--c); }
.clip.film .t { position: relative; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.clip.film .camseg { z-index: 1; }
.trimtip { border-color: var(--blue); background: var(--tip-bg); }
.trimtip b { color: var(--bright); }
.camseg.miss { background: repeating-linear-gradient(-45deg, var(--cc) 0 4px, transparent 4px 7px); }
.zoom { font-size: var(--fs-s); }
/* grille below the last track: decoration that only fills empty space */
#lane { background: var(--grille); background-color: var(--body); }
.track { background: var(--body); }

/* ── Transcript lane (new; see DESIGN-SYSTEM.md "Transcript lane") ── */
.track.t { height: var(--track-t); background: var(--lcd); border-radius: var(--r-m); margin: 4px 6px 4px 0; box-shadow: var(--lcd-inset); }
.track.t .w { position: absolute; font: 400 var(--fs-word)/1 var(--words); color: #5e5b56; white-space: nowrap; padding: 3px 3px 3px 4px; border-radius: 3px; cursor: text; }
.track.t .w::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: currentColor; opacity: .25; }
.track.t .w.r0 { top: calc(50% - var(--fs-word) - 6px); } .track.t .w.r1 { top: calc(50% + 1px); }
.track.t .w.past { color: #b9b5ae; }
.track.t .w.now { color: var(--live); font-weight: 500; text-shadow: 0 0 10px var(--live-glow); }
.track.t .w.cut { color: #4a4844; text-decoration: line-through; }
.track.t .wsel { position: absolute; top: 5px; bottom: 5px; border-radius: 4px; background: color-mix(in srgb, var(--blue) 20%, transparent); box-shadow: inset 0 0 0 1px var(--blue); }

/* ── Menus, dialogs, toasts, first run ── */
.menu, .dlg, .wcard { border-color: var(--edge); }
.menu button:hover { background: var(--sel); color: var(--bright); }
.menu .mh, .menu button em { text-transform: none; letter-spacing: 0; }
.wcard { background: color-mix(in srgb, var(--body) 82%, transparent); backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost); }
.wcard .hint { background: var(--lcd); border: 0; box-shadow: var(--lcd-inset); color: var(--lcd-text); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* First run: "Point me at the footage." over the welcome glow; once footage is found, frosted over a blurred frame of
   the project, with a checklist of what was found */
.welcome.framed { background: var(--body-lo); overflow: hidden; }
.welcome.framed::before { content: ""; position: absolute; inset: -40px; background: var(--frame) center / cover no-repeat; filter: blur(22px) saturate(1.1) brightness(.55); }
.welcome.framed .wcard { position: relative; }
.wcard h1 { font-size: var(--fs-xl); }
.wcard .check { list-style: none; margin: 0 0 14px; padding: 0; }
.wcard .check li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--row-line2); color: var(--text); }
.wcard .check li i { font-style: normal; width: 14px; color: var(--ok); }
.wcard .check li.part i { color: var(--warn); }
.wcard .check li span { margin-left: auto; font: var(--fs-s) var(--mono); color: var(--dim); }
.wcard .check details { flex-basis: 100%; padding-left: 22px; color: var(--dim); font: 11px/1.5 var(--mono); }
/* Media sources (part 2): the folders in search order, each with what it holds for this project */
.wcard.media { width: min(600px, 92vw); }
.wcard .srcs { list-style: none; margin: 0 0 14px; padding: 0; border-radius: var(--r-m); background: var(--lcd); box-shadow: var(--lcd-inset); }
.wcard .srcs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--row-line); color: var(--lcd-text); font-size: var(--fs); }
.wcard .srcs li:first-child { border-top: 0; }
.wcard .srcs li > b { width: 16px; font: var(--fs-s) var(--mono); color: var(--dim); text-align: right; }
.wcard .srcs .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard .srcs .nm em { font: normal var(--fs-xs) var(--mono); color: var(--dim); margin-right: 6px; text-transform: uppercase; letter-spacing: .04em; }
.wcard .srcs .ct { font: var(--fs-s) var(--mono); color: var(--ok); }
.wcard .srcs li.part .ct { color: var(--warn); }
.wcard .srcs li.off { opacity: .55; } .wcard .srcs li.off .ct { color: var(--dim); }
.wcard .srcs .ed { display: flex; gap: 3px; }
.wcard .srcs .ed .btn { padding: 1px 7px; min-width: 24px; }
.wcard .srcs .ed .btn[disabled] { opacity: .35; pointer-events: none; }
.wcard .srcs .man { flex-basis: 100%; padding-left: 24px; font: var(--fs-s) var(--mono); color: var(--dim); }
.wcard .srcs .man.part { color: var(--warn); }
.wcard .srcs .man details { color: var(--dim); font: 11px/1.5 var(--mono); }

/* ── Every other view: the same keys, LEDs, LCD fields and sentence case (Logging, Context, History, dialogs, shot
   projects). Visual only: no layout changes. ── */
/* tab rows stay one line of keys; extra keys scroll sideways instead of wrapping */
.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs .title { flex: none; white-space: nowrap; }
.tabs .extra { flex: 0 1 auto; min-width: 40px; }
/* fields are LCD windows */
.lfilters input[type=search], .tagfs select, .total select, .form input, .form select, .form textarea, .noteedit textarea {
  background: var(--lcd); color: var(--lcd-text); border: 0; box-shadow: var(--lcd-inset); border-radius: var(--r); }
.tagfs select.on { box-shadow: var(--lcd-inset), inset 0 0 0 1px var(--hot); color: var(--bright); }
.lfilters input[type=search]:focus, .search input:focus, .field:focus { outline: none; box-shadow: var(--lcd-inset), 0 0 0 2px var(--blue); }
.lfilters { border-bottom-color: var(--groove); }
/* person filters: small keys whose LED is the person's colour, lit when shown */
.chip { border: 0; border-radius: var(--r-s); padding: 3px 9px 3px 8px; color: var(--text); background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-pressed); }
.chip i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 5px var(--c); }
.chip[aria-pressed="false"] { opacity: 1; color: var(--faint); box-shadow: var(--key-shadow); }
.chip[aria-pressed="false"] i { background: var(--led-off); box-shadow: none; }
/* pick keys: ★ ✕ ⚠ ✎ light up in their own colour, pressed in */
.pb { border: 0; background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-shadow); color: var(--faint); transition: transform var(--t-key) var(--ease), box-shadow var(--t-key) var(--ease), color var(--led-fade), text-shadow var(--led-fade); }
.pb:hover { color: var(--text); }
.pb.on { background: linear-gradient(var(--key), var(--key)); box-shadow: var(--key-pressed); transform: translateY(1px); }
.pb-star.on { color: var(--star); background: linear-gradient(var(--key), var(--key)); text-shadow: 0 0 6px var(--star); }
.pb-reject.on { color: var(--reject); background: linear-gradient(var(--key), var(--key)); text-shadow: 0 0 6px var(--reject); }
.pb-warn.on { color: var(--warn); background: linear-gradient(var(--key), var(--key)); text-shadow: 0 0 6px var(--warn); }
.pb-note.on { color: var(--note); text-shadow: 0 0 6px var(--note); }
/* the log */
.log .act { font: var(--fw-on) var(--fs-m) var(--ui); text-transform: none; letter-spacing: 0; color: var(--muted); border-bottom-color: var(--groove); }
.log .seq-h .num { color: var(--dim); font-weight: 500; }
.log .seq-h h3 { font-size: var(--fs-m); }
.log .seq-h .sum { font-variant-numeric: tabular-nums; }
.log a, .lnk { color: var(--muted); text-decoration: underline; text-decoration-color: var(--edge3); text-underline-offset: 2px; }
.log a:hover, .lnk:hover { color: var(--bright); }
.card { border: 0; box-shadow: inset 0 1px 0 var(--key-hi); }
.card:hover { background: color-mix(in srgb, var(--body-hi) 80%, var(--raise-hover)); }
.card.cur { box-shadow: inset 0 0 0 1px var(--blue); }
.card.m-star { background: var(--body-hi); }
.card .who { filter: none; color: color-mix(in srgb, var(--c) 70%, var(--bright)); }
.card .gist { color: var(--bright); font-size: var(--fs); }
.card .tc { font-variant-numeric: tabular-nums; }
/* tags are quiet words with an LED where they mean something, never pills */
.tag { font: var(--fs-xs) var(--ui); text-transform: none; letter-spacing: 0; border: 0; padding: 0 6px 0 0; color: var(--dim); }
.tag.star::first-letter, .tag.release::first-letter, .tag.sensitive::first-letter { text-shadow: 0 0 5px currentColor; }
.tag.release, .tag.sensitive { color: var(--warn); }
.tag.star { color: var(--star); }
.card .acts > button { border: 0; border-radius: var(--r-s); color: var(--text); background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-shadow); padding: 3px 9px; transition: transform var(--t-key) var(--ease), box-shadow var(--t-key) var(--ease); }
.card .acts > button:hover { color: var(--bright); }
.card .acts > button:active { transform: translateY(1px); box-shadow: var(--key-pressed); }
.card .acts > button.in { position: relative; padding-left: 19px; background: linear-gradient(var(--key), var(--key)); color: var(--bright); box-shadow: var(--key-pressed); transform: translateY(1px); }
.card .acts > button.in::before { content: ""; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 6px var(--hot-glow); }
.total { background: var(--body-hi); box-shadow: inset 0 1px 0 var(--key-hi); }
.total b { font: var(--fw-on) var(--fs-xl) var(--mono); }
.md h2 { font-size: var(--fs-l); } .md h3 { font-size: var(--fs-m); }
.md td, .md th { border-color: var(--row-line2); }
.md code { font: var(--fs-s) var(--mono); background: var(--lcd); color: var(--lcd-text); padding: 1px 5px; border-radius: var(--r-xs); }
.problems { border: 0; border-left: 3px solid var(--warn); background: var(--body-hi); color: var(--text); border-radius: var(--r); }
.nl { background: var(--body-hi); }
.grp { background: var(--body-hi); border-bottom-color: var(--groove); }
.item { border-bottom-color: var(--row-line); }
/* Context: sentence-case headings, rights as an LED and a word, flat tags */
.ctx h2 { font-weight: var(--fw-on); }
.ctx h3 { font-size: var(--fs); color: var(--muted); text-transform: none; letter-spacing: 0; }
.ctxhead { border-bottom-color: var(--groove); }
.rpill { border: 0; padding: 0; }
.rpill::before { content: ""; display: inline-block; width: var(--led); height: var(--led); margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: currentColor; box-shadow: 0 0 5px currentColor; }
.rpill.r-none::before { background: var(--led-off); box-shadow: none; }
.rrow { background: var(--body-hi); box-shadow: inset 0 1px 0 var(--key-hi); }
.tv { border: 0; background: var(--body-hi); border-radius: var(--r-xs); }
.hrow { border-left-color: var(--edge3); }
.hrow small, .rnote small { font-variant-numeric: tabular-nums; }
.tx span.in { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.srcfacts div { font-variant-numeric: tabular-nums; }
/* dialogs, History and versions: level-3 bodies, LCD code windows, sentence-case headings */
.dlg { background: var(--body-hi); border-color: var(--edge); box-shadow: var(--shadow-dlg), inset 0 1px 0 var(--key-hi); animation: pop var(--t-mid) var(--ease); }
.dlg h2 { font-weight: var(--fw-on); }
.dlg textarea#cmd { background: var(--lcd); color: var(--lcd-text); border: 0; box-shadow: var(--lcd-inset); }
.extable, .oplist { border: 0; background: var(--body); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.extable td { border-bottom-color: var(--row-line2); }
.oprow:hover { background: var(--hover); }
.oprow input, .binpicks input, .lfilters input[type=checkbox] { accent-color: var(--blue); }
.xcheck { background: var(--body); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.keys h3 { text-transform: none; letter-spacing: 0; font-size: var(--fs); color: var(--muted); }
.kr { border-bottom-color: var(--row-line2); }
.kr > :first-child { font-family: var(--mono); color: var(--text); }
.menu { background: var(--body-hi); border-color: var(--edge); box-shadow: var(--shadow-menu), inset 0 1px 0 var(--key-hi); animation: pop var(--t-mid) var(--ease); }
.menu button.on { box-shadow: inset 2px 0 var(--hot); }
.menu button:hover small { color: var(--dim); }
.ver:hover, .cutname:hover { background: var(--hover); }
.toast { background: var(--body-hi); border-color: var(--edge); box-shadow: var(--shadow-toast), inset 0 1px 0 var(--key-hi); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.wcard .who .btn b { background: var(--lcd); color: var(--hot); box-shadow: var(--lcd-inset); }
.wcard .status { background: var(--body-hi); }

/* Light body: screens, LCD fields and the transcript lane stay black; the rest follows the aluminium */
[data-body="light"] .card .who { color: color-mix(in srgb, var(--c) 75%, var(--bright)); }
[data-body="light"] .screen .msg { color: var(--lcd-dim); }
[data-body="light"] .screen .msg b { color: var(--lcd-text); }
.seg.fmt button { padding: 4px 12px 4px 20px; }
.dlg p code, .dlg li code { font: var(--fs-s) var(--mono); background: var(--lcd); color: var(--lcd-text); padding: 1px 5px; border-radius: var(--r-xs); }
.item i, .hit i { width: 3px; height: 16px; border-radius: 2px; justify-self: center; }
/* top bar: a badge is an LED and a word; the editor's initial sits on a key */
.badge { border: 0; padding: 0 0 0 12px; position: relative; color: var(--dim); }
.badge::before { content: ""; position: absolute; left: 0; top: 50%; width: var(--led); height: var(--led); margin-top: -3px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 5px var(--warn); }
.avatar { border: 0; background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-shadow); color: var(--bright); font-weight: var(--fw-on); }
/* mark colours used as text read on either body */
.tag.star, .pk-star, .dirty { color: var(--star-text); }
.tag.release, .tag.sensitive, .warn, .srcinfo .flag, .item .f, .r-pending, .r-sensitive, .dlg .extable td.r-pending, .dlg .extable td.r-sensitive, .k-exact { color: var(--warn-text); }
.r-restricted, .dlg .extable td.r-restricted, .xcheck.bad b, .xcheck em { color: var(--reject-text); }
.r-cleared, .xcheck.ok b { color: var(--ok-text); }
[data-body="light"] .tag.star::first-letter, [data-body="light"] .tag.release::first-letter, [data-body="light"] .tag.sensitive::first-letter { text-shadow: none; }

/* Phone width: one column (app.css); keys and timecode windows fit without running off the edge */
.transport .tc { white-space: nowrap; }
@media (max-width: 820px) {
  .transport { grid-template-columns: auto 1fr; gap: 8px; padding: 8px 10px; }
  .transport .tc { font-size: 13px; padding: 3px 6px; }
  .transport .tc.dur { display: none; }
  .transport .btns { justify-self: end; }
  .btns { gap: 4px; }
  .btns button { min-width: 32px; }
  #splay, #pplay { min-width: 40px; }
  .card { grid-template-columns: 3px minmax(0, 1fr); }
  .card .acts { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .lfilters input[type=search] { min-width: 0; }
}

/* ── Viewer LUTs (js/lut.js): the 709 key with its LED, the LUT menu, and the tag that says it's a view, not a grade ── */
.screen .lutcv { position: absolute; pointer-events: none; background: var(--black); }
.tabs .lutkey { font-family: var(--mono); }
.tabs .lutkey:disabled { opacity: .45; pointer-events: none; }
.tabs .lutmenu { padding-left: 11px; }
.tabs .lutmenu::before { display: none; }
.luttag { position: absolute; top: 8px; right: 8px; display: none; font: 500 var(--fs-xs) var(--ui); color: var(--lcd-text);
  background: var(--scrim); padding: 1px 7px; border-radius: var(--r-pill); pointer-events: none; }
.luttag.on { display: block; }
.luttag.no { color: var(--lcd-dim); }

/* A project switching in place (part 4b): panels dim for the moment the new project is read, and nothing takes a click */
.app.switching { pointer-events: none; cursor: progress; }
.app.switching .panel { opacity: .55; transition: opacity var(--t) var(--ease); }

/* The client's word on a shot (part 9's review view), under its grade status in the Inspector */
.clientsaid { margin-top: 8px; padding: 7px 10px; border-left: 2px solid var(--hot); background: var(--body-hi); border-radius: 0 var(--r-s) var(--r-s) 0; display: grid; gap: 2px; font-size: var(--fs); }
.clientsaid.approve { border-left-color: var(--ok); }
.clientsaid b { font-weight: 500; color: var(--bright); }
.clientsaid small { font-size: var(--fs-xs); }

/* ── Position & Scale's edit mode (js/reframe.js): a thin outline on the picture and a readout; up and down scales,
   dragging moves ── */
.screen.xfedit.xfover { cursor: ns-resize; }
.screen.xfedit.xfdrag { cursor: move; }
.screen .xfbox { position: absolute; pointer-events: none; outline: 1px solid var(--blue); outline-offset: -1px; z-index: 3; }
.screen .xfread { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; border-radius: var(--r-s); background: var(--scrim);
  font-size: var(--fs-xs); color: var(--lcd-text); white-space: nowrap; }

/* ── From the sales-page animations (20 Nov 2026) ── */
/* Snap to words: a key on the timeline's tab row, lit when on (S) */
.tabs #snapKey { flex: none; margin-left: 8px; }

/* Export's formats: keys with an LED, the name and what it's for */
.fmtkeys { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; margin-bottom: 12px; }
.fmtkey { position: relative; display: flex; align-items: flex-start; gap: 9px; padding: 9px 12px 10px; text-align: left; border-radius: var(--r-s);
  color: var(--dim); background: linear-gradient(var(--key-top), var(--key)); box-shadow: var(--key-shadow);
  transition: transform var(--t-key) var(--ease), box-shadow var(--t-key) var(--ease), color var(--t-fast); }
.fmtkey .led { flex: none; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--led-off); opacity: .6;
  transition: background var(--led-fade), box-shadow var(--led-fade), opacity var(--led-fade); }
.fmtkey b { display: block; font-weight: var(--fw-quiet); color: var(--text); }
.fmtkey small { display: block; margin-top: 2px; font-size: var(--fs-s); color: var(--dim); }
.fmtkey:hover b { color: var(--bright); }
.fmtkey:active { transform: translateY(1px); box-shadow: var(--key-pressed); }
.fmtkey.on { transform: translateY(1px); box-shadow: var(--key-pressed); }
.fmtkey.on b { color: var(--bright); font-weight: var(--fw-on); }
.fmtkey.on .led { background: var(--hot); opacity: 1; box-shadow: 0 0 6px var(--hot-glow); }

/* Send to Premiere: the hot key fills while the sequence is written, then reads Open in Premiere */
.sendpr { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.sentline { margin: 0 auto 0 0; display: none; align-items: center; gap: 7px; font-size: var(--fs-s); color: var(--text); }
.sentline.on { display: flex; }
.sentline .led-dot { background: var(--ok); box-shadow: 0 0 5px var(--ok); }
.sentline.bad { color: var(--warn); }
.sentline.bad .led-dot { background: var(--warn); box-shadow: 0 0 5px var(--warn); }
.sendkey { position: relative; overflow: hidden; min-width: 168px; }
.sendkey .fill { position: absolute; inset: 0; background: color-mix(in srgb, var(--on-hot) 24%, transparent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.sendkey.busy { cursor: progress; }
.sendkey.busy .fill { animation: sendfill 6s var(--ease) forwards; }
.sendkey.done .fill { transform: scaleX(0); }
.sendkey .lbl { position: relative; }
@keyframes sendfill { to { transform: scaleX(.92); } }

/* Story: the amber light on an empty lane (out when a card lands), the count turning over, the Starred bin */
.lm .gaplight { align-self: center; transition: opacity var(--led-fade); }
.lm .gaplight.out { animation: ledout var(--led-fade) var(--ease) forwards; }
.lm .cnt { font-weight: 400; display: inline-block; }
.lm .cnt.turn { animation: turnover var(--t-slow) var(--ease); }
@keyframes ledout { to { opacity: 0; box-shadow: none; } }
@keyframes turnover { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
.lane[data-lane="starred"] { background: color-mix(in srgb, var(--star) 6%, var(--body-hi)); }

/* Colour: the Rec. 709 key in the block's head, and the line that says the grade is on the whole camera */
.colour .lbl .col709 { margin-left: 8px; padding-top: 2px; padding-bottom: 2px; font-size: var(--fs-s); }
.colour .lbl .col709:disabled { opacity: .45; }
.colok { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; font-size: var(--fs-s); color: var(--text); }
.colok .led-dot { background: var(--ok); box-shadow: 0 0 5px var(--ok); }

/* Log's transcript margin: each bite has a ★ key; the one just made drops in lit */
.mbrow { display: flex; align-items: flex-start; gap: 4px; }
.mbrow .mb { flex: 1; min-width: 0; }
.mbstar { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -3px; border-radius: var(--r-s); background: none; border: 0; cursor: pointer; }
.mbstar .led-dot { opacity: .25; box-shadow: none; transition: opacity var(--led-fade), box-shadow var(--led-fade); }
.mbstar:hover .led-dot { opacity: .6; }
.mbstar.on .led-dot { opacity: 1; box-shadow: 0 0 5px var(--star); }
.mbrow.fresh { animation: biteDrop var(--t-slow) var(--ease); }
.mbrow.fresh .mb { background: color-mix(in srgb, var(--blue) 12%, transparent); }
@keyframes biteDrop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sendkey.busy .fill { animation: none; transform: scaleX(.92); } .lm .cnt.turn, .mbrow.fresh, .lm .gaplight.out { animation: none; } .lm .gaplight.out { opacity: 0; } }

/* The Rec track (rectrack.js): recorded takes under A1, the arm key lit in the hot colour while armed */
.heads > div.r { height: var(--track-a); }
.heads .lab.rk { background: color-mix(in srgb, var(--hot) 70%, var(--body)); }
.heads .tog.arm { color: var(--hot); }
.heads .tog.arm.on { background: var(--hot); color: var(--on-accent); box-shadow: var(--key-pressed), 0 0 8px var(--hot); }
.track.rec { background: var(--body); }
.track.rec.armed { box-shadow: inset 3px 0 0 var(--hot); }
.track.rec.off .rclip { opacity: .35; }
.rclip { position: absolute; top: 4px; bottom: 4px; border-radius: var(--r-xs); background: color-mix(in srgb, var(--hot) 22%, var(--audio-tint)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 45%, transparent); overflow: hidden; cursor: grab; }
.rclip.sel { box-shadow: inset 0 0 0 2px var(--blue); }
.rclip canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rclip .t { position: absolute; left: 5px; top: 2px; font-size: 10.5px; color: var(--muted); white-space: nowrap; pointer-events: none; }
.rclip .hd { position: absolute; top: 0; bottom: 0; width: 6px; cursor: ew-resize; } .rclip .hd.l { left: 0; } .rclip .hd.r { right: 0; }
.recrun { position: absolute; top: 4px; bottom: 4px; border-radius: var(--r-xs); background: color-mix(in srgb, var(--hot) 45%, transparent); box-shadow: inset 0 0 0 1px var(--hot); }
.recset { display: grid; gap: 10px; }
.recset label { display: grid; gap: 4px; }
.recset label.chk { display: flex; gap: 8px; align-items: baseline; }
.recmeter { position: relative; height: 10px; border-radius: var(--r-xs); background: var(--well2); overflow: hidden; cursor: pointer; }
.recmeter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--blue); }
.recmeter i.hot { background: var(--hot); }
.recmeter b { position: absolute; right: 4px; top: -2px; font-size: 9px; color: var(--hot); }
