:root {
  --bg: #0b0f0c;
  --panel: #131a15;
  --line: #233527;
  --green: #4ade80;
  --pink: #f472b6;
  --red: #f87171;
  --text: #e7f0e9;
  --dim: #8aa792;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 -apple-system, Helvetica, sans-serif; }
.spin { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- app frame (Version A: three columns) ---------- */
.app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.topbar .title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.topbar .tagline { color: var(--dim); font-size: 13px; }
.grow { flex-grow: 1; }
.pill { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .1em; border-radius: 999px; padding: 6px 12px; border: 1px solid var(--line); color: var(--dim); }
.pill.live { color: var(--red); border-color: var(--red); background: rgba(248,113,113,.12); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; display: inline-block; }
.status-note { color: var(--dim); font-size: 13px; }
.columns { display: flex; flex-grow: 1; min-height: 0; }
.col { background: var(--panel); display: flex; flex-direction: column; flex-shrink: 0; }
.chatcol { width: 340px; border-right: 1px solid var(--line); }
.rightcol { width: 400px; border-left: 1px solid var(--line); }
.colhead { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.colhead .h { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--green); }
.colhead .hint { font-size: 12px; color: var(--dim); margin-top: 2px; }
.section { display: flex; flex-direction: column; min-height: 0; flex: 1 1 0; }
.section + .section { border-top: 1px solid var(--line); }
.list { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.empty { color: var(--dim); padding: 10px; font-size: 13px; }

/* ---------- stage ---------- */
.stage { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 24px; }
.banner { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 16px; color: var(--dim); font-size: 13px; }
.banner:empty { display: none; }
.player { position: relative; height: min(72vh, 680px); aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.6); flex-shrink: 0; }
.player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; align-items: flex-start; }
.badge { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11px; letter-spacing: .1em; border-radius: 6px; padding: 5px 8px; flex-shrink: 0; background: rgba(0,0,0,.7); border: 1px solid var(--line); color: var(--text); }
.badge.live { background: var(--red); color: #2b0b0b; border-color: var(--red); }
.badge.live .dot { background: #2b0b0b; }
.overlay { background: rgba(0,0,0,.7); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; min-width: 0; }
.overlay .label { color: var(--green); font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.overlay.muted .label { color: var(--dim); }
.unmute { position: absolute; right: 14px; bottom: 14px; background: var(--green); color: #06210f; border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: 12px; cursor: pointer; }
.under { min-height: 20px; max-width: 480px; width: 100%; display: flex; justify-content: center; }
.stage-hint { color: var(--dim); font-size: 12px; text-align: center; }
.promptcard { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.promptcard .label { color: var(--green); font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.promptcard .meta { color: var(--dim); font-size: 12px; margin-top: 4px; }
.err { color: var(--red); font-size: 11px; text-align: center; }

/* ---------- chat ---------- */
.chatfeed { flex-grow: 1; overflow-y: auto; padding: 10px; }
.msg { padding: 6px 8px; border-radius: 8px; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; }
.msg:hover { background: #182219; }
.msg .u { color: var(--pink); font-weight: 700; white-space: nowrap; }
.msg .m { flex: 1; overflow-wrap: anywhere; }
.msg.pending { opacity: .55; }
.msg .chk { color: var(--dim); font-size: 11px; white-space: nowrap; }
.msg .cand { color: var(--green); font-size: 10px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.composer input { flex: 1; background: #0e140f; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 10px; height: 44px; }
.composer button { background: var(--pink); border: 0; border-radius: 8px; color: #2b0b1c; font-weight: 700; padding: 0 16px; height: 44px; cursor: pointer; }

/* ---------- up next ---------- */
.upnext { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.upnext .n { width: 24px; height: 24px; border-radius: 999px; background: var(--line); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.upnext .body { flex-grow: 1; min-width: 0; }
.upnext .who { color: var(--dim); font-size: 12px; margin-top: 2px; }
.chip { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; border: 1px solid; border-radius: 999px; padding: 4px 10px; flex-shrink: 0; }
.chip.ready { color: var(--green); border-color: var(--green); }
.chip.generating { color: var(--pink); border-color: var(--pink); }

/* ---------- vote board ---------- */
.boardhead { position: relative; border-bottom: 1px solid var(--line); }
.boardhead .row { padding: 14px 16px 10px; display: flex; align-items: center; gap: 12px; }
.boardhead .h { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--green); }
.boardhead .hint { font-size: 12px; color: var(--dim); margin-top: 2px; }
.timer { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.timer .lbl { font-size: 10px; letter-spacing: .1em; font-weight: 800; color: var(--dim); text-align: right; }
.timer .t { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; text-align: right; }
.bar { height: 3px; background: var(--line); }
.bar > div { height: 3px; background: var(--green); transition: width .25s linear; }
.vote { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.vote.leading { border-color: var(--green); background: #0f1a12; }
.vote .body { flex-grow: 1; min-width: 0; }
.vote .who { color: var(--dim); font-size: 12px; margin-top: 2px; }
.vote button { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-weight: 700; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.vote button:hover { color: var(--green); border-color: var(--green); }
.vote button.voted { color: var(--green); border-color: var(--green); background: rgba(74,222,128,.1); cursor: default; }
.pool { color: var(--dim); font-size: 12px; padding: 4px 16px 12px; }

/* ---------- past clips ---------- */
.clipcard { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; }
.clipcard:hover { border-color: var(--green); }
.clipcard.selected { border-color: var(--green); background: #0f1a12; }
.clipcard img, .clipcard .noimg { width: 54px; height: 96px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #000; }
.clipcard .body { flex-grow: 1; min-width: 0; }
.clipcard .t { font-weight: 700; }
.clipcard .p { color: var(--dim); font-size: 12px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clipcard .s { color: var(--dim); font-size: 11px; margin-top: 6px; }
.clipcard.selected .s { color: var(--green); font-weight: 800; letter-spacing: .08em; }

/* ---------- control room ---------- */
.control-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1.5; padding: 24px 0; }
.control { width: min(920px, 94vw); text-align: center; }
.control h1 { font-size: 18px; letter-spacing: .1em; margin: 0 0 6px; }
.control .lede { color: var(--dim); font-size: 13px; margin: 0 auto 24px; max-width: 560px; }
.control .chars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; justify-content: center; }
.control .char { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.control .charhead { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 14px; }
.control .charhead .name { font-size: 20px; font-weight: 800; }
.control .charhead .slug { color: var(--dim); font-size: 13px; }
.control .photo { width: 104px; height: 140px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 0 auto 6px; background: var(--bg); }
.control .nophoto { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 11px; }
.control .ghost { background: transparent; border: 1px solid var(--line); color: var(--dim); font-weight: 600; font-size: 12px; padding: 7px; margin-top: 0; margin-bottom: 6px; }
.control .wardrobe { color: var(--dim); font-size: 11px; line-height: 1.35; margin: 0 auto 8px; max-width: 300px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.control .btnrow { display: flex; gap: 8px; }
.control .btnrow .ghost { flex: 1; }
.control .status { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.control .status.on { color: var(--red); }
.control .status.off { color: var(--dim); }
.control .detail { color: var(--dim); font-size: 13px; min-height: 40px; }
.control .cost { color: var(--dim); font-size: 12px; margin-top: 4px; }
.control button { display: block; width: 100%; border: 0; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 800; cursor: pointer; margin-top: 12px; }
.control .start { background: var(--green); color: #06210f; }
.control .stop { background: transparent; color: var(--red); border: 1px solid var(--red); }
.control button:disabled { opacity: .4; cursor: default; }
.control .err { position: static; margin-top: 10px; min-height: 16px; font-size: 12px; color: var(--red); }
.control a { color: var(--green); font-size: 13px; display: inline-block; margin-top: 8px; }

/* ---------- mobile viewer (stage-first, overlay panels) ---------- */
.m-app { position: absolute; inset: 0; background: #000; overflow: hidden; font-size: 13px; }
.m-stage { position: absolute; inset: 0; }
.m-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }

.m-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 12px 12px 28px;
  background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.35) 60%, transparent);
  display: flex; flex-direction: column; gap: 8px; }
.m-top .row { display: flex; align-items: center; gap: 8px; }
.m-title { font-weight: 800; font-size: 14px; letter-spacing: -0.01em; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.m-note { color: #d7e2da; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.m-chip { align-self: flex-start; display: flex; align-items: center; gap: 8px; max-width: 100%;
  background: rgba(10, 14, 11, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 6px 10px; }
.m-chip .label { color: var(--green); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.m-chip .t { font-size: 12.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.m-chip.muted .t, .m-chip.muted .label { color: var(--dim); }
.m-chip.next .label { color: var(--pink); }
.m-chip .chip { display: flex; align-items: center; }
.m-more { color: var(--dim); font-size: 11px; white-space: nowrap; }

.m-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.62) 34%, rgba(0,0,0,.88));
  display: flex; flex-direction: column; gap: 8px; }

.m-vhead { display: flex; align-items: baseline; gap: 8px; }
.m-vhead .h { color: var(--green); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; }
.m-vhead .t { font-size: 12px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.m-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.m-bar div { height: 100%; background: var(--green); transition: width .25s linear; }

.m-cards { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 0; scrollbar-width: none; }
.m-cards::-webkit-scrollbar { display: none; }
.m-vcard { flex: 0 0 auto; width: 148px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(19, 26, 21, .88); border: 1px solid var(--line); border-radius: 12px; padding: 8px 9px; }
.m-vcard.leading { border-color: var(--green); }
.m-vcard .t { font-size: 12px; line-height: 1.3; min-height: 31px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.m-vcard button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0;
  border-radius: 8px; padding: 6px 0; font-weight: 800; font-size: 12px; cursor: pointer;
  background: rgba(74, 222, 128, .16); color: var(--green); }
.m-vcard button.voted { background: var(--green); color: #06210f; }
.m-thumb { flex: 0 0 auto; width: 66px; height: 112px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--panel); }
.m-thumb.selected { border-color: var(--green); }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.m-chat { max-height: 132px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
  -webkit-mask-image: linear-gradient(transparent, rgba(0,0,0,.45) 45%, black 80%);
  mask-image: linear-gradient(transparent, rgba(0,0,0,.45) 45%, black 80%); }
.m-chat .msg { align-self: flex-start; background: rgba(8, 11, 9, .55); border-radius: 10px;
  padding: 4px 9px; font-size: 12.5px; max-width: 92%; }
.m-chat .msg .u { color: var(--pink); font-weight: 700; margin-right: 6px; }
.m-chat .msg .chk { color: var(--dim); font-size: 10px; margin-left: 6px; }
.m-chat .msg .cand { color: var(--green); margin-left: 5px; }
.m-composer { display: flex; gap: 8px; }
.m-composer .msg-input { flex: 1; min-width: 0; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; color: var(--text); padding: 9px 14px; font-size: 13px; outline: none; }
.m-composer .msg-input::placeholder { color: #b8c6bd; }
.m-composer .say { border: 0; border-radius: 999px; background: var(--pink); color: #2a0416;
  font-weight: 800; padding: 0 16px; cursor: pointer; }

/* phone frame used by Storybook only */
.phoneframe { position: relative; width: 393px; height: 780px; margin: 20px auto; border-radius: 28px;
  overflow: hidden; border: 6px solid #1c1c1e; box-shadow: 0 24px 70px rgba(0,0,0,.55); background: #000; }

body.mobile { height: 100dvh; overflow: hidden; position: relative; }
.m-app.replay .m-chat { max-height: 68px; }  /* two comments, fading */
.m-chip.mutehint .t { font-size: 11.5px; color: #d7e2da; }

/* ---------- TV page (OBS browser source): black stage, 9:16 video, caption banner ---------- */
body.tvpage { background: #000; overflow: hidden; cursor: none; }
.tv { position: fixed; inset: 0; }
.tv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Palmstreet overlays a top bar, a right-side action-button column and a bottom
   comment bar, AND it height-fills the 9:16 stream on a taller phone — cropping
   ~9% off each side, so only the centre ~82% of the frame is visible and the
   phone's right buttons land near ~78% of the frame. So the safe box is well
   inside: default x 50%-74%, top 60%, growing only DOWNWARD, capped clear of
   the comment bar. Every value is a CSS var so /jj/tv?capright=28&capfont=med
   etc. can fine-tune it live in OBS without a redeploy. */
.tvcap { position: absolute; top: var(--cap-top, 60%);
  left: var(--cap-left, 46%); right: var(--cap-right, 24%); z-index: 2;
  display: flex; justify-content: center; }
.tvcap .cap { width: 100%; max-height: var(--cap-maxh, 22vh); overflow: hidden; text-align: center;
  padding: 1vh 1.4vh; border-radius: 1.6vh;
  background: rgba(8, 12, 9, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 1vh 4vh rgba(0,0,0,.55); }
.tvcap .eyebrow { color: var(--green); font-size: var(--cap-eye, 0.95vh); font-weight: 800; letter-spacing: .1em; }
.tvcap .cap.thanks .eyebrow { color: var(--pink); }
.tvcap .user { color: var(--pink); font-size: var(--cap-user, 1.2vh); font-weight: 800; margin-bottom: .5vh;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere; }
.tvcap .line { color: #fff; font-size: var(--cap-line, 1.35vh); font-weight: 800; line-height: 1.18;
  letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- operator console (/<slug>/control) ---------- */
body.opspage { overflow: hidden; }
.ops { height: 100vh; display: grid; grid-template-columns: 320px 1fr 420px; grid-template-rows: minmax(0, 1fr) 156px;
  grid-template-areas: "gen stage clips" "queue queue queue"; }
.ops .gen { grid-area: gen; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: auto; }
.genform { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.genform label { font-size: 12px; color: var(--dim); }
.kinds { display: flex; gap: 16px; }
.kinds label { color: var(--text); font-size: 13px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.g-userrow { display: flex; flex-direction: column; gap: 4px; }
.g-userrow[hidden] { display: none; }   /* burner clips have nobody to thank */
.genform input:not([type=radio]), .genform textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 9px 10px; font: inherit; width: 100%; box-sizing: border-box; resize: vertical; }
.g-go { background: var(--green); color: #06210f; border: 0; border-radius: 10px; padding: 12px; font-weight: 800; font-size: 15px; cursor: pointer; }
.genform :disabled { opacity: .45; cursor: default; }
.g-status .busy { color: var(--green); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.g-status .err { position: static; color: var(--red); font-size: 13px; line-height: 1.4; background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.35); border-radius: 8px; padding: 10px; }
.g-status .retry { margin-top: 8px; background: transparent; border: 1px solid var(--red); color: var(--red); border-radius: 8px;
  padding: 7px 10px; font-weight: 700; cursor: pointer; }
.g-status .done { color: var(--dim); font-size: 12px; }
.ops .stagecol { grid-area: stage; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; min-height: 0; }
.monitor { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; background: #000; border-radius: 14px; overflow: hidden;
  cursor: pointer; container-type: size; border: 1px solid var(--line); }
.monitor video { width: 100%; height: 100%; object-fit: contain; display: block; }
/* same caption geometry as the TV page, in container units so it scales with the monitor */
.monitor .tvcap { position: absolute; top: var(--cap-top, 60%); left: var(--cap-left, 46%); right: var(--cap-right, 24%);
  display: flex; justify-content: center; z-index: 2; }
.monitor .tvcap .cap { width: 100%; max-height: 22cqh; overflow: hidden; text-align: center; padding: 1cqh 1.4cqh; border-radius: 1.6cqh;
  background: rgba(8, 12, 9, .82); border: 1px solid rgba(255,255,255,.14); }
.monitor .tvcap .eyebrow { color: var(--green); font-size: .95cqh; font-weight: 800; letter-spacing: .1em; }
.monitor .tvcap .cap.thanks .eyebrow { color: var(--pink); }
.monitor .tvcap .user { color: var(--pink); font-size: 1.2cqh; font-weight: 800; margin-bottom: .5cqh; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.monitor .tvcap .line { color: #fff; font-size: 1.35cqh; font-weight: 800; line-height: 1.18; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.monitor .pauseglyph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 64px;
  color: #fff; background: rgba(0,0,0,.45); z-index: 3; text-shadow: 0 2px 12px #000; }
.monitor.paused .pauseglyph { display: flex; }
.monitor .offline { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; z-index: 4; background: rgba(60, 8, 8, .82); color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .08em; text-align: center; padding: 20px; }
.monitor .offline small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: #ffd0d0; }
.monitor.offline .offline { display: flex; }
.monitor .switching { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: none; z-index: 4;
  background: rgba(0,0,0,.7); color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; }
.monitor.switching .switching { display: block; }
.tvstatus { font-size: 12px; color: var(--dim); }
.tvstatus .ok { color: var(--green); font-weight: 800; }
.tvstatus .bad { color: var(--red); font-weight: 800; }
.monhint { color: var(--dim); font-size: 12px; text-align: center; line-height: 1.5; }
.monhint a { color: var(--green); }
.ops .clipspanel { grid-area: clips; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ops .clipspanel .section { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.cliplist { overflow-y: scroll; padding: 10px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: #3a5240 transparent; }
/* macOS hides overlay scrollbars until you scroll; style them so they are always there to grab */
.cliplist::-webkit-scrollbar, .qrow::-webkit-scrollbar { width: 10px; height: 10px; }
.cliplist::-webkit-scrollbar-track, .qrow::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 5px; }
.cliplist::-webkit-scrollbar-thumb, .qrow::-webkit-scrollbar-thumb { background: #3a5240; border-radius: 5px; border: 2px solid var(--panel); }
.cliplist::-webkit-scrollbar-thumb:hover, .qrow::-webkit-scrollbar-thumb:hover { background: #4f6d56; }
.clipc { display: flex; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.clipc img, .clipc .noimg { width: 54px; height: 96px; object-fit: cover; border-radius: 6px; background: #000; flex-shrink: 0; }
.clipc .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.clipc .t { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clipc .who { color: var(--pink); font-size: 12px; font-weight: 700; }
.clipc .onair { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--red); }
.clipc .acts { display: flex; gap: 6px; margin-top: auto; }
.clipc .acts button { border: 0; border-radius: 7px; padding: 6px 9px; font-size: 12px; font-weight: 700; cursor: pointer;
  background: rgba(74, 222, 128, .16); color: var(--green); }
.clipc .acts button.ghost { background: transparent; border: 1px solid var(--line); color: var(--dim); }
.clipc .acts button:disabled { opacity: .35; cursor: default; }
.clipc.hidden img { filter: grayscale(1); opacity: .45; }
.clipc.hidden .t { color: var(--dim); }
.ops .queuebar { grid-area: queue; border-top: 1px solid var(--line); background: var(--panel); padding: 8px 14px;
  display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.qhead { display: flex; gap: 10px; align-items: baseline; }
.qhead .h { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--green); }
.qhead .hint { font-size: 12px; color: var(--dim); }
.qrow { display: flex; gap: 12px; overflow-x: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #3a5240 transparent; }
.qc { flex: 0 0 auto; width: 160px; display: flex; gap: 8px; align-items: center; }
.qc img, .qc .noimg { width: 50px; height: 88px; object-fit: cover; border-radius: 6px; background: #000; flex-shrink: 0; }
.qc .n { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.qc.now .n { color: var(--red); }
.qc.now img, .qc.now .noimg { border: 2px solid var(--red); box-shadow: 0 0 0 1px rgba(248,113,113,.35); }
.qc .t { font-size: 11.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qc .who { font-size: 11px; color: var(--pink); }
