/* Cortana client styles (TV and phone). No build step.
   TV rules that shape everything here:
   - Solid colours only. A see-through panel vanishes over the TV's video plane, so no rgba() fills and no backdrop filters.
   - Nothing scrolls on a TV: lists are paged. Phones (under 900 px) get one scrolling column; their rules are in the @media block.
   - Motion is transform and opacity only, 300 ms or less, no blur. The TV's GPU is weak.
   - One focus ring, always visible, shared by the D-pad and the pointer. It hides only while the screen rests (body.ambient). */

/* @tokens:start  One identity for the site, the app and the TV: "midnight and lamplight". This block is byte-identical in
   site/assets/cortana.css and tv/style.css (test/design-tokens.test.mjs fails if they drift); brand.json carries the same
   colours for everything that is not CSS. Rules: midnight indigo ground; warm paper ink; halo blue for links, focus and
   the brand; GOLD MEANS ONE THING, an agent is waiting on you, and nothing else on any surface may use it. */
:root {
  /* ground */
  --c-bg: #070a18;            /* page: midnight indigo */
  --c-rail: #0b0f22;          /* navigation rail, tab bar, raised page areas */
  --c-surface: #121832;       /* cards and rows */
  --c-surface-2: #1c2448;     /* focused or raised surface */
  --c-surface-3: #262f5c;     /* controls, tracks */
  --c-line: #2a3463;          /* hairlines on surfaces */
  --c-line-soft: #171d3d;     /* hairlines on the page */
  /* ink: lamplit paper, then two cooler steps */
  --c-ink: #f4f1ea;  --c-ink-2: #aeb7dc;  --c-ink-3: #838dbb;
  --c-ink-bg: #f4f1ea;  --c-ink-bg-2: #aeb7dc;  --c-ink-bg-3: #838dbb;
  /* identity */
  --c-brand: #8fa5ff;         /* halo blue: links, charts, selection, focus on the site */
  --c-brand-bg: #8fa5ff;      /* the same role when drawn on the page or rail */
  --c-brand-dim: #1d2759;     /* chart fills */
  --c-on-brand: #070c2b;
  /* signals: each means one thing everywhere */
  --c-ask: #ffc857;           /* an agent is waiting on you */
  --c-ask-deep: #c9912e;      /* the same light, further from the lamp */
  --c-on-ask: #241700;
  --c-live: #4be3a8;          /* working, done, healthy */
  --c-live-surface: #0d2b29;
  --c-idle: #8791bd;          /* connected, nothing to do */
  --c-stuck: #ff6b81;         /* stuck, overdue, problem */
  --c-stuck-surface: #2c1533;
  --c-on-signal: #06131f;
  /* focus */
  --c-focus: #ffffff;         /* ring drawn on the page */
  --c-focus-in: #ffffff;      /* ring drawn on a surface */
  /* map */
  --c-map-sea: #0a0e20;  --c-map-land: #1a2247;  --c-map-line: #333f78;
  /* type: Mona Sans, one variable family. Wide and heavy for display, normal width for text. */
  --c-font: "Mona Sans", "Mona Sans Fallback", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --c-font-display: "Mona Sans", "Mona Sans Fallback", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --c-font-label: var(--c-font);
  --c-font-code: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --c-wide: 122%;             /* width axis for display type */
  /* motion */
  --c-ease: cubic-bezier(.2, .8, .2, 1);
  --c-dur: 180ms;
}
/* @tokens:end */
:root { --c-r-s: .7rem;  --c-r-m: 1.1rem;  --c-r-l: 1.7rem;  --c-r-xl: 2.2rem; } /* shape: rem here is 1/120 of the screen width */
[data-night] { --c-ink: #e6e2d9; --c-ink-bg: #e6e2d9; --c-ask: #eab248; --c-live: #41c995; --c-stuck: #ee6379; --c-brand: #8498ee; --c-brand-bg: #8498ee; --c-focus: #e9ecff; --c-focus-in: #e9ecff; }

@font-face { font-family: "Mona Sans"; src: url("fonts/mona-sans.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbmono-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Mona Sans Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"); size-adjust: 103%; ascent-override: 88%; descent-override: 22%; line-gap-override: 0%; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: calc(100vw / 120); -webkit-text-size-adjust: 100%; } /* 1rem = 16px at 1920 */
body { --t1: var(--c-ink-bg); --t2: var(--c-ink-bg-2); --t3: var(--c-ink-bg-3);
  color: var(--t1); background: var(--c-bg); font-family: var(--c-font); font-weight: 450; font-size: 1.35rem; line-height: 1.3;
  width: 100vw; height: 100vh; overflow: hidden; display: grid; grid-template-columns: 17.5rem 1fr; -webkit-font-smoothing: antialiased; }
/* The keep-alive video plays behind the app. The solid rail and main cover it; it is there for the screensaver hold, not to be seen. */
#keep { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: -1; pointer-events: none; }
/* Figures are proportional: Mona Sans draws its tabular zero slashed, which reads as code next to prices and times.
   Only the things that tick in place (the clocks, the timer) hold their width. */
.num { font-variant-numeric: normal; }
#st-clock, #timer .num { font-variant-numeric: tabular-nums; }
svg.ico { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { font-family: var(--c-font-code); font-size: .92em; }
.card, .row, .btn, .seg, .chip, .sbox, .qrow, .crow, #banner, .set { --t1: var(--c-ink); --t2: var(--c-ink-2); --t3: var(--c-ink-3); color: var(--t1); }

/* ---- focus: one language. The focused thing lifts a little and wears the ring. ---- */
.f { outline: none; cursor: pointer; transition: transform var(--c-dur) var(--c-ease); -webkit-tap-highlight-color: transparent; }
.f:focus { box-shadow: 0 0 0 .22rem var(--c-bg), 0 0 0 .5rem var(--c-focus); z-index: 2; position: relative; }
.card.f:focus { background: var(--c-surface-2); transform: scale(1.015); }
.card .f:focus, .sbox .f:focus, .apv-q .f:focus { box-shadow: inset 0 0 0 .22rem var(--c-focus-in); background: var(--c-surface-2); }
.card .btn.f:focus, .sbox .btn.f:focus { box-shadow: 0 0 0 .2rem var(--c-surface), 0 0 0 .45rem var(--c-focus-in); background: var(--c-surface-3); transform: scale(1.04); }
body.ambient .f:focus { box-shadow: none; transform: none; }
/* Showcase (the landing page's TV, app.js SHOW): the scene places the ring, because a framed document never holds real focus. */
.f[data-sfocus] { box-shadow: 0 0 0 .22rem var(--c-bg), 0 0 0 .5rem var(--c-focus); z-index: 2; position: relative; }
.card.f[data-sfocus] { background: var(--c-surface-2); transform: scale(1.015); }

/* ---- rail ---- */
#rail { background: var(--c-rail); display: flex; flex-direction: column; padding: 1.7rem .9rem 1.2rem; gap: .25rem; height: 100vh; transition: opacity 300ms ease; z-index: 5; }
.brand { display: flex; align-items: center; gap: .8rem; padding: 0 .9rem; height: 4.2rem; margin-bottom: 1rem; font-family: var(--c-font-display); font-size: 1.55rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.01em; }
.mark { width: 2.2rem; height: 2.2rem; flex: none; } .mark .m1 { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; } .mark .m2 { fill: var(--c-ask); }
.rl { display: flex; align-items: center; gap: .9rem; height: 4.5rem; padding: 0 .9rem; border-radius: var(--c-r-m); color: var(--t2); font-size: 1.3rem; font-weight: 550; white-space: nowrap; }
.rl svg { font-size: 1.15rem; } .rl span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
/* number-key hints read as keycaps, not counts (R2 L1): outlined, monospaced, shown while the rail has focus */
.rl kbd { font-family: var(--c-font-code); font-size: .95rem; font-weight: 600; color: var(--t3); width: 1.7rem; height: 1.7rem; line-height: 1.5rem; text-align: center; border-radius: .4rem; box-shadow: inset 0 0 0 .1rem var(--c-line), inset 0 -.18rem 0 var(--c-line); visibility: hidden; }
#rail:focus-within .rl kbd, .rl.f:focus kbd { visibility: visible; } .rl kbd.sv { font-family: inherit; width: auto; padding: 0 .4rem; box-shadow: none; visibility: visible; }
.rl em { font-style: normal; font-size: 1.05rem; font-weight: 700; min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; border-radius: 1rem; background: var(--c-stuck); color: var(--c-on-signal); display: flex; align-items: center; justify-content: center; }
.rl em.gold { background: var(--c-ask); color: var(--c-on-ask); }
.rl.on { background: var(--c-surface); color: var(--t1); } .rl.on svg { color: var(--c-brand-bg); }
.rl.f:focus { box-shadow: inset 0 0 0 .22rem var(--c-focus); color: var(--t1); background: var(--c-surface-2); }
.rl.snd { margin-top: auto; } .rl .sv { width: auto; font-size: 1.05rem; }
body.ambient #rail { opacity: .32; }

/* ---- status cluster (top right on every screen but the Dashboard, which has its own clock) ---- */
#status { position: fixed; top: 2.5rem; right: 3rem; z-index: 4; display: flex; align-items: center; gap: 1.2rem; height: 3.6rem; font-size: 1.45rem; font-weight: 600; color: var(--c-ink-bg-2); }
#status svg { font-size: 1.05rem; } #st-wx { display: flex; align-items: center; gap: .45rem; } #st-wx b { font-weight: 600; } #st-clock { color: var(--c-ink-bg); }
#conn { width: .65rem; height: .65rem; border-radius: 50%; background: var(--c-ink-bg-3); } #conn.ok { background: var(--c-live); } #conn.bad { background: var(--c-stuck); }
body[data-scr="dash"] #st-wx, body[data-scr="dash"] #st-clock { display: none; }
#tabbar { display: none; }

/* ---- screens ---- */
main { position: relative; overflow: hidden; background: var(--c-bg); height: 100vh; }
section { display: none; height: 100vh; padding: 2.5rem 3rem 2.6rem; }
section.on { display: flex; flex-direction: column; }
@keyframes rise { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }
section.enter > * { animation: rise 260ms var(--c-ease) both; }
section.enter > *:nth-child(2) { animation-delay: 40ms; } section.enter > *:nth-child(3) { animation-delay: 80ms; } section.enter > *:nth-child(n+4) { animation-delay: 110ms; }
.ah { flex: none; margin-bottom: 1.3rem; padding-right: 22rem; }
.ah h1 { font-family: var(--c-font-display); font-size: 3.1rem; line-height: 1.1; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah p { color: var(--t2); font-size: 1.4rem; margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.4rem; min-height: 3.6rem; }
.card { background: var(--c-surface); border-radius: var(--c-r-l); }
.card h2, .col h2, .apv-q h2 { font-size: 1.25rem; font-weight: 600; color: var(--t2); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card h2 span, .col h2 span, .apv-q h2 span { font-weight: 500; color: var(--t3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.6rem; padding: 0 1.4rem; border-radius: var(--c-r-m); background: var(--c-surface-3); font-family: var(--c-font-label); font-size: 1.3rem; font-weight: 600; text-align: center; white-space: nowrap; text-decoration: none; border: 0; }
.btn svg { font-size: .95rem; }
.btn.f:focus { background: var(--c-surface-3); transform: scale(1.04); }
.btn.go { background: var(--c-brand); color: var(--c-on-brand); } .btn.go.f:focus, .card .btn.go.f:focus, .sbox .btn.go.f:focus { background: var(--c-brand); }
.btn.sm { min-height: 2.9rem; padding: 0 1.1rem; font-size: 1.15rem; }
.btn.off { color: var(--t3); cursor: default; }
.seg { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 1.3rem; background: var(--c-surface); flex: none; }
.sg { min-height: 3rem; padding: 0 1.15rem; background: none; border-radius: 1rem; color: var(--t2); font-size: 1.25rem; }
.sg b { font-weight: 700; color: var(--t3); } .sg.sel { background: var(--c-ink); color: var(--c-surface); } .sg.sel b { color: var(--c-surface); }
.sg.f:focus, .card .sg.f:focus { background: var(--c-surface-3); color: var(--t1); box-shadow: 0 0 0 .22rem var(--c-focus-in); transform: none; } .sg.sel.f:focus, .card .sg.sel.f:focus { background: var(--c-ink); color: var(--c-surface); box-shadow: 0 0 0 .2rem var(--c-surface), 0 0 0 .42rem var(--c-focus-in); }
.pager { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex: none; color: var(--t2); font-size: 1.2rem; font-weight: 500; }
.pager span { margin-right: .5rem; color: var(--c-ink-bg-2); } .pg { min-height: 3.2rem; width: 3.6rem; padding: 0; } .pg svg { font-size: 1.1rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; height: 2.1rem; padding: 0 .85rem; border-radius: 1.1rem; background: var(--c-surface-3); font-size: 1.12rem; font-weight: 650; white-space: nowrap; }
.chip.gold { background: var(--c-ask); color: var(--c-on-ask); }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c-idle); flex: none; position: relative; }
.dot.live { background: var(--c-live); } .dot.stuck { background: var(--c-stuck); } .dot.gold { background: var(--c-ask); }
.dot.new { background: none; box-shadow: inset 0 0 0 .14rem var(--c-idle); }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.dot.live::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background: var(--c-live); animation: pulse 2.6s ease-out infinite; }
.empty { color: var(--t2); font-size: 1.45rem; line-height: 1.45; }
.empty.sm { font-size: 1.3rem; padding: 1.2rem .2rem; }
.empty.big { max-width: 52rem; margin-top: 3rem; font-size: 1.6rem; } .empty.big b { display: block; font-family: var(--c-font-display); font-size: 2.6rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.01em; color: var(--t1); margin-bottom: .8rem; }
.empty code { background: var(--c-surface); border-radius: .45rem; padding: .1em .45em; color: var(--c-brand-bg); }
.foot { flex: none; margin-top: 1.1rem; }
.prog, .cbar, .gauge { height: .45rem; border-radius: .3rem; background: var(--c-surface-3); overflow: hidden; position: relative; }
.prog i, .cbar i, .gauge i { display: block; height: 100%; border-radius: .3rem; background: var(--c-brand); transform-origin: left; transition: transform 300ms var(--c-ease); }
svg.spark { width: 7rem; height: 2rem; fill: none; stroke: var(--c-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; overflow: visible; }
svg.spark path { vector-effect: non-scaling-stroke; } svg.spark .pt { stroke-width: 6; }

/* rows: one line of meaning each */
.rows { display: flex; flex-direction: column; gap: .7rem; }
.row { display: grid; align-items: center; gap: 0 1.2rem; min-height: 5.5rem; padding: 0 1.5rem; border-radius: var(--c-r-m); background: var(--c-surface); }
.row.f:focus { background: var(--c-surface-2); transform: scale(1.008); }
.row .t { font-size: 1.5rem; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .t small { display: block; font-size: 1.15rem; font-weight: 450; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.row .when { font-size: 1.3rem; font-weight: 650; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tag { font-size: 1.12rem; font-weight: 550; color: var(--t3); white-space: nowrap; }
.row.it, .row.act { grid-template-columns: .7rem 9.5rem 1fr auto; }
.pdot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--c-surface-3); }
.p-high .pdot, .lv-error .pdot, .lv-alert .pdot { background: var(--c-stuck); } .p-medium .pdot, .lv-warn .pdot, .lv-warning .pdot { background: var(--c-ask); } .lv-info .pdot { background: var(--c-brand); } .lv-success .pdot { background: var(--c-live); }
.row.late .when { color: var(--c-stuck); }

/* ---- Dashboard ---- */
.d-top { display: flex; align-items: flex-end; gap: 2rem; flex: none; height: 8.2rem; margin-bottom: 1.8rem; padding-right: 2.5rem; }
.d-clock { font-family: var(--c-font-display); font-size: 9rem; line-height: .8; font-weight: 600; font-stretch: var(--c-wide); letter-spacing: -.035em; }
.d-date { display: flex; flex-direction: column; padding-bottom: .2rem; } .d-date b { font-size: 2.1rem; font-weight: 650; line-height: 1.15; } .d-date span { font-size: 1.6rem; color: var(--t2); }
.d-wx { margin-left: auto; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; border-radius: var(--c-r-l); }
.d-wx svg { font-size: 2.3rem; color: var(--c-brand-bg); stroke-width: 1.4; } .d-wx b { font-family: var(--c-font-display); font-size: 3.6rem; font-weight: 600; font-stretch: var(--c-wide); line-height: 1; letter-spacing: -.02em; }
.d-wx span { font-size: 1.4rem; font-weight: 550; line-height: 1.3; } .d-wx small { display: block; font-size: 1.2rem; font-weight: 450; color: var(--t2); }
.d-grid { display: grid; grid-template-columns: 1.36fr 1fr; gap: 1.6rem; flex: 1; min-height: 0; }
.d-main, .d-side { display: flex; flex-direction: column; gap: 1.6rem; min-height: 0; min-width: 0; }
.d-next { padding: 1.3rem 1.2rem 1rem; flex: none; } .d-next h2 { padding: 0 .6rem .6rem; }
.d-next .row { background: none; min-height: 4.9rem; padding: 0 .8rem; grid-template-columns: .7rem 9rem 1fr; }
.d-agents { padding: 1.4rem 1.6rem 1rem; flex: 1; min-height: 0; overflow: hidden; } .d-agents h2 { margin-bottom: .5rem; }
.ar { display: grid; grid-template-columns: .7rem 11.5rem 1fr auto; align-items: center; gap: 0 1rem; height: 4.25rem; border-top: .06rem solid var(--c-line); font-size: 1.35rem; }
.ar:first-of-type { border-top: 0; }
.ar b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ar span { color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ar small { color: var(--t3); font-size: 1.2rem; font-weight: 550; }
.ar em { font-style: normal; font-weight: 700; font-size: 1.1rem; min-width: 1.8rem; height: 1.8rem; border-radius: 1rem; background: var(--c-ask); color: var(--c-on-ask); display: flex; align-items: center; justify-content: center; }
.ar.st-stuck span { color: var(--c-stuck); }
.ar.more { display: block; line-height: 3rem; height: 3rem; color: var(--t3); font-size: 1.2rem; }
.d-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; flex: none; }
.mini { padding: 1.2rem 1.3rem 1.25rem; min-width: 0; height: 11.2rem; display: flex; flex-direction: column; }
.mini .big { font-family: var(--c-font-display); font-size: 2.3rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.02em; line-height: 1.1; margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .big i { font-style: normal; color: var(--t3); font-weight: 500; } .mini .big.warn { color: var(--c-ask); }
.mini .lbl { color: var(--t2); font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .15rem; }
.mrow { display: flex; align-items: center; gap: .8rem; margin-top: auto; } .mrow .big { margin-top: 0; }
svg.ring { width: 2.6rem; height: 2.6rem; transform: rotate(-90deg); flex: none; } svg.ring circle { fill: none; stroke: var(--c-surface-3); stroke-width: 13; } svg.ring circle.p { stroke: var(--c-live); stroke-linecap: round; }
.calm { flex: 1; min-height: 0; padding: 2.2rem 2.4rem; display: flex; flex-direction: column; border-radius: var(--c-r-xl); }
.calm-t { font-family: var(--c-font-display); font-size: 3.6rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.02em; line-height: 1.1; }
.calm-s { color: var(--t2); font-size: 1.6rem; margin-top: .8rem; max-width: 36rem; line-height: 1.4; }
.calm-c { margin-top: auto; display: flex; align-items: baseline; gap: .8rem; } .calm-c span { font-size: 2.2rem; font-weight: 650; } .calm-c small { color: var(--t2); font-size: 1.3rem; } .calm-c svg { margin-left: auto; width: 14rem; height: 3rem; align-self: center; }

/* ---- the approval: the loudest thing on any screen ---- */
.ask { background: var(--c-ask); color: var(--c-on-ask); border-radius: var(--c-r-xl); padding: 2rem 2.4rem 2.1rem; display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 0; min-width: 0;
  transition: transform 220ms var(--c-ease), opacity 220ms ease; }
.ask.hero { flex: 1; overflow: visible; }
.ask.hero.f:focus { box-shadow: 0 0 0 .25rem var(--c-bg), 0 0 0 .6rem var(--c-focus); transform: scale(1.012); }
.ask-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1.4rem; font-weight: 650; }
.ask-exp { font-weight: 550; }
.ask-title { font-family: var(--c-font-display); font-size: 4.6rem; line-height: 1.08; font-weight: 700; font-stretch: 112%; letter-spacing: -.025em; margin-top: 1.2rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ask-detail { font-size: 1.9rem; font-weight: 500; line-height: 1.35; margin-top: 1rem; max-width: 50rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ask-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: 1.35rem; font-weight: 600; }
.ask-foot .hint { background: var(--c-on-ask); color: var(--c-ask); border-radius: 1.2rem; padding: .5rem 1.1rem; }
.ask.hero.long .ask-title { font-size: 3.7rem; } .ask.full.long .ask-title { font-size: 4.7rem; }
.d-clock, .wtemp, .d-wx b { font-variant-numeric: normal; }
.acard.st-stuck .a-task { color: var(--c-stuck); }
.ask.hero .ask-opts { align-items: center; gap: 1.1rem; padding-top: 1rem; } .ask.hero .btn.opt { min-height: 4.2rem; min-width: 9rem; padding: 0 1.6rem; font-size: 1.5rem; } .ask-more { margin-left: auto; font-size: 1.35rem; font-weight: 600; }
.ask.full { height: 100%; padding: 2.6rem 3rem 2.8rem; }
.ask.full .ask-title { font-size: 5.6rem; line-height: 1.04; margin-top: 2rem; max-width: 60rem; } .ask.full .ask-detail { font-size: 2.2rem; -webkit-line-clamp: 4; margin-top: 1.5rem; max-width: 52rem; }
.ask-opts { margin-top: auto; padding-top: 1.6rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn.opt { min-height: 5rem; min-width: 12rem; padding: 0 2rem; border-radius: 1.4rem; font-size: 1.7rem; font-weight: 650; background: var(--c-on-ask); color: var(--c-ask); --t3: var(--c-on-ask); }
.btn.opt.later { background: none; color: var(--c-on-ask); box-shadow: inset 0 0 0 .16rem var(--c-on-ask); min-width: 0; margin-left: auto; }
.btn.opt.f:focus { background: #fff; color: var(--c-on-ask); box-shadow: 0 0 0 .2rem var(--c-ask), 0 0 0 .5rem var(--c-on-ask); transform: scale(1.05); }
.btn.opt.picked { transform: scale(.96); }
.ask-lock { align-self: center; display: flex; align-items: center; gap: 1.8rem; background: var(--c-on-ask); color: var(--c-ask); border-radius: 1.6rem; padding: 1.2rem 2.2rem 1.2rem 1.2rem; }
.ask-lock .eqr-code { width: 9.5rem; height: 9.5rem; } .ask-lock-t b { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1.15; } .ask-lock-t span { display: block; margin-top: .4rem; font-size: 1.35rem; font-weight: 550; }
.ask-po { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; font-size: 1.4rem; font-weight: 600; min-height: 4.4rem; }
.ask-po i { width: 3.4rem; height: 2rem; border-radius: 1rem; box-shadow: inset 0 0 0 .16rem var(--c-on-ask); position: relative; flex: none; }
.ask-po i::after { content: ""; position: absolute; left: .32rem; top: .32rem; width: 1.36rem; height: 1.36rem; border-radius: 50%; background: var(--c-on-ask); transition: transform var(--c-dur) var(--c-ease); }
.ask-po[aria-checked="true"] i { background: var(--c-on-ask); } .ask-po[aria-checked="true"] i::after { background: var(--c-ask); transform: translateX(1.4rem); }
.ask.hero.f[data-sfocus] { box-shadow: 0 0 0 .25rem var(--c-bg), 0 0 0 .6rem var(--c-focus); transform: scale(1.012); }
.btn.opt.f[data-sfocus] { background: #fff; color: var(--c-on-ask); box-shadow: 0 0 0 .2rem var(--c-ask), 0 0 0 .5rem var(--c-on-ask); transform: scale(1.05); }
.ask.snap-stamp .ask-stamp { transition: none; }
.ask-stamp { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 1.4rem; background: var(--c-live); color: var(--c-on-signal); opacity: 0; transform: scale(.92); pointer-events: none; border-radius: inherit; z-index: 6;
  transition: opacity 180ms ease, transform 240ms var(--c-ease); font-family: var(--c-font-display); font-size: 3.6rem; font-weight: 700; font-stretch: var(--c-wide); letter-spacing: -.02em; }
.ask-stamp svg { font-size: 2.6rem; stroke-width: 2.4; }
.ask.neg .ask-stamp { background: var(--c-surface-3); color: var(--c-ink); }
.ask.decided .ask-stamp { opacity: 1; transform: none; }
.ask.out { opacity: 0; transform: translateX(-3rem) scale(.985); }
@keyframes askin { from { opacity: 0; transform: translateX(3rem); } to { opacity: 1; transform: none; } }
.ask.in { animation: askin 240ms var(--c-ease) both; }
.apv { display: grid; grid-template-columns: 1fr 25rem; gap: 1.6rem; flex: 1; min-height: 0; }
.apv.solo { grid-template-columns: 1fr; } /* one question waiting: it gets the whole screen */
.apv-main { min-height: 0; min-width: 0; }
.apv-q { background: var(--c-surface); border-radius: var(--c-r-l); padding: 1.4rem 1rem; --t1: var(--c-ink); --t2: var(--c-ink-2); --t3: var(--c-ink-3); color: var(--t1); display: flex; flex-direction: column; gap: .3rem; min-height: 0; overflow: hidden; }
.apv-q h2 { padding: 0 .7rem .6rem; }
.qrow { display: block; padding: .85rem .8rem; border-radius: var(--c-r-s); }
.qrow b { display: block; font-size: 1.12rem; font-weight: 650; color: var(--t2); } .qrow.gold b { color: var(--c-ask); }
.qrow span { font-size: 1.35rem; font-weight: 550; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .15rem; }
.qmore { color: var(--t3); font-size: 1.2rem; padding: .6rem .8rem; }

/* ---- Agents ---- */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 1.4rem; flex: 1; min-height: 0; }
.acard { padding: 1.5rem 1.7rem 1.4rem; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.acard.st-stuck, .ad-main.st-stuck { background: var(--c-stuck-surface); } .acard.st-stuck.f:focus { background: var(--c-stuck-surface); }
.acard.st-stuck .chip.st { background: var(--c-stuck); color: var(--c-on-signal); } .acard.st-stuck .chip.st .dot { background: var(--c-on-signal); }
.a-top { display: flex; align-items: center; gap: .5rem; } .a-cost { margin-left: auto; font-size: 1.5rem; font-weight: 650; }
.acard h3 { font-family: var(--c-font-display); font-size: 2rem; font-weight: 650; font-stretch: 112%; letter-spacing: -.015em; margin-top: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-model { color: var(--t3); font-size: 1.15rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.a-task { color: var(--t2); font-size: 1.4rem; line-height: 1.35; margin-top: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard .prog { margin-top: auto; } .acard.st-live .prog i { background: var(--c-live); }
.a-foot svg.spark { width: 10rem; height: 2.4rem; }
.a-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .7rem; color: var(--t3); font-size: 1.15rem; font-weight: 500; min-height: 2.7rem; }
.acard .prog + .a-foot { margin-top: 0; }
.adetail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6rem; flex: 1; min-height: 0; }
.ad-main { padding: 2rem 2.2rem; display: flex; flex-direction: column; align-items: flex-start; min-height: 0; } .ad-main > * { max-width: 100%; }
.ad-role { color: var(--t2); font-size: 1.35rem; margin-top: 1.2rem; }
.ad-task { font-family: var(--c-font-display); font-size: 2.6rem; font-weight: 650; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.15; margin-top: .8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ad-main .prog { width: 100%; margin-top: 1.6rem; height: .6rem; } .ad-pct { color: var(--t2); font-size: 1.2rem; margin-top: .5rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2rem; width: 100%; margin-top: 2.6rem; }
.facts b { display: block; font-family: var(--c-font-display); font-size: 2.3rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .facts span { color: var(--t2); font-size: 1.2rem; }
.ad-spark { width: 100%; margin-top: auto; padding-top: 1.4rem; } .ad-spark svg { width: 100%; height: 7rem; } .ad-spark small { display: block; color: var(--t3); font-size: 1.12rem; margin-top: .4rem; }
.ad-side { padding: 1.6rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; min-height: 0; overflow: hidden; } .ad-side h2 { padding: 0 .8rem .6rem; } .ad-side .empty { padding: .6rem .8rem; }
.costs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6rem; flex: 1; min-height: 0; }
.ctot { padding: 1.6rem 2rem 1.4rem; display: flex; flex-direction: column; min-height: 0; }
.cbig { font-family: var(--c-font-display); font-size: 6.4rem; font-weight: 600; font-stretch: var(--c-wide); letter-spacing: -.035em; line-height: 1; margin-top: 1.6rem; }
.clbl { color: var(--t2); font-size: 1.35rem; margin-top: .5rem; }
.cother { display: flex; gap: 2.6rem; margin-top: 1.2rem; color: var(--t2); font-size: 1.2rem; } .cother b { display: block; color: var(--t1); font-size: 1.7rem; font-weight: 650; }
.chart { flex: 1; min-height: 0; margin-top: 1rem; position: relative; } .chart svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
svg.area .g { stroke: var(--c-line); stroke-width: 1; fill: none; } svg.area .fill { fill: var(--c-brand-dim); } svg.area .ln { fill: none; stroke: var(--c-brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
svg.area circle { fill: var(--c-brand); } svg.area text { fill: var(--c-ink-3); font-size: 14px; font-weight: 500; font-family: var(--c-font); }
.crows { display: flex; flex-direction: column; gap: .7rem; min-height: 0; }
.crow { flex: 1; max-height: 8.2rem; display: grid; grid-template-columns: 1fr auto 7.5rem; align-items: center; gap: .35rem 1.2rem; padding: .95rem 1.5rem .9rem; border-radius: var(--c-r-m); background: var(--c-surface); }
.crow.f:focus { background: var(--c-surface-2); transform: scale(1.008); }
.cn { min-width: 0; } .cn b { display: block; font-size: 1.45rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cn small { display: block; color: var(--t3); font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct { color: var(--t3); font-size: 1.15rem; font-weight: 500; white-space: nowrap; } .ca { text-align: right; font-size: 1.6rem; font-weight: 650; } .cbar { grid-column: 1 / -1; height: .3rem; }
.setup { padding: 2.2rem 2.4rem; flex: 1; min-height: 0; border-radius: var(--c-r-xl); display: flex; flex-direction: column; overflow: hidden; }
.setup h2 { font-family: var(--c-font-display); font-size: 2.8rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.02em; color: var(--t1); display: block; }
.setup .lead { color: var(--t2); font-size: 1.5rem; margin-top: .4rem; }
.setup ol { list-style: none; counter-reset: s; margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.setup li { counter-increment: s; position: relative; padding-left: 3.4rem; min-height: 2.4rem; }
.setup li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.setup li b { display: block; font-size: 1.5rem; font-weight: 650; } .setup li span { color: var(--t2); font-size: 1.3rem; }
.setup code { display: block; white-space: pre; overflow: hidden; text-overflow: ellipsis; background: var(--c-bg); color: var(--c-ink-2); border-radius: var(--c-r-s); padding: .8rem 1rem; margin-top: .5rem; font-size: 1.05rem; line-height: 1.5; }
#s-agents > .setup { flex: none; max-width: 62rem; }

/* ---- Calendar ---- */
.cal { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.6rem; flex: 1; min-height: 0; }
.today { padding: 1.5rem 1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; min-height: 0; } .today h2 { padding: 0 .8rem .6rem; }
.row.evr { grid-template-columns: 7.5rem 1fr auto; background: none; min-height: 5.1rem; padding: 0 .8rem; }
.row.evr .when { color: var(--c-brand); } .row.evr.past .t, .row.evr.past .when { color: var(--t3); } .row.evr.cur .tag { color: var(--c-live); font-weight: 700; }
.hintline { margin-top: auto; padding: .8rem .8rem 0; color: var(--t3); font-size: 1.15rem; }
.week { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 1.2rem; min-height: 0; }
.day { padding: 1.3rem 1.4rem; min-width: 0; overflow: hidden; } .day h3 { display: flex; justify-content: space-between; font-size: 1.4rem; font-weight: 650; margin-bottom: .8rem; } .day h3 span { color: var(--t3); font-weight: 500; }
.ev { display: flex; gap: .7rem; font-size: 1.25rem; padding: .32rem 0; white-space: nowrap; } .ev time { color: var(--c-brand); font-weight: 650; flex: none; } .ev span { overflow: hidden; text-overflow: ellipsis; }
.ev.open, .ev.more { color: var(--t3); }

/* ---- Packages ---- */
#s-shipments .bar:empty { display: none; }
.shipgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6rem; flex: 1; min-height: 0; }
.mapcard { position: relative; border-radius: var(--c-r-l); overflow: hidden; background: var(--c-map-sea); min-height: 0; }
#smap { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
#smapcap { position: absolute; left: 1.3rem; bottom: 1.3rem; z-index: 500; max-width: 70%; background: var(--c-surface-2); color: var(--c-ink); border-radius: var(--c-r-m); padding: .8rem 1.2rem; }
#smapcap b { display: block; font-size: 1.4rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #smapcap span { color: var(--c-ink-2); font-size: 1.15rem; } #smapcap[hidden] { display: none; }
.leaflet-container { background: var(--c-map-sea); font: inherit; outline: none; }
.pin { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: .2rem solid var(--c-map-sea); background: var(--c-brand); position: relative; transition: transform var(--c-dur) var(--c-ease); }
.pin.out_for_delivery { background: var(--c-ask); } .pin.exception { background: var(--c-stuck); } .pin.home { background: var(--c-ink-bg); border-radius: .35rem; } .pin.delivered { background: var(--c-live); } .pin.sel { transform: scale(1.6); border-color: var(--c-ink-bg); }
.row.ship { grid-template-columns: 1fr auto; min-height: 7rem; } .row.ship .eta { font-size: 1.5rem; font-weight: 650; white-space: nowrap; }
.row.ship.selrow { background: var(--c-surface-2); } .s-out_for_delivery .eta { color: var(--c-ask); } .s-delivered .eta { color: var(--c-live); } .s-exception .eta { color: var(--c-stuck); }

/* ---- Weather ---- */
.wgrid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.4rem; flex: 1; min-height: 0; align-items: center; }
.wnow { padding-left: .4rem; } .wnow > svg { font-size: 5.2rem; stroke-width: 1.15; color: var(--c-brand-bg); }
.wtemp { font-family: var(--c-font-display); font-size: 14rem; line-height: .95; font-weight: 550; font-stretch: var(--c-wide); letter-spacing: -.045em; margin-top: .6rem; }
.wtext { font-size: 2.4rem; font-weight: 600; margin-top: .6rem; }
.wfacts { display: flex; gap: 2.8rem; margin-top: 2.4rem; color: var(--t2); font-size: 1.25rem; } .wfacts b { display: block; color: var(--t1); font-size: 2.2rem; font-weight: 650; }
.wside { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.wcurve { padding: 1.5rem 1.6rem .6rem; } .wcurve svg { width: 100%; height: auto; display: block; margin-top: .4rem; }
.wcurve .ln { fill: none; stroke: var(--c-brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; } .wcurve circle { fill: var(--c-surface); stroke: var(--c-brand); stroke-width: 3; }
.wcurve text { text-anchor: middle; font-family: var(--c-font); } .wcurve .tv { fill: var(--c-ink); font-size: 24px; font-weight: 650; } .wcurve .th { fill: var(--c-ink-3); font-size: 19px; font-weight: 500; } .wcurve .tr { fill: var(--c-brand); font-size: 18px; font-weight: 600; }
.wdays { padding: 1.4rem 1.6rem .8rem; }
.wd { display: grid; grid-template-columns: 9.5rem 2rem 1fr 3.4rem 3rem 11rem 3rem; align-items: center; gap: 0 1rem; height: 3.9rem; border-top: .06rem solid var(--c-line); font-size: 1.35rem; }
.wd:first-of-type { border-top: 0; } .wd b { font-weight: 650; } .wd svg { font-size: 1.1rem; color: var(--t2); } .wt { color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wr { color: var(--c-brand); font-weight: 600; text-align: right; } .wl { color: var(--t3); text-align: right; font-weight: 600; } .wh { font-weight: 650; }
.wbar { height: .5rem; border-radius: .3rem; background: var(--c-surface-3); position: relative; } .wbar i { position: absolute; top: 0; bottom: 0; border-radius: .3rem; background: var(--c-brand); }

/* ---- Notes ---- */
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 1.4rem; flex: 1; min-height: 0; }
.note { padding: 1.7rem 1.8rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.nt { font-size: 1.9rem; font-weight: 550; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.nseen { color: var(--t3); font-size: 1.15rem; margin-top: .8rem; }

/* ---- Routines ---- */
.rgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; flex: 1; min-height: 0; }
.col { display: flex; flex-direction: column; min-height: 0; min-width: 0; } .col h2 { min-height: 3.2rem; margin-bottom: .8rem; justify-content: flex-start; } .col h2 .pager { margin-left: auto; }
.row.rt { grid-template-columns: 2.7rem 1fr auto; min-height: 6.1rem; }
.chk { width: 2.6rem; height: 2.6rem; border-radius: 50%; box-shadow: inset 0 0 0 .17rem var(--t3); display: flex; align-items: center; justify-content: center; color: var(--c-on-signal); }
.chk svg { font-size: 1.1rem; stroke-width: 2.6; opacity: 0; transform: scale(.5); transition: transform 220ms var(--c-ease), opacity 120ms ease; }
.row.rt.done .chk { background: var(--c-live); box-shadow: none; } .row.rt.done .chk svg { opacity: 1; transform: none; } .row.rt.done .t { color: var(--t2); }
.rend { display: flex; align-items: center; gap: 1.1rem; }
.hist { display: flex; gap: .32rem; } .hist i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--c-surface-3); display: block; } .hist i.on { background: var(--c-live); }
.row.rem { grid-template-columns: 9.5rem 1fr; }

/* ---- Plants ---- */
.plants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; flex: 1; min-height: 0; }
.plant { padding: 1.6rem 1.7rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 0; } .plant > * { max-width: 100%; }
.plant h3 { font-family: var(--c-font-display); font-size: 2rem; font-weight: 650; font-stretch: 112%; letter-spacing: -.015em; margin-top: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plant .where { color: var(--t3); font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plant .days { font-family: var(--c-font-display); font-size: 5.6rem; font-weight: 600; font-stretch: var(--c-wide); letter-spacing: -.03em; line-height: 1; margin-top: 1.8rem; white-space: nowrap; }
.plant .days small { font-family: var(--c-font); font-size: 1.2rem; font-weight: 500; font-stretch: normal; letter-spacing: 0; color: var(--t2); margin-left: .6rem; }
.gauge { width: 100%; height: .6rem; margin-top: 1rem; overflow: visible; } .gauge i { background: var(--c-live); } .gauge em { position: absolute; top: -.3rem; bottom: -.3rem; width: .16rem; background: var(--t2); border-radius: .1rem; }
.p-check .gauge i { background: var(--c-ask); } .p-due .gauge i { background: var(--c-stuck); } .p-unknown .days { color: var(--t3); }
.win { color: var(--t3); font-size: 1.12rem; margin-top: .6rem; }
.how { color: var(--t2); font-size: 1.3rem; line-height: 1.4; margin-top: 1.4rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pnote { color: var(--t3); font-size: 1.15rem; line-height: 1.4; margin-top: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pbtns { display: grid; grid-template-columns: 1.4fr 1fr; gap: .7rem; width: 100%; margin-top: auto; padding-top: 1.2rem; }

/* ---- Settings ---- */
.sets { padding: .4rem 2.2rem; max-width: 76rem; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 6.6rem; padding: .8rem 0; border-top: .06rem solid var(--c-line); } .set:first-child { border-top: 0; }
.set b { display: block; font-size: 1.55rem; font-weight: 650; } .set span { color: var(--t2); font-size: 1.25rem; } .setc { flex: none; display: flex; align-items: center; }
.sets .seg { background: var(--c-bg); } .set .url { color: var(--c-brand); font-weight: 600; font-size: 1.4rem; }

/* ---- sheet: one item, full attention ---- */
#sheet { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2800; background: #04060f; display: flex; align-items: center; justify-content: center; }
#sheet[hidden] { display: none; }
@keyframes sheetin { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
.sbox { width: 58rem; max-width: 90vw; background: var(--c-surface); border-radius: var(--c-r-xl); padding: 2.6rem 2.8rem 2.5rem; animation: sheetin 200ms var(--c-ease) both; }
.kick { color: var(--c-brand); font-size: 1.25rem; font-weight: 650; }
.sbox h1 { font-family: var(--c-font-display); font-size: 2.9rem; line-height: 1.12; font-weight: 650; font-stretch: 112%; letter-spacing: -.02em; margin: .5rem 0 1.1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sbox.long h1 { font-size: 2.3rem; -webkit-line-clamp: 5; }
.sline { font-size: 1.5rem; color: var(--t2); line-height: 1.4; padding: .15rem 0; } .sline:first-of-type { color: var(--t1); }
.sacts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; } .sacts .btn { min-height: 4.2rem; font-size: 1.4rem; padding: 0 1.6rem; }
.digest { font-size: 1.55rem; line-height: 1.45; color: var(--t2); } .digest h2, .digest h3, .digest h4 { font-size: 1.7rem; color: var(--t1); margin: 1rem 0 .4rem; } .digest p, .digest ul, .digest ol, .digest blockquote { margin: .5rem 0; } .digest ul, .digest ol { padding-left: 2rem; } .digest strong { color: var(--t1); } .digest a { color: var(--c-brand); } .digest blockquote { border-left: .3rem solid var(--c-line); padding-left: 1rem; }
.sbox.more .sacts { display: grid; grid-template-columns: 1fr 1fr; } .sbox.more .btn { justify-content: flex-start; gap: .9rem; } .sbox.more .btn svg { font-size: 1.1rem; color: var(--c-brand); }

/* ---- guided routine timer ---- */
#timer { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 3000; background: var(--c-bg); display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 7rem; }
#timer[hidden] { display: none; }
.tring { position: relative; width: 34rem; height: 34rem; justify-self: center; }
.tring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .tring circle { fill: none; stroke-width: 12; stroke: var(--c-surface-2); } .tring circle.p { stroke: var(--c-live); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.count { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-family: var(--c-font-display); font-size: 8rem; font-weight: 600; font-stretch: var(--c-wide); letter-spacing: -.03em; text-align: center; line-height: 1.1; }
.count.reps { font-size: 3.2rem; padding: 0 4rem; }
#timer .kick { color: var(--c-live); font-size: 1.4rem; } #timer h1 { font-family: var(--c-font-display); font-size: 4.2rem; line-height: 1.08; font-weight: 650; font-stretch: 112%; letter-spacing: -.02em; margin: .7rem 0 1.2rem; }
.cue { font-size: 1.9rem; color: var(--c-ink-bg-2); line-height: 1.38; } .tprog { color: var(--c-ink-bg-3); font-size: 1.3rem; margin: 2rem 0 1.2rem; } .ctrls { display: flex; gap: 1rem; } .ctrls .btn { min-width: 11rem; min-height: 4.4rem; font-size: 1.45rem; }

/* ---- banner: voice replies, a new approval, a stuck agent ---- */
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, 1.2rem); } to { opacity: 1; transform: translate(-50%, 0); } }
#banner { position: fixed; bottom: 2.6rem; left: calc(50% + 8.75rem); transform: translateX(-50%); z-index: 2500; max-width: 64rem; background: var(--c-surface-3); border-radius: 1.5rem; padding: 1rem 1.6rem 1rem 1.1rem; font-size: 1.4rem; display: flex; gap: 1.1rem; align-items: center; animation: bannerin 240ms var(--c-ease) both; }
#banner[hidden] { display: none; }
.bico { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); display: flex; align-items: center; justify-content: center; flex: none; } .bico svg { font-size: 1.15rem; }
#banner .q { font-weight: 650; } #banner .a { color: var(--t2); font-size: 1.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#banner.gold { background: var(--c-ask); color: var(--c-on-ask); --t2: var(--c-on-ask); } #banner.gold .bico { background: var(--c-on-ask); color: var(--c-ask); } #banner.stuck .bico { background: var(--c-stuck); color: var(--c-on-signal); }

/* ---- sign-in (legacy token) ---- */
#login { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 4000; background: var(--c-bg); display: flex; align-items: center; justify-content: center; padding: 2rem; }
#login[hidden] { display: none; }
#login input, .addnote input, .vform input { width: 100%; background: var(--c-bg); border: .12rem solid var(--c-line); border-radius: var(--c-r-m); color: var(--c-ink-bg); font: inherit; font-size: 1.6rem; padding: 1.1rem 1.3rem; outline: none; }
#login input { margin-top: 1.4rem; } #login input:focus, .addnote input:focus, .vform input:focus { border-color: var(--c-brand); }
body.locked #rail, body.locked main, body.locked #status, body.locked #tabbar { visibility: hidden; }

/* ------------------------------------------------------------------------------------------
   Phone: the same app in one scrolling column with a bottom bar. Tap targets are at least 44 px.
   ------------------------------------------------------------------------------------------ */
/* ---- first run (R2 H3): illustrated empty states with a QR to the exact Settings section ------------------------------
   Drawings use theme colours only and solid fills (no translucency over the keepalive video). */
.eart { width: 13rem; height: 13rem; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.eart .k1, .eart .k1w { stroke: var(--c-line); stroke-width: 3; } .eart .k1w { stroke-width: 9; stroke: var(--c-surface-3); }
.eart .k2, .eart .k2i { stroke: var(--c-ink-3); stroke-width: 3.5; } .eart .k2i { stroke: var(--c-on-brand); }
.eart .k2d { fill: var(--c-surface-3); } .eart .k2f { fill: var(--c-surface-3); }
.eart .k3 { fill: var(--c-brand-bg); } .eart .k3b { fill: var(--c-brand-bg); stroke: none; } .eart .k3s { stroke: var(--c-brand-bg); stroke-width: 3; stroke-dasharray: 2 7; }
.eart .k4 { stroke: var(--c-live); stroke-width: 3.5; fill: var(--c-live-surface); } .eart circle.k4 { fill: var(--c-live); stroke: none; } .eart .k4f { fill: var(--c-live); } .eart .k4w { stroke: var(--c-live); stroke-width: 9; }
.eart .k5 { fill: var(--c-ink-3); } .eart .k6 { fill: var(--c-ask); } .eart .k6s { stroke: var(--c-ask); stroke-width: 4; } .eart .k7 { stroke: var(--c-on-ask); stroke-width: 4; }
.eart .spin { transform-origin: 60px 60px; animation: orbit 24s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.estate { display: flex; align-items: center; gap: 4rem; margin: auto; padding: 0 2rem 4rem; max-width: 92rem; }
.estate .etext { min-width: 0; }
.estate .etext > b { display: block; font-family: var(--c-font-display); font-size: 3.4rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.02em; line-height: 1.08; color: var(--t1); }
.estate .etext > p { color: var(--t2); font-size: 1.7rem; line-height: 1.45; margin-top: .9rem; max-width: 46rem; }
.estate code { background: var(--c-surface); border-radius: .45rem; padding: .1em .45em; color: var(--c-brand-bg); font-family: var(--c-font-code); font-size: .88em; }
.eqr { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.4rem; }
.eqr-code { width: 10.5rem; height: 10.5rem; flex: none; background: #fff; border-radius: 1.1rem; padding: .5rem; }
.eqr-code svg { display: block; width: 100%; height: 100%; }
.eqr-t b { display: block; font-size: 1.6rem; font-weight: 650; color: var(--t1); } .eqr-t span { display: block; color: var(--t2); font-size: 1.3rem; margin-top: .3rem; }
.eqr-t small { display: block; color: var(--t3); font-size: 1.15rem; margin-top: .5rem; font-family: var(--c-font-code); }
.estate.sm { margin: 0; padding: .6rem .6rem .4rem; gap: 2rem; align-items: flex-start; }
.estate.sm .eart { width: 7.5rem; height: 7.5rem; } .estate.sm .etext > b { font-size: 2rem; } .estate.sm .etext > p { font-size: 1.3rem; margin-top: .4rem; }
.estate.sm .eqr { margin-top: 1.2rem; gap: 1.2rem; } .estate.sm .eqr-code { width: 7.4rem; height: 7.4rem; border-radius: .8rem; padding: .35rem; } .estate.sm .eqr-t b { font-size: 1.3rem; } .estate.sm .eqr-t span { font-size: 1.1rem; }
.d-next.is-empty { flex: none; }
.col .estate.sm { padding-top: 1rem; }
#slist .estate { flex-direction: column; align-items: flex-start; gap: 2.2rem; margin: auto 0; padding: 0 1rem 2rem; } #slist .estate .eart { width: 10rem; height: 10rem; } #slist .estate .etext > b { font-size: 2.8rem; }
.echips { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
/* no agents yet */
.setup { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.6rem; }
.setup > .eart { width: 11rem; height: 11rem; align-self: start; }
.setup-b { min-width: 0; }
.setup .alt { display: none; } .d-main .setup code { display: none; } .d-main .setup .alt { display: block; } .d-main .setup > .eart { display: none; } .d-main .setup { grid-template-columns: 1fr auto; }
/* no agents yet: the side column says what the phone is for, with its QR */
.d-phone { flex: 1; min-height: 0; padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; }
.dp-b { flex: 1; display: flex; align-items: center; gap: 2rem; min-height: 0; } .dp-b ul { list-style: none; flex: 1; min-width: 0; }
.dp-b li { padding: 1rem 0; border-top: .08rem solid var(--c-line); } .dp-b li:first-child { border-top: 0; } .dp-b li b { display: block; font-size: 1.5rem; font-weight: 650; } .dp-b li span { color: var(--t2); font-size: 1.25rem; }
.dp-url { margin-top: auto; padding-top: 1.2rem; border-top: .08rem solid var(--c-line); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; } .dp-url span { color: var(--t3); font-size: 1.15rem; } .dp-url b { font-family: var(--c-font-display); font-stretch: var(--c-wide); font-size: 1.9rem; font-weight: 650; letter-spacing: -.02em; color: var(--c-brand-bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqr.tall { flex-direction: column; align-items: center; text-align: center; margin: 0; gap: 1rem; } .eqr.tall .eqr-code { width: 13rem; height: 13rem; } .eqr.tall .eqr-t span { margin-top: .2rem; }
#s-agents > .setup { max-width: none; flex: 1; padding: 3.2rem 3.4rem; } #s-agents > .setup > .eart { width: 15rem; height: 15rem; } #s-agents > .setup h2 { font-size: 3.6rem; } #s-agents > .setup .lead { font-size: 1.7rem; max-width: 44rem; } #s-agents > .setup li b { font-size: 1.7rem; } #s-agents > .setup li span { font-size: 1.4rem; }
/* weather not set yet */
.d-wx.unset svg { color: var(--t3); } .d-wx.unset span { font-size: 1.5rem; } .d-wx.unset small { color: var(--c-brand-bg); }
.mini .big.add { color: var(--c-brand-bg); font-weight: 500; }
/* the calm dashboard: three facts instead of a void */
.calm-f { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: .08rem solid var(--c-line); padding-top: 1.6rem; }
.cf { min-width: 0; padding-right: 1.6rem; } .cf + .cf { padding-left: 1.8rem; border-left: .08rem solid var(--c-line); }
.cf-k { display: block; color: var(--t3); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; }
.cf b { display: block; font-family: var(--c-font-display); font-size: 2.6rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.02em; line-height: 1.15; margin-top: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf small { display: block; color: var(--t2); font-size: 1.2rem; margin-top: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cf small i { font-style: normal; color: var(--t3); }
.cf small svg.spark { width: 9rem; height: 2rem; display: block; margin-top: .2rem; }
.cf.dim b { color: var(--t3); }
/* a short roster gets room to breathe */
.d-agents.few .ar { grid-template-columns: .7rem 1fr auto; grid-template-rows: auto auto auto; height: auto; padding: 1.2rem 0 1.3rem; row-gap: .35rem; }
.d-agents.few .ar b { font-size: 1.7rem; } .d-agents.few .ar > span { grid-column: 2 / 4; grid-row: 2; font-size: 1.35rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d-agents.few .ar .dot { grid-row: 1; } .d-agents.few .ar em, .d-agents.few .ar small { grid-column: 3; grid-row: 1; }
.ar-x { grid-column: 2 / 4; grid-row: 3; display: flex; align-items: center; gap: 1rem; color: var(--t3); font-size: 1.1rem; } .ar-x .prog { flex: 1; } .ar-x span { white-space: nowrap; }
/* agent cards scale to the count */
.agrid.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.agrid.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.agrid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.agrid.n1 .acard, .agrid.n2 .acard { padding: 2.6rem 3rem 2.2rem; } .agrid.n4 .acard { padding: 1.9rem 2.2rem 1.6rem; }
.agrid.n1 .acard h3 { font-size: 5.2rem; margin-top: 2rem; letter-spacing: -.025em; } .agrid.n2 .acard h3 { font-size: 3.8rem; margin-top: 1.8rem; } .agrid.n4 .acard h3 { font-size: 2.7rem; }
.agrid.n1 .a-model, .agrid.n2 .a-model { font-size: 1.45rem; margin-top: .4rem; } .agrid.n4 .a-model { font-size: 1.25rem; }
.agrid.n1 .a-task { font-family: var(--c-font-display); font-size: 2.8rem; font-weight: 600; font-stretch: 108%; letter-spacing: -.012em; color: var(--t1); line-height: 1.22; margin-top: 1.8rem; max-width: 70rem; -webkit-line-clamp: 2; }
.agrid.n2 .a-task { font-size: 2.1rem; color: var(--t1); line-height: 1.3; margin-top: 1.4rem; -webkit-line-clamp: 3; } .agrid.n4 .a-task { font-size: 1.6rem; margin-top: 1rem; }
.agrid.n1 .prog, .agrid.n2 .prog { height: .6rem; margin-top: 2.2rem; } .agrid.n4 .prog { margin-top: 1.4rem; }
.a-facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.6rem; margin-top: auto; padding-top: 1.8rem; }
.agrid.n2 .a-recent { margin-top: 1.8rem; }
/* one agent: a two-column hero, identity and work on the left, its latest notes on the right */
.agrid.n1 .acard { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr auto auto; column-gap: 0; }
.agrid.n1 .acard > * { grid-column: 1; margin-right: 3.6rem; } .agrid.n1 .a-top { grid-row: 1; } .agrid.n1 .acard h3 { grid-row: 2; } .agrid.n1 .a-model { grid-row: 3; } .agrid.n1 .a-task { grid-row: 4; } .agrid.n1 .acard .prog { grid-row: 5; } .agrid.n1 .a-facts { grid-row: 7; margin-top: 0; } .agrid.n1 .a-foot { grid-row: 8; }
.agrid.n1 .a-recent { grid-column: 2; grid-row: 1 / -1; margin: 0; border-top: 0; border-left: .08rem solid var(--c-line); padding: .4rem 0 0 3.2rem; }
.agrid.n1 .a-recent h4 { font-size: 1.25rem; margin-bottom: .8rem; } .agrid.n1 .ar-n { min-height: 4.6rem; font-size: 1.55rem; border-top: .08rem solid var(--c-line); } .agrid.n1 .ar-n:first-of-type { border-top: 0; } .agrid.n1 .ar-n.none { border: 0; font-size: 1.45rem; line-height: 1.45; max-width: 26rem; }
.a-facts b { display: block; font-family: var(--c-font-display); font-size: 2.6rem; font-weight: 650; font-stretch: var(--c-wide); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-facts span { color: var(--t2); font-size: 1.2rem; }
.agrid.n1 .a-facts b { font-size: 3.2rem; } .agrid.n4 .a-facts b { font-size: 2rem; } .agrid.n4 .a-facts span { font-size: 1.1rem; }
.agrid.n2 .acard, .agrid.n4 .acard { display: flex; } .agrid.n1 .a-foot, .agrid.n2 .a-foot { font-size: 1.25rem; padding-top: 1.4rem; margin-top: 0; }
.a-recent { margin-top: 2.2rem; border-top: .08rem solid var(--c-line); padding-top: 1.4rem; }
.a-recent h4 { color: var(--t3); font-size: 1.15rem; font-weight: 600; margin-bottom: .4rem; }
.ar-n { display: grid; grid-template-columns: .7rem 1fr auto; align-items: center; gap: 1rem; min-height: 3.4rem; font-size: 1.4rem; } .ar-n b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ar-n span { color: var(--t3); font-size: 1.15rem; }
.ar-n.none { display: block; color: var(--t3); font-size: 1.3rem; min-height: 0; }
.agrid.n1 .acard.st-live h3::after { content: ""; display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--c-live); margin-left: 1.4rem; vertical-align: .55em; animation: beat 2.4s var(--c-ease) infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.35); } 24% { transform: scale(1); } }
/* approvals: the card takes focus first; primary and danger options need OK held (R2 M1, M2) */
.ask.full.f:focus, .ask.full.f[data-sfocus] { box-shadow: 0 0 0 .25rem var(--c-bg), 0 0 0 .6rem var(--c-focus); }
.ask-agent i { font-style: normal; margin: 0 .6rem; opacity: 1; }
.ask-hint { background: var(--c-on-ask); color: var(--c-ask); border-radius: 1.2rem; padding: .45rem 1.1rem; font-size: 1.3rem; font-weight: 650; white-space: nowrap; }
.btn.opt { position: relative; overflow: hidden; } .btn.opt > span { position: relative; z-index: 1; }
.btn.opt[data-hold]::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--c-live); transform: scaleX(0); transform-origin: left; }
.btn.opt.s-danger[data-hold]::after { background: var(--c-stuck); }
.btn.opt.holding::after { transform: scaleX(1); transition: transform 600ms linear; }
.btn.opt.holding { color: var(--c-on-signal); }
.btn.opt.nudge::before { content: "Hold OK"; position: absolute; left: 0; right: 0; bottom: .35rem; text-align: center; font-size: 1rem; font-weight: 700; letter-spacing: .04em; z-index: 1; animation: nudge 1.6s var(--c-ease) both; }
.btn.opt.nudge > span { animation: nudgeup 1.6s var(--c-ease) both; }
@keyframes nudge { 0% { opacity: 0; transform: translateY(.6rem); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes nudgeup { 0% { transform: none; } 12%, 80% { transform: translateY(-.7rem); } 100% { transform: none; } }
.btn.opt.later { overflow: visible; }

/* ---- R3 design pass (g2): short lists, one or two agents and the agent page use the screen ------------------------------ */
/* day bars: solid boxes on a hairline, today in the brand colour */
.bars { display: flex; align-items: flex-end; gap: .35rem; flex: 1; min-height: 3rem; width: 100%; border-bottom: .08rem solid var(--c-line); }
.bars i { flex: 1; min-height: .25rem; border-radius: .3rem .3rem 0 0; background: var(--c-line); } .bars i.on { background: var(--c-surface-3); } .bars i.now { background: var(--c-brand); }
.bars-x { display: flex; justify-content: space-between; width: 100%; color: var(--t3); font-size: 1.05rem; font-weight: 500; margin-top: .45rem; }
/* the calm dashboard's heartbeat fact: the time leads; the agent's name sits under it and may take two lines, never an ellipsis (M2) */
.cf.beat b { overflow: visible; text-overflow: clip; }
.cf.beat small { white-space: normal; line-height: 1.3; } .cf.beat small span { display: block; } .cf-n { color: var(--t1); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Dashboard roster with one or two agents (M2) */
.d-agents.rich { display: flex; flex-direction: column; }
.d-agents.rich .ar { padding: 1.1rem 0 1.2rem; }
.ar-l { grid-column: 2 / 4; grid-row: 4; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .8rem; margin-top: .45rem; padding-top: .7rem; border-top: .06rem solid var(--c-line); font-size: 1.2rem; min-width: 0; }
.ar-l i { font-style: normal; color: var(--t3); font-weight: 600; font-size: 1.05rem; } .d-agents.few .ar .ar-l b { font-size: 1.25rem; font-weight: 550; color: var(--t1); } .ar .ar-l span { color: var(--t3); font-size: 1.1rem; }
.d-agents.few .ar .ar-l.none b { color: var(--t3); font-weight: 450; } .ar.st-stuck .ar-l span, .ar.st-stuck .ar-f span { color: var(--t3); }
.ar-f { grid-column: 2 / 4; grid-row: 5; display: grid; grid-template-columns: auto auto 1fr; gap: 2.2rem; margin-top: .9rem; min-width: 0; }
.ar-f div { min-width: 0; } .d-agents.few .ar .ar-f b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-family: var(--c-font-display); font-stretch: var(--c-wide); font-size: 1.7rem; font-weight: 650; letter-spacing: -.015em; } .ar .ar-f span { display: block; color: var(--t3); font-size: 1.05rem; margin-top: .1rem; }
.d-spend { flex: 1; min-height: 6.5rem; display: flex; flex-direction: column; margin-top: .2rem; padding: 1.1rem 0 .5rem; border-top: .06rem solid var(--c-line); }
.ds-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; } .ds-h span { color: var(--t2); font-size: 1.15rem; font-weight: 600; } .ds-h b { color: var(--t1); font-size: 1.25rem; font-weight: 650; }
.d-spend p { color: var(--t3); font-size: 1.2rem; line-height: 1.4; max-width: 30rem; } .d-spend code, .ad-chart code { background: var(--c-surface-3); border-radius: .4rem; padding: .05em .4em; color: var(--c-ink-2); font-family: var(--c-font-code); font-size: .88em; }
.d-agents.rich.n2 .d-spend { max-height: 13rem; }
/* agent page (M3): numbers in one row, then this agent's days and its vital signs */
.facts.n4 { grid-template-columns: repeat(4, auto); justify-content: space-between; }
.ad-low { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.6rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: .08rem solid var(--c-line); }
.ad-low h4 { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; font-weight: 600; color: var(--t2); margin-bottom: 1rem; width: 100%; } .ad-low h4 span { color: var(--t3); font-weight: 500; }
.ad-chart { display: flex; flex-direction: column; min-height: 0; min-width: 0; } .ad-chart p { color: var(--t3); font-size: 1.3rem; line-height: 1.45; max-width: 26rem; }
.ad-main.st-stuck .bars, .ad-main.st-stuck .ad-low, .ad-main.st-stuck .ad-tl > div { border-color: var(--c-stuck-line, var(--c-surface-3)); } .ad-main.st-stuck .bars i { background: var(--c-surface-3); } .ad-main.st-stuck .bars i.now { background: var(--c-stuck); }
.ad-tl { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ad-tl > div { flex: 1; max-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; border-top: .06rem solid var(--c-line); } .ad-tl > h4 + div { border-top: 0; }
.ad-tl dt { color: var(--t2); font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .ad-tl dd { font-size: 1.3rem; font-weight: 600; text-align: right; white-space: nowrap; flex: none; }
.qlead { margin-top: .7rem; padding-top: .7rem; border-top: .06rem solid var(--c-line); font-size: 1.25rem; line-height: 1.5; color: var(--t2); max-height: 15rem; overflow: hidden; } .qlead > :first-child { margin-top: 0; } .qlead.digest h2, .qlead.digest h3, .qlead.digest h4 { font-size: 1.3rem; margin: .6rem 0 .2rem; } .qlead.digest p, .qlead.digest ul, .qlead.digest ol { margin: 0 0 .45rem; } .qlead a { color: inherit; text-decoration: none; font-weight: 600; }
.qrow .qlead span, .qrow .qlead strong, .qrow .qlead em, .qrow .qlead code { display: inline; font-size: inherit; margin: 0; }
.ad-side h2.sub { margin-top: 1rem; } .qrow small { display: block; color: var(--t3); font-size: 1.15rem; line-height: 1.35; margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* a short list closes with an illustrated line (L1, Action Items) */
.tail { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 1.2rem 0 0; }
.tail .estate { margin: 0; padding: 0 2rem 2rem; } .tail .estate.sm { align-items: center; gap: 2.4rem; padding: 0 2rem 1rem; } .tail .estate.sm .etext > p { max-width: 40rem; }
/* Activity with up to three entries: cards you can read from the couch */
.actf { display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.actc { display: grid; grid-template-columns: 22rem 1fr; grid-template-rows: auto 1fr; gap: .5rem 2.4rem; padding: 1.7rem 2rem 1.8rem; max-height: 19rem; overflow: hidden; }
.actf.n3 .actc { max-height: 12.5rem; } .actf.n2 .actc { max-height: 15rem; }
.actc-h { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; color: var(--t3); } .actc-h b { color: var(--t2); font-weight: 650; }
.actc-h span::before { content: "· "; }
.actc h3 { grid-column: 1; grid-row: 2; font-family: var(--c-font-display); font-stretch: var(--c-wide); font-size: 2rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; align-self: start; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.actc-b { grid-column: 2; grid-row: 1 / 3; min-height: 0; overflow: hidden; font-size: 1.4rem; line-height: 1.5; color: var(--t2); border-left: .08rem solid var(--c-line); padding-left: 2.4rem; }
.actc-b > :first-child { margin-top: 0; } .actc-b.digest h2, .actc-b.digest h3, .actc-b.digest h4 { font-size: 1.45rem; margin: .7rem 0 .2rem; } .actc-b.digest p, .actc-b.digest ul, .actc-b.digest ol { margin: 0 0 .5rem; } .actc-b a { color: inherit; text-decoration: none; font-weight: 600; }
/* Costs with a few agents: the same reports by model and by tokens */
.cmix { flex: 1; min-height: 0; padding: 1.4rem 1.5rem 1.3rem; display: flex; flex-direction: column; overflow: hidden; }
.cm { display: grid; grid-template-columns: 1fr auto 7.5rem; align-items: center; gap: .45rem 1.2rem; padding: 1rem 0 .9rem; border-top: .06rem solid var(--c-line); } .cmix h2 + .cm { border-top: 0; padding-top: .9rem; }
.cm b { font-size: 1.35rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .cm span { color: var(--t3); font-size: 1.15rem; } .cm em { font-style: normal; font-size: 1.4rem; font-weight: 650; text-align: right; } .cm .cbar { grid-column: 1 / 4; }
.cm.none { display: block; color: var(--t3); font-size: 1.25rem; }
.cmix > .cm:last-of-type, .cmix > .cm.none { margin-bottom: auto; } .ctok { flex: 1; max-height: 15rem; padding-top: 1.3rem; border-top: .06rem solid var(--c-line); } .ctk.two { grid-template-columns: repeat(2, 1fr); } .ctk.two span::before { display: none !important; }
.csplit { display: flex; gap: .3rem; height: .9rem; margin-top: 1rem; } .csplit i, .csplit em { display: block; border-radius: .3rem; min-width: .6rem; } .csplit i { background: var(--c-brand); } .csplit em { background: var(--c-live); }
.ctk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.1rem; } .ctk b { display: block; font-family: var(--c-font-display); font-stretch: var(--c-wide); font-size: 2rem; font-weight: 650; letter-spacing: -.02em; } .ctk span { color: var(--t2); font-size: 1.15rem; }
.ctk div:nth-child(1) span::before, .ctk div:nth-child(2) span::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .45rem; background: var(--c-brand); } .ctk div:nth-child(2) span::before { background: var(--c-live); }
.chart.cb { display: flex; flex-direction: column; margin-top: 1.6rem; } .chart.cb .bars { gap: .6rem; }
/* Settings on a TV: controls and the remote's keys on the left, the phone and the household on the right */
.setg { display: grid; grid-template-columns: 1.36fr 1fr; gap: 1.6rem; flex: 1; min-height: 0; }
.setg-l, .setg-r { display: flex; flex-direction: column; gap: 1.6rem; min-height: 0; min-width: 0; } .setg .sets { max-width: none; }
.keys { flex: 1; min-height: 0; padding: 1.5rem 2.2rem 1.7rem; display: flex; flex-direction: column; }
.keyg { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, 1fr); grid-auto-flow: column; gap: 0 3rem; margin-top: .6rem; min-height: 0; }
.kc { display: flex; align-items: center; gap: 1.2rem; min-height: 0; min-width: 0; border-top: .06rem solid var(--c-line); } .kc:nth-child(5n + 1) { border-top: 0; }
.kc kbd { flex: none; font-family: var(--c-font-code); font-size: 1.3rem; font-weight: 650; color: var(--t1); width: 2.5rem; height: 2.5rem; line-height: 2.25rem; text-align: center; border-radius: .6rem; box-shadow: inset 0 0 0 .1rem var(--c-line), inset 0 -.25rem 0 var(--c-line); }
.kc span { flex: 1; font-size: 1.4rem; font-weight: 600; white-space: nowrap; } .kc svg { flex: none; font-size: 1.5rem; color: var(--t3); }
.sphone { flex: 1.25; min-height: 0; padding: 1.5rem 1.8rem 1.6rem; display: flex; flex-direction: column; }
.sp-b { flex: 1; display: flex; align-items: center; gap: 2.2rem; min-height: 0; } .sp-b .eqr-code { width: 13rem; height: 13rem; } .sp-b ul { list-style: none; flex: 1; min-width: 0; }
.sp-b li { padding: .9rem 0; border-top: .08rem solid var(--c-line); } .sp-b li:first-child { border-top: 0; } .sp-b li b { display: block; font-size: 1.45rem; font-weight: 650; } .sp-b li span { color: var(--t2); font-size: 1.2rem; }
.sp-url { margin-top: auto; padding-top: 1.1rem; border-top: .08rem solid var(--c-line); } .sp-url span { display: block; color: var(--t3); font-size: 1.15rem; } .sp-url b { display: block; margin-top: .25rem; font-family: var(--c-font-display); font-stretch: var(--c-wide); font-size: 1.7rem; font-weight: 650; letter-spacing: -.01em; color: var(--c-brand); overflow-wrap: anywhere; line-height: 1.2; }
.hh { flex: 1; min-height: 0; padding: 1.5rem 1.8rem 1rem; display: flex; flex-direction: column; } .hh dl { flex: 1; display: flex; flex-direction: column; margin-top: .5rem; min-height: 0; }
.hh dl > div { flex: 1; max-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: .06rem solid var(--c-line); } .hh dl > div:first-child { border-top: 0; }
.hh dt { color: var(--t2); font-size: 1.25rem; } .hh dd { font-size: 1.35rem; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .hh dd.unset { color: var(--c-brand); }

@media (max-width: 900px) {
  html { font-size: 10px; }
  body { display: block; height: 100vh; height: 100dvh; font-size: 1.6rem; }
  #rail, #status, kbd { display: none; }
  .f:focus, .card.f:focus, .card .f:focus, .sbox .f:focus, .apv-q .f:focus, .row.f:focus, .crow.f:focus, .ask.hero.f:focus, .rl.f:focus { box-shadow: none; transform: none; }
  .card.f:focus, .card .f:focus, .row.f:focus, .crow.f:focus { background: var(--c-surface); } .d-next .row.f:focus, .row.evr.f:focus, .qrow.f:focus { background: none; }
  .btn.f:focus, .card .btn.f:focus, .sbox .btn.f:focus { transform: none; box-shadow: none; background: var(--c-surface-3); } .btn.go.f:focus, .card .btn.go.f:focus, .sbox .btn.go.f:focus { background: var(--c-brand); }
  .sg.f:focus, .card .sg.f:focus { background: none; color: var(--t2); box-shadow: none; } .sg.sel.f:focus, .card .sg.sel.f:focus { background: var(--c-ink); color: var(--c-surface); box-shadow: none; }
  .btn.opt.f:focus { background: var(--c-on-ask); color: var(--c-ask); box-shadow: none; transform: none; } .btn.opt.later.f:focus { background: none; color: var(--c-on-ask); box-shadow: inset 0 0 0 .16rem var(--c-on-ask); }
  .f:focus-visible { outline: .25rem solid var(--c-focus); outline-offset: .2rem; }
  .f:active { transform: scale(.985); }

  #tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--c-rail); border-top: .1rem solid var(--c-line); padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); justify-content: space-around; align-items: flex-end; }
  .tb { flex: 1; min-width: 4.4rem; min-height: 5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--c-ink-bg-3); font-size: 1.1rem; font-weight: 600; position: relative; border-radius: 1.2rem; }
  .tb svg { font-size: 1.6rem; } .tb.on { color: var(--c-ink-bg); } .tb.on svg { color: var(--c-brand-bg); }
  .tb em { position: absolute; top: .1rem; left: calc(50% + .6rem); font-style: normal; font-size: 1.1rem; font-weight: 700; min-width: 1.9rem; height: 1.9rem; padding: 0 .5rem; border-radius: 1rem; background: var(--c-stuck); color: var(--c-on-signal); display: flex; align-items: center; justify-content: center; }
  .tb em.gold { background: var(--c-ask); color: var(--c-on-ask); }
  .tb.mic { flex: none; width: 6rem; height: 6rem; min-height: 6rem; margin: 0 .6rem .2rem; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); } .tb.mic span { display: none; } .tb.mic svg { font-size: 1.9rem; color: var(--c-on-brand); }

  main { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-top: env(safe-area-inset-top); }
  section { height: auto; min-height: 100%; padding: 2rem 1.6rem 11rem; }
  section.on { display: block; }
  .ah { padding-right: 0; margin-bottom: 1.4rem; } .ah h1 { font-size: 3.2rem; } .ah p { font-size: 1.5rem; white-space: normal; }
  .bar { flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; min-height: 0; } .bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .bar .seg::-webkit-scrollbar { display: none; }
  .btn { min-height: 4.6rem; font-size: 1.5rem; padding: 0 1.6rem; } .btn.sm { min-height: 4.4rem; font-size: 1.4rem; }
  .sg { min-height: 4.4rem; font-size: 1.4rem; padding: 0 1rem; flex: none; } .seg { border-radius: 1.5rem; } .sg { border-radius: 1.2rem; }
  .chip { height: 2.6rem; font-size: 1.3rem; } .dot, .pdot { width: .9rem; height: .9rem; }
  .card h2, .col h2, .apv-q h2 { font-size: 1.4rem; }
  .empty { font-size: 1.6rem; } .empty.sm { font-size: 1.5rem; } .empty.big { margin-top: 2rem; font-size: 1.6rem; } .empty.big b { font-size: 2.4rem; }
  .rows { gap: .8rem; }
  .row { min-height: 6.4rem; padding: .9rem 1.4rem; gap: 0 1.1rem; }
  .row .t { font-size: 1.65rem; white-space: normal; } .row .t small { font-size: 1.35rem; white-space: normal; } .row .when { font-size: 1.35rem; white-space: normal; } .row .tag { font-size: 1.25rem; }
  .row.it, .row.act { grid-template-columns: .9rem 7.6rem 1fr; } .row.it .tag, .row.act .tag { display: none; }
  svg.spark { width: 7rem; height: 2.4rem; }

  .d-top { flex-wrap: wrap; height: auto; gap: .4rem 1.4rem; margin-bottom: 1.8rem; padding-right: 0; align-items: flex-end; }
  .d-clock { font-size: 7.2rem; } .d-date b { font-size: 2rem; } .d-date span { font-size: 1.6rem; }
  .d-wx { margin-left: 0; width: 100%; padding: 1rem 0 0; min-height: 4.4rem; } .d-wx svg { font-size: 2rem; } .d-wx b { font-size: 3.2rem; } .d-wx span { font-size: 1.5rem; } .d-wx small { font-size: 1.35rem; }
  .d-grid, .d-main, .d-side { display: block; } .d-main > *, .d-side > * { margin-bottom: 1.4rem; }
  .d-next .row { min-height: 6rem; grid-template-columns: .9rem 7.6rem 1fr; padding: .6rem .8rem; }
  .d-agents { overflow: visible; } .ar { grid-template-columns: .9rem 1fr auto; height: auto; min-height: 5rem; padding: .7rem 0; font-size: 1.55rem; } .ar span { grid-column: 2; grid-row: 2; font-size: 1.35rem; white-space: normal; } .ar small, .ar em { grid-row: 1 / span 2; grid-column: 3; font-size: 1.35rem; } .ar em { min-width: 2.4rem; height: 2.4rem; }
  .ar.st-stuck span { color: var(--c-stuck); }
.ar.more { font-size: 1.35rem; }
  .d-minis { gap: 1rem; } .mini { height: 11.5rem; padding: 1.2rem; } .mini .big { font-size: 1.9rem; } .mini .lbl { font-size: 1.25rem; } svg.ring { width: 2.8rem; height: 2.8rem; }
  .calm { padding: 2rem; min-height: 20rem; } .calm-t { font-size: 3rem; } .calm-s { font-size: 1.6rem; } .calm-c { margin-top: 2rem; } .calm-c svg { width: 10rem; }
  .pairtv strong { color: var(--t1); font-weight: 650; } .pairtv a.btn { text-decoration: none; }
  .card.nudge { padding: 1.6rem; } .card.nudge b { display: block; font-size: 1.7rem; font-weight: 650; } .card.nudge span { color: var(--t2); font-size: 1.45rem; } .nudge-b { display: flex; gap: .8rem; margin-top: 1.2rem; } .nudge-b .btn { flex: 1; padding: 0 .8rem; }

  .ask { padding: 2rem 2rem 2rem; border-radius: 2.2rem; } .ask-meta { font-size: 1.45rem; }
  .ask.hero.long .ask-title, .ask.full.long .ask-title, .ask-title, .ask.full .ask-title { font-size: 2.9rem; -webkit-line-clamp: 4; margin-top: 1rem; } .ask-detail, .ask.full .ask-detail { font-size: 1.6rem; -webkit-line-clamp: 5; margin-top: .8rem; }
  .ask.full { height: auto; padding: 2rem; } .ask.hero { min-height: 21rem; } .ask-foot { font-size: 1.4rem; padding-top: 1.6rem; }
  .ask-opts { gap: .8rem; padding-top: 1.8rem; } .btn.opt { min-height: 5.2rem; min-width: 0; flex: 1 1 40%; font-size: 1.7rem; padding: 0 1rem; white-space: normal; }
  .ask-stamp { font-size: 2.8rem; }
  .snap { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.6rem 1.4rem; padding: 0 1.6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .snap::-webkit-scrollbar { display: none; }
  .snap .ask { flex: 0 0 88%; scroll-snap-align: center; } .snap .ask:only-child { flex-basis: 100%; }
  .asklist { display: flex; flex-direction: column; gap: 1.4rem; }
  .agrid, .adetail, .costs, .cal, .week, .shipgrid, .wgrid, .ngrid, .rgrid, .plants, .apv { display: flex; flex-direction: column; gap: 1.2rem; }
  .acard { padding: 1.6rem; } .acard h3 { font-size: 2.2rem; } .a-model { font-size: 1.3rem; } .a-task { font-size: 1.55rem; } .a-cost { font-size: 1.6rem; } .a-foot { font-size: 1.3rem; } .acard .prog { margin-top: 1.2rem; }
  .ad-main { padding: 1.8rem; } .ad-role { font-size: 1.45rem; } .ad-task { font-size: 2.3rem; } .facts { margin-top: 1.8rem; gap: 1.4rem 1rem; } .facts b { font-size: 2rem; } .facts span { font-size: 1.3rem; } .ad-spark small, .ad-pct { font-size: 1.3rem; }
  .ad-side { padding: 1.4rem .8rem; overflow: visible; } .qrow { padding: 1rem .8rem; min-height: 4.8rem; } .qrow b { font-size: 1.3rem; } .qrow span { font-size: 1.55rem; }
  .ctot { padding: 1.6rem; } .cseg .seg { display: flex; } .cseg .sg { flex: 1; } .cbig { font-size: 5.6rem; } .clbl { font-size: 1.5rem; } .cother { font-size: 1.3rem; } .cother b { font-size: 1.8rem; } .chart { height: 16rem; flex: none; } svg.area text { font-size: 17px; }
  .crow { grid-template-columns: 1fr auto 7.5rem; padding: 1.2rem 1.4rem; min-height: 6.4rem; max-height: none; } .ct { font-size: 1.3rem; } .cn b { font-size: 1.6rem; } .cn small { font-size: 1.3rem; } .ca { font-size: 1.7rem; }
  .setup { padding: 1.8rem; } .setup h2 { font-size: 2.4rem; } .setup .lead { font-size: 1.55rem; } .setup li b { font-size: 1.65rem; } .setup li span { font-size: 1.45rem; } .setup code { font-size: 1.15rem; white-space: pre-wrap; word-break: break-all; }
  .today { padding: 1.4rem .8rem; } .row.evr { grid-template-columns: 7rem 1fr auto; min-height: 5.6rem; } .hintline { font-size: 1.3rem; padding-top: 1.2rem; }
  .day { padding: 1.4rem; } .day h3 { font-size: 1.6rem; } .ev { font-size: 1.5rem; padding: .45rem 0; white-space: normal; }
  .mapcard { height: 26rem; flex: none; } #smapcap b { font-size: 1.5rem; } #smapcap span { font-size: 1.3rem; } .row.ship .eta { font-size: 1.55rem; }
  .wnow { padding: 0; } .wnow > svg { font-size: 4rem; } .wtemp { font-size: 11rem; } .wtext { font-size: 2.2rem; } .wfacts { gap: 2rem; font-size: 1.3rem; margin-top: 1.8rem; flex-wrap: wrap; } .wfacts b { font-size: 2rem; }
  .wside { min-width: 0; width: 100%; } .wcurve { padding: 1.4rem 1rem .4rem; overflow-x: auto; max-width: 100%; } .wcurve svg { min-width: 62rem; } .wcurve .tv { font-size: 26px; } .wcurve .th { font-size: 22px; } .wcurve .tr { font-size: 20px; }
  .wdays { padding: 1.2rem 1.4rem .6rem; } .wd { grid-template-columns: 8.5rem 2.2rem 1fr 3rem 6rem 3rem; height: 4.8rem; font-size: 1.5rem; gap: 0 .8rem; } .wd .wt { display: none; } .wd .wr { font-size: 1.3rem; }
  .addnote, .vform { display: flex; gap: .8rem; margin-bottom: 1.4rem; } .addnote input, .vform input { flex: 1; min-width: 0; min-height: 4.8rem; font-size: 1.6rem; background: var(--c-surface); }
  .note { padding: 1.6rem; } .nt { font-size: 1.8rem; -webkit-line-clamp: 8; } .nseen { font-size: 1.3rem; }
  .col { margin-bottom: 1rem; } .row.rt { grid-template-columns: 3rem 1fr auto; min-height: 6.6rem; } .chk { width: 3rem; height: 3rem; } .hist { display: none; } .row.rem { grid-template-columns: 7.6rem 1fr; }
  .pnote { font-size: 1.35rem; } .plant { padding: 1.6rem; } .plant h3 { font-size: 2.2rem; margin-top: 1rem; } .plant .where, .win { font-size: 1.3rem; } .plant .days { font-size: 5rem; margin-top: 1.4rem; } .plant .days small { font-size: 1.35rem; } .how { font-size: 1.5rem; margin-top: 1.2rem; -webkit-line-clamp: 6; } .pbtns { padding-top: 1.4rem; }
  .sets { padding: .2rem 1.6rem; } .set { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.5rem 0; } .set b { font-size: 1.7rem; } .set span { font-size: 1.45rem; } .setc .seg { display: flex; width: 100%; } .setc .sg { flex: 1; } .setc .btn { width: 100%; } .sets .seg { background: var(--c-bg); }
  .foot .btn { width: 100%; }

  #sheet { align-items: flex-end; background: rgba(3, 5, 12, .74); } /* a phone has no video plane, so a see-through scrim is safe here */ @keyframes sheetin { from { transform: translateY(3rem); opacity: 0; } to { transform: none; opacity: 1; } }
  .sbox { width: 100%; max-width: none; max-height: 92vh; overflow-y: auto; border-radius: 2.4rem 2.4rem 0 0; padding: 2.4rem 1.8rem calc(2rem + env(safe-area-inset-bottom)); }
  #login .sbox { border-radius: 2.4rem; }
  .kick { font-size: 1.4rem; } .sbox h1 { font-size: 2.6rem; } .sbox.long h1 { font-size: 2.1rem; -webkit-line-clamp: 8; } .sline { font-size: 1.6rem; }
  .sacts { flex-direction: column; flex-wrap: nowrap; } .sacts .btn { width: 100%; min-height: 5rem; font-size: 1.6rem; } .digest { font-size: 1.55rem; line-height: 1.45; color: var(--t2); } .digest h2, .digest h3, .digest h4 { font-size: 1.7rem; color: var(--t1); margin: 1rem 0 .4rem; } .digest p, .digest ul, .digest ol, .digest blockquote { margin: .5rem 0; } .digest ul, .digest ol { padding-left: 2rem; } .digest strong { color: var(--t1); } .digest a { color: var(--c-brand); } .digest blockquote { border-left: .3rem solid var(--c-line); padding-left: 1rem; }
.sbox.more .sacts { display: grid; gap: .8rem; } .sbox.more .btn { min-height: 5.6rem; }
  .vwrap { text-align: center; } .vmic { width: 9.6rem; height: 9.6rem; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); display: inline-flex; align-items: center; justify-content: center; margin: 1rem 0 1.4rem; position: relative; } .vmic svg { font-size: 2.6rem; }
  .vmic.off { background: var(--c-surface-3); color: var(--c-ink-3); } .vmic.on { background: var(--c-ask); color: var(--c-on-ask); }
  @keyframes listen { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
  .vmic.on::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: .3rem solid var(--c-ask); animation: listen 1.2s ease-out infinite; }
  .vtext { min-height: 4.6rem; font-size: 1.8rem; font-weight: 550; line-height: 1.35; margin-bottom: 1.6rem; } .vq { display: block; color: var(--t2); font-size: 1.5rem; font-weight: 450; }
  .vform { text-align: left; } .vform input { background: var(--c-bg); } .vex { color: var(--t3); font-size: 1.4rem; line-height: 1.4; margin-bottom: .4rem; }
  #timer { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.8rem; text-align: center; }
  .tring { width: 24rem; height: 24rem; margin: 0 auto 2rem; } .count { font-size: 6rem; } .count.reps { font-size: 2.6rem; padding: 0 3rem; }
  #timer h1 { font-size: 3rem; } .cue { font-size: 1.6rem; } .tprog { font-size: 1.4rem; } .ctrls { justify-content: center; } .ctrls .btn { min-width: 0; flex: 1; min-height: 5rem; }
  @keyframes bannerin { from { opacity: 0; transform: translateY(-1.2rem); } to { opacity: 1; transform: none; } }
  #banner { left: 1rem; right: 1rem; bottom: auto; top: calc(1rem + env(safe-area-inset-top)); transform: none; max-width: none; font-size: 1.5rem; } #banner .a { font-size: 1.4rem; } .bico { width: 3.6rem; height: 3.6rem; } .bico svg { font-size: 1.4rem; }
  /* first run on the phone (D1) */
  .estate, .estate.sm { flex-direction: column; align-items: flex-start; gap: 1.4rem; margin: 1.2rem 0 0; padding: 1.8rem; background: var(--c-surface); border-radius: var(--c-r-l); max-width: none; }
  .estate .eart, .estate.sm .eart { width: 7rem; height: 7rem; } .estate .etext > b, .estate.sm .etext > b { font-size: 2.3rem; } .estate .etext > p, .estate.sm .etext > p { font-size: 1.55rem; }
  .d-next .estate.sm { background: none; padding: .6rem .6rem 1rem; }
  .ecta { margin-top: 1.4rem; width: 100%; }
  .echips .btn.sm { min-height: 4.4rem; }
  .setup { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; } .setup > .eart { width: 7rem; height: 7rem; } #s-agents > .setup { padding: 1.8rem; } #s-agents > .setup h2 { font-size: 2.4rem; } #s-agents > .setup > .eart { width: 7rem; height: 7rem; } #s-agents > .setup .lead { font-size: 1.55rem; }
  .calm-f { grid-template-columns: 1fr; margin-top: 1.8rem; padding-top: .4rem; } .cf, .cf + .cf { padding: 1rem 0; border-left: 0; border-top: .08rem solid var(--c-line); display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 1rem; } .cf:first-child { border-top: 0; }
  .cf-k { font-size: 1.3rem; } .cf b { font-size: 2rem; margin: 0; grid-column: 2; grid-row: 1; text-align: right; } .cf small { grid-column: 1 / 3; font-size: 1.3rem; }
  .a-facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .ask-hint { display: none; }
}
@media (max-width: 900px) { /* g2: the R3 additions on a phone */
  .facts.n4 { grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
  .ad-low { display: flex; flex-direction: column; gap: 1.8rem; margin-top: 1.8rem; } .ad-low h4 { font-size: 1.35rem; } .ad-chart .bars { flex: none; height: 9rem; } .bars-x { font-size: 1.2rem; }
  .ad-tl > div { flex: none; max-height: none; min-height: 4.6rem; } .ad-tl dt { font-size: 1.35rem; white-space: normal; } .ad-tl dd { font-size: 1.4rem; }
  .qrow small { font-size: 1.3rem; }
  .cmix { flex: none; overflow: visible; padding: 1.4rem; } .cm b { font-size: 1.5rem; } .cm span { font-size: 1.3rem; } .cm em { font-size: 1.55rem; } .ctok { margin-top: 1.4rem; } .ctk span { font-size: 1.3rem; }
  .chart.cb .bars { flex: 1; }
  .cf.beat small { -webkit-line-clamp: 3; }
}
@media (min-width: 901px) { .vwrap .vmic, .card.nudge { display: none; } .vform { display: flex; gap: .8rem; margin-top: 1rem; } .vform input { flex: 1; } .vtext, .vex { color: var(--t2); font-size: 1.4rem; margin-top: .6rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------------------------------
   Field Notes (optional look, THEMES.md): a 1969 outdoors magazine. Walnut desk, paper cards, ink.
   Same structure and navigation as the default; only tokens, type and a little print furniture change.
   ------------------------------------------------------------------------------------------ */
@font-face { font-family: "FN Display"; src: url("fonts/fn-display.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "FN Schola"; src: url("fonts/fn-schola.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "FN Franklin"; src: url("fonts/fn-franklin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
[data-theme="fieldnotes"] {
  --c-bg: #2a1f17; --c-rail: #1b140e; --c-surface: #f5ecd9; --c-surface-2: #fff9ea; --c-surface-3: #e6d7b3; --c-line: #d4c9b3;
  --c-ink: #1f1a14; --c-ink-2: #5a5140; --c-ink-3: #756a55; --c-ink-bg: #f5ecd9; --c-ink-bg-2: #cdbd9c; --c-ink-bg-3: #a8977a;
  --c-brand: #1263a6; --c-brand-bg: #f1d14a; --c-brand-dim: #c9dbe8; --c-on-brand: #f8f5ec;
  --c-ask: #f1d14a; --c-on-ask: #1f1a14; --c-live: #2f4a35; --c-idle: #8a7f69; --c-stuck: #c02e1e; --c-stuck-surface: #f3d9cf; --c-on-signal: #f8f5ec;
  --c-focus: #f1d14a; --c-focus-in: #1f1a14;
  --c-map-sea: #dfe6dc; --c-map-land: #f5ecd9; --c-map-line: #b9ad93;
  --c-r-s: .25rem; --c-r-m: .35rem; --c-r-l: .45rem; --c-r-xl: .55rem;
  --c-font: "FN Schola", "Century Schoolbook", Georgia, serif; --c-font-display: "FN Display", "Roboto Serif", Georgia, serif; --c-font-label: "FN Franklin", "Franklin Gothic Medium", Arial, sans-serif; --c-wide: 100%;
}
[data-theme="fieldnotes"] body { font-weight: 400; }
[data-theme="fieldnotes"] .ah h1, [data-theme="fieldnotes"] .d-clock, [data-theme="fieldnotes"] .brand { color: var(--c-ask); font-weight: 900; letter-spacing: 0; }
[data-theme="fieldnotes"] .ask-title, [data-theme="fieldnotes"] .calm-t, [data-theme="fieldnotes"] .cbig, [data-theme="fieldnotes"] .wtemp, [data-theme="fieldnotes"] .plant .days, [data-theme="fieldnotes"] .count, [data-theme="fieldnotes"] .mini .big, [data-theme="fieldnotes"] .facts b, [data-theme="fieldnotes"] .d-wx b { font-weight: 900; letter-spacing: 0; }
[data-theme="fieldnotes"] .rl, [data-theme="fieldnotes"] .chip, [data-theme="fieldnotes"] .row .when, [data-theme="fieldnotes"] .row .tag, [data-theme="fieldnotes"] .card h2, [data-theme="fieldnotes"] .col h2, [data-theme="fieldnotes"] .apv-q h2, [data-theme="fieldnotes"] .kick, [data-theme="fieldnotes"] .ask-meta, [data-theme="fieldnotes"] .pager, [data-theme="fieldnotes"] .tb { font-family: var(--c-font-label); }
[data-theme="fieldnotes"] .card h2, [data-theme="fieldnotes"] .apv-q h2, [data-theme="fieldnotes"] .kick { color: var(--c-stuck); font-weight: 700; }
[data-theme="fieldnotes"] .col h2 { color: var(--c-ask); }
[data-theme="fieldnotes"] .rl.on, [data-theme="fieldnotes"] .rl.f:focus { background: #3a2c20; color: var(--c-ink-bg); }
[data-theme="fieldnotes"] .ar, [data-theme="fieldnotes"] .wd, [data-theme="fieldnotes"] .set { border-top-style: dotted; border-top-width: .12rem; }
[data-theme="fieldnotes"] .sg.sel, [data-theme="fieldnotes"] .sg.sel.f:focus { background: var(--c-ink); color: var(--c-surface); }
[data-theme="fieldnotes"] .sets .seg { background: var(--c-surface-3); }
[data-theme="fieldnotes"] .btn.opt.f:focus { background: var(--c-stuck); color: #f8f5ec; }
[data-theme="fieldnotes"] .setup code { background: var(--c-surface-3); color: var(--c-ink); }
[data-theme="fieldnotes"] .empty code { background: #3a2c20; }
[data-theme="fieldnotes"] #sheet { background: #1b140e; }
[data-theme="fieldnotes"] #login input, [data-theme="fieldnotes"] .addnote input, [data-theme="fieldnotes"] .vform input { background: var(--c-surface-2); color: var(--c-ink); }
[data-theme="fieldnotes"] .tring circle { stroke: #3a2c20; } [data-theme="fieldnotes"] .tring circle.p { stroke: var(--c-ask); } [data-theme="fieldnotes"] #timer .kick { color: var(--c-ask); }
[data-theme="fieldnotes"] .dot.live::after { display: none; }
/* after sunset the paper goes dark so the room stays dim */
[data-theme="fieldnotes"][data-night] { --c-bg: #0f1219; --c-rail: #0a0c11; --c-surface: #1c2535; --c-surface-2: #263247; --c-surface-3: #2f3b52; --c-line: #34405a;
  --c-ink: #dcd3bd; --c-ink-2: #a9a18c; --c-ink-3: #8a8470; --c-ink-bg: #dcd3bd; --c-ink-bg-2: #a9a18c; --c-ink-bg-3: #8a8470;
  --c-brand: #7fb0d8; --c-brand-dim: #24364c; --c-on-brand: #0f1219; --c-ask: #c9ad48; --c-brand-bg: #c9ad48; --c-live: #7fa37f; --c-stuck: #c9785a; --c-stuck-surface: #33262a; --c-on-signal: #0f1219;
  --c-focus: #c9ad48; --c-focus-in: #dcd3bd; --c-map-sea: #0f1219; --c-map-land: #1c2535; --c-map-line: #34405a; }
[data-theme="fieldnotes"][data-night] .rl.on, [data-theme="fieldnotes"][data-night] .rl.f:focus { background: #1c2535; }
[data-theme="fieldnotes"][data-night] #sheet { background: #0a0c11; }
