/* FregRB dashboard — dark, built for the iPhone Duo (closed 466pt / open 951pt) and the Mac. */
:root {
  --bg: #0B0B0C;
  --panel: #111113;
  --card: #151517;
  --card-2: #1A1A1D;
  --raise: #1C1C1F;
  --line: #222225;
  --line-2: #2C2C30;
  --text: #F4F4F5;
  --text-2: #D4D4D8;
  --muted: #A1A1A6;
  --faint: #8E8E93;
  --accent: #FF6A2B;
  --accent-text: #FF8A57;
  --radius: 16px;
  --pad: 22px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 400 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
a { color: var(--accent-text); text-decoration: none; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.loading, .error-page { padding: calc(var(--safe-t) + 80px) var(--pad); color: var(--muted); text-align: center; }
.error-page h1 { color: var(--text); font-size: 20px; }
.btn-text { all: unset; cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: 14px; padding: 6px 0; }
.num { font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; padding: calc(var(--safe-t) + 18px) calc(var(--safe-r) + var(--pad)) calc(var(--safe-b) + 110px) calc(var(--safe-l) + var(--pad)); max-width: 1500px; margin: 0 auto; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.eyebrow { display: block; font-size: 12px; font-weight: 500; color: var(--faint); }
.proj { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.proj svg { flex: none; }
h1.page-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.count { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.count b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.count span { font-size: 12px; color: var(--faint); }
.top-l { flex: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; min-width: 0; }
.top-actions { display: contents; }
.wide-only { display: none; }

/* tab bar: floating at the bottom on a narrow screen, in the header when wide */
.tabbar { position: fixed; z-index: 20; left: calc(var(--safe-l) + var(--pad)); right: calc(var(--safe-r) + var(--pad)); bottom: calc(var(--safe-b) + 18px); display: flex; gap: 10px; align-items: center; max-width: 520px; margin: 0 auto; }
.tabs { flex: 1; display: flex; background: rgba(32,32,35,0.82); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; }
.tabs a svg { stroke: currentColor; }
.tabs a.on { background: var(--text); color: var(--bg); font-weight: 600; }
.fab { width: 54px; height: 54px; flex: none; border-radius: 50%; border: none; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(255,106,43,0.35); cursor: pointer; }

/* ---------- status chips (narrow board) ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 14px; padding: 0 var(--pad); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 999px; background: var(--card); color: var(--text-2); border: 1px solid var(--line); }
.chip .n { opacity: 0.55; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- cards ---------- */
.cards { display: flex; flex-direction: column; gap: 8px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); transition: background .15s; }
.card:active { background: var(--card-2); }
.card-t { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; }
.card-t .dot { margin-top: 6px; background: var(--accent); }
.card-m { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.card-m .sep { width: 3px; height: 3px; border-radius: 50%; background: #48484D; }
.card-m .end { margin-left: auto; color: var(--faint); }
.empty { color: var(--faint); font-size: 14px; padding: 24px 4px; text-align: center; }

/* board columns (wide) */
.board-cols { display: none; }
.col { width: 210px; flex: none; display: flex; flex-direction: column; gap: 8px; background: var(--panel); border-radius: 20px; padding: 12px 10px; align-self: flex-start; }
.col h2 { margin: 0 0 2px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #E4E4E7; padding: 0 6px; }
.col h2 .n { margin-left: auto; color: var(--faint); font-weight: 500; }
.col .card { background: var(--card-2); border-color: #26262A; padding: 11px 12px; border-radius: 14px; gap: 6px; }
.col .card-t { font-size: 14px; }
.col-empty { font-size: 12px; color: #5C5C61; padding: 4px 6px 6px; }

/* ---------- grouped list ---------- */
.groups { display: flex; flex-direction: column; gap: 18px; }
.group { break-inside: avoid; display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.groups .group { margin-bottom: 0; }
.group h2 { margin: 0; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.group h2 span { font-weight: 500; color: var(--faint); }
.rows { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: var(--text); border-top: 1px solid var(--line); min-height: 48px; }
.row:first-child { border-top: none; }
.row .t { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }

/* ---------- week ---------- */
.week-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.week-nav { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.m-film { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #60A5FA; flex: none; }
.m-post { width: 8px; height: 8px; border-radius: 50%; background: #34D399; flex: none; }
.week { display: flex; flex-direction: column; gap: 6px; }
.day { display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-height: 56px; }
.day-h { width: 40px; flex: none; display: flex; flex-direction: column; align-items: center; }
.day-h small { font-size: 10px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.day-h b { font-size: 18px; font-weight: 700; }
.day-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.day-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #E4E4E7; min-width: 0; }
.day-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.day.launch { background: var(--accent); border-color: var(--accent); }
.day.launch .day-h small, .day.launch .day-h b, .day.launch .day-item, .day.launch .tag { color: var(--bg); }
.day.launch .m-film { border-color: var(--bg); }
.day.launch .m-post { background: var(--bg); }
.day.today .day-h b { color: var(--accent-text); }
.day.launch.today .day-h b { color: var(--bg); }
.nothing { font-size: 13px; color: #5C5C61; }

/* ---------- video page ---------- */
.vp { padding-top: calc(var(--safe-t) + 8px); padding-bottom: calc(var(--safe-b) + 110px); }
.vp-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 -6px 4px; }
.back { display: flex; align-items: center; gap: 2px; height: 44px; padding-right: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.saved .dot { background: #34D399; }
.saved.busy .dot { background: var(--faint); }
.saved.err { color: #FCA5A5; } .saved.err .dot { background: #F87171; }
.vp-grid { display: flex; flex-direction: column; gap: 16px; }
.pane { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.title-in { width: 100%; resize: none; overflow: hidden; background: none; border: none; padding: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; outline: none; }
.title-in::placeholder { color: #5C5C61; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); cursor: pointer; }
.pill select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pill.status { border: none; }
.pill.high { color: var(--accent-text); background: rgba(255,106,43,0.12); border-color: transparent; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fact { position: relative; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: none; }
.fact label { font-size: 11px; font-weight: 500; color: var(--faint); }
.fact input, .fact select { all: unset; font-size: 14px; font-weight: 600; width: 100%; min-height: 20px; cursor: pointer; }
.fact input[type=date]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
.fact input:not(:valid) { color: #5C5C61; }
.plats { display: flex; gap: 6px; flex-wrap: wrap; }
.plat { all: unset; cursor: pointer; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.plat.on { background: var(--raise); color: var(--text); border-color: var(--line-2); }
.sec { display: flex; flex-direction: column; gap: 8px; }
.sec-h { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.sec-h .meta { font-weight: 500; color: var(--faint); }
.hooks { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hook { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px 6px 10px; border-top: 1px solid var(--line); }
.hook:first-child { border-top: none; }
.hook-pick { all: unset; cursor: pointer; width: 28px; height: 32px; display: flex; align-items: center; justify-content: center; flex: none; }
.hook-pick i { width: 8px; height: 8px; border-radius: 50%; background: #3A3A3F; }
.hook:first-child .hook-pick i { background: var(--accent); }
.hook textarea { flex: 1; resize: none; overflow: hidden; background: none; border: none; outline: none; padding: 6px 0; font-size: 14px; line-height: 1.42; color: var(--muted); min-height: 32px; }
.hook:first-child textarea { color: var(--text); }
.hook-x { all: unset; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #5C5C61; flex: none; }
.box { width: 100%; resize: none; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font-size: 15px; line-height: 1.55; color: var(--text-2); outline: none; min-height: 96px; }
.box:focus { border-color: var(--line-2); background: var(--card-2); }
.script-box { min-height: 220px; font-size: 16px; line-height: 1.6; background: var(--panel); }
.field { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; height: 44px; padding: 0 14px; outline: none; font-size: 15px; }
.inline { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn.danger { background: none; border-color: #3A1D1D; color: #FCA5A5; }
.btn.big { height: 52px; font-size: 15px; }
.vp-actions { display: flex; gap: 10px; }
.vp-actions .primary { flex: 1; }
.dock { position: fixed; z-index: 20; left: calc(var(--safe-l) + var(--pad)); right: calc(var(--safe-r) + var(--pad)); bottom: calc(var(--safe-b) + 18px); display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.dock .primary { flex: 1; box-shadow: 0 10px 30px rgba(255,106,43,0.3); }
.dock .btn:not(.primary) { width: 52px; padding: 0; background: rgba(32,32,35,0.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.small-print { font-size: 12px; color: var(--faint); }

/* ---------- sheet ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.55); animation: fade .18s ease; }
.sheet { position: fixed; z-index: 51; left: 8px; right: 8px; bottom: calc(var(--safe-b) + 8px); max-width: 480px; margin: 0 auto; max-height: 80dvh; overflow: auto; background: var(--raise); border: 1px solid var(--line-2); border-radius: 32px; padding: 10px 8px 14px; box-shadow: 0 -20px 60px rgba(0,0,0,0.5); animation: rise .22s cubic-bezier(.2,.8,.2,1); }
.grab { display: block; margin: 0 auto; width: 38px; height: 5px; border-radius: 3px; background: #3A3A3F; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 10px; }
.sheet-h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 16px; font-size: 16px; font-weight: 500; }
.opt .dot { width: 10px; height: 10px; }
.opt .grow { flex: 1; }
.opt.on { background: #2A2A2E; font-weight: 600; }
.opt .n { font-size: 13px; color: var(--faint); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* ---------- settings ---------- */
.set-list { display: flex; flex-direction: column; gap: 6px; }
.set-row { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 12px; }
.set-row input[type=text], .set-row input[type=date], .set-row input[type=url] { flex: 1; min-width: 0; background: none; border: none; outline: none; height: 36px; font-size: 15px; }
.set-row input[type=color] { width: 28px; height: 28px; border: none; padding: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; }
.set-row input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.set-row input[type=color]::-webkit-color-swatch { border: none; border-radius: 50%; }
.mini { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.mini:hover { background: var(--raise); }
.proj-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 12px; }
.proj-card .inline input { flex: 1; min-width: 0; background: none; border: none; outline: none; height: 36px; font-size: 15px; }
.proj-card .inline label { font-size: 12px; color: var(--faint); width: 64px; flex: none; }
.settings-grid { display: flex; flex-direction: column; gap: 28px; }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 14px); background: var(--raise); border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: fade .2s; max-width: 90vw; }

/* ---------- remote ---------- */
.remote { display: flex; flex-direction: column; gap: 14px; }
.remote-now { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.progress { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.remote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rbtn { all: unset; cursor: pointer; height: 72px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--muted); }
.rbtn b { font-size: 22px; color: var(--text); font-weight: 600; }
.rbtn:active { background: var(--raise); }
.rbtn.play { grid-column: span 3; height: 110px; background: var(--accent); border-color: var(--accent); color: var(--bg); }
.rbtn.play b { color: var(--bg); font-size: 26px; }

/* ---------- teleprompter ---------- */
.pr { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; overflow: hidden; cursor: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.pr.ui { cursor: default; }
.pr-stage { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.28) 0, rgba(0,0,0,.28) calc(var(--marker) - 6%), #000 calc(var(--marker) + 1%), #000 100%); mask-image: linear-gradient(to bottom, rgba(0,0,0,.28) 0, rgba(0,0,0,.28) calc(var(--marker) - 6%), #000 calc(var(--marker) + 1%), #000 100%); }
.pr.mirror .pr-stage { transform: scaleX(-1); }
.pr-text { position: absolute; left: 50%; top: 0; will-change: transform; font-weight: 600; line-height: 1.32; letter-spacing: -0.005em; padding-bottom: 100vh; }
.pr-text p { margin: 0 0 0.55em; }
.pr-text .cue { color: #8E8E93; font-weight: 500; font-style: italic; font-size: 0.6em; }
.pr-text .end { color: #5C5C61; font-size: 0.5em; padding-top: 1em; }
.pr-marker { position: absolute; left: 0; right: 0; top: var(--marker); height: 2px; background: var(--accent); opacity: .9; pointer-events: none; }
.pr-arrow { position: absolute; left: 14px; top: calc(var(--marker) - 13px); width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 18px solid var(--accent); pointer-events: none; }
.pr.mirror .pr-arrow { left: auto; right: 14px; border-left: none; border-right: 18px solid var(--accent); }
.pr-count[hidden] { display: none; }
.pr-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30vh; font-weight: 700; color: var(--accent); pointer-events: none; }
.pr-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 20px); display: flex; align-items: center; gap: 4px; background: rgba(28,28,31,0.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; transition: opacity .3s; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
.pr-bar::-webkit-scrollbar { display: none; }
.pr:not(.ui) .pr-bar, .pr:not(.ui) .pr-close { opacity: 0; pointer-events: none; }
.pr-bar .pb { all: unset; cursor: pointer; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #D4D4D8; white-space: nowrap; box-sizing: border-box; }
.pr-bar .pb:hover { background: #2A2A2E; }
.pr-bar .pb.play { background: #fff; color: #000; width: 44px; height: 44px; padding: 0; }
.pr-bar .pb.on { color: var(--accent-text); }
.pr-bar .val { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; min-width: 28px; text-align: center; }
.pr-bar .grp { display: inline-flex; align-items: center; border-left: 1px solid #2C2C30; padding-left: 6px; margin-left: 2px; }
.pr-bar .lbl { font-size: 11px; color: var(--faint); padding: 0 2px 0 6px; }
.pr-close { position: absolute; top: calc(var(--safe-t) + 14px); right: calc(var(--safe-r) + 14px); transition: opacity .3s; }
.pr-close .pb { all: unset; cursor: pointer; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(28,28,31,0.86); border: 1px solid var(--line-2); font-size: 13px; color: #D4D4D8; display: inline-flex; align-items: center; gap: 6px; }
.pr-keys { font-size: 11px; color: #5C5C61; padding: 0 10px; white-space: nowrap; }

/* ---------- wide: iPhone Duo open, iPad, Mac ---------- */
@media (min-width: 820px) {
  :root { --pad: 28px; }
  .shell { padding-bottom: calc(var(--safe-b) + 40px); }
  .top { align-items: center; margin-bottom: 22px; }
  .top-l { flex: none; justify-content: flex-start; align-items: baseline; gap: 18px; flex-wrap: wrap; }
  .wide-only { display: inline; }
  .count { flex-direction: row; align-items: baseline; gap: 6px; }
  .count b { font-size: 16px; }
  .count span { font-size: 13px; }
  .top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
  .tabbar { position: static; margin: 0; max-width: none; }
  .tabs { background: var(--card); border-color: var(--line); box-shadow: none; padding: 4px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabs a { flex: none; height: 36px; padding: 0 16px; }
  .tabs a svg { display: none; }
  .fab { width: 44px; height: 44px; box-shadow: none; }
  .chips, .board-narrow { display: none; }
  .board-cols { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); }
  .groups { display: block; columns: 2; column-gap: 20px; }
  .groups .group { margin-bottom: 20px; }
  .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .day { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 8px; min-height: 360px; background: var(--panel); border-color: #1E1E21; border-radius: 16px; }
  .day-h { width: auto; align-items: flex-start; padding: 2px 4px; }
  .day-h b { font-size: 24px; letter-spacing: -0.02em; }
  .day-items { gap: 6px; }
  .day-item { align-items: flex-start; font-size: 12px; line-height: 1.35; background: var(--card-2); border: 1px solid #26262A; border-radius: 10px; padding: 8px; }
  .day-item .m-film, .day-item .m-post { margin-top: 3px; }
  .day-item span:last-child { white-space: normal; }
  .day.launch { background: rgba(255,106,43,0.08); border-color: rgba(255,106,43,0.45); }
  .day.launch .day-h small, .day.launch .day-h b, .day.launch .tag { color: var(--accent-text); }
  .day.launch .day-item { color: #E4E4E7; }
  .day.launch .m-film { border-color: #60A5FA; }
  .day.launch .m-post { background: #34D399; }
  .day .tag { align-self: flex-start; padding: 0 4px; }
  /* video: two panes, split at the Duo's fold */
  .vp { max-width: 1400px; padding-bottom: calc(var(--safe-b) + 30px); }
  .vp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: start; }
  .vp-grid > .pane:first-child { padding-right: 26px; }
  .vp-grid > .pane:last-child { padding-left: 26px; border-left: 1px solid #1E1E21; min-height: 70dvh; position: sticky; top: calc(var(--safe-t) + 12px); }
  .title-in { font-size: 26px; }
  .dock { position: static; max-width: none; margin: 0; }
  .dock .btn:not(.primary) { width: auto; padding: 0 16px; background: var(--raise); }
  .dock .primary { box-shadow: none; }
  .script-box { min-height: 50dvh; }
  .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .remote { max-width: 520px; }
}
@media (min-width: 1200px) {
  .groups { columns: 3; }
  .col { width: 240px; }
}
