/* Highlights Station, Phase 0.
   Dark on purpose: this is a video tool and the footage is the subject.
   One capture colour (red, for marking) and one finish colour (mint, for
   export). Everything else is neutral so the frame stays the brightest thing
   on screen. */

:root {
  color-scheme: dark;

  --ground: #0b0d10;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --surface-3: #232831;
  --line: #272d37;
  --line-soft: #1e232b;
  --text: #e9edf3;
  --dim: #8d97a6;
  --dimmer: #5f6878;

  --mark: #ff3b47;
  --mark-soft: #ff3b4722;
  --go: #2ee6a8;
  --go-soft: #2ee6a81f;

  --ace: #ffd43b;
  --kill: #ff6b3d;
  --block: #9b8cff;
  --dig: #2ee6a8;
  --good: #56a9ff;
  --teach: #ff8fb1;

  --r: 10px;
  --r-lg: 16px;
  --bar-h: 52px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --shadow: 0 18px 50px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }

/* A layout class on an element with [hidden] wins over the UA stylesheet,
   which is how both tab panes ended up on screen together. */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--ground);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

kbd {
  font: 600 11px/1 var(--mono);
  padding: 4px 6px;
  border-radius: 5px;
  background: #ffffff14;
  border: 1px solid #ffffff14;
  color: var(--dim);
}

button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ───────────────────────── Top bar ───────────────────────── */

.bar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }

.brand-mark {
  width: 16px; height: 16px; border-radius: 4px;
  background: linear-gradient(140deg, var(--mark), #ff8a3d);
  box-shadow: 0 0 0 3px var(--mark-soft);
  flex: none;
}

.brand-name { font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }

.brand-phase {
  font: 600 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dimmer);
  border: 1px solid var(--line);
  padding: 4px 6px;
  border-radius: 5px;
}

.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.chip {
  display: flex; align-items: baseline; gap: 8px;
  min-width: 0;
  max-width: 42vw;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}
.chip:hover { border-color: var(--surface-3); }
.chip-label { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-meta { color: var(--dimmer); font: 500 12px/1 var(--mono); white-space: nowrap; }

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--dim);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.ghost:hover { color: var(--text); border-color: var(--surface-3); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dimmer); flex: none; }
.dot.ok { background: var(--go); box-shadow: 0 0 8px var(--go); }
.dot.warn { background: var(--ace); }
.dot.bad { background: var(--mark); }

/* ───────────────────────── Landing ───────────────────────── */

.landing {
  min-height: calc(100dvh - var(--bar-h));
  display: grid;
  place-items: center;
  padding: 32px 20px 60px;
}

.landing-inner { width: min(640px, 100%); text-align: center; }

.landing h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  font-weight: 700;
}

.lede { color: var(--dim); font-size: 16px; margin: 0 auto 30px; max-width: 48ch; }

.drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 44px 24px;
  display: grid;
  gap: 8px;
  justify-items: center;
  transition: border-color .15s, background .15s, transform .15s;
}
.drop:hover, .drop:focus-visible { border-color: var(--mark); background: #16191f; outline: none; }
.drop.over { border-color: var(--mark); background: var(--mark-soft); transform: scale(1.01); }
.drop-icon { width: 28px; height: 28px; color: var(--dim); margin-bottom: 4px; }
.drop strong { font-size: 17px; font-weight: 600; }
.drop span { color: var(--dimmer); font-size: 13px; }

.link {
  background: none; border: 0; color: var(--go);
  margin-top: 16px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}

.landing-notes {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  text-align: left;
  color: var(--dimmer);
  font-size: 13px;
}
.landing-notes li { padding-left: 16px; position: relative; }
.landing-notes li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.landing-notes b { color: var(--dim); font-weight: 600; }

/* ───────────────────────── Workspace ───────────────────────── */

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  height: calc(100dvh - var(--bar-h));
}

.stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  background: #000;
  border-right: 1px solid var(--line-soft);
}

.screen {
  position: relative;
  min-height: 0;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.frame {
  position: relative;
  display: grid;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
}

.frame video, .frame canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: #000;
}

.screen-tap { position: absolute; inset: 0; background: none; border: 0; }

.screen-badge {
  position: absolute; top: 12px; left: 12px;
  font: 600 11px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #000000aa;
  backdrop-filter: blur(6px);
  border: 1px solid #ffffff1f;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--go);
}

/* The on-screen caption during marking. The rendered one is drawn on canvas by
   caption.js; this is the DOM twin so the editor sees roughly what burns in. */
.screen-caption {
  position: absolute;
  left: 4%; bottom: 7%;
  max-width: 70%;
  pointer-events: none;
}
.screen-caption b { display: block; font-size: clamp(14px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 14px #000c; }
.screen-caption i { display: block; font-style: normal; font-size: clamp(11px, 1.5vw, 15px); color: #ffffffcc; text-shadow: 0 2px 10px #000c; }

/* Transport */

.transport { padding: 10px 14px 6px; background: var(--surface); border-top: 1px solid var(--line-soft); }

.times { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.tc { font: 600 13px/1 var(--mono); letter-spacing: -.02em; }
.tc-dim { color: var(--dimmer); font-weight: 500; }

.scrub { position: relative; height: 26px; cursor: pointer; touch-action: none; }
.scrub-track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--surface-3); }
.scrub-played { position: absolute; top: 11px; left: 0; height: 4px; border-radius: 2px; background: var(--dim); width: 0; }
.scrub-head {
  position: absolute; top: 6px; width: 3px; height: 14px; border-radius: 2px;
  background: var(--text); left: 0; transform: translateX(-1px);
  box-shadow: 0 0 0 4px #0b0d1066;
}
.scrub-marks { position: absolute; top: 4px; left: 0; right: 0; height: 18px; }
.scrub-marks i {
  position: absolute; top: 3px; height: 10px; min-width: 2px;
  border-radius: 2px; background: var(--good); opacity: .85;
}
.scrub-marks i.on { outline: 1px solid var(--text); opacity: 1; top: 1px; height: 14px; }

.controls { display: flex; align-items: center; gap: 4px; padding: 4px 0 2px; }
.controls-gap { flex: 1; }

.tbtn {
  background: none; border: 0; color: var(--dim);
  width: 38px; height: 38px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 1px;
}
.tbtn span { font: 600 10px/1 var(--mono); }
.tbtn:hover { color: var(--text); background: var(--surface-2); }
.tbtn-play { color: var(--text); width: 44px; height: 44px; background: var(--surface-2); }
.tbtn-play:hover { background: var(--surface-3); }
.tbtn-play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.i-pause { display: none; }
body.playing .i-play { display: none; }
body.playing .i-pause { display: block; }

.rate { display: flex; align-items: center; gap: 7px; color: var(--dimmer); font-size: 12px; }
.rate select {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 8px; font: 600 12px/1 var(--mono); color: var(--text);
}

/* Mark rail */

.markrail {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.labels { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }

.lab {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--dim);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px; font-weight: 550;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.lab i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.lab:hover { color: var(--text); }
.lab.on { color: var(--text); border-color: currentColor; background: var(--surface-3); }
.lab[data-skill=ace] i { color: var(--ace); }
.lab[data-skill=kill] i { color: var(--kill); }
.lab[data-skill=block] i { color: var(--block); }
.lab[data-skill=dig] i { color: var(--dig); }
.lab[data-skill=good] i { color: var(--good); }
.lab[data-skill=teach] i { color: var(--teach); }

.mark {
  flex: none;
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--mark);
  border: 0; border-radius: 12px;
  padding: 11px 16px;
  color: #fff; font-weight: 650;
  box-shadow: 0 6px 24px -8px var(--mark);
  transition: transform .08s;
}
.mark:active { transform: scale(.97); }
.mark-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; flex: none; }
.mark-text { display: grid; text-align: left; line-height: 1.15; }
.mark-text small { font-size: 11px; font-weight: 500; opacity: .75; }
.mark kbd { background: #ffffff2e; border-color: #ffffff2e; color: #fff; }

@keyframes flash { from { box-shadow: 0 0 0 0 var(--mark); } to { box-shadow: 0 0 0 26px transparent; } }
.mark.hit { animation: flash .45s ease-out; }

/* ───────────────────────── Panel ───────────────────────── */

.panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface);
  min-width: 0;
}

.tabs { display: flex; border-bottom: 1px solid var(--line-soft); }
.tab {
  flex: 1; background: none; border: 0; padding: 14px 10px;
  color: var(--dimmer); font-weight: 600; font-size: 13px;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.tab b {
  font: 600 11px/1 var(--mono);
  background: var(--surface-3); color: var(--dim);
  padding: 3px 6px; border-radius: 5px; min-width: 20px;
}
.tab:hover { color: var(--dim); }
.tab.is-on { color: var(--text); border-bottom-color: var(--mark); }
.tab.is-on b { background: var(--mark-soft); color: var(--mark); }

.tabpane { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
#paneReel { grid-template-rows: auto minmax(0, 1fr) auto; }

.empty { color: var(--dimmer); font-size: 13px; padding: 22px 18px; margin: 0; text-align: center; }
.empty kbd { margin: 0 2px; }

/* Clip cards */

.cliplist, .reellist { list-style: none; margin: 0; padding: 10px; overflow-y: auto; display: grid; gap: 8px; align-content: start; }

.clip {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 8px;
  transition: border-color .12s, background .12s;
}
.clip:hover { background: var(--surface-3); }
.clip.sel { border-color: var(--mark); }

.clip-thumb {
  width: 76px; aspect-ratio: 16/9;
  border-radius: 6px; background: #000; object-fit: cover; display: block;
  cursor: pointer;
}

.clip-body { min-width: 0; display: grid; gap: 5px; align-content: start; }

.clip-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.clip-title {
  background: none; border: 0; padding: 0;
  font-weight: 600; font-size: 13.5px; color: var(--text);
  min-width: 0; flex: 1; outline: none;
}
.clip-title::placeholder { color: var(--dimmer); font-weight: 500; }
.clip-title:focus { color: var(--go); }

.tag {
  font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 6px; border-radius: 5px; flex: none;
  background: var(--surface-3); color: var(--dim);
}
.tag[data-skill=ace] { color: var(--ace); background: #ffd43b1a; }
.tag[data-skill=kill] { color: var(--kill); background: #ff6b3d1a; }
.tag[data-skill=block] { color: var(--block); background: #9b8cff1a; }
.tag[data-skill=dig] { color: var(--dig); background: #2ee6a81a; }
.tag[data-skill=good] { color: var(--good); background: #56a9ff1a; }
.tag[data-skill=teach] { color: var(--teach); background: #ff8fb11a; }

.clip-nums { display: flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); color: var(--dimmer); }
.clip-nums b { color: var(--dim); font-weight: 600; }

.clip-acts { display: flex; align-items: center; gap: 3px; margin-top: 1px; }
.mini {
  background: none; border: 1px solid var(--line); color: var(--dimmer);
  border-radius: 6px; height: 25px; min-width: 25px; padding: 0 6px;
  font: 600 11px/1 var(--mono);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.mini:hover { color: var(--text); border-color: var(--surface-3); background: var(--surface-3); }
.mini.add { color: var(--go); border-color: #2ee6a844; }
.mini.added { background: var(--go-soft); color: var(--go); border-color: var(--go); }
.mini.del:hover { color: var(--mark); border-color: var(--mark); background: var(--mark-soft); }
.mini svg { width: 13px; height: 13px; }
.mini-gap { flex: 1; }

.step {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; height: 25px;
}
.step b { font: 600 10px/1 var(--mono); text-transform: uppercase; color: var(--dimmer); padding: 0 6px; }
.step button { background: none; border: 0; color: var(--dim); width: 22px; height: 23px; font: 600 13px/1 var(--mono); }
.step button:hover { background: var(--surface-3); color: var(--text); }

/* Reel */

.reelhead { padding: 12px; display: grid; gap: 11px; border-bottom: 1px solid var(--line-soft); }

.budget-bar { position: relative; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.budget-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--go); border-radius: 3px; transition: width .2s; }
.budget-bar.over i { background: var(--mark); }
.budget-bar u { position: absolute; top: 0; bottom: 0; width: 1px; background: #ffffff44; }
.budget-text { font: 500 12px/1 var(--mono); color: var(--dimmer); }
.budget-text span { color: var(--text); font-weight: 600; }
.budget-bar.over + .budget-text span { color: var(--mark); }

.aspect { display: flex; gap: 6px; }
.asp {
  flex: 1; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px; color: var(--dim);
  font: 600 13px/1.2 var(--mono);
  display: grid; gap: 2px; justify-items: center;
}
.asp small { font: 500 10px/1 var(--sans); color: var(--dimmer); }
.asp.is-on { border-color: var(--go); color: var(--go); background: var(--go-soft); }

.reel-item {
  display: grid;
  grid-template-columns: 22px 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 7px;
}
.reel-item.drag { opacity: .35; }
.reel-item.over { border-color: var(--go); }
.reel-grip { color: var(--dimmer); cursor: grab; display: grid; justify-items: center; gap: 1px; font: 600 11px/1 var(--mono); }
.reel-grip svg { width: 14px; height: 14px; }
.reel-item img { width: 60px; aspect-ratio: 16/9; border-radius: 5px; object-fit: cover; background: #000; }
.reel-meta { min-width: 0; display: grid; gap: 3px; }
.reel-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-sub { font: 500 11px/1 var(--mono); color: var(--dimmer); }
.reel-right { display: grid; gap: 4px; justify-items: end; }
.reel-right select {
  background: var(--surface-3); border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 5px; font: 600 11px/1 var(--mono); color: var(--dim);
}
.crop { width: 86px; }
.crop input { width: 100%; accent-color: var(--go); height: 14px; }

.reelfoot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }

.btn {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  border-radius: 9px; padding: 11px 16px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.btn:hover { background: var(--surface-3); }
.btn-ghost { flex: none; color: var(--dim); }
.btn-go { flex: 1; background: var(--go); border-color: var(--go); color: #06221a; }
.btn-go:hover { background: #4df0b8; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ───────────────────────── Sheets ───────────────────────── */

.sheet {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: 24px;
  width: min(460px, calc(100vw - 32px));
  box-shadow: var(--shadow);
  position: relative;
}
.sheet::backdrop { background: #04060ab8; backdrop-filter: blur(3px); }
.sheet h2 { margin: 0 0 16px; font-size: 19px; letter-spacing: -.02em; }
.sheet-x {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 0; color: var(--dimmer); font-size: 22px; line-height: 1;
  width: 28px; height: 28px; border-radius: 6px;
}
.sheet-x:hover { color: var(--text); background: var(--surface-2); }
.sheet video { width: 100%; border-radius: var(--r); background: #000; margin-bottom: 16px; max-height: 46vh; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; margin: 0 0 16px; }
.facts > div { background: var(--surface-2); padding: 10px 12px; }
.facts dt { font-size: 11px; color: var(--dimmer); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.facts dd { margin: 0; font: 600 13px/1.3 var(--mono); }

.opts { display: grid; gap: 10px; margin-bottom: 16px; }
.opt { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--dim); }
.opt input[type=checkbox] { accent-color: var(--go); width: 16px; height: 16px; }
.opt-row { justify-content: space-between; }
.opt-row select { background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 13px; }

.note { color: var(--dimmer); font-size: 12.5px; margin: 14px 0 0; }
.note.warn { color: var(--ace); }

.prog { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-bottom: 12px; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--go), #7ef5cd); transition: width .25s; }
.prog-text { display: flex; justify-content: space-between; font: 600 13px/1 var(--mono); margin: 0 0 18px; }

.donerow { display: flex; gap: 8px; }

.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.caps li { background: var(--surface-2); padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.caps li span { margin-left: auto; font: 600 12px/1 var(--mono); color: var(--dim); }

/* ───────────────────────── Toasts ───────────────────────── */

.toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; gap: 6px; z-index: 60; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  pointer-events: auto;
  animation: rise .22s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.toast.out { opacity: 0; transition: opacity .2s; }
.toast b { color: var(--go); }
.toast button { background: none; border: 0; color: var(--mark); font-weight: 600; font-size: 13px; padding: 0; }

/* ───────────────────────── Narrow ───────────────────────── */

@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; grid-template-rows: auto minmax(220px, 40dvh); height: auto; min-height: calc(100dvh - var(--bar-h)); }
  .stage { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .screen { aspect-ratio: 16/9; }
  .panel { min-height: 0; }
  .markrail { flex-wrap: wrap; }
  .mark { width: 100%; justify-content: center; }
  .mark kbd { display: none; }
  .chip { max-width: 40vw; flex: 1; }
  .brand-name, .brand-phase { display: none; }
  .caps-text { display: none; }
  .ghost { padding: 7px 10px; }
  .bar { gap: 8px; }

  /* All six labels on screen at once. A label you have to swipe to reach is a
     label nobody taps, and D6 exists to keep tagging fast. */
  .labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .lab { justify-content: center; padding: 11px 6px; font-size: 12.5px; }
  .markrail { flex-direction: column; align-items: stretch; gap: 10px; }
  .toasts { bottom: 12px; }
  .chip-meta { display: none; }
  .chip-label { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
