/* The room: the app's shell and project page (app/views/room.mjs), from the
   Oct 28 redesign (front10). The ground is the project's state (Nov 2); only
   quiet has a light and a dark, the device's. A project's thread keeps its classes
   (.log-row, .ask, ...) from app/views/tabs.mjs, whose script drives it. */
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url(/fonts/space-mono-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-display: swap; src: url(/fonts/space-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format('woff2'); }

/* The ground is the project's state (Nov 2, "Skelly, Loud"): the whole page takes one colour from it, said once in
   the header (room.mjs roomHead, data-light): black light while the crew works, phosphor when something needs you,
   neon when main's red, black when quiet (paper, on a device set to light: quiet is the one ground with a light and a
   dark; the states keep their colour whatever the device). Three hues and no others. The ink, the lines and the lit things flip with it,
   so every page follows without a rule of its own: on violet the phosphor stays lit; on phosphor or neon what was lit
   is black. The tokens are registered colours, so the change fades on the slow ease, everything at once. */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #101211; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #E3EBDA; }
@property --fg2 { syntax: '<color>'; inherits: true; initial-value: #a9b4a0; }
@property --mute { syntax: '<color>'; inherits: true; initial-value: #78846f; }
@property --faint { syntax: '<color>'; inherits: true; initial-value: #4f5848; }
@property --line { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --line2 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --acc { syntax: '<color>'; inherits: true; initial-value: #B9F27C; }
@property --acc-t { syntax: '<color>'; inherits: true; initial-value: #d6f7b0; }
@property --on-acc { syntax: '<color>'; inherits: true; initial-value: #0b0c0b; }
@property --uv { syntax: '<color>'; inherits: true; initial-value: #B48CFF; }
@property --uv-t { syntax: '<color>'; inherits: true; initial-value: #c8b0ff; }
@property --bad { syntax: '<color>'; inherits: true; initial-value: #FF7E5B; }
@property --bad-t { syntax: '<color>'; inherits: true; initial-value: #ffb39e; }
@property --sheet { syntax: '<color>'; inherits: true; initial-value: #141615; }
@property --code { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --field { syntax: '<color>'; inherits: true; initial-value: #B9F27C; }
@property --field-ink { syntax: '<color>'; inherits: true; initial-value: #070807; }
:root {
  color-scheme: dark;
  /* Motion: how long a change takes, by what it is (app/views/motion.mjs, and Motion below). Quick: something answering
     you (a hover, a word changing, what leaves). Move: something going somewhere (what enters, moves, resizes; a page;
     the menu). Hue: a colour changing, the ground's light, the dock's card, your lines in it, a need's row: every one
     the same, so a change of light moves through the room at once (the person, Nov 2: the fades were "too slow", the
     ground on 1.2 s, the dock on .7 s, a row on .6 s). Settle: something landing. Slow: older lines fading. */
  /* Motion's values (MOTION.md, The values): every time and curve the app moves by, said here once; scripts read
     them (skelly.ms, skelly.ease), never copy them. Arriving eases out, leaving eases in, moving goes rest to rest. */
  --m-press: 80ms; --m-quick: .14s; --m-move: .26s; --m-settle: .42s; --m-slow: .8s;
  --m-arrive: cubic-bezier(.16, 1, .3, 1); --m-leave: cubic-bezier(.5, 0, .75, 0); --m-glide: cubic-bezier(.65, 0, .35, 1);
  --m-type-rate: 80; --m-type-lag: 1500;   /* the crew's typing: letters a second at the least; caught up within, ms */
  --m-land: .9s;   /* a story landing: the one moment, under a second */
  --m-switch: 1ms;   /* a switch, not a fade: the room's ink as the light changes (any fade passes through the ground's colour) */
  --m-breath: 6s; --m-blink: 1s; --m-turn: 1s; --m-shimmer: 1.6s;   /* the room's own rhythms: breathing, a caret's blink, a ring turning, a picture waiting */
  --m-light-work: .9s; --m-light-need: .5s; --m-light-red: .3s; --m-light-quiet: 1.4s;   /* the room's light, by where it's going */
  --mono: 'Space Mono', ui-monospace, monospace; --sans: 'Space Grotesk', system-ui, sans-serif;
  /* Type (Nov 6, the person: "where the design is weakest is in its typography and layout"): three sizes of words and
     one of data, nothing else. 24 for a page's one heading, 17 for what you read, 14 for everything about it; a
     title is the body's size at 500, a label the small size at 500, sentence case, never tracked. Mono means a literal
     value (an id, a time, a hash, a line's number), never a sentence, a label or a button. Money is words: the sans,
     with tabular figures. */
  --t-page: 500 24px/1.3 var(--sans); --t-title: 500 17px/1.5 var(--sans); --t-body: 400 17px/1.6 var(--sans);
  --t-small: 400 14px/1.5 var(--sans); --t-label: 500 14px/1.45 var(--sans); --t-data: 400 12.5px/1.45 var(--mono);
  /* The grid: every page's words start on one edge and stop at one measure; faces, checks and numbers hang in the
     gutter before it (--hang); a long document's contents sit in a margin after it (--margin). */
  --measure: 66ch; --hang: 36px; --margin: 200px;
  /* The field: what something asking of you is filled with (the dock while it asks): phosphor on black, paper or
     violet, black on phosphor or neon. */
  --field: #B9F27C; --field-ink: #070807;
  --r: 6px; --r-in: 4px; --sh: 0,0,0;   /* corners: --r a surface, --r-in a control; no pills (the person, Nov 2: "i don't care for this rounded pill button"), a round thing is a circle */
  --you-bg: color-mix(in srgb, var(--acc) 8%, transparent); --you-line: color-mix(in srgb, var(--acc) 24%, transparent); --you-ink: var(--acc-t);
  --hover: color-mix(in srgb, var(--fg) 6%, transparent);
  /* Each room's ground and ink again, for the workspace menu to show every project in its own (.pop-list) from inside
     any room; the same as each room's --bg and --fg below, which stay plain colours (test/palette.test.mjs; that
     they match, test/room.test.mjs). Quiet's follow the device's light. */
  --work-bg: #4A1FD3; --work-fg: #F4EFFF; --need-bg: #B9F27C; --need-fg: #070807; --red-bg: #FF5A2E; --red-fg: #140705;
  --quiet-bg: #101211; --quiet-fg: #E3EBDA;
}
/* Quiet: the room's ground when no state lights it. Black, or paper on a device set to light. The brand's black, not
   the screen's (the person, Nov 6: "the black is too black"): white on #070807 glared, its greys sank. */
:root {
  --bg: #101211; --fg: #E3EBDA; --fg2: #a9b4a0; --mute: #78846f; --faint: #4f5848;
  --line: color-mix(in srgb, var(--fg) 8%, transparent); --line2: color-mix(in srgb, var(--fg) 15%, transparent);
  --acc: #B9F27C; --acc-t: #d6f7b0; --on-acc: #0b0c0b; --uv: #B48CFF; --uv-t: #c8b0ff; --bad: #FF7E5B; --bad-t: #ffb39e;
  --sheet: #141615; --code: rgba(0,0,0,.3); --glow: color-mix(in srgb, var(--acc) 45%, transparent);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --quiet-bg: #ECEDE6; --quiet-fg: #151814; --bg: #ECEDE6; --fg: #151814; --fg2: #555953; --mute: #7E827B; --faint: #A3A79F;
    --line: color-mix(in srgb, var(--fg) 9%, transparent); --line2: color-mix(in srgb, var(--fg) 17%, transparent);
    --acc: #9BE05A; --acc-t: #3f6b17; --on-acc: #0b0c0b; --uv: #8e63f2; --uv-t: #5f34cf; --bad: #c2410c; --bad-t: #a8350b;
    --sheet: #F4F5EF; --code: rgba(21,24,20,.06); --glow: color-mix(in srgb, var(--acc) 35%, transparent);
  }
}
:root:has(.top [data-light=work]) {
  color-scheme: dark;
  --bg: #4A1FD3; --fg: #F4EFFF; --fg2: #DCD0FF; --mute: #BBA8FA; --faint: #9277EC;
  --line: rgba(244,239,255,.16); --line2: rgba(244,239,255,.28);
  --acc: #B9F27C; --acc-t: #D6F7B0; --on-acc: #0b0c0b; --uv: #F4EFFF; --uv-t: #E4DAFF; --bad: #FF9A7A; --bad-t: #FFC2AE;
  --sheet: #3D18B8; --code: rgba(20,6,70,.35); --glow: color-mix(in srgb, var(--acc) 45%, transparent);
}
:root:has(.top [data-light=need]) {
  color-scheme: light;
  --bg: #B9F27C; --fg: #070807; --fg2: #22400A; --mute: #3B6514; --faint: #5E8F2E;
  --line: rgba(7,8,7,.14); --line2: rgba(7,8,7,.26);
  --acc: #070807; --acc-t: #1F3D06; --on-acc: #B9F27C; --uv: #4A1FD3; --uv-t: #3A17A8; --bad: #B5300A; --bad-t: #8E2406;
  --sheet: #ACE56E; --code: rgba(7,8,7,.08); --glow: transparent; --field: #070807; --field-ink: #B9F27C;
}
:root:has(.top [data-light=red]) {
  color-scheme: light;
  --bg: #FF5A2E; --fg: #140705; --fg2: #4A1206; --mute: #6E2411; --faint: #96391D;
  --line: rgba(20,7,5,.16); --line2: rgba(20,7,5,.28);
  --acc: #140705; --acc-t: #140705; --on-acc: #FF5A2E; --uv: #140705; --uv-t: #4A1206; --bad: #140705; --bad-t: #140705;
  --sheet: #F04E24; --code: rgba(20,7,5,.1); --glow: transparent; --field: #140705; --field-ink: #FF7E5B;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font: var(--t-body); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

::selection { background: var(--fg); color: var(--bg); }
/* The room breathing (no grain over it: the person, Nov 7, "let's do without grain"): while the crew works, or main's red, a soft light swells and settles over the
   ground; quiet and need hold still (a thing that's off has no light of its own). */
.breath { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0; background: radial-gradient(ellipse 80% 70% at 50% 40%, color-mix(in srgb, var(--fg) 14%, transparent), transparent 70%); }
/* The frame: header, the page between, the dock at the bottom. */
.room { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
/* One column for every page of the room, header to dock: a page never
   widens itself; text keeps its own measure inside it (72ch). */
.col { width: 100%; max-width: var(--colw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 36px); }
:root { --colw: 1080px; --railw: 232px; --g: clamp(16px, 4vw, 36px); --barw: 1400px; }
/* A project's page: two columns, the page and the rail beside it, in one wide column the bar spans: the name on the
   page's left edge, your mark on the rail's right. */
:root:has(.rail) { --colw: var(--barw); }
.body { flex: 1; min-height: 0; display: flex; width: 100%; max-width: var(--colw); margin: 0 auto; }
.body > main { flex: 1; min-width: 0; }
.body .csay { max-width: var(--measure); }
.body > main .col { max-width: none; }
.body > main .dock .col { max-width: calc(var(--measure) + var(--hang) + 32px); }
/* The rail: the crew's side of the room, the same on every page of a project, always three parts: now (the story the
   crew is on and for how long, each role at work with what it's doing, or that nobody is), next, and main. Yours is
   the dock. */
.rail { flex: none; order: -1; width: var(--railw); padding: 26px 24px 24px var(--g); overflow-y: auto; scrollbar-width: none; }
.rail > div { display: flex; flex-direction: column; gap: 22px; }
.rail .rk { margin: 0; font: var(--t-label); color: var(--mute); }
.rail .doing { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
/* The rail's head (the sketch): the project's name, its checks under it in the small size. */
.rail-proj { display: flex; flex-direction: column; gap: 2px; }
.rail-name { font: var(--t-title); color: var(--fg); overflow-wrap: anywhere; }
.rail-proj .mainr { display: flex; flex-direction: column; gap: 4px; }
.rail-proj .mainr .rk { font: var(--t-small); color: var(--fg2); }
.rail > div > :first-child { padding-top: 0; border-top: 0; }   /* a rule parts two groups: none over the first */
.rail .dl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font: var(--t-small); }
.rail .dl li { display: flex; gap: 10px; align-items: flex-start; }
.rail .dl .face { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--fg); }
.rail .dl b { font-weight: 500; margin-right: 4px; }
/* The role at it right now, its latest action in full ink; the rest of the sitting set back (lib/state.mjs now). */
.rail .dl li.by { color: var(--mute); }
.rail .dl li.by .face { color: var(--mute); }
.rail .dl li.now .w { overflow-wrap: anywhere; }
.rail .mainr .bad { color: var(--bad-t); font-weight: 500; }
/* Main's status, in the check/x everyone already reads off a CI badge: a passing repo says
   nothing (the person, Nov 3), so all clear is one line and only a failing repo gets a row. */
.rail .mainr .ic-row { display: flex; align-items: center; gap: 7px; }
.rail .ic-list li { align-items: center; }
.rail .ic { width: 15px; height: 15px; flex: none; color: var(--fg2); }
.rail .ic-row .ic { color: var(--fg2); }
.rail .own { margin: 0; font: var(--t-small); color: var(--fg2); }
@media (min-width: 1001px) { .dock .at { display: none; } }   /* the rail says how long the run has been going; on a phone, without the rail, the dock does */
.top { position: relative; z-index: 3; flex: none; background: var(--bg); border-bottom: 1px solid var(--line2); padding-top: env(safe-area-inset-top, 0px); }
/* The bar: skelly's own mark at its start, plain; the workspace and your mark together at its end, both centred on
   the bar's height (the person, after sitready's team switcher beside its account mark: "no project select
   indicator [on the wordmark] ... on the right of the menu would be the workspace menu / user menu"). The pages are
   the rail's. It's held across every page (data-stay, never redrawn), so it spans the room's one wide column
   always (--barw), whatever the page below it uses for its own (--colw) — the person: "the header layout is
   different on the settings page compared to the project page", a project's own column matching the bar's only
   because its rail needs the room, never the other way round. */
.top .col { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; font: var(--t-small); max-width: var(--barw); }
.wordmark { flex: none; margin-left: -4px; padding: 6px 8px; color: var(--fg); font: 700 15px var(--mono); letter-spacing: .02em; text-transform: lowercase; text-decoration: none; }
/* The workspace and your mark, at the bar's end (Nov 3, after sitready's team switcher beside its account mark):
   two plain things on the bar itself, no box of their own. (A 40 px box inside the 52 px bar crowded it, three
   shapes nested, a filled box, a button, a circle; the person: "different shapes smashed together".) The
   workspace is a word in the wordmark's own voice with a chevron after it, the project you're on, and opens the
   workspace's projects and Workspace Settings; your mark is a circle, ringed from inside so a dark picture still
   reads as a mark on a light ground, and opens Account Settings and Sign Out. Each menu hangs under the bar's
   rule, closing the other (ROOM_SCRIPT). */
.menu-combo { position: relative; flex: none; display: flex; align-items: center; gap: 8px; }
.wsbtn { flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 40vw; height: 32px; margin: 0; padding: 0 6px 0 8px; border: 0; border-radius: var(--r-in); background: transparent; color: var(--fg); font: var(--t-label); text-transform: lowercase; cursor: pointer; }
.wsbtn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsbtn:hover, .wsbtn[aria-expanded="true"] { background: var(--hover); }
.wsbtn svg { flex: none; width: 14px; height: 14px; color: var(--mute); }
.wsbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
/* A menu's popover, hanging under the bar's rule (the buttons are 32 px centred in the 52 px bar: 10 px to the bar's
   edge, its 2 px rule, 2 px of air): a surface (room.css [data-surface]), so closed (hidden) it's really gone, not
   just invisible (a hidden-but-laid-out box was still in the page's scrollable width on a narrow phone). */
.pop { position: absolute; z-index: 20; top: calc(100% + 14px); min-width: 210px; padding: 6px; border-radius: var(--r); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line2), 0 14px 30px rgba(var(--sh), .45); }
/* Both hang from the bar's right end, at any width: the bar's group sits at the screen's right edge, so a menu hung
   from the project's name ran off it (on a phone first, Nov 6; on a desktop too, Nov 7). */
#ws-menu, #you-menu { right: 0; }
.pop-list { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.pop-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-in); background: transparent; color: var(--fg); font: var(--t-small); text-align: left; text-decoration: none; cursor: pointer; }
.pop-item:hover { background: var(--hover); }
.pop form { display: contents; margin: 0; }
/* The pages: a card at the top of the rail, one row each, as the dock is a card at the foot of the page; the one
   you're on is solid ink, its words in the ground's colour. On a phone, without the rail's room, a strip over the page. */
.tabs { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: -4px -4px 0 -16px; padding: 4px; border-radius: 10px; font: var(--t-small); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 6px; color: var(--fg2); text-decoration: none; }
.tab:hover { color: var(--fg); background: var(--hover); }
.tab[aria-current] { color: var(--fg); background: var(--hover); font-weight: 500; }
/* The fill: the labels again in the ground's colour on the ink, laid out as the rows are and cut to the row of the
   page you're on (a row 38 px, 2 px between), over the real ones. */
.tab-fill { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 10px; background: color-mix(in srgb, var(--fg) 9%, var(--bg)); pointer-events: none;
  clip-path: inset(calc(4px + var(--i, 0) * 40px) 4px calc(100% - 42px - var(--i, 0) * 40px) 4px round 6px); }
.tab-fill .tab { color: var(--fg); font-weight: 500; }
@media (min-width: 1001px) { .tabs a.tab[aria-current] { color: var(--fg2); background: transparent; } }   /* under the fill: the fill is the one you're on */
.tab svg { width: 15px; height: 15px; flex: none; }
.rail { display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 1000px) {
  .body { flex-direction: column; }
  .rail { order: -1; flex: none; width: auto; padding: 10px var(--g) 0; overflow: visible; }
  .rail > [data-live], .rail-proj { display: none; }
  .tabs { flex-direction: row; flex-wrap: wrap; }   /* seven pages (Nov 10): a second row, never off the edge */
  .tab-fill { display: none; }   /* tabs of their words' widths: the one you're on is filled itself, and changes in place */
  .tab { height: 34px; gap: 7px; padding: 0 10px; }
  .top .daytab { margin-top: 56px; }
}
/* A phone: the tabs' words with no icons, sharing the rows, so none sits off its edge. */
@media (max-width: 480px) {
  .tab { flex: none; justify-content: center; padding: 0 clamp(5px, 2vw, 8px); }   /* each its words' width, the rows from the left: none stretched to fill a short row */
  .tab svg { display: none; }
}
@media (min-width: 1001px) {
  :root:has(.rail) .daytab { left: calc(var(--railw) + var(--g)); }   /* over the page's column, where the days are */   /* the day hangs under the pages' strip, not over it: the strip's 10 px above, 42 px tall, then 4 */
}
.youm { position: relative; flex: none; width: 28px; height: 28px; display: grid; place-items: center; overflow: hidden; border: 0; padding: 0; border-radius: 50%; background: color-mix(in srgb, var(--fg) 14%, transparent); color: var(--fg); font: 700 12px var(--mono); cursor: pointer; }
.youm img { width: 100%; height: 100%; display: block; object-fit: cover; }
.youm::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line2); pointer-events: none; }   /* the ring, over the picture */
.youm:hover, .youm[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }   /* a ring of ink with the ground between, so it reads over any picture (ink on a dark one would vanish) */
/* Words typing in over the page (motion.mjs reveal): the room's caret riding their end. */
.type-caret { z-index: 90; pointer-events: none; background: var(--acc); }
/* Words that change in place retype (motion.mjs skelly.retype), the room's caret at their end. */
.retyping::after { content: ""; display: inline-block; width: .5em; height: .9em; margin-left: .08em; vertical-align: -.1em; background: var(--acc); }
/* A landing's beat (ROOM_SCRIPT): the whole ground flashes toward the ink and settles back, the story's number at
   poster size rising over it, then it goes. At rest it's where the beat ends, clear and wordless, so the beat coming
   off as it's hidden changes nothing (it snapped back to a full ground and number before). */
.poster { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; background: transparent; }
.poster p { margin: 0; font: 500 clamp(64px, 12vw, 180px)/1 var(--sans); letter-spacing: -.045em; color: var(--fg); opacity: 0; }
/* The day you're reading, hanging from the bar's rule (ROOM_SCRIPT). */
.top .col { position: relative; }
.daytab { position: absolute; left: var(--g); top: 100%; margin-top: 1px; padding: 3px 9px 4px; border-radius: 0 0 5px 5px; background: var(--fg); color: var(--bg); font: var(--t-label); white-space: nowrap; pointer-events: none; }   /* a small inverted tab hanging from the bar's rule (1px down: the rule's own width, so it touches it), solid ink (the person, Nov 7: "i like the og one better" than the held divider) */

/* The project's page: the thread scrolling, the dock over its foot. */
.team-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* The dock is raised off the page (the person, Nov 2: "the text should flow under the dock and behind it instead of
   disappearing"): it floats over the page's foot, and what scrolls runs on behind it to the window's edge, never cut at
   the card's foot (Nov 8: "the text should flow all the way down off the page"). The page
   keeps its end clear by the dock's height, --dock-h (ROOM_SCRIPT measures it; a guess till then), so its last line
   rests above the dock, never under it. */
.team-main, .page-main { position: relative; }
.team-main:has(> .dock), .page-main:has(> .dock) { --dock-h: 128px; }
@media (max-width: 899px) { html.kb .room { height: var(--seen-h, 100%); } html.kb .dock { padding-bottom: 10px; } }
/* The thread. */
.team-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fg) 12%, transparent) transparent; }
.team-scroll > .col { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 24px; padding-bottom: calc(24px + var(--dock-h, 0px)); }
[data-thread] { display: flex; flex-direction: column; gap: 18px; max-width: calc(var(--hang) + var(--measure) + 32px); }   /* as wide as the dock under it: your lines end on its right edge, the crew's keep their measure */
.intro { margin: 0 0 18px; font: var(--t-small); color: var(--mute); max-width: var(--measure); }
.log-day { display: flex; align-items: center; gap: 12px; font: var(--t-label); color: var(--mute); padding: 6px 0; }
.log-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Coming back: what changed since you last read the thread, over its first new line (tabs.mjs sinceMark). */
.log-since { display: grid; gap: 2px; padding: 10px 0 4px; border-top: 1px solid var(--acc); }
.log-since-l { font: var(--t-label); color: var(--acc-t); }
.log-since-w { font: var(--t-small); color: var(--fg); }
.log-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; align-items: start; opacity: calc(.48 + .52 * var(--c, 1)); }
.log-head { display: contents; }
.log-who { grid-column: 1; grid-row: 1 / span 6; width: 22px; height: 22px; margin-top: 1px; color: var(--fg2); }
.who-mk { display: block; width: 22px; height: 22px; }
.who-mk .face, .who-mk img { width: 22px; height: 22px; display: block; }
.face.person { border-radius: 50%; display: grid; place-items: center; font: 700 10px var(--mono); background: var(--line2); color: var(--fg2); }
.log-meta { grid-column: 2; font: var(--t-label); color: var(--fg); margin: 0 0 2px; }
.log-row[data-author^="@"] .log-meta { color: var(--fg); }
.log-t { font: var(--t-data); color: var(--faint); margin-left: 8px; }
.log-txt { grid-column: 2; font: var(--t-body); color: var(--fg); max-width: var(--measure); overflow-wrap: anywhere; }
.log-txt > :first-child { margin-top: 0; } .log-txt > :last-child { margin-bottom: 0; }
.log-txt p { margin: 0 0 .6em; }
.log-txt code { font: var(--t-data); background: var(--code); padding: 1px 6px; border-radius: 3px; }
.log-txt pre { overflow-x: auto; background: var(--code); padding: 10px 12px; border-radius: var(--r); font: var(--t-data); }
.log-txt pre code { background: none; padding: 0; }
.log-txt a:not(.sref):not(.mention):not(.features-ref) { color: var(--acc-t); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
/* A message is one unit (Nov 7, the person: "long blobs of text and I can't tell what's an individual message /
   response and what is all connected"): its words in a box of their own, sized to them, under its face, name and
   time. A role's next line within a few minutes runs on under it as a box of its own (room.mjs sameRun), close but
   apart; a new speaker or a later line starts again with room above. Your words keep the field's block; the crew's
   quiet talk, a story's row and a draft of the vision their own looks. */
.log-row:not(.you):not(.talk):not(.frames-only) > .log-txt { justify-self: start; box-sizing: border-box; width: fit-content; padding: 10px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.log-row:not(.you):not(.talk) > .log-head .log-meta { margin-bottom: 6px; }
.log-row.cont { margin-top: -12px; }
.log-row.cont .log-who { visibility: hidden; }
.log-row.cont .log-meta { display: none; }
/* The crew's talk to each other (crew.said, a step under way; tabs.mjs teamMessage): quiet, one compact line under a
   small face, its role's name in a column as wide as the longest ("engineer"), so every talk line's words start on
   one edge; a line to the person stays full size (Nov 7: the person skims the talk and reads what's theirs). */
.log-row.talk { margin-top: -8px; }
.log-row.talk.cont { margin-top: -12px; }
.log-row.talk .log-meta { display: none; }
.log-row.talk .log-who { display: flex; justify-content: center; height: auto; margin-top: 3px; color: var(--mute); }
.log-row.talk .who-mk, .log-row.talk .who-mk .face { width: 15px; height: 15px; }
.log-row.talk .log-txt { display: flex; align-items: baseline; font: var(--t-small); color: var(--fg2); }
.log-row.talk .tk-n { flex: none; width: 9ch; margin-right: 12px; font: var(--t-data); color: var(--mute); }
.log-row.talk .tk-w { flex: 1; min-width: 0; }
.log-row.talk.cont .tk-n { visibility: hidden; }
/* Your lines: a block of the field on the right, no face, no name. */
.log-row.you { display: block; align-self: flex-end; max-width: min(60%, 560px); }
.log-row.you .log-head, .log-row.you .log-meta { display: none; }
.log-row.you .log-txt { padding: 10px 16px; border-radius: 6px; background: var(--field); color: var(--field-ink); font: var(--t-body); }   /* your words, a block of the field */
.log-row.you .log-txt a { color: inherit; }
@media (max-width: 760px) { .log-row.you { max-width: 85%; } }
/* The lead writing, in the thread and in a page's dock (parts.mjs LEAD_WAIT): its face lit, its draft typing in place, with the violet caret.
   In the font its line is said in: the draft typed in mono and snapped to sans once said (Nov 1). */
.log-row.thinking { opacity: 1; }
.log-row.thinking .log-who, .nowrow.writing > .m { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--uv) 70%, transparent)); color: var(--fg); }
.log-row.thinking .log-txt:empty::before { content: "…"; color: var(--mute); }
.log-row.thinking .log-txt::after, .log-row.typing .log-txt::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--uv); }   /* flat, no glow (the person, Nov 7) */
/* A line that comes in types itself (TEAM_SCRIPT): what it hasn't reached waits;
   the lead's answer that showed as it wrote settles from muted into its colour. */
.typing .tw { display: none; }
.tw-cur { display: inline-block; width: .5em; height: 1em; margin-left: 1px; vertical-align: -.12em; background: var(--uv); }
.log-doing { font: var(--t-small); color: var(--uv-t); }
/* A story's number written in a line is its pill (tabs.mjs storyPill): the number boxed, the title after it in the
   line's own words; it opens the story. The chip some lines still carry ("kept as #12") is a pill too. */
.chip { display: inline-flex; align-items: center; gap: 6px; font: var(--t-data); padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line2); color: var(--fg2); text-decoration: none; }
a.sref { display: inline; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; }   /* in its line's ink: the page's, or the field's in your block */
.sref-n { display: inline; font: var(--t-data); color: inherit; opacity: .62; padding: 0 5px 0 0; }
a.sref:hover .sref-n { opacity: 1; }   /* only the hover itself fades: a transition on the number alone would let it trail its line's ink */
.sref-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 28%, transparent); }
a.sref:hover .sref-t { text-decoration-color: currentColor; }
.sref-t { display: inline-block; max-width: min(24em, 100%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
/* In the thread a story's title wraps as the words around it do, the crew's and yours: kept whole on one line, it jumped to the next, away from its number, and in your bubble left your sentence in three pieces, the title cut with "…". */
.log-row .sref-t { display: inline; max-width: none; white-space: normal; overflow: visible; }
.sref-not { text-decoration: underline dashed var(--faint); text-underline-offset: 3px; }
.mention { color: var(--acc-t); text-decoration: none; }
/* A role of the crew named in a line (tabs.mjs crewAt): its face and its name, boxed as a story's number is, in the line's own ink. */
.crew-at { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; vertical-align: -.15em; line-height: 1.35; }
.crew-at .face { width: 1.05em; height: 1.05em; flex: none; }
/* Where a landed change is live, under the lead's landed line: quiet, a line for each site (live.mjs); nothing where it deploys nothing. */
.log-live { grid-column: 2; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; min-width: 0; overflow-wrap: anywhere; }
.log-live:empty { display: none; }
/* Something's wrong under a landed line: quiet, its words lined up with the line's own words (the button's padding set against the line's). */
.log-wrong { grid-column: 2; justify-self: start; margin: 2px 0 0 -2px; }
.log-live .sfv:not(.bad) { color: var(--fg2); }
.log-live a { color: var(--acc-t); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.log-img, .log-frames { grid-column: 2; display: block; margin-top: 8px; }
.log-row.you .log-img { margin-left: auto; }
.log-row.you .log-img[style] { width: min(calc(var(--pic-w) * 1px), 320px, 56vw); }   /* your bubble sizes to what's in it, so not a share of itself */
.log-img img { display: block; max-width: min(100%, 420px); max-height: 320px; width: auto; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.log-frames { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
@media (max-width: 760px) { .log-frames { grid-column: 1 / -1; } }   /* the full width under the face on a phone: frames keep their shape */
.log-frame { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
.log-frame a { display: block; line-height: 0; }
.log-frame img { display: block; box-sizing: content-box; width: auto; height: auto; max-height: 120px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--sheet); }   /* small, never drawn bigger than it was */
.log-frame figcaption { font: var(--t-small); color: var(--mute); }
.log-img { width: fit-content; max-width: min(320px, 100%); border-radius: var(--r); overflow: hidden; line-height: 0; }
.log-img img { width: 100%; max-height: none; }
.log-img[style] { width: min(calc(var(--pic-w) * 1px), 320px, 100%); }
.log-img.sending { position: relative; }
.log-img.sending img { opacity: .5; }
.say textarea.lifted::placeholder { color: transparent; }   /* your words lifted over the box, on their way to the thread (skelly.lift) */
.log-up { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; background: var(--line2); border-radius: 2px; overflow: hidden; }
.log-up span { display: block; height: 100%; width: 0; background: var(--acc); }
.sg-set { font: var(--t-small); color: var(--mute); }
.team-new:not([hidden]) { position: sticky; bottom: calc(var(--dock-h, 0px) + 8px); align-self: center; margin-top: 8px; padding: 5px 12px; border: 1px solid var(--line2); border-radius: var(--r-in); background: var(--sheet); color: var(--fg2); font: var(--t-label); cursor: pointer; }

/* The dock: one line from the lead (the ask itself, or what's happening), then your box. */
/* It is one object, the person's side of the room: a card under the page. Asking, it takes the field whole (phosphor,
   or black on a phosphor or neon ground), the question over the lead's line, which stays, smaller; answered, the
   colour drains as the question folds away. Inside the card the tokens are the field's, so what's in it follows. */
.dock { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 8px clamp(16px, 4vw, 36px) calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }   /* the page behind the card's margins scrolls and clicks as if the dock weren't there; the card takes them */
.dock .col { pointer-events: auto; display: flex; flex-direction: column; gap: 4px; max-height: calc(100dvh - 160px); overflow-y: auto; scrollbar-width: thin; }   /* a line taller than the window scrolls within the dock, never off its top */
/* The card's padding is the one edge: its rows sit flush inside it, the lead's mark over the box's picker, the line's words over the box's. */
.dock .col { max-width: calc(var(--measure) + var(--hang) + 32px); margin: 0; padding: 0; border-radius: var(--r); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line2);   /* one surface (Nov 6): the sheet, its edge; no box inside it */ }
.dock:has(.ask:not([hidden]):not(.folding)) .col {
  --bg: var(--field); --fg: var(--field-ink); --fg2: color-mix(in srgb, var(--field-ink) 82%, var(--field)); --mute: color-mix(in srgb, var(--field-ink) 66%, var(--field)); --faint: color-mix(in srgb, var(--field-ink) 48%, var(--field));
  --line: color-mix(in srgb, var(--field-ink) 16%, transparent); --line2: color-mix(in srgb, var(--field-ink) 30%, transparent);
  --acc: var(--field-ink); --acc-t: var(--field-ink); --on-acc: var(--field); --uv: var(--field-ink); --uv-t: var(--field-ink); --glow: transparent;
  background: var(--field); box-shadow: none; }
/* Main red and its fix yours: the loudest the room gets. The ground stays neon, and the dock asking the fix is phosphor, black
   on it, the way out lit against the red (the person, Nov 2). Only that ask: anything else asked on red keeps the red field. */
.dock:has(.ask[data-need=main]:not([hidden]):not(.folding)) .col { --field: #B9F27C; --field-ink: #070807; }
/* Main red and the crew on its fix (the person, Nov 7: "room stays red, but the dock is violet and breathing"): the
   ground stays neon, and the dock, nothing in it asked, is the crew's black light, the room's one sign of life
   breathing in it while the room holds still (MOTION.md rule 7). Its colours are the violet ground's. */
:root:has(.top [data-dock=work]) .dock .col {
  color-scheme: dark;
  --bg: #4A1FD3; --fg: #F4EFFF; --fg2: #DCD0FF; --mute: #BBA8FA; --faint: #9277EC;
  --line: rgba(244,239,255,.16); --line2: rgba(244,239,255,.28);
  --acc: #B9F27C; --acc-t: #D6F7B0; --on-acc: #0b0c0b; --uv: #F4EFFF; --uv-t: #E4DAFF; --bad: #FF9A7A; --bad-t: #FFC2AE;
  --sheet: #3D18B8; --code: rgba(20,6,70,.35); --glow: color-mix(in srgb, var(--acc) 45%, transparent);
  animation: dock-breathe var(--m-breath) ease-in-out var(--m-slow) infinite; }
@keyframes dock-breathe { 50% { background-color: color-mix(in srgb, var(--fg) 12%, var(--sheet)); } }
.dock .ask.need, .dock .ask.need.v { background: transparent; }
.dock .ask .hl { font: var(--t-title); }
.dock .btn.no { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.dock .nowrow { margin-left: 0; margin-right: 0; padding: 12px 14px 10px; }
.dock .nowrow > .m { width: 18px; height: 18px; margin-top: 2px; }
.dock .nowrow > .m .face { width: 18px; height: 18px; }
.dock .rest .hl { font: var(--t-small); color: var(--fg2); }
.dock .nowrow.at { margin-top: -8px; padding: 0 12px 6px 48px; }
/* The box stands in from the card's edge as the rows' words do (Nov 2: flush at 4px it read as the card's floor):
   8px more at the sides and the foot, its words still on the rows' edge (52px), the picker under the lead's mark. */
/* Your box: a well of its own in the card, the picker under the lead's mark (both 18px, one column), your words on
   the line's edge, Send centred on a one-line box (all three on its middle: 26px up from the row's foot). */
.dock .say { margin: 0 6px 6px; padding: 6px 8px 6px 40px; border-radius: var(--r-in); background: var(--code); }   /* sunk into the card, by fill, not under a hairline (the person, Nov 7: "the part you type into could be a little more obvious and differentiated from the section above it"); 6px in, so its words and picker still sit on the line's */
.dock .say:focus-within { background: var(--code); }
.dock:has(.ask:not([hidden]):not(.folding)) .say { background: color-mix(in srgb, var(--field-ink) 8%, transparent); }   /* asking, the well is the field's ink, faint */
.dock .say textarea { min-height: 40px; padding: 6px 0; }
.dock .say [type=submit] { min-height: 32px; margin-bottom: 4px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line2); }
.dock .say-pick { left: 0; bottom: 9px; }
.dock .say-pick svg { width: 18px; height: 18px; }
/* The image you picked is in your box (the person, Nov 7: "make the attached files look better"; it sat on the card's
   edge between the line and the box): the box's fill runs under it and your words as one well, its top corners the
   box's, the picture on your words' edge. */
.dock .say-thumb:not([hidden]) { margin: 0 6px -4px; padding: 10px 8px 4px 40px; border-radius: var(--r-in) var(--r-in) 0 0; background: var(--code); }
.dock:has(.ask:not([hidden]):not(.folding)) .say-thumb { background: color-mix(in srgb, var(--field-ink) 8%, transparent); }
.dock .say-thumb:not([hidden]) + .say { border-top-left-radius: 0; border-top-right-radius: 0; }
.nowrow { display: flex; gap: 12px 14px; align-items: flex-start; margin: 0 -14px; padding: 12px 14px; border-radius: var(--r); }
.nowrow > .m { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--fg2); }
.nowrow > .m .face { width: 22px; height: 22px; display: block; }
.nt { flex: 1; min-width: 0; }
.hl { margin: 0; font: var(--t-body); color: var(--fg); text-wrap: pretty; overflow-wrap: anywhere; }   /* whole, never clipped: the dock says the message (Oct 31) */
.hl b { font-weight: 500; }
.ask.need { background: color-mix(in srgb, var(--acc) 5%, transparent); }
.ask.need.v { background: color-mix(in srgb, var(--uv) 6%, transparent); }
.ask[hidden], .rest[hidden] { display: none; }
.ask { align-items: center; }
.ask > .m { margin-top: 0; }
/* Asking, the lead's line stays under the question, smaller, without a second mark. */
.dock:has(.ask:not([hidden]):not(.folding)) .rest { padding-top: 0; padding-bottom: 2px; padding-left: 48px; }   /* its words under the question's */
.dock:has(.ask:not([hidden]):not(.folding)) .rest > .m { display: none; }
.dock:has(.ask:not([hidden]):not(.folding)) .rest .hl { font: var(--t-small); }
/* A page's first visit: the lead says what the page is, the second half quieter. */
.hl .dim { color: var(--mute); }
.btns { flex: none; display: flex; gap: 4px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-in); font: var(--t-label); border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn.no { border: 0; background: transparent; color: var(--mute); }
.btn.no:hover { color: var(--fg); }
.btn.go { background: var(--acc); color: var(--on-acc); box-shadow: 0 0 22px var(--glow); }
.btn.go.v { background: var(--uv); box-shadow: 0 0 22px color-mix(in srgb, var(--uv) 45%, transparent); }
@media (max-width: 760px) {
  .nowrow { margin: 0 -8px; padding: 12px 8px; flex-wrap: wrap; }
  .btns { width: 100%; padding-left: 36px; justify-content: flex-end; }
  /* The dock's own line and the page's act (Go, Something's wrong) share a row while the line fits beside the act, the
     act at its end; a longer line takes the card's width beside the face and the act goes under it (Nov 9: squeezed
     beside it, a long line was a column of three words a row). */
  .dock .rest { flex-wrap: wrap; align-items: flex-start; }
  .dock .rest > .nt { flex: 1 1 auto; max-width: calc(100% - 32px); }   /* never wider than beside the face: it's the act that wraps */
  .dock .rest:has(> .btns) > .nt { padding-top: 9px; }
  .dock .rest:has(> .btns) > .m { margin-top: 11px; }   /* with an act, the line's first words on its middle and the face on them, however many lines it runs to */
  .dock .rest > .btns { width: auto; margin-left: auto; padding-left: 0; }
}
/* Your box: a fill a step lighter than what it sits on, no edge, so it reads as the place to write on every ground
   without calling out; lighter still while you write in it. Its words on the thread's text edge; Send never glows.
   (Nov 2, the person: "too subtle"; then no hairline, "lighten up the input background just a little bit".) */
.say { position: relative; display: flex; align-items: flex-end; gap: 8px; margin: 0 -14px; padding: 5px 5px 5px 50px; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 10%, transparent); }
.say:focus-within { background: color-mix(in srgb, var(--fg) 13%, transparent); }
.say textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 40vh; padding: 9px 0; resize: none; background: transparent; border: 0; outline: 0; color: var(--fg); font: var(--t-body); }
.say textarea::placeholder { color: var(--mute); }
.say [type=submit] { min-height: 40px; padding: 0 18px; border-radius: var(--r-in); border: 0; background: transparent; color: var(--fg); font: var(--t-label); cursor: pointer; }
.say [type=submit]:disabled { color: var(--faint); cursor: default; }
.say-pick { position: absolute; left: 10px; bottom: 7px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--mute); cursor: pointer; border-radius: var(--r-in); }
.say-pick:hover { color: var(--fg2); background: var(--hover); }
.say-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.say-thumb:not([hidden]) { display: block; margin-bottom: 4px; }
.say-thumb span { position: relative; display: inline-block; }
.say-thumb img { max-height: 72px; max-width: 240px; border-radius: var(--r-in); display: block; box-shadow: 0 0 0 1px var(--line); }   /* its edge drawn, so a picture the colour of the box still ends */
.say-take { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border-radius: var(--r-in); border: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--fg); font: 15px/1 var(--sans); cursor: pointer; }   /* inside its corner, on the picture */
.say-take:hover { background: var(--bg); }
.say.drag { box-shadow: inset 0 0 0 1px var(--acc); }   /* lit the moment an image is over it, gone the moment it drops */
@media (max-width: 760px) { .say { margin: 0 -8px; padding-left: 44px; } .say-pick { left: 6px; } }

.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(2,3,2,.62); backdrop-filter: blur(3px); }
.scrim[hidden] { display: none; }
.links { display: flex; flex-wrap: wrap; }
.links:not(:has(> :not([hidden]))) { display: none; }   /* nothing offered: no row */
.install-sheet { position: fixed; z-index: 72; left: 16px; right: 16px; bottom: 16px; padding: 18px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line2); }
.install-sheet[hidden] { display: none; }

@media (min-width: 2200px) { .col { max-width: 1320px; } }
/* Motion (MOTION.md: the rules, the values, every moment). Scripts move what changes on a page (app/views/motion.mjs);
   what's here is what CSS moves itself. Every time and curve is a value above. */

/* Page to page: the frame holds and the page is there at once (motion.mjs brings its content up). The browser's
   transition only carries what's on both pages: what travels whole (same) and words that retype (carry). The page
   is painted whole (room.mjs: the head's render-blocking expect), so nothing here ever shows a page half-drawn. */
@view-transition { navigation: auto; }
.ground { position: fixed; inset: 0; z-index: 0; background: var(--bg); pointer-events: none; }
::view-transition-group(*) { animation-duration: var(--m-move); animation-timing-function: var(--m-glide); }
::view-transition-old(root) { animation: none; opacity: 0; }
::view-transition-new(root) { animation: none; }
::view-transition-old(*.same), ::view-transition-new(*.same) { height: 100%; object-fit: contain; object-position: left center; }
::view-transition-old(*.carry) { animation: none; opacity: 0; }
::view-transition-new(*.carry) { animation: none; inline-size: auto; }

/* The project changed state: the room's light. The ground (and what's drawn as ground: the sheet, the lines, the
   dock's field) moves for --m-light, set by motion.mjs as the light changes to the time of where it's going; the ink
   switches in one frame at --m-ink-at, the moment the new ink reads better on the ground than the old (worked out
   there), the dock's ink at its own moment. While it changes the dock has no transition of its own, so it changes
   with the room as one surface (.lighting). */
:root {
  --m-light: var(--m-light-need); --m-light-ease: var(--m-arrive); --m-ink-at: calc(var(--m-light) * .2); --m-field-ink-at: var(--m-ink-at);
  transition: --bg var(--m-light) var(--m-light-ease), --sheet var(--m-light) var(--m-light-ease), --line var(--m-light) var(--m-light-ease), --line2 var(--m-light) var(--m-light-ease),
    --code var(--m-light) var(--m-light-ease), --glow var(--m-light) var(--m-light-ease), --field var(--m-light) var(--m-light-ease),
    --fg var(--m-switch) linear var(--m-ink-at), --fg2 var(--m-switch) linear var(--m-ink-at), --mute var(--m-switch) linear var(--m-ink-at), --faint var(--m-switch) linear var(--m-ink-at),
    --acc var(--m-switch) linear var(--m-ink-at), --acc-t var(--m-switch) linear var(--m-ink-at), --on-acc var(--m-switch) linear var(--m-ink-at), --uv var(--m-switch) linear var(--m-ink-at), --uv-t var(--m-switch) linear var(--m-ink-at),
    --bad var(--m-switch) linear var(--m-ink-at), --bad-t var(--m-switch) linear var(--m-ink-at), --field-ink var(--m-switch) linear var(--m-field-ink-at);
}
/* The dock lit by an ask, or put out: something changed, on the move's time. While the light changes nothing runs a
   colour transition of its own: everything takes the room's colours in the room's frames (rule 9). */
.dock .col { transition: background-color var(--m-move) var(--m-glide), box-shadow var(--m-move) var(--m-glide); }
.lighting *, .lighting *::before, .lighting *::after { transition-property: none !important; }
/* While the crew works or main is red, the room breathes; quiet and need hold still; the crew's dock on red breathes in its place. */
:root:has(.top [data-light=work]) .breath, :root:has(.top [data-light=red]:not([data-dock])) .breath { animation: breathe var(--m-breath) ease-in-out var(--m-slow) infinite; }
@keyframes breathe { 50% { opacity: 1; } }

/* You did something: a press answers on pointer-down; a hover comes in quick and lets go slowly; focus is at once.
   What fades is the fill and the edge; words take their colour at once, so they're never a frame behind the room's
   ink (a word fading on its own trails its line: a story's pill beside its sentence). */
:is(button, .btn, .tb, .tab, .wsbtn, .youm, .snav a, .sstep, .six a, .features-id, .features-ref, .ed, a.sref .sref-n) {
  transition: background-color var(--m-move) var(--m-glide), box-shadow var(--m-move) var(--m-glide), scale var(--m-press) var(--m-arrive);
}
:is(button, .btn, .tb, .tab, .wsbtn, .youm, .snav a, .sstep, .six a, .features-id, .features-ref, .ed, a.sref .sref-n):hover { transition-duration: var(--m-quick), var(--m-quick), var(--m-press); }
:is(button, .btn, .tb, .tab, .wsbtn):active:not(:disabled) { scale: .97; transition-duration: var(--m-press); }
:is(.say, .sfind input, .ed):focus-within, .ed:focus-visible { transition: none; }
.wsbtn svg { transition: rotate var(--m-move) var(--m-glide); }
/* What a row shows when it's pointed at (its actions): there quick, gone slowly. */
.track .acts, .wb { transition: opacity var(--m-move) var(--m-glide), translate var(--m-move) var(--m-glide); }
:is(.track .row, .sl):hover :is(.acts, .wb) { transition-duration: var(--m-quick); }
/* A line in Features lit as you go through the features: something changed, on the move. */
.features-sec .features-lines li.sl, .features-id { transition: background-color var(--m-move) var(--m-glide); }

/* Surfaces over the page (skelly.show: a menu, a dialog, the scrim, the new-lines pill, the viewer) move nothing
   when they open: they arrive quick, lifting a little, and leave quicker. */
[data-surface] { transition: opacity var(--m-quick) var(--m-arrive), translate var(--m-quick) var(--m-arrive), display var(--m-quick) allow-discrete, overlay var(--m-quick) allow-discrete; }
[data-surface][hidden], dialog[data-surface]:not([open]) { opacity: 0; translate: 0 4px; transition-timing-function: var(--m-leave); transition-duration: calc(var(--m-quick) * .7); }
@starting-style { [data-surface]:not([hidden]) { opacity: 0; translate: 0 4px; } dialog[data-surface][open] { opacity: 0; translate: 0 4px; } }
.shotbox img.anim { transition: transform var(--m-quick) var(--m-arrive); }

/* The crew said something. One caret blinks where the crew's words will start while it thinks, and nowhere else;
   while words type, the caret rides their end and doesn't blink (motion.mjs). A line that lands on its draft takes
   its own colour as it settles. Older lines fade back slowly, as they age. */
.log-row.thinking .log-txt::after { animation: caret var(--m-blink) steps(1, end) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.land .log-txt { animation: land var(--m-settle) var(--m-arrive); }
@keyframes land { from { color: var(--mute); } }
.log-row { transition: opacity var(--m-slow) var(--m-glide); }
.log-row.typing .log-txt::after, .log-row.thinking .log-txt:has(.tw-cur)::after { content: none; }   /* the typing caret is the one riding the words (.tw-cur): the lead's draft typing in its row too, never two (the person, Nov 7: "two cursors??") */
.log-img.sending img { opacity: .5; }
.say textarea.lifted::placeholder { color: transparent; }   /* your words lifted over the box, on their way to the thread (skelly.lift) */

/* Something finished: a story landing, once, under a second, taking no click. */
.poster:not([hidden]) p { animation: land-word var(--m-land) var(--m-arrive) both; }
/* It goes on its own animation, the last fifth of the beat on the glide (as a keyframe's curve the arrive curve
   dropped it in a few frames, a snap, and a var() isn't read there). */
.poster:not([hidden]) { animation: land-flash var(--m-land) var(--m-arrive) both, land-go calc(var(--m-land) * .22) var(--m-glide) calc(var(--m-land) * .78) both; }
@keyframes land-flash { 0% { background: transparent; } 14% { background: var(--fg); } 42% { background: var(--bg); } 100% { background: var(--bg); } }
@keyframes land-word { 0%, 12% { opacity: 0; scale: .96; color: var(--bg); } 40% { opacity: 1; scale: 1; color: var(--fg); } 100% { opacity: 1; } }
@keyframes land-go { to { opacity: 0; } }

/* Waiting: main being checked turns the rail's ring; a picture not there yet shimmers only once it's been waiting
   --m-slow (a fast load never flashes), and one that arrives late fades in. */
.rail .ic.spin { animation: spin var(--m-turn) linear infinite; }
@keyframes spin { to { rotate: 1turn; } }
[data-pics] .pic:not([data-in]) { animation: shimmer var(--m-shimmer) var(--m-glide) var(--m-slow) infinite both; }
@keyframes shimmer { 0%, 100% { background-color: var(--line); } 50% { background-color: var(--line2); } }
.pic[data-in="late"] { animation: arrive var(--m-quick) var(--m-arrive); }
@keyframes arrive { from { opacity: 0; } }

/* Someone who'd rather no motion (MOTION.md rule 10): nothing animates; the page still changes and says the same. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } @view-transition { navigation: none; } }

/* The picture viewer (viewer.mjs) and pictures holding their boxes, as the old stylesheet had them. */
dialog.shotbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in oklab, var(--bg) 97%, transparent); color: var(--fg); overflow: hidden; touch-action: none; }
dialog.shotbox[open] { display: flex; align-items: center; justify-content: center; }
dialog.shotbox::backdrop { background: transparent; }
html:has(dialog.shotbox[open]) { overflow: hidden; }
.shotbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shotbox img { display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 132px); width: auto; height: auto; border: 1px solid var(--line); background: var(--sheet); }
.shotbox-row { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; }
.shotbox-cap { min-width: 6em; text-align: center; font-size: 14px; color: var(--fg2); }
.shotbox-x, .shotbox-go { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--sheet); color: var(--fg); font: inherit; font-size: 16px; cursor: pointer; }
.shotbox-x { position: absolute; z-index: 3; top: 16px; right: 16px; }
.shotbox.one .shotbox-go { visibility: hidden; }
/* On a phone the page runs under the status bar: the ✕ sits just below it, larger, and the picture and its row fit between it and the home indicator. */
@media (max-width: 600px) {
  dialog.shotbox { box-sizing: border-box; padding: calc(env(safe-area-inset-top) + 64px) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  .shotbox img { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 64px - 72px); }
  .shotbox-x { width: 48px; height: 48px; top: calc(env(safe-area-inset-top) + 8px); right: calc(env(safe-area-inset-right) + 12px); font-size: 18px; }
}
@media (hover: hover) { .shotbox-x:hover, .shotbox-go:hover { border-color: var(--line2); } }
/* A picture in the thread (tabs.mjs sized, .pic): its box is there from the
 * start, as big as the picture will be (--pic-w × --pic-h, its pixels), and it waits
 * in it as a bone does, the black light passing over it after the first
 * 400ms, until it arrives (data-in; the page's script watches, data-pics); one arriving after the page opened fades
 * in. Never drawn bigger than it was. */
.log-frame a[style], .log-img[style] {
  --pic-w: 4;   /* the picture's own, set inline */
  --pic-h: 3;
}
.log-frame a[style] .pic { width: min(calc(var(--pic-w) * 1px), calc(120px * var(--pic-w) / var(--pic-h))); height: auto; aspect-ratio: var(--pic-w) / var(--pic-h); }   /* its width set, its height from its shape: narrower than that (max-width), it keeps its shape */
.log-img[style] { width: min(calc(var(--pic-w) * 1px), 320px, 100%); }
.log-img[style] .pic { aspect-ratio: auto var(--pic-w) / var(--pic-h); }
[data-pics] a:not([style]) > .pic:not([data-in]) { min-width: 90px; min-height: 90px; }   /* one whose size isn't known */
[data-pics] .pic:not([data-in]) { color: transparent; background-color: var(--line); }


/* A project's place that isn't the thread (Vision, Product): the page scrolling, the dock under it. */
.page-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.page-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fg) 12%, transparent) transparent; }
.pg { display: flex; flex-direction: column; padding-top: 56px; padding-bottom: calc(40px + var(--dock-h, 0px)); }
/* Vision (vision.mjs): two regions, open as Work's are (.wreg, .wh): a hairline and its name start each, space groups
   them. What it is: the one line at page size, as the thread draws the lead's draft (.vd-what), and For, Promise and
   Not as names and their words (.vd-parts). Principles: numbered in the gutter, one line each. As wide as the dock
   under it, its words on the page's one edge (--hang in). No title: the tab names the page. The lead's draft: on its black-light edge above, its words under each
   part it would change. */
.body .sdoc.vision-doc { gap: 40px; max-width: calc(var(--measure) + var(--hang)); padding-left: var(--hang); }   /* the words on the one edge, as Work's and Features', and their rules as wide as them */
.vreg { display: flex; flex-direction: column; gap: 16px; }
.vreg + .vreg { padding-top: 16px; border-top: 1px solid var(--line2); }   /* as Work's (.wmain .wreg + .wreg) */
.vreg > .wh { flex-wrap: wrap; row-gap: 2px; margin: 0; white-space: nowrap; }
.vreg > .wh .hint { white-space: normal; }   /* narrow: the hint under the name, never the name broken */
.vreg .vline { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.vreg .ed { align-self: stretch; font: var(--t-body); color: var(--fg); text-wrap: pretty; }
.vreg .vwhat .ed { font: var(--t-page); text-wrap: balance; }
.vreg .said { margin: 0; }
.vparts { display: grid; grid-template-columns: 96px minmax(0, 1fr); margin: 0; }
.vpart { display: contents; }
.vparts dt, .vparts dd { padding: 14px 0; border-top: 1px solid var(--line); }
.vparts dt { padding-top: 15px; font: var(--t-label); color: var(--mute); }
.vparts dd { margin: 0; }
.vprin:empty { display: none; }
.vprin { margin: 0; padding: 0; list-style: none; counter-reset: vp; align-self: stretch; }
.vprin li { counter-increment: vp; position: relative; padding: 10px 0; border-top: 1px solid var(--line); }
.vprin li:first-child { border-top: 0; padding-top: 0; }
.vprin li::before { content: counter(vp); position: absolute; left: calc(-1 * var(--hang)); font: var(--t-data); line-height: calc(17px * 1.6); color: var(--mute); }   /* in the gutter, as Work's tiles; on the line's first line */
.more1 { padding: 4px 11px; border: 0; border-radius: var(--r-in); background: transparent; color: var(--fg2); font: var(--t-label); box-shadow: inset 0 0 0 1px var(--line2); cursor: pointer; }
.more1:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.vdraft.vd-head { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 4px 0 4px 18px; }
.vd-head .vd-k { margin: 0; font: var(--t-label); }
.vd-head .vd-b { margin: 0; align-self: flex-end; }
.vwhat .vd-sug { font: var(--t-page); text-wrap: balance; }
.vd-sug { margin: 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--uv); font: var(--t-body); color: var(--uv-t); text-wrap: pretty; }
.vd-sug span { display: block; font: var(--t-small); color: var(--mute); }
/* Narrow, as Work: no gutter; the principles' numbers come inside their lines. */
@media (max-width: 1000px) {
  .body .sdoc.vision-doc { padding-left: 0; }
  .vprin li { padding-left: 28px; }
  .vprin li::before { left: 0; }
}
@media (max-width: 760px) {
  .vparts { grid-template-columns: 1fr; }
  .vparts dd { border-top: 0; padding-top: 2px; }
  .vparts dt { padding-bottom: 0; }
}
.said { margin: 8px 0 0; font: var(--t-small); color: var(--mute); }
.said b { font-weight: 400; color: var(--uv-t); }
/* A commit, wherever the room shows one (lib/present.mjs commitLink): its short hash and \2197 in phosphor ink, one piece, no glow. */
.commit { font: var(--t-data); color: var(--acc-t); white-space: nowrap; text-decoration: none; }
.commit:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The track (app/views/track.mjs; Work, Chat's folded story, Usage): the crew's work as one line through
   time. A row is the story's number, its title and one line; the one the crew is on is bigger, lit at its tick, and
   the only row with its run. Ticks on the line, never dots: lit for what's on main or has your go, neon for a stop,
   dashed for what isn't a story yet. A label on the line names a group or a day. */
/* The track's own wrapper: holds its line (a real element, track.mjs trackRule, not a pseudo, so a page's going or
   coming can draw and undraw it like any other line, motion.mjs). */
.track-wrap { position: relative; max-width: calc(var(--hang) + var(--measure) + 200px); }
.track-wrap > .rule { display: none; }
.track { position: relative; list-style: none; margin: 0; padding: 6px 0 20px; }
.track > li { position: relative; }
.track .tl { display: flex; align-items: baseline; gap: 8px; padding: 22px 0 8px 36px; font: var(--t-label); color: var(--fg2); }

.track .tl.now { color: var(--fg); }

.track .tl .more { margin-left: auto; letter-spacing: 0; text-transform: none; color: var(--fg2); text-decoration: none; }
.track .tl a.more:hover { color: var(--fg); }
/* The number's column: its usual width, and as wide as the number when that's wider (the Now row's #275 at 60px, Nov 5). */
/* The title's column is flexible, so a title spanning it never widens the number's (an item over a flexible track
   doesn't size the tracks beside it); the row as a whole keeps the measure, its acts at its end. */
.track .row { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; grid-template-areas: "t t acts" "n s acts" "o o o"; gap: 1px 8px; align-items: baseline; max-width: calc(var(--hang) + var(--measure) + 200px); padding: 10px 0 10px var(--hang); }
.track .rt { display: contents; }
.track .row > .n { grid-area: n; }
.track .rt > .t { grid-area: t; }
.track .rt > .s { grid-area: s; margin-top: 0; }
.track .rt > .opens { grid-area: o; }
.track .row > .acts, .track .row > .cost { grid-area: acts; }
.track .row::before { content: ""; position: absolute; left: 6px; top: 15px; width: 16px; height: 16px; background: var(--mute); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7' stroke-dasharray='3 2.6' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7' stroke-dasharray='3 2.6' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.track .row.done::before { background: var(--acc-t); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.track .row.on::before { left: 4px; width: 20px; height: 4px; top: 21px; border-radius: 2px; background: var(--acc); box-shadow: 0 0 14px var(--glow); -webkit-mask: none; mask: none; }
.track .row.main::before { background: var(--fg); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.track .row.go::before { background: var(--fg); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 7l5 5-5 5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 7l5 5-5 5'/%3E%3C/svg%3E"); }
.track .row.stuck::before { background: var(--bad); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }

.track .n { font: var(--t-data); color: var(--mute); }
.track .row.on .n { font: var(--t-data); color: var(--fg); }
.track .row.main .n, .track .row.go .n { color: var(--fg); }
.track .row.stuck .n { color: var(--bad); }
.track .rt { min-width: 0; }
/* What waits for your go moves by its number (WORK_SCRIPT): a handle to drag, or the arrow keys. */
.track .row[data-drag] .n { padding: 0; border: 0; background: none; text-align: left; cursor: grab; touch-action: none; user-select: none; border-radius: 4px; }
.track .row[data-drag] .n:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.track .row.dragging { z-index: 3; background: var(--bg); border-radius: 8px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); }
.track .row.dragging .n { cursor: grabbing; }
.track .row.dragging .acts { opacity: 0; }
.track .tl .hint { margin-left: 10px; letter-spacing: 0; text-transform: none; color: var(--mute); }
.track .t { display: block; font: var(--t-title); color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.track .row.on .t { font: var(--t-title); }
.track a.t:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.track .s { display: block; margin-top: 2px; font: var(--t-small); color: var(--mute); }
.track .row.main .s, .track .row.go .s { color: var(--fg); }
.track .s .stop { color: var(--bad); }
.track .row.offer .acts { opacity: 1; transform: none; }
.track .said { margin: 6px 0 0; font: var(--t-small); color: var(--mute); }
/* Its run: each step done (✓), the live one with the caret, the rest to come. */
/* Its steps are told apart by space and their marks (✓ done, the caret live), no dot between: a step that wraps
   starts its line clean. */
.run { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: var(--t-small); color: var(--fg2); }
.run li { display: flex; align-items: center; }
.run li.did { color: var(--fg); }
.run li.did::after { content: "\2713"; margin-left: 6px; }
.run li.live { color: var(--fg); }
.run li.live::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 6px; vertical-align: -.15em; background: var(--acc); }
.run li.stop { color: var(--bad); }
/* A row's acts, on hover (always on a phone): pills, the first filled. */
.track .acts { display: flex; gap: 6px; align-self: center; opacity: 0; transform: translateX(6px); }
.track .row:hover .acts, .track .row:focus-within .acts { opacity: 1; transform: none; }
/* Where there's no hover, or the acts sit on a line of their own under the row (narrow), they're always shown: a
   hidden one would leave its line's gap with nothing in it. */
@media (hover: none), (max-width: 700px) { .track .acts { opacity: 1; transform: none; } }
.track .acts .tb, .track .acts .btn { min-height: 0; padding: 5px 12px; border: 0; border-radius: var(--r-in); background: transparent; color: var(--fg); font: var(--t-label); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 35%, transparent); cursor: pointer; }
.track .acts .b1, .track .acts .btn.go { background: var(--fg); color: var(--bg); box-shadow: none; }
.track .acts .tb:hover, .track .acts .btn:hover { background: var(--fg); color: var(--bg); }
/* A tick between rows (Usage): one clause, no time. */
.track .ev { padding: 7px 0 8px 36px; font: var(--t-small); color: var(--fg2); }
.track .ev::before { content: ""; position: absolute; left: 10px; top: 16px; width: 8px; height: 2px; background: var(--fg2); }
.track .ev.red::before { background: var(--bad); }
.track .ev.red b { color: var(--bad); font-weight: 400; }
.track .ev b { font-weight: 400; color: var(--fg); }
.earlier { display: block; align-self: flex-start; margin: 0 0 4px 36px; padding: 6px 0; border: 0; background: none; font: var(--t-small); color: var(--fg2); cursor: pointer; }
.earlier:hover { color: var(--fg); }
.earlier:disabled { opacity: .5; cursor: default; }
@media (max-width: 700px) { .track .row { grid-template-columns: max-content minmax(0, 1fr); grid-template-areas: "t t" "n s" "o o" "acts acts"; } .track.ut .row { grid-template-columns: max-content minmax(0, 1fr) auto; grid-template-areas: "t t acts" "n s s" "o o o"; } .track .acts { justify-self: start; margin-top: 8px; } .track .tl .more { display: none; } .track.ut .tl .more { display: block; } }
.wb { display: flex; gap: 2px; opacity: 0; }
.tb { min-height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-in); background: transparent; color: var(--mute); font: var(--t-label); cursor: pointer; }
.tb:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.tb:disabled { opacity: .5; cursor: default; }
/* Work (Nov 8, the forecast; app/views/work.mjs): regions, not one document, and open, not boxed. Space groups them
   (wide between, tight within), a hairline and its name start each. The grid is every page's (Nov 8, the person:
   "we're not treating that right panel the same in all the places it's used"): the words on the one edge, the tiles
   hanging in the gutter before it as faces and numbers do, and beside it the margin Features and a story's page use
   (--margin, 56px off, sticky), its names quiet labels, nothing ruled. */
.pg.wk { display: grid; grid-template-columns: minmax(0, calc(var(--hang) + var(--measure))) var(--margin); gap: 0 56px; align-items: start; font: var(--t-body); }   /* the measure in the words' own size, as Features' */
.wmain { display: flex; flex-direction: column; gap: 40px; min-width: 0; padding-left: var(--hang); }
.wside { position: sticky; top: 56px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
/* The two columns scroll apart (the person, Nov 8), as Features' nav does: the page scrolls the centre, and the side
   scrolls in itself once it's taller than the window. It never moves when the centre does: it sticks where it starts
   (the page's top, 56px), and it's never taller than the window less the page's own room above and below (56 + 40,
   and the dock's), so it can't make the page scroll: a short centre beside a tall side moved both together. */
.page-scroll:has(.pg.wk) { container-type: size; }
.wside { max-height: calc(100cqh - 100px - var(--dock-h, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fg) 12%, transparent) transparent; scrollbar-gutter: stable; }
.wside > * { flex: none; }
/* Room on each side for what reaches past the words on purpose (the focus's edit box, a flag's hover), so the side never
   scrolls sideways and nothing is clipped; the words stay on the column's edge. */
.wside { padding-inline: 10px; margin-inline: -10px; }
.wreg { min-width: 0; }
.wmain .wreg + .wreg { padding-top: 16px; border-top: 1px solid var(--line2); }
.wh { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font: var(--t-label); color: var(--fg); }
.wh .hint, .wk .hint { font: var(--t-small); color: var(--mute); }
.wh .more { margin-left: auto; font: var(--t-small); color: var(--fg2); }
.wh .more:hover { color: var(--fg); }
.wside .wh { margin-bottom: 6px; color: var(--mute); }
.wside .ed { font: var(--t-small); color: var(--fg2); text-wrap: pretty; }
.wside .ed.empty:not(.editing) { color: var(--faint); }
/* A tile: Now (while the crew works, the place you're at: the fill a current tab has, never the phosphor, which is
   what asks for you; the room's light already says the crew is at work), a story's turn (an arrow), a daily (its day and hour,
   the hour a literal value in mono), what waits (a dashed ring). Boxed as the thread boxes a line (the person, Nov 8:
   "instead of inventing new outline boxes, let's box like we already do"): the ink's faint fill, no edge, made solid
   on the ground so Coming up's line, running behind them, doesn't show through. */
.wtile { position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 52px; min-height: 44px; padding: 5px 0; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 6%, var(--bg)); color: var(--mute); }
.wtile b { font: var(--t-label); color: var(--fg2); }
.wtile > span { font: var(--t-data); color: var(--fg); }
.wtile.std b { color: var(--fg); }
.wtile.now.lit { background: color-mix(in srgb, var(--fg) 14%, var(--bg)); color: var(--fg); }
.wtile.now.lit b { color: var(--fg); }
.wtile.go, .wtile.wait { width: 30px; min-height: 30px; padding: 0; margin: 0 11px; border-radius: 50%; color: var(--fg); }
.wtile.wait { color: var(--mute); }
.wi { width: 18px; height: 18px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wtile .wi, .wtile .face { width: 16px; height: 16px; }
.wjob { display: flex; gap: 10px; align-items: center; }
.wjob + .wjob { margin-top: 8px; }
.wjob .face { width: 18px; height: 18px; flex: none; color: var(--fg); }
.wi.ok { color: var(--acc-t); } .wi.mu { color: var(--mute); } .wi.bad { color: var(--bad); } .wi.fg { color: var(--fg); }
.wnow, .wslot { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 18px; align-items: start; margin-left: calc(var(--hang) - 106px); }   /* the tile hangs: the words on the edge */
.wbody { min-width: 0; }
.wline { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.wline::before { content: ""; position: absolute; left: calc(var(--hang) - 81px); top: 20px; bottom: 20px; width: 1.5px; border-radius: 1px; background: var(--line2); }
.wline:has(> li:only-child)::before { display: none; }   /* one alone: no line to run between */
.wslot > .wtile.go + .wbody, .wslot > .wtile.wait + .wbody { padding-top: 4px; }
.wk { margin: 0 0 4px; font: var(--t-small); color: var(--mute); display: flex; gap: 10px; align-items: baseline; }
.wq { margin: 0; max-width: var(--measure); font: var(--t-small); color: var(--fg2); text-wrap: pretty; }
.wq b { font-weight: 500; color: var(--fg); }
.wnowreg .wq { padding-top: 4px; }
/* A story: title, number and one line, its acts at the end on hover (always where there's no hover, or no room). */
.wrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 3px 0; }
.wrow + .wrow { margin-top: 10px; }
.wrow > .t, .wrow > .s, .wrow > .said { grid-column: 1; }
.wrow > .t { font: var(--t-title); color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.wrow > a.t:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wrow > .s { font: var(--t-small); color: var(--mute); }
.wrow .n { font: var(--t-data); color: var(--mute); }
.wrow .stop { color: var(--bad); }
.wrow[data-drag] .n { padding: 0; border: 0; background: none; cursor: grab; touch-action: none; user-select: none; border-radius: 4px; }
.wrow[data-drag] .n:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.wrow.dragging { z-index: 3; background: var(--bg); border-radius: var(--r); box-shadow: 0 24px 60px -24px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); }
.wrow > .acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; opacity: 0; transition: opacity var(--m-move) var(--m-glide); }
.wrow:hover > .acts, .wrow:focus-within > .acts, .wrow.wpick > .acts, .wrow.main > .acts { opacity: 1; }
.wrow > .acts :is(.tb, .btn) { min-height: 0; padding: 5px 12px; border: 0; border-radius: var(--r-in); background: transparent; color: var(--fg); font: var(--t-label); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 35%, transparent); cursor: pointer; white-space: nowrap; }
.wrow > .acts :is(.b1, .btn.go), .wrow > .acts :is(.tb, .btn):hover { background: var(--fg); color: var(--bg); box-shadow: none; }
.wrow > .said { margin: 4px 0 0; }
/* The run as a bar: a segment a step, done (ink), going (the phosphor, lit) or to come (faint), each with who takes it. */
.wrun { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; max-width: 640px; }
.wrun li { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wrun i { display: block; height: 4px; border-radius: 2px; background: var(--line2); }
.wrun .did i { background: var(--fg); }
.wrun .live i { background: var(--acc); box-shadow: 0 0 12px var(--glow); }
.wrun .stop i { background: var(--bad); }
.wrun span { display: flex; align-items: center; gap: 6px; font: var(--t-small); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrun :is(.did, .live) span { color: var(--fg); }
.wrun .face, .wrun .wi { width: 16px; height: 16px; flex: none; }
/* Under Now: what waits on your merge, and what's stuck, each with its mark. */
.walso { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 18px; margin: 18px 0 0 calc(var(--hang) - 106px); }
.walso > .wi { justify-self: center; margin-top: 5px; }
/* Landed lately: its mark, the title, the number and when; Something's wrong a flag, on hover. */
.wlanded { list-style: none; margin: 0; padding: 0; }
.wlanded li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 1px 0; padding: 5px 0; font: var(--t-small); }
.wlanded li:first-child { padding-top: 0; }
.wlanded li > .wi { grid-row: 1 / span 2; margin-top: 2px; width: 16px; height: 16px; }
.wlanded li > a, .wlanded li > .s { grid-column: 2; }
.wlanded li > a { color: var(--fg2); text-decoration: none; }
.wlanded li > a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.wlanded .s { color: var(--mute); } .wlanded .n { font: var(--t-data); color: var(--mute); }
.wflag { grid-column: 3; grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 26px; height: 26px; margin: -3px -4px 0 6px; padding: 0; border: 0; border-radius: var(--r-in); background: none; color: var(--fg2); cursor: pointer; opacity: 0; }
.wlanded li:hover .wflag, .wflag:focus-visible { opacity: 1; }
.wflag:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }
.wflag .wi { width: 15px; height: 15px; }
.wempty p { margin: 0 0 10px; font: var(--t-body); color: var(--fg2); }
.wempty .wbtns { display: flex; gap: 2px; margin-left: -12px; }
@media (hover: none) { .wrow > .acts, .wflag { opacity: 1; } }
/* Narrow, where Features' margin goes too: one column, the tiles in it, the side's regions under Coming up; a row's
   acts on their own line. */
@media (max-width: 1000px) {
  .pg.wk { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .wmain { padding-left: 0; }
  .wnow, .wslot, .walso { margin-left: 0; }
  .wline::before { left: 25px; }
  .wside { position: static; max-height: none; overflow: visible; margin-inline: 0; padding: 16px 0 0; border-top: 1px solid var(--line2); }
  .wrow { grid-template-columns: minmax(0, 1fr); }
  .wrow > .acts { grid-column: 1; grid-row: auto; opacity: 1; margin-top: 6px; }
  .wrun b { display: none; }
  .wflag { opacity: 1; }
}
/* A story's page (app/views/stories.mjs "a story"; round two, Nov 8): its number, title and where it stands as the head
 * (the run as Work draws it while the crew is on it or it's stuck, else one line); then regions, open as Work's: what a
 * stuck story needs (the reason first, each answer with what it does), what it promises with whether that's proved and
 * the pictures under it, the crew on it. Its words on the one edge, marks hanging in the gutter; its facts in the
 * margin every page uses, held as you read. */
.story { display: grid; grid-template-columns: minmax(0, var(--measure)) var(--margin); grid-template-areas: "back ." "head ." "body facts"; column-gap: 56px; row-gap: 14px; align-content: start; padding-left: var(--hang); }
.story > .back { grid-area: back; }
.story > .story-head { grid-area: head; }
.story > .story-body { grid-area: body; }
.sfacts { grid-area: facts; align-self: start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.sline .st { display: inline-flex; align-items: center; gap: 6px; font: var(--t-label); color: var(--fg); }
.sline .st.acc::before { content: ""; width: 16px; height: 16px; background: var(--acc-t); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.sf { display: flex; flex-direction: column; gap: 4px; }
.sfk { font: var(--t-label); color: var(--mute); }
.sfv { margin: 0; font: var(--t-small); color: var(--fg); font-variant-numeric: tabular-nums; }
.sfv.bad { color: var(--bad-t); }
.sfacts .sfeatures { font: var(--t-small); }
/* No room for the margin: one column, the promise and its pictures first, the facts after them as a region of their
   own, then the crew on it. */
@media (max-width: 1240px) {
  .story { display: flex; flex-direction: column; gap: 14px; }
  .story > .story-body { display: contents; }
  .story > .story-body > .sreg, .story > .sfacts { margin-top: 22px; }
  .story > .sfacts { order: 1; align-self: stretch; position: static; flex-direction: row; flex-wrap: wrap; gap: 10px 28px; padding-top: 16px; border-top: 1px solid var(--line2); }
  .story > .story-body > .stalk { order: 2; }
}
/* A way back up (Usage's subpages). */
.crumb { display: flex; gap: 8px; font: var(--t-small); color: var(--faint); }
.crumb a { color: var(--mute); text-decoration: none; }
.crumb a:hover { color: var(--fg); }
.back { align-self: flex-start; font: var(--t-small); color: var(--fg2); text-decoration: none; }
.back:hover { color: var(--fg); }
.story-head { display: flex; flex-direction: column; gap: 4px; }
.story-head .sn { font: var(--t-data); color: var(--mute); }
.story-head h1 { margin: 0; font: var(--t-page); color: var(--fg); text-wrap: balance; }
.story-head .rtag { margin-left: 10px; font: var(--t-small); color: var(--mute); vertical-align: 6px; }
.sline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; font: var(--t-small); color: var(--fg2); }
.sline .dot { color: var(--faint); }
@media (max-width: 760px) { .sline .dot { display: none; } .sline > span:last-child { flex-basis: 100%; } }
.story > .story-body { grid-column: 1; display: flex; flex-direction: column; gap: 36px; padding-top: 16px; max-width: var(--measure); }
.story-body > .sreg + .sreg { padding-top: 16px; border-top: 1px solid var(--line2); }
.srun { margin-top: 10px; }
.srun .sgo { margin: 0; font: var(--t-small); color: var(--fg2); }
.held { display: flex; flex-direction: column; gap: 14px; }
.sask { margin: 0; font: var(--t-body); color: var(--fg); white-space: pre-wrap; text-wrap: pretty; }   /* the words' own size: the title leads */
.sdone, .sabout { margin: 0; font: var(--t-small); color: var(--fg2); }
.sdone b, .sabout b { font: var(--t-label); color: var(--fg); margin-right: 4px; }
/* Whether done means is proved, in a line, its mark in the gutter; what checks it opens under it. */
.sproof { display: grid; grid-template-columns: var(--hang) minmax(0, 1fr); margin-left: calc(-1 * var(--hang)); font: var(--t-small); color: var(--fg2); }
.sproof > .wi { margin-top: 1px; }
.sproof > p { margin: 0; }
.sproof b { font-weight: 500; color: var(--fg); }
.sproof details { grid-column: 2; margin-top: 4px; }
.sproof summary { width: fit-content; list-style: none; color: var(--mute); cursor: pointer; }
.sproof summary::-webkit-details-marker { display: none; }
.sproof summary::after { content: " ›"; }
.sproof details[open] summary::after { content: " ⌄"; }
.sproof summary:hover { color: var(--fg); }
.sproof ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sproof code { font: var(--t-data); background: var(--code); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
/* A stuck story: where it stopped, its mark in the gutter; why, in the words' size; each answer with what it does. */
.sstuck .wh { color: var(--bad-t); }
.sstuck .wh > .wi { align-self: center; margin: 0 -2px 0 calc(-1 * var(--hang)); }
.swhy { margin: 0 0 14px; font: var(--t-body); color: var(--fg); overflow-wrap: anywhere; }
.snote { margin: 0; font: var(--t-small); color: var(--mute); }
.sfeatures { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font: var(--t-small); color: var(--fg2); }
.sfeatures .features-ref { font: var(--t-data); padding: 3px 7px; border-radius: 4px; color: var(--fg); }
.sfeatures q { color: var(--fg); }
.decide-note { margin: 0; font: var(--t-small); color: var(--fg2); }
.decide-note b { color: var(--fg); font-weight: 600; }
.kick { margin: 10px 0 0; font: var(--t-label); color: var(--fg2); }
.dock [data-acts] { align-self: center; }
.dock:has(.ask:not([hidden]):not(.folding)) .btn.stop { color: var(--fg); border-color: var(--line2); }   /* in the field, the stop is the field's ink */
.btn.stop { border: 1px solid color-mix(in srgb, var(--bad) 55%, transparent); background: transparent; color: var(--bad-t); }
.btn.stop:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.btn:disabled { opacity: .6; cursor: default; }
/* How it looks: one picture large, every picture the story has small under it, grouped Done, Planned, Before. */
.stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 8px 0 4px; }
.sgroups { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.sgroup { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sgk { font: var(--t-label); color: var(--fg2); }
.sgnote { font: var(--t-small); color: var(--mute); max-width: 18ch; }
.sthumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.sthumb { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: var(--mute); font: var(--t-small); text-align: left; cursor: pointer; }
.sthumb img, .sslot { display: block; width: 72px; height: 45px; border-radius: 3px; object-fit: cover; object-position: top left; box-shadow: 0 0 0 1px var(--line2); }
.sslot { box-shadow: none; border: 1.5px dashed var(--line2); box-sizing: border-box; }
.sthumb:hover, .sthumb[aria-pressed=true] { color: var(--fg); }
.sthumb[aria-pressed=true] img { box-shadow: 0 0 0 2px var(--fg); }
.sthumb:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 3px; }
.stage-pic { display: block; width: 100%; aspect-ratio: 2 / 1; box-sizing: border-box; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; line-height: 0; }
.stage-pic.tall { aspect-ratio: 9 / 16; max-width: 240px; }
.stage-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.stage-pic[hidden] { display: none; }
/* The run as the crew told it: a step a heading with its face and when, the crew's lines under it, a rail down the faces. */
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; padding: 0 0 24px; }
.log li::before { content: ""; position: absolute; left: 10.5px; top: 26px; bottom: 2px; width: 1px; background: var(--line2); }
.log li:last-child { padding-bottom: 0; } .log li:last-child::before { display: none; }
.log .who-mk, .log .face.person { width: 22px; height: 22px; position: relative; z-index: 1; color: var(--mute); }
.log .lh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font: var(--t-label); color: var(--fg); }
.log .lt { font: var(--t-data); color: var(--faint); }
.log .lx { grid-column: 2; margin: 6px 0 0; font: var(--t-body); color: var(--fg2); overflow-wrap: anywhere; }
.log .lx.person { color: var(--fg); }
.log .lx code { font: var(--t-data); background: var(--code); padding: 1px 5px; border-radius: 3px; }
.log .lx > :first-child, .log .lx .md > :first-child { margin-top: 0; } .log .lx > :last-child, .log .lx .md > :last-child { margin-bottom: 0; }
.log .lx p { margin: 0 0 .5em; }
.log .lx ul, .log .lx ol { margin: 0 0 .5em; padding-left: 1.3em; }
.log .lx strong { font-weight: 600; color: var(--fg); }
.log .lx pre { overflow-x: auto; background: var(--code); padding: 10px 12px; border-radius: var(--r); font: var(--t-data); }
.log .lx pre code { background: none; padding: 0; }
.log li.doing .lh, .log li.doing .lt, .log li.doing .who-mk { color: var(--uv-t); }
/* The crew on it as they said it (stories.mjs talk): the thread's lines, no rail down the faces; a line from the same
   role minutes after its last goes on without its name; how it ended in one quiet line under them. */
.log.talk li { padding-bottom: 18px; }
.log.talk li::before { display: none; }
.log.talk li.cont { margin-top: -12px; }
.log.talk .lh { font: var(--t-label); color: var(--fg2); }
.log.talk .lt { margin-left: 8px; letter-spacing: 0; text-transform: none; }
.log.talk .lx { font: var(--t-body); color: var(--fg); }
.log.talk .log-frames { grid-column: 2; }
.story .log.talk { margin-left: calc(-1 * var(--hang)); }   /* faces in the gutter (22px and its 14px gap), the words on the edge */
@media (max-width: 760px) { .story { padding-left: 0; } .story .log.talk, .sproof, .sstuck .wh > .wi { margin-left: 0; } .sstuck .wh > .wi { margin-right: 0; } }   /* no gutter: the marks come in (after the rules that hang them) */
.talk-end { margin: 4px 0 0; font: var(--t-small); color: var(--mute); }
.log li.stuck .lh, .log li.stuck .lt, .log li.stuck .who-mk { color: var(--bad-t); }
.log-txt a:not(.sref):not(.mention):not(.commit):not(.features-ref), .lx a:not(.sref):not(.mention):not(.commit):not(.features-ref), .snote a:not(.features-ref), .sline a:not(.commit):not(.features-ref), .lend a:not(.commit):not(.features-ref), .decide-note a:not(.commit):not(.features-ref) { color: var(--acc-t); }   /* a requirement's number keeps its own ink: given --acc-t, hovered it read pale on its white fill */
/* Features (app/views/features.mjs): the document as product wrote it, with a nav beside it. The features read top to bottom:
   name, one line, Scope, Users, Requirements by the thing a user gets done, Constraints, Interfaces, your
   corrections, versions. The nav at the left lists all of it, marks where you are, takes you anywhere in one click and
   finds a line; on a phone it's a row of pills under the bar. Each line is a quiet row: its number dim in the gutter,
   a word under it only when something's up. */
.featureswrap { display: grid; grid-template-columns: minmax(0, calc(var(--hang) + var(--measure))) var(--margin); gap: 0 56px; align-items: start; }
.featureswrap > .snav { order: 2; }
.body .featureswrap > .sdoc { padding-left: var(--hang); max-width: calc(var(--measure) + var(--hang)); }   /* its column is the gutter and the measure: the words end where every page's do */
/* The nav scrolls on its own, as tall as the page's window and no taller (the window is a size container, so the nav
   reads its height, less the dock's: it never runs under the dock), its scrollbar thin and kept off the links and the features (a gutter
   of its own, then the grid's gap). */
.page-scroll:has(.featureswrap) { container-type: size; }
.snav { position: sticky; top: 24px; max-height: calc(100cqh - 72px - var(--dock-h, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fg) 12%, transparent) transparent; scrollbar-gutter: stable; padding-right: 14px; display: flex; flex-direction: column; gap: 1px; padding-top: 2px; font: var(--t-small); }
.snav > * { flex: none; }   /* rows keep their height: a long nav scrolls, never squeezes */
.snav a { display: block; min-width: 0; padding: 4px 10px; border-radius: 6px; color: var(--fg2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }   /* the whole row, its corners round: nothing cut at its edge */
.snav a[aria-current=true] { color: var(--fg); background: var(--hover); font-weight: 500; }   /* the part shown: filled, as the page's tab is */
.snav a.sub { padding-left: 10px; font: var(--t-small); }
.snav a:has(.sgn) { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; white-space: normal; text-overflow: clip; }   /* a thing's number in one column down the nav, its name wrapping under itself, never cut */
.snav a .sgn { margin: 0; padding-top: 1px; }
.snav .nk { flex: none; padding: 12px 10px 3px; font: var(--t-label); color: var(--faint); }   /* a heading over its things, not a place */
.snav .gap { height: 12px; flex: none; }
.sfind { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; padding: 0 10px; }
.sfind-box { position: relative; }
.sfind input { width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; outline: 0; background: transparent; color: var(--fg); font: var(--t-small); }
.sfind input:focus { border-bottom-color: var(--fg); }
.sfind input::-webkit-search-cancel-button { display: none; }
/* The box's own words, real (motion.mjs types it in and out with the rest of the page): a native placeholder is
   never a text node, so it can't be. Hidden the moment there's a query (has-q, the script), never in its way. */
.sfind-ph { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--fg2); font: var(--t-small); pointer-events: none; white-space: nowrap; }
.sfind.has-q .sfind-ph { display: none; }
.sfind-n { min-height: 15px; font: var(--t-small); color: var(--mute); }
/* A page's document. A project's pages (Vision, Settings) keep a reading measure beside the rail; a page that isn't a
   project's (Account, Workspace, New project, Usage) takes the room's column, every one the same (the person, Nov 3:
   "the settings pages still aren't consistent re: layout"). */
.sdoc { min-width: 0; display: flex; flex-direction: column; }
.body .sdoc { max-width: var(--measure); }
[data-spy], .sl[id] { scroll-margin-top: 24px; }
.features-mast { display: flex; flex-direction: column; gap: 14px; }
.features-lede p { margin: 0; font: var(--t-body); color: var(--fg); text-wrap: pretty; }
.features-note { margin: 0; font: var(--t-small); color: var(--mute); }
/* Scope: a row of facts. */
.features-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.features-facts > div { display: flex; gap: 8px; align-items: baseline; }
.features-facts dt { font: var(--t-label); color: var(--fg2); }
.features-facts dd { margin: 0; font: var(--t-body); color: var(--fg); }
.features-sec { padding: 34px 0 0; }
.features-sec h2 { margin: 0 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font: var(--t-label); color: var(--fg2); }
.features-sec p { margin: 0 0 12px; font: var(--t-body); color: var(--fg2); text-wrap: pretty; }
.features-sec p:last-child { margin-bottom: 0; }
/* Running text (users, a features list in an older shape) keeps a reading measure. */
.features-sec > :is(p, h3, ul, ol) { max-width: 64ch; }
.features-users p { font: var(--t-body); color: var(--fg); }
.features-sec ul, .features-sec ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.features-sec li { position: relative; padding-left: 22px; font: var(--t-body); color: var(--fg2); }
.features-sec li::before { content: "\2013"; position: absolute; left: 2px; top: 0; color: var(--uv-t); }
.features-lead { font-weight: 600; color: var(--fg); }
.features-sec h3 { margin: 18px 0 6px; font: var(--t-title); color: var(--fg); }
.features-sec code { font: var(--t-data); background: var(--code); padding: 1px 5px; border-radius: 3px; }
.features-sec a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--mute); }
/* Requirements: each thing a user gets done, its heading with who's on it at its right, its lines under it. */
.features-group { padding: 10px 0 0; }
/* One part at a time (features.mjs view): what it is in small, its name large, who's on one of its lines at its right;
   its lines; the part before and after at its foot. The overview's index: a row a part, its count at the right. */
.sview[hidden] { display: none; }
.svh { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.features-sec .svk { margin: 0; font: var(--t-label); color: var(--mute); }
.svt { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.features-sec.sview { padding-top: 4px; }
.features-sec .svt h2 { margin: 0; padding: 0; border: 0; font: var(--t-page); text-transform: none; color: var(--fg); text-wrap: balance; }
.svt .sgs { font: var(--t-small); color: var(--fg2); }
.sview > .features-lines { margin-top: 4px; }
.ssteps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 34px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.sstep { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 14px; border-radius: 8px; color: var(--fg); text-decoration: none; font: var(--t-small); }
.sstep span { font: var(--t-label); color: var(--mute); }
.sstep.next { text-align: right; align-items: flex-end; grid-column: 2; }
.sstep:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.sstep .sstep-l { font: var(--t-small); color: var(--fg); text-wrap: pretty; }
.sstep .sstep-l .sgn { font: var(--t-data); }
/* A requirement's own page (features.mjs lineView, .sreq): its part above, small, a way back; its number and its words large;
   what's up and Correct under them; then what proves it, the stories that changed it, your corrections, its history,
   each a short list of rows; the line before and after at the foot. */
.sreq .svk a { color: var(--fg2); text-decoration: none; }
.sreq .svk a:hover { color: var(--fg); text-decoration: underline; }
.lhead { display: flex; flex-direction: column; gap: 14px; }
.features-sec .ltext { margin: 0; padding: 0; border: 0; font: var(--t-page); color: var(--fg); text-wrap: pretty; }
.ltext .sgn { font: var(--t-data); font-size: 14px; vertical-align: 2px; }
.ltext [data-sltext] { border-radius: 4px; outline: 0; }
.lhead.editing [data-sltext] { box-shadow: 0 0 0 6px color-mix(in srgb, var(--fg) 10%, transparent); background: color-mix(in srgb, var(--fg) 10%, transparent); cursor: text; caret-color: var(--acc); }
.lmeta { display: flex; align-items: center; gap: 14px; min-height: 28px; font: var(--t-small); color: var(--mute); }
.lmeta .st:empty { display: none; }
.lmeta .lfacts { color: var(--mute); }
.lmeta .st:not(:empty) + .lfacts::before { content: " \00b7 "; }
.sl-fix { padding: 4px 12px; border: 0; border-radius: var(--r-in); background: transparent; box-shadow: inset 0 0 0 1px var(--line2); color: var(--fg); font: var(--t-label); cursor: pointer; }
.sl-fix:hover { background: var(--hover); }
.lhead.editing .sl-fix { visibility: hidden; }
.lsec { padding-top: 32px; }
.features-sec .lsec h3 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); font: var(--t-label); color: var(--fg2); }
.lsec p.features-note { padding-top: 10px; font: var(--t-small); }
.features-sec .lrows, .features-sec .lhist { gap: 0; max-width: none; }
.features-sec .lrows li, .features-sec .lhist li { padding: 0; border-bottom: 1px solid var(--line); }
.features-sec .lrows li::before, .features-sec .lhist li::before { content: none; }
.features-sec .lsec li:last-child { border-bottom: 0; }   /* the rule under a list is the next one's, or the steps' */
.lrows li { display: flex; align-items: baseline; gap: 16px; }
.lrows a, .lrows .lrt { flex: 1; min-width: 0; padding: 9px 10px; margin: 0 -10px; border-radius: 6px; color: var(--fg); text-decoration: none; font: var(--t-body); }
.features-sec .lrows a:hover { background: var(--hover); }
.lrn { display: inline-block; min-width: 4ch; margin-right: 10px; font: var(--t-data); color: var(--mute); }
.lrr { display: flex; align-items: baseline; gap: 12px; flex: none; font: var(--t-small); color: var(--fg2); }
.features-sec .lrr .lfile { background: none; padding: 0; color: var(--mute); }
.features-sec .lhist li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; padding: 10px 0; }
.lhist a { font: var(--t-small); color: var(--fg2); text-decoration: none; }
.lhist a:hover { color: var(--fg); text-decoration: underline; }
.lhw { grid-column: 2; font: var(--t-label); color: var(--mute); }
.lht { grid-column: 2; font: var(--t-body); color: var(--fg); }
.lht del { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--fg2); }
.lht ins { text-decoration: none; color: var(--fg); background: color-mix(in srgb, var(--acc) 22%, transparent); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 2px; }
@media (max-width: 760px) { .lrows li { flex-wrap: wrap; gap: 0 16px; } .lrows :is(a, .lrt) { flex-basis: 100%; padding-bottom: 2px; } .lrows .lrr { flex-wrap: wrap; padding: 0 0 9px; } }
.features-sec .six-k { margin: 0 0 4px; font: var(--t-label); color: var(--mute); }
.features-sec .six { list-style: none; max-width: none; margin: 0 0 18px; padding: 0; display: block; }
.features-sec .six li { margin: 0; padding: 0; }
.features-sec .six li::before { content: none; }
.six li { display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); }
.six li:last-child { border-bottom: 1px solid var(--line); }
.features-sec h2 + .six > li:first-child { border-top: 0; }   /* the heading's own rule is the list's first: never two hairlines with nothing between */
.six a { flex: 1; min-width: 0; margin: 0 -10px; padding: 9px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; font: var(--t-title); }
.six a:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.six-r { display: flex; gap: 12px; flex: none; font: var(--t-small); color: var(--fg2); }
.six-r .sgs { color: var(--fg); }
.sgs { font: var(--t-small); color: var(--fg); white-space: nowrap; }
.sgn { margin-right: 10px; font: var(--t-data); color: var(--mute); }   /* a group's number, what its lines begin with */
.six .sgn { display: inline-block; min-width: 4ch; }   /* the overview's names in one column, R1 to R12 */
.features-was { scroll-margin-top: 24px; }   /* the number a line had before Nov 2, where an old link lands */
/* A line: its number dim in the gutter (lit while a story changes it, solid ink once you corrected it), its sentence,
   a word under it only when something's up. The row is a way to its own page (sline): resting on it fills it, no more. */
.features-sec .features-lines { gap: 0; max-width: none; }
.features-sec .features-lines li.sl { position: relative; display: grid; grid-template-columns: calc(var(--hang) + var(--g) - 8px) minmax(0, 1fr) auto; gap: 0 0; align-items: baseline; margin: 0 -16px 0 calc(-1 * (var(--hang) + var(--g))); padding: 10px 16px 10px 8px; border-radius: 8px; }   /* the number hangs in the hang and the page's gutter, all the room left of the sentence (64px at full width, R17.14's), inside the row's lit box; the box starts at the scroll's edge, never past it, so its corners round on both sides */
.features-sec .features-lines li::before { content: none; }
.features-id { justify-self: end; margin-right: 8px; padding: 1px 5px; border-radius: 4px; font: var(--t-data); color: var(--mute); text-decoration: none; white-space: nowrap; }
.sl.on .features-id { background: var(--acc); color: var(--on-acc); }
:root:has(.top [data-light=need]) .sl.on .features-id { background: var(--uv); color: var(--bg); }   /* on phosphor what's lit is black, as yours is: the lit one is black light */
.sl.yours .features-id { background: var(--fg); color: var(--bg); }
/* Proved: a check before the number, in the phosphor's ink; nothing under an unproved line. */
.sl.proved .features-id::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; background: var(--acc-t); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.sltext { grid-column: 2; font: var(--t-body); color: var(--fg); overflow-wrap: anywhere; border-radius: 4px; outline: 0; }
.sl:not(:has(.features-id)) .sltext { grid-column: 1 / -1; }
.sl .st { grid-column: 2; margin-top: 2px; font: var(--t-small); color: var(--mute); }
.sl[data-line] { cursor: pointer; }
.sl:hover { background: var(--hover); }
/* Found, gone to, or lit by a version: the row lit, the one you're on more so. */
.sl.hit { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.sl.here, .sl.lit, .sl:target, .sl:has(.features-was:target) { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.sl.here .features-id, .sl.lit .features-id { background: var(--fg); color: var(--bg); }
/* The history: each version a row, newest first, what changed by number beside it; clicked, it lights its lines. */
.features-versions .features-note { margin: -4px 0 6px; }
.features-sec .features-vlist { gap: 0; max-width: none; }
.features-sec .features-vlist li[data-lights] { cursor: pointer; }
.features-sec .features-vlist li[data-lights]:hover, .features-sec .features-vlist li.lit { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.features-sec .features-vlist li { margin: 0 -8px; padding: 10px 8px; border-radius: 6px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; }
.features-sec .features-vlist li::before { content: none; }
.features-vlist a { color: var(--fg); text-decoration: none; font: var(--t-small); }
.features-vlist a:hover { text-decoration: underline; }
.features-now { font: var(--t-label); color: var(--uv-t); margin-left: 8px; }
.features-vdiff { color: var(--fg2); }
.features-vfrom { font: var(--t-small); color: var(--faint); white-space: nowrap; }
@media (max-width: 760px) { .features-sec .features-vlist li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } }
/* A line's number written anywhere (the thread, a story's row, a story) is a link to the line. */
.features-ref { font: var(--t-data); color: var(--uv-t); text-decoration: none; padding: 1px 3px; border-radius: 3px; white-space: nowrap; }
/* Hovered, a requirement's number is filled in the page's ink, as the stage's picked button is: an outline in
   --uv was lost on the violet ground. Only the hover fades in (a.sref's reason). */
/* What a requirement's number says, hovered or focused (parts.mjs SHELL_SCRIPT): a surface, as a menu is, fixed to the
   window so no column's edge cuts it; it never takes the pointer. */
.features-tip { position: fixed; z-index: 40; left: 0; top: 0; width: max-content; max-width: min(340px, calc(100vw - 32px)); padding: 10px 12px; border-radius: var(--r); background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2), 0 14px 30px rgba(var(--sh), .45); font: var(--t-small); pointer-events: none; }
.features-tip-g { display: block; margin-bottom: 4px; font: var(--t-label); color: var(--mute); }
.features-tip-t { display: block; }
.features-ref:hover, .features-ref:focus-visible { background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); outline: none; }
.features-sec.features-fixes .features-note { margin: -4px 0 6px; font: var(--t-small); color: var(--mute); }
.features-fix { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.features-fix:last-of-type { border-bottom: 0; }
.features-fix-x { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.features-sec .features-fix-t { margin: 0; overflow-wrap: anywhere; color: var(--fg); }
.features-fix-w { font: var(--t-small); color: var(--mute); }
.features-drop { flex: none; margin: 2px 0 0; padding: 0; background: none; border: 0; font: var(--t-small); color: var(--mute); cursor: pointer; }
.features-drop:hover { color: var(--fg); text-decoration: underline; }
.features-drop:disabled { cursor: default; }
/* With no features yet, the name and the word on it stack. */
.features-none .features-lede { margin-top: 14px; }
.features-none .features-note { margin-top: 14px; }
/* On a phone the nav is a row of pills under the bar, the find box first. */
@media (max-width: 1000px) {
  .featureswrap { grid-template-columns: minmax(0, 1fr); gap: 14px 0; }
  .snav { top: 0; z-index: 4; flex-direction: row; align-items: center; max-height: none; overflow-x: auto; scrollbar-width: none; scrollbar-gutter: auto; gap: 4px; margin: -56px clamp(-36px, -4vw, -16px) 0; padding: 10px clamp(16px, 4vw, 36px); background: var(--bg); }
  .snav a, .snav a.sub { flex: none; margin: 0; padding: 5px 11px; border-left: 0; border-radius: var(--r-in); box-shadow: inset 0 0 0 1px var(--line); font: var(--t-small); }
  .snav a[aria-current=true] { background: var(--fg); color: var(--bg); box-shadow: none; }
  .snav .gap, .snav .nk, .sfind-n { display: none; }
  .sfind { flex: none; margin: 0 4px 0 0; }
  .sfind input { width: 132px; padding: 5px 11px; border: 0; border-radius: var(--r-in); box-shadow: inset 0 0 0 1px var(--line); }
  .sfind-ph { left: 11px; }
  [data-spy], .sl[id], .features-was { scroll-margin-top: 64px; }
}
@media (max-width: 760px) {
  .features-sec .features-lines li.sl { grid-template-columns: minmax(0, 1fr); }
  .sltext, .sl .st { grid-column: 1; }
  .features-sec .features-lines li.sl { margin: 0 -10px; padding: 10px; }   /* the phone's gutter is 16px: the row's room stays inside it */
  .features-fix { flex-direction: column; gap: 6px; }
  .features-drop { margin: 0; padding: 6px 0; }
}
/* A line that edits in place. */
.ed { border-radius: var(--r); margin: -6px -10px; padding: 6px 10px; cursor: text; outline: 0; white-space: pre-wrap; }
.ed:hover { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.ed:focus-visible { box-shadow: inset 0 0 0 1px var(--line2); }
.ed.editing { background: color-mix(in srgb, var(--fg) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--uv) 45%, transparent); cursor: text; }
.ed.empty:not(.editing) { color: var(--faint); }
/* The now, the dock's own row while the crew is on a story, under the ask or the crew's sentence, in line with their words: how long its run has been going and what it's doing this moment, with the crew's caret: someone's at the keys. */
.nowrow.at { margin-top: -10px; padding: 0 14px 8px 50px; font: var(--t-small); color: var(--mute); overflow-wrap: anywhere; }
.at[hidden] { display: none; }
.at .now-doing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 3px; vertical-align: -.18em; background: var(--uv); }   /* flat, no glow (the person, Nov 7) */
/* An answer that couldn't be sent, or was refused (app/views/tabs.mjs answerButtons). */
.ask-err { margin: 6px 0 0; font: var(--t-small); color: var(--bad-t); }
/* The dock under a page that isn't the thread: your last word to the lead, as the thread says it, small, above its answer. */
.you-said { justify-content: flex-end; padding-bottom: 0; }
.you-said .hl { max-width: 80%; padding: 6px 12px; border-radius: 14px 14px 4px 14px; background: var(--you-bg); border: 1px solid var(--you-line); color: var(--you-ink); font: var(--t-small); }
.hl .md > * { margin: 0; }
.hl .md > * + * { margin-top: .35em; }
/* The lead's draft of the vision (parts.mjs draftCard), in the thread and on the Vision page: set as the page sets the vision, smaller, on a black-light edge while it waits. */
.vdraft { margin: 2px 0 0; padding: 4px 0 2px 18px; border-left: 2px solid var(--uv); }
.vdraft.decided { border-left-color: var(--line2); }
.vd-k { margin: 0 0 8px; font: var(--t-label); color: var(--uv-t); }
.vdraft.decided .vd-k { color: var(--faint); }
.vd-what { margin: 0 0 14px; max-width: 26ch; font: var(--t-title); color: var(--fg); text-wrap: balance; }
.vd-parts { display: grid; grid-template-columns: 110px 1fr; margin: 0; }
.vd-parts dt, .vd-parts dd { padding: 7px 0; border-top: 1px solid var(--line); }
.vd-parts dt { font: var(--t-label); color: var(--faint); }
.vd-parts dd { margin: 0; font: var(--t-body); color: var(--fg2); text-wrap: pretty; }
.vd-parts ul { margin: 0; padding: 0; list-style: none; }
.vd-parts li + li { margin-top: 2px; }
.vd-b { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 12px; }
@media (max-width: 760px) {
  .vd-parts { grid-template-columns: 1fr; }
  .vd-parts dt { padding-bottom: 0; }
  .vd-parts dd { border-top: 0; padding-top: 0; }
}

/* ---- A page that isn't the thread, set as the room sets words (Settings,
   New project, Usage, Everyone): a mast, the sections, settings rows,
   fields, lists, cards, tables, buttons and one dialog. One markup for every
   width; the stylesheet folds it on a phone. ---- */
.pg-mast { display: flex; flex-direction: column; gap: 8px; }
.pg-title { margin: 0; font: var(--t-page); color: var(--fg); overflow-wrap: anywhere; text-wrap: balance; }
.pg-line { margin: 0; font: var(--t-small); color: var(--mute); max-width: 64ch; text-wrap: pretty; }   /* words keep a measure; the page takes the column */
.fsec { padding: 36px 0 0; display: flex; flex-direction: column; }
.fsec > h2 { margin: 0 0 4px; font: var(--t-title); color: var(--fg); }
.fsec > .intro { margin: 0 0 10px; font: var(--t-small); color: var(--fg2); max-width: 60ch; }
/* Settings-like pages (app/views/settings.mjs): every one is a .wsdoc of groups (parts.mjs group, .cwho below):
   the group's name at the left in the room's small mono, each thing with its control and one line under. No title,
   as no page of the room has one (the bar says where you are); no width of its own. */
.stack > .btn, .items > .btn { align-self: flex-start; }
.big-link { font: var(--t-title); color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); }
.big-link:hover { text-decoration-color: var(--fg); }
.big-link[data-budget=warn] { color: var(--acc-t); } .big-link[data-budget=over] { color: var(--bad-t); }
.price { margin: 26px 0 0; font: var(--t-small); color: var(--fg2); max-width: 60ch; }
.price b { color: var(--fg); font-weight: 500; }
.sdoc > .note { margin-top: 28px; }
/* Yours (settings.mjs youMain): its own page, /settings/account, reached from your mark's menu; quiet's ground
   whatever the page's. Its groups set as every settings page's (.wsdoc): the group's name at
   the left, each thing with its control and one line under. The workspace's own (workspaceMain) under the
   projects on the wall. */
.wsdoc .cwho > header b { font: var(--t-title); color: var(--fg); }
.clab { font: var(--t-small); color: var(--fg2); }
.cline .csay:has(> .clab) { font: var(--t-small); gap: 8px; max-width: none; }   /* the group's column, not 66ch of the small size: a named row is as wide as an unnamed one */
.cline .csay:has(> .clab) > :not(.clab) { align-self: stretch; }
.cline .csay:has(> .clab) > .btn, .cline .csay:has(> .clab) > .big-link, .cline .csay:has(> .clab) > .money, .cline .csay:has(> .clab) > .sel.short, .cline .csay:has(> .clab) > .choices, .cline .csay:has(> .clab) > .check, .cline .csay:has(> .clab) > span:not(.sel) { align-self: flex-start; }
.wsdoc { display: flex; flex-direction: column; max-width: calc(var(--measure) + var(--hang)); }
/* A group (parts.mjs group, .cwho): the settings pages' (settings.mjs), Vision's rows. Its name at the left of
   its lines, each a thing with its control and one line under it (.cused). A phone stacks the name over them. A
   project's page takes the project's column (room.css .body, --colw 1400px with the rail), as Chat and Vision do. */
.cwho { display: grid; grid-template-columns: minmax(0, var(--measure)); gap: 14px; margin-left: var(--hang); padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.wsdoc > .cwho:first-child { border-top: 0; padding-top: 4px; }   /* no rule over the first, as the rail has none */
.cwho > header { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.cwho > header .face { width: 24px; height: 24px; margin: 0 calc(var(--hang) - 34px) 0 calc(-1 * var(--hang)); color: var(--fg); }
.cwho > header b { font: var(--t-title); color: var(--fg); }
.cwho > header span { font: var(--t-small); color: var(--mute); }
.csays { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.cline { display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 24px; }
.csay { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font: var(--t-body); color: var(--fg); text-wrap: pretty; }
.csay > label { cursor: pointer; }
.csay > .items, .csay > .pair, .csay > .stack { align-self: stretch; }
.cused { margin: 0; font: var(--t-small); color: var(--mute); max-width: 64ch; text-wrap: pretty; }
.cused .pace-says { display: grid; gap: 2px; margin-top: 8px; }
.cused .pace-says b { font-weight: 500; color: var(--fg); }
.cused .bad { color: var(--bad-t); }
.cline:target .csay > label, .cline:target .csay { color: var(--uv-t); }
@media (max-width: 760px) {
  .cwho { grid-template-columns: 1fr; margin-left: 0; padding: 22px 0; }
  .cwho > header { flex-direction: row; align-items: center; gap: 10px; padding-top: 0; }
  .cwho > header .face { width: 24px; height: 24px; }
}
/* A field: the box to say something's look (room .say), one line or more. */
.in { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); outline: 0; background: color-mix(in srgb, var(--fg) 3.5%, transparent); color: var(--fg); font: var(--t-body); }
.in::placeholder { color: var(--faint); }
.in:focus-visible { border-color: color-mix(in srgb, var(--uv) 60%, transparent); }
.in:disabled { color: var(--mute); cursor: default; }
.in[aria-invalid=true] { border-color: var(--bad); }
textarea.in { min-height: 72px; resize: vertical; }
.in.short { width: 180px; }
.sel { position: relative; display: block; }
.sel .in { appearance: none; padding-right: 36px; cursor: pointer; }
.sel::after { content: ""; position: absolute; right: 13px; top: 15px; width: 7px; height: 7px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg); pointer-events: none; }
.sel.short { min-width: 180px; }   /* as wide as its longest choice */
.money { position: relative; display: block; width: 180px; max-width: 100%; }
.money .cur { position: absolute; left: 12px; top: 9px; color: var(--mute); font: var(--t-body); }
.money .in { padding-left: 26px; }
/* Two things on one line: a field and its button. */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.pair.three { grid-template-columns: minmax(0, 1fr) auto auto; }   /* a field, a choice of a few, its button */
/* A choice of a few: pills in one box, the one chosen in ink. */
.choices { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.choices label { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--r-in); font: var(--t-small); color: var(--mute); cursor: pointer; }
.choices label:hover { color: var(--fg); }
.choices label.on { color: var(--fg); background: var(--hover); box-shadow: inset 0 0 0 1px var(--line2); }
.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: center; gap: 12px; padding: 4px 0; font: var(--t-small); color: var(--fg); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--acc); }
/* Lists: a row each, on hairlines; boxed, each its own card. */
.items { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 0; min-width: 0; color: var(--fg); text-decoration: none; }
.items > .item + .item { border-top: 1px solid var(--line); }
.items > .item:first-child { padding-top: 4px; }
.items.boxed { gap: 8px; }
.items > .btn { align-self: flex-start; }
.items.boxed > .item, .item.box { padding: 12px 14px; border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--fg) 2.5%, transparent); }
.item.dashed { box-shadow: inset 0 0 0 1px var(--line2); background: transparent; border: 1px dashed var(--line2); }
.item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .grow > b { font-weight: 500; }
.item .dim, .dim { font: var(--t-small); color: var(--mute); }
.item .mono, .mono { font: var(--t-data); color: var(--mute); overflow-wrap: anywhere; }
.item .told { flex: none; display: flex; flex-direction: column; align-items: flex-end; font: var(--t-small); color: var(--mute); }
.item a.quiet, a.quiet { font: var(--t-small); color: var(--mute); text-decoration: none; white-space: nowrap; }
.item a.quiet:hover, a.quiet:hover { color: var(--fg); }
a.item:hover { background: var(--hover); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--av, 32px); height: var(--av, 32px); border-radius: 50%; background: var(--line2); color: var(--fg); font: 500 calc(var(--av, 32px) * .42) var(--mono); object-fit: cover; }
.wsmark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: var(--r-in); background: var(--acc); color: var(--on-acc); font: 700 13px var(--mono); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 3px; font: var(--t-label); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line2); }
/* Buttons beyond the dock's: outlined, and the failure colour for what can't be undone. */
.btn.line { border-color: var(--line2); color: var(--fg); background: transparent; font-weight: 400; }
.btn.line:hover { border-color: var(--fg2); }
.btn.bad { border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); background: transparent; font-weight: 400; }
.btn.bad:hover { border-color: var(--bad); }
.btn.bad.fill { background: var(--bad); color: var(--bg); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { min-height: 32px; padding: 0 12px; }
.btns.wrap { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
/* What a save or a field said back: under the control, in the failure colour. */
.ferr { margin: 0; font: var(--t-small); color: var(--bad); }
.ferr b { font-weight: 500; }
.ferr[hidden] { display: none; }
/* A command to copy. */
.cmd { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--code); font: var(--t-data); white-space: pre-wrap; word-break: break-all; }
/* The repo picker: a search and the account, then the repos, each a line. */
.picker { display: flex; flex-direction: column; gap: 10px; }
.picker-head { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 8px; }
.pick-list { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pick-list[hidden] { display: none; }
.pick { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); font: var(--t-small); color: var(--fg); cursor: pointer; }
.pick:first-child { border-top: 0; }
.pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--acc); }
.pick.taken { color: var(--faint); cursor: default; }
.pick .in-project { margin-left: auto; }
.pick[hidden] { display: none; }
/* A note beside a form (New project: what happens next). */
.note { padding: 18px 20px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--fg) 2.5%, transparent); font: var(--t-small); color: var(--fg2); max-width: 60ch; }
.note h2 { margin: 0 0 8px; font: var(--t-title); color: var(--fg); }
.form-foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--line); }
/* The buttons keep the row's top whatever the reason beside them wraps to: its first line is centred on them
   (a 40 px button, a 13 px line at 1.5), the rest hang below. */
.form-foot .ferr { flex: 1 1 14em; min-width: 0; padding-top: calc((40px - 1.5 * 13px) / 2); }
/* One dialog: what can't be undone asks for the name typed. */
.dlg-scrim { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: rgba(2,3,2,.62); backdrop-filter: blur(3px); }
.dlg-scrim[hidden] { display: none; }
.dlg { width: 520px; max-width: 100%; padding: 28px; border-radius: var(--r); background: var(--sheet); box-shadow: 0 0 0 1px var(--line2), 0 30px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { margin: 0; font: var(--t-title); color: var(--fg); }
.dlg p { margin: 0; font: var(--t-small); color: var(--fg2); }
.dlg-f { display: flex; flex-direction: column; gap: 6px; }
.dlg-f label { font: var(--t-small); color: var(--mute); }
.dlg-f label b { color: var(--fg); font-weight: 500; }
.dlg .btns { justify-content: flex-end; gap: 10px; margin-top: 4px; }
/* Usage (settings.mjs usageMain, usage.mjs usageBody): a statement, for deciding about money. The one big figure
   (the hero, the room's h1 size), a meter under it (the fill is the spend, the mark the included usage or the budget,
   the dashes the pace past the fill), sentences in the small mono, then figures without boxes (.utile), bars of one
   hue whose length is the share (.ubar, .ustack in tints), a day's columns (.udays, today in the accent), the track. */
.usage .wsdoc .cwho { padding: 28px 0 36px; }
.uhero { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.uhero b { font: var(--t-page); color: var(--fg); }
.uhero span { font: var(--t-small); color: var(--fg2); }
.uhero.past b { color: var(--bad-t); }
.umeter { margin-top: 34px; }
.umeter .track { position: relative; height: 6px; margin: 0; padding: 0; border-radius: 3px; background: var(--line); }
.umeter .fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 3px; background: var(--fg); }
.umeter .pace { position: absolute; top: 0; height: 100%; background: repeating-linear-gradient(90deg, var(--fg2) 0 3px, transparent 3px 7px); opacity: .7; }
.umeter .mark { position: absolute; top: -5px; width: 2px; height: 16px; margin-left: -1px; background: var(--fg); }
.umeter .mark.past { background: var(--bad); }
.umeter .markl { position: absolute; top: -24px; transform: translateX(-50%); white-space: nowrap; font: var(--t-small); color: var(--fg2); }
.umeter .scale { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font: var(--t-small); color: var(--fg2); }
.ulines { margin: 18px 0 0; display: flex; flex-direction: column; gap: 6px; max-width: 70ch; }
.ulines p { margin: 0; font: var(--t-small); color: var(--fg2); text-wrap: pretty; }
.ulines .past { color: var(--bad-t); }
.ulinks { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ulinks .earlier { margin: 0; padding: 0; }
.utiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
.utile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.utile b { font: var(--t-page); color: var(--fg); }
.utile span { font: var(--t-label); color: var(--fg2); }
.utile small { font: var(--t-small); color: var(--mute); text-wrap: pretty; }
.uk { margin: 0 0 12px; font: var(--t-label); color: var(--mute); }
.uk:not(:first-child) { margin-top: 30px; }
.ubars { display: flex; flex-direction: column; gap: 14px; }
.ubar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; font: var(--t-body); color: var(--fg); }
.ubar .l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ubar .l a { color: inherit; text-decoration: none; }
.ubar .l a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ubar .v { font: var(--t-body); font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.ubar i { grid-column: 1 / -1; position: relative; display: block; height: 4px; border-radius: 2px; background: var(--line); }
.ubar i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 2px; background: var(--fg); }
.ubar .n { grid-column: 1 / -1; font: var(--t-small); color: var(--mute); }
.ubar .n.warn { color: var(--acc-t); }
.ubar .n.over { color: var(--bad-t); }
.ustack .bar { display: flex; gap: 2px; height: 10px; }
.ustack .bar i { display: block; height: 100%; border-radius: 2px; background: var(--fg); }
.ustack .k1 { opacity: .66; } .ustack .k2 { opacity: .42; } .ustack .k3 { opacity: .26; } .ustack .k4 { opacity: .14; }
.ustack .keys { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font: var(--t-small); color: var(--fg2); }
.ustack .keys i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 2px; background: var(--fg); vertical-align: -1px; }
.ustack .keys b { font-weight: 400; color: var(--fg); margin-left: 2px; }
.udays { --n: 31; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; height: 96px; padding-top: 22px; }
.udays i { position: relative; display: block; height: 100%; }
.udays i::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(2px, var(--h, 0%)); border-radius: 2px 2px 0 0; background: var(--fg2); }
.udays i.today::before { background: var(--acc); }
.udays i.ahead::before { background: var(--line); height: 2px; }
.udays i b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 5px; white-space: nowrap; font: var(--t-small); color: var(--fg2); }
.udays i.today b { color: var(--fg); }
.udays i b.l { left: auto; right: 0; transform: none; }
.udays i b.r { left: 0; transform: none; }
.udays.two { padding-top: 38px; }
.udays i b.up { margin-bottom: 21px; }
.uaxis { display: flex; justify-content: space-between; margin-top: 8px; font: var(--t-small); color: var(--mute); }
.unote { margin: 0; font: var(--t-small); color: var(--mute); max-width: 80ch; }
.usage > .unote { margin-top: 8px; }
.track.ut .at { margin-right: 7px; color: var(--mute); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .utiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.track.ut .row .t { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.track.ut .row button.t:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.track.ut .row button.t[aria-expanded=true] { text-decoration: underline; text-underline-offset: 4px; }
.track.ut .cost { font: var(--t-small); font-variant-numeric: tabular-nums; color: var(--fg); text-align: right; white-space: nowrap; }
.track.ut .tl .more { color: var(--fg); }
.track.ut .ev { display: flex; justify-content: space-between; gap: 16px; }
.track.ut .ev a, .track.ut .s a { color: inherit; }
.track.ut .opens { margin-top: 10px; }
.track.ut .parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 60ch; font: var(--t-small); color: var(--fg2); }
.track.ut .parts li { display: flex; justify-content: space-between; gap: 16px; }
.track.ut .parts b { font-weight: 400; color: var(--fg); }
@media (max-width: 760px) {
  .pair.three { grid-template-columns: minmax(0, 1fr) auto; }
  .pair.three > .in { grid-column: 1 / -1; }
  .picker-head { grid-template-columns: 1fr; }
}
/* Card sections (a usage item's, Everyone's), the ledger's box; today's in black light. */
.csec { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.csec.uv { background: color-mix(in srgb, var(--uv) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--uv) 30%, transparent); }
.csec > h2, .csec-head h2 { margin: 0; font: var(--t-title); color: var(--fg); }
.csec.uv > h2 { font: var(--t-label); color: var(--uv-t); }
.csec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.csec-head .dim a { color: inherit; }
.csec .sub { font: var(--t-label); color: var(--mute); padding: 14px 0 4px; }
.csecs { display: flex; flex-direction: column; gap: 18px; }
/* A table as rows: its columns set on the row (--cols), the first a label, the rest numbers at the right. */
.trow { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) auto); gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font: var(--t-small); color: var(--fg); min-width: 0; }
.trow.head { padding: 0 0 8px; border-top: 0; font: var(--t-label); color: var(--mute); }
.trow.strong { font-weight: 500; }
.trow.dim { color: var(--fg2); }
.trow > .l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow > .r { text-align: right; font: var(--t-small); font-variant-numeric: tabular-nums; }
.trow.head > .r { font: inherit; }
.trow > .mono { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow[data-kinds]::after { content: attr(data-kinds); display: none; grid-column: 1 / -1; font: var(--t-small); color: var(--mute); }
.trow .who .face { width: 18px; height: 18px; vertical-align: -4px; }
/* A fact: its name and its words. */
.fact { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font: var(--t-small); }
.fact > span:first-child { color: var(--mute); }
.fact > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.fact .mono { color: var(--fg); }
.fact p, .said-row p, .csec .words p { margin: 0 0 .5em; white-space: pre-wrap; } .fact p:last-child, .said-row p:last-child, .csec .words p:last-child { margin-bottom: 0; }
.csec .words { font: var(--t-body); }
.said-row { display: grid; grid-template-columns: 20px 56px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font: var(--t-small); }
.said-row .who .face { width: 18px; height: 18px; display: block; }
.said-row .t { color: var(--mute); font: var(--t-data); }
.csec details { border-top: 1px solid var(--line); padding: 10px 0; }
.csec summary { cursor: pointer; font: var(--t-small); }
.csec details ol { margin: 10px 0 0; padding-left: 28px; display: flex; flex-direction: column; gap: 4px; font: var(--t-data); color: var(--fg2); }
.csec details li { overflow-wrap: anywhere; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.item-head h1 { margin: 0; font: var(--t-page); color: var(--fg); min-width: 0; max-width: 46em; }
.item-head .big { font: var(--t-page); color: var(--fg); }
/* A person's page, what they did: a row an event, its time, its mark, its project and its line. */
.arow { display: grid; grid-template-columns: 80px 20px 130px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font: var(--t-small); color: var(--fg); }
.arow.one { grid-template-columns: 80px 20px minmax(0, 1fr); }
.arow .t { font: var(--t-data); color: var(--mute); white-space: nowrap; }
.arow .mk { color: var(--mute); }
.arow .proj { color: var(--fg2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .proj a { color: inherit; text-decoration: none; }
.arow .line { min-width: 0; color: var(--fg2); }
.ahead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ahead .sel { width: 220px; max-width: 100%; }
/* A person: what they shaped as cards, a picture each. */
.pmast { display: flex; align-items: center; gap: 18px; min-width: 0; }
.pmast .av { --av: 56px; }
.pmast > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pmast a.quiet { margin-left: auto; }
.shaped { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 24px 18px; }
.shaped-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; color: var(--fg); }
.shaped-pic { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--sheet); }
.shaped-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shaped-pic.none { display: flex; align-items: center; justify-content: center; font: 400 28px var(--mono); color: var(--faint); }
.shaped-card:hover .shaped-pic { box-shadow: inset 0 0 0 1px var(--line2); }
.shaped-t { font: var(--t-label); overflow-wrap: anywhere; }
.shaped-m { font: var(--t-small); color: var(--mute); }
.fsec > h3 { margin: 0 0 4px; font: var(--t-title); color: var(--fg); }
.fsec > h3 .dim { font-weight: 400; }
/* The door (signin.mjs): signed out, or in with no workspace. Black, as quiet is; the skull, still (the lead's skull
   never moves), the line, one button, a small note under it. */
.door { flex: 1; min-height: 0; display: grid; place-items: center; padding: 24px 20px; background: var(--bg); }
.doorin { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 46ch; }
.dskull { width: 72px; height: 72px; color: var(--fg); }
.dskull svg { width: 100%; height: 100%; display: block; }
.door h1 { margin: 0; max-width: 12ch; font: var(--t-page); color: var(--fg); text-wrap: balance; }
.dwhy { margin: 0; font: var(--t-body); color: var(--fg); }
.dwhy b { font-weight: 700; }
.door p[role=status] { margin: 0; font: var(--t-body); color: var(--fg2); }
.dbtn { gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-in); font: var(--t-title); }
.door .btn.go.dbtn { background: var(--fg); color: var(--bg); box-shadow: none; }
.door .btn.line.dbtn { border-color: var(--line2); }
.dnote { margin: 4px 0 0; font: var(--t-small); color: var(--fg2); }
.dbtns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dbtns form { margin: 0; }
/* A page with only words: nothing here, or couldn't load. */
/* Every page's words start a gutter in (--hang), as a group's (.cwho) and the project's pages' do; a phone has none. */
.pg > :is(.ahead, .plain, .sdoc, .pg-line, .earlier) { padding-left: var(--hang); }
@media (max-width: 760px) { .pg > :is(.ahead, .plain, .sdoc, .pg-line, .earlier) { padding-left: 0; } }
.plain { display: flex; flex-direction: column; gap: 12px; max-width: 40em; }
.plain h1 { margin: 0; font: var(--t-page); color: var(--fg); }
.plain p { margin: 0; font: var(--t-body); color: var(--fg2); }
.plain a { color: var(--fg); }
@media (max-width: 760px) {
  .trow { grid-template-columns: minmax(0, 1fr) auto; }
  .trow > .m { display: none; }
  .trow[data-kinds]::after { display: block; }
  .trow.head { display: none; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .said-row { grid-template-columns: 20px minmax(0, 1fr); } .said-row .t { display: none; }
  .arow { grid-template-columns: 80px 20px minmax(0, 1fr); }
  .arow:not(.one) .line { grid-column: 1 / -1; }
  .ahead { align-items: stretch; } .ahead .sel { width: 100%; }
  .pmast { flex-wrap: wrap; }
  .pmast a.quiet { margin-left: 0; flex-basis: 100%; }
}
/* A project row in the workspace menu (room.mjs menuProjects) is a look into its room (the person, Nov 7: "a preview
   into the room"): the room's ground with its ink on it, whichever room the menu opens in; neon first, then
   phosphor (needs you), then black light (the crew's at work); quiet or paused, the quiet room's, paused with its
   name dimmed (not the row: a faded row let the menu's own room show through it). Rows sit apart,
   each its own room; a hover mixes a little of its ink into its ground. No check on the one you're on (the bar's
   button names it; the menu is in its room), so every name lines up with the menu's other words. A thread with words you haven't read says
   so, in words, not a dot. */
.pop-list { gap: 4px; }
.pop-list .pop-item { --rb: var(--quiet-bg); --rf: var(--quiet-fg); background: var(--rb); color: var(--rf); }
.pop-list .pop-item.red { --rb: var(--red-bg); --rf: var(--red-fg); }
.pop-list .pop-item.need { --rb: var(--need-bg); --rf: var(--need-fg); }
.pop-list .pop-item.work { --rb: var(--work-bg); --rf: var(--work-fg); }
.pop-list .pop-item:hover { background: color-mix(in srgb, var(--rb) 88%, var(--rf)); }
.pop-list .pop-item.paused { color: color-mix(in srgb, var(--rf) 50%, var(--rb)); }
.pop-item[data-unread]::after { content: "new"; margin-left: auto; padding: 1px 6px; font: var(--t-label); color: currentColor; }

/* The crafts' docs, drawn (docs.mjs, Nov 11: "consumer grade polished"). A page is its pictures: Architecture a canvas
   a level at a time, Design one board; words live in the drawer that opens on what's picked. */
.dpage { display: flex; flex-direction: column; gap: 28px; padding-bottom: 48px; }
.body .pg > .dpage { padding-left: 0; }
.dhead { display: grid; gap: 6px; max-width: var(--measure); }
.dlede { margin: 0; font: var(--t-page); color: var(--fg); text-wrap: balance; }
.dwhen { margin: 0; font: var(--t-small); color: var(--mute); }
.dnone .dlede { font: var(--t-title); }

/* Levels: a segmented row of boxes (no pills), the count beside each name. */
.dlevels-wrap { display: grid; gap: 14px; min-width: 0; }
.dlevels { display: flex; gap: 4px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.dlevel { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border-radius: var(--r-in); color: var(--fg2); text-decoration: none; font: var(--t-label); white-space: nowrap; transition: background-color var(--m-quick) var(--m-glide), color var(--m-quick) var(--m-glide); }
.dlevel:hover { color: var(--fg); background: var(--hover); }
.dlevel[aria-current=true] { background: var(--fg); color: var(--bg); }
.dlevel-n { font: var(--t-data); opacity: .7; }
.dlevel-view { display: grid; gap: 12px; min-width: 0; }
.dlevel-view[hidden] { display: none; }
.dlevel-about { margin: 0; font: var(--t-small); color: var(--mute); }

/* The canvas: a quiet field with a dot grid, the drawing centred on it at its own size; sideways where it's wider. */
.dcanvas { position: relative; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 28px 20px; border-radius: calc(var(--r) * 2); background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--fg) 10%, transparent) 1px, transparent 1.5px) 0 0 / 20px 20px, color-mix(in srgb, var(--fg) 3%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line); }
.dia { margin: 0; }
.dcanvas .dia { display: flex; justify-content: center; }
.dsvg { display: block; height: auto; overflow: visible; }
.dcanvas .dsvg { max-width: 100%; min-width: 760px; }   /* a little smaller to fit the canvas, never so small its words go unread: sideways past that */
.dcanvas .dsvg.dv-narrow { min-width: 0; }
.dv-narrow { display: none; }
@media (max-width: 640px) { .dv-wide { display: none; } .dv-narrow { display: block; } .dcanvas { padding: 20px 12px; } }
.dlegend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font: var(--t-small); color: var(--mute); }
.dlegend > span { display: inline-flex; align-items: center; gap: 6px; }
.dlegend .dico { width: 15px; height: 15px; }
.lg-box { display: inline-block; width: 16px; height: 11px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 10%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line2); }
.lg-box.out { background: none; box-shadow: none; border: 1px dashed var(--line2); }
.lg-tip { margin-left: auto; }
@media (max-width: 760px) { .lg-tip { display: none; } }

/* A box: its kind's icon and word over its name, what it does under. Lit with what it talks to while pointed at. */
.dico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dsvg .dnode { cursor: pointer; text-decoration: none; transition: opacity var(--m-quick) var(--m-glide); }
.dsvg .dbox { fill: color-mix(in srgb, var(--fg) 7%, var(--bg)); stroke: var(--line2); stroke-width: 1; transition: fill var(--m-quick) var(--m-glide), stroke var(--m-quick) var(--m-glide); }
.dsvg .dnode:hover .dbox { fill: color-mix(in srgb, var(--fg) 12%, var(--bg)); stroke: color-mix(in srgb, var(--fg) 40%, transparent); }
.dsvg .dnode:focus-visible { outline: none; }
.dsvg .dnode:focus-visible .dbox, .dsvg .dnode.picked .dbox { stroke: var(--fg); stroke-width: 2; }
.dsvg .product .dtext { justify-content: center; }
.dsvg .dtext { box-sizing: border-box; height: 100%; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; color: var(--fg); }
.dsvg .dtext .dk { display: flex; align-items: center; gap: 6px; height: 18px; font: 500 12px/1 var(--sans); color: var(--mute); }
.dsvg .dtext .dk .dico { width: 14px; height: 14px; }
.dsvg .dtext b { font: 500 14px/19px var(--sans); overflow-wrap: anywhere; }
.dsvg .dtext .dg { margin-top: 2px; font: 400 12.5px/17px var(--sans); color: var(--fg2); }
.dsvg .dtext.small { padding: 6px 10px; justify-content: center; gap: 2px; }
.dsvg .dtext.small b { font: 500 12.5px/16px var(--sans); }
.dsvg .focus .dbox { fill: var(--fg); stroke: none; }
.dsvg .focus .dtext, .dsvg .focus .dtext .dk { color: var(--bg); }
.dsvg .product .dbox { fill: color-mix(in srgb, var(--fg) 13%, var(--bg)); stroke: color-mix(in srgb, var(--fg) 50%, transparent); stroke-width: 1.5; }   /* the hub everything meets: lit, not a block of ink */
.dsvg .product:hover .dbox { fill: color-mix(in srgb, var(--fg) 18%, var(--bg)); }
.dsvg .product .dtext { align-items: center; text-align: center; }
.dsvg .product .dtext b { font: var(--t-page); }
.dsvg .system .dbox, .dsvg .outside .dbox { fill: var(--bg); stroke-dasharray: 4 3; }   /* outside the product: dashed, and solid so no arrow shows through it */
.dsvg .container .dbox { fill: color-mix(in srgb, var(--fg) 10%, var(--bg)); }
.dsvg .more .dbox { fill: none; stroke-dasharray: 2 3; }
.dsvg .more text { font: 400 12px var(--sans); fill: var(--mute); }
.dsvg .dedge { fill: none; stroke: color-mix(in srgb, var(--fg) 30%, transparent); stroke-width: 1.3; transition: stroke var(--m-quick) var(--m-glide), opacity var(--m-quick) var(--m-glide); }
.dsvg .dedge.more { stroke-dasharray: 2 3; }
.dsvg.busy .dedge { stroke: color-mix(in srgb, var(--fg) 20%, transparent); }   /* many arrows: quieter, until one box is pointed at */
.dsvg marker path { fill: color-mix(in srgb, var(--fg) 55%, transparent); }
.dsvg .dgroup rect { fill: color-mix(in srgb, var(--fg) 2.5%, transparent); stroke: var(--line2); stroke-width: 1.2; stroke-dasharray: 6 5; }
.dsvg .dgroup text { font: 500 13px var(--sans); fill: var(--fg2); }
.dsvg .dgroup tspan { fill: var(--mute); font-weight: 400; }
.dsvg .dcol { font: 500 11.5px var(--sans); fill: var(--mute); }
.lit .dnode:not(.on), .lit .ccard:not(.on) { opacity: .28; }
.lit .dedge:not(.on) { opacity: .12; }
.lit .dedge.on { stroke: var(--fg); stroke-width: 1.8; }

/* Components: a card a component, in its container's grid; a card's neighbours lit while it's pointed at. */
.cmaps { display: grid; gap: 28px; }
.cmap { display: grid; gap: 12px; scroll-margin-top: 16px; }
.cmap-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cmap-t { display: inline-flex; align-items: center; gap: 8px; font: var(--t-title); color: var(--fg); text-decoration: none; }
.cmap-t:hover { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.cmap-k { font: var(--t-small); color: var(--mute); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.ccard { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 5%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); text-decoration: none; transition: background-color var(--m-quick) var(--m-glide), box-shadow var(--m-quick) var(--m-glide), opacity var(--m-quick) var(--m-glide); }
.ccard:hover { background: color-mix(in srgb, var(--fg) 9%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line2); }
.ccard.me, .ccard.picked { box-shadow: inset 0 0 0 2px var(--fg); }
.ccard b { font: var(--t-label); overflow-wrap: anywhere; }
.ccard .dg { font: 400 13px/1.4 var(--sans); color: var(--fg2); }
.cmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 6px; font: var(--t-data); color: var(--mute); }

/* Design: the board. Sections chips at the top, each group a heading and its pictures. */
.dchips { position: sticky; top: 0; z-index: 3; display: flex; gap: 4px; margin: 0 calc(var(--g) * -1); padding: 10px var(--g); overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.dchips a { flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: var(--r-in); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg2); text-decoration: none; font: var(--t-label); }
.dchips a:hover { color: var(--fg); background: var(--hover); }
.dchips a span { font: var(--t-data); color: var(--mute); }
.dsec { display: grid; gap: 18px; scroll-margin-top: 64px; min-width: 0; }
.dsec > h2 { margin: 0; font: var(--t-page); }
.dsec + .dsec { padding-top: 28px; border-top: 1px solid var(--line); }
.dsec.quiet { padding-top: 0; border-top: 0; }
.board { display: grid; gap: 30px; }
.tgroup { display: grid; gap: 14px; min-width: 0; }
.tg-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tg-h h3 { margin: 0; font: var(--t-title); }
.tg-h p { margin: 0; font: var(--t-small); color: var(--mute); }
.tg-body { display: grid; gap: 12px; min-width: 0; }
.tg-color .tg-body { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
.tg-radius .tg-body, .tg-time .tg-body, .tg-curve .tg-body { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tg-notes { margin: 0; padding: 14px 16px 14px 34px; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 4%, transparent); font: var(--t-small); color: var(--fg2); }
.tk { display: grid; gap: 8px; min-width: 0; align-content: start; }
.tk-l { display: grid; gap: 1px; min-width: 0; }
.tk-n { font: 500 13px/1.4 var(--mono); color: var(--fg); overflow-wrap: anywhere; }
.tk-v { font: var(--t-data); color: var(--mute); overflow-wrap: anywhere; }
.tk-note { font: var(--t-small); color: var(--fg2); }
.tk-color { padding: 6px 6px 12px; border-radius: calc(var(--r) + 4px); background: color-mix(in srgb, var(--fg) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.tk-color .tk-l { padding: 0 6px; }
.tk-chip { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent); }
.tk-type { grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.tk-type:first-child { border-top: 0; padding-top: 4px; }
.tk-spec { display: flex; align-items: baseline; gap: 18px; min-width: 0; color: var(--fg); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-aa { flex: none; font-size: 2.1em; line-height: 1; }
@media (max-width: 640px) { .tk-type { grid-template-columns: 1fr; gap: 8px; } .tk-spec { white-space: normal; } }
.tk-length { grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 16px; }
.tk-length .tk-l { grid-template-columns: max-content max-content; gap: 10px; align-items: baseline; }
.tk-rule { position: relative; display: block; height: 18px; min-width: 0; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px); border-radius: 2px; }
.tk-rule i { position: absolute; inset: 3px auto 3px 0; max-width: 100%; border-radius: 2px; background: var(--uv); }
.tk-radius { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; }
.tk-tile { display: block; width: 64px; height: 64px; background: color-mix(in srgb, var(--fg) 10%, transparent); box-shadow: inset 0 0 0 2px var(--fg); }
.tk-time, .tk-curve { --sw-t: 1.1s; --sw-ease: cubic-bezier(.65, 0, .35, 1); padding: 14px; border-radius: calc(var(--r) + 4px); background: color-mix(in srgb, var(--fg) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line); outline: none; cursor: default; }
.tk-time:focus-visible, .tk-curve:focus-visible { box-shadow: inset 0 0 0 2px var(--fg); }
.tk-curve .tk-v { overflow-wrap: normal; word-break: break-word; }
.tk-dur { display: block; height: 3px; border-radius: 2px; background: var(--line2); }
.mc-plot { width: 84px; height: 84px; }
.mc-plot rect { fill: none; stroke: var(--line); }
.mc-plot .h { fill: none; stroke: var(--line2); stroke-dasharray: 2 2; }
.mc-plot .c { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; }
.sw-track { position: relative; display: block; height: 22px; border-radius: 11px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.sw-track i { position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--acc); animation: sw-go var(--sw-t) var(--sw-ease) infinite alternate paused; }
:is(.tk-time, .tk-curve):is(:hover, :focus-visible) .sw-track i { animation-play-state: running; }
@keyframes sw-go { to { left: calc(100% - 18px); } }
@media (prefers-reduced-motion: reduce) { .sw-track i { animation: none; } }

/* Parts and pages: a gallery of cards, a picture over a caption. A page drawn as a wireframe from its regions until
   it has a picture of its own. */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.gcard { display: flex; flex-direction: column; min-width: 0; border-radius: calc(var(--r) + 4px); overflow: hidden; background: color-mix(in srgb, var(--fg) 4%, var(--bg)); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); text-decoration: none; transition: box-shadow var(--m-quick) var(--m-glide), translate var(--m-quick) var(--m-arrive); }
.gcard:hover { box-shadow: inset 0 0 0 1px var(--line2), 0 10px 24px rgba(var(--sh), .22); translate: 0 -2px; }
.gcard.picked { box-shadow: inset 0 0 0 2px var(--fg); }
.gpic { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 14px; background: color-mix(in srgb, var(--fg) 5%, transparent); border-bottom: 1px solid var(--line); }
.gcap { display: grid; gap: 2px; padding: 12px 14px 14px; }
.gcap b { font: var(--t-label); }
.gcap span { font: var(--t-small); color: var(--fg2); }
.gcard.drawn .gpic { position: relative; display: block; overflow: hidden; padding: 0; background: color-mix(in srgb, var(--fg) 8%, transparent); }   /* the picture cropped to the card's frame, its top kept */
.gimg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gcard.part.drawn .gimg { object-fit: contain; padding: 12px; box-sizing: border-box; }
.de-pics { display: grid; gap: 14px; }
.de-pics figure { margin: 0; display: grid; gap: 6px; }
.de-pics a { display: block; max-height: 560px; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line2); cursor: zoom-in; }
.de-pics img { display: block; width: 100%; height: auto; }
.de-pics figcaption { font: var(--t-small); color: var(--mute); }
.gp-part { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.gp-ico { width: 40px; height: 40px; color: var(--mute); fill: none; stroke: currentColor; stroke-width: 1; }
.wf { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: var(--r-in); overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line2), 0 6px 16px rgba(var(--sh), .18); }
.wf-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.wf-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.wf-url { flex: 1; min-width: 0; margin-left: 6px; padding: 1px 8px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 6%, transparent); font: 10.5px/1.5 var(--mono); color: var(--mute); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wf-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.wf-r { flex: 1; display: flex; align-items: center; min-height: 0; padding: 0 8px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 7%, transparent); font: 10px/1.2 var(--sans); color: var(--mute); overflow: hidden; white-space: nowrap; }
.wf-r.first { flex: 1.6; background: color-mix(in srgb, var(--fg) 12%, transparent); color: var(--fg2); }
.wf-r span { overflow: hidden; text-overflow: ellipsis; }
.dprose { max-width: var(--measure); font: var(--t-body); color: var(--fg2); }
.dhow summary { cursor: pointer; font: var(--t-label); color: var(--mute); }
.dhow[open] summary { margin-bottom: 8px; }

/* Small tokens, for a part's drawer and card. */
.mn { display: inline-flex; align-items: center; gap: 6px; font: var(--t-data); color: var(--fg2); }
.mn code { font: var(--t-data); }
.gp-part .mn { flex-direction: column; gap: 6px; }
.gp-part .mn-chip { width: 36px; height: 36px; }
.gp-part .mn-aa { font-size: 30px !important; }
.mn-chip { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line2); }
.mn-aa { color: var(--fg); }
.mn-tile { width: 16px; height: 16px; box-shadow: inset 0 0 0 1.5px var(--fg); }
.mn-bar { height: 6px; border-radius: 2px; background: var(--uv); }
.mn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.dminis { display: flex; flex-wrap: wrap; gap: 8px 14px; }

/* The drawer: what's picked, over the page's right side (from the bottom on a phone). */
.drawer { position: fixed; z-index: 60; top: 72px; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: calc(var(--r) * 2); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line2), 0 24px 60px rgba(var(--sh), .45); }
.drawer[hidden] { display: none; }
.drawer-in { padding: 22px 22px 28px; }
.dentry { display: grid; gap: 18px; }
.dentry[hidden] { display: none; }
.dclose { position: sticky; top: 12px; float: right; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin: 12px 12px 0 0; border: 0; border-radius: var(--r-in); background: color-mix(in srgb, var(--fg) 7%, var(--sheet)); color: var(--fg2); cursor: pointer; }
.dclose:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 12%, var(--sheet)); }
.dclose svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.de-h { display: grid; gap: 6px; padding-right: 36px; }
.de-k { display: flex; align-items: center; gap: 7px; margin: 0; font: var(--t-label); color: var(--mute); }
.de-k span { font-weight: 400; }
.de-h h2 { margin: 0; font: var(--t-page); overflow-wrap: anywhere; }
.de-does { margin: 0; font: var(--t-body); color: var(--fg2); }
.drawer .dia.around { padding: 12px 8px; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 4%, transparent); overflow-x: auto; }
.drawer .dia.around .dsvg { margin: 0 auto; }
.de-pic { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.dfs { display: grid; gap: 14px; margin: 0; }
.df { display: grid; gap: 6px; }
.df dt { font: var(--t-label); color: var(--mute); }
.df dd { margin: 0; min-width: 0; font: var(--t-small); color: var(--fg); overflow-wrap: anywhere; }
.dcodes, .dtags, .dlinks { display: flex; flex-wrap: wrap; gap: 6px; }
.dcodes .dnote { font: var(--t-small); color: var(--mute); }
.dcodes code { padding: 2px 7px; border-radius: var(--r-in); background: var(--code); font: var(--t-data); color: var(--fg2); }
.dtag { padding: 2px 8px; border-radius: var(--r-in); box-shadow: inset 0 0 0 1px var(--line2); font: var(--t-small); color: var(--fg2); text-decoration: none; }
a.dtag:hover { color: var(--fg); background: var(--hover); }
.dlink { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: var(--r-in); background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); text-decoration: none; font: var(--t-small); }
.dlink:hover { background: color-mix(in srgb, var(--fg) 13%, transparent); }
.dlink .dico { width: 14px; height: 14px; color: var(--mute); }
.dgo { font: var(--t-label); color: var(--fg); }
.dmore summary { cursor: pointer; color: var(--fg2); margin-bottom: 6px; }
.dregions { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
@media (min-width: 1100px) { .page-scroll:has(.drawer:not([hidden])) :is(.doc-design_system, .dpage:has([data-level-view=components]:not([hidden]))) { padding-right: 452px; transition: padding var(--m-move) var(--m-arrive); } }   /* the page makes room for what's open beside it */
.dscrim { position: fixed; inset: 0; z-index: 59; background: rgba(2,3,2,.5); }
.dscrim[hidden] { display: none; }
@media (max-width: 760px) {
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 84vh; border-radius: calc(var(--r) * 2) calc(var(--r) * 2) 0 0; }
}
