/* 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); }


/* ---------- Type pass (v3.2.1, Wes 2026-10-06): ALL IBM Plex Mono, as in the approved v3 mockup ----------
   Screen titles Plex Mono 500 with negative tracking; buttons Plex Mono 500, tracking about 0. No Orbitron anywhere. */
.bar-name { font: 600 15px/1 var(--mono); letter-spacing: -.04em; }
h1 { font-family: var(--mono); font-weight: 500; letter-spacing: var(--track-title); font-size: var(--fs-title); line-height: 1.05; }
.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(--mono); font-weight: 500; letter-spacing: var(--track-btn); }
.btn.primary { font-weight: 600; }
@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: 600 15px/1 var(--mono); letter-spacing: -.04em; 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; }
}

/* =====================================================================
   v3.2.1 shell (Wes approved the Approvals redesign, AI-Hub PR #22): quiet sidebar on every page,
   phone tabs Today / Approvals / Schedule / Ideas / More at 900 px and below.
   ===================================================================== */
.side { display: none; }
@media (min-width: 901px) {
  body.has-side { padding-left: var(--side); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; width: var(--side); display: flex; flex-direction: column;
    padding: 28px 16px 22px; background: var(--bg); border-right: 1px solid var(--line-soft); }
  body.has-side::before { left: calc(var(--side) + (100% - var(--side)) / 2); width: min(1320px, 100% - var(--side) - 64px); }
}
.side-name { font: 600 15px/1 var(--mono); letter-spacing: -.04em; color: var(--text); text-decoration: none; padding: 0 12px; margin-bottom: 36px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; height: 40px; padding: 0 12px; color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: -.02em; }
.side-nav a:hover { color: var(--text); }
.side-nav a[aria-current="page"] { color: var(--text); background: var(--s2); }
.side-nav .n { margin-left: auto; color: var(--mag-t); font-weight: 600; font-size: 13px; }
.side-foot { margin-top: auto; display: grid; justify-items: start; gap: 4px; padding: 0 12px; font-size: 12px; color: var(--faint); }
.side-lnk { background: none; border: 0; padding: 2px 0; color: var(--faint); font: 400 12px/1.6 var(--mono); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.side-lnk:hover { color: var(--text); }
.side-lnk kbd { font-size: 10px; padding: 2px 4px; color: var(--faint); border-color: var(--line); }
.side-foot .synced { font-size: 12px; }
/* fixed bars line up with the content column, not the window edge */
@media (min-width: 901px) {
  .decide { left: calc(var(--side) + 260px); }
  .decide.fvd { left: var(--side); }
  .sb-decide { left: calc(var(--side) + 260px); }
  .toast { left: calc(var(--side) + 40px); transform: translateY(12px); }
  .toast.on { transform: none; }
  .sys-toc { top: 20px; }
  .rv { min-height: 100vh; }
}
.toast { background: var(--s2); }
.tabs .n { display: inline; }
@media (max-width: 900px) {
  body.has-side { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); }
  .tabs a, .tabs .tab-more { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); text-decoration: none;
    font: 400 11px/1.2 var(--mono); background: none; border: 0; cursor: pointer; }
  .tabs a[aria-current="page"], .tabs .tab-more[aria-current="page"], .tabs .tab-more[aria-expanded="true"] { color: var(--text); box-shadow: inset 0 2px 0 var(--mag); }
  .tabs svg { width: 20px; height: 20px; }
  .tabs .n { position: absolute; top: 9px; left: calc(50% + 8px); transform: none; min-width: 0; height: auto; padding: 0; background: none; color: var(--mag-t); font: 600 11px/1 var(--mono); }
  .toast { left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateY(12px); justify-content: space-between; }
  .toast.on { transform: none; }
  .decide, .sb-decide, .decide.fvd { left: 0; bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sheet { position: fixed; inset: 0; z-index: 35; 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: 0; border-bottom: 1px solid var(--line-soft);
    color: var(--text); text-decoration: none; font: 500 16px/1 var(--mono); background: none; text-align: left; cursor: pointer; }
  .sheet-in a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--mag); padding-left: 12px; }
  .sheet-in .find-m { color: var(--muted); }
  .sheet-in .find-m kbd { margin-left: auto; }
  .sheet-in .sheet-x { margin-top: 12px; height: 44px; }
}

/* =====================================================================
   v3.2.1 Approvals = the approved mockup (AI-Hub PR #22, design/battle-station/approvals-redesign/).
   Carousel of large cards left of centre; calm right column; Notes swaps in the v2 feedback panel.
   ===================================================================== */
.ap-page::before { display: none; }
.ap { display: grid; grid-template-columns: minmax(0, 1fr) var(--ap-col, 380px); gap: 40px; padding: 0 40px 0 0; min-height: 100vh; }
.ap-stage { position: relative; min-width: 0; display: flex; flex-direction: column; height: 100vh; min-height: 640px; }
.ap-stage-h { display: flex; align-items: baseline; gap: 18px; padding: 30px 0 0 40px; }
.ap-stage-h h1 { font-size: 30px; line-height: 1; letter-spacing: -.045em; }
.ap-sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ap-stage-h .sp { flex: 1; }
.ap-pos, .ap-done-l { white-space: nowrap; }
.ap-done-l { font-size: 13px; color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }
.ap-done-l b { color: var(--text); font-weight: 500; }
.ap-prog { display: flex; gap: 4px; flex: 0 1 150px; min-width: 48px; align-self: center; }
.ap-sub { flex: 0 0 auto; }
.ap-prog i { flex: 1; height: 2px; background: var(--s3); transition: background-color .3s var(--ease); }
.ap-prog i.on { background: var(--text); }
.ap-pos { color: var(--muted); font-size: 13px; min-width: 48px; }
.ap-car { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; user-select: none; outline: none; }
.ap-car:focus-visible { box-shadow: none; }
.ap-car:focus-visible .ap-card.is-on { border-color: var(--mag-t); }   /* keyboard focus = the card in focus, not a frame round the stage */
.ap-track { position: absolute; inset: 0; }
.ap-loading { position: absolute; left: 40px; top: 24px; }
.ap-card { position: absolute; left: 50%; top: 50%; width: var(--w); background: var(--s1); border: 1px solid var(--line);
  transform: translate(-50%, -50%) translate(var(--x, 0px), var(--y, 0px)) scale(var(--s, 1)); opacity: var(--o, 1);
  transition: transform .52s var(--ease), opacity .4s var(--ease), border-color .3s; will-change: transform; }
.ap-card.dragging { transition: none; }
.ap-card::after { content: ""; position: absolute; inset: -1px; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; transition: opacity .45s var(--ease); }
.ap-card:not(.is-on) { cursor: pointer; background: transparent; border-color: transparent; }
.ap-card:not(.is-on) .ap-acts, .ap-card:not(.is-on) .ap-scrub { visibility: hidden; }
.ap-card:not(.is-on) .ap-foot, .ap-card:not(.is-on) .ap-ov, .ap-card:not(.is-on) .ap-len { opacity: 0; }
.ap-foot, .ap-ov, .ap-len { transition: opacity .35s var(--ease); }
.ap-card.is-on { border-color: var(--line-hi); z-index: 3; }
.ap-media { position: relative; background: #000; overflow: hidden; }
.ap-media.v916 { aspect-ratio: 9 / 16; }
.ap-media.v169 { aspect-ratio: 16 / 9; }
.ap-frame { position: relative; width: 100%; height: 100%; }
.ap-media img, .ap-media video { width: 100%; height: 100%; object-fit: cover; }
.ap-none { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; padding: 16px; color: var(--faint); font-size: 13px; text-align: center; }
.ap-ov { position: absolute; left: 14px; right: 56px; bottom: 16px; font-size: 12px; line-height: 1.45; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.85); }
.ap-ov b { display: block; margin-bottom: 3px; font-weight: 600; }
.ap-snd { position: absolute; left: 10px; top: 10px; z-index: 2; height: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 2px;
  background: rgba(0,0,0,.6); color: #fff; font: 500 12px/1 var(--mono); cursor: pointer; }
.ap-snd[aria-pressed="true"] { border-color: var(--mag-t); }
.ap-card:not(.is-on) .ap-snd { visibility: hidden; }
.ap-len { position: absolute; right: 10px; top: 10px; font-size: 12px; color: #fff; background: rgba(0,0,0,.6); padding: 3px 6px; }
.ap-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--s1); }
.ap-panels img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ap-panels .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ap-panels.one { grid-template-columns: 1fr; }
.ap-panels.one img { aspect-ratio: 4 / 5; }
.ap-scrub { position: relative; height: 22px; display: flex; align-items: center; margin: 0 16px; cursor: pointer; }
.ap-t2 { position: relative; flex: 1; height: 2px; background: var(--s3); }
.ap-t2::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.ap-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--text); }
.ap-pin { position: absolute; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); border: 0; border-radius: 50%; padding: 0;
  background: var(--mag-fill); color: #fff; font: 600 10px/16px var(--mono); cursor: pointer; }
.ap-foot { padding: 14px 18px 18px; }
.ap-where { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); }
.ap-where b { color: var(--text); font-weight: 500; }
.ap-where .ver { margin-left: auto; }
.ap-card h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.03em; margin: 8px 0 6px; overflow-wrap: anywhere; }
.ap-cap { color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.ap-acts { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 16px; }
.ap-acts.two { grid-template-columns: 1fr auto; }
.ap .btn { height: 44px; padding: 0 16px; font-size: 14px; }
.ap .btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.ap .btn.strong { border-color: var(--text); }
.ap .btn.quiet { border-color: transparent; color: var(--muted); padding: 0 10px; background: transparent; }
.ap .btn.quiet:hover { color: var(--text); }
.ap .btn:active { transform: translateY(1px); }
.ap kbd { font: 500 11px/1 var(--mono); color: inherit; opacity: .7; border: 1px solid currentColor; padding: 3px 5px; background: transparent; }
.ap-notes-n { color: var(--mag-t); font-weight: 600; }
.ap-was { display: flex; align-items: center; }
.ap-stamp { display: none; margin-top: 16px; min-height: 44px; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.ap-stamp .ok { width: 12px; height: 12px; border-radius: 50%; background: var(--text); flex: none; }
.ap-card.decided .ap-acts { display: none; }
.ap-card.decided .ap-stamp { display: flex; }
.ap-card.leaving { --y: -40px; --o: 0; transition: transform .42s var(--ease), opacity .24s ease-in; }
.ap-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 360px; aspect-ratio: 9 / 16; max-height: 86%;
  border: 1px solid var(--line); display: none; flex-direction: column; justify-content: flex-end; padding: 28px; gap: 10px; }
.ap-empty h2 { font-size: 30px; line-height: 1.05; letter-spacing: -.05em; }
.ap-empty p { color: var(--muted); }
.ap-empty .row { margin-top: 14px; }
.is-empty .ap-empty { display: flex; animation: ap-rise .6s var(--ease) both; }
.is-empty .ap-prog, .is-empty .ap-track, .is-empty .ap-pos { display: none; }
@keyframes ap-rise { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); } }

/* right column */
.ap-col { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 30px 0 32px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; min-width: 0; }
.ap-pane { animation: ap-fade .22s var(--ease) both; }
@keyframes ap-fade { from { opacity: 0; transform: translateY(6px); } }
.ap-col h3 { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin: 0 0 8px; }
.ap-col section { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.ap-col .ap-pane > section:first-of-type { border-top: 0; padding-top: 0; }
.ap-big { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.ap-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 12px; font-size: 13px; margin: 0; }
.ap-kv dt { color: var(--muted); } .ap-kv dd { margin: 0; overflow-wrap: anywhere; }
.ap-pane-h { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ap-pane-h h2 { font-size: 20px; letter-spacing: -.035em; }
.ap-pane-h .sp { flex: 1; }
.ap-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.ap-thread li { padding-left: 14px; border-left: 1px solid var(--line); }
.ap-thread b { font-weight: 500; }
.ap-thread .t, .ap-thread s { color: var(--faint); }
.ap-thread p { margin-top: 2px; }
.ap-res { margin-top: 4px; }
.ap-res .st { font-size: 13px; }
.ap-lnk { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 4px; cursor: pointer; font: 400 13px var(--mono); }
.ap-lnk:hover { color: var(--mag-t); }
.ap .chips { gap: 6px; }
.ap .chip { height: 32px; padding: 0 11px; background: transparent; font: 400 13px/1 var(--mono); }
.ap .chip:hover { border-color: var(--line-hi); }
.ap .chip[aria-pressed="true"] { border-color: var(--text); background: var(--s2); }
textarea.ap-say { width: 100%; min-height: 110px; resize: vertical; background: var(--s1); border: 1px solid var(--line-hi); padding: 12px; font: 400 14px/1.55 var(--mono); }
textarea.ap-say:focus-visible { outline: none; border-color: var(--text); }
textarea.ap-say::placeholder { color: var(--faint); }
.ap-say-hint { min-height: 20px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.ap-say-hint.need { color: var(--mag-t); }
.ap-pins { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.ap-pins:empty { display: none; }
.ap-pins li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.ap-pins .t { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 1px 6px; font: 400 12px/1.5 var(--mono); cursor: pointer; }
.ap-pins .x { background: none; border: 0; color: var(--faint); cursor: pointer; font: 400 12px var(--mono); }
.ap-pins .x:hover { color: var(--text); }
.ap .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ap .priv input { accent-color: var(--mag-fill); }
.ap-send { display: grid; gap: 8px; }
.ap-send .btn { width: 100%; justify-content: space-between; }
.ap-send small { color: var(--faint); font-size: 12px; }
.ap-send .ap-rej { justify-self: start; width: auto; padding: 0; height: 32px; margin-top: 10px; }
.ap-fix { border-top: 1px solid var(--line-soft); padding: 14px 0; display: grid; gap: 6px; }
.ap-fix summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.ap-fix label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.ap-fix textarea { min-height: 72px; }
.ap-sheet-bg { display: none; }
.ap-sheet-h { display: none; }

@media (max-width: 1200px) and (min-width: 901px) { .ap { --ap-col: 330px; gap: 28px; padding-right: 28px; } .ap-done-l { display: none; } }

/* phone (900 and below): no sidebar, the card is full width and swipes, Notes opens as a bottom sheet */
@media (max-width: 900px) {
  .ap { display: block; padding: 0; min-height: 0; }
  .ap-stage { height: auto; min-height: 0; }
  .ap-stage-h { padding: 18px 16px 0; gap: 12px; }
  .ap-stage-h h1 { font-size: 24px; }
  .ap-sub, .ap-done-l { display: none; }
  .ap-prog { width: 90px; }
  .ap-car { flex: none; height: calc(100svh - 64px - 62px - env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; }   /* v3.3.3: a long title can still scroll to Approve */
  .ap-card { left: 16px; right: 16px; top: 14px; width: auto; transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--s, 1)); transform-origin: 50% 0; }
  .ap-media.v916 { aspect-ratio: auto; height: min(38svh, 400px); background: var(--s2); }   /* v3.3.3: 55svh pushed Approve off small phones */
  .ap-media.v916 .ap-frame { width: auto; aspect-ratio: 9 / 16; margin: 0 auto; background: #000; }
  .ap-panels img { max-height: 22svh; }
  .ap-panels.one img { max-height: 50svh; }
  .ap kbd, .ap-pane-h .btn.quiet { display: none; }
  .ap-foot { padding: 12px 14px 14px; }
  .ap-card h2 { font-size: 17px; margin: 6px 0 4px; }
  .ap-card h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
  .ap-where { white-space: nowrap; overflow: hidden; }
  .ap-where b { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ap-ov { display: none; }   /* v3.3.3: the caption is under the card; on a narrow preview the overlay covered the video */
  .ap-cap { -webkit-line-clamp: 1; min-height: 0; }
  .ap-acts { margin-top: 12px; }
  .ap-empty { width: calc(100% - 32px); aspect-ratio: auto; height: 60%; top: 14px; transform: translateX(-50%); }
  @keyframes ap-rise { from { opacity: 0; transform: translate(-50%, 16px); } }
  .ap-col { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 88svh; z-index: 60; background: var(--bg);
    border-top: 1px solid var(--line-hi); padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
  .sheet-open .ap-col { display: block; animation: ap-sheet .38s var(--ease) both; }
  .sheet-open .ap-sheet-bg { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.6); }
  .ap-sheet-h { display: flex; position: sticky; top: 0; z-index: 2; background: var(--bg); justify-content: space-between; align-items: center; gap: 12px; height: 52px; margin-bottom: 8px; }
  .ap-sheet-h b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ap-sheet-h::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 3px; background: var(--line-hi); transform: translateX(-50%); }
  @keyframes ap-sheet { from { transform: translateY(100%); } }
  .ap-col .ap-pane > section:first-of-type { padding-top: 0; }
}

/* ---------- v3.2.1 Notes > Tasks: ops items as plain tasks (who, when, a status mark; no Approve / Dismiss) ---------- */
.ntasks { margin: 0 32px 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 980px; }
.sec2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.sec2 h2 { font-size: 17px; letter-spacing: -.03em; }
.sec2 span { color: var(--muted); font-size: 13px; }
.tasks { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.tasks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 190px 150px; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.tasks .mk { width: 10px; height: 10px; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(1px); }
.tasks li.done .mk { background: var(--muted); }
.tasks .t { font-size: 15px; overflow-wrap: anywhere; }
.tasks .d { color: var(--muted); font-size: 13px; }
.tasks .who, .tasks .when { color: var(--muted); font-size: 13px; }
.tasks li.done .t { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line-hi); }
.moved { border: 1px solid var(--line); padding: 16px 18px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.moved b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) {
  .ntasks { margin: 0 16px 28px; }
  .tasks li { grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; }
  .tasks .who, .tasks .when { grid-column: 2; }
}

/* ---------- v3.2.1 Systems (audit rank 8): one line per note, the drawer has the rest ---------- */
.sr-main .nt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sr-row.is-short .nt { color: var(--faint); }
@media (max-width: 760px) { .sr-main .nt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* ---------- v3.2.1 Ideas: tightened to v3 (Wes: "close, just needs better aesthetics"; audit rank 6) ----------
   Full lanes share the width, empty lanes fold to a slim column; lane notes one line; card type 15 / 14 / 13 at higher contrast. */
@media (min-width: 1101px) {
  .ideas.ideas-4 { display: flex; align-items: stretch; }
  .ideas.ideas-4 > .compose { flex: 0 0 340px; }
  .ideas.ideas-4 > .ilane { flex: 1 1 0; min-width: 0; }
  .ideas.ideas-4 > .ilane.is-empty { flex: 0 0 168px; }
  .ilane.is-empty .lane-sub { white-space: normal; }
}
.ideas > section { padding-top: 24px; }
.ilane .lane-h h2 { font-size: 17px; }
.ilane .lane-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.ilane .empty { color: var(--faint); font-size: 13px; }
.icards { gap: 12px; }
.icard-h { padding: 16px 18px; gap: 6px; }
.icard-h .t { font-size: 15px; line-height: 1.4; }
.icard-h .s { font-size: 14px; line-height: 1.5; color: var(--muted); }
.icard-h .foot { font-size: 13px; color: var(--muted); margin-top: 10px; }
.icard-h .foot .st { font-size: 13px; }
.thr { padding: 4px 18px 18px; }
.thr > ol > li { padding: 12px 0 12px 14px; margin-top: 10px; }
.thr > ol > li.you { margin-left: 28px; }
.thr b { font-size: 13px; }
.thr time { font-size: 12px; color: var(--muted); }
.thr p, .thr .qs { font-size: 14px; line-height: 1.6; }
.sent-h { font-size: 14px; }
.sent-h .when { color: var(--muted); }
.summ p { font-size: 14px; }
.ilane.is-empty .lane-h .more { display: none; }
.sent .sent-h { margin: 0; letter-spacing: -.01em; }
.compose .lane-sub { margin: 0 0 12px; }
.tasks .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#fbHint.need { color: var(--mag-t); }

/* ---------- v3.2.1 Sign in: the 2FA code is its own group, clearly apart from username + password ---------- */
.gate-form fieldset.totp { border: 0; border-top: 1px solid var(--line); margin: 18px 0 0; padding: 14px 0 0; display: grid; gap: 8px; min-width: 0; }
.gate-form fieldset.totp legend { padding: 0; font-size: 13px; color: var(--text); font-weight: 500; float: left; width: 100%; margin-bottom: 4px; }
.gate-form input[type=text], .gate-form input[type=password] { width: 100%; }

/* =====================================================================
   v3.2.2 Storyboard (Wes, 2026-10-06: "the one in focus stays put so you can't see it"): the detail scrolls with the page,
   the "Waiting for you" list is a sticky column with its own scroll (reaches its end), and the fixed decision bar keeps its
   real height free under the detail (--sb-decide-h, measured in storyboard.js) so it never covers "After you approve".
   ===================================================================== */
#sbFocus { min-width: 0; }
#sbFocus .sbf { padding-bottom: calc(var(--sb-decide-h, 96px) + 48px); }
@media (min-width: 761px) {
  .rv-sb { align-items: start; }
  .rv-sb > .queue { position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
@media (max-width: 760px) {
  #sbFocus .sbf { padding-bottom: calc(var(--sb-decide-h, 124px) + 32px); }
  .sbv .queue ol { scroll-padding: 0 16px; }
}

/* =====================================================================
   v3.2.2 Approvals carousel (Wes, 2026-10-06: "an arrow and a sort of animated carousel"): previous / next arrows beside the
   card in focus, a straight line (no wrap-around), one dimmed preview each side that reads as a card (art + title), and a
   350 ms ease-out slide: cards move by transform + scale + opacity, the next one comes in from its own side.
   prefers-reduced-motion (rule near the top) makes every step instant.
   ===================================================================== */
.ap-card { transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s cubic-bezier(.22, 1, .36, 1), border-color .3s; }
.ap-card::after { transition: opacity .35s cubic-bezier(.22, 1, .36, 1); }
.ap-card:not(.is-on) { background: var(--s1); border-color: var(--line); }
.ap-card:not(.is-on) .ap-foot { opacity: 1; }
.ap-card:not(.is-on) .ap-cap, .ap-card:not(.is-on) .ap-acts { visibility: hidden; }
.ap-card:not(.is-on):hover { --dim: .3; }
.ap-arrow { position: absolute; left: 50%; top: 50%; z-index: 6; width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  transform: translate(-50%, -50%) translate(var(--ax, 0px), var(--ay, 0px));
  background: var(--bg); color: var(--text); border: 1px solid var(--line-hi); border-radius: 0; cursor: pointer;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .2s, border-color .2s, background-color .2s; }
.ap-arrow svg { width: 22px; height: 22px; }
.ap-arrow:hover:not(:disabled) { border-color: var(--text); background: var(--s2); }
.ap-arrow:focus-visible { outline: 1px solid var(--mag-t); outline-offset: 2px; }
.ap-arrow:active:not(:disabled) { transform: translate(-50%, -50%) translate(var(--ax, 0px), var(--ay, 0px)) scale(.94); }
.ap-arrow:disabled { opacity: .28; cursor: default; }
.ap-arrow[hidden], .is-empty .ap-arrow { display: none; }
.ap-card.bump-l { animation: ap-bump-l .32s cubic-bezier(.22, 1, .36, 1); }
.ap-card.bump-r { animation: ap-bump-r .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes ap-bump-l { 35% { translate: 14px 0; } }
@keyframes ap-bump-r { 35% { translate: -14px 0; } }
@media (max-width: 900px) {
  /* phone: swipe stays; the arrows sit on the edges of the art, over the card in focus */
  .ap-arrow { width: 40px; height: 40px; top: calc(14px + min(55svh, 500px) / 2); transform: translateY(-50%);
    background: rgba(10, 10, 11, .72); border-color: var(--line); }
  .ap-arrow.prev { left: 24px; }
  .ap-arrow.next { left: auto; right: 24px; }
  .ap-arrow:active:not(:disabled) { transform: translateY(-50%) scale(.94); }
  .ap-arrow:disabled { opacity: 0; pointer-events: none; }
}
@media (min-width: 901px) {
  /* the previews run off the stage edge: they fade out there instead of being cut by a hard line */
  .ap-car { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%); }
}
/* the stage header never runs under the right column (it did at 1280 x 720 in v3.2.1) */
@media (max-width: 1400px) and (min-width: 901px) { .ap-sub { flex: 0 1 auto; } .ap-done-l { display: none; } }

/* v3.2.2: Systems and Notes are archived (Wes, 2026-10-06): reachable by URL and from /console, with this line on top */
.archived-note { margin: 0; padding: 10px 32px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.archived-note a { color: var(--text); }
@media (max-width: 760px) { .archived-note { padding: 10px 16px; } }

/* =====================================================================
   v3.3.0 direction A "RTS command console" (Wes picked it 2026-10-07; prototype approved 14:30 CT,
   ~/ClaudeDrop/outbox/bs-game-vibe/round2/). Indigo holo panels, chamfered frames, corner brackets, faint scanlines
   under text (<= 6 %), live holo-grid background (bs-vibe.js). Magenta stays the ONE action colour.
   The sign-in page stays JavaScript-free (password managers): its boot-up is CSS only and never hides or delays a field.
   ===================================================================== */
:root {
  --bg: #05070D; --s1: #0B1022; --s2: #121A36; --s3: #1A2347;
  --line: #2A3566; --line-soft: #19213F; --line-hi: #8E9DF0;
  --muted: #9AA5C4; --faint: #7D88A8;
  --holo: #8E9DF0; --holo-a: rgba(142, 157, 240, .28);
  --ind: #121A36;
  --chamfer: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --chamfer-s: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
html { background: var(--bg) radial-gradient(120% 80% at 70% 0%, #0E1430 0%, #05070D 60%) no-repeat; background-size: 100% 100vh; }
body { background: transparent; }
/* fallback when WebGL is missing: a faint CSS grid on the page ground */
html:not(.vb-gl) body { background-image: linear-gradient(rgba(142,157,240,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(142,157,240,.045) 1px, transparent 1px);
  background-size: 100% 48px, 48px 100%; }
.vb-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; display: block; }

/* holo panels: glass fill + scanlines under the text, chamfered */
.card, .item, .ap-col, .log, .ap-card.is-on, .sb-card, .panel { background-color: rgba(11, 16, 34, .86); }
.card, .ap-col > section, .ap-card.is-on { background-image: repeating-linear-gradient(0deg, rgba(142,157,240,.045) 0 1px, transparent 1px 4px); }
.card, .ap-card { clip-path: var(--chamfer); }
.ap-card .ap-media { clip-path: none; }

/* shell */
.side { background: linear-gradient(180deg, rgba(14,20,48,.92), rgba(5,7,13,.96)); border-right-color: var(--line); }
.side-name { color: var(--holo); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.side-name { display: flex; align-items: center; gap: 10px; }   /* v3.3.2: LOCK-ON mark before the name */
.side-name img { flex: none; width: 22px; height: 22px; }
.side-nav a { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; position: relative; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.side-nav a[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(142,157,240,.22), transparent); }
.side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--holo); }
@media (max-width: 900px) {
  .tabs { background: #070A18; border-top-color: var(--line); }
  .tabs a[aria-current="page"], .tabs .tab-more[aria-current="page"], .tabs .tab-more[aria-expanded="true"] { box-shadow: inset 0 2px 0 var(--holo); background: rgba(142,157,240,.1); }
}

/* type accents */
.hero h1 + .sum b, .hero h1 { letter-spacing: -.04em; }
h2 { letter-spacing: -.02em; }

/* buttons: chamfered, press feedback; magenta primary unchanged in place and colour */
.btn { clip-path: var(--chamfer-s); background-color: rgba(18, 26, 54, .9); border-color: var(--line); transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, #F0216E, var(--mag-fill)); border-color: var(--mag-fill); }
.btn:focus-visible, .ap-card:focus-visible, .card:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--holo); background-color: rgba(142,157,240,.18); }
  .btn.primary:hover { background: var(--mag-hover); border-color: var(--mag-hover); }
}

/* Today rows: hover sweep + selected row (the bracket frame itself comes from bs-vibe.js) */
.item { position: relative; overflow: hidden; }
.item::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -45%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(142,157,240,.14), transparent); }
@media (hover: hover) and (pointer: fine) { .item:hover::after { animation: vb-sweep .55s var(--ease-out); } }
@keyframes vb-sweep { to { left: 110%; } }
.item.is-sel { background-color: rgba(142,157,240,.08); box-shadow: inset 2px 0 0 var(--holo); }
.vb-rel { position: relative; }
.vb-lock .item.is-sel:focus-visible { outline-color: transparent; }   /* lock-on brackets + the holo edge show the focus instead */

/* corner brackets (four real elements so GSAP can lock them on) */
.vb-brk { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.vb-brk i { position: absolute; width: 16px; height: 16px; border: 0 solid var(--holo); }
.vb-brk i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; transform-origin: 0 0; }
.vb-brk i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; transform-origin: 100% 0; }
.vb-brk i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; transform-origin: 0 100%; }
.vb-brk i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; transform-origin: 100% 100%; }
.vb-rowlock { inset: auto 0 auto 0; top: 0; height: 0; opacity: 0; z-index: 5; will-change: transform; }
.ap-media .vb-brk { inset: 8px; opacity: 0; }
.ap-media .vb-brk i { width: 26px; height: 26px; }
.ap-card:not(.is-on) .vb-brk { opacity: 0 !important; }
.vb-scan { position: absolute; left: 0; right: 0; top: 0; height: 4%; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(142,157,240,.28) 70%, rgba(220,226,255,.75)); }
.vb-pulse { position: absolute; inset: -1px; pointer-events: none; z-index: 5; border: 1px solid var(--holo); opacity: 0; clip-path: var(--chamfer); }

/* Approvals: carousel steps are quicker and land harder (interruptible: CSS transitions retarget) */
.ap-card { transition: transform .26s var(--ease-out), opacity .26s var(--ease-out), border-color .2s; }
.ap-card::after { transition: opacity .26s var(--ease-out); }
.ap-card.is-on { border-color: rgba(142,157,240,.55); }
.ap-arrow { clip-path: var(--chamfer-s); background-color: rgba(14, 20, 48, .92); color: var(--holo); border-color: var(--line); }
/* the queue strip: small thumbnails like a unit bar */
.ap-strip { position: relative; display: flex; gap: 10px; justify-content: center; padding: 12px 18px 16px; margin: 0 auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; flex: none; }
.ap-strip::-webkit-scrollbar { display: none; }
.ap-slot { flex: none; width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); background: var(--s1); cursor: pointer; opacity: .5;
  clip-path: var(--chamfer-s); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.ap-slot img { width: 100%; height: 100%; object-fit: cover; }
.ap-slot-none { display: grid; place-items: center; height: 100%; color: var(--faint); font-size: 13px; }
.ap-slot.on { opacity: 1; }
.ap-slot:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .ap-slot:hover { opacity: .85; } }
.vb-slotlock { inset: auto; left: 0; top: 0; z-index: 2; opacity: 0; will-change: transform; }
.vb-slotlock i { width: 11px; height: 11px; }
.is-empty .ap-strip { display: none; }
@media (max-width: 900px) {
  .ap-car { height: calc(100svh - 64px - 62px - 72px - env(safe-area-inset-bottom)); }
  .ap-strip { justify-content: flex-start; padding: 8px 16px 10px; }
  .ap-slot { width: 48px; height: 48px; }
}

/* right after sign-in: the scan line that draws Today in */
.vb-wipe { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 95; pointer-events: none; background: var(--holo); box-shadow: 0 0 18px 4px rgba(142,157,240,.35); }

/* ---------- sign-in: holo panel + CSS-only boot-up (1.6 s, once per page load; fields are never hidden or delayed) ---------- */
.gate-body { background: radial-gradient(120% 80% at 70% 0%, #0E1430 0%, #05070D 60%); }
.gate-art { border-right-color: var(--line); }
.gate-art::after { background: linear-gradient(90deg, transparent 60%, rgba(5,7,13,.9)), repeating-linear-gradient(0deg, rgba(5,7,13,.25) 0 1px, transparent 1px 4px), rgba(40,52,98,.35); }
.gate-pane { position: relative; margin: auto 40px; padding: 40px 44px; background: linear-gradient(180deg, rgba(40,52,98,.42), rgba(10,14,30,.85)), repeating-linear-gradient(0deg, rgba(142,157,240,.05) 0 1px, transparent 1px 4px);
  clip-path: var(--chamfer); }
.gate-pane::before, .gate-pane::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--holo); pointer-events: none; }
.gate-pane::before { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.gate-pane::after { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.gate-app { color: var(--holo); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.gate-form input:not([type=checkbox]) { background: rgba(5,7,13,.6); border-color: var(--line); }
.gate-form input:focus { border-color: var(--holo); }
@media (prefers-reduced-motion: no-preference) {
  .gate-art { animation: vb-open .5s .05s cubic-bezier(.65, 0, .35, 1) both; }
  .gate-art .bg { animation: vb-settle 1.2s .05s var(--ease-out) both; }
  .gate-art .logo { animation: vb-ignite .32s .9s steps(1, end) both; }
  .gate-pane::before { animation: vb-brk-in .26s .35s var(--ease-out) both; transform-origin: 0 0; }
  .gate-pane::after { animation: vb-brk-in .26s .45s var(--ease-out) both; transform-origin: 100% 100%; }
  .gate-app, .gate-pane h1, .gate-sub { animation: vb-rise .3s .6s var(--ease-out) both; }
}
@keyframes vb-open { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vb-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes vb-ignite { 0% { opacity: 0; } 15% { opacity: .9; } 30% { opacity: .15; } 45% { opacity: 1; } 65% { opacity: .5; } 80%, 100% { opacity: 1; } }
@keyframes vb-brk-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes vb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .gate-pane { margin: 0 16px 24px; padding: 28px 22px; } }

/* reduced motion: things appear in place */
@media (prefers-reduced-motion: reduce) {
  .item::after, .vb-scan, .vb-pulse { display: none; }
  .ap-card, .ap-card::after { transition: opacity .15s linear; }
}

/* v3.3.1 image queue (BS.img): a preview that is still loading or retrying is invisible on its frame's ground, never a broken icon */
img.im-wait { opacity: 0; }
img.im-in { transition: opacity .2s ease-out; }
@media (prefers-reduced-motion: reduce) { img.im-in { transition: none; } }

/* v3.3.1 Notes box: Send back is the box's one action (light fill so it reads as "submit"; magenta stays Approve's alone) */
.ap-send .ap-sendbtn { background: var(--text); color: var(--bg); border-color: var(--text); }
.ap-send .ap-sendbtn kbd { color: inherit; opacity: .7; }
.ap-send .ap-sendbtn.is-off { background: transparent; color: var(--muted); border-color: var(--line); }
.ap-send .ap-draft { margin: 2px 0 0; font-size: 12px; }

/* v3.3.1 (Wes: "remove the popups at the bottom that cover the buttons"): the toast / Undo bar lives at the TOP, right on
   desktop, full width under the status bar on a phone, so it can never sit over Approve / Notes / Skip or the decide bars */
.toast, .toast.on { bottom: auto; }
.toast { top: 16px; left: auto; right: 24px; max-width: min(460px, calc(100vw - 48px)); transform: translateY(-12px); }
.toast.on { transform: none; }
@media (max-width: 900px) {
  .toast { top: calc(8px + env(safe-area-inset-top)); left: 12px; right: 12px; max-width: none; bottom: auto; transform: translateY(-12px); }
  .toast.on { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .toast, .toast.on { transform: none; } }

/* v3.3.6 (Wes 10-08): text posts get a TEXT card (the words are the preview); storyboard panels carry their captions;
   the Story Development production note is one folded line in the column. */
.ap-media.vtx { min-height: 300px; background: var(--s1); border: 1px solid var(--line); }   /* grows with the post, the carousel scales to fit */
.ap-media.ap-panels:not(.one) { padding-bottom: 26px; }   /* the lock-on bracket sits below the last captions, not on them */
.ap-text { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 20px; }
.ap-text-who { font-size: var(--fs-micro); font-weight: 500; color: var(--mag-t); letter-spacing: 0; }
.ap-text-body { flex: 1; margin: 0; font-size: 20px; line-height: 1.42; letter-spacing: -.01em; color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-text-body.long { font-size: 17px; line-height: 1.5; }
.ap-text-n { align-self: flex-end; font-size: var(--fs-micro); color: var(--faint); }
.ap-text-n.over { color: var(--bad); }
.ap-slot-tx { display: block; height: 100%; padding: 5px; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.25; text-align: left; word-break: break-word; }
.ap-panels .ap-pan { margin: 0; display: flex; flex-direction: column; background: var(--s1); aspect-ratio: auto; min-width: 0; }
.ap-panels .ap-pan img { height: auto; aspect-ratio: 4 / 3; }
.ap-panels .ap-pan.wide img { aspect-ratio: 16 / 9; }
.ap-pan figcaption { padding: 7px 9px 9px; font-size: var(--fs-micro); line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.ap-pan figcaption.none { color: var(--faint); font-style: italic; }
.ap-pan .ap-none { min-height: 90px; aspect-ratio: 4 / 3; }
.ap-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-caps li { padding-left: 14px; border-left: 1px solid var(--line); }
.ap-caps .n { display: block; font-size: var(--fs-micro); color: var(--faint); }
.ap-caps p { margin: 2px 0 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.ap-big.pre { white-space: pre-wrap; }
.ap-line { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ap-line b { font-weight: 500; color: var(--text); }
.ap-sdnote { margin-top: 2px; font-size: var(--fs-small); color: var(--muted); }
.ap-sdnote summary { cursor: pointer; color: var(--faint); font-size: var(--fs-micro); padding: 4px 0; }
.ap-sdnote summary:hover { color: var(--muted); }
.ap-sdnote p { margin: 6px 0 0; padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.5; }
@media (max-width: 900px) {
  .ap-media.vtx { min-height: 0; height: min(42svh, 420px); }
  .ap-text { padding: 16px 50px 12px; gap: 8px; }   /* the phone arrows sit on the card edges */
  .ap-text-body { overflow-y: auto; }
  .ap-text-body { font-size: 17px; }
  .ap-text-body.long { font-size: 15px; }
  .ap-panels .ap-pan img { max-height: 16svh; object-fit: cover; }
  .ap-pan figcaption { padding: 5px 7px 7px; font-size: 11px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}
/* v3.4.3 Studio Ops (Wes 10-14): a server job card. One plain line, then what it does / touches / rollback, in Plex Sans for
   reading; the job itself in mono. The header "Server jobs" opens the run results (Done / Failed + last log lines). */
.ap-ops { gap: 16px; }
.ap-ops .ap-text-who { color: var(--warn); text-transform: uppercase; letter-spacing: .08em; }
.ap-ops-line { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.015em; color: var(--text); overflow-wrap: anywhere; }
.ap-ops-kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.ap-ops-kv dt { font-size: var(--fs-micro); color: var(--faint); padding-top: 2px; }
.ap-ops-kv dd { margin: 0; font-family: "IBM Plex Sans", var(--mono); font-size: 15px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.ap-ops-runs { margin-top: auto; font-size: var(--fs-micro); color: var(--faint); overflow-wrap: anywhere; }
.ap-jobs-l { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; border-left: 1px solid var(--line); padding: 0 0 0 18px; cursor: pointer; white-space: nowrap; }
.ap-jobs-l b { color: var(--text); font-weight: 500; }
.ap-jobs-l b.bad { color: var(--bad); }
.ap-jobs-l:hover { color: var(--text); }
.ap-jobs-l:focus-visible { outline: 2px solid var(--mag-t); outline-offset: 3px; }
.ap-card.is-ops .ap-foot h2 { display: none; }   /* the plain line is already the card's headline */
.ap-jobs-l .w-short { display: none; }
.ap-ops-log { margin-top: 6px; font-size: var(--fs-micro); }
.ap-ops-log summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.ap-ops-log pre { margin: 6px 0 0; padding: 10px 12px; max-height: 320px; overflow: auto; background: var(--s2); border: 1px solid var(--line-soft);
  font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
@media (max-width: 900px) {
  .ap-ops { gap: 10px; overflow-y: auto; }
  .ap-ops-line { font-size: 18px; }
  .ap-ops-kv { grid-template-columns: 1fr; gap: 2px; }
  .ap-ops-kv dd { font-size: 14px; margin-bottom: 6px; }
  .ap-jobs-l { padding-left: 10px; }
  .ap-jobs-l .w-long { display: none; } .ap-jobs-l .w-short { display: inline; }
  .ap-stage-h:has(.ap-jobs-l:not([hidden])) .ap-prog { width: 56px; min-width: 0; }
  .ap-card.is-ops .ap-media.vtx { height: auto; max-height: none; }   /* a server job shows all of it (Rollback too) without scrolling inside */
  .ap-card.is-ops .ap-text { padding: 14px 44px 12px 18px; }
  .ap-card.is-ops .ap-text { gap: 8px; }
  .ap-ops-line { font-size: 16px; }
  .ap-ops-kv dt { padding-top: 0; }
  .ap-ops-kv dd { font-size: 13px; line-height: 1.38; margin-bottom: 3px; }
  .ap-ops-kv .k-why, .ap-ops-runs { display: none; }   /* phone: the three things that matter, Approve stays on screen; Why/Runs in Server jobs */
  .ap-jobs-h { display: none; }                        /* the sheet header already says Server jobs */
}
