/* The live views: the one public live page (compact on a phone, large on a wide screen or with ?big) and the
   owner's dashboard with its sign-in (Otty: Exo 2 for display, Geist for text, Geist Mono for ids). Mobile first:
   every rule is the 360-430px layout until a media query or `body.big` says otherwise; side padding respects the
   safe-area insets; tap targets are at least 44px.
   Values from brand-kit/tokens/tokens.json (Day, and Night under the system's dark mode or data-theme=dark),
   plus the additive tokens proposed in docs/refs/design-patterns.md (broken-ink, line-strong, focus).
   One threshold rule per view: under the tally (live) and under "Needs you" (dashboard), where Otto sits. */

@font-face{font-family:"Exo 2";src:url(/assets/fonts/Exo2/Exo2-Variable.woff2) format("woff2"),url(/assets/fonts/Exo2/Exo2-Variable.ttf) format("truetype");font-weight:100 900;font-display:swap}
@font-face{font-family:Geist;src:url(/assets/fonts/Geist/Geist-Variable.woff2) format("woff2"),url(/assets/fonts/Geist/Geist-Variable.ttf) format("truetype");font-weight:100 900;font-display:swap}
@font-face{font-family:"Space Mono";src:url(/assets/fonts/SpaceMono/SpaceMono-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Space Mono";src:url(/assets/fonts/SpaceMono/SpaceMono-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Geist Mono";src:url(/assets/fonts/GeistMono/GeistMono-Variable.woff2) format("woff2"),url(/assets/fonts/GeistMono/GeistMono-Variable.ttf) format("truetype");font-weight:100 900;font-display:swap}

:root{
  --paper:#F5F1E8;--raised:#FFFDF8;--ink:#17150F;--muted:#625B50;--line:#DCD3C3;--line-strong:#8A8270;--stone:#E4DACA;
  --threshold:#F2B33D;--threshold-ink:#8A5A00;--kept:#1D5C8C;--broken:#C2411C;--broken-ink:#A83614;--focus:#17150F;
  --display:"Exo 2",system-ui,sans-serif;--sans:Geist,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Space Mono","Geist Mono",ui-monospace,Menlo,monospace;--ease:cubic-bezier(.22,1,.36,1);
  --gutter:16px;--proof:76px;color-scheme:dark;
  /* the side padding of every band: the gutter, or the notch's inset when that is wider */
  --pad-l:max(var(--gutter),env(safe-area-inset-left));--pad-r:max(var(--gutter),env(safe-area-inset-right))
}
:root:not([data-theme=light]){
  --paper:#12110E;--raised:#1C1A16;--ink:#F2ECDF;--muted:#A79F92;--line:#2F2B25;--line-strong:#756E60;--stone:#3B362E;
  --threshold-ink:#F2B33D;--kept:#86BEEA;--broken:#FF7A4D;--broken-ink:#FF7A4D;--focus:#F2B33D;color-scheme:dark}
:root[data-theme=dark]{
  --paper:#12110E;--raised:#1C1A16;--ink:#F2ECDF;--muted:#BDB5A7;--line:#3B362E;--line-strong:#756E60;--stone:#3B362E;
  --threshold-ink:#F2B33D;--kept:#86BEEA;--broken:#FF7A4D;--broken-ink:#FF7A4D;--focus:#F2B33D;color-scheme:dark}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100svh;background:var(--paper);color:var(--ink);font:1rem/1.5 var(--sans);overflow-x:hidden}
a{color:var(--threshold-ink);text-underline-offset:2px}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
::selection{background:var(--ink);color:var(--paper)}
p{margin:0}
code{font:0.8125rem/1.25rem var(--mono);overflow-wrap:anywhere}
.skip{position:absolute;left:16px;top:-6rem;z-index:100;padding:12px 16px;border-radius:8px;background:var(--ink);color:var(--paper);font-weight:600;font-size:1rem;line-height:1.25;text-decoration:none}
.skip:focus{top:16px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.quiet{color:var(--muted);font-size:0.875rem;line-height:1.25rem}

/* ---------- the bar on top ---------- */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;
  padding:max(4px,env(safe-area-inset-top)) var(--pad-r) 4px var(--pad-l);
  background:var(--paper);border-bottom:1px solid var(--line)}
.mark{display:grid;place-items:center;width:44px;height:44px;margin-left:-8px;flex:none}
.mark img{display:block;width:28px;height:28px}
.biz{flex:1;min-width:0}
.biz-name{font-weight:600;line-height:1.375rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status{display:flex;align-items:baseline;gap:10px;color:var(--muted);font-size:0.8125rem;line-height:1.125rem}
.conn.on{color:var(--kept)}
.mode{font:0.8125rem/1.125rem var(--mono);color:var(--muted)}
.clock{display:none;align-items:baseline;gap:8px;font:500 0.9375rem/1 var(--mono);color:var(--muted)}
.clock time{color:var(--ink);font-variant-numeric:tabular-nums}

/* ---------- the live page, compact: the tally once the run ends, then the run, newest step first ---------- */
.live-grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"tally" "run" "flow";
  max-width:44rem;margin:0 auto;padding:8px var(--pad-r) 24px var(--pad-l)}
.run{grid-area:run;min-width:0}
.empty{padding:32px 0 8px}
.empty .wait{font:500 1.875rem/1.15 var(--display);letter-spacing:-.01em;text-wrap:balance;margin-bottom:12px}
.empty[hidden]{display:none}
.lines{list-style:none;margin:0;padding:0}
.line{display:grid;grid-template-columns:minmax(0,1fr) var(--proof);column-gap:12px;padding:14px 0 12px;
  border-top:1px solid var(--line)}
.line:first-child{border-top:0}
.line>p{grid-column:1}
.line .meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;color:var(--muted);font-size:0.8125rem;line-height:1.125rem}
.line .meta time{font-variant-numeric:tabular-nums}
.line .state{font-weight:600}
.tone-kept .state{color:var(--kept)}
.tone-broken .state{color:var(--broken-ink)}
.line .who{margin-top:2px;font-weight:600;line-height:1.375rem;overflow-wrap:anywhere}
.line .text{text-wrap:pretty;overflow-wrap:anywhere}
.line .detail{margin-top:2px;color:var(--muted);font-size:0.875rem;line-height:1.25rem;overflow-wrap:anywhere}
.line .gutter{grid-column:2;grid-row:1/span 4;display:flex;align-items:flex-end;justify-content:flex-end;min-height:72px}
.line.k-change{padding:20px 0 16px}
.line.k-change .text{margin-top:4px;font:500 1.75rem/1.12 var(--display);letter-spacing:-.01em;text-wrap:balance}
.line.k-unclear .text{font:500 1.4375rem/1.18 var(--display)}
.line.k-order .text,.line.k-order .who{color:var(--muted)}
/* Newest first: a step that arrives slides down into the top row (feed.js glides the others down). */
.line.new{animation:arrive .32s var(--ease)}
@keyframes arrive{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}

/* The proof on each signed step: a link to its receipt, and whether its signature checks out here. */
.proof{display:inline-flex;flex-direction:column;align-items:flex-end;gap:0;min-width:44px;min-height:44px;
  justify-content:flex-end;padding:4px 0;text-decoration:none;font-size:0.8125rem;line-height:1.0625rem;text-align:right}
.proof .word{font-weight:600;color:var(--muted)}
.proof .by{color:var(--muted);font-size:0.8125rem;line-height:1.0625rem}
.proof.ok .word{color:var(--kept)}
.proof.bad .word{color:var(--broken-ink)}
.proof:hover .word{text-decoration:underline}

/* The tally: the one card with the threshold rule. Compact: a sentence. Large: four counts. */
.tally{grid-area:tally;min-width:0;margin:8px 0 12px;padding:16px 16px 20px;background:var(--raised);border:1px solid var(--line);
  border-radius:12px;border-bottom:3px solid var(--threshold)}
.tally[hidden]{display:none}
.tally-h{margin:0 0 6px;font-size:0.875rem;line-height:1.25rem;font-weight:600;color:var(--kept)}
.tally-text{font-size:1.125rem;line-height:1.625rem;text-wrap:pretty;margin-bottom:4px}
.counts{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0}
.counts div{min-width:0}
.counts dt{color:var(--muted);font-size:0.875rem;line-height:1.125rem}
.counts dd{margin:2px 0 0;font:500 2.5rem/1 var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.tally-detail{display:none;margin-top:12px;color:var(--muted);font-size:0.875rem;line-height:1.25rem}
.flow{grid-area:flow;display:none;min-width:0}

.foot{max-width:44rem;margin:0 auto;padding:16px var(--pad-r) max(40px,env(safe-area-inset-bottom)) var(--pad-l);
  color:var(--muted);font-size:0.8125rem;line-height:1.1875rem}

@media (min-width:640px){
  .live:not(.big){--proof:104px}
  .live:not(.big) .line .gutter{min-height:104px}
  .live:not(.big) .line.k-change .text{font-size:2.375rem}
  .empty .wait{font-size:2.375rem}
}

/* Otto: 40×32 frames, drawn at whole-number scales, pixel for pixel. */
.otto{position:absolute;left:0;top:0;z-index:3;width:40px;height:32px;pointer-events:none;
  background:url(otto-sheet.png) 0 0/320px 96px no-repeat;image-rendering:pixelated;image-rendering:crisp-edges;
  will-change:transform}

/* ---------- the live page, large (body.big: a wide screen, or ?big): the counts and the flow of calls join the run.
   Stacked while the window is narrow; side by side, in type for the back of the room, from 1024px. ---------- */
.big .clock{display:flex}
.big .live-grid{max-width:none;grid-template-areas:"tally" "run" "flow";gap:24px}
.big .run{grid-area:run}
.big .tally{grid-area:tally;margin:0;border-width:1.5px;border-bottom-width:3px}
.big .tally-h,.flow h2{margin:0 0 8px;font-size:0.9375rem;line-height:1.25rem;font-weight:600;color:var(--muted)}
.big .tally.done .tally-h{color:var(--kept)}
.big .tally-text,.big .tally-said{display:none}
.big .counts{display:grid}
.big .tally-detail{display:block}
.big .flow{display:block;grid-area:flow}
.big .foot{max-width:none}

.nodes{list-style:none;margin:0;padding:0}
.node{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 14px;background:var(--raised);
  border:1.5px solid var(--line);border-radius:12px;transition:border-color .12s}
.node.hot{border-color:var(--ink)}
.node-name{font-weight:600;white-space:nowrap}
.node-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font:0.8125rem/1.25rem var(--mono)}
.edge{position:relative;height:26px;margin-left:24px;border-left:2px solid var(--line-strong)}
.packet{position:absolute;left:-6px;top:0;width:10px;height:10px;border-radius:50%;background:var(--ink);opacity:0}
.calls{list-style:none;margin:14px 0 0;padding:0;font:0.8125rem/1.25rem var(--mono)}
.calls li{display:flex;gap:10px;padding:4px 0;border-top:1px solid var(--line);min-width:0}
.calls li span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calls .bad{color:var(--broken-ink)}
.calls .time{color:var(--muted)}

@media (min-width:1024px){
  body.big{font-size:1.25rem}
  .big .top{padding:16px 48px}
  .big .top .biz-name{font-size:1.5rem;line-height:2rem}
  .big .status,.big .mode{font-size:1.125rem;line-height:1.5rem}
  .big .clock{font-size:1.375rem}
  .big .live-grid{grid-template-columns:minmax(0,1.65fr) minmax(380px,1fr);grid-template-areas:"run tally" "run flow";
    grid-template-rows:auto 1fr;align-items:start;gap:40px 56px;padding:24px 48px 32px}
  .big .line{--proof:132px;padding:20px 0 16px}
  .big .line .meta{font-size:1.125rem;line-height:1.5rem}
  .big .line .who{font-size:1.5rem;line-height:2rem}
  .big .line .text{font-size:1.625rem;line-height:2.25rem}
  .big .line .detail{font-size:1.1875rem;line-height:1.75rem}
  .big .line .gutter{min-height:120px}
  .big .line.k-change .text{font-size:clamp(2.625rem,3.8vw,4.25rem);line-height:1.05}
  .big .proof{font-size:1.125rem;line-height:1.5rem}
  .big .proof .by{font-size:1rem;line-height:1.375rem}
  .big .empty .wait{font-size:3.375rem}
  .big .empty .quiet{font-size:1.25rem;line-height:1.75rem}
  .big .tally{padding:28px 28px 32px}
  .big .tally-h,.big .flow h2{font-size:1.125rem;line-height:1.5rem}
  .big .counts{gap:20px 24px}
  .big .counts dt{font-size:1.125rem;line-height:1.5rem}
  .big .counts dd{font-size:4.5rem}
  .big .tally-detail{font-size:1.125rem;line-height:1.625rem}
  .big .node{padding:14px 18px}
  .big .node-sub{font-size:1.125rem;line-height:1.625rem}
  .big .edge{height:34px;margin-left:30px}
  .big .calls{font-size:1.125rem;line-height:1.75rem}
  .big .foot{padding:0 48px 40px;font-size:0.9375rem;line-height:1.375rem}
}

/* ---------- the owner's dashboard: a place to watch; acting goes through the owner's own agent ----------
   Structure after the owner's Triage console (a top bar with the live dot, four counts in big mono numbers, a wide
   live panel beside a narrow one, a decision feed and the agents at the door with mono column heads), skin after
   Otty: warm paper and ink, raised cards with a hairline border, one amber accent for urgency only, and the state
   colours (kept, broken) only where they carry meaning. From the owner's Aperture: hairlines, one tinted callout for
   the most urgent item, suggestion pills, and a small "what Otty is doing" panel. Motion: new rows fade up, numbers
   flip when they change, the live dot pulses, Otto acts on each event; none of it with reduced motion. */
.dash{--display:"Exo 2",system-ui,sans-serif;--accent:var(--threshold);--accent-ink:var(--threshold-ink);
  --card:var(--raised);--shadow:0 1px 2px rgb(23 21 15 / .04),0 6px 20px -12px rgb(23 21 15 / .12);
  --tint:rgb(242 179 61 / .1)}
.dash{--shadow:0 1px 0 rgb(255 255 255 / .03) inset,0 8px 24px -16px rgb(0 0 0 / .6);
  --tint:rgb(242 179 61 / .08)}

/* the bar */
.dash .bar{position:sticky;top:0;z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;
  padding:max(6px,env(safe-area-inset-top)) var(--pad-r) 6px var(--pad-l);background:var(--paper);
  border-bottom:1px solid var(--line)}
.dash .brand{display:flex;align-items:center;min-height:44px;flex:none}
.dash .brand img{display:block;width:66px;height:24px}
.bar .biz-name{flex:1;min-width:0;margin:0;padding-left:12px;border-left:1px solid var(--line);
  font:600 1.0625rem/1.375rem var(--display);letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-right{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;flex-basis:100%;order:2}
.bar .mode{padding:2px 7px;border:1px solid var(--line);border-radius:6px;font:0.75rem/1rem var(--mono);color:var(--muted)}
.dash .conn{position:relative;display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:0.8125rem}
.dash .conn::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--line-strong)}
.dash .conn.on{color:var(--ink)}
.dash .conn.on::before{background:var(--kept)}
.dash .conn.on::after{content:"";position:absolute;left:0;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;
  background:var(--kept);animation:live-pulse 2s ease-in-out infinite}
.tabs{display:flex;gap:2px;margin-left:auto}
.tab{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;color:var(--muted);
  font-size:0.875rem;font-weight:500;text-decoration:none}
.tab[aria-current]{color:var(--ink);background:var(--stone)}
.tab:hover{color:var(--ink)}
.access{order:3;flex-basis:100%;padding-bottom:2px;color:var(--muted);font-size:0.8125rem;line-height:1.125rem}
.signout{margin:0}
.signout[hidden],.access[hidden],#signin[hidden]{display:none}
.quiet-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;
  border:1px solid var(--line-strong);border-radius:10px;background:transparent;color:var(--ink);
  font:500 0.875rem var(--sans);text-decoration:none;cursor:pointer}
.quiet-button:hover{border-color:var(--ink)}

/* the board: one column on a phone, in the order a phone wants; the console from 960px */
.board{position:relative;display:flex;flex-direction:column;gap:14px;max-width:1320px;margin:0 auto;
  padding:14px var(--pad-r) max(56px,env(safe-area-inset-bottom)) var(--pad-l)}
.board>.mid,.board>.pair{display:contents}
.stats{order:1}.queue{order:3}.doing{order:4}.folds{order:5}
.agents{order:8}.orders{order:9}.earlier{order:10}
.card{position:relative;min-width:0;padding:16px;background:var(--card);border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow)}
.card::before{content:"";position:absolute;inset:0;border-radius:inherit;
  pointer-events:none;background:linear-gradient(180deg,rgb(255 255 255 / .025),transparent 40%)}
.sec-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 10px}
.sec-head h2{margin:0;font:600 1.125rem/1.5rem var(--display);letter-spacing:-.005em}
.count{font:500 0.8125rem/1.125rem var(--mono);color:var(--muted);font-variant-numeric:tabular-nums}
.sec-note{margin-left:auto;color:var(--muted);font-size:0.7812rem}
.board time{font-variant-numeric:tabular-nums}
.board code{font:0.75rem/1.125rem var(--mono)}
.board .quiet{margin-top:8px}

/* four counts */
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{min-width:0;padding:14px 14px 12px;background:var(--card);border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow)}
.tile-label{color:var(--muted);font:400 0.6562rem/0.875rem var(--mono);letter-spacing:.09em;text-transform:uppercase}
.tile-num{margin-top:8px;font:600 1.875rem/1 var(--mono);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.tile[data-tone=urgent] .tile-num{color:var(--accent-ink)}
.tile[data-tone=kept] .tile-num{color:var(--kept)}
.tile-sub{margin-top:8px;color:var(--muted);font-size:0.75rem;line-height:1rem}

/* next steps */
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;
  background:var(--card);color:var(--ink);font:500 0.875rem var(--sans);text-decoration:none;cursor:pointer}
.pill:hover{border-color:var(--line-strong)}
.pill.lead{background:var(--ink);border-color:var(--ink);color:var(--paper)}

/* what needs the owner now: the one tinted callout is the most urgent item */
.queue{padding-bottom:0}
.queue .count{color:var(--accent-ink)}
.asks{list-style:none;margin:0;padding:0}
.ask{display:grid;gap:10px;padding:12px 0;border-top:1px solid var(--line)}
.ask:first-child{border-top:0}
.ask.urgent{margin:0 -16px;padding:12px 16px 12px 13px;border-top:0;border-left:3px solid var(--accent);background:var(--tint)}
.ask.urgent+.ask{border-top:0}
.ask-who{font-weight:600}
.ask-what{margin-top:2px;font-size:1rem;line-height:1.4375rem;text-wrap:pretty;overflow-wrap:anywhere}
.ask-what.quiet{margin-top:2px;font-size:0.875rem}
.ask-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-top:6px;color:var(--muted);font-size:0.8125rem;
  line-height:1.125rem}
.deadline{font:600 0.875rem/1.25rem var(--mono);color:var(--accent-ink);font-variant-numeric:tabular-nums}
.decide{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0}
.decide-how{color:var(--muted);font-size:0.8125rem;line-height:1.125rem}
.act{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:72px;padding:0 14px;
  border:1px solid var(--line-strong);border-radius:10px;background:transparent;color:var(--ink);
  font:600 0.875rem var(--sans);cursor:pointer}
.act:hover:not(:disabled){border-color:var(--ink)}
.act:disabled{opacity:.4;cursor:not-allowed}
.empty{padding:2px 0 14px;font-size:0.9375rem;line-height:1.375rem;text-wrap:pretty}
.also{padding:10px 0 4px;border-top:1px solid var(--line)}
.also h3{margin:0;font:600 0.8125rem/1.125rem var(--sans);color:var(--muted)}
/* the foot of the queue is Otto's floor: the note on the left, room for him on the right */
.queue-foot{min-height:48px;padding:12px 60px 14px 0;border-top:1px solid var(--line);color:var(--muted);font-size:0.7812rem;
  line-height:1.0625rem}

/* what Otty is doing: step names from the event stream, newest first */
.steps{list-style:none;margin:0;padding:0}
.steps li{display:grid;grid-template-columns:4.2rem minmax(0,1fr);gap:8px;padding:7px 0;border-top:1px solid var(--line);
  font-size:0.8438rem;line-height:1.1875rem}
.steps li:first-child{border-top:0}
.steps time{color:var(--muted);font:0.75rem/1.1875rem var(--mono)}
.steps .who{color:var(--muted)}
.steps-empty[hidden]{display:none}

/* tables: the decision feed, the agents at the door, the orders */
.table{list-style:none;margin:0;padding:0}
.cols{display:none;color:var(--muted);font:500 0.6562rem/0.875rem var(--mono);letter-spacing:.08em;text-transform:uppercase}
.cols span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.empty-table{padding:20px 0;color:var(--muted);text-align:center;font-size:0.875rem}
.table-note{font-size:0.7812rem}
.table>li:not(.cols){border-top:1px solid var(--line)}
.frow{position:relative;display:grid;grid-template-columns:2.5rem minmax(0,1fr) auto;column-gap:8px;align-items:center;
  padding:6px 0;font-size:0.875rem;line-height:1.25rem}
.frow .seq{color:var(--muted);font:0.75rem/1.25rem var(--mono)}
.frow .what{min-width:0;overflow-wrap:anywhere}
.frow.refused .what{color:var(--broken-ink)}
.frow .sub{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;gap:0 8px;color:var(--muted);font-size:0.7812rem}
.frow .who:empty,.frow .via:empty{display:none}
.frow .via::before{content:"via "}
.frow .proof{grid-column:3;grid-row:1/span 2;min-height:44px;padding:0;font-size:0.7812rem;line-height:1rem}
.frow .stamp{position:absolute;left:1.6rem;top:50%;margin-top:-8px}
.vrow{display:grid;grid-template-columns:minmax(0,1fr) 3rem 3rem 4.6rem;gap:8px;align-items:baseline;padding:9px 0;
  font-size:0.875rem;line-height:1.25rem}
.vrow .agent{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.vrow .agent.quiet{margin:0;font-weight:500}
.vrow .level{display:none;color:var(--muted);font-size:0.7812rem}
.vrow .num{font:500 0.8125rem/1.25rem var(--mono);text-align:right;font-variant-numeric:tabular-nums}
.vrow .at{color:var(--muted);font-size:0.7812rem;text-align:right}
.rows{list-style:none;margin:0;padding:0}
.row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;padding:10px 0;font-size:0.9062rem;
  line-height:1.3125rem}
.rows>.row+.row,.also .row+.row{border-top:1px solid var(--line)}
.row .who{grid-area:who;font-weight:600;overflow-wrap:anywhere}
.row .what{grid-area:what;min-width:0;overflow-wrap:anywhere}
.row .state{grid-area:state;justify-self:end;font-weight:600}
.row .ref{grid-area:ref;min-width:0;color:var(--muted)}
.row .at{grid-area:at;justify-self:end;color:var(--muted);font-size:0.7812rem;white-space:nowrap}
.orders .row{grid-template-areas:"who state" "what what" "ref at"}
.offer{grid-template-areas:"who at" "what what"}
.state.tone-kept{color:var(--kept)}
.state.tone-broken{color:var(--broken-ink)}
.state.tone-quiet{color:var(--muted);font-weight:500}
.dash .proof.ok .word{color:var(--kept)}
.dash .proof.ok .word::before{content:"";display:inline-block;width:4px;height:8px;margin:0 6px 2px 1px;
  border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.dash .proof.bad .word{color:var(--broken-ink)}

/* today: what the owner changed and how it was settled */
.changes{list-style:none;margin:0;padding:0}
.change{padding:10px 0 12px;border-top:1px solid var(--line)}
.change:first-child{border-top:0;padding-top:0}
.change-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.understood{font-weight:600;text-wrap:pretty;overflow-wrap:anywhere}
.change-head time{flex:none;color:var(--muted);font-size:0.7812rem}
.words{margin-top:2px;color:var(--muted);overflow-wrap:anywhere}
.tally-line{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;margin:12px 0 0}
.tally-line div{min-width:0}
.tally-line dt{color:var(--muted);font-size:0.75rem;line-height:1rem}
.tally-line dd{margin:4px 0 0;font:600 1.5rem/1 var(--mono);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.took{margin-top:8px;color:var(--muted);font-size:0.7812rem;line-height:1.125rem}

/* act through your agent */
.door .lede{color:var(--ink);font-size:0.9062rem;line-height:1.3125rem;text-wrap:pretty}
.copy{display:flex;align-items:stretch;gap:8px;margin-top:12px}
.copy code{flex:1;min-width:0;padding:11px 12px;background:var(--paper);border:1px solid var(--line);border-radius:10px;
  overflow-wrap:anywhere}
.copy-btn{min-height:44px;min-width:76px;padding:0 14px;border:1px solid var(--line-strong);border-radius:10px;
  background:transparent;color:var(--ink);font:600 0.875rem var(--sans);cursor:pointer}
.copy-btn:hover{border-color:var(--ink)}
.ways{list-style:none;margin:12px 0 0;padding:0}
.ways li{display:grid;grid-template-columns:4rem minmax(0,1fr);gap:8px;padding:9px 0;border-top:1px solid var(--line);
  color:var(--muted);font-size:0.8438rem;line-height:1.1875rem}
.way{color:var(--ink);font-weight:600}
.try{margin-top:10px;color:var(--muted);font-size:0.8125rem;line-height:1.1875rem}

/* Otto's bubble, his stamp and the receipt he carries */
.bubble{position:absolute;left:0;top:0;z-index:4;width:max-content;max-width:min(240px,70vw);padding:6px 10px;border-radius:10px;
  background:var(--ink);color:var(--paper);font:500 0.7812rem/1.0625rem var(--sans);pointer-events:none;white-space:normal;
  transform:translate(-50%,calc(-100% - 8px))}
.bubble::after{content:"";position:absolute;left:50%;bottom:-5px;width:10px;height:10px;margin-left:-5px;
  background:inherit;transform:rotate(45deg);border-radius:2px}
.bubble[hidden]{display:none}
.bubble .more{margin-left:6px;opacity:.7}
.otto.carry::after{content:"";position:absolute;left:50%;top:-12px;width:11px;height:13px;margin-left:-6px;
  background:var(--raised);border:1px solid var(--ink);border-radius:2px;
  box-shadow:inset 0 4px 0 -3px var(--line-strong),inset 0 7px 0 -6px var(--line-strong)}
.stamp{display:inline-block;flex:none;width:16px;height:16px;border:1.5px solid var(--kept);border-radius:50%;
  box-shadow:inset 0 0 0 2.5px var(--card),inset 0 0 0 4px var(--kept);transform:rotate(-14deg);
  animation:stamp-in .26s cubic-bezier(.2,1.4,.4,1) both}

/* motion */
.fade-up{animation:fade-up .42s ease both}
.arriving{opacity:0}
.flip{display:inline-block;animation:digit-flip .28s cubic-bezier(.4,0,.2,1) both}
@keyframes fade-up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes digit-flip{from{opacity:.4;transform:translateY(-18%) rotateX(-18deg)}to{opacity:1;transform:none}}
@keyframes live-pulse{0%,100%{transform:scale(1);opacity:.35}50%{transform:scale(2.6);opacity:0}}
@keyframes stamp-in{from{opacity:0;transform:rotate(-14deg) scale(1.8)}to{opacity:1;transform:rotate(-14deg) scale(1)}}

/* the answer to an action, and the code prompt */
.notice{position:fixed;left:50%;bottom:max(16px,env(safe-area-inset-bottom));z-index:10;transform:translateX(-50%);
  width:max-content;max-width:min(34rem,calc(100vw - 32px));padding:12px 16px;border-radius:10px;background:var(--ink);
  color:var(--paper);font-size:0.875rem;line-height:1.25rem}
.notice[hidden]{display:none}
.prompt{width:min(24rem,calc(100vw - 32px));padding:20px;border:1px solid var(--line);border-radius:16px;
  background:var(--raised);color:var(--ink)}
.prompt::backdrop{background:rgb(23 21 15 / .45)}
.prompt h2{margin:0 0 6px;font:600 1.25rem/1.625rem var(--display)}
.prompt label{display:block;margin-top:16px;font-weight:500}
.prompt input{width:100%;min-width:0;height:48px;margin-top:6px;padding:0 12px;border:1px solid var(--line-strong);
  border-radius:8px;background:var(--paper);color:var(--ink);font:1rem var(--sans)}
.prompt .error{margin-top:10px}
.prompt .error[hidden]{display:none}
.prompt-actions{display:flex;gap:8px;margin-top:16px}
.prompt-actions .act{flex:1;background:var(--ink);border-color:var(--ink);color:var(--paper)}

@media (min-width:960px){
  .dash .bar{padding:6px 32px}
  .bar .biz-name{flex:none;font-size:1.125rem;line-height:1.5rem}
  .bar-right{flex:1;flex-basis:auto;order:0;justify-content:flex-end}
  .tabs{margin-left:8px}
  .access{order:3;flex-basis:100%;text-align:right}
  .board{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:22px 32px 72px}
  .board>.mid{order:3}
  .board>.pair{order:4}
  .board>.mid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
  .board>.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
  .card{padding:18px 22px}
  .ask.urgent{margin:0 -22px;padding:14px 22px 14px 19px}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
  .tile{padding:18px 20px 16px}
  .tile-num{font-size:2.125rem}
  .sec-head h2{font-size:1.1875rem}
  .ask{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:24px}
  .decide{justify-content:flex-end;max-width:17rem}
  .decide-how{flex-basis:100%;text-align:right}
  .act{min-height:34px;min-width:64px;font-size:0.8125rem}
  .queue-foot{min-height:80px;padding-right:120px}  /* Otto is twice the size here */
  .cols{display:grid;gap:8px;padding:0 0 8px}
  .feed .cols,.frow{display:grid;grid-template-columns:2.6rem minmax(0,1.5fr) minmax(0,.9fr) minmax(0,.9fr) 4.6rem 6.4rem;
    gap:8px;align-items:center}
  .frow .sub{display:contents;font-size:0.8125rem}
  .frow .who,.frow .via,.frow .at{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .frow .who:empty,.frow .via:empty{display:block}
  .frow .via::before{content:none}
  .frow .proof{grid-column:auto;grid-row:auto;min-height:36px}
  .agents .cols,.vrow{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 3.4rem 4.4rem 4.8rem}
  .vrow .level{display:block}
  .cols span:nth-child(n+3){text-align:right}
  .feed .cols span{text-align:left}
  .orders .cols,.orders .row{grid-template-columns:7rem minmax(0,1fr) 8.5rem 10.5rem 5.5rem;gap:12px;align-items:baseline}
  .orders .cols{display:grid}
  .orders .cols span{text-align:left}
  .orders .row{grid-template-areas:"who what state ref at";padding:9px 0}
  .orders .row .state{justify-self:start}
  .offer{grid-template-columns:6.5rem minmax(0,1fr) auto;grid-template-areas:"who what at"}
  .tally-line dd{font-size:1.75rem}
}
.dash .prompt::backdrop{background:rgb(0 0 0 / .6)}

/* the chooser: /dashboard and /live without a business */
.choose{max-width:1100px;margin:0 auto;padding:18px var(--pad-r) max(56px,env(safe-area-inset-bottom)) var(--pad-l)}
.choose .lede{color:var(--muted);font-size:0.9375rem;line-height:1.375rem}
.find input{width:100%;height:48px;margin:14px 0 6px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;
  background:var(--card);color:var(--ink);font:1rem var(--sans)}
.pick-group{margin-top:22px}
.pick-group[hidden],.picks li[hidden],#none[hidden]{display:none}
.picks{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:12px;list-style:none;margin:0;padding:0}
.picks li{display:flex;min-width:0}.picks li>.pick{flex:1;min-width:0;align-content:start;height:100%}
.pick-kind{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.pick-door{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick-name{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.pick-counts{margin-top:auto;padding-top:6px}
a.pick{transition:border-color .2s,transform .2s,box-shadow .2s}
a.pick:hover{border-color:var(--accent,#F2B33D);transform:translateY(-2px);box-shadow:0 14px 30px -20px rgb(242 179 61 / .7)}
@media (prefers-reduced-motion:reduce){a.pick{transition:none}a.pick:hover{transform:none}}
.pick{display:flex;flex-direction:column;gap:3px;min-height:44px;padding:14px 16px;background:var(--card);border:1px solid var(--line);
  border-radius:16px;box-shadow:var(--shadow);color:var(--ink);text-decoration:none}
a.pick:hover{border-color:var(--line-strong)}
.pick.closed{background:transparent;box-shadow:none;color:var(--muted)}
.pick-top{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.pick-name{font:600 1rem/1.375rem var(--display)}
.badge{padding:1px 8px;border-radius:999px;background:var(--tint);color:var(--accent-ink);font-size:0.75rem;font-weight:600}
.pick-slug{font:600 0.8438rem/1.25rem var(--mono)}
.pick-kind,.pick-counts,.pick-note{color:var(--muted);font-size:0.8125rem;line-height:1.125rem}
.pick-door{min-width:0;color:var(--muted);font-size:0.7812rem;overflow-wrap:anywhere}
.pick-door code{font:0.75rem/1.125rem var(--mono)}
.pick-note{font-weight:600}
@media (min-width:720px){.picks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.picks{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){
  .fade-up,.flip,.stamp,.dash .conn.on::after{animation:none}
  .arriving{opacity:1}
}

/* The sign-in gate. */
.gate{max-width:26rem;margin:12vh auto 0;padding:24px var(--pad-r) max(24px,env(safe-area-inset-bottom)) var(--pad-l)}
.gate img{display:block}
.gate h1{margin:16px 0 8px;font:500 2.125rem/2.5rem var(--display);letter-spacing:-.01em;text-wrap:balance;overflow-wrap:anywhere}
.dash .gate h1{font:600 2rem/2.375rem var(--display);letter-spacing:-.01em}
.gate a{display:inline-flex;align-items:center;min-height:44px}
.signin{display:grid;gap:8px;margin-top:24px}
.signin label{font-weight:500}
.signin input{width:100%;min-width:0;height:48px;padding:0 12px;border:1.5px solid var(--line-strong);border-radius:4px;
  background:var(--raised);color:var(--ink);font:1rem var(--sans)}
.signin button{height:48px;margin-top:8px;border:0;border-radius:12px;background:var(--ink);color:var(--paper);
  font:600 1rem var(--sans);cursor:pointer}
.signin button:hover{background:var(--threshold-ink);color:var(--paper)}
.error{margin-top:16px;color:var(--broken-ink);font-weight:500}
.dash .error{color:var(--accent-ink)}

@media (prefers-reduced-motion:reduce){
  .line.new{animation:none}
  .node{transition:none}
}

/* The dashboard as two windows side by side (owner, 15 Nov): what needs you and what Otty is doing on the left,
   one tabbed window for orders, decisions, agents and changes on the right. The page stays one screen. */
.board>.mid{display:flex;flex-direction:column;gap:14px;order:3}
.left{display:flex;flex-direction:column;gap:14px;min-width:0}
.more{display:flex;flex-direction:column;padding:0;overflow:hidden}
.tabr{position:absolute;width:1px;height:44px;margin:0;opacity:0;pointer-events:none}
.tabbar{display:flex;gap:2px;padding:8px 8px 0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tabbar::-webkit-scrollbar{display:none}
.tabbar label{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border-radius:10px 10px 0 0;
  color:var(--muted);font:600 0.9375rem/1.25rem var(--display);white-space:nowrap;cursor:pointer;border-bottom:2px solid transparent;
  transition:color .2s,border-color .2s}
.tabbar label:hover{color:var(--ink)}
#tab-orders:checked~.tabbar label[for=tab-orders],#tab-feed:checked~.tabbar label[for=tab-feed],
#tab-agents:checked~.tabbar label[for=tab-agents],#tab-today:checked~.tabbar label[for=tab-today]{
  color:var(--ink);border-bottom-color:var(--accent)}
#tab-orders:focus-visible~.tabbar label[for=tab-orders],#tab-feed:focus-visible~.tabbar label[for=tab-feed],
#tab-agents:focus-visible~.tabbar label[for=tab-agents],#tab-today:focus-visible~.tabbar label[for=tab-today]{
  outline:2px solid var(--accent);outline-offset:-2px}
.pane{display:none;min-height:0;padding:6px 16px 14px;overflow:auto}
#tab-orders:checked~.pane.orders,#tab-feed:checked~.pane.feed,#tab-agents:checked~.pane.agents,
#tab-today:checked~.pane.today{display:block;animation:pane .25s ease both}
@keyframes pane{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.fold-sub{margin:14px 0 6px;color:var(--muted);font:400 0.6875rem/1rem var(--mono);letter-spacing:.09em;text-transform:uppercase}
.more .pane{max-height:60vh}
.connect.gate{max-width:36rem;margin-top:8vh}
.connect .card{margin:20px 0 12px}
.connect .copy code{user-select:all;-webkit-user-select:all;overflow-wrap:anywhere}
.connect .back{color:var(--muted)}
@media (min-width:960px){
  .board>.mid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:18px;align-items:stretch;
    height:calc(100vh - 290px);min-height:360px}
  .left{gap:18px;min-height:0}
  .left .doing{flex:1;min-height:0;overflow:auto}
  .more{min-height:0}.more .pane{flex:1;max-height:none;padding:8px 22px 18px}
  .tabbar{padding:8px 14px 0}
}
@media (prefers-reduced-motion:reduce){.pane{animation:none!important}}

/* A business's own icon on the pickers, or its initial when its site has none. */
.pick-top{align-items:center}
.pick-logo{flex:none;width:28px;height:28px;border-radius:7px;object-fit:contain;background:#fff;
  border:1px solid var(--line)}
.pick-logo.letter{display:inline-flex;align-items:center;justify-content:center;background:var(--stone);
  color:var(--ink);font:600 0.875rem/1 var(--display)}
