/* Frame: a dark, professional review room. The picture fills the screen; purple marks what you act on, green means approved. */
:root {
  --bg: #0f0f12;
  --panel: #16161a;
  --raised: #1e1e23;
  --hover: #26262c;
  --sunk: #0b0b0e;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .12);
  --fg: #ededf2;
  --fg-2: #b9b9c4;
  --muted: #7f7f8c;
  --accent: #7c6cff;
  --accent-2: #9a8dff;
  --accent-soft: rgba(124, 108, 255, .16);
  --accent-ink: #ffffff;
  --mark: var(--accent);
  --mark-soft: var(--accent-soft);
  --go: #2fcf8a;
  --go-soft: rgba(47, 207, 138, .14);
  --go-ink: #04140c;
  --warn: #f4b544;
  --warn-soft: rgba(244, 181, 68, .14);
  --danger: #ff5d5d;
  --screen: #000;
  --glow: rgba(124, 108, 255, .35);
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --r: 8px;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .05);
  --lift: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -8px rgba(0, 0, 0, .55);
  --top: 52px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f7; --panel: #ffffff; --raised: #f5f5f8; --hover: #ececf1; --sunk: #eeeef2; --line: rgba(20, 20, 40, .08); --line-2: rgba(20, 20, 40, .14); --hi: inset 0 1px 0 rgba(255,255,255,.8); --lift: 0 1px 2px rgba(20,20,40,.06), 0 8px 24px -10px rgba(20,20,40,.18);
  --fg: #15151a; --fg-2: #44444f; --muted: #6e6e7a; --accent: #5b4cf0; --accent-2: #4b3ce0; --accent-soft: rgba(91, 76, 240, .1);
  --go: #0f9a5c; --go-soft: rgba(15, 154, 92, .1); --go-ink: #fff; --warn: #b47400; --warn-soft: rgba(180, 116, 0, .1); --danger: #d93636;
  --screen: #0b0b0e; --glow: rgba(91, 76, 240, .25); --shadow: 0 16px 40px rgba(0, 0, 0, .12);
  color-scheme: light;
}

* { box-sizing: border-box }
html, body { margin: 0; min-height: 100% }
body { background: var(--bg); color: var(--fg); font: 14px/1.45 var(--body); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01" }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
button:disabled { opacity: .4; cursor: default }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
a { color: inherit }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums }
.muted { color: var(--muted) }
.spacer { flex: 1 }
[hidden] { display: none !important }
kbd { font: 10.5px var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--raised); color: var(--fg-2) }
::-webkit-scrollbar { width: 10px; height: 10px }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 1px solid var(--line-2); background: var(--raised); border-radius: 7px;
  padding: 0 12px; font-weight: 500; font-size: 13px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s var(--ease), box-shadow .15s }
.btn:hover:not(:disabled) { background: var(--hover) }
.btn:active:not(:disabled) { transform: scale(.97) }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 6px }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-2) }
.btn.ghost:hover:not(:disabled) { background: var(--hover); color: var(--fg) }
.btn.go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) }
.btn.go:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2) }
#approve.btn.go { background: var(--go); border-color: var(--go); color: var(--go-ink) }
#approve.btn.go:hover:not(:disabled) { filter: brightness(1.08) }
.btn.warn { background: transparent; color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent) }
.btn.warn:hover:not(:disabled) { background: var(--warn-soft) }
.btn.on { background: var(--accent-soft); color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 50%, transparent) }
.btn.danger { color: var(--danger) }
.icon-btn { width: 32px; height: 32px; border-radius: 7px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; font-size: 14px; color: var(--muted) }
.icon-btn:hover { color: var(--fg); background: var(--hover) }
.chip-btn { height: 26px; border: none; background: transparent; color: var(--fg-2); border-radius: 6px; padding: 0 8px; font: 500 11.5px var(--mono) }
.chip-btn:hover { color: var(--fg); background: var(--hover) }
.chip-btn[aria-pressed="true"] { color: var(--accent-2); background: var(--accent-soft) }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 12px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); background: var(--panel); border-bottom: 1px solid var(--line) }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; padding-right: 12px; border-right: 1px solid var(--line); height: 28px }
.brand svg { width: 22px; height: 22px; color: var(--accent) }
.brand span { font-weight: 700; font-size: 15px; letter-spacing: -.01em }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px }
.crumbs a:hover { color: var(--fg) }
.crumbs b { color: var(--fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw }
.crumbs .sep { opacity: .5 }
.crumbs .role { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); background: var(--accent-soft); border-radius: 5px; padding: 3px 7px }
.top-actions { display: flex; gap: 6px }
.meter { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--fg-2); margin-right: 6px }
.meter .bar { width: 96px; height: 4px; border-radius: 99px; background: var(--raised); overflow: hidden }
.meter .bar i { display: block; height: 100%; width: 0; background: var(--go); border-radius: 99px; transition: width .6s var(--spring) }
@media (max-width: 760px) {
  .top { height: auto; min-height: var(--top); flex-wrap: wrap; padding-block: 8px }
  .brand { border-right: none; padding-right: 0 }
  .meter .bar { width: 60px }
}

main { min-height: calc(100dvh - var(--top)) }

/* ---------- login & messages ---------- */
.login { min-height: calc(100dvh - var(--top)); display: grid; place-items: center; padding: 16px;
  background: radial-gradient(600px 300px at 50% 30%, var(--accent-soft), transparent 70%) }
.login form { width: min(360px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow) }
.login h1 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0 }
.login p { margin: 0; color: var(--muted); font-size: 13.5px }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--fg-2) }
.field input, .field select, .field textarea { height: 36px; border: 1px solid var(--line-2); background: var(--sunk); border-radius: 7px; padding: 0 11px; font-size: 14px; color: var(--fg); transition: border-color .15s, box-shadow .15s }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.err { color: var(--danger); font-size: 12.5px; min-height: 1.2em }

/* ---------- projects ---------- */
.home { max-width: 1400px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)) }
.home-head { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 4px 0 20px }
.home-head h1 { font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin: 0 }
.home-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px }
.pcard { display: grid; gap: 10px; text-decoration: none; border-radius: 10px }
.pcard .pthumb { aspect-ratio: 16 / 10; background: var(--raised) center / cover no-repeat; position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease) }
.pcard:hover .pthumb { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(0,0,0,.35); transform: translateY(-2px) }
.pcard .pthumb video, .pcard .pthumb img { width: 100%; height: 100%; object-fit: cover; display: block }
.pcard .pthumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); font-weight: 700; font-size: 40px }
.pcard .pinfo { display: grid; gap: 4px; padding: 0 2px }
.pcard .pname { font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere }
.pcard .pmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted) }
.newcard { border: 1px dashed var(--line-2); background: transparent; border-radius: 10px; aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--muted); font-weight: 500; font-size: 13px;
  transition: border-color .2s, color .2s, background .2s }
.newcard:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft) }
.newcard b { display: block; font-weight: 300; font-size: 32px; line-height: 1; text-align: center; margin-bottom: 6px }
.chip { font: 500 10.5px var(--mono); border-radius: 5px; padding: 2px 6px; background: var(--raised); color: var(--fg-2); display: inline-block; white-space: nowrap }
.chip.open { background: var(--accent-soft); color: var(--accent-2) }
.chip.ok { background: var(--go-soft); color: var(--go) }
.chip.rev { background: var(--warn-soft); color: var(--warn) }

/* ---------- review desk ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) 368px; height: calc(100dvh - var(--top)) }
.stage { display: flex; flex-direction: column; gap: 0; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg) }
.screen { flex: 1 1 0; min-height: 240px; background: var(--screen); overflow: hidden; position: relative; display: grid; grid-template-columns: 1fr; gap: 2px }
.screen.split { grid-template-columns: 1fr 1fr }
.screen:fullscreen { height: 100vh }
.pane { position: relative; min-width: 0; overflow: hidden }
.pane video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block }
.pane-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font: 600 11px var(--mono); background: rgba(0,0,0,.65); color: #fff; padding: 3px 8px; border-radius: 5px; backdrop-filter: blur(6px) }
#ink { position: absolute; pointer-events: none; z-index: 1; touch-action: none }
#ink.live { pointer-events: auto; cursor: crosshair }
.empty { color: #8a8a96; text-align: center; padding: 24px; position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; justify-items: center; font-size: 13.5px }
.empty b { color: #fff; font-weight: 600; font-size: 16px }
.drop-hint { position: absolute; inset: 12px; border: 2px dashed var(--accent); border-radius: 10px; display: none; place-items: center; color: #fff; font-weight: 600; background: rgba(15,15,18,.7); z-index: 3 }
.screen.dropping .drop-hint { display: grid }

.controls { background: var(--panel); border-top: 1px solid var(--line); padding: 8px 14px 6px; display: grid; gap: 4px }
.track { position: relative; height: 28px; cursor: pointer; touch-action: none }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; background: var(--raised) }
.track .buf { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--line-2); border-radius: 99px; pointer-events: none }
.track .fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--accent); border-radius: 99px; pointer-events: none }
.track:hover::before, .track:hover .buf, .track:hover .fill { height: 6px; margin-top: -3px }
.track .head { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 1px 4px rgba(0,0,0,.5) }
.pin { position: absolute; top: -4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: none; background: var(--accent); color: #fff;
  font: 700 8.5px/16px var(--mono); text-align: center; padding: 0; transition: transform .15s var(--spring), filter .15s; z-index: 1; box-shadow: 0 2px 6px rgba(0,0,0,.4) }
.pin::after { content: attr(data-n); display: block; transform: rotate(45deg) }
.pin:hover, .pin.hot { transform: rotate(-45deg) scale(1.25); z-index: 2; filter: brightness(1.15) }
.pin.fixed { background: var(--go); color: var(--go-ink) }
.transport { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.play { width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent; color: var(--fg); display: grid; place-items: center; transition: background .15s, transform .1s var(--ease) }
.play:hover { background: var(--hover) }
.play svg { width: 18px; height: 18px; fill: currentColor }
.play:active { transform: scale(.9) }
.tc { font-size: 13px; font-weight: 600; color: var(--fg) }
.tc-dur { color: var(--muted); font-size: 12px }

.verbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 14px; background: var(--panel); border-top: 1px solid var(--line) }
.decided { font-size: 12px; color: var(--muted); margin-right: 4px }
.decided b { color: var(--go); font-weight: 600 }
.decided b.rev { color: var(--warn) }
.menu { position: relative }
.pop { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 25; width: 280px; background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px;
  box-shadow: var(--shadow); display: grid; gap: 1px; animation: drop .16s var(--ease) }
@keyframes drop { from { opacity: 0; transform: translateY(4px) } }
.pop h4 { margin: 7px 8px 3px; font: 600 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted) }
.pop button, .pop a { text-align: left; border: none; background: none; border-radius: 6px; padding: 7px 8px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none }
.pop button:hover, .pop a:hover { background: var(--hover) }
.pop button[aria-checked="true"] { color: var(--accent-2); font-weight: 600 }
.pop button.danger { color: var(--danger) }
.pop .sub { color: var(--muted); font-size: 12px; font-weight: 400 }

.strip-wrap { display: grid; gap: 6px; padding: 10px 14px 12px; background: var(--panel); border-top: 1px solid var(--line) }
.strip-head { display: flex; align-items: baseline; gap: 8px }
.strip-head h3 { margin: 0; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.strip-head .muted { font-size: 11.5px }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scroll-snap-type: x proximity }
.strip > * { flex: 0 0 196px; scroll-snap-align: start }
.card { position: relative; border: 1px solid var(--line); background: var(--raised); border-radius: 8px; padding: 5px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px;
  align-items: center; text-align: left; transition: border-color .15s, background .15s }
.card:hover { background: var(--hover) }
.card[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft) }
.card.dropping { border-color: var(--accent); background: var(--accent-soft) }
.card .thumb { width: 38px; aspect-ratio: 9 / 16; border-radius: 5px; background: var(--screen); overflow: hidden; position: relative }
.card .thumb img, .card .thumb video { width: 100%; height: 100%; object-fit: cover; display: block }
.card .thumb .tick { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--go) 70%, transparent); color: var(--go-ink); font-size: 15px; font-weight: 800 }
.card .thumb .tick.rev { background: color-mix(in srgb, var(--warn) 70%, transparent) }
.card .nm { font-size: 12.5px; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; padding-right: 16px }
.card .sub { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px }
.card .more { position: absolute; top: 3px; right: 3px; border: none; background: none; color: var(--muted); padding: 1px 6px; border-radius: 5px; font-size: 13px; line-height: 1.2 }
.card .more:hover { background: var(--line-2); color: var(--fg) }
.addcard { border: 1px dashed var(--line-2); background: transparent; border-radius: 8px; min-height: 76px; color: var(--muted); font-weight: 500; font-size: 12.5px; transition: border-color .15s, color .15s, background .15s }
.addcard:hover, .addcard.dropping { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft) }
details.arch summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 2px 0 }
details.arch .strip { margin-top: 6px }

/* ---------- comment rail ---------- */
.rail { background: var(--panel); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; overflow: hidden }
.rail-head { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; min-height: 52px }
.rail-title { min-width: 0; flex: 1 }
.rail-title h2 { font-weight: 600; font-size: 14px; line-height: 1.2; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rail-title span { font-size: 11px }
.seg { display: flex; background: var(--sunk); border: 1px solid var(--line); border-radius: 7px; padding: 2px }
.seg button { border: none; background: none; border-radius: 5px; padding: 3px 10px; font-size: 12px; font-weight: 500; color: var(--muted) }
.seg button[aria-selected="true"] { background: var(--hover); color: var(--fg) }
.notes { overflow-y: auto; min-height: 140px; overscroll-behavior: contain }
.none { color: var(--muted); padding: 32px 22px; font-size: 13px; text-align: center; line-height: 1.5 }
.note { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); animation: rise .3s var(--ease) both; transition: background .15s; cursor: pointer }
@keyframes rise { from { opacity: 0; transform: translateY(4px) } }
.note:hover { background: color-mix(in srgb, var(--hover) 50%, transparent) }
.note.hot { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent) }
.note.fixed .body > .text { color: var(--muted) }
.note .num { width: 24px; height: 24px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-2); color: var(--fg-2); font: 600 10.5px/22px var(--mono); text-align: center }
.note.fixed .num { background: var(--go-soft); border-color: transparent; color: var(--go) }
.note .body { display: grid; gap: 5px; min-width: 0 }
.note .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap }
.note .meta b { color: var(--fg); font-weight: 600; font-size: 13px }
.note .jump { border: none; background: var(--accent-soft); color: var(--accent-2); padding: 1px 6px; border-radius: 5px; font: 600 11.5px var(--mono) }
.note.fixed .jump { background: var(--raised); color: var(--muted) }
.note .tag { font: 500 10.5px var(--mono); color: var(--fg-2); background: var(--raised); border-radius: 4px; padding: 1px 5px }
.note .text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.5 }
.note .acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 1px }
.note .acts button { border: none; background: none; padding: 0; font-size: 12px; color: var(--muted); font-weight: 500 }
.note .acts button:hover { color: var(--fg) }
.note .acts .resolve.on { color: var(--go) }
.replies { display: grid; gap: 8px; border-left: 2px solid var(--line-2); padding-left: 10px; margin-top: 4px }
.reply .who { font-size: 12px; color: var(--muted) }
.reply .who b { color: var(--fg); font-weight: 600 }
.reply.claude .who b { color: var(--accent-2) }
.reply .text { font-size: 13px }
.reply-box { display: flex; gap: 6px }
.reply-box input { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--line-2); background: var(--sunk); border-radius: 6px; padding: 0 9px; font-size: 13px }
.reply-box input:focus { outline: none; border-color: var(--accent) }
.audio { display: flex; align-items: center; gap: 8px; background: var(--raised); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 3px; width: fit-content; font: 500 11.5px var(--mono); color: var(--fg-2) }
.audio button { width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 9px; padding: 0 }

.composer { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: grid; gap: 8px; background: var(--panel) }
.comp-top { display: flex; align-items: center; gap: 4px; flex-wrap: wrap }
.time-chip { height: 24px; border: none; background: var(--accent-soft); color: var(--accent-2); border-radius: 6px; padding: 0 8px; font-size: 11.5px; font-weight: 600 }
.time-chip.off { background: var(--raised); color: var(--muted); text-decoration: line-through }
.tools { display: flex; align-items: center; gap: 1px }
.tool { width: 27px; height: 26px; border-radius: 6px; border: none; background: none; color: var(--muted); font-size: 14px; line-height: 1; padding: 0 }
.tool:hover { color: var(--fg); background: var(--hover) }
.tool.on { color: var(--accent-2); background: var(--accent-soft) }
.swatches { display: flex; gap: 3px; margin: 0 4px }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 2px solid transparent; padding: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15) }
.swatch.on { border-color: var(--fg) }
.comp-box { position: relative; display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line-2); background: var(--sunk); border-radius: 9px; padding: 5px 5px 5px 10px; transition: border-color .15s, box-shadow .15s }
.comp-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.comp-box textarea { flex: 1; min-width: 0; border: none; background: none; resize: none; outline: none; font-size: 13.5px; padding: 5px 0; max-height: 40vh; field-sizing: content; min-height: 2.5em }
.mic { position: relative; flex: none; width: 34px; height: 34px; border-radius: 8px; border: none; background: var(--raised); color: var(--fg-2); display: grid; place-items: center; padding: 0; overflow: hidden; transition: background .15s, color .15s, transform .1s }
.mic:hover:not(:disabled) { background: var(--hover); color: var(--fg) }
.mic svg { width: 17px; height: 17px; fill: currentColor; position: relative; z-index: 1 }
.mic:active { transform: scale(.92) }
.mic .lvl { position: absolute; inset: auto 0 0 0; height: 0; background: rgba(255,255,255,.3); transition: height .08s linear }
.mic.rec { background: var(--danger); color: #fff; animation: pulse 1.3s infinite }
.mic.busy { color: var(--accent-2); animation: spin 1s linear infinite }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 55%, transparent) } 50% { box-shadow: 0 0 0 7px transparent } }
@keyframes spin { to { transform: rotate(360deg) } }
.voice-chip { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2) }
.voice-chip .rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 1.3s infinite }
.voice-chip button { border: none; background: none; color: var(--muted); text-decoration: underline; padding: 0; font-size: 12px }
.comp-row { display: flex; align-items: center; gap: 6px; justify-content: flex-end }
.comp-row .hint { margin-right: auto; font-size: 11px }
.readonly { border-top: 1px solid var(--line); padding: 16px; color: var(--muted); font-size: 13px; text-align: center }

.keys { padding: 8px 14px 10px; color: var(--muted); font-size: 11.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; background: var(--panel) }
@media (hover: none) { .keys, .comp-row .hint { display: none } }
@media (max-height: 760px) { .keys { display: none } }

@media (max-width: 980px) {
  .desk { grid-template-columns: minmax(0, 1fr); height: auto }
  .stage { overflow: visible }
  .screen { flex: none; height: min(62vh, 640px) }
  .rail { border-left: none; border-top: 1px solid var(--line) }
  .notes { max-height: 60vh }
  .keys { display: none }
}

/* ---------- uploads, toast, dialog ---------- */
.uploads { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; width: min(320px, calc(100vw - 32px));
  background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px; display: grid; gap: 10px }
.up { display: grid; gap: 5px; font-size: 12.5px }
.up .row { display: flex; gap: 8px; justify-content: space-between }
.up .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500 }
.up .bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden }
.up .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear }
.up.err .bar i { background: var(--danger) }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--raised); color: var(--fg); border: 1px solid var(--line-2); padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: 13px; box-shadow: var(--shadow); transition: opacity .2s, transform .25s var(--spring); max-width: calc(100vw - 32px) }
.toast.show { opacity: 1; transform: translate(-50%, 0) }
dialog { border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); border-radius: 12px; padding: 0; width: min(500px, calc(100vw - 32px)); box-shadow: var(--shadow) }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px) }
dialog[open] { animation: dlg .2s var(--ease) }
@keyframes dlg { from { opacity: 0; transform: scale(.97) translateY(4px) } }
.dlg { padding: 20px; display: grid; gap: 14px }
.dlg h2 { margin: 0; font-weight: 600; font-size: 17px; letter-spacing: -.01em }
.dlg p { margin: 0; color: var(--muted); font-size: 13px }
.dlg .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr } }
.role-opt { border: 1px solid var(--line-2); background: var(--sunk); border-radius: 9px; padding: 10px; text-align: left; display: grid; gap: 3px; transition: border-color .15s, background .15s }
.role-opt b { font-size: 13px; font-weight: 600 }
.role-opt span { font-size: 11.5px; color: var(--muted); line-height: 1.35 }
.role-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft) }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr } }
.links { display: grid; gap: 6px; max-height: 220px; overflow: auto }
.link { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px }
.link .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.link button { border: none; background: none; color: var(--muted); font-weight: 500; font-size: 12px; padding: 2px 4px }
.link button:hover { color: var(--fg) }
.newlink { display: flex; gap: 8px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 6px 6px 6px 10px; align-items: center }
.newlink input { flex: 1; min-width: 0; border: none; background: none; font: 12.5px var(--mono); color: var(--fg); outline: none }

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 80; width: 100%; height: 100% }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }

/* ---------- phase 2: nav, board, calendar, team ---------- */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none }
.tab { height: 30px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--fg-2); text-decoration: none; white-space: nowrap }
.tab:hover { background: var(--hover); color: var(--fg) }
.tab.on { background: var(--raised); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2) }
.crumb-client { display: inline-flex; align-items: center; gap: 6px }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--muted)) }
.icon-btn.sm { width: 24px; height: 24px; font-size: 15px }
.filter-sel, .search, .date-in, .status-sel { height: 30px; border: 1px solid var(--line-2); background: var(--raised); color: var(--fg); border-radius: 7px; padding: 0 9px; font-size: 12.5px }
.filter-sel.sm, .date-in, .status-sel { height: 28px }
.search { width: 180px }
.search:focus, .filter-sel:focus, .date-in:focus { outline: none; border-color: var(--accent) }
.date-in { color-scheme: dark; font-family: var(--mono); font-size: 12px }
:root[data-theme="light"] .date-in { color-scheme: light }
.status-sel { font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 35%, transparent) }
.status-sel option { color: var(--fg); background: var(--panel) }
.taskbar { display: inline-flex; gap: 6px; align-items: center; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line) }

.groups { display: grid; gap: 30px }
.group-head { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 14px; font-weight: 600 }
.group-head .muted { font: 500 11.5px var(--mono) }
.home.narrow { max-width: 860px }

.board-page { padding: 16px 0 0; height: calc(100dvh - var(--top)); display: flex; flex-direction: column }
.board-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 max(16px, env(safe-area-inset-left)) 14px }
.board-bar h1 { margin: 0 8px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; min-width: 0 }
.board { flex: 1; min-height: 0; display: flex; gap: 12px; overflow-x: auto; padding: 0 max(16px, env(safe-area-inset-left)) 16px; scroll-snap-type: x proximity }
.col { flex: 1 0 232px; max-width: 340px; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; scroll-snap-align: start }
.col-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 12px; font-size: 13px }
.col-head .muted { font-size: 11.5px }
.col-body { flex: 1; min-height: 80px; overflow-y: auto; padding: 2px 8px 10px; display: flex; flex-direction: column; gap: 7px; border-radius: 0 0 10px 10px; transition: background .15s }
.col-body.over { background: var(--accent-soft) }
.drop-line { height: 3px; border-radius: 3px; background: var(--accent); flex: none; margin: -2px 0 }
.tcard { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; cursor: grab }
.tcard:hover { border-color: var(--line-2); box-shadow: 0 6px 18px rgba(0,0,0,.3) }
.tcard.dragging { opacity: .35 }
.tthumb { width: 40px; aspect-ratio: 9 / 16; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--c, var(--accent)) 30%, var(--sunk)); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px }
.tthumb img, .tthumb video { width: 100%; height: 100%; object-fit: cover; display: block }
.tbody { display: grid; gap: 4px; min-width: 0; align-content: start }
.tname { font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; padding-right: 18px }
.tproj { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.tmeta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 3px }
.tcard .more { position: absolute; top: 4px; right: 4px; border: none; background: none; color: var(--muted); padding: 1px 6px; border-radius: 5px; font-size: 13px; opacity: 0; transition: opacity .15s }
.tcard:hover .more, .tcard .more:focus-visible { opacity: 1 }
.tcard .more:hover { background: var(--line-2); color: var(--fg) }
@media (hover: none) { .tcard .more { opacity: 1 } }
.chip.due.late { background: rgba(255, 93, 93, .15); color: var(--danger) }
.chip.due.soon { background: var(--warn-soft); color: var(--warn) }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 700 10.5px var(--body); flex: none; letter-spacing: .02em }
.avatar.sm { width: 20px; height: 20px; font-size: 8.5px }
.avatar.empty { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-weight: 400 }
@media (max-width: 760px) {
  .board-page { height: auto; min-height: calc(100dvh - var(--top)) }
  .col { flex-basis: 84vw; max-height: 72vh }
  .search { width: 100%; order: 9 }
}

.cal-page .board-bar { padding: 0 0 14px }
.cal-page .board-bar h1 { min-width: 180px }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); gap: 1px }
.cal-dow { background: var(--panel); padding: 7px 9px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted) }
.cal-day { background: var(--panel); min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 4px; transition: background .15s; min-width: 0 }
.cal-day.out { background: var(--sunk) }
.cal-day.out .cal-num { opacity: .4 }
.cal-day.over { background: var(--accent-soft) }
.cal-num { font: 500 11.5px var(--mono); color: var(--fg-2); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50% }
.cal-day.today .cal-num { background: var(--accent); color: #fff; font-weight: 700 }
.pills { display: grid; gap: 3px; min-width: 0 }
.pills.row { display: flex; flex-wrap: wrap; gap: 6px }
.pill { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; text-decoration: none; cursor: grab;
  background: color-mix(in srgb, var(--c) 15%, var(--raised)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent) }
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pill .dot { background: var(--c) }
.pill.late { box-shadow: inset 2px 0 0 var(--danger) }
.pills.row .pill { max-width: 260px }
.undated { margin-top: 22px; display: grid; gap: 6px }
.undated h3 { margin: 0; font-size: 13px; font-weight: 600 }
.undated p { margin: 0 0 6px; font-size: 12.5px }
@media (max-width: 760px) { .cal-day { min-height: 70px; padding: 3px } .pill { padding: 2px 4px; font-size: 10px } .pill .dot { display: none } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600 }
.list { display: grid }
.list .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line) }
.list .row:first-child { border-top: none }
.list .grow { flex: 1; min-width: 0; display: grid; gap: 1px }
.list .grow b { font-weight: 600; font-size: 13.5px }
.list .grow .muted { font-size: 12px }
.swatch-pick { display: flex; gap: 3px }
.field textarea { height: auto; padding: 8px 11px; resize: vertical; font-size: 13.5px; line-height: 1.45 }
#bellBtn.on { color: var(--accent-2) }
.list .row.toggle { cursor: pointer; gap: 12px }
.row.toggle input { width: 16px; height: 16px; accent-color: var(--accent); flex: none }
.row.toggle .grow { font-size: 13.5px }
.panel > .muted { display: block; margin: -2px 0 6px }


/* ---------- premium layer: depth, type, motion ---------- */
body { font-size: 13.5px; letter-spacing: -.006em; font-optical-sizing: auto }
h1, h2, .home-head h1, .board-bar h1, .login h1 { letter-spacing: -.025em }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent) }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: 2px; border-radius: 6px }
.ico { width: 16px; height: 16px; flex: none; display: block }
.btn .ico { width: 15px; height: 15px; margin-left: -2px }
.btn.small .ico { width: 14px; height: 14px }
.icon-btn .ico { width: 17px; height: 17px }
.icon-btn.sm .ico { width: 14px; height: 14px }
.chip .ico, .tag .ico { width: 11px; height: 11px; display: inline-block; vertical-align: -1.5px; margin-right: 3px }
.chip { display: inline-flex; align-items: center }
.chip-btn.icon { width: 30px; padding: 0; display: grid; place-items: center }
.chip-btn.icon .ico { width: 15px; height: 15px }
.tool { display: inline-grid; place-items: center }
.tool .ico { width: 15px; height: 15px }
.more .ico { width: 15px; height: 15px }
.avatar.empty .ico { width: 10px; height: 10px }
.caret::after { content: ""; width: 9px; height: 9px; margin-left: 2px; background: currentColor; opacity: .6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat }

/* surfaces get a faint top highlight and layered shadows instead of flat fills */
.top { background: color-mix(in srgb, var(--panel) 78%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4) }
.panel, .col, .rail, .controls, .verbar, .strip-wrap, .login form, dialog, .pop, .uploads { box-shadow: var(--hi) }
.col { background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 100%, transparent), color-mix(in srgb, var(--panel) 70%, var(--bg))) }
.login form, dialog, .pop { box-shadow: var(--hi), var(--shadow) }
.tcard, .card, .pcard .pthumb, .role-opt, .link, .audio { box-shadow: var(--hi) }

/* pressables answer instantly */
.btn, .icon-btn, .chip-btn, .tool, .seg button, .tab, .mic, .play, .card, .addcard, .newcard, .role-opt, .swatch, .time-chip, .pin, .note .jump, .jump, .pill {
  transition-property: transform, background-color, border-color, color, box-shadow, opacity, filter; transition-duration: 160ms; transition-timing-function: var(--ease) }
.btn:active:not(:disabled), .icon-btn:active, .chip-btn:active, .tool:active, .seg button:active, .tab:active, .card:active, .role-opt:active, .time-chip:active { transform: scale(.97) }

/* primary actions: lit from above */
.btn.go { background: linear-gradient(180deg, #8d80ff, #6f5ef6); border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -6px rgba(124,108,255,.65) }
.btn.go:hover:not(:disabled) { background: linear-gradient(180deg, #9a8eff, #7a6af8); filter: none }
#approve.btn.go { background: linear-gradient(180deg, #45dd9b, #22b878); color: #03160c; border-color: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.35), 0 6px 18px -6px rgba(47,207,138,.55) }
.btn { box-shadow: var(--hi) }
.btn.ghost { box-shadow: none }
.time-chip, .chip.open { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent) }

/* hover lift only where a pointer can hover */
@media (hover: hover) and (pointer: fine) {
  .tcard:hover { transform: translateY(-1px); box-shadow: var(--hi), var(--lift) }
  .card:hover { box-shadow: var(--hi), var(--lift) }
  .pcard:hover .pthumb { transform: translateY(-2px) }
}
.tcard { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 160ms ease, opacity 160ms ease }
.tcard.dragging { opacity: .4; transform: rotate(1.5deg) scale(.98) }

/* entrances: fast, never from nothing */
main > * { animation: viewIn 220ms var(--ease) both }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px) } }
.board.enter .tcard { animation: cardIn 320ms var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms) }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px) scale(.985) } }
.pop { transform-origin: bottom left; animation: popIn 160ms var(--ease) both }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(4px) } }
dialog[open] { animation: dlg 220ms var(--ease) both }
dialog[open]::backdrop { animation: fade 200ms ease both }
@keyframes fade { from { opacity: 0 } }
.toast { transition: opacity 200ms ease, transform 260ms var(--ease) }
.note { animation-duration: 260ms }

/* skeletons while data loads */
.skel { height: 74px; border-radius: 8px; background: linear-gradient(100deg, var(--raised) 30%, var(--hover) 50%, var(--raised) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite }
.pskel { height: auto; aspect-ratio: 16 / 10; border-radius: 10px }
@keyframes shimmer { to { background-position: -150% 0 } }
.col-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 0; border: 1px dashed var(--line); border-radius: 8px; opacity: .7 }
.col-body.over .col-empty { border-color: var(--accent); color: var(--accent-2) }

/* the scrub bar shows where you are about to jump */
.scrub-tip { position: absolute; bottom: calc(100% + 4px); transform: translateX(-50%); background: var(--raised); border: 1px solid var(--line-2); color: var(--fg); font-size: 11px; font-weight: 600;
  padding: 3px 7px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity 120ms ease; white-space: nowrap; box-shadow: var(--lift); z-index: 3 }
@media (hover: hover) and (pointer: fine) { .track:hover .scrub-tip { opacity: 1 } }
.track .head { transition: transform 120ms var(--ease) }
.track:active .head { transform: scale(1.25) }

/* player frame: a soft vignette so vertical video sits in the room */
.screen { background: radial-gradient(120% 90% at 50% 50%, #0c0c10 0%, #000 70%) }

/* top bar account chip */
.top-actions .btn.ghost .who { font-weight: 500 }
.top-actions .btn.ghost .avatar { margin-left: -4px }
@media (max-width: 760px) { .top-actions .who { display: none } }

/* login: a lit stage */
.login { background: radial-gradient(700px 360px at 50% 18%, rgba(124,108,255,.22), transparent 70%), radial-gradient(500px 300px at 80% 90%, rgba(47,207,138,.08), transparent 70%) }
.login h1 { font-size: 26px; background: linear-gradient(180deg, var(--fg), color-mix(in srgb, var(--fg) 60%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent }

/* comment rail details */
.note .num { box-shadow: var(--hi) }
.note.hot { box-shadow: inset 2px 0 0 var(--accent) }
.comp-box { box-shadow: inset 0 1px 2px rgba(0,0,0,.25) }
.comp-box:focus-within { box-shadow: inset 0 1px 2px rgba(0,0,0,.25), 0 0 0 3px var(--accent-soft) }
.mic.rec { box-shadow: 0 0 0 0 rgba(255,93,93,.5) }
.status-sel { box-shadow: none }
.seg { box-shadow: inset 0 1px 2px rgba(0,0,0,.25) }
.seg button[aria-selected="true"] { box-shadow: var(--hi), 0 1px 2px rgba(0,0,0,.35) }
.tab.on { box-shadow: var(--hi), inset 0 0 0 1px var(--line-2) }
.cal-day.today .cal-num { box-shadow: 0 0 0 3px var(--accent-soft) }
.pill { transition: transform 160ms var(--ease), box-shadow 160ms var(--ease) }
@media (hover: hover) and (pointer: fine) { .pill:hover { transform: translateY(-1px); box-shadow: var(--lift) } }

@media (prefers-reduced-motion: reduce) {
  main > *, .board.enter .tcard, .pop, dialog[open], .note { animation: fade 150ms ease both !important }
  .skel { animation: none }
}
.brief { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; max-height: 55vh; overflow: auto; background: var(--sunk); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; overflow-wrap: anywhere }
.brief a, .link .lbl a { color: var(--accent-2) }
.link button .ico { width: 14px; height: 14px }

/* ---------- internal review ---------- */
:root { --int: #ff7ac6; --int-soft: rgba(255, 122, 198, .14) }
.chip.int, .tag.int { background: var(--int-soft); color: var(--int); border-color: transparent }
.decided b.int { color: var(--int) }
.note.internal { background: linear-gradient(90deg, var(--int-soft), transparent 40%) }
.note.internal .num { border-color: color-mix(in srgb, var(--int) 50%, transparent) }
.int-chip { height: 24px; border: none; border-radius: 6px; padding: 0 8px; font: 600 11.5px var(--body); background: var(--raised); color: var(--muted); transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease) }
.int-chip.on { background: var(--int-soft); color: var(--int); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--int) 30%, transparent) }
.int-chip:active { transform: scale(.97) }
.btn.int-btn { color: var(--int); border-color: color-mix(in srgb, var(--int) 40%, transparent); background: var(--int-soft) }
#releaseBtn .ico, .int-btn .ico { width: 14px; height: 14px }
