:root {
  --ground: #F5F6F3;
  --surface: #FFFFFF;
  --sunk: #ECEEEA;
  --ink: #16202B;
  --ink-2: #4A5563;
  --ink-3: #7D8794;
  --rule: #D9DEDF;
  --accent: #2447C9;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4E9FA;
  --rec: #C2352B;
  --rec-soft: #FBE6E4;
  --ok: #1D7C3A;
  --ok-soft: #E3F2E7;
  --warn: #9A5B00;
  --warn-soft: #FBEFD9;
  --next: #FFF4BF;
  --next-edge: #C79A00;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --pm: #F59E0B; --pm-ink: #1A1206; }
  :root {
    --ground: #11161C; --surface: #19202A; --sunk: #0D1116;
    --ink: #E6EAEE; --ink-2: #B3BCC6; --ink-3: #87919C; --rule: #2B3440;
    --accent: #8FA6FF; --accent-ink: #0D1116; --accent-soft: #232D52;
    --rec: #F08A7E; --rec-soft: #3A1F1C; --ok: #6FCB8A; --ok-soft: #173222;
    --warn: #E7B45C; --warn-soft: #3A2C12;
    --next: #3B3610; --next-edge: #E3C44F;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.6 var(--font-sans); display: flex; flex-direction: column; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font: 0.9em var(--font-mono); background: var(--sunk); padding: 1px 5px; border-radius: 3px; }
.muted { color: var(--ink-3); font-size: 14px; }
.eyebrow { font: 600 12px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }

/* The bar */
.bar { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-inline: 20px; padding-block: 12px; border-bottom: 1px solid var(--rule); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-right: 16px; }
.mark { font: 600 22px/1 var(--font-cond); letter-spacing: -.01em; }
.brand .mark::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 7px; vertical-align: -3px; background: var(--accent); -webkit-mask: url(logo.svg) center / contain no-repeat; mask: url(logo.svg) center / contain no-repeat; }
.biz { font: 500 13px var(--font-mono); color: var(--ink-3); }
.tabs { display: flex; gap: 2px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 12px; font: 600 13px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.count { font: 500 11px var(--font-mono); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 6px; margin-left: 4px; letter-spacing: 0; }
.who { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.link { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; font-size: 14px; }

main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.view { flex: 1; min-height: 0; }

/* Sign in */
.signin { max-width: 520px; width: 100%; margin: 0 auto; padding-inline: 20px; padding-block: 12vh 40px; }
.signin h1 { font: 600 32px/1.15 var(--font-cond); margin: 0 0 24px; text-wrap: balance; }
.newhere { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); display: grid; gap: 12px; justify-items: start; }
.newhere p { margin: 0; }
.newhere .outline { display: inline-block; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 10px 20px; font-weight: 500; text-decoration: none; }
.newhere .outline:hover { background: var(--accent); color: var(--accent-ink); }
.people { display: grid; gap: 8px; }
.people button { text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; }
.people button:hover { border-color: var(--accent); }
.people .t { color: var(--ink-3); font-size: 14px; }

/* Teach */
/* The conversation is on the left and takes the room; the brain taking shape is one column on
   the right. The board is not beside the chat any more: what happens on it is said in the
   conversation (Mike, 5 Oct 2026). At 30vw a laptop reaches the same 520px a big monitor gets; a
   quarter of the screen left it too narrow there (Mike, 7 Oct 2026). */
.teach { --side: clamp(425px, 37.5vw, 650px); display: flex; width: 100%; min-height: 0; }
.talk { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* The scroll runs the full width, so its bar sits at the edge; the words keep a readable column. */
.talk > .log, .talk > .composer, .talk > .boardbar { padding-inline: max(26px, calc((100% - 1120px) / 2)); }
.beside { position: relative; flex: 0 0 var(--side); min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border-left: 1px solid var(--rule); background: var(--surface); font-size: 13.5px; }
.bhead { display: grid; gap: 8px; padding: 14px 20px 12px; border-bottom: 1px solid var(--rule); }
/* One line of figures, the brain's then the work's, each wrapping on its own when there is no room. */
.bfigs { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.bfigs .pstats { display: contents; }
.bhead .phappened { margin: 0; }
.sidepage > .pnudge { margin: 0 0 16px; }
/* The note about their page, beside the link to it. It floats, so it takes no room in the panel. */
.ptipwrap { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 8px; }
.ptipbtn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent); background: none; color: var(--accent); font: 700 11px/1 var(--font-sans); text-transform: none; letter-spacing: 0; padding: 0; cursor: pointer; }
.ptipbtn:hover, .ptipbtn[aria-expanded="true"] { background: var(--accent); color: var(--surface); }
.ptip { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(300px, 78vw); padding: 10px 12px; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); font: 400 12.5px/1.45 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ptip[hidden] { display: none; }
.ptipbtn:hover + .ptip[hidden], .ptipbtn:focus-visible + .ptip[hidden] { display: block; }
/* An answer that moved nothing on the board says so quietly, and says how long it has been still. */
.phappened.still { background: var(--sunk); color: var(--ink-2); }
/* Offered, never filed. The person's own page is what they approve and correct, so it sits
   beside the conversation and fills as they teach. A page nobody reads is a page nobody
   corrects, and the whole consent contract rests on them having read it. */
.sidepage { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 18px 20px 40px; }
.sidepage > .ph:first-of-type { margin-top: 0; justify-content: space-between; }
/* Section labels: small, spaced capitals, so the eye finds the sections before the words. */
.ph { font: 700 11px/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pstats div { display: grid; }
.pstats b { font: 600 20px/1.1 var(--font-cond); color: var(--ink); font-variant-numeric: tabular-nums; }
.pstats span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.phappened { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; }
.pbutton { width: 100%; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--accent); font-weight: 600; font-size: 13.5px; }
.pbutton:hover { border-color: var(--accent); }
.pnudge { margin: 10px 0 0; padding: 8px 10px; border: 1px dashed var(--accent); border-radius: 8px; font-size: 12.5px; color: var(--ink-2); }
.pempty { margin: 0; font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.ptime { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ptime th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 0 0 4px; }
.ptime td { padding: 5px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.ptime th:last-child, .ptime td:last-child { text-align: right; padding-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pwork { display: block; font-size: 11px; color: var(--ink-3); }
/* The working is a whole taught line. Three lines of it is enough beside the conversation. */
.ptime .pbasis { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pnone { color: var(--ink-3); font-size: 11.5px; font-style: italic; }
.tnone { grid-column: 2 / 4; text-align: right; }
.ptotal td { font-weight: 700; border-top: 2px solid var(--ink); }
/* The brain taking shape: each piece of work an onion of layers, systems between them, and what the
   last answer added in green. */
.shape svg { display: block; width: 100%; height: auto; margin: 0 0 6px; }
.shape .pad { fill: var(--surface); }
.shape .ring { fill: none; stroke: var(--rule); }
.shape .ring.met { stroke: var(--accent); }
.shape .core { fill: var(--rule); }
.shape .core.met { fill: var(--accent); }
.shape .kid { fill: var(--accent); stroke: var(--accent); stroke-width: 1; }
.shape .kid.fresh { stroke: var(--ok); animation: shapepulse 1.1s ease-in-out 4; }
.shrow.kid { padding-left: 14px; }
.shrow.kid .shname { color: var(--ink-2, var(--ink)); }
/* The business itself, at the centre, in ink: a different thing from a piece of work. */
.shape .ring.biz.met { stroke: var(--ink); }
.shape .core.biz.met { fill: var(--ink); }
.shape .bizlab { font-weight: 600; }
.shape .ring.kept { stroke: var(--ink); stroke-opacity: .45; stroke-dasharray: 2 2.5; }
.pip.kept { background: none; outline: 1px dashed var(--ink); outline-offset: -1px; opacity: .55; }
.shmoney .shname { font-weight: 600; }
.pip.biz.met { background: var(--ink); }
.shbiz .shname { font-weight: 600; }
.shape .syn { stroke: var(--ink-3); stroke-width: 1; stroke-opacity: .28; }
.shape .syn.shared { stroke-opacity: .55; }
.shape .sys { fill: #17908A; fill-opacity: .55; }
.shape .sys.shared { fill-opacity: 1; }
.shape .then { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 3; }
.shape .thenhead { fill: var(--accent); }
.shape text { font: 11px var(--font-sans); fill: var(--ink); text-anchor: middle; }
.shape text .n, .shape .slab { fill: var(--ink-3); font-size: 9.5px; }
/* Touched, a node lights what it is joined to and the rest falls back, as on the brain tab's graph. */
.shape .sn, .shrow[data-node] { cursor: pointer; transition: opacity .15s; }
.shape .syn, .shape .then { transition: opacity .15s; }
.shape .dim { opacity: .16; }
.shape .syn.hot { stroke: var(--accent); stroke-opacity: 1; stroke-width: 1.8; }
.shape .then.hot { stroke-width: 2.2; }
.shape .slab.hov { display: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.shape .sn.near .slab { display: block; fill: var(--ink); }
/* The whole business, past twelve pieces of work: a name is shown when its piece of work is touched. */
.shape svg.many text.wl { display: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; font-size: 13px; }
.shape svg.many .sn.near text.wl, .shape svg.many .sn:hover text.wl, .shape svg.many .sn:hover .slab { display: block; }
.shape svg.many .slab { font-size: 11.5px; }
.shape .sn.near .sys { fill-opacity: 1; }
.shrow.near .shname { color: var(--accent); font-weight: 600; }
.shape .ring.fresh, .shape .syn.fresh { stroke: var(--ok); stroke-opacity: 1; animation: shapepulse 1.1s ease-in-out 4; }
@keyframes shapepulse { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .shape .fresh { animation: none; } }
.shapenew { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; }
.shrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 5px 0; border-top: 1px solid var(--rule); font-size: 12.5px; }
.shrow .shname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shrow .shnext { grid-column: 1 / 3; font-size: 11px; color: var(--ink-3); }
.pip { display: inline-block; width: 7px; height: 7px; margin-left: 2px; border-radius: 2px; background: var(--sunk); }
.pip.met { background: var(--accent); }
.pip.fresh { background: var(--ok); }
.shapekey { margin: 8px 0 0; font-size: 11px; color: var(--ink-3); }
.pbar { height: 5px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--ok); transition: width .5s ease; }
.pbarnote { margin: 8px 0 8px; font-size: 12.5px; color: var(--ink-2); }
.prd { display: grid; grid-template-columns: 18px 1fr; gap: 4px; padding: 3px 0; font-size: 12.5px; }
.prd .pmark { color: var(--ink-3); }
.prd.met .pmark { color: var(--ok); font-weight: 700; }
.prd:not(.met) .plabel { font-weight: 600; }
.prd.met .plabel { color: var(--ink-2); }
.pwhy { display: block; color: var(--ink-3); font-size: 12px; }
.pq { border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; margin: 0 0 10px; font-size: 13px; }
.pfor { display: block; font-size: 11.5px; color: var(--ink-3); }
.pout { display: block; font-size: 12px; color: var(--ok); }
.badge { font: 700 9.5px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; vertical-align: 1px; white-space: nowrap; }
.badge.shared { background: var(--ok-soft); color: var(--ok); }
.badge.mine { background: var(--warn-soft); color: var(--warn); }
.badge.view { background: var(--sunk); color: var(--ink-2); margin-left: 4px; }
.pact { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 5px 0; font-size: 13px; }
.ptick { width: 18px; height: 18px; margin-top: 2px; padding: 0; border: 1.5px solid var(--ink-3); border-radius: 4px; background: var(--surface); font-size: 12px; line-height: 1; color: var(--accent-ink); }
.pact.done .ptick { background: var(--ok); border-color: var(--ok); }
.pact.did_not_get_to_it .ptick, .pact.changed .ptick { color: var(--ink-3); }
.pact:not(.open) .ptext { text-decoration: line-through; color: var(--ink-3); }
.pdone summary { cursor: pointer; font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; margin: 4px 0; }
.paddform { display: grid; grid-template-columns: minmax(0, 1fr) 88px auto; gap: 6px; margin-top: 8px; }
.paddform input { min-width: 0; border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; font: 13px var(--font-sans); background: var(--surface); color: var(--ink); }
.psys { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.psys .badge { margin: 3px 0 0; }
.psys:last-child { border-bottom: 0; }
.plearn { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; line-height: 1.45; }
.plearn:last-child { border-bottom: 0; }
.pfoot { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 10px; }
.pfoot .note { margin: 6px 0 0; }
.sheetclose, .learnedbtn { display: none; }
.sbwhole { font: 500 12px var(--font-sans); letter-spacing: 0; text-transform: none; }
.sbgoal { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-2); }
.sbgoal:empty, .sideboard .note:empty { display: none; }
.sbh { font: 600 12.5px/1.2 var(--font-sans); color: var(--ink-2); margin: 16px 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.sbinits { display: grid; gap: 6px; }
.sbinit { width: 100%; padding: 9px 10px; border-radius: 10px; font-size: 13px; }
.sideboard .sbcol { background: none; padding: 0; min-height: 34px; border-radius: 8px; }
.sideboard .sbcol .bdcard { padding: 8px 10px; font-size: 13px; }
.sbcol .bdtitle { -webkit-line-clamp: 3; }
.sbcol details summary { cursor: pointer; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.sbothers { margin: 14px 0 0; }
.sblate { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; width: 100%; text-align: left; padding: 5px 0; border: 0; border-top: 1px solid var(--rule); background: none; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.sblate:hover { color: var(--ink); }
.sblate b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbwhat { display: block; color: var(--ink-3); }
.sbwhen { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sbnext { display: grid; gap: 2px; margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--rule); font-size: 12.5px; }
.sbnextstep { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* What a card is waiting on, in a line, so a board that is standing still says why. */
.bdwaits { font-size: 12px; line-height: 1.35; color: var(--warn); }
.bdnum { justify-self: end; margin-top: -2px; font-size: 11px; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* Whatever changed since the board was last drawn, in green, like the layers of the brain. */
.bdcard.fresh, .bdinit.fresh { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft); animation: shapepulse 1.1s ease-in-out 3; }
#sp-actions + .paddform { margin-bottom: 4px; }
#tl-addform, #tl-sh-form { margin: 8px 0 12px; }
/* The Calendar tab's other views: a colleague's week as bars shaded where they are busy, and the
   times open for bookings with the link to send (`booking.py`). */
#cal-views { margin-bottom: 12px; }
#av-who { max-width: 100%; border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; font: 13px var(--font-sans); background: var(--surface); color: var(--ink); }
.av-scale, .av-day { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start; }
.av-scale > div { position: relative; height: 16px; }
.av-scale i { position: absolute; transform: translateX(-50%); font: normal 10.5px/1 var(--font-sans); color: var(--ink-3); white-space: nowrap; }
.av-scale i:first-child { transform: none; } .av-scale i:last-child { transform: translateX(-100%); }
.av-day { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.av-day > span { font: 600 12.5px/22px var(--font-sans); color: var(--ink-2); }
.av-day small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.av-bar { position: relative; height: 22px; border-radius: 5px; background: var(--ok-soft); overflow: hidden; }
.av-bar b { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .85; min-width: 2px; }
.av-day.off .av-bar { background: var(--rule); } .av-day.off > span { color: var(--ink-3); }
#av-body .note, #bk-body .note { margin: 10px 0; font-size: 12.5px; color: var(--ink-3); }
#bk-body .eyebrow { margin: 16px 0 8px; } #bk-body .eyebrow:first-child { margin-top: 0; }
.bk-days { display: flex; gap: 6px; }
.bk-days button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-3); font: 600 12.5px/1 var(--font-sans); cursor: pointer; }
.bk-days button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.bk-row { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 12px 0 10px; font-size: 13px; color: var(--ink-2); }
.bk-row input, .bk-row select, .bk-link input { border: 1px solid var(--rule); border-radius: 6px; padding: 5px 7px; font: 13px var(--font-sans); background: var(--surface); color: var(--ink); }
.bk-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.bk-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
/* Shared to-do lists: the chips that choose a list, the box with who a task is for, and a new list. */
#tl-lists { margin-bottom: 12px; }
#tl-lists .mt-view b { font-weight: 600; color: var(--accent); margin-left: 3px; }
.paddform.shared { grid-template-columns: minmax(0, 1fr) auto 78px auto; }
.paddform select { min-width: 0; max-width: 118px; border: 1px solid var(--rule); border-radius: 6px; padding: 6px 4px; font: 13px var(--font-sans); background: var(--surface); color: var(--ink); }
.pact.tl-yours .ptext { font-weight: 600; }
.tl-new { display: grid; gap: 8px; }
.tl-new label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; padding: 2px 0; }
.tl-new > input { border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; font: 13px var(--font-sans); background: var(--surface); color: var(--ink); }
.tl-new .note { margin: 0; }

/* My page, in full: the page on the left, how much is understood and what is still open on the
   right, each column scrolling on its own. One column below 900px, the side under the page. */
.view.pagesview { display: flex; flex-direction: column; min-height: 0; }
.pgbar { flex: 0 0 auto; padding: 10px 30px; border-bottom: 1px solid var(--rule); }
.pageview { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.pageview[hidden], .viewer[hidden] { display: none; }
.pv-main { overflow-y: auto; padding: 22px 30px 60px; }
.pv-main > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.pv-side { overflow-y: auto; padding: 22px 20px 40px; border-left: 1px solid var(--rule); background: var(--surface); font-size: 13.5px; }
.pv-side > .ph:first-child { margin-top: 0; }
.sharebar { padding: 10px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 14px; margin-bottom: 18px; }
.actbox { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--warn); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.actbox .ph { margin-top: 0; }
.actbox > .muted { margin: -4px 0 8px; font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: grid; }
.tile b { font: 600 22px/1.1 var(--font-cond); font-variant-numeric: tabular-nums; }
.tile span { font-size: 12px; color: var(--ink-3); }
#pv-time-wrap { margin-bottom: 18px; }
#pv-time-wrap.last { margin-top: 28px; }
.tbar { display: grid; grid-template-columns: minmax(0, 1fr) 140px 36px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.ttrack { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.ttrack i { display: block; height: 100%; background: var(--accent); }
.tbar b { text-align: right; font-variant-numeric: tabular-nums; }
.pvdoc { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 26px; }
@media (max-width: 900px) {
  .view.pagesview { display: block; overflow-y: auto; }
  .pageview { display: block; }
  .pgbar { padding: 10px 14px; }
  .pv-main, .pv-side { overflow: visible; padding: 16px 14px; }
  .pv-side { border-left: 0; border-top: 1px solid var(--rule); }
  .tbar { grid-template-columns: minmax(0, 1fr) 80px 32px; }
}
.log { flex: 1; overflow-y: auto; padding-block: 28px 16px; display: flex; flex-direction: column; gap: 22px; }
.msg { max-width: 82ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.leo { align-self: flex-start; }
.msg.leo .who-label { display: block; font: 600 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.msg .made-file { display: inline-block; margin: 2px 0; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.msg .made-file::before { content: "\2193  "; }
.msg .made-file:hover { background: var(--accent); color: #fff; }
.msg .made-mine { margin-left: 10px; font-size: 13px; color: var(--muted, #667); }
.vw-own .made-file { display: inline-block; margin-right: 10px; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.vw-own .made-file::before { content: "\2193  "; }
.vw-own { margin: 0 0 14px; }
.vw-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.vw-head { margin: 0 0 10px; color: var(--ink-3); font-size: 13px; }
.vw-head summary { cursor: pointer; }
.vw-text { display: block; width: 100%; box-sizing: border-box; min-height: 60vh; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px;
  font: 15px/1.6 var(--font-sans); color: inherit; background: transparent; resize: vertical; margin-bottom: 10px; }
.vw-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.msg.you { align-self: flex-end; background: var(--accent-soft); padding: 10px 14px; border-radius: 14px 14px 4px 14px; }
.msg .stamp { font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.msg.leo .who-label .stamp { margin-left: 8px; }
.msg.you .stamp { display: block; margin-top: 6px; text-align: right; }
.msg.error { align-self: stretch; color: var(--rec); font-size: 14px; }
.msg .noted { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.msg .noted button { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-size: 13px; }
.thinking::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: pulse 1.1s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Where the board stands, in one line above the message box, and what happens on it, said in the
   conversation as it happens. */
.boardbar { background: var(--ground); }
.boardline { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; background: none; font-size: 13px; color: var(--ink-2); text-align: left; }
.boardline:hover { color: var(--ink); }
.boardline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--next-edge); flex: none; }
.boardline-go { margin-left: auto; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg.boardev { align-self: stretch; max-width: none; white-space: normal; }
.msg.boardev .who-label { display: block; font: 600 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.bevs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); gap: 10px; align-items: start; }
.bev { display: grid; gap: 6px; align-content: start; }
.bevwhat { font: 600 11px/1.2 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.bevgo { justify-self: start; }
.bevgone { font-size: 12.5px; color: var(--ok); }
.bevgone.bad { color: var(--rec); }
.bevgone.parked { color: var(--ink-3); }
/* Which of the three in hand the new work replaces. */
dialog.swap { max-width: 520px; }
dialog.before { max-width: 540px; }
dialog.before ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); }
.swaplist { display: grid; gap: 8px; margin-top: 12px; }
.swaplist .pbutton { margin: 0; text-align: left; color: var(--ink); font-weight: 600; }
.swaplist .pbutton:disabled { opacity: .55; cursor: default; }
.bevopen { margin-top: 8px; font-size: 13px; }
.composer { position: sticky; bottom: 0; background: var(--ground); padding-block: 8px 18px; }
.composer textarea { width: 100%; resize: none; border: 1px solid var(--rule); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface); color: var(--ink); font: 16px/1.5 var(--font-sans); padding: 14px 16px 6px; max-height: 40vh; display: block; overflow-y: hidden; }
.composer textarea:focus { outline: none; border-color: var(--accent); }
/* The whole box lights up together: the queue and staged rows sit between the words and the
   buttons, so a sibling rule left the bottom half grey (Mike, 28 Oct 2026). */
.composer:focus-within .controls, .composer:focus-within .queued, .composer:focus-within .staged { border-color: var(--accent); }
/* The "/" menu: the skills, above the message box. */
.slash { position: absolute; bottom: calc(100% - 4px); inset-inline: max(26px, calc((100% - 1120px) / 2)); max-height: min(360px, 50vh); overflow-y: auto; z-index: 30; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 6px; }
.slash-row { display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 8px; background: none; color: var(--ink); padding: 7px 10px; cursor: pointer; font: inherit; }
.slash-row.on, .slash-row:hover { background: var(--accent-soft); }
.slash-name { font: 500 13.5px var(--font-mono); color: var(--accent); flex: none; min-width: 190px; }
.slash-what { font-size: 13.5px; color: var(--ink-2); flex: 1; min-width: 0; }
.slash-needs { font-size: 12px; color: var(--ink-3); flex: none; }
.slash-none { margin: 6px 10px; font-size: 13.5px; }
@media (max-width: 640px) { .slash { inset-inline: 16px; } .slash-row { flex-wrap: wrap; gap: 2px 12px; } .slash-name { min-width: 0; } }
.controls { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 12px 12px; background: var(--surface); padding: 6px 8px 8px 16px; }
.status { font-size: 13px; color: var(--ink-3); margin-right: auto; }
/* While the microphone is live or the words are being written down, the line stops being an
   aside: it is the only thing telling the person their five minutes still exists. */
.status.live { color: var(--rec); font-variant-numeric: tabular-nums; }
.meter { width: 44px; height: 4px; border-radius: 999px; background: var(--rec-soft); overflow: hidden; flex: none; }
.meter i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--rec); transform: scaleX(0); transform-origin: left; }
.attach svg { width: 18px; height: 18px; }
.attach:disabled { opacity: .45; }
.mic { height: 42px; padding: 0 14px 0 11px; gap: 6px; border-radius: 21px; border: 1px solid var(--rule); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.mic svg { width: 20px; height: 20px; fill: var(--ink-2); flex: none; }
.mic-word { font-size: 14px; color: var(--ink-2); }
.mic.recording .mic-word { color: var(--rec); font-weight: 600; }
.mic .i-stop, .mic.recording .i-mic { display: none; }
.mic.recording .i-stop { display: block; }
.mic.recording { background: var(--rec-soft); border-color: var(--rec); animation: rec 1.4s ease-in-out infinite; }
.mic.recording svg { fill: var(--rec); }
@keyframes rec { 0%, 100% { box-shadow: 0 0 0 0 var(--rec-soft); } 50% { box-shadow: 0 0 0 7px var(--rec-soft); } }
.send, .primary { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 500; }
.send:disabled, .primary:disabled { opacity: .45; cursor: default; }

/* My page */
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; padding-block: 28px 40px; overflow-y: auto; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px 24px; }
.card h2 { font: 600 24px/1.2 var(--font-cond); margin: 0 0 6px; }
.card h3 { font: 600 13px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 22px 0 8px; }
.private { background: var(--sunk); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.plain li { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.plain li:last-child { border-bottom: 0; }
.actions label { display: flex; gap: 10px; align-items: flex-start; }
.actions input { margin-top: 5px; accent-color: var(--accent); }
.actions .done { color: var(--ink-3); text-decoration: line-through; }
.md h2 { display: none; }
.md h3 { font: 600 13px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 22px 0 8px; }
.md ul { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.md p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
.md sub { display: block; font-size: 12px; color: var(--ink-3); vertical-align: baseline; }

/* Map */
/* The map and graph sit in the page like any other sub-view, with no frame of their own. */
.brmri { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 36px; align-items: start; margin-top: 8px; }
.brmri-pic { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; }
.brmri-pic svg { margin: 0; max-height: calc(100vh - 260px); }
@media (max-width: 900px) { .brmri { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
/* The brain has the width of the screen to use: a map of a few functions sat narrow in the middle
of it (Mike, 12 Oct 2026). Every sub view shares the one width, so nothing jumps on a switch. */
.brain-view .bpage { max-width: 1680px; }
.brainmap { width: 100%; height: calc(100vh - 230px); min-height: 520px; border: 0; display: block; background: transparent; margin-top: 8px; }

dialog { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); max-width: 460px; padding: 24px; }
dialog::backdrop { background: rgba(10, 14, 20, .45); }
dialog h2 { font: 600 22px/1.2 var(--font-cond); margin: 0 0 12px; }
dialog p { margin: 0 0 10px; color: var(--ink-2); }
.dialog-row { display: flex; justify-content: flex-end; gap: 16px; align-items: center; margin-top: 18px; }

@media (max-width: 900px) {
  /* Narrow: the block is one press away, as a sheet over the conversation, with Board and Learned
     beside Send, each opening it on its own half. A strip above the conversation pushed the words
     off a phone screen. */
  .beside { display: none; }
  .learnedbtn { display: inline-block; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ink-2); }
  body.showpanel .beside { display: grid; position: fixed; left: 0; right: 0; bottom: 0; top: 18vh; z-index: 15; border-left: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
  body.showpanel .beside .sheetclose { display: block; justify-self: end; background: none; border: 0; color: var(--ink-3); text-decoration: underline; font-size: 14px; }
}
@media (max-width: 760px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .bar { padding-inline: 16px; }
  /* On a phone the tabs take a row of their own and scroll sideways, rather than pushing the
     whole page wider than the screen. */
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tab { white-space: nowrap; flex: 0 0 auto; }
  .page { padding-inline: 16px; }
  .talk > .log, .talk > .composer, .talk > .boardbar { padding-inline: 16px; }
  .who span, #signout-all { display: none; }   /* a phone's header holds one link */
  /* Board and Learned beside Send pushed Send off the edge of a phone. */
  .controls { gap: 6px; padding-left: 8px; }
  .learnedbtn { padding: 8px 10px; font-size: 13px; }
  /* The thinking button made one more beside Send: the round ones are a little smaller here. */
  .controls { gap: 3px; padding-left: 6px; padding-right: 6px; }
  .controls .mic { height: 36px; padding: 0 12px 0 9px; }
  .controls .mic svg { width: 18px; height: 18px; }
  .controls .learnedbtn { padding: 7px 8px; }
  .controls .send { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* Somebody else's voice, quoted and attributed. Leo never paraphrases it, and it has to look
   like a person wrote it rather than like part of the product. */
.fromnote { margin: 18px 0 22px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); white-space: pre-wrap; font-size: 15px; line-height: 1.55; }
.msg.fromnote { align-self: stretch; max-width: none; }

/* The failure, at the top of the view the maintainer opens anyway. Nobody else ever sees it. */
.banner { display: flex; gap: 14px; align-items: baseline; justify-content: space-between; padding: 10px 20px; background: var(--rec-soft); color: var(--rec); font-size: 14px; }
.banner .link { color: inherit; }

/* Sources */
.sources { overflow-y: auto; }
.sources-in { width: 100%; max-width: 820px; margin: 0 auto; padding-inline: 20px; padding-block: 28px 48px; }
.sources-h { font: 600 30px/1.15 var(--font-cond); margin: 0 0 10px; }
.lede { color: var(--ink-2); max-width: 62ch; margin: 0 0 28px; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 24px; }
.au-skill { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.au-skill p { margin: 0; flex: 1; }
.au-list li { margin: 0 0 8px; }
.au-kind { margin: 0 0 36px; }
.au-kind > .eyebrow { margin: 0; }
.au-h { margin-top: 2px; }
.au-say { margin: 0 0 14px; }
.au-group { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #666); margin: 18px 0 10px; }
.au-added summary { cursor: pointer; margin: 4px 0 12px; color: var(--muted, #666); }
.sgroup { margin-bottom: 28px; }
.sgroup h2 { font: 600 13px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.srow { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; margin-bottom: 8px; }
.shead { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
/* The words take the room that is left and wrap inside it, so a long description never pushes the button onto a line of its own. On a phone the button goes underneath. */
.shead > div:first-child { flex: 1 1 0; min-width: 0; }
@media (max-width: 520px) { .shead { flex-wrap: wrap; } .shead > div:first-child { flex-basis: 100%; } }
.shead p { margin: 4px 0 0; }
.sbtns { display: flex; gap: 12px; align-items: center; flex: none; }
.pill { font: 600 11px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; margin-left: 6px; white-space: nowrap; }
.pill.good { background: var(--accent-soft); color: var(--accent); }
.pill.bad { background: var(--rec-soft); color: var(--rec); }
.pill.soon { background: var(--sunk); color: var(--ink-3); }
.sform { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.steps { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 5px; }
/* A long scope or key has no spaces to break on, and ran out of the card. */
.steps li { min-width: 0; overflow-wrap: anywhere; }
.steps code { display: block; margin-top: 4px; padding: 6px 8px; background: var(--sunk); border-radius: 6px; font: 12.5px/1.45 var(--font-mono); user-select: all; }
.srow-in { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.srow-in input { flex: 1; min-width: 220px; border: 1px solid var(--rule); border-radius: 8px; background: var(--ground); color: var(--ink); font: 14px var(--font-mono); padding: 10px 12px; }
.srow-in input:focus { outline: none; border-color: var(--accent); }
.srow-in select { border: 1px solid var(--rule); border-radius: 8px; background: var(--ground); color: var(--ink); font: 14px var(--font-sans); padding: 10px 12px; }
.srow-in label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.srow-in label input { flex: none; min-width: 0; width: auto; }
/* The wording an agent is given, with the address and the key in it: the full width of the card, so it reads as a paragraph. */
.collect { margin-top: 14px; }
.collect textarea { display: block; width: 100%; box-sizing: border-box; margin: 8px 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--ground); color: var(--ink); font: 13px/1.5 var(--font-mono); padding: 10px 12px; resize: vertical; }
.collect textarea:focus { outline: none; border-color: var(--accent); }
.primary.sm { padding: 8px 16px; font-size: 14px; }
.note { font-size: 14px; margin: 10px 0 0; min-height: 1em; color: var(--ink-3); }
.note.good { color: var(--ok); }
.note.bad, .err { color: var(--rec); }
.err { font-size: 14px; margin: 4px 0 0; }
@media (max-width: 560px) { .shead { flex-direction: column; } }

/* Leo asking for files. They see every path and the reason, and tick what they send. */
.msg.wants { align-self: stretch; max-width: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; white-space: normal; }
.wants-h { margin: 0 0 12px; font-weight: 500; }
.msg.wants label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.msg.wants label:last-of-type { border-bottom: 0; }
.msg.wants input { margin-top: 4px; accent-color: var(--accent); }
.wants-b { display: flex; gap: 12px; align-items: center; margin-top: 14px; }

/* Teaching is what the whole thing is for, and in this phase it is what somebody should be
   doing nine visits out of ten. A tab that looks like every other tab does not say that, so it
   is a button and the rest stay tabs. */
.tab.lead { border: 1px solid var(--rule); border-radius: 999px; padding: 7px 18px; color: var(--ink); background: var(--surface); margin-right: 8px; }
.tab.lead[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab.lead[aria-selected="false"]:hover { border-color: var(--accent); color: var(--accent); }

/* Setting up, and joining. The first screen a client ever sees. */
.setup { display: grid; gap: 16px; max-width: 460px; }
.setup label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.setup input, .setup textarea { border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font: 16px/1.5 var(--font-sans); padding: 11px 13px; resize: vertical; }
.setup input:focus, .setup textarea:focus { outline: none; border-color: var(--accent); }
.setup .primary { justify-self: start; }

/* What each answer produced. An honest nothing is quieter, never absent. */
.noted.quiet { color: var(--ink-3); }

/* Why it works this way, one click from anywhere, including before signing in. */
.why-link { margin-left: auto; margin-right: 14px; font-size: 13px; }
.lib-link { margin-left: auto; margin-right: 14px; font-size: 13px; }
.lib-link + .why-link { margin-left: 0; }
.view.why { padding: 24px 16px; }
.why-in { max-width: 680px; margin: 0 auto; }

/* Tables on a page, and a flow drawn as swimlanes. Step names wrap in full: never truncated. */
.tablewrap { overflow-x: auto; margin: 10px 0; }
.md table { border-collapse: collapse; font-size: 13px; width: 100%; min-width: 720px; }
.md th, .md td { border-bottom: 1px solid var(--rule); padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { color: var(--ink-3); font-weight: 500; }
.flow { display: grid; grid-template-columns: repeat(var(--lanes), minmax(150px, 1fr)); gap: 8px 10px; margin: 12px 0; overflow-x: auto; }
.lane-h { font: 500 12px var(--font-cond); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--rule); padding-bottom: 4px; }
.fstep { display: flex; flex-direction: column; gap: 3px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--surface); padding: 8px 10px; min-width: 0; }
.fstep .fn { font: 500 11px var(--font-mono); color: var(--ink-3); }
.fstep .fname { font-size: 14px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.fstep .fmeta, .fstep .fnext { font-size: 12px; color: var(--ink-3); }
.fstep .fnext::before { content: "\2192  "; }
.fstep.gap { border-style: dashed; background: transparent; }
.fstep.outside { border-style: dotted; }
.fstep.hurts { border-color: var(--accent); }
.fstep .fhurt { font-size: 12px; color: var(--accent); font-weight: 500; }

/* People, for the named maintainers: the counts. Brainwaves used to be the column on the right
   here; it moved to Findings, beside the read, 28 Sep 2026. */
.view.people-view { padding: 24px 16px; overflow-y: auto; }
.pw { max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.phead h1 { font: 600 30px/1.15 var(--font-cond); margin: 0 0 4px; }
.phead input { min-width: 260px; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; font: 14px var(--font-sans); background: var(--surface); color: var(--ink); }
.pteam h2 { font: 600 18px/1.3 var(--font-cond); margin: 26px 0 10px; }
.pteam h2 .muted { font: 400 13px var(--font-sans); margin-left: 6px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pcard { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.pcard:hover { border-color: var(--accent); }
.pcard.pagelink, .pcard.pagelink * { text-decoration: none; }
.pcard.me { border-color: var(--accent); background: var(--accent-soft); }
.pcard.nobody { border-style: dashed; border-color: var(--warn); background: var(--warn-soft); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 600 14px var(--font-cond); }
.pcard.nobody .avatar { background: var(--surface); color: var(--warn); border: 1px dashed var(--warn); }
.pinfo { display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); }
.pinfo b { color: var(--ink); font-size: 14.5px; }
.pruns { font-size: 12.5px; }
.pfacts { font-size: 12px; color: var(--ink-3); }
.pw-table .card { padding: 8px 12px; overflow-x: auto; }
.counts { border-collapse: collapse; width: 100%; font-size: 14px; }
.counts th, .counts td { border-bottom: 1px solid var(--rule); padding: 8px; text-align: left; vertical-align: top; white-space: nowrap; }
.counts tr:last-child td { border-bottom: 0; }
.counts th { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.counts .addr { display: block; font: 12px var(--font-mono); color: var(--ink-3); }
.pagelink { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* Findings with Brainwaves, for a named maintainer: the read and the plan on the left, Brainwaves
   on the right at 38% of the width and never under 420px. While the brain is being taught, the
   read and what fed it belong side by side. Below 1,100px the column stacks underneath. */
.view.findings-view { overflow-y: auto; }
.fw.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 38%); gap: 24px; align-items: start; max-width: 1600px; margin: 0 auto; }
.fw.two .why-in { max-width: none; margin: 0; }
.fw-feed { font-size: 14px; display: grid; gap: 12px; }
.fw-feed > .muted { margin: -4px 0 4px; }
#bw-list { display: grid; gap: 12px; }
.bw.card { padding: 14px 16px; }
.bw summary { cursor: pointer; list-style: none; display: grid; gap: 2px; }
.bw summary::-webkit-details-marker { display: none; }
.bw-who { font-weight: 600; }
.bw-when { color: var(--ink-3); font-size: 13px; }
.bw-counts { font: 12px var(--font-mono); color: var(--ink-2); margin-top: 4px; }
.bw h4 { font: 600 12px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 6px; }
.bw ul { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.bw-about { margin: 12px 0 0; }
.bw-k { font: 600 12px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 4px; }
.bw-q { margin-top: 14px; }
.bw-q summary { color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; display: inline; }
.wp-title { font: 600 24px/1.2 var(--font-cond); margin: 0 0 12px; }
.md.wp h2 { display: block; font: 600 18px/1.3 var(--font-cond); margin: 22px 0 8px; }
@media (max-width: 1100px) {
  .fw.two { grid-template-columns: minmax(0, 1fr); }
}

/* The Guide is laid out by the Viewer's rules below: notes on the left, the note on the right. */
.view.guideview { display: flex; flex-direction: column; min-height: 0; }
.doc-title { font: 600 32px/1.15 var(--font-cond); margin: 0 0 18px; }
.md.doc { font-size: 16px; }
.md.doc h2 { display: block; font: 600 22px/1.25 var(--font-cond); margin: 34px 0 10px; scroll-margin-top: 16px; }
.md.doc p { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0 0 12px; }
.md.doc ul { gap: 8px; margin: 0 0 12px; }

/* The brain: every page by what it is, counts across the top, open questions by who can answer.
   A page opens in place, the page on the left and what it connects to on the right. */
/* The scrollbar's room is always kept, so a sub-view long enough to scroll does not shift the page
   sideways against one that is not. */
.view.brain-view, .view.brainpage-view { overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.bpage { max-width: 1180px; margin: 0 auto; padding: 22px 30px 60px; }
.bpage h1 { font: 600 30px/1.15 var(--font-cond); margin: 0 0 12px; }
.brtop { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; min-height: 96px; }
.brtabs { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); padding: 3px; gap: 2px; }
.brtabs button { background: none; border: 0; border-radius: 999px; padding: 6px 14px; font: 600 13px var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.brtabs button.on { background: var(--accent); color: var(--accent-ink); }
.brstats { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.brstat { display: grid; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.brstat b { font: 600 22px/1.1 var(--font-cond); color: var(--ink); }
.br-lede { margin: 18px 0 8px; max-width: 760px; }
.bgroup h2 { font: 600 18px/1.3 var(--font-cond); margin: 26px 0 10px; }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bcard { display: grid; gap: 4px; padding: 14px 16px; }
.btitle { font-weight: 600; }
.bmeta { font-size: 12px; color: var(--ink-3); }
.bblurb { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.bp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 100%; }
.bp-main { padding: 22px 30px 60px; max-width: 880px; width: 100%; margin: 0 auto; }
.bp-main > .link { margin-bottom: 14px; display: inline-block; }
.bp-side { border-left: 1px solid var(--rule); background: var(--surface); padding: 22px 22px 40px; }
.bp-side h3 { font: 600 13px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 18px 0 8px; }
.bp-side .plain { font-size: 14px; }
.md.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .bpage { padding: 16px 14px 40px; }
  .brstats { margin-left: 0; }
  .bp { grid-template-columns: minmax(0, 1fr); }
  .bp-side { border-left: 0; border-top: 1px solid var(--rule); }
}

/* What Leo is doing between the words, while a long turn runs. */
.msg .working { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-3); font-style: italic; }

/* What Leo thought and did on the way to an answer, folded above it (`conversation.workings`).
   Only for whoever switched it on; the fold replaces the live line, so it is said once. */
.msg .workings { display: none; margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
body.showworkings .msg .workings { display: block; }
body.showworkings .msg .workings ~ .working { display: none; }
.msg .workings summary { cursor: pointer; font-style: italic; }
.msg .workings ol { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--rule); }
.msg .workings li { margin: 0 0 8px; white-space: pre-wrap; line-height: 1.45; }
.msg .workings li.thought { font-style: italic; }
.msg .workings li.doing { color: var(--ink-2); }
.msg .workings li.doing::before { content: "\2192\00a0"; color: var(--accent); }
.boardbar { display: flex; align-items: center; gap: 16px; }
.boardbar .boardline { flex: 1; width: auto; min-width: 0; }
.wkswitch { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 0; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.wkswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wkswitch b { font-weight: 500; }
.wktrack { position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--rule); transition: background .15s; flex: none; }
.wktrack::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.wkswitch input:checked + .wktrack { background: var(--accent); }
.wkswitch input:checked + .wktrack::after { transform: translateX(13px); }
.wkswitch input:focus-visible + .wktrack { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The board. One frame: the heading and controls stay put; four columns below that scroll with
   the page; details open in a panel on the right. One column of columns on a phone. */
.view.board-view { overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; position: relative; }
.bdpage { max-width: 1400px; margin: 0 auto; padding: 22px 30px 60px; }
.bdtop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bdtop h1 { font: 600 30px/1.15 var(--font-cond); margin: 0 0 4px; }
.bdgoal { margin: 0; max-width: 720px; }
/* The due north: the business's goal on the board, and the person's own at the top of their page. */
.north { border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--accent-soft); padding: 14px 18px; }
.bdnorth { max-width: 760px; margin: 6px 0 0; }
.sidepage .north { margin: 0 0 6px; padding: 12px 14px; }
.north-eye { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 11px/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.north-eye .badge { text-transform: none; letter-spacing: 0; font-weight: 500; }
.north-head { margin: 0; font: 600 18px/1.35 var(--font-cond); color: var(--ink); }
.north-body { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.north .goal { border-bottom-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.north .goal:last-child { border-bottom: 0; padding-bottom: 0; }
.bdcontrols { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* The colour of a card that is one of their next three, and the line that says what it means. */
.bdkey { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.bdkeymark { width: 14px; height: 14px; border-radius: 4px; background: var(--next); border: 1px solid var(--next-edge); border-left-width: 4px; flex: none; }
.bdinits { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.bdinit { text-align: left; display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); }
.bdinit:hover { border-color: var(--accent); }
.bdih { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bdmeta { font-size: 12px; color: var(--ink-3); }
.std { font: 700 9.5px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.std.rec { background: var(--ok-soft); color: var(--ok); }
.std.early { background: var(--warn-soft); color: var(--warn); }
.std.prop, .std.size { background: var(--sunk); color: var(--ink-2); }
.std.build { background: var(--accent-soft); color: var(--accent); }
/* The change a ticket belongs to, as a tag: the whole name, cut with dots when it will not fit. */
.std.for { max-width: 100%; white-space: normal; background: var(--sunk); color: var(--ink-2); line-height: 1.3; }
.bdcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; align-items: start; }
.bdcol { background: var(--sunk); border-radius: 12px; padding: 10px; min-height: 160px; }
.bdcol .ph { margin: 2px 4px 10px; }
.bdcol.over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.bdcards { display: grid; gap: 8px; }
.bdcard { display: grid; align-content: start; gap: 6px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); cursor: grab; font-size: 13.5px; }
.bdcard:hover { border-color: var(--accent); }
.bdcard.mine { border-left: 3px solid var(--accent); }
.bdcard.dragging { opacity: .5; }
.bdcard.next { background: var(--next); border-color: var(--next-edge); border-left: 4px solid var(--next-edge); }
.bdcard.next .std.early, .bdcard.next .std.for { background: var(--surface); }
.bdtitle { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bdfor { font: 600 11px/1.3 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.bdtags { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-start; }
.bdtags:empty { display: none; }
.bdadd input { width: 100%; margin-top: 8px; border: 1px dashed var(--rule); border-radius: 8px; padding: 8px 10px; font: 13.5px var(--font-sans); background: transparent; color: var(--ink); }
.bddrawer { position: fixed; top: 54px; right: 0; bottom: 0; width: min(560px, 100vw); overflow-y: auto; background: var(--surface); border-left: 1px solid var(--rule); box-shadow: -8px 0 30px rgba(0, 0, 0, .12); padding: 18px 20px 40px; z-index: 12; display: grid; align-content: start; gap: 12px; }
.bddrawer label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.bddrawer input, .bddrawer textarea, .bddrawer select { width: 100%; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font: 14px var(--font-sans); background: var(--surface); color: var(--ink); }
.bdclose { justify-self: end; }
.bdrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.bdrow label { min-width: 0; }
.bdmove { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.bdmove .pbutton { margin: 0; }
.bdmove .pbutton.on { border-color: var(--accent); background: var(--accent-soft); }
.bdowner { margin: 0; font-size: 14px; }
.bdbuild { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.bdcheck { display: flex !important; align-items: center; gap: 8px; }
.bdcheck input { width: auto; flex: 0 0 auto; }
.bdresult { margin: 0; font-size: 13px; }
.bdbrief { white-space: pre-wrap; font: 12.5px/1.5 var(--font-mono); }
.note.bad { color: var(--rec); }
@media (max-width: 900px) {
  .bdpage { padding: 16px 14px 40px; }
  .bdcols { grid-template-columns: minmax(0, 1fr); }
  .bddrawer { top: 0; z-index: 20; }
}

/* Activity, maintainers only. The table scrolls sideways inside its card on a phone. */
.act-table { overflow-x: auto; padding: 0; }
.counts th.n, .counts td.n { text-align: right; font-variant-numeric: tabular-nums; }
.act-alert { background: color-mix(in srgb, var(--danger, #c0392b) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger, #c0392b) 35%, transparent); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.act-alert ul { margin: 8px 0; padding-left: 18px; }
.act-alert p { margin: 0; font-size: 13px; color: var(--ink-3); }
.act-note { background: var(--surface); border: 1px solid var(--line, color-mix(in srgb, var(--ink-3) 25%, transparent)); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.act-note ul { margin: 8px 0; padding-left: 18px; }
.act-note p { margin: 0; font-size: 13px; color: var(--ink-3); }

/* A file waiting to go with the next message, inside the box, until Send. */
.staged { background: var(--surface); border: 1px solid var(--rule); border-block: 0; padding: 6px 16px; font-size: 14px; }
.staged .srow1 { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
/* Messages sent while Leo is still answering, waiting their turn inside the box. */
.queued { background: var(--surface); border: 1px solid var(--rule); border-block: 0; padding: 6px 16px; font-size: 13.5px; }
.queued .qhead { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
.queued .qrow { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
.queued .qrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staged img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); }
.staged span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The accountable board: who holds a ticket, since when, why, and its trail. */
.std.nom { background: var(--accent-soft); color: var(--accent); }
/* Work only some people see (`place.py`): said on the card, so nobody wonders who else is reading it. */
.std.kept { background: var(--ink-2); color: var(--surface); }
.bdgroup { margin: 10px 2px 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.bdgroup:first-child { margin-top: 0; }
.bdseen { margin: 0; font-size: 14px; color: var(--ink-2); }
/* Whose move it is, first thing on a card. */
.bdwho { display: flex; gap: 10px; align-items: center; margin: 2px 0 4px; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.bdwho .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.bdwho .bdwho-t { flex: 1; }
.bdwho code { font: 600 13.5px var(--font-mono); padding: 1px 6px; border-radius: 5px; background: var(--surface); }
.bdwho.agent { background: var(--accent-soft); color: var(--accent); }
.bdwho.agent .dot { animation: bdpulse 1.6s ease-in-out infinite; }
.bdwho.you { background: var(--warn-soft); color: var(--warn); }
.bdwho.other, .bdwho.done { background: var(--sunk); color: var(--ink-2); }
@keyframes bdpulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .bdwho.agent .dot { animation: none; } }
/* The chat, carried onto the card: the same box as the chat page, and it stands out. */
.bdchat { display: grid; gap: 10px; margin: 0 0 6px; padding: 14px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 16px rgba(36, 71, 201, .10); }
.bdchat .bdchat-h { margin: 0; font: 600 11.5px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bdchat .bdyou { justify-self: end; max-width: 88%; margin: 0; padding: 8px 12px; border-radius: 12px 12px 2px 12px; background: var(--accent-soft); font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.bdchat .bdbox { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.bdchat .bdbox:focus-within { border-color: var(--accent); }
.bdchat textarea { display: block; width: 100%; min-height: 84px; resize: vertical; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: var(--ink); font: 15px/1.5 var(--font-sans); padding: 12px 14px 4px; }
.bdchat textarea:focus { outline: none; }
.bdchat .bdbox-row { display: flex; justify-content: flex-end; padding: 4px 8px 8px; }
.bdchat .send { padding: 8px 18px; }
.bdanswer { margin: 0; padding: 10px 14px; background: var(--sunk); border-radius: 12px 12px 12px 2px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.bdanswer.thinking { opacity: 0.7; font-style: italic; }
.bdreason { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--sunk); border-radius: 0 8px 8px 0; font-size: 13.5px; line-height: 1.45; }
.bdpass { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; }
.bdpass .ph { margin: 0; }
.bdpass .pbutton { margin: 0; }
.bdtrail summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.bdtrail ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.4; }

/* Three questions on the panel, then the counts, never the list. */
.psource { margin: 0 0 10px; padding: 8px 10px; border: 1px dashed var(--accent); border-radius: 8px; font-size: 12.5px; color: var(--ink-2); }
.pmore { margin: 4px 0 8px; font-size: 12.5px; color: var(--ink-3); }
.qopen { display: block; margin: 2px 0 8px; font-size: 13px; }

/* Your questions, at your own pace. */
.qpage { max-width: 760px; margin: 0 auto; padding: 24px 20px 60px; }
.qpage h1 { margin: 10px 0 4px; }
.qsource { display: grid; gap: 2px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); font-size: 14px; }
.qsource span { color: var(--ink-2); font-size: 13.5px; }
.qpace { margin: 16px 0 12px; align-items: center; flex-wrap: wrap; }
.qpace .muted { padding: 0 8px; font-size: 13px; }
.qitem { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.qtext { margin: 0; font-size: 15px; line-height: 1.45; }
.qitem textarea { width: 100%; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font: 14px var(--font-sans); background: var(--surface); color: var(--ink); resize: vertical; }
.qnot { justify-self: start; font-size: 13px; }
#q-form .dialog-row { margin-top: 16px; }


/* The Viewer, on the Pages tab: the places Leo can read on the left, folded into folders, and the
   document on the right. Each side scrolls on its own. Below 900px the files sit above the
   document, in a box that scrolls. */
.viewer { flex: 1; display: grid; grid-template-columns: var(--vw-side, clamp(240px, 22vw, 360px)) minmax(0, 1fr); min-height: 0; }
/* The edge of the Viewer's list is dragged, like the divider beside the chat. */
.vw-side { position: relative; }
.vdrag { position: absolute; right: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 5; touch-action: none; }
.vdrag::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.vdrag:hover::after, .vdrag:focus-visible::after, body.dragging .vdrag::after { background: var(--accent); }
/* The document at the width of the window: always for a PDF, a spreadsheet or a picture, and for
   anything else when they ask for it. */
.vw-main.wide > * { max-width: none; }
.vw-main > .vw-widen { display: block; width: 100%; margin: 0 auto 6px; font-size: 13px; text-align: right; }
.vw-side { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-right: 1px solid var(--rule); background: var(--surface); font-size: 14px; }
.vw-side input { margin: 12px 14px 8px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--ground); color: var(--ink); font: inherit; min-width: 0; }
.vw-tree { overflow-y: auto; padding: 0 8px 30px; }
.vw-tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--rule); margin-left: 9px; }
.vw-tree > ul { padding: 0; border: 0; margin: 0; }
.vw-tree button { display: flex; align-items: baseline; gap: 6px; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 4px 8px; font: inherit; color: var(--ink-2); line-height: 1.35; overflow-wrap: anywhere; }
.vw-tree button:hover { background: var(--sunk); color: var(--ink); }
.vw-tree button.on { background: var(--accent); color: var(--accent-ink); }
.vw-tree .vf::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin-right: 3px; align-self: center; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(-45deg); transition: transform .12s; }
.vw-tree .vf.open::before { transform: rotate(45deg); }
.vw-tree button.on::before { border-color: currentColor; }
.vw-tree .vsrc { font-weight: 600; color: var(--ink); }
.vw-tree .vnote { margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.vw-tree .vfile { padding-left: 24px; }
.vw-tree .vfile .vname { flex: 1; min-width: 0; }
.vw-tree .vwhen { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vw-tree button.on .vwhen { color: inherit; opacity: .8; }
/* A file the company also sees, in My files; whose it is, in Company files (myfiles.py). */
.vw-tree .vshared { flex: 0 0 auto; margin-right: 6px; padding: 0 6px; border-radius: 8px; font-size: 11px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.vw-tree button.on .vshared { background: transparent; color: inherit; opacity: .85; }
.vw-own { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vw-own .made-file { margin-right: 0; }
.vw-ver { margin: 0 0 10px; font-size: 13px; }
.vw-ver .vshared { color: var(--ok); font-weight: 600; }
/* Who sees a file: only them, the company, or one shared space (myfiles.py). */
.vw-sharing { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line, color-mix(in srgb, var(--ink-3) 25%, transparent)); border-radius: 10px; font-size: 13px; }
.vw-sharing p { margin: 0 0 8px; }
.vw-sharing p:last-child { margin-bottom: 0; }
.vw-sharing .vw-sh { font-weight: 600; }
.vw-sharing ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.vw-sharing li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vw-sharing li button.on { border-color: var(--ok); color: var(--ok); font-weight: 600; opacity: 1; }
.vw-sharing .link { font-size: 13px; }
.vw-sharing input:not([type]) { width: min(320px, 100%); }
.vw-speople { display: grid; gap: 4px; margin: 0 0 10px; max-height: 220px; overflow: auto; }
.vw-vers { margin: 0 0 14px; font-size: 13px; }
.vw-vers summary { cursor: pointer; color: var(--ink-3); }
.vw-vers ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.vw-vers li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vw-vers li span { flex: 1; min-width: 160px; }
.vw-tree .vhit { padding-left: 8px; display: grid; gap: 0; }
.vw-tree .vhit small { color: var(--ink-3); font-size: 11.5px; }
.vw-tree .vmsg { padding: 4px 8px 4px 24px; color: var(--ink-3); font-size: 13px; }
.vw-main { overflow-y: auto; padding: 18px 34px 70px; min-width: 0; }
.vw-main > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.vw-crumb { font-size: 13px; color: var(--ink-3); margin: 0 auto 14px; overflow-wrap: anywhere; }
.vw-crumb a { color: var(--ink-3); }
.vdoc { font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.vdoc h1 { font: 600 30px/1.2 var(--font-cond); margin: 0 0 16px; }
.vdoc h2 { font: 600 23px/1.25 var(--font-cond); margin: 32px 0 10px; }
.vdoc h3 { font: 600 18px/1.3 var(--font-cond); margin: 26px 0 8px; }
.vdoc h4, .vdoc h5, .vdoc h6 { font: 600 16px/1.3 var(--font-sans); margin: 22px 0 6px; }
.vdoc p, .vdoc ul, .vdoc ol, .vdoc blockquote, .vdoc pre, .vdoc table { margin: 0 0 14px; }
.vdoc ul, .vdoc ol { padding-left: 24px; }
.vdoc li { margin: 4px 0; }
.vdoc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.vdoc a.dead { color: var(--ink-3); text-decoration-style: dotted; }
.vdoc img { max-width: 100%; height: auto; border-radius: 6px; }
.vdoc blockquote { border-left: 3px solid var(--rule); padding: 2px 0 2px 16px; color: var(--ink-2); }
.vdoc code { font: 13.5px var(--font-mono); background: var(--sunk); border-radius: 4px; padding: 1px 5px; }
.vdoc pre { background: var(--sunk); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.5 var(--font-mono); }
.vdoc pre code { background: none; padding: 0; }
.vdoc hr { border: 0; border-top: 1px solid var(--rule); margin: 26px 0; }
.vdoc table { border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.vdoc th, .vdoc td { border: 1px solid var(--rule); padding: 6px 10px; text-align: left; vertical-align: top; }
.vdoc th { background: var(--sunk); font-weight: 600; }
/* A Word, Excel or PowerPoint file drawn as laid out (office.to_html). */
.voffice { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 36px 44px; max-width: 820px; }
.voffice th p, .voffice td p { margin: 0 0 6px; }
.voffice th p:last-child, .voffice td p:last-child { margin: 0; }
.voffice .sub { color: var(--ink-2); font-size: 18px; }
.voffice .muted { color: var(--ink-3); }
.voffice .vslide { border: 1px solid var(--rule); border-radius: 8px; padding: 20px 24px; margin: 0 0 18px; aspect-ratio: auto; }
.voffice .vslide h2 { margin-top: 4px; }
.voffice .vslide-n { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.voffice .vslide-notes { font-size: 14px; color: var(--ink-2); border-top: 1px dashed var(--rule); padding-top: 10px; margin: 14px 0 0; }
@media (max-width: 640px) { .voffice { padding: 20px 18px; } }
.vprops { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; padding: 12px 16px; margin-bottom: 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.vprops dt { color: var(--ink-3); }
.vprops dd { margin: 0; overflow-wrap: anywhere; }
.vraw { white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.55 var(--font-mono); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; margin: 0 auto; }
.vw-mode { display: flex; justify-content: flex-end; gap: 2px; margin-bottom: 10px; }
.vw-mode button { font: 600 11.5px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: none; border: 1px solid var(--rule); padding: 4px 12px; cursor: pointer; }
.vw-mode button:first-child { border-radius: 999px 0 0 999px; }
.vw-mode button:last-child { border-radius: 0 999px 999px 0; }
.vw-mode button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
#vw-doc.wide { max-width: none; }
.vhtml { display: block; width: 100%; max-width: none; height: calc(100vh - 220px); border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.vpdf { width: 100%; max-width: none; height: calc(100vh - 220px); border: 1px solid var(--rule); border-radius: 10px; }
@media (max-width: 900px) {
  .viewer { display: block; }
  .vdrag, .vw-main > .vw-widen { display: none; }
  .vw-side { border-right: 0; border-bottom: 1px solid var(--rule); }
  .vw-tree { max-height: 38vh; }
  .vw-main { overflow: visible; padding: 16px 14px 60px; }
}
/* The Guide in the Viewer's layout: a search over every word, hits with the line they are in, and
   the open note's headings under it in the tree. */
.gcrumb { display: flex; gap: 12px; align-items: baseline; }
.gcrumb .link { font-size: 13px; }
.guide .doc-title { max-width: 860px; margin: 0 auto 14px; }
.vw-tree .gtop { padding-left: 8px; font-weight: 600; color: var(--ink); }
.vw-tree .gheads { border-left-color: var(--accent); }
.vw-tree .ghead { font-size: 13px; color: var(--ink-3); padding-top: 2px; padding-bottom: 2px; }
.vw-tree .ghit { padding: 6px 8px; }
.vw-tree .ghit em { font-style: normal; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.vw-tree .ghit.on em, .vw-tree .ghit.on small { color: inherit; }
.vw-tree mark, .vdoc mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.vw-tree .gcount { padding-left: 8px; }
.vdoc h3, .vdoc h4, .vdoc h5, .vdoc h6 { scroll-margin-top: 12px; }
/* Which repositories are shared with Leo, under GitHub on the Connections tab. */
.sshared { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; display: grid; gap: 4px; }
.sshared p { margin: 0 0 4px; }
.sshared label { display: flex; align-items: baseline; gap: 8px; }
/* An initiative with no starting measurement says so on its card, in the accent, until it has one. */
.bdmeta.bdnobase { color: var(--accent); }

/* Findings: questions that say something looks wrong, week by week (backlog.py). */
/* The executive summary's strip: improve, redesign, eliminate, counted in code (18 Oct 2026). */
#summary-strip { margin: 0.6rem 0 1.4rem; }
.ss-lead { font-size: 1.02rem; margin: 0 0 0.7rem; color: var(--ink); }
.ss-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ss-level { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); padding: 12px 14px; }
.ss-level .ss-n { font: 600 1.7rem/1.1 var(--font-sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.ss-level .ss-k { font: 600 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.ss-level .ss-s { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.ss-level.ss-none .ss-n { color: var(--ink-3); }
.ss-list { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.ss-list a.pagelink { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.ss-list a.pagelink:hover { color: var(--accent); text-decoration: underline; }
.ss-more { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ss-bottom { margin: 0.8rem 0 0; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 640px) { .ss-levels { grid-template-columns: minmax(0, 1fr); } }
/* The read is a summary: its headings show, and the pages it rests on read as quiet sources. */
#read-body h2 { display: block; font: 600 13px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 20px 0 8px; }
#read-body p { font-size: 15px; color: var(--ink); line-height: 1.55; }
#read-body li { font-size: 15px; line-height: 1.55; }
#read-body a.pagelink { font-size: 12px; color: var(--ink-3); text-decoration-color: var(--rule); }
#read-body a.pagelink:hover { color: var(--accent); }
/* The decision tree: each process's ways forward, the one taken, and why (ways.py). */
.ways { margin-top: 1.8rem; }
.ways h2 { font: 600 13px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.way { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); padding: 12px 14px; margin-top: 10px; }
.way-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.way-head a.pagelink { font-weight: 600; color: var(--ink); text-decoration: none; }
.way-head a.pagelink:hover { color: var(--accent); text-decoration: underline; }
.way-state { font-size: 13px; color: var(--ink-2); }
.way-chosen { color: var(--ok); font-weight: 600; }
.way-seen { color: var(--warn); font-weight: 600; }
.way-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 10px; }
.way-k { font: 600 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.way-opts ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.way-opts li.way-taken span { color: var(--ink); font-weight: 600; }
.way-opts li .link { display: block; font-size: 12px; margin-top: 2px; }
.way-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.way-why input { flex: 1 1 200px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.way-why button[type="submit"] { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.fw-detail { margin-top: 1.8rem; border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.fw-detail > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.fw-detail[open] > summary { margin-bottom: 0.8rem; }
#backlog { margin-top: 1.6rem; }
#backlog h2 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.bl-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 4.5rem minmax(0, 1fr); gap: 0.6rem; align-items: center;
  padding: 0.35rem 0; border-top: 1px solid var(--rule); font-size: 0.9rem; }
.bl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-row .spark { color: var(--ink-3); }
.bl-up .spark, .bl-up .bl-shape { color: var(--warn); }
.bl-n { text-align: right; font-variant-numeric: tabular-nums; }
.bl-shape { color: var(--ink-2); }
@media (max-width: 640px) { .bl-row { grid-template-columns: minmax(0, 1fr) 90px 4rem; } .bl-shape { grid-column: 1 / -1; } }
#backlog h3 { font-size: 0.95rem; margin: 1.2rem 0 0.2rem; }
.bl-blind { grid-template-columns: minmax(0, 1fr) 6rem; }

/* The milestone line: a process drawn end to end. One soft burst, then still. */
.msg .milestone { position: relative; display: block; margin-top: 10px; padding: 8px 12px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); font-size: 13px; font-weight: 500; }
.milestone .burst { position: absolute; left: 14px; top: 50%; width: 0; height: 0; pointer-events: none; }
.milestone .burst i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  opacity: 0; animation: burst 900ms ease-out 1 forwards; transform: rotate(var(--a)) translateX(0); }
.milestone .burst i:nth-child(odd) { background: color-mix(in srgb, var(--accent) 55%, #f2b544); }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(34px); } }
@media (prefers-reduced-motion: reduce) { .milestone .burst { display: none; } }

.vw-tree .vadd { color: var(--accent); font-size: 13px; font-weight: 600; margin: 2px 0 2px 14px; width: auto; }
.vw-tree .vadd:hover { background: var(--sunk); color: var(--accent); }

/* On a phone (Mike, 28 Oct 2026, from screenshots at about 400px wide). The header is one line,
   with Library, Guide and Sign out in a menu; the tabs are a bar along the bottom with four and
   More; the message box is one row (attach, the words, microphone, Send); the voice line sits
   full width above it, so Send is never pushed off while recording. Desktop is untouched: the
   new buttons are hidden there and the menu is display: contents. */
.hmenubtn, .tab.phone, .tab .ticon, .composer .plus { display: none; }
.hmenu { display: contents; }
@media (max-width: 640px) {
  .bar { flex-wrap: nowrap; gap: 12px; padding-block: 10px; }
  .brand { flex: 1; min-width: 0; margin-right: 0; }
  .biz { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hmenubtn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-left: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
  .hmenubtn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
  .hmenu { display: none; position: absolute; top: calc(100% + 4px); right: 12px; z-index: 40; flex-direction: column; align-items: stretch; gap: 0; min-width: 190px; padding: 6px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
  .hmenu.open { display: flex; }
  .hmenu .lib-link, .hmenu .why-link { margin: 0; padding: 10px 12px; font-size: 15px; text-align: left; text-decoration: none; color: var(--ink); }
  .hmenu .who { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 4px; }
  .hmenu .who span { display: block; padding: 8px 12px 2px; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hmenu .who .link { padding: 10px 12px; font-size: 15px; text-align: left; text-decoration: none; color: var(--ink); }

  /* The bottom bar. It grows upward when More is open: the rest are full-width rows above it. */
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; order: 0; width: auto; overflow: visible; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 4px 4px max(4px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule); }
  .tabs[hidden] { display: none; }
  .tabs .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; margin: 0; padding: 6px 2px; border: 0; border-radius: 10px; background: none; font-size: 11px; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs .tab[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); }
  .tabs .tab .ticon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabs .tmore .ticon { stroke-width: 3.5; }
  .tabs .tlong { display: none; }
  .tabs .tab.lead { order: 1; } .tabs .tab[data-view="page"] { order: 2; } .tabs .tboard { order: 3; } .tabs .tbrain { order: 4; } .tabs .tmore { display: flex; order: 5; }
  .tabs .tab.extra { display: none; }
  .tabs.open { box-shadow: 0 -8px 30px rgba(0, 0, 0, .16); border-radius: 14px 14px 0 0; padding-top: 8px; }
  .tabs.open .tab.extra { display: block; order: 0; grid-column: 1 / -1; padding: 13px 16px; text-align: left; font-size: 13px; color: var(--ink); }
  .tabs.open .tab.extra[hidden] { display: none; }
  .tabs.open .tmore { color: var(--accent); }
  body:has(#tabs:not([hidden])) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* The message box: one row. Board is in the bottom bar and Learned under More. */
  .composer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; padding-block: 6px 8px; }
  .composer .controls { display: contents; }
  .composer textarea { order: 2; flex: 1; width: auto; min-width: 0; border: 1px solid var(--rule); border-radius: 20px; padding: 9px 10px; min-height: 40px; }
  .composer textarea:focus { border-color: var(--accent); }
  .composer textarea::placeholder { font-size: 13px; }
  .composer .plus { display: grid; order: 1; }
  .composer #folder, .composer #attach, .composer .learnedbtn { display: none; }
  .composer .mic { height: 36px; padding: 0 12px 0 9px; flex: none; margin-bottom: 2px; }
  .composer #mic { order: 3; }
  .composer .send { order: 4; flex: none; height: 40px; padding: 0 12px; }
  /* The voice line, full width above the box, on one line. */
  .composer .status { order: 0; flex: 1 1 calc(100% - 60px); min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .composer .status:empty { display: none; }
  .composer .meter { order: 0; align-self: center; }
  .composer .queued, .composer .staged { order: 0; flex: 1 1 100%; border: 1px solid var(--rule); border-radius: 12px; }
  /* The status line above it: one short line. */
  .boardbar { gap: 10px; }
  .boardline { padding: 4px 0; font-size: 12.5px; }
  #boardline-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .boardline-go { display: none; }
  .wkswitch { font-size: 12.5px; padding: 4px 0; }
}

/* Research with agents at work: the panel widens while it runs (`research.py`). */
body.researching .teach { --side: clamp(380px, 46vw, 760px); }
.research { overflow-y: auto; padding: 14px 18px 24px; }
.rs-head { display: flex; justify-content: space-between; align-items: baseline; }
.rs-q { font-size: 18px; margin: 4px 0 2px; }
.rs-status { margin: 0 0 12px; }
.rs-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 0 0 18px; }
.rs-agent { display: flex; gap: 8px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper, #fff); }
.rs-agent .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: 0 0 9px; background: #c9c4bb; }
.rs-agent.working .dot, .rs-agent.writing .dot { background: #2f6fd6; animation: rs-pulse 1.2s ease-in-out infinite; }
.rs-agent.done .dot { background: #2e8b57; }
.rs-agent.failed .dot { background: #c0392b; }
.rs-step { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3, #666); overflow-wrap: anywhere; }
.rs-doc { font-size: 14px; line-height: 1.55; border-top: 1px solid var(--rule); padding-top: 12px; }
.rs-doc h1 { font-size: 20px; } .rs-doc h2 { font-size: 16px; margin-top: 20px; }
.rs-doc table { border-collapse: collapse; font-size: 13px; } .rs-doc td, .rs-doc th { border: 1px solid var(--rule); padding: 4px 6px; }
@keyframes rs-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rs-agent .dot { animation: none !important; } }

/* How you write (`writing.py`), on the page beside the chat. */
.pwriting .pw-sum { margin: 4px 0 6px; font-weight: 600; }
.pwriting .pw-lines { margin: 0 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.pwriting .pw-lines li { margin: 2px 0; }
.pwriting .pw-foot { font-size: 12px; margin: 0 0 14px; }
/* What's new, under the bell (`leoapp/news.py`). */
.bell { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: 4px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); cursor: pointer; }
.bell svg { width: 19px; height: 19px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell:hover svg, .bell[aria-expanded="true"] svg { stroke: var(--accent); }
.belldot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #c0392b; color: #fff; font: 600 11px/18px var(--font-sans); text-align: center; }
.news { overflow-y: auto; padding: 14px 18px 24px; }
.nwtabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.nwtab { border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 13px/1 var(--font-sans); padding: 6px 12px; cursor: pointer; }
.nwtab[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.nwday { font: 600 12px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 6px; }
.nwitem { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; margin: 0 0 8px; background: var(--surface); }
.nwitem.unread { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.nwitem h4 { margin: 4px 0 2px; font-size: 14.5px; }
.nwitem p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.nwkind { font: 600 11px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nwkind.company { color: var(--warn); }
@media (max-width: 720px) { .bell { margin-left: 0; } }

/* How Leo understands the business: the card a new Leo opens on (`understand.py`). */
.uc { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; max-width: 82ch; width: 100%; align-self: flex-start; }
.uc-h { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.uc-sec { border-top: 1px solid var(--rule); padding: 12px 0 10px; }
.uc-sec:first-of-type { border-top: 0; }
.uc-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.uc-row h3 { font-size: 15px; margin: 0; flex: 1 1 auto; }
.uc-tag { font: 600 11px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.uc-tag.taught { color: var(--ok); }
.uc-text { margin: 4px 0 0; color: var(--ink-2); }
.uc-text.muted { font-size: 15px; }
.uc-form textarea { width: 100%; margin-top: 6px; font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.uc-form .dialog-row { display: flex; justify-content: flex-start; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.uc-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 4px; }
.uc-try-q { font-size: 13px; color: var(--ink-3); margin-right: 4px; }
.uc-try button { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); }
.uc-try button:hover, .uc-try button:focus-visible { background: color-mix(in srgb, var(--accent) 18%, transparent); }
@media (max-width: 520px) {
  .uc { padding: 16px; border-radius: 12px; }
  .uc-h { font-size: 18px; }
}

/* Goals: beside the chat for your own, on the Board for everybody's (`goals.py`). */
.goal { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.45; }
.goal.main .goal-h { font-weight: 600; }
.goal-bar { height: 5px; border-radius: 999px; background: var(--sunk); margin: 6px 0 4px; overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.goal-s { font-size: 12px; color: var(--ink-3); }
.bdgoals { max-width: 720px; margin-top: 8px; }
.goal-cover { margin: 6px 0 0; font-size: 12.5px; }

/* Tabs on the panel beside the chat, laid out as Navigator's (ticket 96): equal widths in one row,
   outlined, the chosen one filled. The picture keeps its figures; the other tabs do not show them. */
.btabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.btab { border: 1px solid var(--accent); border-radius: 6px; background: var(--surface); color: var(--accent); font: 600 13px/1 var(--font-sans); padding: 9px 6px; cursor: pointer; white-space: nowrap; }
.btab:hover { background: var(--accent-soft); }
.btab[aria-selected="true"] { background: var(--accent); color: var(--surface); }
.beside:not([data-tab="picture"]) .bfigs, .beside:not([data-tab="picture"]) .phappened { display: none; }
.sidetab { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px 18px 32px; }
.ib-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.ib-head select { flex: 1 1 auto; min-width: 0; font: 500 13px/1.2 var(--font-sans); padding: 5px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.ib-head .link { margin-left: auto; font-size: 13px; }
.ib-box { margin: 0 0 14px; }
.ib-addr { font: 600 12px/1.3 var(--font-sans); color: var(--ink-3); margin: 12px 0 4px; }
.ib-row { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 9px 2px; cursor: pointer; color: var(--ink-2); font: inherit; }
.ib-row:hover { background: var(--accent-soft); }
.ib-top { display: flex; gap: 8px; align-items: baseline; }
.ib-from { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ib-when { flex: 0 0 auto; font-size: 12px; color: var(--ink-3); }
.ib-subj { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ib-first { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-3); }
.ib-row.unread .ib-from, .ib-row.unread .ib-subj { font-weight: 700; }
.ib-row.unread .ib-from::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.ib-wait { background: var(--warn-soft); color: var(--warn); }
.ib-thread .rs-head { align-items: center; margin-bottom: 8px; }
.ib-subject { margin: 4px 0 10px; font-size: 15px; }
.ib-text { white-space: pre-wrap; word-break: break-word; font: 13px/1.5 var(--font-sans); color: var(--ink-2); margin: 0; }
.mt-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); padding: 9px 0; }
.mt-row .link { font-size: 13px; white-space: nowrap; }
body.presenting #bt-inbox, body.presenting #inbox, body.presenting #bt-calendar, body.presenting #calendar, body.presenting #bt-slack, body.presenting #slack { display: none !important; }

/* The Metrics tab, in the shape of the Premium Puzzles dashboard: a section rule, then tiles of a
   figure, what it was before and a change chip, green when the move is good and red when it is not. */
.mt-views { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.mt-view { border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 12.5px/1 var(--font-sans); padding: 6px 11px; cursor: pointer; }
.mt-view[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.mt-view.make { border-style: dashed; color: var(--ink-3); }
.mt-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); margin: 0 0 4px; }
.mt-sec { display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.mt-sec::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.mt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-tile { display: grid; gap: 6px; text-align: left; border: 1px solid var(--rule); border-radius: 8px; background: var(--ground, var(--surface)); padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.mt-tile:hover { border-color: var(--accent); }
.mt-tile.key { border-left: 3px solid var(--accent); }
.mt-label { font-size: 12px; color: var(--ink-2); }
.mt-info { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--warn); color: var(--warn); font: 700 9px/1 var(--font-sans); }
.mt-value { font: 600 22px/1.1 var(--font-sans); }
.mt-value small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.mt-value.good { color: var(--ok); }
.mt-value.bad { color: var(--rec); }
.mt-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.mt-chip { font: 600 11px/1 var(--font-sans); padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.mt-chip.up { background: var(--ok-soft); color: var(--ok); }
.mt-chip.down { background: var(--rec-soft); color: var(--rec); }
.mt-adapt { margin: 16px 0 0; font-size: 12.5px; }

/* The divider: a strip on the panel's left edge that moves it (Mike, 6 Nov 2026). */
.bdrag { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 5; touch-action: none; }
.bdrag::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.bdrag:hover::after, .bdrag:focus-visible::after, body.dragging .bdrag::after { background: var(--accent); }
body.dragging { cursor: col-resize; user-select: none; }
@media (max-width: 900px) { .bdrag { display: none; } }
/* The Calendar tab: the next week by day, times in the person's own zone. */
.cal-day { font: 600 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 6px; }
.cal-day:first-child { margin-top: 4px; }
.cal-ev { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.cal-ev.now { border-left: 3px solid var(--accent); padding-left: 8px; background: var(--accent-soft); }
.cal-time { font-size: 12.5px; color: var(--ink-2); }
.cal-time small { color: var(--ink-3); }
.cal-what { display: grid; gap: 2px; min-width: 0; }
.cal-what small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-acts { display: flex; gap: 12px; margin-top: 3px; font-size: 12.5px; }
.cal-acts .link { font-size: 12.5px; }
.cal-acts a { color: var(--accent); }
.mt-value.unmeasured { font-size: 14px; font-weight: 500; color: var(--ink-3); font-style: italic; }
/* The CRM card at the top of an opened email or Slack conversation (ticket 99). */
.crmcard { border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--ground, var(--surface)); padding: 8px 12px; margin: 0 0 12px; }
.crm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; font-size: 13px; }
.crm-head .link { font-size: 12.5px; }
.crm-text { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.45 var(--font-sans); color: var(--ink-2); margin: 6px 0 0; }
/* The tab chooser: a narrow button at the end of the row, and a small list of tabs to tick. */
.btabs { display: flex; }
/* Sized by its own word, so seven tabs fit: a short name gives its room to a long one (22 Nov 2026). */
.btabs .btab { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btabs .btab[hidden] { display: none; }
.btabs .btab.bt-more { flex: 0 0 28px; padding: 9px 0; border-color: var(--rule); color: var(--ink-3); }
.bhead { position: relative; }
.btchoose { position: absolute; right: 20px; top: 52px; z-index: 6; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); padding: 10px 14px; display: grid; gap: 6px; font-size: 13.5px; }
.btchoose p { margin: 0 0 2px; font-size: 12px; }
.btchoose label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
body.presenting #bt-crm, body.presenting #crm { display: none !important; }
/* The panel's columns may shrink: without this the tab labels, which never wrap, set the panel's
   width and pushed the page sideways (6 Nov 2026). */
.beside, .bhead { grid-template-columns: minmax(0, 1fr); }
.btabs { min-width: 0; }
/* The worked example's banner (ticket 100): on every screen, plainly. */
.exbanner { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 20px; background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--warn); font: 600 13px/1.3 var(--font-sans); }
.exbanner label { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink-2); }
.exbanner select { font: 500 13px/1.2 var(--font-sans); padding: 3px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.exleave { margin-left: auto; color: var(--warn); font-weight: 700; }
.exbanner[hidden], #example-open[hidden] { display: none; }
/* The worked example's walk through (ticket 100): the sessions replayed over the chat, with captions. */
.talk { position: relative; }
.tour { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; background: var(--ground); }
.tour[hidden] { display: none; }
.tour-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px max(26px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--rule); background: var(--surface); }
.tour-sessions { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-s { display: grid; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink-2); font: 600 12.5px/1.2 var(--font-sans); padding: 5px 10px; cursor: pointer; text-align: left; }
.tour-s small { font-weight: 400; color: var(--ink-3); }
.tour-s.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tour-controls { display: flex; gap: 8px; align-items: center; }
.tour-controls .outline:disabled { opacity: .4; cursor: default; }
.tour-controls .outline { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 8px 16px; font: 600 14px/1 var(--font-sans); cursor: pointer; }
.tour-log { flex: 1 1 auto; overflow-y: auto; padding: 16px max(26px, calc((100% - 900px) / 2)) 60px; display: grid; gap: 10px; align-content: start; }
.tour-start { text-align: center; padding: 18px 0 6px; }
.tour-start h3 { margin: 4px 0; }
.tour-go { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.tmsg { max-width: 78%; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.tmsg.leo { background: var(--surface); border: 1px solid var(--rule); justify-self: start; }
.tmsg.you { background: var(--accent-soft); justify-self: end; }
.ttag { display: block; font: 600 11px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.tcap { border-left: 4px solid var(--warn); background: var(--warn-soft); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.tcap-l { display: block; font: 700 11px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); margin-bottom: 5px; }
.tchip { justify-self: center; max-width: 86%; font-size: 12.5px; line-height: 1.45; padding: 6px 12px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); }
.tchip.learn { background: var(--ok-soft); color: var(--ok); }
.tchip.mine { background: var(--warn-soft); color: var(--warn); }
.tchip.ask { background: var(--accent-soft); color: var(--accent); }
.tchip.done { background: var(--ok-soft); color: var(--ok); }
.tour-doc { white-space: pre-wrap; font: 12.5px/1.5 var(--font-mono, monospace); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; max-height: 360px; overflow: auto; }
.exwatch { border: 0; background: var(--warn); color: var(--surface); border-radius: 999px; padding: 5px 14px; font: 700 13px/1 var(--font-sans); cursor: pointer; }
.tourfigs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 12px; }
.tourfigs div { display: grid; }
.tourfigs b { font-size: 22px; }
.tourfigs span { font-size: 12px; color: var(--ink-3); }
#tourside .plearn.fresh { background: var(--ok-soft); border-radius: 6px; }
body.touring .bfigs, body.touring .phappened { display: none; }
.ts-shape { margin: 0 0 12px; }

/* The worked example at work: drafts, files made, and the bar along the bottom on a whole view. */
.tdraft, .tmade { justify-self: center; width: min(560px, 92%); background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; display: grid; gap: 6px; }
.tmade { border-color: var(--ok); }
.tmade a { justify-self: start; text-decoration: none; }
.tdraft-l { font: 700 11px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tmade .tdraft-l { color: var(--ok); }
.tdraft dl { margin: 0; display: grid; gap: 2px; }
.tdraft dl div { display: flex; gap: 8px; }
.tdraft dt { min-width: 64px; color: var(--ink-3); }
.tdraft dd { margin: 0; }
.tdraft p { margin: 0; white-space: pre-wrap; }
.tourdock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; width: min(760px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 12px 14px; display: grid; gap: 10px; }
.tourdock[hidden] { display: none; }
.td-text:empty { display: none; }
.td-text .tmsg { max-width: none; }
.td-text .tchip, .td-text .tdraft, .td-text .tmade, .td-text .tcap { justify-self: stretch; width: auto; max-width: none; border-radius: 8px; }
.td-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.td-controls .outline { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 8px 16px; font: 600 14px/1 var(--font-sans); cursor: pointer; }
.td-controls .outline:disabled, .td-controls .primary:disabled { opacity: .4; cursor: default; }
.tour-flash { outline: 3px solid var(--warn); outline-offset: 3px; border-radius: 8px; }

/* The worked example's results page (Mike, 9 Nov 2026): the outcome at the centre. */
.exwatch.alt { background: var(--surface); color: var(--warn); border: 1px solid var(--warn); }
.view.results { overflow-y: auto; }
.rs-in { max-width: 980px; margin: 0 auto; padding: 28px 26px 80px; }
.rs-h { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 6px 0 10px; }
.rs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 22px 0 16px; }
.rs-tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; }
.rs-tile b { font-size: 40px; line-height: 1.05; color: var(--accent); }
.rs-m { font: 700 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rs-u { font-size: 13px; color: var(--ink-2); }
.rs-tile p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.rs-go { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 4px 0 30px; }
.rs-sec { font-size: 20px; margin: 10px 0 14px; }
.rs-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; margin: 0 0 14px; display: grid; gap: 12px; }
.rs-ch { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rs-ch h3 { margin: 0; font-size: 18px; }
.rs-st { font: 700 11px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.rs-st.partly { background: var(--warn-soft); color: var(--warn); }
.rs-st.notyet { background: var(--sunk); color: var(--ink-3); }
.rs-pf { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rs-pf dt, .rs-ba span { font: 700 11px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 4px; }
.rs-pf dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
.rs-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-ba div { background: var(--sunk); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.rs-ba div + div { background: var(--ok-soft); }
.rs-save { display: flex; flex-wrap: wrap; gap: 22px; align-items: baseline; }
.rs-save div { display: grid; }
.rs-save b { font-size: 26px; color: var(--accent); }
.rs-save span { font-size: 12.5px; color: var(--ink-2); }
.rs-save .wide span { font-size: 14px; color: var(--ink); }
.rs-w summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.rs-w p { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 6px 0 0; }
.rs-links { display: flex; flex-wrap: wrap; gap: 18px; }
.rs-note { margin-top: 26px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .rs-pf, .rs-ba { grid-template-columns: 1fr; } .rs-tile b { font-size: 32px; } }
.bdorigin { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; font-size: 13.5px; line-height: 1.45; }
.bdorigin summary { cursor: pointer; font-weight: 600; }
.bdorigin p, .bdorigin ul { margin: 6px 0; }
.bdorigin blockquote { margin: 8px 0; padding: 4px 10px; border-left: 3px solid var(--accent); background: var(--sunk); }
.bdexchange { margin-top: 6px; }
.outline-link { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 10px 18px; font: 600 14px/1 var(--font-sans); text-decoration: none; }
.outline-link.sm { padding: 7px 14px; font-size: 13px; }
.rs-more { margin-top: 22px; font-size: 15px; }
/* Presentation Mode (ticket 93, `presenting.py`): a ribbon round the whole screen, clearly thicker than
   any border line, so nobody in the room or at the keyboard can miss that the screen is being watched. */
:root { --pm: #C2410C; --pm-ink: #FFFFFF; --pm-w: 16px; }
.pmribbon { display: none; position: fixed; inset: 0; z-index: 9999; pointer-events: none; border: var(--pm-w) solid var(--pm); }
body.presenting .pmribbon { display: block; }
body.presenting { box-sizing: border-box; padding: var(--pm-w); }
.pmribbon span { position: absolute; background: var(--pm); color: var(--pm-ink); font: 700 11px/var(--pm-w) var(--font-sans); letter-spacing: .16em; text-transform: uppercase; padding: 0 16px; white-space: nowrap; }
.pmribbon .pm-top { top: calc(-1 * var(--pm-w)); left: 50%; transform: translateX(-50%); padding: 0 22px; border-radius: 0 0 8px 8px; line-height: calc(var(--pm-w) + 6px); }
.pmribbon .pm-bottom { bottom: calc(-1 * var(--pm-w)); left: 50%; transform: translateX(-50%); }
.pmribbon .pm-left, .pmribbon .pm-right { top: 50%; writing-mode: vertical-rl; padding: 16px 0; }
.pmribbon .pm-left { left: calc(-1 * var(--pm-w)); transform: translateY(-50%) rotate(180deg); }
.pmribbon .pm-right { right: calc(-1 * var(--pm-w)); transform: translateY(-50%); }
/* Present sits beside Thinking (Mike, 9 Nov 2026); on, it takes the ribbon's colour. */
.wkswitch.pmswitch { margin-left: 16px; }
.pmswitch input:checked + .wktrack { background: var(--pm); }
body.presenting .pmswitch b { color: var(--pm); font-weight: 600; }
.pmnote { margin: 8px auto; max-width: 720px; padding: 10px 14px; border: 1px solid var(--pm); border-radius: 10px; color: var(--ink); font-size: 14px; }
@media (max-width: 640px) { :root { --pm-w: 10px; } .pmribbon .pm-left, .pmribbon .pm-right { display: none; } }
#ts-north { margin: 0 0 14px; }

/* Recommendations (recommend.py): the due north, then cards ranked against it, each a line of moves. */
.fw:not(.two) .why-in.rcpage { max-width: 980px; }
.rc-north { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.rc-q { font: 500 18px/1.4 var(--font-sans); margin: 4px 0 6px; }
.rc-q.rc-none { color: var(--ink-2); }
.rc-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 10px; }
.rc-figs div { padding: 10px 12px; border-left: 1px solid var(--rule); display: grid; align-content: start; min-width: 0; }
.rc-figs div:first-child { border-left: 0; }
.rc-figs b { font: 600 24px/1.1 var(--font-sans); font-variant-numeric: tabular-nums; }
.rc-figs b.ac { color: var(--accent); }
.rc-figs span { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
#rc-push { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13.5px; color: var(--ink-2); margin-top: 16px; }
.rc-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.rc-seg button { border: 0; border-left: 1px solid var(--rule); background: var(--surface); padding: 5px 13px; font-size: 13px; }
.rc-seg button:first-child { border-left: 0; }
.rc-seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.rc-shelf { display: grid; gap: 10px; margin-top: 22px; }
.rc-sh { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.rc-sh h2 { font: 600 19px/1.2 var(--font-cond); margin: 0; }
.rc { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; display: grid; gap: 12px; background: var(--surface); }
.rc.rc-held { border-style: dashed; background: var(--ground); }
.rc.rc-out { opacity: .55; }
.rc-top { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.rc-rank { font: 500 13px var(--font-mono); color: var(--ink-3); padding-top: 3px; }
.rc h3 { font: 600 16px/1.3 var(--font-sans); margin: 0; text-transform: none; letter-spacing: 0; color: var(--ink); }
.rc-acts .outline { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 13px; font-size: 13.5px; color: var(--ink-2); }
.rc-acts .outline:hover { border-color: var(--accent); color: var(--accent); }
.rc-one { font-size: 14px; color: var(--ink-2); margin: 2px 0 0; }
.rc-proc { font-size: 12.5px; color: var(--ink-3); }
.rc-worth { text-align: right; display: grid; max-width: 200px; }
.rc-worth b { font: 600 22px/1.1 var(--font-sans); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-worth span { font-size: 12px; color: var(--ink-3); }
.rc-worth.rc-wait b { color: var(--ink-3); }
.rc-in { padding-left: 38px; display: grid; gap: 12px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-chip { font: 500 12px/1 var(--font-sans); padding: 5px 9px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); }
.rc-chip.k-improve { background: var(--ok-soft); color: var(--ok); }
.rc-chip.k-redesign, .rc-chip.k-people { background: var(--accent-soft); color: var(--accent); }
.rc-chip.k-eliminate { background: var(--rec-soft); color: var(--rec); }
.rc-chip.k-est { background: var(--warn-soft); color: var(--warn); }
.rc-moves { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.rc-mv { position: relative; padding: 10px 12px 10px 14px; border-top: 3px solid var(--c); background: var(--sunk); font-size: 13px; line-height: 1.4; min-width: 0; margin-right: 10px; border-radius: 0 0 8px 8px; }
.rc-mv:last-child { margin-right: 0; }
.rc-mv::after { content: ""; position: absolute; right: -10px; top: -3px; width: 10px; height: 3px; background: var(--rule); }
.rc-mv:last-child::after { display: none; }
.rc-n { font: 500 11px var(--font-mono); color: var(--ink-3); display: block; }
.rc-ty { font: 600 10.5px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--c); display: block; margin: 3px 0 5px; }
.rc-mv.m-move { --c: var(--ink-2); } .rc-mv.m-gain, .rc-mv.m-opens { --c: var(--ok); } .rc-mv.m-cost { --c: var(--warn); }
.rc-mv.m-people { --c: var(--accent); } .rc-mv.m-risk { --c: var(--rec); }
.rc-gates { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink); align-items: baseline; }
.rc-gates span:not(.rc-need)::before { content: "\25CB"; margin-right: 5px; color: var(--warn); }
.rc-need { color: var(--ink-2); flex-basis: 100%; }
.rc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-acts .way-why { flex-basis: 100%; }
.rc-gone { font-size: 14px; color: var(--ok); margin: 0; }
.rc-w summary { cursor: pointer; font-size: 13.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.rc-w p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); max-width: 75ch; }
@media (max-width: 820px) {
  .rc-north { grid-template-columns: minmax(0, 1fr); }
  .rc-moves { grid-auto-flow: row; gap: 8px; }
  .rc-mv { margin-right: 0; border-top: 0; border-left: 3px solid var(--c); border-radius: 0 8px 8px 0; }
  .rc-mv::after { display: none; }
  .rc-top { grid-template-columns: 22px minmax(0, 1fr); } .rc-worth { grid-column: 2; text-align: left; max-width: none; }
  .rc-in { padding-left: 0; }
}

/* Today, beside the chat (`loadToday`): a figure and a line a block. */
.today { overflow-y: auto; padding: 14px; }
#td-body { display: flex; flex-direction: column; gap: 12px; }
.td-blk { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.td-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.td-eye { margin: 0; font: 600 12px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.td-go { background: none; border: 0; padding: 0; color: var(--accent); font-size: 13px; font-weight: 500; white-space: nowrap; }
.td-go::after { content: " \203A"; }
.td-none { margin: 0; color: var(--ink-3); }
.td-north { background: var(--ink); color: var(--ground); border-color: transparent; }
.td-north .td-eye, .td-north .td-none { color: color-mix(in srgb, var(--ground) 62%, transparent); }
.td-north .td-none { margin: 8px 0 10px; }
.td-north h3 { font: 600 17px/1.3 var(--font-cond); margin: 8px 0 0; text-wrap: balance; }
.td-track { height: 10px; border-radius: 5px; margin-top: 12px; background: color-mix(in srgb, var(--ground) 18%, transparent); }
.td-track b { display: block; height: 100%; border-radius: 5px; background: var(--ground); }
.td-nrow { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; }
.td-nrow b, .td-pace b { font: 500 15px var(--font-mono); }
.td-pace { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ground) 18%, transparent); font-size: 13px; }
.td-north .link { color: inherit; }
.td-need { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 7px 0; background: none; border: 0; border-top: 1px solid var(--rule); text-align: left; }
.td-need:first-of-type { border-top: 0; }
.td-need .n { font: 500 20px/1 var(--font-mono); text-align: center; }
.td-need .n.hot { color: var(--rec); }
.td-need small { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-need em { font-style: normal; color: var(--accent); font-size: 13px; }
.td-title { font: 600 16px/1.3 var(--font-cond); margin: 0 0 4px; }
.td-one { margin: 0 0 8px; color: var(--ink-2); }
.td-chips, .td-acts { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.td-chips { margin-bottom: 10px; }
.td-hand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.td-hand:first-of-type { border-top: 0; padding-top: 0; }
.td-hand small { display: block; color: var(--ink-3); font-size: 12.5px; }
.td-st { align-self: start; max-width: 16ch; font-size: 12px; padding: 1px 7px; border-radius: 4px; background: var(--sunk); color: var(--ink-2); }
.td-st.wait { background: var(--warn-soft); color: var(--warn); }
.td-foot { margin: 8px 0 0; color: var(--ink-3); font-size: 12.5px; }
.beside[data-tab="today"] .bfigs, .beside[data-tab="today"] .phappened { display: none; }
/* Metrics: the small line on a tile, a change with no good direction, and the templates. */
.spark { width: 70px; height: 22px; flex: none; margin-left: auto; }
.spark path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.mt-chip.plain { background: var(--sunk); color: var(--ink-2); }
.mt-gallery { margin: 8px 0 4px; }
.mt-gallery summary { cursor: pointer; font: 600 12px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 6px 0; }
.mt-temps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-temp { display: grid; gap: 3px; text-align: left; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); padding: 10px 12px; font: inherit; color: var(--ink); }
.mt-temp:hover { border-color: var(--accent); }
.mt-temp span { color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.mt-temp small { color: var(--ink-3); font-size: 12px; }
.td-chips .rc-chip.big { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.td-chips .rc-chip.ok { background: var(--ok-soft); color: var(--ok); }

/* Metrics as a page: the whole dashboard, wide. The tab beside the chat is its snapshot. */
.view.mtpage-view { overflow-y: auto; padding: 24px 20px 48px; }
.mtpage { max-width: 1320px; margin: 0 auto; }
.mtpage h2 { font: 600 24px/1.2 var(--font-cond); margin: 0 0 14px; }
.mtpage .mt-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mtpage .mt-temps { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mtpage .mt-tile { padding: 14px 16px; background: var(--surface); }
.mtpage .mt-value { font-size: 26px; }
.mtpage .mt-sec { margin-top: 26px; font-size: 12px; }
.mt-whole { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 4px; }
.mtpage .mt-value.unmeasured { font-size: 15px; }

/* My page and the brain's overview (11 Nov 2026): figures and pictures first, prose on a press. */
:root { --mp-c1: #2447C9; --mp-c2: #1D7C3A; --mp-c3: #9A5B00; --mp-c4: #7B4BC4; --mp-c5: #5F6B7A; }
@media (prefers-color-scheme: dark) { :root { --mp-c1: #8FA6FF; --mp-c2: #6FCB8A; --mp-c3: #E7B45C; --mp-c4: #B99BEE; --mp-c5: #9AA5B1; } }
.pageview.mine2 { grid-template-columns: minmax(0, 1fr); }
.mine2 .pv-main > * { max-width: 1040px; }
.mp-head h2 { font: 600 26px/1.2 var(--font-cond); margin: 0 0 4px; }
.mp-live { margin: 0 0 16px; color: var(--ink-3); font-size: 13px; max-width: 90ch; }
.mp-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mp-fig { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.mp-fig b { font: 500 28px/1.1 var(--font-mono); }
.mp-fig b small { font: 400 13px var(--font-sans); color: var(--ink-3); }
.mp-fig span { font-size: 13px; color: var(--ink-3); }
.mp-fig.lead { background: var(--ink); border-color: transparent; color: var(--ground); }
.mp-fig.lead span { color: color-mix(in srgb, var(--ground) 65%, transparent); }
.mp-blk { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; min-width: 0; }
.mp-blk .ph, .mp-h .ph { margin: 0; }
.mp-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 10px; }
.mine2 .pv-main > .mp-sec { margin: 4px auto 10px; }
.mp-about { margin: 10px 0 0; color: var(--ink-3); font-size: 12.5px; }
.mp-viewer { border-left: 4px solid var(--accent); }
.mp-vsub { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; max-width: 70ch; }
.mp-vfind { display: flex; gap: 8px; margin-top: 4px; }
.mp-vfind input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; }
.mp-vsrc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mp-vs { border: 1px solid var(--rule); border-radius: 999px; background: var(--ground); color: var(--ink-2); font-size: 12.5px; padding: 4px 11px; }
.mp-vs:hover { border-color: var(--accent); color: var(--accent); }
.mp-stack { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--sunk); }
.mp-stack i { display: block; height: 100%; min-width: 3px; }
.mp-stack i.est { background-image: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--surface) 55%, transparent) 5px 8px); }
.mp-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 22px; margin-top: 12px; font-size: 13.5px; }
.mp-legend div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mp-legend u { flex: none; width: 10px; height: 10px; border-radius: 2px; align-self: center; }
.mp-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-legend b, .mp-legend .link { margin-left: auto; white-space: nowrap; }
.mp-legend b { font: 500 13.5px var(--font-mono); }
.mp-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mp-work { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--wc, var(--accent)); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.mp-wtop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mp-wtop h3 { font: 600 17px/1.3 var(--font-cond); margin: 0; }
.mp-hours { font: 500 20px var(--font-mono); white-space: nowrap; }
.mp-hours small { font: 400 12px var(--font-sans); color: var(--ink-3); }
.mp-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 12px 0; }
.mp-kv div { background: var(--sunk); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.mp-kv b { display: block; font: 500 18px/1.2 var(--font-mono); }
.mp-kv span { font-size: 12px; color: var(--ink-3); line-height: 1.3; display: block; }
.mp-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.mp-dots { display: inline-flex; gap: 3px; }
.mp-dots i { width: 9px; height: 9px; border-radius: 2px; background: var(--sunk); border: 1px solid var(--rule); }
.mp-dots i.on { background: var(--accent); border-color: var(--accent); }
.mp-line .rc-chip.big { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mp-line .rc-chip.warn { background: var(--warn-soft); color: var(--warn); }
.mp-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.mp-prose { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--rule); color: var(--ink-2); font-size: 13.5px; }
.mp-prose ul { margin: 0; padding-left: 18px; } .mp-prose li { margin-bottom: 6px; }
.mp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.mp-two .actbox { border-left: 3px solid var(--warn); }
.mp-self { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.mp-self summary, .mp-whole summary { cursor: pointer; font-weight: 600; }
.mp-whole { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.mp-whole[open] summary { margin-bottom: 10px; }
.mp-whole .pvdoc { border: 0; padding: 0; }
button.outline { background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 6px 12px; font-size: 13.5px; }
button.outline:hover { border-color: var(--accent); }
/* the brain's overview */
.bo { max-width: none; }
.bo-gauge { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.bo-gauge svg { width: 150px; height: 150px; }
.bo-gauge circle { fill: none; stroke-width: 14; }
.bo-gauge .bg { stroke: var(--sunk); } .bo-gauge .fg { stroke: var(--accent); stroke-linecap: round; }
.bo-gauge text { fill: var(--ink); font: 500 30px var(--font-mono); }
.bo-gauge h2 { font: 600 21px/1.3 var(--font-cond); margin: 0 0 6px; text-wrap: balance; }
.bo-gauge p { margin: 0; color: var(--ink-2); } .bo-gauge p b { font: 500 15px var(--font-mono); color: var(--ink); }
.bo-bars { display: grid; gap: 8px; }
.bo-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 46px; gap: 4px 10px; align-items: center; font-size: 13.5px; }
.bo-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-t { height: 10px; border-radius: 5px; background: var(--sunk); } .bo-t i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.bo-t i.low { background: var(--warn); }
.bo-row b { font: 500 13px var(--font-mono); text-align: right; }
.bo-next { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-3); margin-top: -2px; }
.bo-ppl { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-pp { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 13px; background: var(--surface); }
.bo-pp i { width: 26px; height: 26px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; font: 600 11px var(--font-cond); font-style: normal; }
.bo-pp small { color: var(--ink-3); }
@media (max-width: 560px) { .bo-gauge { grid-template-columns: minmax(0, 1fr); } .bo-row { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 40px; } }
/* The blueprint on the brain's overview. */
.bp-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.bp-a { border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
.bp-a.taught { border-left-color: var(--ok); } .bp-a.want { border-left-color: var(--accent); } .bp-a.not_done { opacity: .7; }
.bp-name { background: none; border: 0; padding: 0; text-align: left; display: grid; gap: 2px; color: var(--ink); }
.bp-name b { font: 600 15px/1.3 var(--font-cond); } .bp-name span { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.bp-name:hover b { color: var(--accent); }
.bp-acts { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bp-a .link { font-size: 12.5px; text-align: left; }

/* Support, in Leo's own Leo (ticket 51). */
.sup-card { padding: 14px 16px; margin: 0 0 12px; }
.sup-top { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 14px; }
.sup-words { margin: 10px 0 6px; white-space: pre-wrap; }
.sup-doing { margin: 0 0 6px; font-size: 14px; white-space: pre-wrap; }
.sup-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.sup-reply textarea { width: 100%; margin-top: 10px; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line, color-mix(in srgb, var(--ink-3) 25%, transparent)); background: var(--surface); color: inherit; }
