/* Battle Station v3.2.0 components and layout (from AI-Hub design/battle-station/build/bs.css, 2026-10-06).
   Reads only variables from tokens.css (load it first). App additions are at the end of the file. */
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.6 var(--ui); -webkit-font-smoothing: antialiased; font-variant-ligatures: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
a { color: var(--text); text-decoration-color: var(--line-hi); text-underline-offset: 4px; }
a:hover { color: var(--mag-t); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--mag-t); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.02em; margin: 0; }
h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.055em; font-weight: 500; }
h2 { font-size: 17px; line-height: 1.3; letter-spacing: -.03em; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 500; }
p { margin: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--s2); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.draft { background: var(--s2); color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; text-align: center; padding: 6px 16px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line-soft); backdrop-filter: none; }
.bar-name { font: 600 17px/1 var(--head); color: var(--text); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r);
  color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--s2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--s2); }
.nav .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 0; background: var(--mag-fill); color: #fff;
  font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.bar-sp { flex: 1; }
.find { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 12px; min-width: 220px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--s1); color: var(--faint); font: inherit; font-size: 14px; cursor: pointer; }
.find:hover { border-color: var(--line-hi); color: var(--muted); }
kbd { font: 500 12px/1 var(--ui); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 0;
  padding: 3px 6px; background: var(--s2); }
.find kbd { margin-left: auto; }
.synced { color: var(--faint); font-size: 13px; white-space: nowrap; }

/* ---------- page ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 0 32px 64px; }

/* hero band: art sits behind the day summary, dimmed so text stays readable */
.hero { position: relative; margin: 0 0 32px; height: 260px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero video, .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-in { position: relative; z-index: 1; height: 100%; max-width: 1320px; margin: 0 auto; padding: 40px 32px 32px;
  display: flex; align-items: flex-end; gap: 32px; }
.hero-txt { flex: 1; max-width: 760px; }
.hero .date { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.hero .sum { font-size: 19px; line-height: 1.5; color: var(--text); margin-top: 12px; max-width: 640px; }
.hero .sum b { font-weight: 600; }
.hero .logo { height: 150px; width: auto; flex: none; align-self: center; }

/* ---------- layout ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.stack { display: grid; gap: 32px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-h .sp { flex: 1; }
.sec-h .more { font-size: 14px; }
.sec-h .cnt { color: var(--muted); font-size: 15px; font-family: var(--ui); font-weight: 400; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--s2); color: var(--text); font: 500 14px/1 var(--ui); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--line-hi); background: var(--s2); color: var(--text); }
.btn.primary { background: var(--mag-fill); border-color: var(--mag-fill); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--mag-hover); border-color: var(--mag-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--s2); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn kbd { background: transparent; border-color: currentColor; color: inherit; opacity: .75; }

/* ---------- needs-you list ---------- */
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 16px 14px 14px;
  background: var(--s1); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.item:hover { border-color: var(--line); }
.item.is-sel { background: var(--s1); box-shadow: inset 2px 0 0 var(--mag); }
.thumb { width: 72px; height: 96px; border-radius: var(--r); object-fit: cover; background: var(--s3); }
.item h3 { margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.meta span { white-space: nowrap; }
.cap { color: var(--muted); font-size: 14px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.acts { display: flex; gap: 8px; }
.item.problem { grid-template-columns: 72px minmax(0, 1fr) auto; background: color-mix(in srgb, var(--bad) 6%, var(--s1)); border-color: color-mix(in srgb, var(--bad) 35%, var(--line-soft)); }
.item.problem .ico { width: 72px; height: 72px; display: grid; place-items: center; }

/* status: colour + shape + word */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.st i { width: 12px; height: 12px; flex: none; display: inline-block; }
.st.bad { color: var(--bad); }  .st.bad i { background: var(--bad); clip-path: polygon(20% 0,50% 30%,80% 0,100% 20%,70% 50%,100% 80%,80% 100%,50% 70%,20% 100%,0 80%,30% 50%,0 20%); }
.st.warn { color: var(--warn); } .st.warn i { background: var(--warn); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.st.ok { color: var(--muted); } .st.ok i { border: 2px solid var(--muted); border-radius: 50%; }
.st.wait { color: var(--ind-t); } .st.wait i { border: 2px solid var(--ind-t); border-radius: 0; }
.st.done { color: var(--muted); } .st.done i { background: var(--muted); border-radius: 50%; }

.allclear { padding: 28px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }

/* ---------- side cards ---------- */
.card { background: var(--s1); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px; }
.card .sec-h { margin-bottom: 12px; }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.agenda li:first-child { border-top: 0; padding-top: 0; }
.agenda time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.agenda .what { font-weight: 500; }
.agenda .st { font-size: 13px; margin-top: 2px; }
.agenda li.dayh { display: block; grid-column: 1 / -1; color: var(--faint); font-size: 13px; padding-top: 6px; border: 0; }
.agenda li.now { position: relative; }
.agenda li.past .what, .agenda li.past time { color: var(--faint); }

.health { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.health li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.health .why { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin-top: -6px; }
.health-ok { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }

.bots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bots li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: baseline; }
.bots .dot { width: 8px; height: 8px; border-radius: 0; background: var(--muted); transform: translateY(-1px); }
.bots .dot.on { background: var(--mag); }
.bots b { font-weight: 600; }
.bots .t { color: var(--muted); font-size: 14px; }

/* ---------- activity log (Mr. Cole) ---------- */
.log { position: relative; overflow: hidden; background: var(--cole-bg); border: 1px solid var(--cole-line); border-radius: var(--r-lg); }
.log .art { position: absolute; right: 0; top: 0; bottom: 0; width: 44%; object-fit: cover; object-position: center 30%; opacity: .5;
  border-left: 1px solid var(--cole-line); }
.log-in { position: relative; padding: 20px 22px; max-width: 760px; }
.log h2 { color: var(--cole-t); }
.log ol { list-style: none; margin: 0; padding: 0; font: 400 14px/1.6 var(--mono); color: var(--cole-t); }
.log li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 3px 0; }
.log time { color: var(--cole); }
.log li.hi { color: #E6FFFA; }
.log .sec-h a { color: var(--cole-t); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; background: var(--s3); border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: opacity .25s var(--ease), transform .45s var(--ease); z-index: 40; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ---------- keys help ---------- */
.keys { color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; }
.keys span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- bottom tabs (phone) ---------- */
.tabs { display: none; }

/* motion: settle in, off under reduced motion */
.settle { animation: settle 1.2s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero video, .hero img.bg { animation: drift 2.2s var(--ease) both; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .find { min-width: 0; }
  .find .lbl { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .bar { height: 56px; padding: 0 16px; gap: 12px; }
  .bar .nav, .synced { display: none; }
  .page { padding: 0 16px 40px; }
  .hero { margin: 0 0 24px; height: auto; min-height: 220px; }
  .item.problem { grid-template-columns: 1fr; }
  .item.problem .ico { display: none; }
  .hill svg { display: none; }
  .hill-list { display: grid !important; }
  .hero-in { padding: 28px 16px 22px; }
  .hero .logo { display: none; }
  h1 { font-size: 28px; }
  .hero .sum { font-size: 17px; }
  .item { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .thumb { width: 56px; height: 76px; }
  .item.problem .ico { width: 56px; height: 56px; }
  .item .acts { grid-column: 1 / -1; }
  .item .acts .btn { flex: 1; height: 44px; }
  .log .art { display: none; }
  .log li { grid-template-columns: 48px 1fr; gap: 10px; font-size: 13px; }
  .keys { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 64px;
    background: var(--s1); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; }
  .tabs a[aria-current="page"] { color: var(--text); }
  .tabs svg { width: 22px; height: 22px; }
  .tabs .n { position: absolute; transform: translate(14px, -14px); min-width: 18px; height: 18px; border-radius: 0; background: var(--mag-fill);
    color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
  .tabs a { position: relative; }
}

/* ================= review (one item in focus) ================= */
.rv { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 60px - 30px); }
.queue { border-right: 1px solid var(--line-soft); padding: 24px 16px; background: var(--s1); }
.queue h2 { font-size: 15px; color: var(--muted); font-family: var(--ui); font-weight: 500; margin: 0 8px 12px; }
.queue ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.queue a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r);
  color: var(--text); text-decoration: none; }
.queue a:hover { background: var(--s2); }
.queue a[aria-current="true"] { background: var(--s2); box-shadow: inset 2px 0 0 var(--mag); }
.queue img { width: 40px; height: 54px; object-fit: cover; border-radius: 0; }
.queue .t { font-weight: 500; font-size: 14px; line-height: 1.35; }
.queue .s { color: var(--muted); font-size: 13px; }
.queue .done-h { margin-top: 24px; }
.queue .is-done { opacity: .55; }

.focus { padding: 28px 40px 120px; display: grid; grid-template-columns: auto minmax(0, 560px); gap: 48px; align-content: start; justify-content: center; }
.progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.progress .bar2 { flex: 0 0 160px; height: 4px; background: var(--s3); border-radius: 0; overflow: hidden; }
.progress .bar2 i { display: block; height: 100%; width: 33%; background: var(--text); }
.progress .sp { flex: 1; }

/* the post as followers will see it */
.phone { width: 320px; aspect-ratio: 9 / 16; border-radius: 18px; border: 8px solid #1A1E29; background: #000; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone .ov { position: absolute; left: 14px; right: 60px; bottom: 18px; font-size: 13px; line-height: 1.4; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.phone .ov b { display: block; margin-bottom: 4px; }
.phone .safe { position: absolute; inset: 0; pointer-events: none; display: none; }
.phone.show-safe .safe { display: block; }
/* TikTok safe zone on 1080x1920: x120-960, y270-1248. Covered bands: top 270 px (14.0625%), bottom 672 px (35%),
   left and right 120 px each (11.111%). */
.phone .safe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14.0625%; background: rgba(255,107,107,.18); }
.phone .safe::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: rgba(255,107,107,.18); }
.phone .safe i { position: absolute; left: 0; right: 0; top: 14.0625%; bottom: 35%; }
.phone .safe i::before, .phone .safe i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 11.111%; background: rgba(255,107,107,.18); }
.phone .safe i::before { left: 0; }
.phone .safe i::after { right: 0; }
.under-phone { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 13px; width: 320px; }
.under-phone label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

.detail h1 { font-size: 30px; margin: 4px 0 10px; }
.slot { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); margin-bottom: 24px; }
.slot b { color: var(--text); font-weight: 500; }
.field { margin-bottom: 22px; }
.field > label, .field > .lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field .hint { color: var(--faint); font-size: 13px; margin-top: 6px; display: flex; justify-content: space-between; }
textarea, input[type=text], input[type=datetime-local] { width: 100%; font: 400 15px/1.5 var(--ui); color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px 12px; }
textarea { min-height: 96px; resize: vertical; }
textarea:hover, input:hover { border-color: var(--line-hi); }
textarea:focus-visible, input:focus-visible { outline: 1px solid var(--mag-t); outline-offset: 0; border-color: var(--mag-t); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts .st { flex: none; }
.note-bot { color: var(--faint); font-size: 13px; margin-top: 8px; }
details.hist summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.hist ol { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

.decide { position: fixed; left: 260px; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 14px 40px;
  background: var(--s1); border-top: 1px solid var(--line); }
.decide .sp { flex: 1; }
.decide .muted { font-size: 13px; }
.changes { display: none; margin-top: 4px; padding: 16px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.changes.on { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { height: 32px; padding: 0 12px; border-radius: 0; border: 1px solid var(--line); background: var(--s2); color: var(--text); font: 500 13px/1 var(--ui); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--text); background: var(--s3); }

@media (max-width: 1100px) {
  .focus { grid-template-columns: 1fr; justify-items: center; padding: 24px 24px 120px; }
  .detail { width: 100%; max-width: 640px; }
}
@media (max-width: 760px) {
  .rv { grid-template-columns: 1fr; }
  .queue { display: none; }
  /* decision bar (about 124 px when wrapped at 390 px) sits on the tab bar; body already pads 72 px for the tab bar */
  .focus { padding: 16px 16px calc(var(--decide-h, 124px) + 24px); gap: 20px; }
  .phone { width: min(260px, 70vw); }
  .under-phone { width: min(260px, 70vw); }
  .detail h1 { font-size: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .decide { left: 0; bottom: 64px; padding: 10px 16px; flex-wrap: wrap; }
  .decide .btn { flex: 1; height: 46px; }
  .decide .btn.primary { flex-basis: 100%; order: -1; }
  .decide .sp, .decide .muted, .decide kbd { display: none; }
}

/* ================= storyboard ================= */
.sb-top { display: flex; align-items: flex-end; gap: 24px; padding: 28px 32px 20px; flex-wrap: wrap; }
.sb-top .sp { flex: 1; }
.sb-top p { color: var(--muted); max-width: 620px; margin-top: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { height: 36px; padding: 0 14px; background: transparent; border: 0; color: var(--muted); font: 500 14px/1 var(--ui); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--s2); color: var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 32px 16px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 4px; border-radius: 0; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; padding: 0 32px 40px; overflow-x: auto; align-items: start; }
.lane { background: var(--s1); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 14px; min-height: 420px; }
.lane.unsorted { background: transparent; border-style: dashed; border-color: var(--line); }
.lane-h { display: flex; align-items: baseline; gap: 8px; margin: 2px 4px 12px; }
.lane-h h2 { font-size: 16px; }
.lane-h .cnt { color: var(--muted); font-size: 14px; }
.lane-h .sp { flex: 1; }
.lane-sub { color: var(--faint); font-size: 13px; margin: -6px 4px 12px; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.beat { position: relative; background: var(--s2); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 12px 14px 12px 18px; cursor: grab; }
.beat::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0; background: var(--thread, var(--line)); }
.beat:hover { border-color: var(--line); }
.beat.is-sel { border-color: var(--line-hi); }
.beat h3 { font-size: 15px; margin-bottom: 4px; font-family: var(--ui); font-weight: 600; }
.beat p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.beat .foot { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--faint); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 0; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.tag.canon { border-color: var(--text); color: var(--text); }
.tag.option { border-style: dashed; }
.beat .quote { border-left: 2px solid var(--line); padding-left: 10px; margin-top: 8px; font-style: italic; }
.addcard { width: 100%; margin-top: 10px; height: 38px; border: 1px dashed var(--line); background: transparent; border-radius: var(--r); color: var(--muted); font: 500 14px/1 var(--ui); cursor: pointer; }
.addcard:hover { color: var(--text); border-color: var(--line-hi); }
.dump { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.dump .s { color: var(--faint); font-size: 12px; }
.dump p { font-size: 14px; margin-top: 4px; }

.drawer { position: fixed; top: 90px; right: 16px; bottom: 16px; width: 400px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; overflow: auto; z-index: 30; box-shadow: none; border-left: 1px solid var(--line-hi); transform: translateX(110%); transition: transform .5s var(--ease); }
.drawer.on { transform: none; }
.drawer h2 { font-size: 22px; margin: 6px 0 10px; }
.drawer .close { position: absolute; top: 14px; right: 14px; }
.drawer .orig { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 12px 14px; color: var(--muted); font-size: 14px; }
.drawer .orig b { display: block; color: var(--text); font-size: 13px; margin-bottom: 4px; }
.drawer .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

@media (max-width: 760px) {
  .sb-top { padding: 20px 16px 14px; }
  .legend { padding: 0 16px 12px; }
  .board { grid-auto-columns: 84vw; padding: 0 16px 40px; scroll-snap-type: x mandatory; }
  .lane { scroll-snap-align: start; }
  .drawer { top: auto; left: 0; right: 0; bottom: 64px; width: auto; max-height: 75vh; border-radius: 0; transform: translateY(110%); }
}

/* job list: phone fallback for the hill chart */
.hill-list { display: none; list-style: none; margin: 0; padding: 0; gap: 10px; }
.hill-list li { display: flex; justify-content: space-between; gap: 12px; }
.hill-list span { color: var(--muted); font-size: 14px; }
/* to-sort suggestion row */
.suggest { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.suggest .sp { flex: 1; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 13px; }

/* ================= schedule ================= */
.sch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 0 32px 48px; align-items: start; }
.sch-top { display: flex; align-items: center; gap: 16px; padding: 28px 32px 18px; flex-wrap: wrap; }
.sch-top .range { font: 600 18px/1 var(--head); }
.sch-top .sp { flex: 1; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; background: var(--line-soft); gap: 1px; }
.cal .dow { background: var(--s1); padding: 10px 12px; color: var(--muted); font-size: 13px; font-weight: 500; }
.day { background: var(--bg); min-height: 150px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.day .n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.day.today { background: var(--s1); box-shadow: inset 0 2px 0 var(--mag); }
.day.today .n { color: var(--text); font-weight: 600; }
.day.past { opacity: .55; }
.ev { display: block; border-radius: 0; padding: 6px 8px; font-size: 13px; line-height: 1.35; background: var(--s2); border-left: 3px solid var(--line); color: var(--text); text-decoration: none; }
.ev:hover { background: var(--s3); }
.ev small { display: block; color: var(--muted); font-size: 12px; }
.ev.post.wait { border-left-color: var(--ind-t); }
.ev.post.ok { border-left-color: var(--muted); }
.ev.release { background: var(--text); color: var(--bg); border-left-color: var(--text); font-weight: 600; }
.ev.release small { color: #3a4152; }
.ev.due { background: transparent; border: 1px solid var(--warn); border-left-width: 3px; }
.ev.due small { color: var(--warn); }
.gap { border: 1px dashed var(--line); border-radius: 0; padding: 6px 8px; font-size: 12px; color: var(--faint); background: transparent; cursor: pointer; font-family: var(--ui); text-align: left; }
.gap:hover { color: var(--text); border-color: var(--line-hi); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.side-list .w { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.side-list .left { font-size: 13px; color: var(--muted); white-space: nowrap; }
.side-list .left.soon { color: var(--warn); }
.mlist { display: none; }
@media (max-width: 1100px) { .sch { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .sch-top { padding: 20px 16px 14px; }
  .sch { padding: 0 16px 40px; }
  .cal { display: none; }
  .mlist { display: block; }
  .mlist h3 { font-size: 14px; color: var(--muted); font-family: var(--ui); font-weight: 500; margin: 18px 0 8px; }
  .mlist h3.today { color: var(--text); }
  .mlist .ev, .mlist .gap { margin-bottom: 6px; font-size: 15px; width: 100%; }
}

/* narrow screens: one column, ordered by what matters day to day */
@media (max-width: 1100px) {
  .cols { display: flex; flex-direction: column; gap: 28px; }
  .cols > .stack { display: contents; }
  .cols > * > * { width: 100%; }
  [aria-labelledby="h-needs"] { order: 1; } [aria-labelledby="h-up"] { order: 2; } [aria-labelledby="h-rd"] { order: 3; }
  [aria-labelledby="h-sys"] { order: 4; } [aria-labelledby="h-log"] { order: 5; } [aria-labelledby="h-jobs"] { order: 6; } [aria-labelledby="h-bots"] { order: 7; }
}
@media (max-width: 760px) {
  .progress > span:last-child, .progress .sp { display: none; }
  .progress { white-space: nowrap; }
  .under-phone span { display: none; }
  .under-phone { justify-content: center; }
}
@media (max-width: 760px) {
  .sch-top { gap: 8px; }
  .sch-top h1 { flex-basis: 100%; }
  .sch-top .sp, .sch-top .seg { display: none; }
  .sch-top .range { font-size: 16px; }
}
/* storyboard lane: wider, numbered beats */
.board .lane.story { min-width: 340px; }
.beat .ord { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 0; background: var(--s3); color: var(--muted); font: 600 12px/1 var(--ui); vertical-align: 1px; }

/* ================= review v2: feedback first ================= */
.scrub { width: 320px; margin-top: 12px; }
.scrub .track { position: relative; height: 6px; background: var(--s3); border-radius: 0; cursor: pointer; }
.scrub .played { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; background: var(--muted); border-radius: 0; }
.scrub .pin { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg);
  background: var(--ind-t); color: var(--bg); font: 700 11px/1 var(--ui); cursor: pointer; padding: 0; }
.scrub .times { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 8px; font-variant-numeric: tabular-nums; }

.fb { background: var(--s1); border: 1px solid var(--line); box-shadow: inset 0 2px 0 var(--mag); border-radius: var(--r-lg); padding: 18px; margin-bottom: 24px; }
.fb-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.fb-h .sp, .fb-row .sp { flex: 1; }
.fb h2 { font-size: 18px; }
.fb textarea { min-height: 110px; font-size: 16px; }
.pins { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pins:empty { display: none; }
.pins li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; font-size: 14px; }
.pins .t { border: 0; background: var(--ind); color: var(--text); border-radius: 0; padding: 3px 7px; font: 600 12px/1 var(--ui); font-variant-numeric: tabular-nums; cursor: pointer; }
.pins .x { border: 0; background: none; color: var(--faint); font: 13px var(--ui); cursor: pointer; }
.pins .x:hover { color: var(--text); }
.fb-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.fb-row .muted { font-size: 13px; }

.sm-h { font-size: 15px; color: var(--muted); font-family: var(--ui); font-weight: 500; margin-bottom: 10px; }
.thread { margin-bottom: 20px; }
.thread ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.thread li { padding: 10px 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.thread li b { color: var(--text); font-weight: 600; }
.thread li p { color: var(--text); font-size: 15px; margin-top: 4px; }
.thread li.bot { margin-left: 24px; }
.lnk { border: 0; background: none; padding: 0; margin-top: 6px; color: var(--ind-t); font: 500 14px var(--ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.more-f { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.more-f summary { cursor: pointer; font-weight: 600; font-size: 15px; display: flex; align-items: center; }
.more-f summary::-webkit-details-marker { display: none; }
.more-f summary::before { content: "+"; width: 18px; color: var(--muted); }
.more-f[open] summary::before { content: "−"; }

@media (max-width: 760px) {
  .scrub { width: min(260px, 70vw); margin-left: auto; margin-right: auto; }
  .thread li.bot { margin-left: 12px; }
}

/* research round 2: resolved notes, private notes, release strip, thumbnails */
.res { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.res li { display: grid; grid-template-columns: 104px 1fr; gap: 8px; align-items: baseline; color: var(--text); font-size: 14px; }
.res li.fixed span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.priv { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.rstrip { margin-bottom: 14px; }
.rs-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.rs-h .sp { flex: 1; }
.rs-h .muted { font-size: 13px; }
.rcount { color: var(--text); font-weight: 600; }
.rs-bands { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; }
.rs-bands span { background: var(--s2); color: var(--muted); font-size: 12px; padding: 6px 8px; border-radius: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-bands small { color: var(--faint); margin-left: 6px; }
.rs-bands .tease { background: var(--s3); color: var(--text); box-shadow: inset 0 -2px 0 var(--mag); }
.rs-bands .rel { background: var(--text); color: var(--bg); font-weight: 600; }
.ev.has-th { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; }
.ev.has-th img { grid-row: 1 / 3; width: 24px; height: 42px; object-fit: cover; border-radius: 0; }
@media (max-width: 760px) {
  .rs-bands { display: none; }
  .rs-h .muted { display: none; }
}
.thread .res li { padding: 0; background: none; border: 0; border-radius: 0; }

/* ================= storyboard (story approvals) ================= */
.sbv { display: none; }
.sbv.on { display: block; }
.kind { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 0; background: var(--s3); color: var(--muted); font-size: 12px; font-weight: 600; }
.kind.art { background: transparent; border: 1px solid var(--line); }
.sbf { padding: 28px 40px 140px; max-width: 1180px; margin: 0 auto; }
.sbf-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 18px; }
.sbf-h h1 { font-size: 30px; flex-basis: 100%; margin-top: 6px; }
.panels { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin-bottom: 26px; align-items: start; }
.pnl { margin: 0; }
.pnl img { width: 100%; border-radius: var(--r); background: var(--s3); }
.pnl figcaption { margin-top: 10px; }
.pnl .cap { font-size: 16px; line-height: 1.45; color: var(--text); -webkit-line-clamp: unset; display: block; margin: 0; }
.pnl .cap.term { font: 400 14px/1.5 var(--mono); color: var(--cole-t); background: var(--cole-bg); border: 1px solid var(--cole-line); border-radius: 0; padding: 8px 10px; }
.pnl .cap.none { color: var(--faint); font-style: italic; font-size: 14px; }
.pnl .src { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.vb { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.vb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; }
.vb.verb { color: var(--text); }
.vb.drf { color: var(--warn); }
.vb.drf::before { border-radius: 0; border: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--warn); }
.pnl .addn { margin-left: auto; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.dest { background: var(--s1); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px; }
.dest h2 { font-size: 16px; margin-bottom: 4px; }
.dest p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.dest label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.dest label span small { display: block; color: var(--muted); font-size: 13px; }
.dest input { margin-top: 4px; accent-color: var(--mag); }
.side-stack { display: grid; gap: 16px; }
.facts2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.facts2 li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.facts2 b { color: var(--muted); font-weight: 500; }

.art-f { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 36px; align-items: start; }
.art-f > img { width: 100%; border-radius: var(--r); border: 1px solid var(--line-soft); }
.lines { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; background: var(--s1); border: 1px solid var(--line-soft); border-radius: var(--r); }
.lines li.key { border-color: var(--line-hi); box-shadow: inset 2px 0 0 var(--mag); }
.lines .tx { font-size: 16px; }
.lines .mt { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--faint); }
.lines .mt .lk { color: var(--ind-t); font-weight: 600; }

.order-note { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.og { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 30px; }
.oc { background: var(--s1); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--text); display: block; }
.oc:hover { border-color: var(--line); }
.oc img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.oc .b { padding: 10px 12px 12px; }
.oc .t { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.oc .t i { font-style: normal; color: var(--faint); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.oc .s { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.oc .st { font-size: 13px; }
.oc.planned img { opacity: .5; }
.part-h { font-size: 16px; color: var(--muted); font-family: var(--ui); font-weight: 600; margin: 4px 0 12px; }
.ag { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ag .oc img { aspect-ratio: 4 / 5; }

@media (max-width: 1100px) {
  .two, .art-f { grid-template-columns: 1fr; }
  .art-f > img { max-width: 380px; }
}
@media (max-width: 760px) {
  .sbf { padding: 16px 16px 170px; }
  .panels { grid-template-columns: 1fr; }
  .og { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ag { grid-template-columns: 1fr 1fr; }
}
.decide[hidden] { display: none; }
@media (max-width: 760px) {
  .seg { max-width: 100%; overflow-x: auto; }
  .seg button { white-space: nowrap; padding: 0 12px; }
  /* storyboard queue becomes a swipe row on phones */
  .sbv .queue { display: block; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 16px; }
  .sbv .queue ol { display: flex; gap: 8px; overflow-x: auto; }
  .sbv .queue li { flex: none; }
  .sbv .queue a { grid-template-columns: 54px auto; padding: 6px 10px 6px 6px; }
  .sbv .queue .done-h, .sbv .queue .done-h + ol { display: none; }
  .sbv .queue h2 { margin: 0 0 8px; }
}
@media (max-width: 760px) {
  .rv { grid-template-columns: minmax(0, 1fr); }
  .rv > * { min-width: 0; }
  .sbf-h .muted { white-space: normal; }
}
.lines .who { display: block; font: 600 12px/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.queue .more-q { padding: 6px 8px; color: var(--faint); }

/* =====================================================================
   v3 visual layer (2026-10-05): graphite ground, grain, column rules,
   hairline sections instead of boxed cards, hard edges, one accent.
   ===================================================================== */
body { background: transparent; position: relative; min-height: 100vh; }
/* film grain over everything (static, so no motion concerns) */
body::after { content: ""; position: absolute; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url(/assets/img-grain.svg); }
/* 12 column rules behind the content; panels cover them, gaps show them */
body::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1; pointer-events: none;
  width: min(1320px, 100% - 64px); transform: translateX(-50%); border-right: 1px solid rgba(255,255,255,.035);
  background-image: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }

/* top bar: flat, current page = magenta underline */
.bar { background: var(--bg); border-bottom-color: var(--line); gap: 32px; }
.bar-name { font: 600 15px/1 var(--mono); letter-spacing: -.04em; }
.nav { gap: 0; align-self: stretch; }
.nav a { height: 100%; border-radius: 0; padding: 0 14px; font-size: 13px; letter-spacing: -.02em; }
.nav a:hover { background: transparent; color: var(--text); }
.nav a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px 0 var(--mag); }
.nav .n, .tabs .n { border-radius: 0; font: 600 11px/1 var(--mono); }
.find { font-size: 13px; background: transparent; }
.synced { font-size: 12px; }
kbd { font: 500 11px/1 var(--mono); border-radius: 0; border-bottom-width: 1px; background: transparent; }

/* buttons: hard edges, no glow */
.btn { height: 36px; font: 500 13px/1 var(--mono); letter-spacing: -.01em; background: transparent; }
.btn.primary { background: var(--mag-fill); }
.btn.lg { height: 44px; font-size: 14px; }

/* hero: text on solid ground, art on its own graded plate (no fades) */
.hero { height: auto; margin: 0 0 40px; border-bottom: 1px solid var(--line); overflow: visible; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 56px; align-items: end; padding: 56px 32px 40px; height: auto; }
.hero h1 { font-size: 56px; }
.hero .sum { font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 20px; max-width: 620px; }
.hero .sum b { color: var(--text); font-weight: 500; }
.plate { position: relative; margin: 0; height: 236px; overflow: hidden; border: 1px solid var(--line); background: #000; }
/* cold graphite grade = blend layers, not a CSS filter */
.plate::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #79838A; mix-blend-mode: color; }
.plate::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(10,10,11,.32); }
.hero .plate .logo { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 132px; width: auto; }

/* sections are ruled, not boxed */
.sec-h h2 { font-size: 17px; }
.sec-h .cnt { font-size: 13px; }
.sec-h .more, .lane-h .more { font-size: 12px; }
.card { background: transparent; border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
.cols { gap: 40px; }
.cols > aside { border-left: 1px solid var(--line-soft); padding-left: 32px; gap: 40px; }
.stack { gap: 40px; }
.inbox { gap: 0; border-top: 1px solid var(--line); }
.item { background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 12px; }
.item:hover { background: var(--s1); border-color: var(--line-soft); }
.item.problem { background: color-mix(in srgb, var(--bad) 5%, var(--bg)); border-color: var(--line-soft); box-shadow: inset 2px 0 0 var(--bad); }
.meta, .cap { font-size: 13px; }
.st { font-size: 13px; }
.st.wait { color: var(--mag-t); } .st.wait i { border-color: var(--mag-t); }
.agenda time { font-size: 13px; }
.agenda li.dayh, .lane-sub, .keys, .note-bot { font-size: 12px; }
.log { border-radius: 0; }
.log h2 { font-weight: 500; }
.log ol { font-size: 13px; }

/* lanes and boards: columns split by rules */
.board { gap: 0; }
.lane { background: transparent; border: 0; border-left: 1px solid var(--line-soft); padding: 4px 16px 16px; }
.lane:first-child { border-left: 0; padding-left: 0; }
.beat { background: var(--s1); }
.beat h3 { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: -.02em; }
.beat p, .queue .t { font-size: 13px; }
.tag { font-size: 11px; height: 20px; }
.seg, .seg button { border-radius: 0; font: 500 13px/1 var(--mono); }
.chip { font: 500 12px/1 var(--mono); }
.phone { border-color: #19191C; }
.ev { font-size: 12px; } .ev small { font-size: 11px; }
.ev.release small { color: #45474C; }
.sch-top .range { font: 500 17px/1 var(--mono); letter-spacing: -.03em; }
.decide { background: var(--bg); }
textarea, input[type=text], input[type=datetime-local] { font: 400 14px/1.55 var(--mono); background: var(--s1); }
.fb textarea { font-size: 14px; }
.detail h1, .sbf-h h1 { font-size: 36px; }
.drawer { background: var(--bg); }

/* ================= ideas v3: submit box + threaded cards ================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ideas { display: grid; grid-template-columns: 400px minmax(0, 1fr) minmax(0, 1fr); margin: 0 32px 64px; border-top: 1px solid var(--line); }
.ideas > section { padding: 22px 24px 24px; border-left: 1px solid var(--line-soft); min-width: 0; }
.ideas > section:first-child { border-left: 0; padding-left: 0; }
.compose h2 { margin-bottom: 14px; }
.cform textarea { min-height: 168px; font-size: 15px; background: var(--s1); border-color: var(--line); }
.route { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 0; }
.route legend { float: left; padding: 0; margin: 0 14px 0 0; line-height: 34px; color: var(--muted); font-size: 12px; }
.route label { position: relative; cursor: pointer; }
.route input { position: absolute; opacity: 0; }
.route span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--line); margin-left: -1px; font-size: 12px; color: var(--muted); }
.route input:checked + span { color: var(--text); border-color: var(--text); position: relative; z-index: 1; }
.route input:focus-visible + span { outline: 2px solid var(--mag-t); outline-offset: 2px; }
.crow { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.crow .sp { flex: 1; }
.sent-h { margin: 36px 0 8px; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.sent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.sent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.sent p { grid-column: 1 / -1; color: var(--text); }
.sent .when { color: var(--faint); font-size: 12px; text-align: right; }
.sent .route-to { color: var(--muted); font-size: 12px; }
.sent .route-to::before { content: "\2192\00a0"; }
.sent li.new { animation: settle .8s var(--ease) both; }

.ilane .lane-h { margin: 0 0 6px; }
.ilane .lane-sub { margin: 0 0 16px; }
.icards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.icard { background: var(--s1); border: 1px solid var(--line-soft); }
.icard.yours { box-shadow: inset 2px 0 0 var(--mag); }
.icard.open { border-color: var(--line); }
.icard-h { display: grid; gap: 4px; width: 100%; padding: 14px 16px; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.icard-h:hover .t { text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 4px; }
.icard-h .t { font-size: 15px; font-weight: 500; letter-spacing: -.03em; line-height: 1.35; }
.icard-h .s { color: var(--muted); font-size: 13px; }
.icard-h .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; color: var(--faint); font-size: 12px; }
.icard-h .foot .st { font-size: 12px; }
.thr { display: none; border-top: 1px solid var(--line-soft); padding: 4px 16px 16px; }
.icard.open .thr { display: block; }
.thr > ol { list-style: none; margin: 0; padding: 0; }
.thr > ol > li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 0 12px 12px; border-left: 1px solid var(--line); margin-top: 8px; }
.thr > ol > li.you { margin-left: 28px; border-left-color: var(--line-hi); }
.thr > ol > li.ask { border-left: 2px solid var(--mag); }
.thr b { font-size: 12px; font-weight: 600; }
.thr time { color: var(--faint); font-size: 12px; }
.thr p { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; }
.thr .qs { grid-column: 1 / -1; margin: 6px 0 0; padding-left: 22px; font-size: 13px; line-height: 1.6; }
.thr .qs li::marker { color: var(--faint); }
.reply { margin-top: 14px; }
.reply textarea { min-height: 64px; font-size: 13px; }
.reply .crow { margin-top: 10px; }

@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .ideas { grid-template-columns: 1fr 1fr; }
  .ideas > .compose { grid-column: 1 / -1; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
  .ideas > section:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  body::before { width: calc(100% - 32px); background-size: 25% 100%; }
  .bar { gap: 12px; }
  .hero-in { padding: 32px 16px 24px; }
  .hero h1, h1 { font-size: 34px; }
  .hero .sum { font-size: 15px; margin-top: 14px; }
  .plate { height: 150px; }
  .hero .plate .logo { display: block; height: 96px; }
  .cols > aside { border-left: 0; padding-left: 0; }
  .ideas { grid-template-columns: 1fr; margin: 0 16px 40px; }
  .ideas > section { border-left: 0; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
  .thr > ol > li.you { margin-left: 16px; }
  .tabs { background: var(--bg); }
  .tabs a { font-size: 11px; }
}
.queue .btn { white-space: normal; height: auto; min-height: 36px; padding: 8px 12px; line-height: 1.35; text-align: center; }
/* form fields: 3:1 border so the box reads as a control */
textarea, input[type=text], input[type=datetime-local], .cform textarea, .find { border-color: var(--line-hi); }


/* ---------- Orbitron pass (build package, 2026-10-06) ----------
   Orbitron: screen titles (h1 in page headers, the Today date), the app name, buttons. Tracking 0 or wider.
   Plex Mono: everything else, incl. item titles (post, storyboard, artifact names), section headings, nav, data. */
.bar-name { font: 700 14px/1 var(--title); letter-spacing: .04em; }
h1 { font-family: var(--title); font-weight: 600; letter-spacing: 0; font-size: var(--fs-title); line-height: 1.1; }
.hero h1 { font-size: var(--fs-title-hero); }
.detail h1, .sbf-h h1 { font-family: var(--mono); font-weight: 500; letter-spacing: -.04em; }
.btn, .btn.lg, .btn.xs { font-family: var(--title); font-weight: 600; letter-spacing: var(--track-btn); font-size: var(--fs-btn); }
.btn.lg { font-size: var(--fs-btn-lg); }
.btn kbd, #pinAt, .btn .num { font-family: var(--mono); letter-spacing: 0; }
/* numbers inside a button (times, counts) stay Plex Mono: Orbitron digits read poorly at button size */
@media (max-width: 760px) {
  h1, .hero h1 { font-size: var(--fs-title-phone); }
  .detail h1, .sbf-h h1 { font-size: 24px; }
}


/* ---------- Ideas as built (v3.0.1): With Claude + 3 lanes + Parked ---------- */
.ideas.ideas-4 { grid-template-columns: 340px repeat(3, minmax(0, 1fr)); }
.wc-h { margin: 36px 0 4px; }
.wc-h h2 { font-size: 15px; }
.summ { margin: 12px 0 0; padding: 12px 14px; background: var(--s2); border-left: 2px solid var(--line-hi); }
.summ b { font-size: 12px; font-weight: 600; color: var(--muted); }
.summ p { font-size: 13px; line-height: 1.6; margin-top: 4px; }
.thr .sys { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.thr > .crow { margin-top: 12px; }
.icard .late { color: var(--warn); }
.sb-top .more .cnt { color: var(--muted); }
.lane-jump { display: none; }
.parked { margin: 0 32px 64px; border-top: 1px solid var(--line); }
.parked summary { display: flex; align-items: baseline; gap: 10px; padding: 18px 0; cursor: pointer; list-style: none; }
.parked summary::-webkit-details-marker { display: none; }
.parked summary h2 { font-size: 15px; }
.parked summary .lane-sub { margin: 0 0 0 8px; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.plist li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.plist li > div { flex: 1; display: grid; gap: 2px; }
.plist b { font-weight: 500; }
.plist span { color: var(--faint); font-size: 12px; }
@media (max-width: 1100px) { .ideas.ideas-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ideas.ideas-4 > section:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 760px) {
  .ideas.ideas-4 { grid-template-columns: minmax(0, 1fr); margin: 0 16px 32px; }
  .ideas.ideas-4 > section { border-left: 0; padding-left: 0; padding-right: 0; }
  .lane-jump { display: flex; position: sticky; top: 0; z-index: 15; gap: 0; margin: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; }
  .lane-jump a { flex: 1; text-align: center; padding: 12px 6px; color: var(--muted); text-decoration: none; font-size: 13px; white-space: nowrap; }
  .lane-jump b { color: var(--mag-t); font-weight: 600; }
  .parked { margin: 0 16px 32px; }
  .parked summary { flex-wrap: wrap; }
  .parked summary .lane-sub { flex-basis: 100%; margin: 0; }
}

/* ---------- phone: tab bar (Today, Approvals, Ideas, More) + More sheet ---------- */
.tab-more { display: none; }
.sheet[hidden] { display: none; }
@media (max-width: 760px) {
  .tabs .tab-more { display: grid; place-items: center; align-content: center; gap: 2px; background: none; border: 0; color: var(--muted);
    font: 500 11px/1.2 var(--mono); cursor: pointer; position: relative; }
  .tabs .tab-more[aria-current="page"], .tabs .tab-more[aria-expanded="true"] { color: var(--text); }
  .tabs a[aria-current="page"], .tabs .tab-more[aria-current="page"] { box-shadow: inset 0 2px 0 var(--mag); }
  .sheet { position: fixed; inset: 0; z-index: 25; background: rgba(10,10,11,.72); display: flex; align-items: flex-end; }
  .sheet-in { width: 100%; background: var(--s1); border-top: 1px solid var(--line-hi); padding: 8px 16px calc(80px + env(safe-area-inset-bottom)); display: grid; }
  .sheet-in a, .sheet-in .find-m { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line-soft);
    color: var(--text); text-decoration: none; font: 500 16px/1 var(--mono); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; }
  .sheet-in a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--mag); padding-left: 12px; }
  .sheet-in .n { background: var(--mag-fill); color: #fff; font: 600 11px/1 var(--mono); padding: 4px 6px; }
  .sheet-in .find-m { color: var(--muted); }
  .sheet-in .find-m kbd { margin-left: auto; }
  .sheet-in .sheet-x { margin-top: 12px; height: 44px; }
}

/* ---------- Systems + Notes (build package) ---------- */
.sb-top p b { color: var(--text); font-weight: 500; }
.sys { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 40px; margin: 0 32px 64px; border-top: 1px solid var(--line); }
.sys-toc { position: sticky; top: 76px; align-self: start; display: grid; padding-top: 20px; }
.sys-toc a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.sys-toc a:hover { color: var(--text); }
.sys-toc .n, .sec-h .n { background: var(--mag-fill); color: #fff; font: 600 11px/1 var(--mono); padding: 3px 6px; }
.sys-main { min-width: 0; }
.sgrp { padding: 22px 0 8px; border-bottom: 1px solid var(--line-soft); }
.sgrp .sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sgrp .sec-h .sp { flex: 1; }
.sgrp .cnt { color: var(--muted); font-size: 13px; }
.srows { list-style: none; margin: 0; padding: 0; }
.sr-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); }
.sr-main { flex: 1; display: grid; grid-template-columns: 200px 120px minmax(0, 1fr) 150px; gap: 4px 16px; align-items: baseline; padding: 12px 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
div.sr-main { cursor: default; }
button.sr-main:hover .nm { color: var(--mag-t); }
.sr-main .nm { font-weight: 500; }
.sr-main .nt { color: var(--muted); font-size: 13px; }
.sr-main .wh { color: var(--faint); font-size: 12px; text-align: right; }
.sgrp.look .sr-row:has(.st.bad) { box-shadow: inset 2px 0 0 var(--bad); padding-left: 12px; }
.sgrp.look .sr-row:has(.st.warn) { box-shadow: inset 2px 0 0 var(--warn); padding-left: 12px; }
.st.unknown { color: var(--faint); } .st.unknown i { border: 1px dashed var(--faint); border-radius: 50%; background: none; }
.obx { list-style: none; margin: 0; padding: 0; }
.obx li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.obx li > div:first-child { flex: 1; }
.obx b { font-weight: 500; }
.obx p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.obx .acts { display: flex; gap: 8px; }
.fold { margin: 8px 0 12px; }
.fold summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 0; }
.fchips { list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.fchips button { height: 34px; padding: 0 12px; background: transparent; border: 1px solid var(--line); color: var(--text); font: 400 13px/1 var(--mono); cursor: pointer; }
.fchips button:hover { border-color: var(--line-hi); }
.sdrawer[hidden] { display: none; }
.sdrawer { position: fixed; inset: 0; z-index: 35; background: rgba(10,10,11,.6); display: flex; justify-content: flex-end; }
.sdrawer-in { width: min(440px, 100%); height: 100%; overflow: auto; background: var(--s1); border-left: 1px solid var(--line-hi); padding: 24px; display: grid; gap: 14px; align-content: start; }
.sdrawer-in .sec-h { display: flex; align-items: center; gap: 10px; }
.sdrawer-in .sec-h .sp { flex: 1; }
.sdrawer-in label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.sdrawer-in .hint { color: var(--faint); }
.sdrawer-in input, .sdrawer-in select, .sdrawer-in textarea { background: var(--bg); border: 1px solid var(--line-hi); color: var(--text); font: 400 14px/1.5 var(--mono); padding: 8px 10px; border-radius: 0; }
.sdrawer-in .crow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sdrawer-in .crow .sp { flex: 1; }
@media (max-width: 1100px) { .sr-main { grid-template-columns: 160px 110px minmax(0, 1fr); } .sr-main .wh { grid-column: 3; text-align: left; } }
@media (max-width: 760px) {
  .sys { grid-template-columns: minmax(0, 1fr); margin: 0 16px 32px; }
  .sys-toc { position: static; display: flex; overflow-x: auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sys-toc a { white-space: nowrap; border: 0; padding: 4px 0; }
  .sr-main { grid-template-columns: minmax(0, 1fr) auto; }
  .sr-main .nt { grid-column: 1 / -1; }
  .sr-main .wh { grid-column: 1 / -1; text-align: left; }
  .sr-row { flex-wrap: wrap; }
  .sr-row > .btn { margin-bottom: 12px; }
  .obx li { flex-direction: column; }
  .obx .acts { width: 100%; } .obx .acts .btn { flex: 1; height: 44px; }
  .sdrawer-in { padding: 20px 16px 96px; }
}
.notes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin: 0 32px 64px; border-top: 1px solid var(--line); }
.ncol { padding: 22px 32px 24px 0; min-width: 0; }
.ncol + .ncol { padding: 22px 0 24px 32px; border-left: 1px solid var(--line-soft); }
.ncol .sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ncol .sec-h .sp { flex: 1; }
.ncol .cnt, .grp-h .cnt { color: var(--muted); font-size: 13px; font-weight: 400; }
.grp-h { font-size: 13px; font-weight: 500; color: var(--muted); margin: 20px 0 4px; }
.plans, .tips, .srcs { list-style: none; margin: 0; padding: 0; }
.pl, .tips li { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); }
.pl-main { flex: 1; display: grid; gap: 4px; padding: 12px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pl-main:hover .t { color: var(--mag-t); }
.pl-main .t { font-weight: 500; }
.pl-main p { color: var(--muted); font-size: 13px; }
.pl-main .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-main .due { color: var(--faint); font-size: 12px; }
.tag.hi { border-color: var(--text); color: var(--text); }
.tip-f { display: flex; gap: 8px; margin: 4px 0 8px; }
.tip-f input, .tip-f select { height: 36px; background: var(--bg); border: 1px solid var(--line-hi); color: var(--text); font: 400 13px/1 var(--mono); padding: 0 10px; border-radius: 0; }
.tip-f input { flex: 1; min-width: 0; }
.srcs li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.srcs li span { flex: 1; }
.srcs + .btn { margin-top: 12px; }
@media (max-width: 760px) {
  .notes { grid-template-columns: minmax(0, 1fr); margin: 0 16px 32px; }
  .ncol, .ncol + .ncol { padding: 20px 0; border-left: 0; }
  .ncol + .ncol { border-top: 1px solid var(--line); }
  .pl { flex-wrap: wrap; padding-bottom: 12px; }
  .pl > .btn { margin-left: auto; }
}
body { min-height: 100vh; }

/* ---------- Full video card (/video#id) ---------- */
.fv { padding: 20px 32px 140px; max-width: 1440px; margin: 0 auto; }
.fv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; }
.fv-top .sp { flex: 1; }
.fv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: start; }
.aspect { display: inline-flex; border: 1px solid var(--line); margin-bottom: 12px; }
.aspect button { height: 32px; padding: 0 12px; background: none; border: 0; color: var(--muted); font: 500 12px/1 var(--mono); cursor: pointer; }
.aspect button[aria-checked="true"] { background: var(--s3); color: var(--text); box-shadow: inset 0 -2px 0 var(--mag); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.lyr-ov { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; font: 500 22px/1.3 var(--mono); color: #fff; }
.fv .scrub { margin-top: 10px; }
.cutband { position: absolute; top: 0; bottom: 0; background: rgba(242,246,245,.18); }
.cutband.struck { background: repeating-linear-gradient(45deg, rgba(242,246,245,.12) 0 3px, transparent 3px 6px); }
.fv .under-phone { color: var(--faint); font-size: 12px; margin-top: 8px; }
.fv .under-phone b { color: var(--muted); font-weight: 500; }
.lyr, .cuts { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.lyr .sec-h, .cuts .sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.lyr .sec-h .sp { flex: 1; }
.lyr .cnt, .cuts .cnt { color: var(--muted); font-size: 13px; }
.lyrl, .cutl { list-style: none; margin: 0; padding: 0; }
.lyrl { max-height: 320px; overflow: auto; }
.lyrl li { display: flex; align-items: center; border-top: 1px solid var(--line-soft); }
.lyrl li.sec { color: var(--faint); font-size: 12px; padding: 10px 0 4px; border-top: 0; }
.lyrl .ln { flex: 1; display: flex; gap: 16px; padding: 8px 0; background: none; border: 0; color: var(--muted); font: 400 14px/1.4 var(--mono); text-align: left; cursor: pointer; }
.lyrl .tm { color: var(--faint); font-size: 12px; width: 40px; }
.lyrl li.cur { box-shadow: inset 2px 0 0 var(--text); }
.lyrl li.cur .ln { color: var(--text); padding-left: 12px; }
.lyrl .ln-note { opacity: 0; background: none; border: 0; color: var(--muted); font: 12px var(--mono); cursor: pointer; }
.lyrl li:hover .ln-note, .lyrl .ln-note:focus-visible { opacity: 1; }
.cutl li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.cutl .rng { width: 120px; font-variant-numeric: tabular-nums; }
.cutl .why { flex: 1; color: var(--muted); font-size: 13px; }
.cutl li.struck .rng, .cutl li.struck .why { text-decoration: line-through; color: var(--faint); }
.qc { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; }
.qc-why { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.dest { border: 0; border-top: 1px solid var(--line-soft); margin: 0 0 20px; padding: 12px 0 0; display: grid; gap: 8px; font-size: 13px; }
.dest legend { color: var(--muted); font-size: 12px; padding: 0; margin-bottom: 6px; }
.dest label { display: flex; gap: 8px; align-items: baseline; }
.fv .thumb { margin-top: 12px; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.decide.fvd { left: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 1100px) { .fv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .fv { padding: 12px 16px 220px; }
  .fv-top .muted { display: none; }
  .qc { grid-template-columns: 1fr; }
  .lyr-ov { font-size: 14px; }
  .cutl li { flex-wrap: wrap; } .cutl .why { flex-basis: 100%; order: 3; }
}
.fv .scrub { width: 100%; }
.fv .under-phone { display: block; width: auto; }
.dest label { background: none; border: 0; padding: 0; min-height: 0; }
@media (max-width: 1100px) {
  .fv-grid { display: flex; flex-direction: column; gap: 0; }
  .fv-media { display: contents; }
  .fv-media > .aspect, .fv-media > .player, .fv-media > .scrub, .fv-media > .under-phone { order: 1; }
  .fv-grid > .detail { order: 2; margin-top: 24px; }
  .fv-media > .lyr { order: 3; } .fv-media > .cuts { order: 4; }
  .fv-media > .aspect { align-self: flex-start; }
}
@media (max-width: 760px) { .lyr .sec-h .muted { display: none; } }

/* ---------- Sign in + Trust this browser ---------- */
.gate-body::before { display: none; }
.gate2 { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 520px; }
.gate-art { height: auto; margin: 0; border: 0; border-right: 1px solid var(--line); }
.gate-art .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-art .logo { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 150px; width: auto; }
.gate-pane { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; max-width: 520px; }
.gate-app { font: 700 13px/1 var(--title); letter-spacing: .06em; color: var(--muted); margin-bottom: 24px; }
.gate-pane h1 { font-size: 36px; }
.gate-sub { color: var(--muted); margin: 12px 0 28px; }
.gate-sub code { font: inherit; color: var(--text); }
.gate-form { display: grid; gap: 8px; }
.gate-form label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.gate-form label .hint { color: var(--faint); }
.gate-form input[type=text], .gate-form input[type=password] { height: 44px; background: var(--bg); border: 1px solid var(--line-hi); color: var(--text); font: 400 15px/1 var(--mono); padding: 0 12px; border-radius: 0; }
.gate-form .remember { display: flex; gap: 8px; align-items: center; color: var(--text); margin-top: 16px; }
.gate-form .hint { color: var(--faint); font-size: 12px; }
.gate-form .err { color: var(--bad); font-size: 13px; }
.gate-form .err::before { content: "\2716\00a0"; }
.gate-form .btn { margin-top: 16px; width: 100%; }
.gate-foot { color: var(--faint); font-size: 12px; margin-top: 28px; }
@media (max-width: 900px) {
  .gate2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: 180px auto; }
  .gate-art { border-right: 0; border-bottom: 1px solid var(--line); }
  .gate-art .logo { height: 96px; }
  .gate-pane { padding: 28px 16px 40px; max-width: none; }
  .gate-pane h1 { font-size: var(--fs-title-phone); }
}

/* ---------- states (empty, loading, error, stale) ---------- */
.stgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0 32px 64px; border-top: 1px solid var(--line); }
.stc { padding: 22px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.stc-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.stc-h h2 { font-size: 15px; }
.stc-h .where { color: var(--faint); font-size: 12px; }
.stc-demo { background: var(--s1); border: 1px solid var(--line-soft); padding: 16px; display: grid; gap: 10px; }
.stc-demo .sec-h { display: flex; align-items: baseline; gap: 8px; }
.stc-demo .sec-h h2 { font-size: 15px; }
.stc-demo .cnt { color: var(--muted); font-size: 13px; }
.stc-rule { color: var(--muted); font-size: 12px; margin-top: 10px; }
.empty-ok, .empty { color: var(--muted); font-size: 13px; }
.empty-ok .st { color: var(--text); }
.skel { display: grid; gap: 10px; }
.skel i { display: block; height: 14px; background: var(--s3); width: 100%; }
.sec-err { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 13px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-left: 2px solid var(--warn); background: var(--s2); font-size: 13px; color: var(--muted); }
.stale { opacity: .7; font-size: 14px; }
.stale .asof { color: var(--faint); font-size: 12px; margin-left: 8px; }
.toast.static { position: static; transform: none; opacity: 1; pointer-events: auto; }
.notice { color: var(--text); font-size: 13px; border-left: 2px solid var(--line-hi); padding-left: 12px; }
.sys-n { color: var(--muted); font-size: 12px; }
.gate-err { color: var(--bad); font-size: 13px; }
@media (max-width: 900px) { .stgrid { grid-template-columns: minmax(0, 1fr); margin: 0 16px 32px; } }
body { position: relative; }
.toast.static { min-width: 0; max-width: 100%; width: auto; flex-wrap: wrap; white-space: normal; }
.sec-err .st, .under-phone .st, .banner .st { white-space: normal; }

/* ---------- Find (/) and Keys (?) overlays ---------- */
.ovl[hidden] { display: none; }
.ovl { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,11,.72); display: flex; justify-content: center; align-items: flex-start; padding: 96px 16px 16px; }
.ovl-in { width: min(640px, 100%); background: var(--s1); border: 1px solid var(--line-hi); max-height: calc(100vh - 120px); overflow: auto; }
.find-in input { width: 100%; height: 56px; padding: 0 18px; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: 400 18px/1 var(--mono); border-radius: 0; }
.fres { padding: 4px 0 8px; }
.fres h3 { font-size: 12px; color: var(--faint); font-weight: 500; padding: 12px 18px 4px; }
.fres a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 18px; color: var(--text); text-decoration: none; }
.fres a span { color: var(--faint); font-size: 12px; text-align: right; }
.fres a:hover, .fres a:focus-visible { background: var(--s2); outline-offset: -2px; }
.fres a[aria-selected="true"] { background: var(--s2); box-shadow: inset 2px 0 0 var(--mag); }
.fres a b { font-weight: inherit; }
.fres mark { background: none; color: var(--text); text-decoration: underline; text-decoration-color: var(--mag-t); text-underline-offset: 3px; }
.fhint, .fmore { color: var(--faint); font-size: 12px; padding: 10px 18px 4px; margin: 0; }
.fnone { padding: 28px 18px; margin: 0; color: var(--text); }
.fnone span { display: inline-block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.ovl-link { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; cursor: pointer; }
.ovl-link:hover { color: var(--text); }
.keys-h { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 8px; }
.keys-in .keys-h h2 { padding: 0; }
.kgrp { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.kgrp h3 { font-size: 12px; font-weight: 500; color: var(--faint); padding: 0 18px 8px; margin: 0; }
.kgrp h3 span { color: var(--mag-t); margin-left: 8px; }
.kgrp.here dd { color: var(--text); }
.ovl-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--faint); font-size: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.keys-in { padding: 20px 0 0; width: min(520px, 100%); }
.keys-in h2 { padding: 0 18px 12px; font-size: 15px; margin: 0; }
.keys-in dl { display: grid; grid-template-columns: 136px 1fr; gap: 8px 16px; margin: 0; padding: 0 18px 16px; }
.keys-in dd { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .ovl { padding-top: 16px; } .fres a { flex-direction: column; gap: 2px; } .fres a span { text-align: left; } }
@media (max-width: 760px) {
  .sb-top .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .sb-top .seg button { padding: 0 6px; font-size: 12px; white-space: normal; line-height: 1.2; min-height: 40px; }
}
.thumb.noimg { display: block; background: var(--s2); border: 1px solid var(--line-soft); }
.item .late { color: var(--warn); }

/* Approvals: "1 of 3" opens the queue. Desktop shows the queue column, so it reads as plain text there.
   Phone: prev / next arrows beside it, and the queue (with bulk approve and the Full video row) opens as a bottom sheet. */
.q-h { display: flex; align-items: center; gap: 8px; }
.q-x, .qnav, .qpos-all { display: none; }
.qpos { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: default; }
@media (max-width: 760px) {
  .progress { gap: 8px; }
  .progress .bar2 { display: none; }
  .qnav { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 0;
    background: var(--s2); color: var(--text); font: 500 20px/1 var(--mono); cursor: pointer; }
  .qnav:disabled { background: transparent; color: var(--faint); cursor: default; }
  .qpos { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--s2);
    color: var(--text); font: 500 14px/1 var(--mono); letter-spacing: -.01em; cursor: pointer; }
  .qpos-all { display: inline; color: var(--muted); white-space: pre; }
  .qsheet.on { display: flex; position: fixed; inset: 0; z-index: 36; align-items: flex-end; padding: 0; border: 0; background: rgba(10,10,11,.72); }
  .qsheet .queue-in { width: 100%; max-height: 82vh; overflow: auto; background: var(--s1); border-top: 1px solid var(--line-hi);
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .qsheet .q-h { margin-bottom: 8px; }
  .qsheet .q-h h2 { margin: 0; }
  .qsheet .q-x { display: inline-flex; margin-left: auto; height: 44px; }
  .qsheet .queue a { min-height: 56px; }
}

/* =====================================================================
   App additions (v3.2.0 build): utilities that replace the mockup's inline styles (strict CSP: no style attributes),
   chrome bits the live app needs (Log out, offline), and the live data states.
   ===================================================================== */
[hidden] { display: none !important; }
.w60 { width: 60% !important; }
.mt6 { margin-top: 6px; }
.bar-logout { flex: none; }
.is-offline #main, .is-offline .queue { opacity: .7; }
.banner.offline { position: relative; z-index: 19; }
[data-decide][aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.banner.offline { margin: 0; padding-left: 32px; border-left-width: 0; box-shadow: inset 2px 0 0 var(--warn); }
@media (max-width: 760px) {
  .bar-logout { display: none; }
  .banner.offline { padding-left: 16px; }
}
.st.big i { width: 22px; height: 22px; }
.small { font-size: 13px; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--mag-t); }
.log .empty { color: var(--cole); }
.hill { margin: 0; }
.hill svg { width: 100%; height: auto; display: block; }
/* one-line reasons stay short: long bot notes clamp to two lines (full text in Systems) */
.health .why, .item.problem .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Approvals (live) ---------- */
.media-col { min-width: 0; }
.phone-img { width: 100%; height: 100%; object-fit: cover; }
.phone-none { padding: 24px 16px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.phone .ov-snd { display: block; margin-top: 4px; }
.qthumb { width: 40px; height: 54px; background: var(--s3); display: block; }
.purpose { font-size: 13px; margin: -12px 0 20px; }
.mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .ml8 { margin-left: 8px; }
.tags { margin: -10px 0 16px; }
.ro { padding: 10px 0; color: var(--muted); }
.brk { overflow-wrap: anywhere; }
.bulk-btn { width: 100%; margin-top: 12px; white-space: normal; height: auto; min-height: 36px; padding: 8px 12px; line-height: 1.35; }
.pins input { width: 100%; min-width: 0; background: var(--s1); border: 1px solid var(--line-hi); color: var(--text); font: 400 13px/1.4 var(--mono); padding: 4px 8px; }
.st-flip { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.st-flip:hover .st { text-decoration: underline; text-underline-offset: 3px; }
.cmp { margin-top: 10px; display: grid; gap: 8px; }
.cmp-row { display: grid; gap: 2px; font-size: 13px; }
.cmp-row b { color: var(--muted); font-weight: 500; font-size: 12px; }
.cmp-row del { color: var(--faint); text-decoration-color: var(--faint); }
.cmp-row ins { color: var(--text); text-decoration: none; box-shadow: inset 2px 0 0 var(--line-hi); padding-left: 8px; }
.confirm-in { padding: 20px 18px; display: grid; gap: 12px; }
.confirm-in h2 { font-size: 17px; }
.confirm-in textarea { width: 100%; }
.confirm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); max-height: 40vh; overflow: auto; }
.confirm-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.confirm-list span { color: var(--faint); font-size: 12px; text-align: right; }
.confirm-left { color: var(--warn); font-size: 12px; }
.confirm-in .crow { margin-top: 0; }
@media (max-width: 760px) { .confirm-list li { flex-direction: column; gap: 2px; } .confirm-list span { text-align: left; } }

/* ---------- Schedule (live) ---------- */
.lg-chip { padding: 2px 8px; display: inline-block; }
.legend-sch { padding: 14px 0 0; }
.rel-t { font: 600 20px/1.3 var(--mono); letter-spacing: -.03em; margin-bottom: 4px; }
.mb14 { margin-bottom: 14px; }
.day.other { opacity: .45; }
.day.drop { box-shadow: inset 0 0 0 1px var(--mag-t); }
.ev[draggable="true"] { cursor: grab; }
.sch-list .cal { display: none; }
.sch-list .mlist { display: block; }
.sch-list .mlist h3 { font-size: 14px; color: var(--muted); font-family: var(--ui); font-weight: 500; margin: 18px 0 8px; }
.sch-list .mlist h3.today { color: var(--text); }
.sch-list .mlist .ev, .sch-list .mlist .gap { margin-bottom: 6px; width: 100%; }
.mlist .empty { margin-bottom: 6px; }
.grp-h { margin: 14px 0 8px; }
.sys-toc .toc-old { color: var(--faint); margin-top: 12px; border-bottom: 0; }

/* ---------- Notes (live) ---------- */
.linkish { background: none; border: 0; padding: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 4px; }
.linkish:hover { color: var(--mag-t); }
.kind-filter { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.pl-main .due.late { color: var(--warn); }
.empty.small { font-size: 12px; padding: 6px 0; }

/* ---------- Ideas (live) ---------- */
.sent li { display: block; padding: 0; }
.sent-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; width: 100%; padding: 12px 0; background: none; border: 0; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sent-h p { grid-column: 1 / -1; color: var(--text); }
.sent-h:hover p { text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 4px; }
.sent-h .when { color: var(--faint); font-size: 12px; text-align: right; }
.sent li.open .thr { display: block; border-top: 0; padding: 0 0 14px; }
.icard-h .foot .tag { height: 20px; }
.lane-move { display: inline-flex; flex-wrap: wrap; }
.lane-move button { height: 30px; padding: 0 10px; margin-left: -1px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 400 12px/1 var(--mono); cursor: pointer; }
.lane-move button:hover { color: var(--text); }
.lane-move button[aria-pressed="true"] { color: var(--text); border-color: var(--text); position: relative; z-index: 1; }
.card-tools { margin: 12px 0 0; }
.tools-in { display: grid; gap: 10px; padding: 4px 0 4px; }
.tool-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.tool-l select { height: 30px; max-width: 100%; min-width: 0; background: var(--s1); color: var(--text); border: 1px solid var(--line-hi); border-radius: 0; font: 400 12px/1 var(--mono); padding: 0 8px; }
.thr .reply textarea { width: 100%; }

/* ---------- Sign in / Trust (live template slots) ---------- */
.gate-form .err:not(.show), .gate-form .notice:not(.show), .gate-form .totp.hidden { display: none; }
.gate-form .totp { display: grid; gap: 8px; }
.gate-form .notice.show { margin: 4px 0 8px; }
.gate-form .remember input { accent-color: var(--mag); }
.gate-art { min-height: 100%; }

/* ---------- Storyboard (live) ---------- */
.rv-sb { min-height: 0; }
.page-tight { padding-top: 4px; }
.queue img.qt-sb { width: 54px; height: 40px; }
.queue img.qt-art { width: 54px; height: 54px; object-position: top; }
.queue a:has(.qt-sb), .queue a:has(.qt-art) { grid-template-columns: 54px 1fr; }
.sbf-h .hi { color: var(--text); }
.pnl-none, .oc-none { aspect-ratio: 16 / 9; background: var(--s2); color: var(--faint); font-size: 12px; display: grid; place-items: center; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; }
.dest.sb-dest { display: block; background: var(--s1); border: 1px solid var(--line-soft); padding: 18px; margin: 0; font-size: 14px; }
.dest.sb-dest h2 { font-size: 16px; margin-bottom: 4px; }
.dest.sb-dest p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.dest.sb-dest label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.dest.sb-dest label span small { display: block; color: var(--muted); font-size: 13px; }
.sb-decide { left: 260px; }
.pins .t { cursor: default; }
@media (max-width: 760px) { .sb-decide { left: 0; } }
.route-hint { margin-top: 10px; font-size: 12px; }
.oc .st { white-space: normal; }

/* =====================================================================
   Motion (Wes, 2026-10-06, experiment): card focus + Approvals carousel.
   Only transform and opacity move; prefers-reduced-motion (rule near the top) stops all of it.
   ===================================================================== */
::view-transition-group(bs-focus) { animation-duration: .3s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(bs-focus), ::view-transition-new(bs-focus) { animation-duration: .3s; height: 100%; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }
[data-vt] { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.has-focus [data-vt]:not(.is-focus) { opacity: .55; }
.is-focus { position: relative; z-index: 2; transform: scale(1.012); background: var(--s1); box-shadow: inset 2px 0 0 var(--mag), 0 0 0 1px var(--line); }
.cal .is-focus, .ev.is-focus { transform: scale(1.06); }
.queue li.is-focus { transform: none; box-shadow: none; background: none; }
.sdrawer:not([hidden]) { animation: bs-fade .24s var(--ease) both; }
.sdrawer:not([hidden]) .sdrawer-in { animation: bs-drawer .32s var(--ease) both; }
@keyframes bs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bs-drawer { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet:not([hidden]) .sheet-in, .qsheet.on .queue-in { animation: bs-rise .3s var(--ease) both; }
@keyframes bs-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Approvals carousel: the post in focus with the next one peeking at the edge (and the previous, fainter) */
.media-col { position: relative; }
.media-col .phone { z-index: 2; touch-action: pan-y; will-change: transform; }
.peek { position: absolute; top: 48px; width: 250px; aspect-ratio: 9 / 16; border: 1px solid var(--line); background: var(--s2) center / cover no-repeat;
  overflow: hidden; z-index: 1; cursor: pointer; padding: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.peek img { width: 100%; height: 100%; object-fit: cover; display: block; }
.peek.next { right: -40px; opacity: .55; transform: scale(.94); }
.peek.prev { left: -40px; opacity: .3; transform: scale(.9); }
.focus > .detail { position: relative; z-index: 3; }
.peek:hover { opacity: .7; }
.peek.next:hover { transform: scale(.96); }
@media (max-width: 1100px) { .peek.next { right: calc(50% - 250px); } .peek.prev { left: calc(50% - 250px); } }
@media (max-width: 760px) {
  .peek { width: min(200px, 52vw); top: 36px; }
  .peek.next { right: -4px; } .peek.prev { left: -4px; }
}
