/* Builder Voice Radar — tokens measured from base44.com (design/measured/tokens.json, 2026-10-15):
   warm off-white surfaces, near-black ink, orange accent, Geist. Style only: no Base44 logo or name as a brand. */
:root {
  --bg: #f9f7f4; --surface: #ffffff; --surface-2: #f1eeea; --line: #e2ded7; --line-2: #ddd8d2;
  --ink: #1e1e24; --ink-2: #312f2f; --muted: #6d6a67; --faint: #8e8e8e;
  --accent: #ff6a00; --accent-2: #fbb439; --accent-soft: #fff1e6; --grad: linear-gradient(120deg, #fbb439 0%, #ffbe8d 100%);
  --blue: #3b51e5; --blue-soft: #eef0fd;
  --lane-code: #6d6a67; --lane-ai: #312f2f; --lane-agent: #ff6a00; --lane-person: #b26b00;
  --good: #1f9d6a; --warn: #c97a00; --bad: #d14343;
  --k-complaint: #e5484d; --k-request: #3b51e5; --k-question: #8e5cf0; --k-praise: #1f9d6a; --k-comparison: #64748b;
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --pill: 60px;
  --shadow: 0 1px 2px rgba(30, 30, 36, .06), 0 4px 16px rgba(30, 30, 36, .05);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
#root { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; }
h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(249, 247, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); box-shadow: inset 0 0 0 4px #fff; outline: 2px solid var(--accent); }
.modes { display: flex; gap: 4px; background: var(--surface-2); border-radius: var(--pill); padding: 4px; margin-left: auto; }
.modes a { padding: 6px 14px; border-radius: var(--pill); text-decoration: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.modes a.on { background: var(--ink); color: #fff; }
.disclaim { font-size: 12px; color: var(--muted); }

/* hero */
.hero { padding: 44px 0 20px; }
.hero h1 span.hl { background: linear-gradient(120deg, #ff6a00 0%, #fbb439 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 720px; margin: 12px 0 0; }
.meta { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.byline { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.byline a { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 4px 12px; border-radius: var(--pill); margin: 0 0 16px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.motion .live { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 106, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 157, 106, 0); } }

/* the week as a funnel: posts collected → about Base44 → builder posts → actions */
.flow { margin-top: 26px; padding: 6px 22px 14px; }
.frow { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 300px) 84px; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; }
.frow .chip { justify-self: end; }
.fn { font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.fbar { height: 14px; background: var(--surface-2); border-radius: var(--pill); overflow: hidden; }
.fbar i { display: block; height: 100%; background: var(--grad); border-radius: var(--pill); }
.frow.you .fbar i { background: linear-gradient(120deg, #ff6a00 0%, #fbb439 100%); }
.frow.you .fn { color: var(--accent); }
.fbar.acts { background: none; height: auto; overflow: visible; display: flex; flex-wrap: wrap; gap: 8px; }
/* the week's actions in words, right in the funnel; each one jumps to its card */
.actchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ffd3b0; background: var(--accent-soft); color: var(--ink);
  border-radius: var(--pill); padding: 3px 12px 3px 3px; font-size: 14px; font-weight: 500; }
.actchip:hover { border-color: var(--accent); }
.actchip .ico { width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.actchip .ico svg { width: 16px; height: 16px; }
.fcap b { display: block; font-weight: 600; }
.fcap span { display: block; font-size: 13px; color: var(--muted); }
.motion .fbar i, .motion .bar i, .motion .fbar .kbar { animation: grow .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
/* builder voice split by kind: the same colours as the kind chips */
.kbar { display: flex; gap: 2px; height: 100%; border-radius: var(--pill); overflow: hidden; }
.kbar.mini { height: 8px; margin: 10px 0 6px; background: var(--surface-2); }
.kseg { display: block; min-width: 3px; background: var(--k-c, var(--line-2)); }
.k-complaint { --k-c: var(--k-complaint); } .k-request { --k-c: var(--k-request); } .k-question { --k-c: var(--k-question); }
.k-praise { --k-c: var(--k-praise); } .k-comparison { --k-c: var(--k-comparison); }
.klegend, .fcap .klegend { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.kl, .fcap .kl { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.kd { width: 8px; height: 8px; border-radius: 2px; background: var(--k-c); flex: none; }
/* the posts a person decides sit in their own tray, apart from the funnel */
.tray { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.tray a { color: var(--lane-person); font-weight: 600; text-decoration: none; } .tray a:hover { text-decoration: underline; }
.dot-person { width: 8px; height: 8px; border-radius: 50%; background: var(--lane-person); flex: none; }
.hint { margin: 10px 0 0; font-size: 12px; color: var(--faint); text-align: right; }
@keyframes grow { from { width: 0; } }
.motion .frow.out .actchip { animation: pop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.motion .frow.out .actchip:nth-child(1) { animation-delay: .7s; } .motion .frow.out .actchip:nth-child(2) { animation-delay: .82s; }
.motion .frow.out .actchip:nth-child(3) { animation-delay: .94s; }
@keyframes pop { from { transform: translateY(6px) scale(.94); opacity: .35; } }

/* this week at a glance */

/* the week's actions */
.acts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.act { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act-what { font-weight: 600; }
.act-about { margin-top: 2px; }
.act-why { margin-top: 4px; font-size: 14px; color: var(--muted); }
.act-n { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* numbers are buttons */
.num { all: unset; cursor: pointer; border-bottom: 1px dotted rgba(255, 106, 0, .6); font-variant-numeric: tabular-nums; transition: color .15s; }
.num:hover { color: var(--accent); border-bottom-style: solid; }
.fn .num { border-bottom-color: transparent; }
.fn .num:hover { border-bottom-color: currentColor; }
/* keyboard users see where they are: a clear ring on every focusable control */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num:focus-visible { color: var(--accent); }

/* cards and chapters */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.chapter { padding: 28px 0; scroll-margin-top: 72px; }
.chapter > header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.chapter > header .k { font-size: 13px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* theme rows */
.theme { display: grid; grid-template-columns: 210px minmax(0, 1fr) 92px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.tn { display: grid; justify-items: end; line-height: 1.2; }
.tnum { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; } .tnum.rising { color: var(--accent); }
.bar { position: relative; overflow: visible; } .bar i { overflow: hidden; }
.tick { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--ink); border-radius: 1px; transform: translateX(-1px); opacity: .55; }
.spk { color: var(--accent); font-weight: 600; white-space: nowrap; }
.theme.quiet .name { font-weight: 500; } .theme.quiet { color: var(--muted); }
.theme:first-child { border-top: 0; }
.theme.two { grid-template-columns: minmax(0, 1fr) 90px; }
.theme.loop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.theme .name { font-weight: 600; }
.bar { height: 10px; background: var(--surface-2); border-radius: var(--pill); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: var(--pill); }
.trend { font-size: 13px; padding: 2px 10px; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); white-space: nowrap; text-align: center; }
.trend.rising { background: #fdeaea; color: var(--bad); font-weight: 600; }
.trend.falling { background: #e6f5ee; color: var(--good); }
.quote { font-size: 15px; color: var(--ink-2); border-left: 3px solid var(--accent-2); padding: 2px 0 2px 12px; margin: 8px 0 0; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quote.open { -webkit-line-clamp: unset; display: block; }
.quote a { color: var(--muted); font-size: 13px; text-decoration: none; }
.quote a:hover { color: var(--accent); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 10px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.k-complaint { background: #fdeaea; color: #a52f2f; }
.chip.k-request { background: var(--blue-soft); color: var(--blue); }
.chip.k-question { background: #f3eefe; color: #6b3fd1; }
.chip.k-praise { background: #e6f5ee; color: #17784f; }
.chip.k-comparison { background: #eef1f5; color: #475569; }
.chip.held { background: #fff6e0; color: var(--warn); }
.chip.lane-code { background: #eeecea; color: var(--lane-code); }
.chip.lane-ai { background: transparent; color: var(--lane-ai); box-shadow: inset 0 0 0 1px var(--lane-ai); }
.chip.lane-agent { background: var(--accent-soft); color: var(--lane-agent); }
.chip.lane-person { background: #fff4dc; color: var(--lane-person); }
.conf { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }



/* workspace list */
.split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { position: sticky; top: 76px; display: grid; gap: 10px; }
.filters label { font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
select, input[type=search], input[type=text], textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 140px; resize: vertical; }
.items { display: grid; gap: 10px; }
.it { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; }
.it:hover { border-color: var(--accent-2); }
.it .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.it p { margin: 0; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ask { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ask-q { font-size: 14px; }
.ask-opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.opt { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: var(--pill); padding: 6px 14px; font-size: 14px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--ink); }
.opt.yes { background: var(--surface); color: var(--ink); border-color: var(--accent); }
.opt.yes:hover { background: var(--accent-soft); }
.opt .ai { font-size: 11px; color: var(--accent); font-weight: 600; margin-left: 4px; }
.opt:disabled { opacity: .55; cursor: default; }
.opt-more { width: auto; border-radius: var(--pill); padding: 6px 12px; font-size: 14px; color: var(--muted); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
/* one state per card: a dot and a word, only when the post is not counted */
.state-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--warn); }
.state-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-dot.not_base44, .state-dot.duplicate { color: var(--muted); } .state-dot.quarantined { color: var(--bad); }

/* Workspace "This week": the weekly job in three steps */
.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.job { position: relative; display: flex; flex-direction: column; gap: 6px; }
.job .step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--ink); color: #fff; }
.job > b { font-size: 17px; }
.job-n { font-size: 30px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.job .go { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.job .go:hover { text-decoration: underline; }
.jobs > .job:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 22px; color: var(--faint); font-size: 16px; }
.job-state { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-top: 6px; }
.job-state i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.job-state.done i { background: var(--good); } .job-state.todo i { background: var(--accent); } .job-state.warn i { background: var(--warn); }
.motion .job-state.todo i { animation: pulse-o 2.4s ease-out infinite; }
@keyframes pulse-o { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 106, 0, 0); } }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(30, 30, 36, .35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(560px, 100%); background: var(--bg); z-index: 41; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.15); padding: 24px; }
.drawer .close { position: absolute; top: 14px; right: 14px; border: 0; background: var(--surface-2); border-radius: 50%; width: 34px; height: 34px; font-size: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.tablewrap { overflow-x: auto; }

/* Under the hood: the verdict first, one chip per chapter */
.status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sb { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--pill); padding: 6px 14px; font-size: 14px; color: var(--ink); }
.sb:hover { border-color: var(--ink); }
.sb i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.sb i.warn { background: var(--warn); } .sb i.bad { background: var(--bad); } .sb i.agent { background: var(--lane-agent); } .sb i.code { background: var(--lane-code); }

/* the writer agent's menu: four lists from code, three slots, code's tick and sentence */
.menu-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.menu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.mrow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mk { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.toks { display: flex; flex-wrap: wrap; gap: 6px; }
.tok { font-size: 13px; padding: 3px 10px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  transition: transform .12s ease-out, border-color .12s, box-shadow .12s; }
.tok.chosen { border-color: var(--accent); color: var(--ink); }
.tok.pick { transform: translateY(-4px); border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: 0 6px 14px rgba(255, 106, 0, .22); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: slot; }
.slot { position: relative; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 10px 12px 10px 38px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; counter-increment: slot; }
.slot::before { content: counter(slot); position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.sv { font-size: 13px; padding: 3px 10px; border-radius: var(--pill); background: var(--accent-soft); color: var(--ink); transition: opacity .25s, transform .25s; }
.slot .ok { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--lane-code); background: #eeecea; padding: 2px 8px; border-radius: var(--pill); transition: opacity .2s, transform .2s; }
.sent { width: 100%; font-size: 13px; color: var(--ink-2); margin-top: 4px; transition: opacity .3s; }
.menu.playing .sv:not(.in) { opacity: 0; transform: translateY(-6px); }
.menu.playing .slot:not(.done) .ok { opacity: 0; transform: scale(.8); }
.menu.playing .slot:not(.done) .sent { opacity: 0; }
.menu.playing .tok.chosen:not(.pick) { border-color: var(--line-2); color: var(--muted); }
details.raw { margin-top: 12px; } details.raw summary { cursor: pointer; }

/* Try it */
.samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.samples .opt { font-size: 13px; padding: 4px 12px; }
.verdict { padding-left: 12px; border-left: 4px solid var(--line-2); }
.verdict.yes { border-left-color: var(--good); } .verdict.held { border-left-color: var(--warn); } .verdict.no { border-left-color: var(--muted); }
.swim.steps.play .row { animation: rise .35s ease-out both; animation-delay: calc(var(--i) * 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* swimlane */
.swim { display: grid; gap: 6px; }
.swim .row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 80px; gap: 10px; align-items: start; font-size: 14px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.swim .row .ms { text-align: right; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.swim .row.fail { border-color: var(--bad); }
.swim .row { border-left: 3px solid var(--lane-code); }
.swim .row.lane-ai { border-left-color: var(--lane-ai); } .swim .row.lane-agent { border-left-color: var(--lane-agent); } .swim .row.lane-person { border-left-color: var(--lane-person); }
.dur { height: 4px; background: var(--surface-2); border-radius: var(--pill); margin-top: 6px; overflow: hidden; }
.dur i { display: block; height: 100%; background: var(--line-2); border-radius: var(--pill); }
/* the run as a waterfall: each bar starts where the step before ended */
.wf-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.swim.wf .dur { height: 8px; }
.swim.wf .dur i { background: var(--lane-code); opacity: .55; transform-origin: left center; }
.swim.wf .row.lane-ai .dur i { background: var(--lane-ai); opacity: 1; } .swim.wf .row.lane-agent .dur i { background: var(--lane-agent); opacity: 1; }
.swim.replay .dur i { animation: fill var(--len) linear both; animation-delay: var(--start); }
.swim.replay .row { animation: now var(--len) linear; animation-delay: var(--start); }   /* lit only while its step runs */
@keyframes fill { from { transform: scaleX(0); } }
@keyframes now { from, to { background: var(--accent-soft); } }
.swim .row.lane-ai .dur i { background: var(--lane-ai); } .swim .row.lane-agent .dur i { background: var(--lane-agent); }

/* health + planted cases */
.health { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.src { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.src .state { font-size: 12px; font-weight: 600; }
.state.ok { color: var(--good); } .state.quiet { color: var(--warn); } .state.broken { color: var(--bad); } .state.off { color: var(--muted); }
.res.pass { color: var(--good); } .res.fail { color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.kpi .n { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }

/* builder strip + footer */
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.notice { background: var(--accent-soft); border: 1px solid #ffd3b0; border-radius: var(--r); padding: 10px 14px; font-size: 14px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--pill); font-size: 14px; z-index: 60; max-width: calc(100% - 32px); }

@media (max-width: 900px) {
  .frow { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 220px); }
  .frow .chip { display: none; }
  .acts3 { grid-template-columns: minmax(0, 1fr); }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .jobs > .job:not(:last-child)::after { content: "↓"; right: auto; left: 28px; top: auto; bottom: -19px; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .hero { padding-top: 28px; }
  .flow { padding: 4px 16px 12px; }
  .frow { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 14px; }
  .frow .fbar { grid-column: 1 / -1; grid-row: 2; }
  .hint { text-align: left; }
  .tray .btn { margin-left: 0; }
  .mrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .modes { margin-left: 0; width: 100%; justify-content: space-between; }
  .modes a { padding: 6px 10px; font-size: 13px; }
  /* phone: title and number on one line, the bar, quote or release underneath at full width */
  .theme { grid-template-columns: minmax(0, 1fr) auto; }
  .theme.loop { grid-template-columns: minmax(0, 1fr); }   /* request, release, then the pill: one column */
  .theme > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .theme.two > :nth-child(2) { grid-column: auto; grid-row: auto; }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .swim .row { grid-template-columns: 70px minmax(0, 1fr); }
  .swim .row .ms { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.slack { font-size: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid #4a154b; border-radius: var(--r-sm); padding: 10px 14px; }
.slack p { margin: 4px 0; overflow-wrap: anywhere; }
.slack .sh { font-weight: 700; margin-top: 12px; }

/* the weekly brief: one column, the approve bar stays in view */
.brief-col { max-width: 820px; }
.approve-bar { position: sticky; bottom: 12px; z-index: 5; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  padding: 12px 16px; box-shadow: 0 8px 28px rgba(30, 30, 36, .12); }
.approve-bar .job-state { margin: 0; font-size: 15px; }
.approve-bar .btn { margin-left: auto; }
@media (max-width: 640px) { .approve-bar { padding: 10px 12px; } .approve-bar .note { display: none; } }   /* phone: state and button on one line */
.eyebrow.stale .live { background: var(--warn); animation: none; }
.approve-bar .note { flex: 1 1 240px; min-width: 0; }
.approve-bar .btn { flex: none; }

/* the track record: one dot per scheduled day, done / did not finish / no run; the writer agent's live days ringed */
.track-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 14px; }
.track { display: flex; flex-wrap: wrap; gap: 5px; }
.tk { width: 14px; height: 14px; border-radius: 4px; background: var(--line-2); }
.tk.done { background: var(--good); } .tk.failed { background: var(--bad); } .tk.missed { background: transparent; border: 1.5px dashed var(--faint); }
.tk.agent { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--lane-agent); }
.motion .tk { animation: pop .35s ease-out both; animation-delay: calc(var(--i) * 60ms); }
.mcp-url { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; }
.mcp-url code { overflow-wrap: anywhere; flex: 1 1 200px; }
.asks { margin: 6px 0 0 18px; padding: 0; } .asks li { margin: 4px 0; }
.tok.pick-code { transform: translateY(-4px); border-color: var(--lane-code); background: #eeecea; color: var(--ink); }
.slot.by-code .sv { background: #eeecea; }

/* the writer agent's first drafts: gaps for a person highlighted */
.draft { margin-top: 10px; font-size: 14px; }
.draft summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; }
.draft-text { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0 4px; font-size: 14px; line-height: 1.55; }
mark.gap { background: #fff3c4; color: var(--ink); border-radius: 4px; padding: 0 3px; border: 1px dashed var(--warn); }
.draft-block { padding: 12px 0; border-top: 1px solid var(--line); } .draft-block:first-of-type { border-top: 0; }
.draft-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.tk.running { background: var(--warn); }

/* the brief's one-line header */
.brief-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.info { color: var(--faint); cursor: help; }

/* Under the hood: where untrusted text may go, drawn */
.zones { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 14px 0 6px; }
.zone { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 12px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.zone.box { border: 1.5px dashed var(--lane-agent); background: var(--accent-soft); }
.zl { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.zrow { display: flex; flex-wrap: wrap; gap: 6px; }
.zn { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-sm); border-left: 3px solid var(--lane-code); background: var(--surface-2); }
.zn.ai { border-left-color: var(--lane-ai); } .zn.agent { border-left-color: var(--lane-agent); background: #fff; } .zn.person { border-left-color: var(--lane-person); }
.zgate { display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; max-width: 92px; }
.zgate span::before { content: "→"; display: block; font-size: 18px; color: var(--ink); }
.zkey { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .zones { flex-direction: column; } .zgate { max-width: none; } .zgate span::before { content: "↓"; } }

/* edge cases as a checklist; rules as leads */
.checks { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 24px; }
.checks li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 8px; cursor: help; }
.checks .res { font-weight: 700; }
details.more { margin-top: 10px; font-size: 14px; } details.more summary { cursor: pointer; color: var(--muted); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.agent-notes { margin-top: 12px; }

@media (max-width: 640px) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tabs a { white-space: nowrap; } }
.refused { width: 100%; font-size: 12px; color: var(--bad); }
.refused s { color: var(--muted); }
/* sources as one-line rows */
.health { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.src { display: grid; grid-template-columns: 170px 230px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 14px; }
.src:first-child { border-top: 0; }
@media (max-width: 760px) { .src { grid-template-columns: minmax(0, 1fr) auto; } .src .tiny { grid-column: 1 / -1; } }

/* the week as squares: one per post collected, coloured by what happened to it */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 32px; align-items: end; }
.hero-top.solo { grid-template-columns: minmax(0, 1fr); }
.pgrid { margin: 0; }
.sq { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
.sq i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--k-c, var(--line-2)); }
.sq i.q-about { background: #f6d6b8; } .sq i.q-out { background: var(--line); }
.sq i.q-held { background: #fdf1df; box-shadow: inset 0 0 0 1.5px var(--lane-person); }
/* each square appears grey (code collected it), then takes its colour (typed AI judged it): the lede, played out */
.motion .sq i { animation: sqin .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 3ms); }
/* a funnel row or legend entry under the pointer (or focus) keeps its squares lit */
.sq i { transition: opacity .2s; }
.pgrid[data-hl="about"] .sq i:is(.q-held, .q-out), .pgrid[data-hl="voice"] .sq i:is(.q-about, .q-held, .q-out),
.pgrid[data-hl="other"] .sq i:not(.q-about), .pgrid[data-hl="held"] .sq i:not(.q-held), .pgrid[data-hl="out"] .sq i:not(.q-out) { opacity: .15; }
[data-hl] { cursor: default; } .frow[data-hl]:hover .fcap b, .lg[data-hl]:hover { color: var(--ink); }
@keyframes sqin { 0% { opacity: .25; transform: scale(.3); background: var(--line-2); } 50% { opacity: 1; transform: none; background: var(--line-2); } }
.pgrid figcaption { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.lg { display: inline-flex; align-items: center; gap: 4px; }
.lg i { width: 8px; height: 8px; border-radius: 2px; background: var(--k-c, var(--line-2)); display: inline-block; }
.lg i.q-about { background: #f6d6b8; } .lg i.q-out { background: var(--line); } .lg i.q-held { background: #fdf1df; box-shadow: inset 0 0 0 1.5px var(--lane-person); }
@media (max-width: 900px) { .hero-top { grid-template-columns: minmax(0, 1fr); gap: 18px; } .pgrid { max-width: 420px; } }

/* Follow one post: a real post (the small square) moves through the seven steps; each step shows what it did */
.journey { padding: 22px; }
.jhead { display: flex; align-items: flex-start; gap: 12px; }
.jcard { flex: 1; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px;
  box-shadow: 0 10px 28px -14px rgba(30, 30, 36, .25); }
.jcard p { margin: 4px 0 0; font-size: 14px; }
.jplay { margin-left: auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: var(--r-sm); }
.jplay:hover { color: var(--ink); }
.jtrack { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; position: relative; }
.jtrack::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: var(--line); }
.jsq { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 3px; background: var(--k-c, var(--line-2)); z-index: 2;
  box-shadow: 0 0 0 3px var(--surface); pointer-events: none; transition: transform .55s cubic-bezier(.3, .7, .2, 1), background-color .3s; }
.jst { position: relative; display: grid; gap: 2px; align-content: start; opacity: .45; transition: opacity .3s; }
.jst.on { opacity: 1; }
.motion .jst .jres { opacity: 0; transition: opacity .35s .15s; } .motion .jst.on .jres { opacity: 1; }
.jdot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--lane-code); position: relative; z-index: 1; margin-bottom: 6px; }
.jdot.ai { border-color: var(--lane-ai); } .jdot.agent { border-color: var(--lane-agent); } .jdot.person { border-color: var(--lane-person); }
.jst.on .jdot.code { background: var(--lane-code); } .jst.on .jdot.ai { background: var(--lane-ai); }
.jst.on .jdot.agent { background: var(--lane-agent); } .jst.on .jdot.person { background: var(--lane-person); }
.jst.on .jdot.wait { background: var(--surface); }
.jst .who { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.jres { color: var(--ink-2); line-height: 1.4; }
.jnote { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.jchip { display: inline-block; margin: 2px 4px 0 0; padding: 1px 6px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 11.5px; }
@media (max-width: 760px) {
  .jtrack { grid-template-columns: minmax(0, 1fr); gap: 14px; } .jtrack::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .jhead { flex-wrap: wrap; } .jcard { flex-basis: 100%; } .jplay { margin: -6px 0 0 auto; }
  .jst { grid-template-columns: 22px 84px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: 8px; row-gap: 0; }
  .jst .jdot { grid-column: 1; grid-row: 1; margin: 2px 0 0; } .jst b { grid-column: 2; grid-row: 1; }
  .jst .who { grid-column: 2; grid-row: 2; font-size: 10px; } .jst .jres { grid-column: 3; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) { .jst { opacity: 1; } .jsq { transition: none; } }
.lg i.voice { background: linear-gradient(90deg, var(--k-request) 0 20%, var(--k-complaint) 20% 40%, var(--k-question) 40% 60%, var(--k-praise) 60% 80%, var(--k-comparison) 80%); width: 15px; }
@media (max-width: 640px) { .sq { grid-template-columns: repeat(var(--cols-m), minmax(0, 1fr)); gap: 2px; } .sq i { border-radius: 1px; } .pgrid { max-width: none; } }
