/* The new Harrox: the shell's stylesheet. Every shared class; the tokens and the four looks are in tokens.css.
   Plain CSS, no build. Round 2: glassier, clearer, editable; the look of iOS 26's glass. */
/* The prose face (tokens.css --prose): Cormorant Garamond, the same files and weights the old app uses (public/app.css),
   served under /fonts/cormorant-garamond/ (src/web/server.js FONTS). SIL Open Font License 1.1. */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond/cormorant-garamond-latin-600-italic.woff2) format('woff2'); }
/* The everyday face (tokens.css --font): Instrument Sans, near the walkthrough's DM Sans, from @fontsource/instrument-sans,
   served under /fonts/instrument-sans/ (src/web/server.js FONTS). SIL Open Font License 1.1. */
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url(/fonts/instrument-sans/instrument-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url(/fonts/instrument-sans/instrument-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url(/fonts/instrument-sans/instrument-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 700; font-display: swap; src: url(/fonts/instrument-sans/instrument-sans-latin-700-normal.woff2) format('woff2'); }
* { box-sizing: border-box; }
/* A hidden thing stays hidden even where a class gives it a display (.field is flex). */
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
/* The person's text size (web/size.js): the whole shell is drawn at it, as the old app is (public/app.css). A length that
   sees the screen (vh, vw) divides by it; under 100% a phone's text boxes grow back, so an iPhone never zooms in on one. */
html { zoom: var(--size, 1); }
@media (pointer: coarse) { :is(input, textarea, select) { zoom: var(--unsize, 1); } }
/* A notched phone's edges (index.html has viewport-fit=cover), in the shell's own px: the floating chrome keeps clear. */
:root { --safe-top: calc(env(safe-area-inset-top, 0px) / var(--size, 1)); --safe-bottom: calc(env(safe-area-inset-bottom, 0px) / var(--size, 1)); }
/* The top band's height under the status bar: 10px, the 44px circles, 10px (.topbar). The screen starts right under it
   (Sleek C: content first, not ~300px down). */
:root { --top-h: 64px; }
/* Room for Safari's own floating toolbar (iOS 26): it lies over the page's bottom, past the safe area, so every screen's
   last row scrolls clear of the bar by this much more (Payton's iPhone, 2026-11-01: Mail's VIP and Back to Harrox). */
:root { --toolbar-room: 24px; }
body { background: var(--bg); color: var(--label); font: 17px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* The keyboard's ring is the last rule in this file (one ring for everything, two-tone). */
/* Tab never leaves a control under the floating top or the box and the bar (accessibility.md 9). */
html { scroll-padding-top: calc(72px + var(--safe-top)); scroll-padding-bottom: calc(var(--bar-h) + 40px + var(--safe-bottom) + var(--toolbar-room)); }
html:has(.main.withbox) { scroll-padding-bottom: calc(var(--bar-h) + 22px + var(--safe-bottom) + var(--composer-h, 96px) + 24px); }
/* While Jump to latest floats over the box (44px, 8px above it), the page keeps room for it too, so it never sits on the
   last line (a crisis card's Call and text at 150%: the final review's M2). */
html:has(.composer .jump:not([hidden])) .main.withbox { padding-bottom: calc(var(--bar-h) + 22px + var(--safe-bottom) + var(--composer-h, 96px) + 24px + 52px); }
html:has(.composer .jump:not([hidden])):has(.main.withbox) { scroll-padding-bottom: calc(var(--bar-h) + 22px + var(--safe-bottom) + var(--composer-h, 96px) + 24px + 52px); }
/* The skip link: first on the page, out of sight until the keyboard lands on it. */
.skip { position: fixed; left: 12px; top: -100px; z-index: 60; padding: 10px 16px; border-radius: var(--pill); background: var(--glass-dense); color: var(--label); font-weight: 600; }
.skip:focus { top: calc(12px + var(--safe-top)); }

/* The painting under a veil */
/* It fills the whole screen, under the home indicator too: an iPhone opened from the Home Screen showed a black band
   under the bar (2026-10-31), where the layout's bottom stopped short of the glass. So it runs past the bottom by the
   safe area, and is at least the large viewport tall (lvh: the screen with the browser's bars away), in the shell's px.
   It came back (2026-10-31, iOS 26.6, after #461): on a short page (Today, the In-tray, Files) Safari's layout stopped
   50-60px above the glass, the bar rode up with it, and the page's plain ground showed under it. So it runs well past
   the layout's bottom too (--look-under): a fixed layer is painted wherever the glass shows the page, layout or not. */
:root { --look-under: 200px; }
.look { position: fixed; inset: 0; bottom: calc(0px - var(--safe-bottom) - var(--look-under)); min-height: calc(100vh / var(--size, 1) + var(--safe-bottom) + var(--look-under)); min-height: calc(100lvh / var(--size, 1) + var(--safe-bottom) + var(--look-under)); z-index: -1; overflow: hidden; pointer-events: none; }
.look-layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; }
/* The first painting shows at once (look.js startRotation): only the rotation cross-fades, once .look has .fades. The
   fade is four seconds long, the same as fadeMs in look.js. */
.look.fades .look-layer { transition: opacity 4s ease-in-out; }
/* Going from one app to another cross-fades to its own painting (look.js showPainting), quicker than the rotation. */
.look.moves .look-layer { transition: opacity .7s ease-in-out; }
.look-layer.on { opacity: 1; }
.look-veil { position: absolute; inset: 0; background: var(--veil); }
/* The page's own ground, the canvas (Payton's iPhone, 2026-11-02, after #466 and #474 matched the painting's bottom tone
   there and a brown strip still showed under the bar): iOS 26 Safari paints the canvas's colour wherever the page ends
   before the screen does (under its floating bar and the home indicator), whatever the layout draws. So the bottom takes
   the top's colour: the root is --edge, the solid ink (parchment by Day) the top band behind the status bar is
   (.topbar::before), the band under the bar is that colour too, and so is the browser's bar (look.js themeColorOf). From
   the bar down it is one colour by construction. No ancestor of .look clips its fixed layer (html and body set no
   overflow, transform, filter or contain); body is transparent so the painting shows. look-root.test.js pins these. */
html:has(> body > .look) { background-color: var(--edge); }
html:has(> body > .look) > body { background: transparent; }

/* Icons: the line icons from icons.svg; the filled twin (-f) marks the active tab */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.s { width: 18px; height: 18px; } .i.l { width: 28px; height: 28px; }
.i.f { fill: currentColor; stroke-width: 1.2; }
/* An icon whose inside is its meaning (the Shelves' books, a calendar's days) would fill to a blob: lit, it keeps its lines
   over a soft fill (public/icons.js LIT; Payton's iPhone, 2026-11-01). */
.i.f[data-lit="tint"] { fill-opacity: .42; stroke-width: 1.9; }
.mark { color: var(--accent-glyph); } .mark .star { stroke: var(--label); } .mark .dot { fill: var(--arcane); stroke: none; }

/* Glass */
/* A card (the design council's batch A): content lies on a surface, never on blurred glass, and has only a hairline edge (--card-edge). It has
   depth (Payton, 2026-11-09: "it just looks flat"; tokens.css): a soft light in its top and a soft shadow under it,
   never the chrome's --spec or --glass-shadow. Its secondary words recede on it (tokens.css --label2-on). */
.glass { background: var(--surface); background-image: var(--card-light); box-shadow: var(--card-depth); border: 1px solid var(--card-edge); border-radius: var(--r-card); min-width: 0; --label2: var(--label2-on); }
/* The surfaces that are not .glass wear the same: a row, a book, a strip, a snag, an empty state, an offer; the hero
   keeps its own tint and takes the shadow. :root lifts these over each one's own rule further down, whose background
   would take the light off again. */
:root :is(.pillrow, .book, .strip, .snag, .empty, .offer) { background-image: var(--card-light); box-shadow: var(--card-depth); border: 1px solid var(--card-edge); }
:root .hero { box-shadow: var(--card-depth); border: 1px solid var(--card-edge); }
/* Only what lies on the painting: a surface inside a card is part of that card, so it wears neither (a second shadow
   inside a card reads as a frame, and a second light as a stripe). */
.glass :is(.glass, .pillrow, .book, .strip, .snag, .empty, .offer, .hero) { box-shadow: none; border-color: transparent; }
.glass :is(.glass, .pillrow, .book, .strip, .snag, .empty, .offer) { background-image: none; }
/* A control stands a step proud of what it lies on (--ctl-depth, in each control's own rule: .btn, .pill, .circ,
   .homepill, .topbar .mid); a quiet button has no fill, so nothing to raise; the primary button keeps its own glow.
   A field is a well. */
.field :is(input, select, textarea) { box-shadow: var(--well-depth); }
.dense { background: var(--surface2); }
.card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card h2 { font-size: 17px; font-weight: 600; }
.label { font-size: 13px; color: var(--label); font-weight: 600; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; font-variant-numeric: lining-nums tabular-nums; }
.label a, .label button { font-weight: 500; color: var(--accent-text); min-height: 32px; display: inline-flex; align-items: center; gap: 2px; position: relative; }
/* Plan 8 Task 6 (items 32, 46; the full check's accessibility I2): every control takes a 44px finger. Where its drawn
   size is the design (a text link in a label, a small button, a chip, a pill, the box's mode, a segment), a transparent
   ::after reaches 44 above and below it; the rest are drawn at 44 where they are set. */
.label a::after, .label button::after { content: ""; position: absolute; inset: -6px -4px; }
.btn.sm, button.chip, .pill, .seg button { position: relative; }
.btn.sm::after { content: ""; position: absolute; inset: -4px 0; }
button.chip::after { content: ""; position: absolute; inset: -6px 0; }
.pill::after { content: ""; position: absolute; inset: -2px 0; }
.seg button::after { content: ""; position: absolute; inset: -5px 0; }
.muted { color: var(--label2); } .faint { color: var(--label3); } .small { font-size: 15px; } .tiny { font-size: 12px; }
.ltitle { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; padding: 0 4px; text-shadow: var(--title-glow); }
.title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; } .row .grow, .grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
/* Times and headings use lining numerals: Cormorant's own numerals are old-style, so "9:00" read as "9:oo" (the look check,
   2026-11-27). Times are tabular too, so a column of them lines up. */
time, input[type="number"] { font-variant-numeric: lining-nums tabular-nums; } /* a number box too: the stamp card's stepper is in the display face */
:is(h1, h2, h3) { font-variant-numeric: lining-nums; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--pill); background: linear-gradient(var(--chip-tint), var(--chip-tint)), var(--surface2); border: 1px solid var(--chip-edge); font-size: 13px; font-weight: 500; color: var(--chip-text); }
/* The walkthrough's chip (Payton, 2026-11-16): a faint gold fill, a hairline gold edge, gold words. The coloured ones keep their own colours and take the same pill edge in it, at 25%. */
.chip.due, .chip.ok, .chip.acc, .chip.pc, .chip.npc, .chip.react { border-color: color-mix(in srgb, currentColor 25%, transparent); }
.chip.due { background: var(--bad-tint); color: var(--bad-text); } .chip.ok { background: var(--ok-tint); color: var(--ok-text); } .chip.acc { background: var(--tint); color: var(--accent-text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-ctl);
  background: var(--raised); box-shadow: var(--ctl-depth); font-weight: 600; white-space: nowrap; }
/* Press feedback, one set for every control (the design council's A7): the press is instant and two-fold, a highlight
   over its own fill and a small give (.97, a row .985, a circle .92), 80ms down and 160ms back on one curve. A div that
   only looks like a row or a book (nothing to press) never gives. WebKit's own grey flash is off; the highlight is ours.
   Reduce Motion keeps the highlight and drops the give. */
:is(.btn, .pill, .pillrow, .book, .offer, .tile, .menu [role="menuitem"], .circ, .homepill, .chip[aria-current], .segpick label) {
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1), background-color 160ms ease-out; -webkit-tap-highlight-color: transparent; }
:is(.btn, .pill, .tile, .homepill, .chip[aria-current], .segpick label):not(div):active { transform: scale(.97); transition-duration: 80ms; }
:is(.pillrow, .book, .offer, .menu [role="menuitem"]):not(div):active { transform: scale(.985); transition-duration: 80ms; }
.circ:active { transform: scale(.92); transition-duration: 80ms; }
:is(.btn:not(.primary, .danger), .pill, .pillrow, .book, .offer, .menu [role="menuitem"], .circ, .homepill, .chip[aria-current], .segpick label):not(div):active {
  background-image: linear-gradient(color-mix(in srgb, currentColor 10%, transparent), color-mix(in srgb, currentColor 10%, transparent)); }
:is(.btn.primary, .btn.danger):active { filter: brightness(.92); }
/* Taps never wait for a double tap's zoom. */
.main :is(a, button), :is(.sheet, .drawer) { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { :is(.btn, .pill, .pillrow, .book, .offer, .tile, .menu [role="menuitem"], .circ, .homepill, .chip[aria-current], .segpick label):active { transform: none; } }
/* Hover: every button lifts a little (Vincent, 2026-11-04: "i like a lift up"). A mouse only (hover: hover and pointer:
   fine), so a phone's tap never leaves a control raised. A control rises 1px (a Home tile's icon 2px) on a short spring
   and its edge catches the light: a 1px inner line in --glass-edge and a tight contact shadow, nothing soft or wide; the
   primary and danger buttons' accent glow grows a step. A text-sized control (a label's link, a reply's actions, a
   tip's close) only rises. A row that spans its card doesn't move (a whole row jumping is noise): it steps up to a
   control's surface (--raised) with the same top line, rounded where its group starts and ends. A press always wins
   (:not(:active)) and stays 80ms; the keyboard's :focus-visible gets the same cue beside its ring; Reduce Motion and
   Calm drop the rise. :root lifts the transitions over the press rules' own lists (an :is() takes its heaviest name). */
:root :is(.btn, .pill, a.pillrow, button.pillrow, a.chip, button.chip, .homepill, .circ, .menu [role="menuitem"], a.set, button.set, label.set, a.book, button.book,
  a.offer, button.offer, .bar a:not(.brand), a.frrow, button.frrow, a.nbrow, button.nbrow, .part .tile .ic, .label a, .label button, .lmore, .more, .acts button, .tip .x, .segpick label) {
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1), scale 160ms cubic-bezier(.2, .8, .2, 1), translate 160ms cubic-bezier(.3, 1.4, .5, 1),
    background-color 140ms ease-out, box-shadow 140ms ease-out, filter 140ms ease-out; }
:root :is(.btn, .pill, a.pillrow, button.pillrow, a.chip, button.chip, .homepill, .circ, .menu [role="menuitem"], a.set, button.set, label.set, a.book, button.book,
  a.offer, button.offer, .bar a:not(.brand), a.frrow, button.frrow, a.nbrow, button.nbrow, .label a, .label button, .lmore, .more, .acts button, .tip .x, .segpick label):active,
  :root .part .tile:active .ic { transition-duration: 80ms; }
@media (hover: hover) and (pointer: fine) {
  :is(.btn:not(.quiet, .primary, .danger), .pill, a.chip, button.chip, .homepill, .circ, a.book, button.book, a.offer, button.offer, .segpick label):not([disabled], [aria-disabled="true"]):hover:not(:active) {
    translate: 0 -1px; box-shadow: inset 0 0 0 1px var(--glass-edge), 0 2px 3px -1px rgba(0, 0, 0, .35); }
  :is(.btn.primary, .btn.danger):not(.quiet, [disabled], [aria-disabled="true"]):hover:not(:active) {
    translate: 0 -1px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 18px -6px var(--accent); filter: brightness(1.05); }
  :is(.btn.quiet, .label a, .label button, .lmore, .more, .acts button, .tip .x):not([disabled], [aria-disabled="true"]):hover:not(:active) { translate: 0 -1px; }
  :is(.btn.quiet:not(.danger)):not([disabled], [aria-disabled="true"]):hover:not(:active) { background-color: var(--raised); }
  :is(a.pillrow, button.pillrow, .menu [role="menuitem"], a.set, button.set, label.set, .bar a:not(.brand, .on), a.frrow, button.frrow, a.nbrow, button.nbrow):hover:not(:active) {
    background-color: var(--raised); box-shadow: inset 0 1px 0 var(--glass-edge); }
  .part .tile:hover:not(:active) .ic { translate: 0 -2px; box-shadow: inset 0 0 0 1px var(--glass-edge), 0 3px 4px -2px rgba(0, 0, 0, .4); }
}
:is(.btn:not(.quiet), .pill, a.chip, button.chip, .homepill, .circ, a.book, button.book, a.offer, button.offer, .segpick label, .btn.quiet, .label a, .label button, .lmore, .more,
  .acts button, .tip .x):focus-visible, .part .tile:focus-visible .ic { translate: 0 -1px; }
:is(a.pillrow, button.pillrow, .menu [role="menuitem"], a.set, button.set, label.set, .bar a:not(.brand, .on), a.frrow, button.frrow, a.nbrow, button.nbrow, .btn.quiet:not(.danger)):focus-visible {
  background-color: var(--raised); }
.setcard .sgroup > :is(a, button, label).set:first-child { border-top-left-radius: var(--r-row); border-top-right-radius: var(--r-row); }
.setcard .sgroup > :is(a, button, label).set:last-child { border-bottom-left-radius: var(--r-row); border-bottom-right-radius: var(--r-row); }
@media (prefers-reduced-motion: reduce) { :root :is(.btn, .pill, a.chip, button.chip, .homepill, .circ, a.book, button.book, a.offer, button.offer, .segpick label, .label a, .label button, .lmore, .more, .acts button, .tip .x, .part .tile .ic) { translate: none !important; } }
[data-motion="calm"] :is(.btn, .pill, a.chip, button.chip, .homepill, .circ, a.book, button.book, a.offer, button.offer, .segpick label, .label a, .label button, .lmore, .more, .acts button, .tip .x, .part .tile .ic) { translate: none !important; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-radius: var(--pill); border: 1px solid rgba(230, 207, 150, .4); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 20px rgba(210, 179, 108, .09); }
.btn.quiet { background: none; box-shadow: none; color: var(--accent-text); backdrop-filter: none; }
.btn.danger { background: var(--bad); color: var(--on-bad); }
/* A quiet button that does something for good (the paused page's Delete my account): no fill, the danger colour. */
.btn.quiet.danger { background: none; color: var(--bad-text); }
.btn.block { width: 100%; } .btn.sm { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: var(--r-cover); }
.btn.sm.primary { border-radius: var(--pill); }
.circ { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--raised); box-shadow: var(--ctl-depth); color: var(--label); position: relative; pointer-events: auto; }
.circ.acct.pic { overflow: hidden; } .circ.acct.pic > img { width: 100%; height: 100%; object-fit: cover; } /* your picture in the account circle (app.js drawTop) */
/* The top's Home, on every screen but Home (app.js drawTop): a round house at the far left, where an iPhone's Back sits
   (Payton, 2026-11-02: "When you're in a tab I think Home should be back and only have the home icon"), named Home, on a
   control's surface (--raised) in the page's words' colour (4.5:1 in every look: contrast.test.js), 44px as every circle. */
.homepill { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--raised); box-shadow: var(--ctl-depth); color: var(--label);
  flex: none; pointer-events: auto; }
.homepill[hidden] { display: none; }
.homepill .i { width: 20px; height: 20px; }
.circ .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink); }
.group { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: var(--raised); pointer-events: auto; }
.group .circ { background: none; border: 0; box-shadow: none; backdrop-filter: none; width: 40px; height: 40px; }
/* A field is a label.field: its words in a span, the box, and the hint under it (web/wayin.js field). */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--label2); }
.field > span small { font-weight: 400; font-size: inherit; }
.field input, .field select { font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--box-edge); border-radius: var(--pill); min-height: 46px; padding: 0 14px; width: 100%; }
/* Every placeholder, in every field and look: --placeholder, dimmer than the words typed (Payton's iPhone, 2026-11-01:
   Market's "iron sword, The smithy, Pleroma" in the label's own bright colour read as words already typed), still 3:1
   or more on a field over any painting (tokens.css). Upright (the council's batch D, item 21: on iOS an italic placeholder
   read as typed words); the dimmer colour is what sets it apart. Opacity 1: Firefox dims one of its own. */
::placeholder { font-style: normal; opacity: 1; color: var(--placeholder); }
.field input::placeholder { color: var(--placeholder); }
/* A time or date box stays inside its card on an iPhone (Payton, 2026-11-21: Your page's Hours, the Opens and Closes
   pills ran past each day's border). Safari gives these boxes a minimum width of their own, wider than a card's inside,
   so width: 100% could not shrink them: min-width 0 lets it, max-width 100% holds it, and the words stay centred. */
.field input:is([type="time"], [type="date"], [type="datetime-local"]) { min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; text-align: center; }
.field textarea { border: 1px solid var(--box-edge); border-radius: var(--r-ctl); } /* a pill textarea looks wrong */
/* Every search box (Payton, 2026-11-16): a pill with the gold edge. :where keeps it under any box that draws its own. */
:where(input[type="search"]) { border: 1px solid var(--box-edge); border-radius: var(--pill); }
.field .hint { font-size: 13px; color: var(--label2); }
/* A refusal points at one field: red edge (markBad); its words are the form's error line, and the hint keeps its own. */
.field.bad input, .field.bad select { border-color: var(--bad-glyph); }
.field.bad .hint { color: var(--bad-text); }
/* The box to agree: a tick beside its words, never the full-width box. */
.field.agree { flex-direction: row; align-items: flex-start; gap: 10px; }
.field.agree > span { font-size: 15px; font-weight: 400; color: var(--label); }
.field.agree input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
.field.agree a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.field.agree.bad > span { color: var(--bad-text); }
/* A new password and its one live tip (web/wayin.js passwordField): a dot that turns green once the rules are met. */
.pwfield { display: flex; flex-direction: column; gap: 6px; }
.pwtip { position: relative; padding-left: 14px; font-size: 13px; color: var(--label2); }
.pwtip::before { content: ''; position: absolute; left: 3px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--label3); }
.pwtip.ok::before { background: var(--ok-glyph); }
.pwtip .pwnote { display: block; margin-top: 2px; } /* the note about common and reused ones, under the tip, once it passes */
/* Sign-up's hints: each shows while its field has the focus or a refusal points at it; a screen reader always hears it
   (the input's aria-describedby). */
.wayin-body form[data-step="signup"] .field .hint { display: none; }
.wayin-body form[data-step="signup"] .field:focus-within .hint, .wayin-body form[data-step="signup"] .field.bad .hint { display: block; }
/* The AI notice: the server's words in the form's own weight, with the box to agree (sign-up) or under Continue (age). */
.ainote { font-size: 15px; font-weight: 400; color: var(--label); }
.agreerow { display: flex; flex-direction: column; gap: 10px; }
.door .ainote { padding: 12px 14px; border-radius: var(--r-row); background: var(--fill); }
/* The way in's forms (the front page's popup, the shell's door screens): crisis help first, the line, the form, its
   error line under the button, then the quiet links and the small print. */
/* Crisis help always reads, wherever it is (chat, the door, a paused or sorry door, the way in): its red wash on the
   dense glass of its own, so its words read at 4.5:1 in every look over any painting (tokens.test.js). */
.card.crisis { padding: 14px 16px; gap: 8px; border-radius: 20px; background: linear-gradient(rgba(229, 134, 122, .12), rgba(229, 134, 122, .12)), var(--glass-dense); border: 1px solid rgba(229, 134, 122, .45); font-size: 15px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.crisis a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
/* Crisis help's Call and text (ui.js crisisText): two short words, each a 44px target of its own on every device, as a
   hit area around the words (the .btn.sm::after way), so the line keeps its own height; " or " between them is 20px, and
   each reaches 10px toward the other. The number after them stays plain text. */
.crisis a.tap { position: relative; display: inline; }
.crisis a.tap::after { content: ''; position: absolute; inset: -12px -10px; }
.wayin-body { display: flex; flex-direction: column; gap: 12px; }
.wayin-body .lede { font-size: 15px; color: var(--label); }
.wayin-body .invited { padding: 10px 14px; border-radius: var(--r-row); background: var(--tint); color: var(--label); }
.wayin-body ul.small { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.wayin-body .btn.quiet { align-self: flex-start; min-height: 44px; padding: 0 4px; font-weight: 500; }
.wayin-body form { gap: 20px; } /* between fields; inside one, .field's 6px */
.wayin-body p.small > .btn.quiet { min-height: 44px; vertical-align: middle; } /* "Already have an account? Sign in" */
.wayin-body a { color: var(--accent-text); }
.wayin .error { font-size: 15px; color: var(--bad-text); }
.wayin .error:empty { display: none; }
/* Every refusal's line, wherever it is: a bar in --bad-glyph beside its words, so its colour is never the only sign. */
.error:not(:empty), .field.bad .hint:not(:empty) { border-left: 3px solid var(--bad-glyph); padding-left: 10px; }
.wayin .human { min-height: 0; }
.wayin .btn[disabled] { opacity: .6; cursor: default; }
/* A send held while it is out (web/ui.js hold, ruling 12): it keeps the keyboard, and looks held wherever it is. */
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
/* A door screen (web/door/*.js): one glass card, the Harrox mark at its top, the crisis help above it when it comes. */
.card.door { width: 100%; max-width: 440px; margin: 0 auto; padding: 22px; gap: 12px; }
.door .door-mark { display: flex; justify-content: center; }
.door .hxmark { width: 48px; height: 48px; }
.door h1 { text-align: center; }
.door .lede { text-align: center; }
.card.door .btn.quiet { align-self: center; }
.crisis-slot:empty { display: none; } /* the door's card and the password sheet: no room until help comes */
.popup { max-height: calc(100vh / var(--size, 1) - 40px); max-height: calc(100dvh / var(--size, 1) - 40px); overflow-y: auto; overscroll-behavior: contain; }
.seg { display: flex; padding: 3px; border-radius: var(--pill); background: var(--fill); gap: 2px; }
.seg span { flex: 1; text-align: center; padding: 7px 0; border-radius: var(--pill); font-size: 15px; font-weight: 600; color: var(--label2); }
.seg span.on { background: var(--surface2); color: var(--label); box-shadow: inset 0 0 0 2px var(--label); --label2: var(--label2-on); }
.ok { color: var(--ok-text); } .bad { color: var(--bad-text); }

/* The top: no bar, just floating glass. A large title sits in the content; a pill title is for screens inside an app. */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + var(--safe-top)) 12px 10px; pointer-events: none; }
/* The band (Sleek C, council-sleek C13, as iOS): behind the status bar it is always solid, so what scrolls under the clock
   never reads there (Payton, 2026-11-01: the Shelves chips showed ghosted through the clock), fading just below it. At
   the top of a page the circles float on the painting over the large title; from 40px of scroll (html.scrolled,
   topfit.js watchTitle) the whole row turns into one solid band with a hairline under it, and the large title's words
   fade into its middle at 17/600 (.toptitle), so only one title is ever on show. A heading scrolled to lands below the
   band: html's scroll-padding-top. */
/* Scrolled, the band is the glass, not a solid black (Vincent, 2026-11-10: "remove the black bar at the top make it translucent"):
   the painting shows through, blurred, and the dense glass keeps the title and circles readable. */
.topbar::before { content: ""; position: fixed; inset: 0 0 auto 0; height: calc(var(--safe-top) + 16px); background: linear-gradient(var(--edge) var(--safe-top), transparent); pointer-events: none; z-index: -1; }
.topbar::after { content: ""; position: fixed; inset: 0 0 auto 0; height: calc(var(--top-h) + var(--safe-top)); background: var(--glass-dense); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 1px 0 var(--sep); pointer-events: none; z-index: -1;
  opacity: 0; transition: opacity 150ms ease-out; }
html.scrolled .topbar::after { opacity: 1; }
/* Home has no title to fade in, so no hard band: scrolled, the look's edge stays solid behind the circles and fades out
   just below them (Vincent, 2026-11-05: "theres this black bar still", a solid strip beside the profile circle on a
   narrow window, so no hairline and no hard edge). It fades only below the row (Payton, 2026-11-09: the Notebook widget's
   title showed through under the account and More circles when it faded from 20%). */
html.scrolled body.athome .topbar::after { height: calc(var(--top-h) + var(--safe-top) + 28px); background: linear-gradient(var(--edge) calc(100% - 28px), transparent); box-shadow: none; }
.toptitle { position: absolute; left: 50%; top: calc(10px + var(--safe-top)); transform: translateX(-50%); max-width: calc(100% - 232px); height: 44px; line-height: 44px; font-size: 17px; font-weight: 600;
  color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0; transition: opacity 150ms ease-out; }
html.scrolled .toptitle { opacity: 1; }
.toptitle:empty, .topbar:has(> .mid) .toptitle { display: none; }
@media (prefers-reduced-motion: reduce) { .topbar::after, .toptitle { transition: none; } }
.topbar .mid { pointer-events: auto; min-width: 0; flex: 0 1 auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--pill); background: var(--raised); box-shadow: var(--ctl-depth); font-weight: 600; font-size: 15px; max-width: 60%; white-space: nowrap; overflow: hidden; }
.topbar .mid > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .side { display: flex; gap: 8px; align-items: center; flex: none; }
/* The title in the middle of the screen whatever each side holds (Payton, 2026-11-22: "the top is not in the middle symmetry is key"):
   the two sides take equal room (flex-basis 0), the left one's circles from the left edge and the right one's from the right. */
@media (max-width: 1099px) { .topbar > .side { flex: 1 1 0; } .topbar > .side:last-child { justify-content: flex-end; } }
.topbar .acctslot:not(:has(> :not([hidden], [data-folded]))) { display: none; } /* no gap at the right edge for a slot with nothing showing */
/* One Back at the left and one Menu at the right on a phone inside a screen (app.js topMenuBtn; Payton, 2026-11-22: a reference with one
   round button each side and the title between): the rest are its menu. */
.topbar .topmenubtn { display: none; }
@media (max-width: 1099px) {
  body.topmenu .topbar .topmenubtn { display: inline-grid; }
  body.topmenu .topbar :is(.tabsbtn, .homepill, .menubtn, .acct, .acctslot) { display: none; }
}
.topbar .edit { pointer-events: auto; }
/* A button in the top row (Home's Edit) is a pill, as the circles and the title beside it are. */
.topbar .btn { border-radius: var(--pill); }

.main { padding: calc(var(--top-h) + var(--safe-top)) var(--gutter) calc(var(--bar-h) + 40px + var(--safe-bottom) + var(--toolbar-room)); max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
/* The box at its live height (composer.js sets --composer-h), above the bar, and 24px of room: the last row rests above it. */
.main.withbox { padding-bottom: calc(var(--bar-h) + 22px + var(--safe-bottom) + var(--composer-h, 96px) + 24px); }
/* A story's box floats alone (.composer.alone) with your health and its ideas over it: the page keeps room for all of it
   as tall as it is (was a fixed 110px, so the last card sat under the Health line: Vincent, Nov 10). */
.main.nobar { padding-bottom: max(110px, calc(12px + var(--safe-bottom) + var(--composer-h, 96px) + 24px)); }

/* Strips: Waiting for you (accent edge) and Attention (quiet) */
.strip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; min-height: 44px; border-radius: var(--r-row); background: var(--surface); --label2: var(--label2-on); }
.strip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.strip.attn::before { background: var(--label3); }
/* The waiting strip's dot sits on its first row's middle, and each row's Look at the strip's right edge (item 11). */
.strip:has(> ul)::before { align-self: flex-start; margin-top: 18px; }
.strip > ul { flex: 1; min-width: 0; }
.strip .x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--label2); }
.strip .btn.sm { min-height: 44px; }
.strip .grow { font-size: 15px; }
/* On a narrow phone a strip's button goes under its words, so the words keep the width (the round-1 review). */
@media (max-width: 419px) { .strip.attn:has(> .btn) { flex-wrap: wrap; } .strip.attn:has(> .btn) > .grow { flex: 1 1 calc(100% - 24px); } .strip.attn > .btn { margin-left: 4px; } .strip.attn:has(> .btn) > .x { margin-left: auto; } }
/* On Home and Settings the strip is a row inside the screen's first card (app.js dockStrip; Sleek C, council-sleek C15): no
   surface of its own, a hairline over it, the card's width. */
.strip.docked { min-height: 44px; margin: 4px 0 0; padding: 12px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.strip.docked > .x { margin-right: -10px; }
.strip ul, .waitcard ul { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.strip li, .waitcard li { display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 15px; }
.strip li + li, .waitcard li + li { padding-top: 8px; border-top: 1px solid var(--sep); }
/* Today's calendar (web/today/calendar.js, held): a week or a month of days in seven equal columns, a dot a kind, the
   picked day's list under it. Fits 375 (seven 40px columns and their gaps). */
.calcard .calhead, .calcard .calnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calcard .calview button { padding: 5px 12px; font-size: 13px; }
.calcard .callabel { font-size: 15px; font-weight: 600; }
/* Where the card is too narrow for a row each (375 at a large text size, a 320px phone): Week and Month go under the
   heading, and the month's name sits over its two arrows, so neither runs past the card's edge and is cut. Measured by
   the card itself (container queries see the shell's px), and only where its width is its parent's: a card that measures
   itself can't also be as wide as its own words, which the Office's Calendar page makes it from 760px, so there it is
   left alone (it has the room). */
.homegrid > .part.todaypart > .tile.todaytile > .calcard { container-type: inline-size; }
@media (max-width: 759px) { .calpage > .calcard { container-type: inline-size; } }
.calcard .calhead { flex-wrap: wrap; }
@container (max-width: 230px) { .calcard .calnav { flex-wrap: wrap; } .calcard .callabel { order: -1; flex: 1 1 100%; margin: 0; text-align: center; } }
.calcard .calgrid { display: flex; flex-direction: column; gap: 2px; }
.calcard .calrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calcard .calheads span { text-align: center; font-size: var(--t-bar); color: var(--label2); }
/* Under 170px, which only a large text size reaches, the days' names are set smaller so Mon and Wed don't run into the
   next one (drawn at that size they are still 13px or more on the screen), Week and Month may stack, and the two
   arrows are narrower so they stay on one row. */
@container (max-width: 170px) { .calcard .calheads span { font-size: 9px; } .calcard .calview { flex-wrap: wrap; max-width: 100%; border-radius: var(--r-card); } .calcard .calnav .btn { padding: 0 6px; } }
.calcard .calcell { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 44px; padding: 6px 0 4px; border-radius: var(--r-ctl); font-size: var(--t-sub); font-weight: 600; color: var(--label); }
.calcard .calcell.out { color: var(--label2); font-weight: 400; }
.calcard .calcell[aria-current="date"] .num { color: var(--accent-text); font-weight: 700; }
.calcard .calcell[aria-selected="true"] { background: var(--surface2); box-shadow: inset 0 0 0 2px var(--label); }
.calcard .dots { display: flex; gap: 3px; min-height: 6px; }
.calcard .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); }
.calcard .dot.k-booking { background: var(--accent); }
.calcard .dot.k-shift { background: var(--arcane); } .calcard .dot.k-appointment { background: var(--ok); }
.calcard .dot.k-bill { background: var(--bad-glyph); } .calcard .dot.k-bookings { background: var(--mist); } .calcard .dot.k-renewal { background: var(--ember); }
.calcard .calday h3 { font-size: var(--t-sub); font-weight: 600; margin-bottom: 4px; }
.calcard .calday ul { padding: 0; list-style: none; display: flex; flex-direction: column; }
.calcard .calday li > * { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; font-size: 15px; color: var(--label); text-decoration: none; }
.calcard .calday li + li { border-top: 1px solid var(--sep); }
.calcard .caltime { flex: none; min-width: 64px; }
.calcard .caltitle { min-width: 0; overflow-wrap: anywhere; }

/* The floating bar: pure tabs, 3 to 5, labels under icons; the active one is filled, accented and bold.
   A screen with one main action gets a round button beside the bar. */
.bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); z-index: 30; height: var(--bar-h); display: flex; justify-content: space-around; align-items: stretch; padding: 6px 4px;
  border-radius: var(--pill); background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--spec), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur) ; backdrop-filter: var(--glass-blur); }
.bar.withaction { right: 84px; }
.bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--label2); min-width: 44px; border-radius: var(--pill); transition: transform .12s ease; }
.bar a:active { transform: scale(.94); }
/* The tab on show is plain in every look (plan 8 Task 7d, row 91; spec 2): its glyph filled in --accent-glyph, its word
   in --accent-text and bold; the others dimmed to --label2, glyph and word: the spec's 62% of --label falls to
   2.8-3.1:1 in Clear and Night over a white painting, and --label2 holds 4.5:1 on any glass. */
/* A tab answers the finger at once: no double-tap-to-zoom wait on it (swap.js: it lights on the press). */
.bar a, .homepill { touch-action: manipulation; }
.bar a:not(.on) { color: var(--label2); }
.bar a.on { color: var(--accent-text); font-weight: 700; }
.bar a.on .i { fill: currentColor; stroke-width: 1.2; color: var(--accent-glyph); }
/* Beside the round action on a phone the bar and the action narrow, never the labels (bar.js fitTabs): five tabs keep
   their words at 360 and 375. From 115% the action rises over the bar (liftbar, below). The action is 48px, 6px from
   the edge, so 14px of clear space lies between it and the bar (Payton's iPhone, 2026-10-31: the In-tray's + crowded it). */
@media (max-width: 1099px) { html:not(.liftbar) .bar.withaction { left: 8px; right: 68px; padding-left: 2px; padding-right: 2px; }
  html:not(.liftbar) .action { right: 6px; width: 48px; height: 48px; bottom: calc(20px + var(--safe-bottom)); } }
.action { position: fixed; right: 12px; bottom: calc(12px + var(--safe-bottom)); z-index: 31; width: var(--bar-h); height: var(--bar-h); border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -8px var(--accent); }
.action .i { width: 28px; height: 28px; }
.back { position: fixed; left: 12px; bottom: calc(12px + var(--safe-bottom)); z-index: 31; }

/* Sheets step the page back; popups sit in the middle. Both are dense glass. The sheet's dim is its ::before, so a drag
   fades it on its own (--dim) and the sheet over it stays whole; how they move is below the popup's rules. The page
   behind steps back about the part of it on screen (sheet.js --behind-top), never blurred: a blurred page is drawn again
   on every frame. A page with the box (Chat, a Library message, a story) keeps its place: a transform there would carry
   the box, fixed to the screen, up into the middle of the page with it (Vincent's laptop, 2026-11-04: Messages' box
   floated mid-screen in a cut-off panel under the Send sheet). */
.sheet-dim { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-open .main:not(:has(> .composer)) { transform: scale(.95) translateY(-6px); border-radius: 20px; transform-origin: 50% var(--behind-top, 0px); }
.sheet { width: 100%; max-width: 560px; max-height: calc(88vh / var(--size, 1)); overflow: auto; border-radius: 32px 32px 0 0; padding: 8px 24px 32px; background: var(--glass-dense); border: 1px solid var(--glass-edge); box-shadow: var(--spec), 0 -10px 40px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(40px) saturate(1.6); backdrop-filter: blur(40px) saturate(1.6); display: flex; flex-direction: column; gap: 16px; }
.sheet .grip { width: 36px; height: 5px; border-radius: 3px; background: var(--label3); margin: 0 auto 2px; }
.popup-dim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .4); display: grid; place-items: center; padding: 20px; }
.popup { position: relative; width: 100%; max-width: 420px; padding: 24px; border-radius: 32px; background: var(--glass-dense); border: 1px solid var(--glass-edge); box-shadow: var(--spec), var(--glass-shadow);
  -webkit-backdrop-filter: blur(40px) saturate(1.6); backdrop-filter: blur(40px) saturate(1.6); display: flex; flex-direction: column; gap: 16px; }
.sheet .head, .popup .head { display: flex; align-items: center; justify-content: space-between; }
.sheet .head h2, .popup .head h2 { font-size: 20px; font-weight: 650; min-width: 0; overflow-wrap: anywhere; } /* a long word wraps, so Close stays in view */
.sheet .head > .circ { flex: none; } /* a long title never squeezes Close (7b's popup line's twin) */
.actions-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* A long title or yes (Sign out everywhere's): the Close circle keeps its 44px, and a button wider than its row wraps its
   words inside it, never past the popup's edge. */
.popup .head > .circ { flex: none; }
.actions-row > .btn { max-width: 100%; white-space: normal; }
/* How the layers move (the design council's sleek-up, batch B: sheet.js, popup.js, menu.js, motion.js). A sheet slides
   up in 320ms on the iOS spring, cubic-bezier(.32, .72, 0, 1), and down in 240ms, quicker out than in; the page behind
   steps back and forward on the same curve. A drag on the grip, the head, or the body at its top follows the finger
   (--drag-y, --dim; nothing eases while .dragging), then springs back in 250ms or goes on from where it was let go
   (.flung: on the spring, not the button's ease-in). Popups, menus and tips scale and fade in, 180ms on
   cubic-bezier(.2, .8, .2, 1), and out in 120ms. A layer on its way out (.going) is already closed: inert, out of
   reach (motion.js leave). Reduce Motion and Customize's Calm (data-motion="calm"): none of it moves (after the
   drawer's rules, below). */
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-in-wide { from { opacity: 0; transform: translateY(48px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes lift-in { from { transform: none; box-shadow: none; } }
.sheet-dim::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: var(--dim, 1); transition: opacity 250ms cubic-bezier(.32, .72, 0, 1); animation: fade-in 200ms ease-out; }
.sheet-dim.dragging::before { transition: none; }
.sheet-dim.going::before { opacity: 0; transition: opacity 240ms cubic-bezier(.4, 0, 1, 1); }
.sheet-dim > .sheet { position: relative; overscroll-behavior: contain; transform: translateY(var(--drag-y, 0px)); transition: transform 250ms cubic-bezier(.32, .72, 0, 1); animation: sheet-in 320ms cubic-bezier(.32, .72, 0, 1); }
/* Its way in plays once: .shown (sheet.js, once it has played or a finger took it first) holds it off, so letting go of a
   drag never starts it again from the bottom. */
.sheet-dim > .sheet:is(.dragging, .shown) { animation: none; }
.sheet-dim > .sheet.dragging { transition: none; }
.sheet-dim.going > .sheet { transform: translateY(100%); transition: transform 240ms cubic-bezier(.4, 0, 1, 1); }
.sheet-dim.going > .sheet.flung { transition-timing-function: cubic-bezier(.32, .72, 0, 1); }
body.sheet-open .main { transition: transform 320ms cubic-bezier(.32, .72, 0, 1), border-radius 320ms cubic-bezier(.32, .72, 0, 1); }
body.sheet-closing:not(.sheet-open) .main { transition: transform 240ms cubic-bezier(.32, .72, 0, 1), border-radius 240ms cubic-bezier(.32, .72, 0, 1); }
/* The grip: the 36 x 5 bar in a 44px target that takes the finger, as the head does (sheet.js dragToClose). */
.sheet .grip { flex: none; position: relative; touch-action: none; cursor: grab; }
.sheet .grip::before { content: ""; position: absolute; left: 50%; top: -8px; width: 120px; height: 44px; margin-left: -60px; }
.sheet .head { touch-action: none; }
.popup-dim > .popup { animation: pop-in 180ms cubic-bezier(.2, .8, .2, 1); }
#layer > .popup-dim { animation: fade-in 180ms ease-out; }
#layer > .popup-dim.going { opacity: 0; transition: opacity 120ms ease-in; }
.popup-dim.going > .popup { transform: scale(.96); transition: transform 120ms ease-in; }
.ctx > .menu, .ctx > .menunote { transform-origin: top center; animation: pop-in 180ms cubic-bezier(.2, .8, .2, 1); }
.ctx > .lift { animation: lift-in 180ms cubic-bezier(.2, .8, .2, 1); }
#layer > .ctx-dim { animation: fade-in 180ms ease-out; }
#layer > :is(.ctx, .ctx-dim).going { opacity: 0; transition: opacity 120ms ease-in; }
#layer > .tip { animation: pop-in 180ms cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 1100px) {
  .sheet-dim > .sheet { animation-name: sheet-in-wide; }
  .sheet-dim.going > .sheet { opacity: 0; transform: translateY(48px); transition: transform 240ms cubic-bezier(.4, 0, 1, 1), opacity 240ms cubic-bezier(.4, 0, 1, 1); }
}
/* Every tap answers (the council's press feedback): a tint of the thing's own colour (--press) and a small press, 80ms
   down and 160ms back up, and no grey flash of WebKit's own. A control or tile that gave nothing presses to .97, a row
   that spans the screen .985, a circle .92 (the scale property, so a place set by transform stays); a button, pill or
   row that already pressed keeps its own and takes the tint. A tile's icon and a book's cover darken instead of a tint
   over a picture. The tint's rule outweighs a row's own :hover fill (a finger's tap leaves :hover on it). Never the
   bar's tabs (the smooth switch's), nor a div row, which is not a link. */
:root { --press: color-mix(in srgb, currentColor 12%, transparent); }
:where(.part .tile, .apps .icon .tile, .menu [role="menuitem"], .label a, .label button, .lmore, a.chip, button.chip, .more, .acts button, .tip .x, .circ,
  a.frrow, button.frrow, a.nbrow, button.nbrow, button.set, .btn, .pill, a.pillrow, button.pillrow, .homepill, a.book, button.book, a.offer) { -webkit-tap-highlight-color: transparent; }
:where(.part .tile, .apps .icon .tile, .menu [role="menuitem"], .label a, .label button, .lmore, a.chip, button.chip, .more, .acts button, .tip .x, .circ,
  a.frrow, button.frrow, a.nbrow, button.nbrow, button.set, .part .tile .ic, .book .cover) { transition: scale 160ms cubic-bezier(.2, .8, .2, 1), filter 160ms cubic-bezier(.2, .8, .2, 1); }
:where(.part .tile, .apps .icon .tile, .label a, .label button, .lmore, a.chip, button.chip, .more, .acts button, .tip .x):active { scale: .97; transition-duration: 80ms; }
:where(.menu [role="menuitem"], a.frrow, button.frrow, a.nbrow, button.nbrow, button.set):active { scale: .985; transition-duration: 80ms; }
:where(.circ):active { scale: .92; transition-duration: 80ms; }
:root :is(.menu [role="menuitem"], .label a, .label button, .lmore, a.chip, button.chip, .more, .acts button, .tip .x, .circ, a.frrow, button.frrow, a.nbrow, button.nbrow,
  button.set, .btn, .pill, a.pillrow, button.pillrow, .homepill, a.offer):active { background-image: linear-gradient(var(--press), var(--press)); }
:is(.part .tile:active .ic, :is(a, button).book:active .cover) { filter: brightness(.86); transition-duration: 80ms; }

/* A tip: one small glass popover pointing at the one thing to do (the guide, sequenced). */
.tip { position: fixed; z-index: 35; max-width: 300px; padding: 12px 14px; border-radius: 20px; background: var(--glass-dense); border: 1px solid var(--glass-edge); box-shadow: var(--spec), var(--glass-shadow);
  -webkit-backdrop-filter: blur(40px) saturate(1.6); backdrop-filter: blur(40px) saturate(1.6); display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.tip .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--accent-glyph); display: grid; place-items: center; flex: none; }
.tip b { display: block; font-size: 15px; }
.tip .x { color: var(--label2); flex: none; width: 44px; height: 44px; display: grid; place-items: center; margin: -12px -14px -12px -8px; border-radius: 50%; }
.tip::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--glass-dense); border-right: 1px solid var(--glass-edge); border-bottom: 1px solid var(--glass-edge); transform: rotate(45deg); left: calc(var(--ax, 28px) - 7px); bottom: -8px; }
.tip.up::after { bottom: auto; top: -8px; transform: rotate(225deg); }
/* Beside a rail tab (a wide screen): the arrow on the left edge, at the tab's middle (--ay, tips.js placeTip). */
.tip.side::after { left: -8px; top: calc(var(--ay, 22px) - 7px); bottom: auto; transform: rotate(135deg); }
/* The Home Screen steps (homescreen.js), as the old app draws its ol.steps (public/app.css). */
ol.homesteps { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
ol.homesteps .i { width: 17px; height: 17px; vertical-align: -3px; }
.steps { display: flex; gap: 8px; } .steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--fill2); } .steps span.on { background: var(--accent); }

/* Pills and rows */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: var(--pill); background: var(--raised); box-shadow: var(--ctl-depth); font-size: 15px; font-weight: 600; }
.pill .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); }
.rows { display: flex; flex-direction: column; gap: 8px; }
/* A row, as iOS draws one (the council's batch D, item 17): 52px, 16px at each side, a 29px icon in a 7px tinted square
   15px before its words, the title 17/400, the line under it 15/400 in the receding colour, a chevron in the faint one. On
   its own it is a card of its own; in a group (.grouped) the group is the card. */
.pillrow { display: flex; align-items: center; gap: 15px; min-height: 52px; padding: 8px 16px; border-radius: var(--r-row); background: var(--surface); position: relative; --label2: var(--label2-on); }
.pillrow > .i:last-child, .pillrow > .go { flex: none; margin-left: auto; color: var(--label3); }
/* Grouped rows (.rows.grouped: Home's, More's, the Make sheet's, the personality picker's; the drawer's and Settings' by
   their own rules below): one surface card per group, no fill or corner on a row, and a hairline between rows inset to
   where the words start (16 + 29 + 15 = 60px; 16px for a row with no icon). */
.grouped { gap: 0; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--card-edge); --label2: var(--label2-on); }
.grouped > .pillrow { border-radius: 0; background: none; border-color: transparent; }
.grouped > .pillrow.on { border-color: transparent; }
/* The group's corners are its first and last rows' (nothing is clipped, so the keyboard's ring shows whole). */
.grouped > .pillrow:first-child { border-top-left-radius: var(--r-card); border-top-right-radius: var(--r-card); }
.grouped > .pillrow:last-child { border-bottom-left-radius: var(--r-card); border-bottom-right-radius: var(--r-card); }
.grouped > .pillrow + .pillrow::before { content: ""; position: absolute; top: 0; right: 0; left: 60px; border-top: 1px solid var(--sep); pointer-events: none; }
.grouped > .pillrow:not(:has(> .ic)) + .pillrow::before, .grouped > .pillrow + .pillrow:not(:has(> .ic))::before { left: 16px; }
.grouped:empty { display: none; }
/* An app's More (web/bar.js openMore): a plain list of its places, each a row that opens it, and Edit the bar at its foot.
   Edit the bar (openBarEditor): a short list of the bar's tabs, each a quiet row with a drag handle, its name, and round
   44px Move up, Move down and Remove; the first tab locked; then the other places with Add; Reset a small link. */
.moresheet .pillrow .go { margin-left: auto; color: var(--label3); display: grid; place-items: center; }
.moresheet > .editbar { align-self: stretch; justify-content: center; }
/* More's places as tiles (Vincent, 2026-11-05, look A: the list "feels intimidating"): three to a row, each its icon in
   a tinted square and one word; the app's settings and Edit the bar one quiet line of links under them. */
.moretiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.moretile { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px; padding: 14px 6px 12px; border-radius: var(--r-row); background: var(--raised); color: var(--label); text-align: center; }
.moretile > .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); }
.moretile > b { max-width: 100%; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barswitch:empty { display: none; }
.morebranch .barswitch > .pswitchrow { justify-content: flex-start; margin: 0; } /* More's tree (bar.js openMore branches) */
.morequiet { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 4px 0 0; }
.morequiet > :is(a, button) { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; background: none; border: 0; color: var(--label2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* The phone's tabs drawer (bar.js openTabs, sheet.js side: 'left'; Vincent, 2026-11-13: "a tab bar like the one on
   computer"): the rail's own rows in a panel from the left, the place you're at the one lit. It slides in quickly and
   plainly (200ms, easing out, no bounce) and the page behind stays put; under Reduce Motion and Calm it just appears (the
   layers' rules, below). In Harrox's own style since the same day (the rail's, .rail below; Vincent: "b for everything",
   the mockup's B5): flush with the left edge, the page's own colour nearly solid over it (--rail-drawer), so nothing
   behind reads through; HARROX in small gold capitals beside Close, the app's name under them in large spaced capitals,
   the painting's credit, then the places, every row 48px or more, and the person at its foot. */
.sheet-dim.left { justify-content: flex-start; align-items: stretch; }
.sheet-dim.left > .sheet { width: min(318px, 86vw / var(--size, 1)); max-width: none; max-height: none; margin: 0;
  border: 0; border-right: 1px solid var(--rail-edge); border-radius: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .35);
  background: linear-gradient(180deg, var(--rail-drawer-top) 0, var(--rail-drawer-top) 130px, var(--rail-drawer) 320px), var(--rail-painting, none) 50% 40% / cover no-repeat var(--edge);
  padding: calc(10px + var(--safe-top)) 20px calc(16px + var(--safe-bottom)) 22px; gap: 0; animation: tabs-in 200ms cubic-bezier(.2, .8, .2, 1); transform: translateX(var(--drag-x, 0px)); }
/* Dragged out from the bar and back (Payton, 2026-11-17: bar.js dragTabs, sheet.js dragSide): it follows the finger at
   --drag-x with nothing easing, then settles open or away on the sheets' 250ms spring (160ms out, below); at once under
   Reduce Motion and Calm. Its list still scrolls up and down (pan-y); sideways is the finger's. */
.sheet-dim.left > .sheet { touch-action: pan-y; }
.sheet-dim.left > .sheet.dragging { animation: none; }
.sheet-dim.left > .sheet > .grip { display: none; }
.sheet-dim.left > .sheet > .head { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0; touch-action: auto; }
.sheet-dim.left > .sheet > .head::before { content: "Harrox"; content: "Harrox" / ""; grid-area: 1 / 1; font: 600 13px/1 var(--display); letter-spacing: .42em; text-transform: uppercase; color: var(--rail-gold-text); }
.sheet-dim.left > .sheet > .head > .circ { grid-area: 1 / 2; }
.sheet-dim.left > .sheet > .head > h2 { grid-area: 2 / 1 / 3 / 3; margin: 22px 0 0; font: 600 calc(var(--rail-type) * 1.667)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.sheet-dim.left.going > .sheet { transform: translateX(calc(-100% - 12px)); transition: transform 160ms cubic-bezier(.4, 0, 1, 1); }
@keyframes tabs-in { from { transform: translateX(calc(-100% - 12px)); } }
body.sheet-open:has(#layer > .sheet-dim.left) .main { transform: none; border-radius: 0; }
/* The header's rule under the app's name, as the rail's (.railhead); the person at the very foot (margin-top: auto). */
.sheet-dim.left > .sheet > .head { padding-bottom: 20px; border-bottom: 1px solid var(--rail-edge); }
.railsheet { gap: 0; flex: 1 0 auto; }
.railsheet > .railnav:first-child { margin-top: 12px; }
.railnav { position: relative; display: flex; flex-direction: column; }
.railnav a { min-height: 48px; font-size: calc(var(--rail-type) + 1px); touch-action: manipulation; }
.railnav .barea { min-height: 48px; }
.railnav .barfold { height: 48px; margin-top: -48px; }
.railsheet > .morequiet { justify-content: flex-start; }
/* The rail in Harrox's own style, every app's (Vincent, 2026-11-13: "i want a universal one so b for everything we want
   that harrox style everywhere the old vintage style unique harrox design old internet vibe"; "like the front page";
   "blended fine"): bar.js drawBar puts .rail on the computer's rail (from 1100px, its frame below) and on the phone's
   drawer's list (.railnav, above). Each place its name in the display face (Cormorant 500 at --rail-type, tokens.css),
   no icons; the trailing places (the notebook and settings) smaller and italic after a short rule with the Harrox star
   (.barorn); the areas in small gold spaced capitals that fold as before, Work's branch heads places of their own; the place you're at in
   gold, with the one marker (.barmark): a gold rule from its name to the star at the row's right end. Every colour is the
   look's own (tokens.css --rail-*: the front page's soft gold in the dark looks, Day's accent in Day). */
.rail a { flex: 0 0 auto; display: flex; min-height: 44px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 0; padding: 0; border-radius: 0; background: none;
  color: var(--label2); font: 500 var(--rail-type)/1.2 var(--display); letter-spacing: .005em; }
.rail a .i { display: none; }
.rail a.on { background: rgba(210, 179, 108, .07); box-shadow: inset 2px 0 var(--rail-glyph); padding-left: 10px; color: var(--rail-gold-text); font-weight: 600; }
.rail a:active { transform: none; }
.rail a > span { min-width: 0; overflow-wrap: anywhere; }
.rail a.low { font-size: calc(var(--rail-type) * .833); font-style: italic; }
:root .rail a:not(.brand, .on):hover:not(:active) { background-color: transparent; box-shadow: none; }
@media (hover: hover) { .rail a:not(.brand, .on):hover > span { text-decoration: underline; text-decoration-color: var(--rail-edge); text-decoration-thickness: 1px; text-underline-offset: 5px; } }
/* The star rule before the trailing places is not drawn (Payton, 2026-11-19); the room it kept stays, so the places still stand apart. */
.rail .barorn { flex: none; height: 14px; }
.rail .barorn > * { display: none; }
.rail .barea { flex: 0 0 auto; min-height: 44px; display: flex; align-items: center; gap: 0; margin-top: 8px; padding: 0; background: none; border: 0; border-radius: 0;
  color: var(--rail-gold-text); font: 600 13px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; text-align: left; }
.rail a.branch { padding-right: 48px; }
.rail a.branch ~ a.branch { margin-top: 16px; }
/* The rail's one divider (Vincent, 2026-11-15: "have a little more dividers"): a hairline in the rail's own edge colour
   under the header, over each area and each of Work's branches after the first, and over the foot (.railacct, the
   drawer). The rule with the star before the trailing places (.barorn) stays the one ornament. */
.rail :is(.barea, a.branch ~ a.branch) { border-top: 1px solid var(--rail-edge); }
.rail .barea { margin-top: 12px; padding-top: 4px; }
.rail a.branch ~ a.branch { padding-top: 4px; }.rail .barea .i:first-child { display: none; }
.rail .barea .grow { flex: 1; }
.rail :is(.barea, .barfold) .i { width: 16px; height: 16px; flex: none; color: var(--rail-gold-text); }
.rail :is(.barea, .barfold)[aria-expanded="false"] .i { transform: rotate(-90deg); }
.rail .barfold { flex: none; align-self: flex-end; width: 44px; height: 44px; margin-top: -44px; display: grid; place-items: center end; background: none; border: 0; border-radius: 0; }
.rail .barswitch > .pswitchrow { justify-content: flex-start; margin: 2px 0 6px; }
/* You are here (bar.js placeMark): the lit row's own last child, so the row lays it out: 12px after the word, centred on
   the row, the rule to the star at the row's end (inside its padding, clear of a branch's fold button). */
.rail a > .barmark { display: none; } /* the walkthrough's strip (.rail a.on) is the marker now; bar.js still draws it until it is retired */
.barmark .ld { flex: 1; border-bottom: 1px solid currentColor; transform-origin: left center; }
.barmark .hxstar4 { width: 12px; height: 18px; flex: none; }
/* Choosing another place: its rule draws out from the name to the star, then the star comes in, 220ms in all, easing
   out, no bounce; the row and everything else stay still. None under Reduce Motion or Calm. */
.barmark.draw .ld { animation: mark-draw 180ms cubic-bezier(.2, .8, .2, 1) both; }
.barmark.draw .hxstar4 { animation: mark-star 100ms ease-out 120ms both; }
@keyframes mark-draw { from { transform: scaleX(0); } }
@keyframes mark-star { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .barmark :is(.ld, .hxstar4) { animation: none !important; } }
[data-motion="calm"] .barmark :is(.ld, .hxstar4) { animation: none !important; }
/* The rail's header (bar.js railHead), with the rail's divider under it. */
.railhead { flex: none; display: flex; flex-direction: column; padding: 28px 0 24px; margin-bottom: 12px; border-bottom: 1px solid var(--rail-edge); }
.railname { font: 600 calc(var(--rail-type) * 1.667)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--label); overflow-wrap: anywhere; }
/* The person at the bar's foot (app.js placeAccount on a computer, bar.js accountFoot in the phone's drawer): their
   picture or initial and their name, one button (the circle's ::after reaches over the name), after a rule. */
/* Office's line at the rail's foot (bar.js railFootLine): a small gold star, then two lines in italic Cormorant. */
.railfoot-line { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: auto 0 8px; padding-top: 20px; color: var(--rail-glyph); }
.railfoot-line .hxstar4 { width: 11px; height: 16px; }
[data-font="dyslexia"] .railfoot-line :is(.say, .say2) { font-style: normal; }
.railfoot-line .say, .railfoot-line .say2 { display: block; font: italic 500 calc(var(--rail-type) * .95)/1.3 var(--prose); color: var(--label2-sand); }
.railacct { flex: none; position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rail-edge); }
/* At the very foot, whatever the list's length (Vincent, 2026-11-15: "move the profile and stuff to the very bottom of
   the bar"): on a computer fixed to the rail's bottom on a solid veil, the chats over it and the places ending over
   them (the wide rules below, app.js placeDrawer); in the phone's drawer after the places (margin-top: auto), staying in
   view while a long list scrolls under it. */
.bar > .railacct { position: fixed; z-index: 1; left: 0; bottom: 0; width: var(--side); margin: 0; padding: 12px 26px calc(16px + var(--safe-bottom)) 28px; background: var(--rail-drawer); border-right: 1px solid var(--rail-edge); }
.railsheet > .railacct { position: sticky; z-index: 1; bottom: calc(-16px - var(--safe-bottom)); background: var(--edge); margin: auto -20px calc(-16px - var(--safe-bottom)) -22px; padding: 12px 20px calc(16px + var(--safe-bottom)) 22px; }
.railacct > .circ { flex: none; position: static; width: 40px; height: 40px; }
.railacct > .circ::after { content: ""; position: absolute; inset: 0; }
.railacct > .acctname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--label); font: 500 calc(var(--rail-type) * .833)/1.2 var(--display); }
.pillrow.on > .i:last-child { color: var(--accent-glyph); } /* the one picked: its check in the accent, never faint */
/* Edit the bar's lists are grouped rows too: one card each, a hairline between rows; a row's grip, icon and name, and its
   Remove or Add. With a finger the rows move by their grip, so Move up and Move down show only while the keyboard is on
   the row (a finger's tap on Remove puts it there too); with a mouse or the keyboard they are always there. */
.bareditor > .barlist { gap: 0; border-radius: var(--r-card); background: var(--surface); --label2: var(--label2-on); }
.barlist > .barrow:first-child { border-top-left-radius: var(--r-card); border-top-right-radius: var(--r-card); }
.barlist > .barrow:last-child { border-bottom-left-radius: var(--r-card); border-bottom-right-radius: var(--r-card); }
.barrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 8px 4px 10px; position: relative; }
.barlist > .barrow + .barrow::before { content: ""; position: absolute; top: 0; right: 0; left: 52px; border-top: 1px solid var(--sep); pointer-events: none; }
.barrow .ic { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); flex: none; }
.barrow .ic .i { width: 18px; height: 18px; }
.barrow .grow { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.emrow .grow { overflow-wrap: break-word; } /* Its email (web/youremails.js): a long address wraps at its <wbr> before the @, never mid-word unless one half is wider than the row; Use this one stays in view */
/* Its email's own-address box with "@domain" beside it, wrapping under it on a narrow phone (as the Office's new address: dates.css .oaddrat); a status line with nothing to say takes no room */
.emat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.emat input { flex: 1 1 10em; min-width: 0; }
.emat b { font-weight: 600; overflow-wrap: anywhere; }
.shemail .said:empty { display: none; }
.barrow .grow b { font-weight: 400; }
@media (pointer: coarse) { .barrow:not(:focus-within) > :is([data-do="up"], [data-do="down"], .barsp) { display: none; } }
.barrow > .barctl { flex: none; width: 44px; height: 44px; box-shadow: var(--spec); }
.barrow > .barsp { flex: none; width: 44px; }
.bargrip, .barlock { flex: none; width: 28px; height: 44px; display: grid; place-items: center; color: var(--label2); }
.bargrip { touch-action: none; cursor: grab; }
.barrow.dragging { position: relative; z-index: 2; transform: translateY(var(--drag-y, 0px)); box-shadow: var(--glass-shadow); background: var(--glass-dense); }
.bareditor > .barreset { align-self: center; font-size: 14px; }
.pillrow, .gallery .g, .menu a, .menu button { text-align: left; }
.pillrow .ic { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); flex: none; }
.pillrow .ic .i { width: 18px; height: 18px; }
.pillrow .grow b { display: block; font-size: var(--t-body); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pillrow .grow span { display: block; font-size: var(--t-sub); color: var(--label-detail); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pillrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* The hero */
.hero { position: relative; overflow: hidden; border-radius: var(--r-card); padding: 24px; color: var(--label); background: var(--hero), var(--surface); --label2: var(--label2-on); }
.hero::after { content: ""; position: absolute; right: -30%; bottom: -60%; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); filter: blur(12px); }
.hero .hello { font-size: 30px; font-weight: 700; line-height: 1.12; margin-top: 12px; letter-spacing: -.02em; }
/* The numbers are not cards in the card: plain, a hairline between, each from the top so they share a line. */
.stats { position: relative; z-index: 1; display: flex; margin-top: 16px; }
.stat { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 0 12px; font-size: 13px; color: var(--label2); }
.stat:first-child { padding-left: 0; }
a.stat { min-height: 44px; } /* a number that opens its place is a 44px target too (plan 8 Task 6) */
.stat + .stat { border-left: 1px solid var(--hero-rule, var(--sep)); } /* Day's at 3:1 (tokens.css --hero-rule, item 33) */
.stat b { color: var(--label); }
.stat b { font-size: 22px; font-weight: 700; display: block; line-height: 1.1; }
.stat.unknown b { color: var(--label2); font-weight: 400; } /* a number not known right now: its place kept (hero.js) */

/* The composer: a floating capsule above the bar */
.composer { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bar-h) + 22px + var(--safe-bottom)); z-index: 25; display: flex; justify-content: center; }
.composer.alone { bottom: calc(12px + var(--safe-bottom)); }
/* The scroll edge: what scrolls under the box and the bar fades into the page instead of showing through them. (Absolute:
   the box's container-type makes it the containing block.) Solid from the box's top down, past the screen's foot (40px
   more for a phone's bounce), with only the 24px over the box fading: the AI line and the strip over the tabs never
   show the chat through them (Payton's screenshots, 2026-11-27: the words ran through the AI line). */
.composer::before { content: ""; position: absolute; left: -12px; right: -12px; top: -24px; bottom: calc(-1 * (var(--bar-h) + 62px + var(--safe-bottom))); background: linear-gradient(to bottom, transparent, var(--edge) 24px); opacity: 1; pointer-events: none; z-index: -1; }
.composer .box { width: 100%; max-width: 880px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: var(--pill); background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--spec), var(--glass-shadow);
  -webkit-backdrop-filter: blur(36px) saturate(1.6); backdrop-filter: blur(36px) saturate(1.6); }
.composer .mode { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--pill); background: var(--tint); color: var(--accent-text); font-size: 13px; font-weight: 500; white-space: nowrap; position: relative; }
.composer .mode::after { content: ""; position: absolute; inset: -4px 0; }
.composer input { flex: 1; min-width: 0; font: inherit; color: var(--label); background: none; border: 0; min-height: 44px; }
.composer input::placeholder { color: var(--placeholder); }
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
/* Chat's box (web/chat/composer.js): a textarea that grows to 160px, Send (Stop while a reply types) at its foot, and two
   quiet lines under it, the AI line and what the chat has to say. */
form.composer { flex-direction: column; align-items: center; gap: 4px; margin: 0; }
.composer .box { align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; font: inherit; color: var(--label); background: none; border: 0; min-height: 44px; max-height: 160px; padding: 11px 4px; resize: none; line-height: 1.35; overflow-y: auto; }
.composer textarea::placeholder { color: var(--placeholder); }
.composer .send { flex: none; }
/* The AI line, once (Decision 3), on its own backing, as a story's has been (item 92): on Home the starter chips scrolled
   under it and the two lines read over each other (the round-1 review). What the chat has to say keeps its glass too. */
.composer .ainote { max-width: 880px; font-size: 13px; color: var(--label); text-align: center; padding: 2px 10px; margin: 0; border-radius: var(--pill); background: var(--label-back); }
.composer .say { max-width: 880px; color: var(--label); font-size: 13px; text-align: center; padding: 2px 10px; margin: 0; border-radius: var(--pill);
  background: var(--surface); --label2: var(--label2-on); }
.composer .say:empty { display: none; }
/* A link in it (the usage note's, to Settings › Usage): underlined, so it shows by more than a colour, with room to tap. */
.composer .say a { position: relative; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.composer .say a::after { content: ""; position: absolute; inset: -14px -6px; }
/* A locked box (composer.js lock): its words and Send held while the story waits, the keyboard kept where it was. */
.composer .send[aria-disabled="true"] { opacity: .6; cursor: default; }
.composer textarea[aria-disabled="true"] { opacity: .7; }
/* Chat's box as Claude's and ChatGPT's (composer.js, a box with the pill): one clean rounded box, the words first across
   it, and under them a row with the pill, small, at its left and the round Send at its right, dim while the box is empty. */
/* Smaller and more see-through (Vincent, Nov 8: "the chat box can u make it smaller in a way more translucent"): the
   lighter glass (--glass, its words at 4.5:1 over any painting: contrast.test.js), less room around the words at rest;
   it still grows as you type, to 160px. */
/* The buttons row sits as far in from the bottom as from the right (6px), and the corner is the 44px Send's own round
   plus that 6px (28px), so Send nests in the corner instead of crowding the bottom edge (Payton, 2026-11-21: the expand
   and Send buttons sat down on the rounded bottom edge). The top keeps the smaller box's 2px (Vincent, Nov 8). */
.composer .box.stacked { flex-direction: column; align-items: stretch; gap: 0; padding: 2px 6px 6px; border-radius: 28px; }
.composer .box.stacked textarea { padding: 8px 10px 4px; min-height: 36px; }
.composer .tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.composer .tools .mode { background: var(--fill); color: var(--label); font-weight: 500; }
.composer .tools .toolsbtn { background: var(--fill); margin-right: auto; } /* what Harrox can do: beside the pill (held) */
/* Think's chip (in the works; composer.js): a bulb and its word beside the pill, as the old app's. On, it is pressed: the
   accent's tint with a ring in its own words' colour, so it never rests on colour alone (the box's words change too).
   Its tap area is 44px tall (::after), as the pill's. With no tools button after it, it keeps the left with the pill. */
.composer .tools .thinkchip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px 0 9px; border-radius: var(--pill); background: var(--fill); color: var(--label); font-size: 13px; font-weight: 500; white-space: nowrap; position: relative; }
.composer .tools .thinkchip::after { content: ""; position: absolute; inset: -4px 0; }
.composer .tools .thinkchip .i { width: 16px; height: 16px; }
.composer .tools .thinkchip[aria-pressed="true"] { background: var(--tint); color: var(--accent-text); box-shadow: inset 0 0 0 2px currentColor; }
.composer .tools .thinkchip:not(:has(+ .toolsbtn)) { margin-right: auto; }
/* The row was full before Think joined it, so beside the chip the pill is the one that gives: its words end in an
   ellipsis before Send or anything else is pushed out of the box. Only a row with the chip in it: every other box is as it was. */
.composer .tools:has(.thinkchip) > :not(.mode) { flex: none; }
.composer .tools:has(.thinkchip) .mode { flex: 0 1 auto; min-width: 0; }
.composer .tools:has(.thinkchip) .mode span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.composer .send.idle { opacity: .45; box-shadow: none; }
/* The story's box tabs (storybox.js): Story | Shop | For you | Go somewhere and Minimize over the words, the open tab
   above them, scrolling inside past 40% of the screen so the words stay in reach (Vincent, Nov 10: "everything in one box"). */
.composer .boxtabs { width: 100%; max-width: 880px; gap: 8px; }
.composer .boxtabs[hidden] { display: none; }
.composer .boxtabs .seg { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.composer .boxtabs .seg[hidden] { display: none; }
.composer .boxtabs > .circ { margin-left: auto; } /* alone (no tabs), it keeps to the right */
/* Minimized, the story alone (storybox.js, Nov 14): what changed hands, offers answered and "spent" lines fold away with
   the box's extras; an offer still waiting on your Buy stays. */
.storymin .prose .scard:not(:has(button[data-offer])), .storymin .prose .soffer:not(:has(button[data-offer])), .storymin .prose .bchips { display: none; }
.composer .boxtabs .seg button { flex: 1 0 auto; min-height: 44px; }
.composer .boxpanel { width: 100%; max-width: 880px; max-height: calc(40vh / var(--size, 1)); overflow-y: auto; display: flex; flex-direction: column; align-items: center; }
.composer .boxpanel > [hidden] { display: none; }
.composer .boxpanel > * { width: 100%; }

/* Chat */
/* As Claude and ChatGPT read (the council's batch D, item 22): one centred column (~70ch of words on a computer),
   Harrox's replies plain prose across it (no bubble, no backing, no blur), only yours in a bubble on the right (radius 20,
   no edge, 16/1.45). While a thread is on show the painting lies under the page's own calm ground, a card's surface, so
   the plain words read at 4.5:1 over any painting (the surface's own test, contrast.test.js), and so do their actions. */
.chat { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 816px; margin: 0 auto; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: var(--bubble); font-size: 17px; line-height: 1.45; }
.bubble.ai { background: none; border-radius: 0; padding: 4px; line-height: 1.55; }
/* No tint over the painting while a thread is on show (Vincent, 2026-11-09: "dont have it tint at all because it looks
   weird"): the painting shows plain, and each reply carries its own card's surface instead, the lines under yours
   their own label ground, so every word still reads at 4.5:1 over any painting (contrast.test.js). */
html:has(#screen .chat > .msg) .look-veil { background: none; }
.chat > .msg.ai, .chat > .stopped { background: var(--surface); border-radius: var(--r-card); padding: 8px 12px; --label2: var(--label2-on); }
.chat > .msg.me > .msgline, .chat > .msg.me > .failline { color: var(--label); background: var(--label-back); border-radius: var(--pill); padding: 2px 10px; }
.bubble.ai > :not(.codeblock) { max-width: 70ch; }
.bubble.me { align-self: flex-end; max-width: 80%; padding: 10px 16px; background: var(--me-bubble); border-radius: var(--r-card); font-size: 16px; line-height: 1.45; }
.aiwho { font-size: 13px; color: var(--label2); align-self: flex-start; padding-left: 8px; }
.note { align-self: flex-start; max-width: 86%; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); border: 1px dashed var(--glass-edge); display: flex; flex-direction: column; gap: 8px; font-size: 15px; --label2: var(--label2-on); }
.note .why { color: var(--label2); font-size: 13px; }
.stream { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .stream { animation: none; } }
/* A message and what goes under it (web/chat/bubbles.js): yours in the accent, Harrox's words drawn from markdown. */
.first-slot:empty { display: none; }
.msg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bubble { overflow-wrap: anywhere; min-width: 0; }
.bubble.me { white-space: pre-wrap; }
.bubble p + p, .bubble p + ul, .bubble p + ol, .bubble ul + p, .bubble ol + p, .bubble pre, .bubble blockquote { margin-top: 8px; }
.bubble ul, .bubble ol { margin: 0; padding-left: 20px; }
.bubble h2, .bubble h3, .bubble h4, .bubble h5 { margin: 14px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.bubble h2 { font-size: 19px; }
.bubble h2:first-child, .bubble h3:first-child, .bubble h4:first-child, .bubble h5:first-child { margin-top: 0; }
.bubble code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: 1px 5px; border-radius: 6px; background: var(--fill); }
.bubble pre { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--fill); overflow-x: auto; white-space: pre; }
.bubble pre code { padding: 0; background: none; }
/* A code block with its own Copy (bubbles.js codeCopies): the button over its top-right corner, the code kept clear of it. */
.codeblock { position: relative; margin-top: 10px; }
.codeblock pre { margin: 0; padding: 40px 14px 12px; background: var(--fill2); }
.codeblock .codecopy { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: var(--pill); font-size: 13px; font-weight: 600; color: var(--label); background: var(--fill); }
.codeblock .codecopy .i { width: 14px; height: 14px; }
.bubble blockquote { margin: 8px 0 0; padding: 2px 12px; border-left: 3px solid var(--accent); color: var(--label2); }
.wl { color: var(--accent-text); border-bottom: 1px dashed var(--glass-edge); text-decoration: none; }
.websrc { align-self: flex-start; font-size: 13px; color: var(--label2); padding-left: 8px; }
.websrc summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border-radius: var(--pill); background: var(--label-back); }
.websrc summary::-webkit-details-marker { display: none; }
.websrc summary .i { width: 16px; height: 16px; }
.websrc p { margin: 8px 0 4px; }
.websrc ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.websrc a { color: var(--label); text-decoration: underline; text-underline-offset: 2px; }
.websrc small { display: block; color: var(--label2); }
.chat .ainote, .msgline, .making { font-size: 13px; color: var(--label2); align-self: flex-start; padding-left: 8px; }
.msg.me .msgline { align-self: flex-end; padding: 0 8px 0 0; }
.making:empty { display: none; }
/* Think (in the works): "Thinking" beside the dot while Harrox thinks, then "Thought for 12s" over the reply it wrote
   (chat.js, bubbles.js thoughtLine): small quiet lines, as the old app's. */
.thinking { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--label2); }
.thoughtfor { display: flex; align-items: center; gap: 5px; margin: 0; padding-left: 4px; font-size: 13px; color: var(--label2); }
.thoughtfor .i { width: 14px; height: 14px; }
.stopped { align-self: flex-start; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding-left: 8px; font-size: 15px; color: var(--label2); }
/* A send that didn't get an answer stays at full contrast, with a mark, why and Retry under it (chat.md 1). */
.failline .failmark { width: 16px; height: 16px; flex: none; color: var(--bad-glyph); }
.failline { align-self: flex-end; display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; padding-right: 8px; margin: 0; font-size: 15px; color: var(--label); text-align: right; }
/* Jump to latest: above the composer whenever the thread's end is out of view (chat.md 6). */
.composer .jump { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--label); background: var(--glass-dense); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.composer .jump[hidden] { display: none; }
/* Home's Harrox chat (web/chat/chat.js; Vincent, 2026-11-07: "glassy bubbly translucent", "the chat goes up"): the box
   is the bar fixed to Home's bottom, and the conversation grows up out of it in a glass panel Home shows through, as
   wide as the box. The look's own glass tokens, so Day reads dark on light and the others light on dark; the thread
   scrolls inside the panel, its name and Shrink stay at its top. Full screen, Shrink and New chat are the bar's circles. */
.composer .hxfloat { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); margin: 0 auto; width: 100%; max-width: 880px;
  max-height: min(58vh / var(--size, 1), 560px); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; color: var(--label);
  background: color-mix(in srgb, var(--glass-dense) 86%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--glass-edge); box-shadow: var(--spec), var(--glass-shadow); }
.composer .hxfloat[hidden] { display: none; }
/* It grows up out of the bar and sinks back into it (chat.js setOpen; .hxout while it goes), and a chat made full screen
   from it grows in (.chat.hxgrow): transform and opacity only, on the popups' curve; none of it under Reduce Motion or
   Calm (Vincent, 2026-11-08: "add in animations when maximizing and minimizing it"). */
@keyframes hx-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes hx-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="calm"]) .composer .hxfloat { transform-origin: 50% 100%; animation: hx-in 200ms cubic-bezier(.2, .8, .2, 1); }
  :root:not([data-motion="calm"]) .composer .hxfloat.hxout { animation: hx-out 160ms cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
  :root:not([data-motion="calm"]) .chat.hxgrow { transform-origin: 50% 100%; animation: hx-in 220ms cubic-bezier(.2, .8, .2, 1); }
}
.hxfloat .hxhead { flex: none; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 2px; }
.hxfloat .hxhead b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxfloat > .chat { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px 14px; }
.composer .boxextra { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.composer .boxextra .circ { width: 40px; height: 40px; background: var(--fill); }
.composer .boxextra .circ::after { content: ""; position: absolute; inset: -2px; }
.composer .boxextra .circ[hidden] { display: none; }
/* The AI reminder (From Harrox) and crisis help, in the thread. */
.aireminder { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); font-size: 15px; --label2: var(--label2-on); }
.aireminder small { color: var(--label2); font-weight: 600; }
.chat .crisis { position: relative; padding-right: 60px; }
.chat .crisis .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; }
/* A long-press menu: the page blurs, the thing lifts, the actions sit under it */
.ctx-dim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ctx { position: fixed; z-index: 41; display: flex; flex-direction: column; gap: 10px; }
.ctx .lift { transform: scale(1.03); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.menu { width: 250px; border-radius: 20px; background: var(--glass-dense); border: 1px solid var(--glass-edge); box-shadow: var(--spec), var(--glass-shadow); overflow: hidden; }
.menu [role="menuitem"] { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 15px; border-top: 1px solid var(--sep); }
.menu [role="menuitem"]:first-child { border-top: 0; }
.menu [role="menuitem"].bad { color: var(--bad-text); }
/* More: the same menu as a long press, from a button (accessibility.md 5), on a Harrox reply and beside a drawer row. */
.more { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--label2); }
/* A reply spans the column; under it its actions (Copy, More) as quiet 32px icons in the receding colour, no backing (the
   thread's ground is under them). The latest reply's always show; an older one's when wanted: hover or the keyboard with
   a mouse, a tap on the reply with a finger (the reply takes focus). Each button's target is 44px (::after). */
.msg { position: relative; }
.msg.ai { align-self: stretch; max-width: 100%; }
.msg.ai > .bubble { max-width: 100%; }
.acts { align-self: flex-start; display: inline-flex; gap: 4px; margin-left: -2px; }
.acts button { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--label2); }
.acts button::after { content: ""; position: absolute; inset: -6px; }
.acts .i { width: 18px; height: 18px; }
.drow { position: relative; }
.drow > .pillrow { padding-right: 52px; }
.drow > .more { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
/* With a mouse it shows when it is wanted (hover, or the keyboard on the reply or row); a finger: below. */
@media (pointer: fine) {
  .msg.ai:not(.latest) > .acts, .drow > .more { opacity: 0; }
  .msg.ai:hover > .acts, .msg.ai:focus-within > .acts, .drow:hover > .more, .drow:focus-within > .more { opacity: 1; } }
@media (pointer: coarse) { .msg.ai:not(.latest, :focus-within) > .acts { display: none; } }
/* A finger sees a drawer row's ••• on the row it is on only; the rest have theirs by a press and hold or a swipe
   (menu.js swipeActions), as a phone's sidebars do. */
@media (pointer: coarse) { .drow:not(:has(> .pillrow.on), :focus-within) > .more { display: none; } }
/* An empty chat (chat.js helloEl): the greeting in the middle of the page with the gold ornament and no backing, and four two-line chips
   above the box (Chat A, docs/superpowers/specs/2026-11-18-new-look-screens-design.md). The words read by the titles' shadow. */
.chathello { display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: calc(100svh - 380px); text-align: center; }
.chathello .greet { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chathello h1 { margin: 0; font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1.1; color: var(--label); text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent); }
.chathello .lead { margin: 14px 0 0; font-family: var(--prose); font-size: 21px; font-style: italic; font-weight: 500; color: var(--label2); text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent); }
.chathello .muted { margin: 0; font-size: 15px; color: var(--label2); text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent); }
.chathello .pills { justify-content: center; gap: 8px; margin-top: 24px; }
.chip2 { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 9px 15px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--accent-glyph) 28%, transparent); background: linear-gradient(color-mix(in srgb, var(--accent-glyph) 7%, transparent), color-mix(in srgb, var(--accent-glyph) 7%, transparent)), var(--surface2); color: var(--accent-text); font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.chip2 small { font-size: 11px; font-weight: 400; color: var(--label2-on); }
.textbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--accent-text); cursor: pointer; text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent); }
.chathello .textbtn { margin-top: 16px; }

/* Snag, skeleton, empty */
.snag { padding: 12px 14px; border-radius: var(--r-row); background: var(--surface); display: flex; align-items: center; gap: 12px; font-size: 15px; --label2: var(--label2-on); }
/* A screen's snag with what threw under it (web/load.js screenFailed): the words and Retry on one row, Details below. */
.snag.withwhy { flex-wrap: wrap; }
.snag.withwhy > .grow { flex: 1 1 0; min-width: 0; }
.snagwhy { flex-basis: 100%; min-width: 0; }
.snagwhy > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; color: var(--label2); font-size: 13px; cursor: pointer; list-style: none; }
.snagwhy > summary::-webkit-details-marker { display: none; }
.snagwhy > summary > .i { width: 16px; height: 16px; transition: transform .2s; } /* the cue: down while folded, up while open (the round-1 review) */
.snagwhy[open] > summary > .i { transform: rotate(180deg); }
.snagwhy > p { margin: 0 0 4px; white-space: pre-line; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
/* The bones (web/ui.js bones, screenBones; the council's batch D): shaped like what is coming, not four identical bars.
   Lines end short; rows sit in one card like the grouped rows they stand for (an icon's square, a title, a shorter line);
   cards are 96px; a shelf is its heading and a sideways row of covers; chat is your message on the right and a reply.
   A soft shimmer runs across them, only under motion (swap.js holds them back 150ms, so a quick screen never shows any). */
.bones { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bone { height: 16px; border-radius: 8px; background: var(--fill2); }
.bones > .bone:last-child:not(:only-child) { width: 62%; }
.bones.screen { gap: 24px; }
.bones .bone.title { width: 46%; height: 34px; border-radius: 10px; align-self: center; }
.bones.rows { gap: 0; padding: 0 16px; border-radius: var(--r-card); background: var(--surface); }
.bones.rows > .brow { display: flex; align-items: center; gap: 15px; min-height: 52px; }
.bones.rows > .brow + .brow { border-top: 1px solid var(--sep); }
.card .bones.rows { padding: 0; background: none; } /* inside a card the card is the group (Settings) */
.bones .bone.ic { width: 29px; height: 29px; border-radius: 7px; flex: none; }
.bones .blines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bones .blines > .bone { width: 58%; height: 13px; }
.bones .blines > .bone.short { width: 36%; height: 10px; }
.bones .bone.card { height: 96px; border-radius: var(--r-card); background: var(--surface); }
.bones .bone.head { width: 42%; height: 22px; }
.bones .bcovers { display: flex; gap: 12px; overflow: hidden; }
.bones .bone.cover { flex: none; width: 116px; height: 172px; border-radius: var(--r-card); background: var(--surface); } /* a sideways shelf's card (.srow > .book) */
.bones.chat { gap: 12px; }
.bones.chat > .bone:not(.me) { background-color: var(--surface); } /* on the bare painting: a reply's lines show */
.bones .bone.me { align-self: flex-end; width: 52%; height: 44px; border-radius: 20px; background: var(--me-bubble); opacity: .6; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="calm"]) .bone { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
}
.empty { padding: 24px; border-radius: var(--r-card); background: var(--surface); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; --label2: var(--label2-on); }
/* The one empty state (ui.js emptyState; the council's item 20), for an empty list, a door not open yet and a dead end:
   a glyph in a tinted circle, one line 17/600, one muted line 15/400, one filled action, all centred. */
.empty.state { align-items: center; text-align: center; gap: 8px; padding: 32px 24px; }
.empty.state > .glyph { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); margin-bottom: 8px; }
.empty.state > .glyph .i { width: 40px; height: 40px; stroke-width: 1.4; }
.empty.state > h2 { font-size: var(--t-head); font-weight: 600; line-height: 1.3; }
.empty.state > p { font-size: var(--t-sub); color: var(--label2); max-width: 320px; }
.empty.state > .btn { margin-top: 12px; }
.empty.state > .row { justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.empty.state > .crisis-slot:empty { display: none; }
.empty.state.mdoor > [role="status"] { font-size: var(--t-head); font-weight: 600; color: var(--label); max-width: 320px; }
/* A gate is never a wall (batch D): the Library Pass and the Office Card are one row at the top of the real screen
   (library/pass.js passRow, office/pass.js officeCardRow; office.css .opassrow), and their card opens in a sheet, where
   the sheet's title is its heading (the card's own stays for a screen reader and the keyboard) and the sheet its ground. */
.lpass:empty { display: none; }
.passrow { width: 100%; }
.passrow .grow span { white-space: normal; } /* its line wraps on a narrow phone, never past the edge */
.sheet .passcard { padding: 0; background: none; }
.sheet .passcard > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Shelves and story */
.shelf { display: grid; grid-template-columns: 1fr; gap: 12px; }
.book { padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); display: flex; gap: 14px; align-items: center; --label2: var(--label2-on); }
/* A cover wears its Book's tint (data-css --cover, from old.js markOf), else the accent, over the glass; its icon is in
   the words' colour, so it reads in Night and Day alike. */
.book .cover { width: 56px; height: 76px; border-radius: var(--r-cover); flex: none; background: linear-gradient(160deg, color-mix(in srgb, var(--cover, var(--accent)) 38%, transparent), var(--fill)); display: grid; place-items: center; color: var(--label); }
.book .grow b { display: block; font-size: 17px; font-weight: 600; } .book .grow > span { display: block; font-size: 13px; color: var(--label2); }
.book.start { background: var(--surface2); --label2: var(--label2-on); }
.book.start .cover { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 60%, transparent), var(--tint)); }
/* Under a card's line: its rating, and in Continue whose turn it is, with a dot when it's yours. */
.book .bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 13px; color: var(--label2); }
.book .turnwords { color: var(--label); font-weight: 600; }
.turndot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.book .bgo { margin-top: 10px; }
/* Start {story}: its words wrap at a large text size rather than run off a phone (item 24). */
.book .bgo .btn { white-space: normal; text-align: center; max-width: 100%; }
/* Play (web/library/play.js): its rows one section gap apart, as the first screen's band; a label 8px over its cards (its
   backing is the first screen's, below); a slot with nothing in it takes no room. */
.lplay { display: flex; flex-direction: column; gap: 24px; }
.lplay > :empty { display: none; }
.lrow { gap: 8px; }
/* Create (web/library/hub.js): Start one yourself's cards are Play's glass cards, as many columns as 300px of the
   shell's own (zoomed) px fit, so a large text size takes them back to one, and never wider than the room; each its
   icon, its name and its line (which wrap as the text grows) and a chevron, 44px tall at least. A resting card or row
   is no link: plain fill, no glass shadow, no press. In the Library's bands (the hub, and Make something's sheet) a
   row's line wraps too, so it is never cut short. The Shelves button sits at the left and wraps inside the room. */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.offer { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 14px 16px; border-radius: var(--r-card); color: var(--label); background: var(--surface); text-align: left; min-width: 0; --label2: var(--label2-on); }
div.offer { background: var(--fill); box-shadow: none; }
.offer .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); flex: none; }
.offer .grow b { display: block; font-size: 17px; font-weight: 600; }
.offer .grow small { display: block; margin-top: 2px; font-size: 13px; color: var(--label2); }
.offer .go { flex: none; color: var(--label3); display: grid; place-items: center; }
/* With Library Harrox, a kind Harrox makes is one card: its link on top, its Make it for me at its foot, under the card's
   words (web/library/hub.js offerFor; Payton's iPhone, 2026-11-01: between the cards it was unclear which it made). */
.offercard { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-radius: var(--r-card); --label2: var(--label2-on); }
.offercard > .offer { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.offerfoot { padding: 0 16px 14px 70px; margin-top: -6px; }
.offerfoot > .btn { max-width: 100%; white-space: normal; }
.lplay .pillrow .grow span { white-space: normal; }
.lplay > .btn { align-self: flex-start; max-width: 100%; white-space: normal; text-align: left; font-size: 15px; }
/* A screen with the round New: its last band ends clear of it, so the last row can be read and tapped. */
body:has(> .action) .main .lplay:last-child { padding-bottom: 72px; }
div.pillrow { background: var(--fill); box-shadow: none; }
div.pillrow:active { transform: none; }
/* Shelves (web/library/shelves.js, ruling 15): Created by you and Saved, each its heading on the painting's backing (as
   Play's labels), then a section a kind (.shelfkind) of Play's glass cards. A kind's label is its icon, its name, how
   many are on the shelf and See all, which wrap at a large text size; a card's chips (PC or NPC, who sees it) and its
   lock sit under its line. The filter chips are 44px targets on glass, the picked one in the accent's tint. Every
   colour a token of both looks; every size in px the shell's zoom scales. */
.lplay > .lrow > h2.label { font-size: 20px; font-weight: 700; }
.lrow > nav { display: flex; flex-wrap: wrap; gap: 8px; }
.lrow > nav .chip { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--label); background: var(--raised); }
.lrow > nav .chip[aria-current="true"] { background: var(--tint); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.shelfkind { gap: 8px; }
.shelfkind > .label { justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; }
.shelfkind > .label .muted { font-weight: 500; color: var(--label2); }
.shelfkind > .label .i, .shelfkind .bmeta .i { width: 16px; height: 16px; flex: none; }
.lrow > .muted .i { width: 16px; height: 16px; vertical-align: -3px; }
/* Create's forms (web/library/createform.js): one column of fields, each its words over its box; a box grows with the
   text size (min-heights in px, which the shell's zoom scales; never a fixed height); a radio choice is a 44px pill with
   its own circle, or a segment of a row whose radio covers it (so the one ring is drawn round the segment); a line that
   says nothing yet takes no gap. The starters row: three cards side by side where there is room for them, else a row
   you swipe (a phone, or a large text size, since the container measures the shell's zoomed px); each card its mark (a
   Book's tint through data-css --tint, beside its name; a person's initials), its name and its line, which wrap. The
   preview card, a row of fields with its take-out button, and the More-like link button. Every colour a token of both
   looks; every control 44px at least. */
.cform { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cform .fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cform .fld > span:first-child, .cform .fld > label:first-child { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--label); }
.cform .fld small { font-size: 13px; color: var(--label2); }
.cform .fld :is(input:not([type="radio"]), textarea, select) { font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--box-edge); border-radius: var(--r-ctl); min-height: 46px; padding: 10px 14px; width: 100%; min-width: 0; }
.cform .fld input[type="search"] { border-radius: var(--pill); }
.cform .fld textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.cform .fld :is(input, textarea)::placeholder { color: var(--placeholder); }
.cform .fld [readonly] { color: var(--label2); }
.cform .fld [role="radiogroup"]:not(.segpick) { display: flex; flex-wrap: wrap; gap: 8px; }
.cform .fld [role="radiogroup"]:not(.segpick) label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px; border-radius: var(--pill); background: var(--fill); color: var(--label); font-size: 15px; font-weight: 600; cursor: pointer; }
.cform .fld [role="radiogroup"]:not(.segpick) label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.cform .fld [role="radiogroup"]:not(.segpick) input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.cform > [role="status"]:empty { margin-top: -16px; }
.segpick { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-card); background: var(--fill); }
.segpick label { position: relative; flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px; border-radius: var(--pill); font-size: 15px; font-weight: 600; color: var(--label2); text-align: center; cursor: pointer; }
.segpick input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; margin: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.segpick label:has(input:checked) { background: var(--surface2); color: var(--label); box-shadow: inset 0 0 0 2px var(--label); --label2: var(--label2-on); }
.starters { display: flex; flex-direction: column; gap: 8px; min-width: 0; container-type: inline-size; }
.starters > .label + div { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 2px 6px; }
.starter { flex: 0 0 min(260px, 85%); scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 44px; min-width: 0; padding: 14px 16px; border-radius: var(--r-card);
  color: var(--label); background: var(--surface); text-align: left; white-space: normal; --label2: var(--label2-on); }
.starter .mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--accent-glyph); font-size: 15px; font-weight: 700; }
.starter .mark[data-css] { background: color-mix(in srgb, var(--tint) 30%, transparent); color: color-mix(in srgb, var(--tint) 65%, var(--label)); }
.starter b { font-size: 17px; font-weight: 600; }
.starter small { font-size: 13px; color: var(--label2); }
@container (min-width: 640px) { .starters > .label + div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.morebtn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; padding: 0 4px; color: var(--accent-text); font-size: 15px; font-weight: 600; text-align: left; }
.prev { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; min-width: 0; }
.prev > .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prev b { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.row1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.row1 > :is(input, select) { flex: 1 1 160px; }
.drop { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--label2); background: var(--fill); }
/* A character's and a Narrator's form (web/library/makecharacter.js, makenarrator.js): the preview's initials and its
   who-plays-them or voice line, a Narrator's sample in italics, the lock line, More about them and How it sounds as
   44px folds with a chevron that turns when open, and the voices as a column, each its name over its line. Tokens of
   both looks; every control 44px at least. */
.prev .face { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--accent-glyph); font-size: 18px; font-weight: 700; }
.prev small { font-size: 15px; color: var(--label2); overflow-wrap: anywhere; }
.prev .say { font-style: italic; color: var(--label); }
.kindtag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--label2); }
.kindtag .i, .locknote .i { width: 16px; height: 16px; }
.locknote { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--label2); }
.locknote .i { margin-top: 2px; }
/* Its words are their own item beside the icon, so they shrink and wrap inside the note at any width (Payton's iPhone,
   2026-11-01: Shelves' notes ran to the right edge). */
.locknote > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.memlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } /* an NPC's memories: a thought icon each, no bullets */
.memlist li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--label2); overflow-wrap: anywhere; min-width: 0; }
.memlist .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.cform details > summary, .dtable > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--accent-text); cursor: pointer; list-style: none; }
.cform details > summary::-webkit-details-marker, .dtable > summary::-webkit-details-marker { display: none; }
.cform details > summary > .i, .dtable > summary > .i, .acct details > summary > .i { width: 18px; height: 18px; margin-left: auto; color: var(--label2); }
.cform details[open] > summary > .i, .dtable[open] > summary > .i, .acct details[open] > summary > .i { transform: rotate(180deg); } /* the cue: down while folded, up while open */
.cform details[open] > summary { margin-bottom: 12px; }
.cform .fld > details > summary { color: var(--label); }
.cform .fld > details > summary > small { font-weight: 400; color: var(--label2); overflow-wrap: anywhere; min-width: 0; }
.cform .fld .voices[role="radiogroup"] { flex-direction: column; flex-wrap: nowrap; }
.cform .fld .voices[role="radiogroup"] label { align-items: flex-start; border-radius: var(--r-ctl); padding: 10px 14px 10px 10px; }
.cform .fld .voices[role="radiogroup"] label > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cform .fld .voices[role="radiogroup"] small { font-weight: 400; }
.cform .fld .voices[role="radiogroup"] input { margin-top: 1px; }
/* A Book's settings (web/library/makebook.js): its parts as a segmented row of buttons, its tick boxes as the radio pills
   are (a system's name over its line), the preview's mark on the Book's tint (always one of TINTS, beside its name), and
   its colours as round swatches, each 44px, the picked one ringed. Tokens of both looks. */
.segpick > button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: var(--pill); font-size: 15px; font-weight: 600; color: var(--label2); }
.segpick > button .i { width: 16px; height: 16px; flex: none; }
.segpick > button[aria-pressed="true"] { background: var(--surface2); color: var(--label); box-shadow: inset 0 0 0 2px var(--label); --label2: var(--label2-on); }
.segpick > button[aria-checked="true"] { background: var(--surface2); color: var(--label); box-shadow: inset 0 0 0 2px var(--label); --label2: var(--label2-on); }
.cform .fld [role="group"] { display: flex; flex-wrap: wrap; gap: 8px; }
.cform .fld [role="group"] > label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); font-size: 15px; font-weight: 600; cursor: pointer; }
.cform .fld [role="group"] > label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.cform .fld [role="group"] > label > input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); } /* a tick box, not the text box's 46px */
.cform .fld [role="group"] > label > span { display: inline-flex; flex-direction: column; gap: 2px; min-width: 0; }
.cform .fld [role="group"] > label > span:has(.i) { flex-direction: row; align-items: center; gap: 6px; }
.cform .fld [role="group"] > label small { font-weight: 400; color: var(--label2); }
.cform .fld [role="group"] .i { width: 16px; height: 16px; flex: none; }
.prev .face[data-css] { background: color-mix(in srgb, var(--tint) 30%, transparent); color: color-mix(in srgb, var(--tint) 65%, var(--label)); }
.prev .face .i { width: 24px; height: 24px; }
.cform .fld [role="radiogroup"]:not(.segpick) label.swatch { position: relative; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--glass-edge); background: var(--sw); }
/* Day's glass edge is white, near nothing on its light glass: an unpicked swatch takes the second ink (item 3), as Mail's. */
[data-look="day"] .cform .fld [role="radiogroup"]:not(.segpick) label.swatch { border-color: var(--label2); }
.cform .fld [role="radiogroup"]:not(.segpick) label.swatch:has(input:checked) { border-color: var(--label); background: var(--sw); box-shadow: 0 0 0 3px var(--accent); }
.cform .fld [role="radiogroup"]:not(.segpick) label.swatch input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: auto; height: auto; margin: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
/* The story builder's parts (web/library/builderparts.js): each a glass fold whose summary, 44px at least, is its icon,
   its name over what it says now (wrapping, never clipped) and a chevron that turns when open; inside, the form's one
   column; the secret and a sealed copy's note on a quieter card. Still needs (.sbneed) is a plain line that turns
   green when it's ready to save. Tokens of both looks; every size in px, which --size scales. */
.sbpart { min-width: 0; background: var(--surface); border-radius: var(--r-card); --label2: var(--label2-on); }
.sbpart > summary, .cform .sbpart > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; padding: 12px 16px; color: var(--label); font-size: 17px; font-weight: 400; cursor: pointer; list-style: none; }
.sbpart > summary::-webkit-details-marker { display: none; }
.sbpart > summary > .i:first-child, .cform .sbpart > summary > .i:first-child { width: 22px; height: 22px; margin-left: 0; color: var(--accent-glyph); transform: none; }
.sbpart > summary > .i:last-child, .cform .sbpart > summary > .i:last-child { width: 18px; height: 18px; margin-left: auto; color: var(--label2); }
.sbpart[open] > summary > .i:last-child { transform: rotate(180deg); }
.cform .sbpart[open] > summary { margin-bottom: 0; }
.sbpart > summary > .grow { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sbpart > summary b { font-weight: 600; }
.sbpart > summary small { font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.sbpart > .cform { padding: 4px 16px 16px; }
.sbpart .card { background: var(--fill); border-radius: var(--r-card); }
.sbpart .sealed { display: flex; align-items: flex-start; gap: 6px; color: var(--label2); }
.sbpart .sealed .i, .sbpart .card > .label .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sbpart .card > .label > span { display: inline-flex; align-items: center; gap: 6px; }
.sbpart .row1 > .chip { font-size: 15px; padding: 4px 12px; color: var(--label); }
.sbpart .fld > small[aria-hidden="true"] { font-weight: 600; color: var(--label2); }
.sbneed { font-size: 15px; color: var(--label2); overflow-wrap: anywhere; }
.sbneed.ready { color: var(--ok-text); }
/* The story builder's screen (web/library/builder.js): its cover is a card, not a link, so it doesn't press in; its
   buttons start at the left and wrap. Beside the rail (from 1100px) and once the screen's column has 736px of the shell's
   own (zoomed) px, a container query, so a larger text size keeps the form its room, the story at a glance (.sbside)
   sits beside it and stays in view: the cover, what it still needs, Save, the draft's line, then a row a part (.sbglance),
   each opening its part, every line wrapping, never cut short. Otherwise it isn't drawn: the one column has all of it. */
div.book:active { transform: none; }
.lplay > .stack > .btn { align-self: flex-start; max-width: 100%; white-space: normal; text-align: left; }
@media (min-width: 1100px) { .main:has(> * .sbside) { container-type: inline-size; } }
.sbside { display: none; }
@container (min-width: 736px) { div:has(> .sbside) { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; } }
@container (min-width: 736px) { div:has(> .sbside) > .lplay > .book:first-child { display: none; } } /* the cover is the aside's there */
@container (min-width: 736px) { .sbside { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: sticky; top: calc(72px + var(--safe-top)); max-height: calc(100vh / var(--size, 1) - 96px - var(--safe-top)); max-height: calc(100dvh / var(--size, 1) - 96px - var(--safe-top)); overflow-y: auto; } }
.sbside > .btn { align-self: flex-start; }
.sbside > p:empty { display: none; }
.sbglance { display: flex; flex-direction: column; gap: 8px; }
.sbglance .pillrow { width: 100%; min-height: 44px; }
.sbglance .pillrow .grow span { white-space: normal; overflow-wrap: anywhere; color: var(--label); font-size: 15px; }
/* A choice that can't be picked (what a story's Book rules out, a Mature NPC in a Teen story) looks it. */
.cform .fld :is([role="group"], [role="radiogroup"]) label:has(input:disabled) { opacity: .55; cursor: default; }
/* The Library Pass card (web/library/pass.js), its crisis help 12px above it */
.lpass { display: flex; flex-direction: column; gap: 12px; }
.passcard { gap: 12px; border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-edge)); }
.passcard h2 { font-size: 22px; font-weight: 700; }
.passcard .passbtns { flex-wrap: wrap; gap: 8px; }
.passcard .error { font-size: 15px; color: var(--bad-text); }
.passcard .error:empty, .passcard [role="status"]:empty { margin-top: -12px; } /* in the page for a screen reader, no gap of its own */
/* A story's start page (web/library/start.js): the rating line and Continue's label on their backing over the painting,
   the Book chip, Continue's rows, the story card, then the form. Every row starts at the left; every choice and link is
   44px tall at least. */
.lstart { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lstart > .stack, .lstart > .card { align-self: stretch; }
.lstart > .stack:empty { display: none; }
/* Words straight on the painting (plan 8 Task 7d; the full check's accessibility I1, row 90): a screen's title, a
   section's label and a quiet line that lie on the bare painting. They sat on --label-back, a dark pill their own
   width; on a phone a long note read as a black slab floating outside any card (Payton's iPhone, 2026-11-01: Market's
   "Marks are play money..."). Now they are quiet words with no backing, read by the titles' own shadow (a tight one in
   the edge colour round every stroke and a soft one), which holds 4.5:1 over the brightest and the darkest painting
   in every look (test/newui/titles-bars-filters.test.js, painting-words.test.js); a note is small, too. In glass they
   keep the glass. The places are the walk's, each a bare container and what lies in it. */
:is(h1.ltitle, h1.title):not(:is(.glass, .card, .sheet, .popup, .hero, .bookhero, .dhero, .ohero) *),
:where(#screen, #screen > .stack, #screen > .stack > .stack, #screen > .stack > .rows, .lplay, .lrow, .odesk, .oschedule, .oclock > .stack,
  .ogroups, .opos > .stack, .ochatlist > .stack, .oset, .oinbox) > :is(h2, .label, p.muted, p.lead, p.locknote, p.hello, p.day):not(:empty, :is(.glass, .card, .ocard, .dense) > *),
.odesk .oweek > b {
  width: fit-content; max-width: 100%; min-width: 0; overflow-wrap: anywhere; align-self: flex-start; padding: 0 2px; border-radius: 0; color: var(--label);
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent), var(--title-glow); }
:where(#screen, #screen > .stack, #screen > .stack > .stack, #screen > .stack > .rows, .lplay, .lrow, .odesk, .oschedule, .oclock > .stack,
  .ogroups, .opos > .stack, .ochatlist > .stack, .oset, .oinbox) > :is(p.muted, p.day):not(:is(.glass, .card, .ocard, .dense) > *) { color: var(--label2); }
:where(#screen, #screen > .stack, #screen > .stack > .stack, #screen > .stack > .rows, .lplay, .lrow, .odesk, .oschedule, .oclock > .stack,
  .ogroups, .opos > .stack, .ochatlist > .stack, .oset, .oinbox) > :is(p.muted, p.locknote):not(:is(.glass, .card, .ocard, .dense) > *) { font-size: .875rem; }
.odesk .oweek > b { align-self: center; }
.lstart > .smeta, .lstart > .stack > .label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; align-self: flex-start; color: var(--label); font-size: 15px; padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); }
.chip.rate.mature { color: var(--bad-text); }
.bookchip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--pill); background: var(--raised); color: var(--label); font-size: 15px; font-weight: 600; }
/* Save for later on the Book chip's glass, and its line on the label backing, so both read over the painting. */
.lstart > .laterbtn { padding: 0 14px; border-radius: var(--pill); background: var(--raised); }
.lstart > .say { margin: 0; color: var(--label); font-size: 15px; padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); }
.lstart > .say:empty { padding: 0; background: none; margin-top: -12px; } /* in the page for a screen reader, no gap of its own */
.hpfld .i { width: 1em; height: 1em; } /* the start page's Health heart, the size of its word (room.js healthField; plan 4c2 Task 14) */
.scard { gap: 14px; }
.snode { display: flex; flex-direction: column; gap: 4px; }
.snode > .label { padding: 0; }
.snode .sealed { display: flex; align-items: flex-start; gap: 6px; color: var(--label2); }
.snode .sealed svg { flex: none; margin-top: .2em; }
.startform input[name="characterName"], .switchform input[name="characterName"] { font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); min-height: 46px; padding: 0 14px; width: 100%; }
.startform input[name="characterName"]::placeholder, .switchform input[name="characterName"]::placeholder { color: var(--placeholder); }
.picks { display: flex; flex-direction: column; }
.pickrow { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; text-align: left; cursor: pointer; }
.pickrow input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.startform .error { font-size: 15px; color: var(--bad-text); }
.startform .error:empty { margin-top: -12px; } /* in the page for a screen reader, no gap of its own */
.startform > .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held while a start is out; it keeps the keyboard */
.lbtns { flex-wrap: wrap; gap: 8px; }
/* Crisis help first in a screen (start.js), its close button in the corner, a gap under it. */
.crisis.lead { position: relative; padding-right: 60px; margin-bottom: 12px; }
.crisis.lead .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; }
/* The story screen (web/library/story.js, page.js): the page in the prose face on dense glass, the group turn's moves
   and the Narrator's dots under it, the turn line, the box's ideas and health, the end, and the party panel. Every
   colour a token of both looks, except the old KINDS colours, which come as --kc (data-css) and always carry an icon and
   words too; every size in px, which the text size (html zoom, --size) scales, and no text in a box of fixed height. */
.prose { font-family: var(--prose); font-size: 20px; line-height: 1.55; padding: 20px; border-radius: var(--r-card); background: var(--surface2); display: flex; flex-direction: column; gap: 12px; --label2: var(--label2-on); }
.prose .you { color: var(--accent-text); font-style: italic; }
.turn { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--label2); padding: 0 8px; }
.turn .glow { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.prose .writ { display: flex; flex-direction: column; gap: 12px; }
.prose .dirnote { color: var(--label2); }
.prose .only { padding: 10px 14px; border-radius: var(--r-row); background: var(--only-back); font-style: italic; }
.prose .only b { display: block; font: 600 13px/1.4 var(--font); font-style: normal; color: var(--accent-text); }
.prose .mark { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--label2); font-size: 17px; }
.prose .mark small { font: 600 12px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.prose .mark b { font-size: 22px; font-weight: 600; color: var(--label); }
/* An offer set into the Narrator's writing (page.js offerLine, Nov 13): one more line of the printed page under a hairline,
   no box. The words in the story's italic; Buy, with its price, the one accent; No thanks quiet; both underlined text
   with a 44px tap height, and what came of it in small capitals once answered. Nothing moves. */
.prose .soffer { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; margin: 0; padding-top: 10px; border-top: 1px solid var(--sep); font-style: italic; }
.prose .soffer .sothumb { flex: none; width: 32px; height: 32px; object-fit: cover; border-radius: 2px; background: var(--fill2); }
.prose .soffer .sowords { flex: 1 1 14em; min-width: 0; }
.prose .soffer .soacts { display: flex; flex-wrap: wrap; column-gap: 24px; }
.prose .soffer button, .prose .soffer .sostate { font-style: normal; font-variant: small-caps; letter-spacing: .04em; color: var(--label2); }
.prose .soffer button { min-height: 44px; text-decoration: underline 1px; text-underline-offset: .2em; }
.prose .soffer button.sobuy { color: var(--accent-text); font-weight: 600; }
.prose .soffer button:hover { text-decoration-thickness: 2px; }
.prose .soffer button[aria-disabled="true"] { opacity: .5; cursor: default; }
.kboxes { display: flex; flex-direction: column; gap: 8px; }
.kbox { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-row); font: 15px/1.4 var(--font); color: var(--label);
  background: color-mix(in srgb, var(--kc, var(--fill)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--kc, var(--glass-edge)) 55%, transparent); }
.kbox svg { flex: none; margin-top: .15em; color: color-mix(in srgb, var(--kc, var(--accent)) 70%, var(--label)); }
.kbox p b { font-weight: 600; }
/* A story card (page.js storyCard; story.js kit folds): one line in the story's flow that opens downward. */
.scard { border-radius: var(--r-row); font: 15px/1.4 var(--font); color: var(--label);
  background: color-mix(in srgb, var(--kc, var(--fill)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--kc, var(--glass-edge)) 45%, transparent); }
.scard > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; cursor: pointer; list-style: none; }
.scard > summary::-webkit-details-marker { display: none; }
.scard > summary .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard > summary > .i { flex: none; color: color-mix(in srgb, var(--kc, var(--accent)) 70%, var(--label)); }
.scard > summary > .i:last-child { width: 16px; height: 16px; color: var(--label2); transition: transform .2s; }
.scard[open] > summary > .i:last-child { transform: rotate(180deg); }
.scard > :not(summary) { padding: 0 12px 12px; }
.scard .kbox { background: none; border: 0; padding: 4px 0; }
.scardbody { display: flex; flex-direction: column; gap: 8px; }
.scardbody .row { display: flex; flex-wrap: wrap; gap: 8px; }
/* A card's tiny picture on its one line (inlinecards.js, page.js): rounded, never taller than the line. */
.scard .sthumb { flex: none; width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--fill2); }
.scard .thumbslot:empty { display: none; }
.scard .sthumb.sfrom { display: inline-block; width: 24px; height: 24px; border-radius: 50%; margin-right: 8px; vertical-align: -6px; }
.scard .kfact { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--label2); }
.scard .kfact b { color: var(--label); font-weight: 600; }
.scard .kfact meter { flex: 1; max-width: 120px; }
@media (min-width: 1100px) { .storycol > .partyfold { display: none; } }
/* Where you are (whereami.js): the place's picture, its map without its own heading, the Book's places. */
.wheresheet .wherename { margin: 0; }
.wheresheet .wherepic img { display: block; width: 100%; max-height: calc(30vh / var(--size, 1)); object-fit: cover; border-radius: var(--r-card); }
.wheresheet .wherepic:empty, .wheresheet .mapname { display: none; }
/* The story's past, pulled up above the live scene (pullup.js): a little aged, so it reads as what already happened. */
.pastwrap > .earlier { align-self: center; }
.past .prose { --past: #C9A66B; background: color-mix(in srgb, var(--past) 12%, var(--surface2)); filter: sepia(.35) saturate(.85); }
.past:not(:empty)::after { content: "Now"; align-self: center; font: 600 12px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--label2); }
/* The pen at work (page.js): a soft ink caret after the newest words while they write in, gone once written, and
   still, never blinking, with Reduce Motion. A tap on the page writes the rest at once (page.js skippable). */
.prose.penning .writ:last-of-type > :last-child::after { content: ""; display: inline-block; width: .5em; height: .1em; margin-left: .15em; border-radius: 1px; background: var(--accent-text); animation: inkcaret 1s ease-in-out infinite; }
@keyframes inkcaret { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .prose.penning .writ:last-of-type > :last-child::after { animation: none; } }
/* A speaker's tiny face at the start of their line (storyfaces.js): their portrait or their initial on their colour
   (--c), a ring in their mood's colour, and how hurt they are as a mild mark (scratched, bruised, a little bloody; greyed
   when down), never gore. The line being read aloud rings its face in the accent. */
.sface { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; vertical-align: -6px; border-radius: 50%; overflow: hidden;
  background: color-mix(in srgb, var(--c, var(--accent)) 55%, var(--surface2)); color: var(--label); font: 600 13px/1 var(--font); font-style: normal; }
.sface img { width: 100%; height: 100%; object-fit: cover; }
.sface::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.sface[data-hurt="1"]::after { background: linear-gradient(135deg, transparent 46%, rgba(160, 40, 40, .5) 48%, transparent 51%); }
.sface[data-hurt="2"]::after { background: radial-gradient(circle at 70% 36%, rgba(96, 64, 140, .45) 0 16%, transparent 28%), linear-gradient(135deg, transparent 46%, rgba(160, 40, 40, .5) 48%, transparent 51%); }
.sface[data-hurt="3"]::after { background: radial-gradient(circle at 30% 30%, rgba(165, 30, 30, .55) 0 9%, transparent 15%), radial-gradient(circle at 66% 62%, rgba(165, 30, 30, .4) 0 7%, transparent 13%), radial-gradient(circle at 70% 36%, rgba(96, 64, 140, .45) 0 16%, transparent 28%); }
.sface[data-hurt="4"] { filter: grayscale(1); opacity: .6; }
.sface[data-mood="happy"] { box-shadow: 0 0 0 2px #F5CF5C; }
.sface[data-mood="sad"] { box-shadow: 0 0 0 2px #8AB8FF; }
.sface[data-mood="angry"] { box-shadow: 0 0 0 2px #FF8B73; }
.sface[data-mood="scared"] { box-shadow: 0 0 0 2px #B9A2F0; }
.prose .reading .sface { outline: 2px solid var(--accent); outline-offset: 1px; }
/* What changed hands in the Narrator's beats (storyfaces.js dressBeats): a small chip after its paragraph, its icon in
   the glyph colour. */
/* A say beat as a line of a script (storyfaces.js scriptLines): the speaker's face, their name in bold above their words;
   more lines in a row by the same speaker sit under the first, without the face and name again. */
.prose .sayline { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .75rem; align-items: start; }
.prose .sayline > .sface, .prose .sayline > .sfacebtn { grid-row: span 2; }
.prose .sayline .sface { width: 2.25rem; height: 2.25rem; margin: .125rem 0 0; vertical-align: 0; font-size: 1rem; }
.prose .sayline > .sfacebtn { position: relative; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.prose .sayline > .sfacebtn::after { content: ""; position: absolute; inset: -.25rem; } /* a 44px hit area, drawn at 36px */
.prose .sayline > .sname { grid-column: 2; font: 600 .875rem/1.4 var(--font); color: var(--label); }
.prose .sayline > .sline { grid-column: 2; }
.prose .sayline.more { margin-top: -.5rem; }
/* A story person's sheet, from a tap on their face (personsheet.js). */
.persheet .pface { display: inline-flex; align-items: center; justify-content: center; width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; background: var(--fill2); color: var(--label); font: 600 2rem/1 var(--font); }
.persheet .pname { margin: 0; font: 600 1.25rem/1.3 var(--display); color: var(--label); }
.bchips { margin: 4px 0 12px; }
.bchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--fill2); color: var(--label2); font: 500 14px/1.3 var(--font); }
.bchip svg { width: 16px; height: 16px; color: var(--accent-glyph); }
/* A player's own line shows their character's face big enough to see (Vincent, Nov 9: "i dont even see my player
   character face"): 44px beside the move, the words wrapping round it. */
.prose .you { display: flow-root; }
.prose .you > .sface { float: left; width: 44px; height: 44px; margin: 0 12px 4px 0; vertical-align: 0; font-size: 17px; }
/* The scene behind the story (scene.js): over the person's own painting (it is the screen's own fixed layer, after
   .look), the place's picture or drawing cross-fading to the next place, dimmed into the palette's ground so the words
   always read; its colours are scene.js's stylesheet. Hidden while "Use my theme in stories" is on. */
.storyscene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
.storyscene .slayer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; }
.storyscene .slayer.on { opacity: 1; }
.storyscene.still .slayer { transition: none; }
.storyscene .slayer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Each kind of place's own wallpaper, made here in its palette (no picture needed): where its light falls. */
.storyscene .slayer { --glow: color-mix(in srgb, var(--accent) 42%, transparent); --deep: color-mix(in srgb, var(--accent) 12%, var(--bg));
  background: radial-gradient(120% 70% at 50% 18%, var(--glow), transparent 60%), linear-gradient(var(--deep), var(--bg)); }
.storyscene .slayer[data-family="hearth"] { background: radial-gradient(90% 60% at 50% 100%, var(--glow), transparent 65%), linear-gradient(var(--bg), var(--deep)); }
.storyscene .slayer[data-family="deep"] { background: radial-gradient(60% 40% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(140% 100% at 50% 50%, transparent 40%, var(--bg) 85%), var(--deep); }
.storyscene .slayer[data-family="sacred"] { background: linear-gradient(100deg, transparent 38%, var(--glow) 50%, transparent 62%), linear-gradient(var(--deep), var(--bg)); }
.storyscene .slayer[data-family="grave"] { background: radial-gradient(18% 14% at 78% 16%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%), radial-gradient(90% 50% at 78% 16%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), linear-gradient(var(--deep), var(--bg) 70%); }
.storyscene .slayer:is([data-family="green"], [data-family="wild"]) { background: radial-gradient(100% 50% at 30% 0%, var(--glow), transparent 60%), linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 62%), linear-gradient(var(--deep), var(--bg)); }
.storyscene .slayer[data-family="water"] { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 20%, var(--bg)) 55%, var(--bg)), radial-gradient(80% 40% at 50% 55%, var(--glow), transparent 70%), linear-gradient(var(--deep), var(--bg)); }
.storyscene .slayer[data-family="city"] { background: repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in srgb, var(--accent) 10%, transparent) 46px 60px), radial-gradient(100% 60% at 50% 100%, var(--glow), transparent 70%), var(--bg); }
.storyscene .slayer[data-family="office"] { background: repeating-linear-gradient(0deg, transparent 0 63px, color-mix(in srgb, var(--accent) 8%, transparent) 63px 64px), repeating-linear-gradient(90deg, transparent 0 63px, color-mix(in srgb, var(--accent) 8%, transparent) 63px 64px), linear-gradient(var(--deep), var(--bg)); }
.storyscene .slayer[data-family="ship"] { background: radial-gradient(1px 1px at 20% 30%, var(--accent), transparent), radial-gradient(1px 1px at 70% 20%, var(--accent), transparent), radial-gradient(1.5px 1.5px at 40% 70%, var(--accent), transparent), radial-gradient(1px 1px at 85% 60%, var(--accent), transparent), radial-gradient(100% 80% at 50% 50%, var(--deep), var(--bg)); }
.storyscene .slayer[data-family="dry"] { background: radial-gradient(40% 25% at 50% 70%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%), linear-gradient(var(--deep) 0 68%, color-mix(in srgb, var(--accent) 18%, var(--bg)) 68%); }
/* Rain over a place outdoors: still streaks (never falling, so nothing moves under the words). */
.storyscene .srain { position: absolute; inset: 0; opacity: .35; background: repeating-linear-gradient(105deg, transparent 0 9px, color-mix(in srgb, var(--label) 30%, transparent) 9px 10px); }
.storyscene .srain.storm { opacity: .5; }
/* Immersion up (Vincent, Nov 8: "story immersion upppp"): a light dim, 25% to 35% of the ground, and the story's cards at
   78% (scene.js paletteCss --surface, --surface2), so the place reads through; the words still read at 4.5:1 over a white
   picture in every palette (story-scene.test.js). */
.storyscene .sdim { position: absolute; inset: 0; background: linear-gradient(color-mix(in srgb, var(--bg) 25%, transparent), color-mix(in srgb, var(--bg) 35%, transparent)); }
/* With the place showing through, what lies straight on the picture gets a backing: the one-line cards their tint over the
   card surface, Earlier the labels' backing (as the AI line has), so they read over a bright picture too. */
body:has(#screen > .storyscene:not([hidden])) .scard { background: color-mix(in srgb, var(--kc, var(--fill)) 12%, var(--surface)); }
body:has(#screen > .storyscene:not([hidden])) .pastwrap > .earlier { background: var(--label-back); }
body:has(#screen > .storyscene:not([hidden])) .look { visibility: hidden; }
/* A story keeps its own palette (the walkthrough's gold is the app's, not the story's): its row details, chips and their edges as before. */
body:has(#screen > .storyscene:not([hidden])) { --label-detail: var(--label2-on); --chip-text: var(--label); --chip-tint: transparent; --chip-edge: var(--card-edge); }
body:has(#screen > .storyscene:not([hidden])) :is(.prose, .scard, .pending .move, .turn, .card, .composer) { transition: background-color 1.2s, color 1.2s, border-color 1.2s; }
@media (prefers-reduced-motion: reduce) { .storyscene .slayer, body:has(#screen > .storyscene:not([hidden])) :is(.prose, .scard, .pending .move, .turn, .card, .composer) { transition: none; } }
/* Opening a story (storyload.js): the story under its own veil, in the scene's colours, until it's all there. */
#screen.storyloading > :not(.storyveil, .sr) { visibility: hidden; }
.storyveil { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .875rem; padding: 1.5rem 1rem; text-align: center; background: var(--bg); color: var(--label); transition: opacity .45s ease-out; }
.storyveil.out { opacity: 0; pointer-events: none; }
.storyveil .vtitle { margin: 0; max-width: 32rem; font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1.2; opacity: 0; animation: veilin .6s .25s ease-out forwards; }
.storyveil .vbar { width: min(14rem, calc(60vw / var(--size, 1))); height: 2px; border-radius: 1px; background: var(--sep); overflow: hidden; opacity: 0; animation: veilin .6s .4s ease-out forwards; }
.storyveil .vbar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--done, 0)); transition: transform .3s ease-out; }
.storyveil .vline { margin: 0; min-height: 1.4em; font-size: .875rem; color: var(--label2); opacity: 0; animation: veilin .6s .4s ease-out forwards; }
@keyframes veilin { to { opacity: 1; } }
/* The Narrator's words coming in, in the story's way (wordfx.js, the page's data-wfx): ink bleeding in, a soft rise, a
   flicker, a steady fade. Only opacity, transform and a glow: nothing moves the lines around them. */
.prose .wfx { animation: wfx-fade .5s ease-out both; }
.prose[data-wfx="ink"] .wfx { animation: wfx-ink .9s ease-out both; }
.prose[data-wfx="rise"] .wfx { display: inline-block; animation: wfx-rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.prose[data-wfx="flicker"] .wfx { animation: wfx-flicker .45s steps(1, end) both; }
@keyframes wfx-fade { from { opacity: 0; } }
@keyframes wfx-ink { from { opacity: 0; color: transparent; text-shadow: 0 0 .5em var(--accent-text); } 55% { opacity: .9; text-shadow: 0 0 .2em var(--accent-text); } }
@keyframes wfx-rise { from { opacity: 0; transform: translateY(.4em); } }
@keyframes wfx-flicker { 0% { opacity: 0; } 20% { opacity: .9; } 35% { opacity: .15; } 55% { opacity: 1; } 70% { opacity: .5; } 85% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .storyveil, .storyveil .vbar span { transition: none; } .storyveil :is(.vtitle, .vbar, .vline) { animation: none; opacity: 1; } .prose .wfx { animation: none; } }
.pending { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pending:empty { display: none; }
.pending .move { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 6px 6px 14px; border-radius: var(--r-row); background: var(--surface2);
  font-family: var(--prose); font-size: 18px; font-style: italic; color: var(--label); --label2: var(--label2-on); }
.pending .move b { font: 650 13px/1.4 var(--font); color: var(--accent-text); }
.pending .move .more { margin-left: auto; width: 44px; height: 44px; }
.pending > .muted, .endnote { color: var(--label); padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); }
.pending .dots { display: flex; gap: 6px; padding: 10px 14px; border-radius: var(--pill); background: var(--surface2); --label2: var(--label2-on); }
.turnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.turnrow .turn { color: var(--label); padding: 6px 12px; border-radius: var(--pill); background: var(--label-back); }
.ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 880px; margin-bottom: 4px; }
.ideas:empty { display: none; }
.ideas .pill { padding: 6px 14px; min-height: 44px; text-align: left; line-height: 1.25; background: var(--raised); }
.hpslot:empty { display: none; }
.hpline { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); color: var(--label); font-size: 15px; }
.hpline meter { width: 96px; height: 8px; accent-color: var(--accent); }
.composer .plus { position: relative; flex: none; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; }
.composer .plus .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; min-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.endcard { align-items: flex-start; gap: 12px; }
.topbar .mid.tpill { height: auto; min-height: 44px; padding: 4px 18px; flex-direction: column; justify-content: center; gap: 0; line-height: 1.25; }
.tpill > span { max-width: 100%; }
.tpill .twhere { font-size: 13px; font-weight: 500; color: var(--label2); }
.party .item .initial, .partyfold .item .initial, .settingsheet .item .initial { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 15px; }
:is(.party, .partyfold) .item .initial img { width: 100%; height: 100%; object-fit: cover; } /* a seat's character portrait (storyparts.js seatRows) */
/* Your character and Story settings (web/library/character.js, settings.js): sheets of short parts. Every colour a token
   of both looks, every size in px (the text size scales it), every control 44px or more. */
.spart { gap: 8px; }
.charhead .face { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 22px; }
.charhead .face img { width: 100%; height: 100%; object-fit: cover; }
/* A character's own page: their picture, big, at the top (makecharacter.js bigFace), on phone and laptop alike. */
.charpic { width: min(calc(64vw / var(--size, 1)), 18rem); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none;
  background: var(--tint); color: var(--accent-glyph); font: 700 4rem/1 var(--display); }
.charpic img { width: 100%; height: 100%; object-fit: cover; }
.charhead .grow b { display: block; font-size: 18px; font-weight: 600; }
.charhead .grow span { display: block; }
.charsheet .fld, .switchform .fld { display: flex; flex-direction: column; gap: 4px; }
.switchform .fld > span { font-size: 15px; color: var(--label2); }
.charsheet .fld meter { width: 100%; height: 8px; accent-color: var(--accent); }
.charsheet .hpline { align-self: flex-start; }
p.purse { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--label); }
.charsheet .say, .settingsheet .say { margin: 0; font-size: 15px; color: var(--label); }
.settingsheet .chip.host { flex: none; }
.settingsheet .btn.quiet.danger { justify-content: flex-start; padding: 0 4px; }
.linkline { margin: 0; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.recapcard .writ { font-family: var(--prose); font-size: 18px; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; }
.histrow { width: 100%; text-align: left; color: var(--label); }
.histrow[aria-expanded="true"] svg { transform: rotate(90deg); }
.history .hpage { display: flex; flex-direction: column; gap: 6px; }
.prose.hprose { font-size: 18px; padding: 16px; }
.prose.hprose .hpic { margin: 4px 0 10px; } /* a picture the table drew of this moment, after its writing (history.js) */
/* The way into a table (web/library/link.js, room.js, invite.js, join.js): the link's box lays its parts out in the
   part it sits in (Story settings' gaps stay as they were), the room's card of choices (the forms' .cform fields), a
   public room's code, the friend picker's rows and Join's card. Every colour a token of both looks, every size in px
   (the text size scales it), no text in a box of fixed height, every control 44px or more. */
.linkbox { display: contents; }
.roomcard .roomnote { margin: 0; }
.codebox { gap: 6px; }
.codebox .row { flex-wrap: wrap; gap: 8px 12px; }
.codebox .label { padding: 0; }
.codebox .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .12em; color: var(--label); }
.codebox .say { margin: 0; font-size: 15px; color: var(--label); }
.codebox .say:empty { margin-top: -6px; } /* in the page for a screen reader, no gap of its own */
.frrow { flex-wrap: wrap; }
.frrow > .grow { flex: 1 1 160px; }
.frrow .grow small { display: block; font-size: 13px; color: var(--label2); }
.frrow .grow small.cant { color: var(--bad-text); }
.frrow > span:last-child { margin-left: auto; flex: none; display: inline-flex; align-items: center; min-height: 44px; }
.frrow .initial, .joincard .initial { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 15px; }
.frrow .initial img, .joincard .initial img { width: 100%; height: 100%; object-fit: cover; }
.joincard { gap: 10px; }
.joincard > .label { align-self: flex-start; padding: 0; color: var(--accent-text); }
.joincard h1 { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--label); }
.joincard .smeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--label2); }
.joincard > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.joincard > .say:empty { margin-top: -10px; } /* in the page for a screen reader, no gap of its own */
/* Friends (web/library/friends.js, friendlink.js; plan 4c Task 4): the You card and each list on glass, a row a person
   (their face, a green ring while they're here, their name and its line, wrapping under at a large text size) with
   Join, Open, Full or the chevron at its end; Find people as one slim bar with its words under it. Every colour a token
   of both looks, every size in px (the text size scales it), no text in a box of fixed height, every control 44px or
   more. */
.frlist { display: flex; flex-direction: column; padding: 4px 16px; }
.frlist > .frrow, .youcard.frrow { display: flex; align-items: center; gap: 8px 12px; min-height: 56px; padding: 8px 0; }
.frlist > .frrow + .frrow { border-top: 1px solid var(--sep); }
.youcard.frrow { padding: 8px 16px; }
.frlist .frwho, .youcard .frwho { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; color: var(--label); }
.frlist .frwho b, .youcard .frwho b { font-weight: 600; overflow-wrap: anywhere; }
.frlist .frwho small, .youcard .frwho small { overflow-wrap: anywhere; }
.frlist .frwho small.on { color: var(--ok-text); }
.frlist .initial.live { box-shadow: 0 0 0 2px var(--ok); }
.frlist .ubadges, .youcard .ubadges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.frlist .go { min-width: 24px; justify-content: center; color: var(--label3); }
.frlist .btn, .youcard .btn { min-height: 44px; }
form.youcard .muted { margin: 0; }
form.youcard > .say, .frname > .say, .joinpick > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
form.youcard > .say:empty, .frname > .say:empty { margin-top: -10px; } /* in the page for a screen reader, no gap of its own */
.friends .lrow > .morebtn { padding: 0 12px; border-radius: var(--pill); background: var(--label-back); }
.findrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.findrow input { flex: 1 1 200px; min-width: 0; min-height: 46px; padding: 0 16px; border-radius: var(--pill); font: inherit; color: var(--label); background: var(--surface2); border: 1px solid var(--glass-edge); --label2: var(--label2-on); }
.findrow input::placeholder { color: var(--placeholder); }
.findrow .say { flex: 1 0 100%; margin: 0; padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); color: var(--label); font-size: 15px; }
.findrow .say:empty { padding: 0; background: none; margin-top: -8px; } /* in the page for a screen reader, no gap of its own */
.findrow + .say { align-self: flex-start; margin: 0; padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); color: var(--label); font-size: 15px; }
.findrow + .say:empty { padding: 0; background: none; margin-top: -8px; }
/* A profile (web/library/profile.js, profileparts.js; plan 4c Task 6): Your view / See it as others do as a segmented
   pair, the preview's line on its own backing, then one glass card for who they are (a large face, a green ring while
   they're here, the name as the screen's title, @username, badges and the line wrapping under), the three counts and what
   you can do (buttons and chips that wrap at a large text size, the screen's answers under them); their shelves as Play's
   glass cards, a sheet's book a button the width of the shelf. Every colour a token of both looks, every size in px
   (the text size scales it), no text in a box of fixed height, every control 44px or more. */
.profile .ptoggle { align-self: stretch; }
.profile .ptoggle button { min-height: 44px; }
.profile .lplay > p.muted { align-self: flex-start; margin: 0; padding: 4px 12px; border-radius: var(--r-row); background: var(--label-back); color: var(--label); font-size: 15px; }
.profile .ptop { gap: 14px; }
.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.phead .initial { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 30px; }
.phead .initial img { width: 100%; height: 100%; object-fit: cover; }
.phead .initial.live { box-shadow: 0 0 0 3px var(--ok); }
.phead .pwho { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.phead h1 { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }
.phead .pwho > .muted { font-size: 15px; overflow-wrap: anywhere; }
.phead .pwho small { font-size: 13px; overflow-wrap: anywhere; }
.phead .ubadges, .set .ubadges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pstats { display: flex; flex-wrap: wrap; gap: 8px; }
.pstats .stat { flex: 1 1 80px; display: flex; flex-direction: column; align-items: center; padding: 8px 10px; border-radius: var(--r-row); background: var(--fill); border-left: 0; } /* chips, not Home's hairline-split numbers (.stat + .stat) */
.pstats .stat b { font-size: 22px; font-weight: 700; color: var(--label); }
.pstats .stat small { font-size: 13px; color: var(--label2); }
.pacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pacts .btn { min-height: 44px; max-width: 100%; white-space: normal; text-align: left; }
.pacts .btn[disabled] { opacity: .55; cursor: default; }
.pacts .pfriends { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--pill); background: var(--tint); color: var(--accent-text); font-size: 15px; font-weight: 600; }
.pacts > .muted { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.ptop > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.ptop > .say:empty { margin-top: -14px; } /* in the page for a screen reader, no gap of its own */
.profile button.book { width: 100%; text-align: left; color: var(--label); }
.profile .shelfkind > .label { padding: 2px 12px; align-self: flex-start; border-radius: var(--pill); background: var(--label-back); }
.pbook { gap: 12px; }
.pbook .pbookhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pbook .pbookhead .label { padding: 0; color: var(--accent-text); }
.pbook .pbookhead .muted { font-size: 15px; }
.pbook .pcf { display: flex; flex-direction: column; gap: 2px; }
.pbook .pcf .label { padding: 0; color: var(--label2); }
.pbook .pcf p { margin: 0; color: var(--label); overflow-wrap: anywhere; }
.pbook .btn { min-height: 44px; }
.pbook .center { text-align: center; }
.pbook > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.pbook > .say:empty { margin-top: -12px; } /* in the page for a screen reader, no gap of its own */
/* A friend on their profile (web/library/friendpart.js, editprofile.js; plan 4c Task 7): what Harrox remembers as one
   glass card, each game a .mem row (its name a link to the game, its line wrapping under, the x to take it off the list
   at its end, 44px square); Remove or block folded at the bottom, its summary 44px with the fold's cue; the blocked
   sheet's and Edit profile's buttons the width of the sheet. Every colour a token of both looks, every size in px (the
   text size scales it), no text in a box of fixed height, every control 44px or more. */
.memcard { gap: 8px; }
.memcard > h2.label { justify-content: flex-start; gap: 6px; padding: 0; color: var(--label); }
.memcard > h2.label .i { width: 16px; height: 16px; color: var(--accent-glyph); }
.memcard > small { font-size: 13px; overflow-wrap: anywhere; }
.memlist > p.muted { margin: 0; }
.memcard > .say, .pdanger .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.memcard > .say:empty, .pdanger .say:empty { margin-top: -8px; } /* in the page for a screen reader, no gap of its own */
.mem { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: var(--r-ctl); background: var(--fill); }
.mem > .grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
.mem a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--label); text-decoration: none; overflow-wrap: anywhere; }
.mem small { display: block; padding-bottom: 6px; font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.mem .memoff { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--label2); cursor: pointer; }
.mem .memoff .i { width: 16px; height: 16px; }
.mem .memoff[aria-disabled="true"] { opacity: .55; }
.pdanger > summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--label); cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.pdanger > summary::-webkit-details-marker { display: none; }
.pdanger > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin: 0 6px 0 auto; border-right: 2px solid var(--label2); border-bottom: 2px solid var(--label2); transform: rotate(45deg); }
.pdanger[open] > summary::after { transform: rotate(-135deg); } /* the cue: down while folded, up while open */
.pdanger[open] > summary { margin-bottom: 8px; }
.pdanger .btn { min-height: 44px; }
.pdanger p.muted { margin: 0; }
.blocked .btn, .pedit .btn { min-height: 44px; }
.blocked > .title { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.blocked > .title .i { flex: none; width: 20px; height: 20px; color: var(--accent-glyph); }
.blocked > .say, .peditform > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.blocked > .say:empty, .peditform > .say:empty { margin-top: -12px; } /* in the page for a screen reader, no gap of its own */
/* Messages (web/library/messages.js, thread.js; plan 4c Task 8): the list's rows are links (the face, the name, the
   newest line, bold while unread, then when and the unread count, Closed or Blocked down the end); a conversation is a
   column of bubbles, theirs on the left with a 44px flag, yours on the right, a time pill after a long gap, the closed
   line on glass where the box was, with words that weren't sent above it; the title pill holds their face; More's line
   sits under its rows. Every colour a token of both looks, every size in px (the text size scales it), no text in a box
   of fixed height, every control 44px or more. */
.frlist > a.frrow { color: var(--label); text-decoration: none; }
.frlist > a.frrow > .grow b { font-weight: 600; overflow-wrap: anywhere; }
.frlist > a.frrow > .grow { min-width: 0; }
.frlist > a.frrow > .grow small { display: block; overflow-wrap: anywhere; } /* the name over its line, in the list and New message */
.frrow .grow small.dmnew { color: var(--label); font-weight: 600; }
.frlist > a.frrow > .dmside { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; }
.frlist > a.frrow > .dmside small { font-size: 13px; color: var(--label2); }
.dmcount { display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding: 2px 7px; border-radius: var(--r-cover); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; font-style: normal; line-height: 1.3; }
.dmpick .frlist { padding: 0 4px; }
.dmpick .btn { min-height: 44px; }
.dmscreen { gap: 10px; }
.dmscreen .dmearlier { align-self: center; padding: 0 14px; border-radius: var(--pill); background: var(--label-back); }
.dmlist { display: flex; flex-direction: column; gap: 8px; }
.dmmsg { align-self: flex-start; display: flex; align-items: center; gap: 2px; max-width: 92%; }
.dmmsg.mine { align-self: flex-end; }
.dmmsg > .talkmsg { max-width: none; min-width: 0; }
.dmtime { align-self: center; margin: 8px 0 0; padding: 2px 10px; border-radius: var(--pill); background: var(--label-back); color: var(--label2); font-size: 13px; }
.dmflag { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--label2); cursor: pointer; }
.dmflag .i { width: 16px; height: 16px; }
.dmflagged { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; color: var(--label2); }
.dmhint { align-self: center; margin: 8px 0; padding: 4px 12px; border-radius: var(--r-row); background: var(--label-back); text-align: center; overflow-wrap: anywhere; }
.dmhint[hidden] { display: none; }
.dmnote { gap: 6px; }
.dmnote p { margin: 0; overflow-wrap: anywhere; }
.dmkept { margin: 0; padding: 8px 12px; border-radius: var(--r-row); background: var(--fill); color: var(--label); font-size: 15px; overflow-wrap: anywhere; }
.dmscreen > .say { align-self: flex-start; margin: 0; padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); color: var(--label); font-size: 15px; overflow-wrap: anywhere; }
.dmscreen > .say:empty { padding: 0; background: none; margin-top: -10px; } /* in the page for a screen reader, no gap of its own */
.topbar .mid.dmwho { padding: 0 16px 0 6px; color: var(--label); text-decoration: none; }
.dmwho .initial { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 15px; }
.dmwho .initial img { width: 100%; height: 100%; object-fit: cover; }
.dmwho .initial.live { box-shadow: 0 0 0 2px var(--ok); }
.ctx .menunote { width: 250px; margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--glass-dense); border: 1px solid var(--glass-edge); color: var(--label2); font-size: 13px; overflow-wrap: anywhere; }
.dmreport .fld { display: flex; flex-direction: column; gap: 6px; }
.dmreport .fld > span { font-size: 15px; font-weight: 600; color: var(--label); }
.dmreport textarea { width: 100%; padding: 10px 14px; font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); resize: vertical; }
.dmreport .btn, .dmthanks .btn { min-height: 44px; }
.dmreport > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.dmreport > .say:empty { margin-top: -12px; } /* in the page for a screen reader, no gap of its own */
.dmthanks > .title { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.dmthanks > .title .i { flex: none; width: 20px; height: 20px; color: var(--accent-glyph); }
/* Cards (web/library/cards.js; plan 4c Task 9): a card in the conversation is a button holding its mark (its picture,
   or its kind's icon on the tint) and its kind over its name over what it says, theirs on the left with the flag, yours
   on the right on the tint, one not shared any more quieter. The + sheet: the three kinds as a segmented row, each thing
   a row (one that can't go quiet, its reason under its name, not a button), Back, the thing picked on its own fill, Can
   copy and Can look as buttons the width of the sheet with each line under its name; Send to a friend's friends as
   rows. Every colour a token of both looks, every size in px (the text size scales it), no text in a box of fixed
   height, every control 44px or more. */
.dmcard { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 8px 14px 8px 8px; border-radius: var(--r-row); background: var(--surface2); color: var(--label); font: inherit; text-align: left; cursor: pointer; --label2: var(--label2-on); }
.dmmsg.mine .dmcard { background: var(--tint); }
.dmcard.off { opacity: .6; }
.dmcardtxt { display: flex; flex-direction: column; min-width: 0; }
.dmcardtxt b { font-weight: 600; overflow-wrap: anywhere; }
.dmcardtxt small { font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.dmthumb { flex: none; width: 40px; height: 40px; border-radius: var(--r-ctl); display: grid; place-items: center; overflow: hidden; background: var(--tint); color: var(--accent-glyph); }
.dmthumb img { width: 100%; height: 100%; object-fit: cover; }
.dmthumb .i { width: 20px; height: 20px; }
.dmsend .dmkinds { align-self: stretch; }
.dmsend .dmkinds button { min-height: 44px; }
.dmsend .frlist, .dmonward .frlist { padding: 0 4px; }
.dmsend .frlist > button.frrow, .dmonward .frlist > button.frrow { width: 100%; border: 0; background: none; color: var(--label); font: inherit; text-align: left; cursor: pointer; }
.dmsend .frlist > button.frrow[aria-disabled="true"], .dmonward .frlist > button.frrow[aria-disabled="true"] { opacity: .55; }
.dmsend .frlist > .frrow.off { color: var(--label2); }
.dmsend .frrow .grow b, .dmonward .frrow .grow b { font-weight: 600; overflow-wrap: anywhere; }
.dmsend .frrow .grow small, .dmonward .frrow .grow small { overflow-wrap: anywhere; }
.dmonward .frrow .grow small.on { color: var(--ok-text); }
.dmsend .dmback { align-self: flex-start; }
.dmchosen { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-row); background: var(--fill); }
.dmchosen .grow { min-width: 0; }
.dmchosen b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.dmchosen small { display: block; font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.dmallow .dmopt { display: flex; align-items: center; gap: 10px; min-height: 56px; text-align: left; white-space: normal; }
.dmopt .grow { display: flex; flex-direction: column; min-width: 0; }
.dmopt small { font-size: 13px; font-weight: 400; opacity: .85; overflow-wrap: anywhere; }
.dmallow .btn[aria-disabled="true"], .dmsend .btn[aria-disabled="true"] { opacity: .55; }
.dmsend .btn, .dmonward .btn, .dmgone .btn { min-height: 44px; }
.dmsend .title, .dmonward > .title, .dmgone > .title { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.dmsend .title .i, .dmonward > .title .i, .dmgone > .title .i { flex: none; width: 20px; height: 20px; color: var(--accent-glyph); }
.dmsend > .say, .dmonward > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.dmsend > .say:empty, .dmonward > .say:empty { margin-top: -12px; } /* in the page for a screen reader, no gap of its own */
/* The Inbox (web/library/inbox.js, inboxpart.js; plan 4c Task 5): the tray is a .circ with its .badge; the sheet's
   Messages row first, then each thing on a quiet card (its face, its name with its line wrapping under, then when and its
   buttons on a line of their own that wraps at a large text size), an accent edge and dot on what's new, with the word
   "New" for a screen reader. Every colour a token of both looks, every size in px (the text size scales it), no text in a
   box of fixed height, every control 44px or more. */
.inboxsheet .inbox { gap: 10px; }
.inote { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--glass-edge); border-radius: 18px; background: var(--fill); }
.inote .initial { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 16px; }
.inote .initial img { width: 100%; height: 100%; object-fit: cover; }
.inote .initial.ghost { background: var(--fill2); color: var(--label2); }
.inote > .grow { min-width: 0; }
.inote b { font-weight: 650; color: var(--label); overflow-wrap: anywhere; }
.inote > .grow small { display: block; font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.inote .ubadges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.inote .rate { margin-top: 4px; }
.inote .rate.mature { color: var(--bad-text); }
/* A row's time is small words under who and what; its buttons sit side by side under all that with their full words, the
   main one last and primary, wrapping onto lines of their own on a narrow sheet (Payton's iPhone, 2026-11-02: inside
   the chat's round .acts, Not now and Accept overlapped). */
.inote > .grow small.when { margin-top: 2px; font-size: 12px; }
.inote .ibtns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.inote .ibtns > .btn { flex: 1 1 120px; min-height: 44px; white-space: normal; }
/* The settings sheets' buttons (recovery codes, two-step): a row that wraps, never the chat's round .acts. */
.sheetbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.sheetbtns > .btn { flex: 1 1 140px; }
.inote.new { border-color: var(--accent); }
.inote .newdot { display: inline-block; position: relative; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.inboxsheet .msgrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: var(--r-row); background: var(--fill); color: var(--label); }
.inboxsheet .msgrow b { font-weight: 600; }
.inboxsheet .msgrow .go { color: var(--label3); }
.inboxsheet > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.inboxsheet > .say:empty { margin-top: -10px; } /* in the page for a screen reader, no gap of its own */
/* Your party (web/library/party.js, partyjoin.js; plan 4c Task 10): Play with others and a member's sheet, one column.
   Who is in it is a row of faces that wraps: each a quiet card holding the face over "You" or the name and, each on a
   line of its own, "leader" in the accent and "away" or "left" quieter; a face here now has the green ring, one who
   left is faded. A friend you invited has a faded face, quieter words and a dashed edge, and is no button; Invite's face
   is a plus. Every
   colour a token of both looks, every size in px (the text size scales it), no text in a box of fixed height, every
   control 44px or more. */
.psheet .plead { margin: 0; }
.psheet > .chatslot { display: contents; } /* the party chat (library/partychat.js) shows and hides itself: its slot has no box, and no gap */
.psheet .btn.block, .joincard > .btn.block { white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; } /* a long story's name wraps */
.psheet > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.psheet > .say:empty { margin-top: -10px; } /* in the page for a screen reader, no gap of its own */
.pmembers { display: flex; flex-wrap: wrap; gap: 8px; }
.pmember { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; max-width: 132px; min-height: 44px; padding: 10px 8px; border-radius: var(--r-row); background: var(--fill); color: var(--label); font: inherit; text-align: center; }
button.pmember { cursor: pointer; }
.pmember .initial { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 17px; }
.pmember .initial img { width: 100%; height: 100%; object-fit: cover; }
.pmember .initial.live { box-shadow: 0 0 0 2px var(--ok); }
.pmember .initial.left { opacity: .55; }
.pmember .initial.ghost { background: var(--fill2); color: var(--label2); }
.pmember small { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.pmember small .role { color: var(--accent-text); font-weight: 600; }
.pmember small .away { color: var(--label2); }
.pmember.invited { border-style: dashed; background: none; color: var(--label2); } /* its words stay readable; its face fades */
.pmember.invited .initial { opacity: .6; }
.pchead { display: flex; align-items: center; gap: 12px; }
.pchead .initial { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 22px; }
.pchead .initial img { width: 100%; height: 100%; object-fit: cover; }
.pchead .initial.live { box-shadow: 0 0 0 3px var(--ok); }
.pchead .grow { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pchead small { font-size: 15px; color: var(--label2); overflow-wrap: anywhere; }
.pchead .ubadges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
/* Find a room (web/library/findroom.js; plan 4c Task 12): one column. The party's line with its icon; a room's code in
   Friends' find row (the code in the mono face); Narrow it down folded, its tags as the forms' tick pills; then the two
   lists, a room a row: the story's mark, its name over its line and its chips (the rating first, Mature in the bad
   colour beside its word), and Join, wrapping under at a large text size. Every colour a token of both looks, every size
   in px (the text size scales it), no text in a box of fixed height, every control 44px or more. */
.findroom .frparty { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.findroom .frparty .i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-glyph); }
.findroom .findrow input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }
.findroom .findrow input.mono::placeholder { font-family: inherit; letter-spacing: normal; }
.findroom .fld [role="group"] > label > input, .quickplay .fld [role="group"] > label > input { min-height: 0; padding: 0; } /* a tick box, not the forms' text box */
.findroom > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.findroom > .say:empty { margin-top: -16px; } /* in the page for a screen reader, no gap of its own */
.frlists { gap: 16px; }
.frlists > .muted { margin: 0; }
.frsec { gap: 4px; }
.frsec > p { margin: 0; }
.roomrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 56px; padding: 10px 0; }
.roomrow + .roomrow { border-top: 1px solid var(--sep); }
.roomrow > .cover { width: 44px; height: 56px; border-radius: var(--r-cover); flex: none; display: grid; place-items: center; color: var(--label); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 38%, transparent), var(--fill)); }
.roomrow > .grow { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.roomrow > .grow b { font-weight: 600; color: var(--label); overflow-wrap: anywhere; }
.roomrow > .grow small { font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.roomrow .rtags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.roomrow > .btn { margin-left: auto; flex: none; min-height: 44px; }
.roomrow > .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held: the party's move is out */
/* Quickplay (web/library/quickplay.js; plan 4c Task 13): Find a room's button, its name over its line, wrapping; the
   search's sheet: the line that pulses while it looks (a sweep, still under Reduce Motion: the whole line, faded), who
   else is looking in large words, the tags as chips, the time in figures that keep their width, and its buttons held
   while a send is out. Tokens of both looks, sizes in px (the text size scales them), every control 44px or more. */
.findroom .frquick { gap: 10px; white-space: normal; text-align: left; padding-top: 8px; padding-bottom: 8px; }
.findroom .frquick > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.findroom .frquick small { font-size: 13px; font-weight: 400; color: var(--label2); overflow-wrap: anywhere; }
.qspulse { position: relative; height: 4px; overflow: hidden; border-radius: 999px; background: var(--fill); }
.qspulse i { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.qspulse.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .qspulse i { animation: qsweep 1.8s ease-in-out infinite; } .qspulse.dot { animation: qsbeat 1.6s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .qspulse i { width: 100%; opacity: .55; } }
@keyframes qsweep { from { transform: translateX(-100%); } to { transform: translateX(265%); } }
@keyframes qsbeat { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.qsheet .qswait { margin: 0; font-size: 18px; font-weight: 600; color: var(--label); text-wrap: balance; overflow-wrap: anywhere; }
.qsheet .qstags .rtags { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.qsheet .qstags > p, .qsheet > p { margin: 0; }
.qssince { font-variant-numeric: tabular-nums; }
.qsheet .btn[aria-disabled="true"], .quickplay .btn[aria-disabled="true"], .qsnote .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.qsheet > .say, .quickplay > .say { font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.joincard > p.small { margin: 0; }
.startform .fld { display: flex; flex-direction: column; gap: 6px; }
.startform .fld > span { font-size: 15px; font-weight: 600; color: var(--label); }
.startform .fld small { font-size: 13px; color: var(--label2); }
.startform input[name="name"] { font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); min-height: 46px; padding: 0 14px; width: 100%; }
.startform input[name="name"]::placeholder { color: var(--placeholder); }
/* A story's lobby (web/library/lobby.js, lobbyparts.js): glass cards on the painting, its name over its story's line,
   the seats as rows (the face, who with the host's crown, as whom, then Ready and the host's buttons, wrapping under at
   a large text size), each free seat's face dashed, and the lobby's own buttons wrapping their words rather than
   running out. Every colour a token of both looks, every size in px (the text size scales it), every control 44px or
   more. */
.lobby { gap: 16px; }
.lobby .lobbytop { gap: 8px; }
.lobby .lobbytop .smeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.lobby .lobbytop h1 { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }
.lobby .lobbytop p { margin: 0; }
.lobby .heldnote { margin: 0; color: var(--label); }
.lobby .heldnote[hidden] { display: none; }
.lobby .seats { display: flex; flex-direction: column; }
.seat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--sep); font-size: 15px; }
.seat:first-child { border-top: 0; }
.seat > .grow { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.seat .who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--label); }
.seat .who b { font-weight: 600; overflow-wrap: anywhere; }
.seat .grow small { font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.seat .chip.host { color: var(--accent-text); background: var(--tint); }
.seat .initial { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 15px; }
.seat .initial img { width: 100%; height: 100%; object-fit: cover; }
.seat .seatend { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.seat .seatend small { font-size: 13px; color: var(--label2); }
.seat .seatend small.isready { color: var(--ok-text); font-weight: 600; }
.seat .seatend .btn { min-height: 44px; }
.seat.free .initial, .seat.dbseat.open .initial { background: none; border: 1px dashed var(--glass-edge); color: var(--label2); }
.lobby .btn.block { white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.lobby .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held: a start out, or Ready before a character */
.lobby .hpnote { display: flex; align-items: center; gap: 8px; margin: 0; padding: 2px 12px; align-self: flex-start; border-radius: var(--pill); background: var(--label-back); color: var(--label); }
.lobby .roomnote { margin: 0; padding: 12px 16px; border-radius: var(--r-card); background: var(--surface); color: var(--label); --label2: var(--label2-on); }
.lobby .lobbyway .fld > small { font-size: 13px; color: var(--label2); }
.lobby .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.lobby .say:empty { display: none; }
/* Bring something in (web/library/bringin.js): rows of what you have, a word chip for who plays them, 44px buttons that
   wrap under the name when there's no room, and what happened said at the sheet's foot, where it stays in view. */
.birow { flex-wrap: wrap; }
.birow .initial { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 15px; }
.birow > .grow { flex: 1 1 160px; min-width: 0; }
.birow .grow b, .pagepick .grow b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.birow .grow small, .pagepick .grow small { display: block; font-size: 13px; color: var(--label2); }
.biacts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.chip.pc { background: var(--tint); color: var(--accent-text); }
.chip.npc { background: var(--fill2); color: var(--label2); }
.bisheet .say { position: sticky; bottom: 0; margin: 0; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--surface2); color: var(--label); font-size: 15px; --label2: var(--label2-on); }
.bisheet .say:empty { display: none; }
/* The map (web/library/map.js, ruling 11): an 8-column grid of square cells, the solid ones shaded, each token a circle
   in its cell in its character's colour (colorFor's palette through data-css --c, the old token's), with dark initials
   that read on every one of them in both looks; yours ringed in the accent, the story's people in the label tone, the
   fallen greyed. No drawn art. */
.mapname { margin: 0; font-size: 18px; font-weight: 600; }
.mapgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; width: 100%; max-width: 420px; align-self: center; padding: 4px; border-radius: var(--r-ctl); background: var(--surface2); --label2: var(--label2-on); }
/* The squares wear the old map card's thumbnail colours: the floor a tint of the words, the solid ones hatched in the accent,
   so the room reads on the story's dark palettes too, where --fill is the ground's own colour and the floor vanished
   (Vincent, Nov 8: "the map is all weird"). */
.mapgrid .cell { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--label) 10%, transparent); }
.mapgrid .cell.solid { background: color-mix(in srgb, var(--label) 4%, transparent) repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--accent) 45%, transparent) 4px 6px); }
.mapgrid .token { z-index: 1; place-self: center; width: 66%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--c); color: rgba(20, 14, 10, .82); box-shadow: 0 0 0 2px var(--edge); font-size: 11px; font-weight: 700; line-height: 1; }
.mapgrid .token.me { box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--accent); }
.mapgrid .token.npc { box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--label2); }
.mapgrid .token.down { filter: grayscale(1); opacity: .55; }
.mapgrid .token img { width: 100%; height: 100%; object-fit: cover; }
.whereall { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--label); font-size: 15px; }

/* Office cards and lists */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cards .card .count { font-size: 32px; font-weight: 700; line-height: 1; }
.list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.list .item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--sep); font-size: 15px; }
.list .item:first-child { border-top: 0; }
.list .item .grow b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .item .grow span { font-size: 13px; color: var(--label2); display: block; }

/* Settings */
.settings .card h2 { display: flex; align-items: center; gap: 10px; }
.settings .item .val { color: var(--label2); font-size: 15px; }

/* Editing: the parts jiggle as the iPhone's do (a small wobble, each tile a little out of step with its neighbours: three
   phases), each with a remove badge and a grip; Done ends it. Calm enough to live with (Vincent, 2026-11-06: "there
   shaking a little too much"): under a degree, about two wobbles a second; a widget wobbles less, its corners being
   far from its middle. */
.part { position: relative; }
.editing .part { animation: jiggle .46s infinite ease-in-out; }
.editing .part:nth-child(3n+1) { animation-delay: -.15s; animation-duration: .5s; }
.editing .part:nth-child(3n+2) { animation-delay: -.31s; }
.editing .part:nth-child(3n) { animation-delay: -.08s; animation-duration: .42s; }
.homegrid.editing > .part:not(.icon) { --wob: .3deg; }
/* Held still (Calm, Reduce Motion), a part shows it's being edited by a soft ring in its own rounded shape, never dashes
   (Vincent, 2026-11-08: "more rounded less lines"): the accent at half strength, a little off the part. */
[data-motion="calm"] .editing .part { animation: none; outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }
.editing .part { border-radius: var(--r-card); }
.editing .part.icon { border-radius: calc(var(--r-icon) + 6px); }
.editing .part .rm { position: absolute; top: -6px; left: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--bad); color: var(--on-bad); display: grid; place-items: center; z-index: 2; box-shadow: var(--glass-shadow); }
.editing .part .grip { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--label3); }
.part .rm, .part .grip { display: none; } .editing .part .rm, .editing .part .grip { display: grid; }
/* The badge stays small to the eye; its target reaches 44px all round. */
.editing .part .rm::before { content: ""; position: absolute; inset: -9px; }
/* Move up and Move down (edit.js), beside the grip: the drag's single-tap twin, for a keyboard and a screen reader. */
.part .moves { display: none; }
.editing .part .moves { display: flex; gap: 2px; position: absolute; top: 50%; right: 44px; transform: translateY(-50%); z-index: 2; }
.part .mv { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--label2); }
/* A grip's drag is the part's, never the page's scroll; a swipeable row (menu.js swipeActions) scrolls up and down but
   keeps sideways for its swipe. */
.grip { touch-action: none; }
.swipeable { touch-action: pan-y; }
.addpart { border: 1px dashed var(--glass-edge); background: none; box-shadow: none; justify-content: center; color: var(--accent-text); font-weight: 600; min-height: 52px; }
@keyframes jiggle { 0% { transform: rotate(calc(var(--wob, .7deg) * -1)) translateY(.3px); } 50% { transform: rotate(var(--wob, .7deg)) translateY(-.3px); } 100% { transform: rotate(calc(var(--wob, .7deg) * -1)) translateY(.3px); } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .g { padding: 12px; border-radius: var(--r-card); background: var(--fill); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 15px; }
.gallery .g b { font-size: 15px; } .gallery .g span { font-size: 13px; color: var(--label2); }

/* The first screen (web/home/first.js): Home's grid of apps and widgets, then Three things to try. While editing, a
   part's link waits (a tap is the edit's). */
.first-slot { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.first-slot > :empty { display: none; }
/* Pick up where you left off, Start here and Or ask, widgets on the grid (first.js bandPart): the name over its rows,
   the rows scrolling inside the widget's cells, on its own glass. */
.homegrid > .part.bandpart:not(.icon) > .tile.bandtile:not(:has(.wrows, .wface)) { flex-direction: column; align-items: stretch; gap: 8px; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
/* A widget that scrolls inside (these and Today, below) scrolls up and down only, behind a thin, quiet bar: a desktop
   browser drew its full scrollbars, arrows and all, down the side and along the bottom (Payton's walk-through, 2026-11-09). */
.homegrid > .part:not(.icon) > .tile:is(.bandtile, .todaytile) { overflow-x: hidden; }
/* The cut reads as "more below": the last 28px of what scrolls fades out, and the same 28px of padding lets the last line scroll
   clear of the fade. The glass is on the .part (the .tile is only the scroller), so the card's ground, border and corner stay whole. */
.homegrid > .part:not(.icon) > .tile.bandtile:not(:has(.wrows, .wface)), .homegrid > .part:not(.icon) > .tile.todaytile:not(:has(.wrows, .wface)) { padding-bottom: 28px; -webkit-mask-image: linear-gradient(to bottom, var(--label) calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, var(--label) calc(100% - 28px), transparent); }
/* Start here's three rows fit its two cells without scrolling (the third was cut in half): each row as short as a tap
   target may be. */
.homegrid > .part.bandpart.w-wide.hasrows > .tile.bandtile { gap: 6px; }
.homegrid > .part.bandpart.w-wide.hasrows .rows.grouped > .pillrow { padding-block: 2px; min-height: 44px; }
.bandpart .bandname { font-size: 22px; line-height: 1.1; font-weight: 600; font-family: var(--display); padding: 2px 4px 0; }
.bandpart .bandbody { display: flex; flex-direction: column; gap: 8px; }
.bandpart .bandbody > .chip { align-self: flex-start; }
/* A line on the bare painting (the first screen's own line under it) sits on a small backing of its own, so it reads
   over a bright painting too (accessibility.md 3; tokens.css --label-back). */
.first-slot > .muted { align-self: flex-start; color: var(--label); padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); }
/* Play's labels and Pleroma's line lie on the painting the same way (web/library/play.js). */
.lrow > .label, .lrow > .muted { align-self: flex-start; color: var(--label); padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); }
.lrow > .label { gap: 12px; }
.part .tile { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; color: inherit; text-align: start; }
.part .tile .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); flex: none; }
.part .tile .grow { min-width: 0; }
.part .tile .grow b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .tile .grow span { display: block; font-size: 13px; color: var(--label2); }
/* What a widget shows of its own (parts.js widgetRows): its first few things, one row each; the gallery's sample is blank
   rows (decorative, --fill2) where an empty list would be. */
.part .tile:has(.wrows, .wface) .grow { flex: 1 1 auto; align-self: stretch; }
.part .wrows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.part .wrows li { min-width: 0; padding: 6px 10px; border-radius: var(--r-ctl); background: var(--fill); }
.part .tile .grow .wrows b { font-size: 13px; font-weight: 600; }
.part .tile .grow .wrows span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .wrows.sample .wbar { display: block; height: 10px; width: 70%; margin: 3px 0; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--label) 18%, transparent); }
.part .wrows.sample li + li .wbar { width: 50%; }
/* What a widget looks like (web/home/faces.js widgetFace): the old Home's faces back, in the shell's own tokens, so every
   theme wears them. A row of faces or covers keeps to one line: what doesn't fit drops to a row of no height. */
.part .wface { margin: 8px 0 0; min-width: 0; }
.part .tile .grow .wface :is(b, small) { display: block; color: var(--label); }
.part .tile .grow .wface small { color: var(--label2); font-size: 11px; font-weight: 500; }
.part .wtoday { display: flex; align-items: center; gap: 12px; }
.part .wtoday .wclock { flex: none; max-width: 55%; }
.part .wtoday .wweek { flex: 1; min-width: 0; margin: 0; }
.part .tile .grow .wclock b { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.part .tile .grow .wclock span { font-size: 13px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .wweek { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.part .wweek li { padding: 4px 0; border-radius: var(--r-ctl); background: var(--fill); text-align: center; }
.part .tile .grow .wweek b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.part .wweek li.now { background: var(--accent); }
.part .tile .grow .wweek li.now :is(b, small) { color: var(--on-accent); }
.part .wfaces, .part .wcovers { display: grid; grid-auto-rows: 0; overflow: hidden; gap: 0 6px; }
.part .wfaces { grid-template-columns: repeat(auto-fill, 36px); grid-template-rows: 36px; }
.part .wcovers { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); grid-template-rows: 60px; }
.part .tile .grow .wdisc { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--c, var(--tint)); color: rgba(20, 14, 10, .82); font-size: 13px; font-weight: 700; }
.part .wdisc.here { box-shadow: 0 0 0 2px var(--ok); }
.part .tile .grow .wcover { height: 60px; border-radius: var(--r-cover); overflow: hidden; display: grid; place-items: end start; padding: 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--accent)) 70%, transparent), color-mix(in srgb, var(--c, var(--accent)) 25%, var(--fill))); box-shadow: inset 3px 0 0 rgba(0, 0, 0, .18); }
.part .tile .grow .wcover b { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.part .tile .grow :is(.wdisc, .wcover).pic { padding: 0; background: var(--fill); }
.part .tile .grow :is(.wdisc, .wcover).blank { background: var(--fill2); box-shadow: none; }
.part :is(.wdisc, .wcover, .wpic) img { display: block; width: 100%; height: 100%; object-fit: cover; }
.part .tile .grow .wpic { display: block; height: 96px; border-radius: var(--r-ctl); overflow: hidden; background: var(--fill); }
.part .tile .grow .wpage { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; padding: 8px 10px; border-radius: var(--r-ctl); background: var(--fill); font-size: 13px; line-height: 1.35; color: var(--label); white-space: pre-line; }
.part .wstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; }
.part .wstats > span { padding: 6px 8px; border-radius: var(--r-ctl); background: var(--fill); min-width: 0; }
.part .tile .grow .wstats b, .part .tile .grow .wbig { font-size: 20px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .tile .grow .wstats small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .tile .grow .wmeter { display: block; height: 6px; margin: 0 0 8px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.part .wmeter i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.part .wbars { display: block; width: 100%; height: 40px; margin-top: 6px; }
.part .wbars rect { fill: var(--accent); opacity: .45; }
.part .wbars rect.now { opacity: 1; }
.part .wparts { list-style: none; padding: 0; display: grid; gap: 4px; }
.part .wparts li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.part .tile .grow .wparts span { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part .wparts i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.part .wparts i.resting { background: var(--label2); }
.part .wyou { display: flex; align-items: center; gap: 10px; }
.part .tile .grow .wyou .wdisc { width: 44px; height: 44px; font-size: 16px; }
.editing .part { padding-right: 136px; }
/* Editing at a large text size on a phone (item 64): the grip and Move sit under the name, so the name keeps the row. */
@media (max-width: 1099px) { .bigtext .editing .part:not(.icon) { padding-right: 16px; padding-bottom: 56px; }
  .bigtext .editing .part:not(.icon) .moves { top: auto; bottom: 6px; transform: none; }
  .bigtext .editing .part:not(.icon) .grip { top: auto; bottom: 18px; transform: none; } }
.editing .part .tile { pointer-events: none; }
/* The apps (web/home/first.js, web/home/parts.js drawIcon): one glass card of the parts' own tiles at an icon's size, as a
   phone's Home Screen shows apps; a name is one line, cut with an ellipsis. While editing, rows (plan 3b ruling 14).
   Every tile fills its column, a folder's button too (a button shrinks to its words), so each icon sits on its centre. */
.apps .icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 16px 8px; }
.apps .icon .tile { flex-direction: column; gap: 8px; text-align: center; width: 100%; }
.apps .icon .tile .ic { width: 56px; height: 56px; border-radius: var(--r-row); }
.apps .officesoon { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; } /* when the Office opens for a teen it waits for (the round-1 review) */
.apps .icon .tile .grow { width: 100%; }
/* A name is one line at one size, as the iPhone's Home Screen sets them (Payton's iPhone, 2026-11-02): never broken inside
   a word ("Authenticat / or"), never set smaller (#478's "Authenticator" read uneven), and a name longer than its tile
   ends in an ellipsis ("Authentica…"). The whole name stays the tile's words and its title (parts.js drawIcon). */
.apps .icon .tile .grow b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; hyphens: none; }
.apps .icons.editing { grid-template-columns: 1fr; gap: 8px; }
.apps .icons.editing .icon .tile { flex-direction: row; text-align: left; }
.apps .icons.editing .icon .tile .ic { width: 36px; height: 36px; border-radius: 50%; }
.apps .icons.editing .icon .i.l { width: 18px; height: 18px; }
/* Home's grid (web/home/partsedit.js, gridedit.js; Payton 2026-10-31: the old Home's freedom in the new look): apps,
   folders and widgets on one grid over the painting. An app is the old Home's icon, a rounded square in its app's colour
   with its name under it as plain words read by the titles' shadow, as the iPhone's are; a widget is a glass card as
   many cells wide and tall as it was made (Vincent, 2026-11-05: "move anywhere like a grid but u cant see it"). Each part
   sits in its own cell (gridedit.js placeGrid: --c, --r, --w, --h), so empty cells stay empty. */
.homeparts { display: flex; flex-direction: column; gap: 12px; }
/* Each tile its own height (Vincent's laptop, 2026-11-04: a short widget stretched tall beside a long one), and never wider
   than its column: a long name inside it is cut, never pushing the tile past the grid's edge. */
.apps .icons.homegrid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); grid-auto-rows: var(--row, 92px); gap: var(--gap, 12px); align-items: stretch; }
.homegrid > .part { min-width: 0; grid-column: var(--c, auto) / span var(--w, 1); grid-row: var(--r, auto) / span var(--h, 1); }
.homegrid > .part:not(.icon) { min-height: 0; overflow: hidden; display: flex; align-items: flex-start; }
/* While editing, its x hangs past its corner: the card lets it show, its words still kept inside. */
.homegrid.gridediting > .part:not(.icon) { overflow: visible; }
.homegrid.gridediting > .part:not(.icon) .tile { max-height: 100%; overflow: hidden; }
.homegrid > .part:not(.icon) .tile { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
/* A wide tile is a row (its icon beside its words) when it is a line; one with rows keeps its icon over its heading, as
   a small one does (Vincent, 2026-11-04: the icon floated alone beside the list). */
.homegrid > .part.w-wide:not(.icon) .tile:not(:has(.wrows, .wface)) { flex-direction: row; align-items: center; }
.homegrid > .part.w-small .tile .grow > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Today, a big widget (web/today/today.js todayPart): the greeting, Waiting for you, the calendar and its parts in one
   column that scrolls inside its cells; the greeting and Waiting for you lie on its glass, not on glass of their own. */
.homegrid > .part.todaypart:not(.icon) > .tile.todaytile:not(:has(.wrows, .wface)) { flex-direction: column; align-items: stretch; gap: 12px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* A column, so the attention strip docked in Home's first card (app.js dockStrip) sits under Today's words, not over them. */
.homegrid > .part.todaypart:not(.icon) { flex-direction: column; align-items: stretch; }
.todaypart .hero { background: none; padding: 4px 4px 0; overflow: visible; }
.todaypart .hero::after { content: none; }
.todaypart .waitcard { background: none; border: 0; box-shadow: none; padding: 0 4px; }
/* Home A, Today first (docs/superpowers/specs/2026-11-18-new-look-screens-design.md): the date line, a 40px greeting with the gold
   ornament, Waiting for you as a card heading with its count, and a rule and an icon square on the rows. Colour is tokens only. */
/* No ornament under a greeting (Payton, 2026-11-19: "I don't like the underlines"): .orn is only a name now. */
.eyebrow { font-size: var(--t-cap); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--accent-text); }
.todaypart .hero .hello { font-size: 40px; line-height: 1.04; }
.todaypart .hero .eyebrow { margin: 0; }
.todaypart .waitcard h2 { font-size: 19px; font-family: var(--display); }
.waitcard .count { font-size: 12px; font-family: var(--font); font-weight: 500; color: var(--label2); margin-left: 6px; }
.todaypart li + li, .bandpart li + li { border-top: 1px solid var(--sep); }
.todaypart .pillrow .ic, .bandpart .pillrow .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--tint) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent-glyph) 20%, transparent); }
.todayparts .trow { display: contents; } /* a part's row, or its snag in its place */
body:has(.todaypart) #waitslot { display: none; } /* its card holds every row the strip would */
/* The calm Home (web/home/calm.js; docs/superpowers/specs/2026-11-20-calm-home-design.md; held: 'calmhome'): the greeting
   and one line straight on the painting, the apps in a row at the foot, over the box. Only what the app already has:
   the eyebrow, Home A's 40px greeting, the Subhead size for the line, the grid's own tiles, Chat A's chip, the accent
   for a dot. No underline and no rule anywhere on it (Payton, 2026-11-19: "I don't like the underlines"); each rule
   here is pinned in test/newui/calm-home.test.js. */
.main:has(> .first-slot.calm) { min-height: calc(100vh / var(--size, 1)); min-height: calc(100dvh / var(--size, 1)); }
.first-slot.calm { flex: 1 1 auto; margin-bottom: 0; }
.first-slot.calm > .calmhero { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 20px 4px 0; overflow: visible;
  text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent); }
.first-slot.calm > .calmhero::after { content: none; }
.calmhero .eyebrow { margin: 0; }
.calmhero .hello { font-size: 40px; line-height: 1.04; }
.calmhero .calmline { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: var(--t-sub); line-height: 1.4; color: var(--label); text-decoration: none; }
.calmhero > .strip.docked { border: 0; text-shadow: none; }
.first-slot.calm > .calmapps { margin-top: auto; }
.calmrow .tile { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.calmrow .tile .ic { position: relative; }
/* The held tile's picture: as wide as the tile (its words take their width from it), and its icon wears its own shadow,
   as in the row. */
.ctx > .lift.calmlift { width: 100%; box-shadow: none; }
.calmdot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--edge); }
body:has(.first-slot.calm) #waitslot { display: none; } /* the line and the dots say what waits */
/* At night the painting's veil deepens: the look's own page colour over its veil (tokens.css --veil-night). Set at the
   draw, never animated. */
body:has(.first-slot.calm.night) .look-veil { background: linear-gradient(var(--veil-night), var(--veil-night)), var(--veil); }
/* You might ask: Chat A's chips at the top of the box, gone while the chat's panel is open over it. */
.composer .calmasks { padding: 8px 4px 2px; }
.composer:has(.hxfloat:not([hidden])) .calmasks { display: none; }
/* A menu's head (menu.js openMenu head): a small line and a figure over its rows, on the menu's own glass. */
.menuhead { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 10px; }
.menuhead b { font-family: var(--display); font-size: var(--t-title); font-weight: 600; line-height: 1.15; }
.menu .menuhead + [role="menuitem"] { border-top: 0; }
.homegrid .icon .tile .ic { width: var(--hic, 60px); height: var(--hic, 60px); border-radius: calc(var(--r-icon) + 2px); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.homegrid .icon .tile .grow b { max-width: 100%; padding: 0 1px; background: none; color: var(--label);
  text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent); }
.homegrid .ic.look-library { background: color-mix(in srgb, var(--ember) 34%, rgba(26, 30, 40, .7)); color: #F2C9A6; }
.homegrid .ic.look-office { background: color-mix(in srgb, var(--arcane) 38%, rgba(26, 30, 40, .7)); color: #D5DAF8; }
.homegrid .ic.look-console, .homegrid .ic.look-folder { background: color-mix(in srgb, var(--mist) 30%, rgba(26, 30, 40, .7)); color: #E5E6EA; }
[data-look="day"] .homegrid .ic[class*="look-"] { color: var(--ink); }
/* An app in its own colour (web/home/parts.js appIc, public/worlds.js tint; Vincent 2026-11-05, look A): a gradient with a
   white mark, or See-through (Settings › Customize › App icons, [data-icons="glass"]: look.js) the same colour as a
   see-through tint over the painting, its mark in the app's colour (no blur: the blur budget keeps blur for what
   floats, test/newui/sleek-surfaces.test.js). Both a little see-through (Vincent, 2026-11-06: "make the apps a little
   more translucent"): Solid's colour at 92%, See-through's thinner. Home's grid, a folder's apps and Add's apps. Doubled
   to come over .part .tile .ic. The marks read at 3:1 in every look over any painting (test/newui/app-icons.test.js). */
.ic.tinted.tinted { background: linear-gradient(160deg, color-mix(in srgb, var(--t1) 92%, transparent), color-mix(in srgb, var(--t2) 92%, transparent)); color: #FFFFFF; }
[data-icons="glass"] .ic.tinted.tinted { background: color-mix(in srgb, var(--t2) 36%, rgba(15, 17, 22, .54)); color: color-mix(in srgb, var(--t1) 45%, #FFFFFF); }
/* Editing as the iPhone does it (web/home/gridedit.js, gridmath.js; Payton 2026-11-02): the whole tile is the handle, a
   finger or a mouse drags it from anywhere on it (touch-action none, so the browser never takes the drag for a scroll;
   the grid's empty space still scrolls), the one in hand floats over the grid a little larger (.lifted, placed against
   the grid: .homegrid is positioned), and the others slide out of its way on the iOS spring, live, by a transform from
   their own cells (gridedit.js reflow: --rx, --ry), so the gap that opens is where it lands; nothing marks the cell
   (Vincent, 2026-11-06). An app held over another's icon shows the folder's well behind it (.well); letting go folds
   them. */
.homegrid { position: relative; }
.homegrid.gridediting .part { padding-right: 0; }
.homegrid.gridediting > .part:not(.icon) { padding-right: 16px; }
.homegrid .part .pick { display: none; }
.homegrid.gridediting .part .pick { display: block; position: absolute; inset: 0; border-radius: inherit; z-index: 1; background: none; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.homegrid.gridediting.dragging .part .pick { cursor: grabbing; }
.homegrid.gridediting .part .rm { z-index: 3; }
/* The one in hand follows the pointer exactly (a transform from its own cell: it never leaves the grid's flow, so nothing
   jumps), over everything. A widget's corner (.resize) pulls it bigger or smaller (.sizing: its size in px while it's
   held), what it grows over sliding aside the same way. */
.homegrid.gridediting > .part { translate: var(--rx, 0px) var(--ry, 0px); transition: translate 320ms cubic-bezier(.32, .72, 0, 1); }
.homegrid.gridediting { min-height: var(--minh, 0px); }
.homegrid .part.lifted { translate: var(--dx, 0px) var(--dy, 0px); scale: 1.04; z-index: 5; animation: none; transition: scale 160ms cubic-bezier(.2, .8, .2, 1); pointer-events: none; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
.homegrid .part.lifted .pick, .homegrid .part.lifted .rm, .homegrid .part.lifted .resize { display: none; }
.homegrid > .part.incoming { position: absolute; left: 0; top: 0; width: var(--iw); height: var(--ih); }
.homegrid .part.sizing { width: var(--sw); height: var(--sh); max-width: none; justify-self: start; align-self: start; z-index: 5; animation: none; }
.homegrid .part .resize { display: none; }
/* The corner (Vincent, 2026-11-06: "more rounded arrow L thing"; 2026-11-08: "the resize thing needs to look better"): the
   rounded corner with a small arrow at each end (icons.js resizeCorner) on a small round glass chip, the − badge's size
   and shape at the opposite corner, so it reads on any glass or painting; a 44px target. */
.homegrid.gridediting .part .resize { display: grid; place-items: end; position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; padding: 5px; z-index: 3; cursor: nwse-resize; touch-action: none; color: var(--label); }
.homegrid.gridediting .part .resize .i { box-sizing: border-box; width: 30px; height: 30px; padding: 4px; border-radius: 50%; stroke-width: 2.2; background: var(--glass-dense); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); transition: scale 160ms cubic-bezier(.2, .8, .2, 1); }
.homegrid.gridediting .part .resize:hover .i, .homegrid .part.sizing .resize .i { scale: 1.12; }
.homegrid.saving .part .resize { pointer-events: none; }
.homegrid .part.well { animation: none; }
.homegrid .part.well::before { content: ""; position: absolute; left: 50%; top: -10px; width: 84px; height: 84px; margin-left: -42px; border-radius: 26px; background: color-mix(in srgb, var(--label) 22%, transparent); transition: scale 160ms cubic-bezier(.2, .8, .2, 1); }
.homegrid .part.well .tile .ic { scale: .86; }
.homegrid .part.well:not(.icon)::before { display: none; }
/* The − badge asks first (iOS asks too): a small question on the part, never a full dialog. The part it sits on comes
   over its neighbours and holds still while it asks. */
.homegrid .part .confirm { position: absolute; z-index: 6; top: calc(100% + 6px); left: -4px; min-width: 232px; padding: 12px; border-radius: var(--r-row); background: var(--glass-dense); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); display: flex; flex-direction: column; gap: 10px; transform-origin: top left; animation: confirm-in 160ms cubic-bezier(.2, .8, .2, 1); }
.homegrid .part .confirm.flip { left: auto; right: -4px; transform-origin: top right; }
.homegrid .part .confirm p { margin: 0; font-size: 15px; font-weight: 600; color: var(--label); }
.homegrid .part .confirm .row { display: flex; gap: 8px; justify-content: flex-end; }
.homegrid .part:has(.confirm) { z-index: 7; animation: none; }
@keyframes confirm-in { from { opacity: 0; scale: .92; } }
/* While editing, an icon stays an icon (the list of rows was the first screen's before the grid). */
.apps .icons.homegrid.editing .icon .tile { flex-direction: column; text-align: center; }
.apps .icons.homegrid.editing .icon .tile .ic { width: var(--hic, 60px); height: var(--hic, 60px); border-radius: calc(var(--r-icon) + 2px); }
/* Icon size (Settings › Customize; look.js data-icon-size): Home's app icons a size smaller or larger, in the same cell. */
[data-icon-size="small"] { --hic: 50px; }
[data-icon-size="large"] { --hic: 68px; }
.apps .icons.homegrid.editing .icon .i.l { width: 28px; height: 28px; }
.addlist .label { color: var(--label2); font-size: 13px; font-weight: 600; }
/* The widget gallery (gridedit.js openAdd; iOS's Add Widget sheet): a search field, the apps not on Home as rows with
   their icons, then the widgets under their apps' names, each a card with one live preview (resized on Home), a button. */
.addlist .gsearch { width: 100%; min-height: 44px; padding: 0 14px; border-radius: var(--pill); background: var(--fill); border: 1px solid var(--box-edge); color: var(--label); font: inherit; font-size: 17px; }
.addlist .gallery.gapps { grid-template-columns: 1fr; }
.addlist .g.gapp { flex-direction: row; align-items: center; gap: 12px; min-height: 60px; }
.addlist .g.gapp .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; } /* its app's colour: the grid's look rules (.homegrid .ic.look-*) */
.addlist .g.gapp .grow { display: flex; flex-direction: column; min-width: 0; text-align: start; }
.addlist .gw { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-card); background: var(--fill); }
.addlist .gwhead b { display: block; font-size: 15px; font-weight: 600; } .addlist .gwhead span { display: block; font-size: 13px; color: var(--label2); }
.addlist .gsize { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0; background: none; border: 0; color: var(--label2); font-size: 13px; font-weight: 600; min-height: 44px; border-radius: var(--r-card); }
/* A preview is as tall as what it shows, no taller (Payton, 2026-11-09: Search and What's new were mostly blank at a
   150px floor), and its words stay to two lines. */
.addlist .gsize .part { width: 100%; display: flex; align-items: flex-start; pointer-events: none; }
.addlist .gwhead span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addlist .gsize .part .tile { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
.addlist .gsize .part.w-wide .tile:not(:has(.wrows, .wface)) { flex-direction: row; align-items: center; }
.addlist .gsize .part.w-small .tile .grow > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addlist .gnone { margin: 0; }
.addlist .gback { align-self: flex-start; }
@media (min-width: 760px) { .addlist .gapps.gpicks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Two widgets side by side as it scrolls, on a phone too (Vincent, 2026-11-04: "make the widget menu a little wider so
   it can fit 2 widgets side by side"), the store wider on a computer or a tablet. Each app's widgets under its name. */
.addlist .gwlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.addlist .label.gwapp { margin-top: 6px; color: var(--label); font-size: 15px; }
@media (min-width: 760px) { .sheet:has(> .addlist) { max-width: 920px; } }
@media (max-width: 420px) { .addlist .gw { padding: 8px; } .addlist .gsize .part { padding: 12px; } .addlist .gsize .part .tile { gap: 6px; } }
/* While Home is edited the box steps away (Vincent's laptop, 2026-11-04: it floated over Pick up's rows while he moved
   them), and the page's end needs no room for it. */
body:has(.homeediting) .composer { display: none; }
html body .main.withbox:has(.homeediting) { padding-bottom: calc(24px + var(--safe-bottom) + var(--toolbar-room, 0px)); }
/* A folder's sheet (web/home/folder.js): its name, a field while editing; its apps on a grid like Home's. While a tile is
   being dragged out of it the sheet steps aside (.away), and closes once the tile has landed. */
.folderbody .fname { width: 100%; min-height: 44px; padding: 0 14px; border-radius: var(--r-ctl); background: var(--fill); border: 0; color: var(--label); font: inherit; font-size: 17px; font-weight: 600; text-align: center; }
.folderbody .apps { margin-top: 4px; }
.folderbody .homegrid.editing .part { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.folderbody .muted { margin: 0; }
.sheet-dim.away { opacity: 0; pointer-events: none; transition: opacity 120ms ease-out; }
@media (prefers-reduced-motion: reduce) { .homegrid.gridediting .part, .homegrid .part .confirm { transition: none; animation: none; } }
[data-motion="calm"] :is(.homegrid.gridediting .part, .homegrid .part .confirm) { transition: none; animation: none; }
.invlink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--glass-edge); border-radius: var(--r-row); font-size: 15px; }
.invlink:empty { display: none; }
.invlink span { flex: 1; min-width: 0; color: var(--accent-text); font-weight: 600; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .stream, .editing .part { animation: none; }
  .editing .part { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }
  .btn, .pill, .pillrow, .book, .bar a { transition: none; }
  .look.fades .look-layer { transition: none; }
  .look.moves .look-layer { transition: none; }
}

/* The drawer and the computer layout: the bar becomes a floating rail on the left with the chats under it. On a phone the
   drawer is a floating panel that slides in from the left over a dim (body.drawer-open), in 280ms on the iOS spring and
   out in 200ms, only under motion (and not under Calm: the layers' rules, above). A closed drawer is out of sight and
   out of the keyboard's way (visibility). It starts below the status bar with the top circles' own room (.topbar's 10px) and ends clear of the home indicator (Payton's iPhone, 2026-11-02: its Email row
   sat right under the clock). */
.drawer { position: fixed; z-index: 36; left: 8px; top: calc(10px + var(--safe-top)); bottom: calc(12px + var(--safe-bottom)); width: min(340px, 86vw / var(--size, 1)); display: flex; flex-direction: column; gap: 2px; padding: 10px;
  overflow-y: auto; overscroll-behavior: contain; background: var(--glass-dense); border: 1px solid var(--glass-edge); border-radius: 28px; box-shadow: var(--spec), var(--glass-shadow);
  -webkit-backdrop-filter: blur(40px) saturate(1.6); backdrop-filter: blur(40px) saturate(1.6); transform: translateX(calc(-100% - 12px)); visibility: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-dim { position: fixed; inset: 0; z-index: 34; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; }
body.drawer-open .drawer-dim { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  .drawer { transition: transform 200ms cubic-bezier(.4, 0, 1, 1), visibility 0s linear 200ms; }
  body.drawer-open .drawer { transition: transform 280ms cubic-bezier(.32, .72, 0, 1), visibility 0s; }
  .drawer-dim { transition: opacity 200ms ease-out; }
}
.drawer .dnote { padding: 6px 4px; }
.drawer .pillrow.on { background: var(--tint); border-color: transparent; }
.drawer .searchrow { background: var(--fill); }
.drawer .searchrow input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--label); background: none; border: 0; min-height: 44px; padding: 0; }
.drawer .searchrow input::placeholder { color: var(--placeholder); }
.drawer .label button { border-radius: 8px; }
.drawer .label button.dfold { font: inherit; color: var(--label); gap: 4px; } /* Your chats: folds the list away (drawer.js), the chevron up while it shows */
.drawer .dfold .i { width: 14px; height: 14px; color: var(--label2); transform: rotate(180deg); }
.drawer .dfold[aria-expanded="false"] .i { transform: none; }
/* Its rows as ChatGPT's and Claude's sidebars (Payton's iPhone, 2026-11-02: tall two-line cards, long to scroll): one line
   each, 44px, no card; the title ends in an ellipsis; a Library or Office chat a small tag after it; a search's match on
   the same line. Small date headings over them (drawer.js groupChats). Email and Make a personality the same size. */
.drawer .dchat { min-height: 44px; padding: 0 10px; gap: 10px; border-radius: 12px; background: none; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.drawer .dchat:hover { background: var(--fill); }
.drawer .dchat .ic { width: 28px; height: 28px; }
.drawer .dchat .ic .i { width: 16px; height: 16px; }
.drawer .dchat .grow { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.drawer .dchat .grow b { flex: 0 1 auto; min-width: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer .dchat .dfound { flex: 1 1 0; min-width: 0; font-size: 13px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer .dchat .dfound:empty { display: none; }
.drawer .dchat .dtag { flex: none; font-size: 11px; color: var(--label2); padding: 1px 6px; border-radius: var(--pill); background: var(--fill); }
.drawer .drow > .dchat { padding-right: 44px; }
.drawer .drow > .more { right: 0; }
.drawer .dgroup { font-size: 12px; font-weight: 600; color: var(--label2); padding: 12px 10px 2px; }
.drawer .searchrow { min-height: 44px; padding: 0 12px 0 8px; margin: 4px 0; border: 1px solid var(--box-edge); border-radius: var(--pill); }
.drawer .searchrow .ic { width: 28px; height: 28px; }
/* On a phone (the ☰ drawer) each date's chats are one group, as iOS's grouped rows (the council's batch D, item 17): one
   surface card a run of rows (the drawer's list is flat, so a run's first and last rows round its corners), a hairline
   between rows inset to the words, the title 17/400, each row 44px as it was. Email and Make a personality are rows of
   their own, with their icon's square. From 1100px the drawer is the rail's sidebar: plain lines (below). */
@media (max-width: 1099.98px) {
  .drawer .drow { background: var(--surface); --label2: var(--label2-on); }
  .drawer .drow + .drow { margin-top: -2px; }
  .drawer :not(.drow) + .drow, .drawer .drow:first-child { border-top-left-radius: var(--r-card); border-top-right-radius: var(--r-card); }
  .drawer .drow:not(:has(+ .drow)) { border-bottom-left-radius: var(--r-card); border-bottom-right-radius: var(--r-card); }
  .drawer .drow + .drow::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; border-top: 1px solid var(--sep); pointer-events: none; z-index: 1; }
  .drawer .drow > .dchat { border-radius: inherit; padding-left: 16px; }
  .drawer .drow > .dchat .grow b { font-size: var(--t-body); font-weight: 400; }
  .drawer :is(.dmake, .dmail) { min-height: 52px; padding: 0 16px; gap: 15px; margin-top: 6px; border-radius: var(--r-card); background: var(--surface); --label2: var(--label2-on); }
  .drawer :is(.dmake, .dmail) .ic { width: 29px; height: 29px; border-radius: 7px; }
  .drawer :is(.dmake, .dmail) .grow b { font-size: var(--t-body); font-weight: 400; }
  /* One Email: the drawer's row only while the bar on show has none (a phone's Home and app homes hide the bar). */
  body:not(.apphome):has(#bar a[data-tab=email]) .drawer .dmail { display: none; }
  .drawer .dgroup { font-size: var(--t-cap); padding: 16px 16px 6px; }
}
/* The layers under Reduce Motion and Calm (their rules: after the popup's, above): nothing slides, scales or fades in or
   out; the page behind stays as it is; a press keeps its tint, without the scale. After the drawer's own, so its slide
   goes too, and after the look's Reduce Motion block, which the tests read as the first. */
@media (prefers-reduced-motion: reduce) {
  .sheet-dim > .sheet, .sheet-dim::before, .popup-dim > .popup, #layer > .popup-dim, .ctx > .menu, .ctx > .menunote, .ctx > .lift, #layer > .ctx-dim, #layer > .ctx, #layer > .tip,
  .drawer, .drawer-dim, body.sheet-open .main, body.sheet-closing .main { animation: none !important; transition: none !important; }
  .sheet-open .main { transform: none; border-radius: 0; }
  :where(.part .tile, .apps .icon .tile, .menu [role="menuitem"], .label a, .label button, .lmore, a.chip, button.chip, .more, .acts button, .tip .x, .circ,
    a.frrow, button.frrow, a.nbrow, button.nbrow, button.set):active { scale: none; }
}
[data-motion="calm"] :is(.sheet-dim > .sheet, .popup-dim > .popup, #layer > .popup-dim, .ctx > .menu, .ctx > .menunote, .ctx > .lift, #layer > .ctx-dim, #layer > .ctx, #layer > .tip,
  .drawer, .drawer-dim, body.sheet-open .main, body.sheet-closing .main), [data-motion="calm"] .sheet-dim::before { animation: none !important; transition: none !important; }
[data-motion="calm"] .sheet-open .main { transform: none; border-radius: 0; }
[data-motion="calm"] :where(.part .tile, .apps .icon .tile, .menu [role="menuitem"], .label a, .label button, .lmore, a.chip, button.chip, .more, .acts button, .tip .x, .circ,
  a.frrow, button.frrow, a.nbrow, button.nbrow, button.set):active { scale: none; }
/* The top's right slot: a screen's own actions (empty most of the time), then the chats button on a phone. */
.topbar .actions { display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.topbar .actions:empty { display: none; }
/* Before them, the app's own circles (the Library's Inbox and Play with others: library/layer.js), on its screens only. */
.topbar .appactions { display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.topbar .appactions:empty { display: none; }
/* The rail has Email: one Email (the drawer's row is for a phone's Home and app homes, which hide the bar). */
@media (min-width: 1100px) { body:has(#bar a[data-tab=email]) .drawer .dmail { display: none; } }
@media (min-width: 1100px) {
  body { padding-left: var(--side); }
  .topbar { left: var(--side); }
  .topbar::before, .topbar::after { left: var(--side); }
  /* No fade under the top on a wide screen (Vincent's laptop, 2026-11-04: "a weird ui cutoff with that blackbar"): it
     started at the rail's edge, so a dark 16px strip ran across the page's top but not the rail's column, cut off at the
     rail. Only the solid part behind a status bar stays (none on a laptop); the band once scrolled (::after) is as was. */
  .topbar::before { height: var(--safe-top); }
  .composer { left: calc(var(--side) + 32px); right: 32px; }
  .composer::before { left: -32px; right: -32px; } /* the fade under the box runs to the screen's edges, not 20px short */
  .composer .box, .composer .ainote, .composer .hxfloat { max-width: 816px; }
  /* The box at the bottom, as a chat app's (Vincent, 2026-11-04: "lower the chat bar"): the bar is the rail at the left
     here, so no room is kept under the box for it, and the page's end keeps room for the box alone. */
  .composer { bottom: calc(16px + var(--safe-bottom)); }
  .composer::before { bottom: calc(-1 * (16px + var(--safe-bottom))); }
  .main.withbox { padding-bottom: calc(16px + var(--safe-bottom) + var(--composer-h, 96px) + 24px); }
  html:has(.composer .jump:not([hidden])) .main.withbox { padding-bottom: calc(16px + var(--safe-bottom) + var(--composer-h, 96px) + 24px + 52px); }
  html:has(.main.withbox) { scroll-padding-bottom: calc(16px + var(--safe-bottom) + var(--composer-h, 96px) + 24px); }
  /* The rail: a column flush with the screen's left edge, the painting seen through a veil of the page's own colour,
     lighter by the header (Vincent, 2026-11-13: "i do like it being that translucent", "lets try blended for now"; the
     mockup's B5, Blended, Fine), one gold hairline at its right. Its rows are .rail's (above). Its width is --side, set
     from --rail-w (tokens.css). It was a rounded glass card 12px in from the edges (2026-11-05). */
  .bar { position: fixed; left: 0; right: auto; top: 0; bottom: 0; width: var(--side); height: auto; border-radius: 0; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0;
    padding: 8px 26px 16px 28px; border: 0; border-right: 1px solid var(--rail-edge); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    background: linear-gradient(180deg, var(--rail-veil-top) 0, var(--rail-veil-top) 150px, var(--rail-veil) 300px); }
  .bar.withaction { right: auto; }
  /* An app's rail holds every place (web/bar.js railTabs: no More on a computer). Its places end over the foot (the
     person and, over them, the chats: app.js placeDrawer's --rail-room) and scroll there when they are more than the
     window holds; the foot never moves. */
  .bar { overflow-y: auto; bottom: var(--rail-room, 0px); }
  /* Work's tree (bar.js railTabs branches): while the rail holds a switcher, the page's own (office/businesses.js,
     shop/shopswitch.js) is hidden, so it shows once; on a phone the page keeps its own, the quick way. */
  /* An icon-only tab's name beside it on hover or keyboard focus (app.js railTip): the bar's own quiet pill, over the
     page. No rail is icons alone since 2026-11-13, so it stays put unless a tab loses its words. */
  .railtip { position: fixed; left: var(--tip-x, 0); top: var(--tip-y, 0); transform: translateY(-50%); z-index: 39; padding: 6px 12px; border-radius: var(--pill); background: var(--glass-dense); color: var(--label); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
  .railtip[hidden] { display: none; }
  body.nodrawer .drawer { display: none; }
  body:has(#bar .barswitch > .pswitchrow) #screen .pswitchrow { display: none; }
  /* The brand (index.html's link Home) is the header's HARROX: small gold spaced capitals, the front page's mark. */
  .bar a.brand { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0; color: var(--rail-gold-text); font: 600 13px/1 var(--display); letter-spacing: .42em; text-transform: uppercase; }
  .bar .brand .railmark { display: none; }
  /* The chats and Email: the column's lower part, just over the person (--rail-acct: app.js placeDrawer), as tall as
     they are up to 40% of the window, then they scroll; the same veil as the rail, after its divider (2026-11-15; it was
     laid over the rail from under its last place). */
  .drawer { z-index: 31; left: 0; top: auto; bottom: var(--rail-acct, 0px); width: var(--side); max-height: calc(40vh / var(--size, 1)); padding: 12px 26px 8px 28px; transform: none; visibility: visible;
    background: var(--rail-veil); border: 0; border-right: 1px solid var(--rail-edge); border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .drawer-dim { display: none; }
  .drawer .pillrow { min-height: 44px; padding: 4px 10px; background: none; border-color: transparent; box-shadow: none; backdrop-filter: none; }
  .drawer .pillrow:hover { background: var(--fill); }
  .drawer .searchrow, .drawer .searchrow:hover { background: var(--fill); }
  .drawer .pillrow .ic { width: 26px; height: 26px; } .drawer .pillrow .grow b { font-size: 14px; }
  .topbar .menubtn { display: none; }
  .main { padding-left: 32px; padding-right: 32px; padding-bottom: 32px; }
  .action { bottom: 24px; right: 24px; }
  /* While the round action shows, a page's end has room for it (DECISIONS 2026-10-17), so the last line scrolls clear;
     html's scroll padding (the bar's height and 40px) already keeps Tab clear of it. A box's page keeps its own room. */
  body:not(.bare, .instory):has(> .action) .main:not(.withbox) { padding-bottom: calc(var(--bar-h) + 48px); }
  .back { left: calc(var(--side) + 12px); top: 12px; bottom: auto; }
  .shelf { grid-template-columns: 1fr 1fr; } .cards { grid-template-columns: 1fr 1fr 1fr; }
  .sheet-dim { align-items: center; } .sheet { border-radius: 32px; max-height: calc(80vh / var(--size, 1)); }
  .twocol { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
}
@media (max-width: 1099px) { .bar .brand { display: none; } }

/* The strips sit in their own box above the screen (index.html #strips): under the floating top, then the screen. It
   always holds its three slots (the waiting strip, the attention strip and the Library's slot, library/layer.js), so
   its rules read a slot with something in it; an empty slot takes no room and no gap. */
#strips:has(> :not(:empty)) { max-width: 880px; margin: 0 auto; padding: calc(var(--top-h) + var(--safe-top)) var(--gutter) 0; display: flex; flex-direction: column; gap: 8px; }
body:not(.bare) #strips:has(> :not(:empty)) + .main { padding-top: 16px; } /* never on a door screen: body.bare .main keeps its room under the circle */
@media (min-width: 1100px) { #strips:has(> :not(:empty)) { padding-left: 32px; padding-right: 32px; } }
#waitslot, #attnslot, .libtop { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#waitslot:empty, #attnslot:empty, .libtop:empty { display: none; }
/* An app's places under the top, while the bar holds the apps (bar.js APPS_BAR, drawPlaces; Payton, 2026-11-20, the
   bottom-bar mock-ups): one row of words, sliding sideways where they don't fit, the place you're at a soft gold pill.
   No underline (Payton, 2026-11-19). Each is 44px tall to tap. */
.placeslot { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
.placeslot::-webkit-scrollbar { display: none; }
.placeslot > :is(a, button) { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill); font-size: 15px; font-weight: 500; color: var(--label); white-space: nowrap; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 160ms cubic-bezier(.2, .8, .2, 1), background-color 160ms ease-out; }
.placeslot > :is(a, button):active { transform: scale(.97); transition-duration: 80ms; }
@media (prefers-reduced-motion: reduce) { .placeslot > :is(a, button):active { transform: none; } }
.placeslot > .on { background: var(--tint); color: var(--accent-text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--chip-edge); }
.placeslot:empty { display: none; }
@media (min-width: 1100px) { .placeslot { display: none; } }
/* The bar's open app, as the row's: its tab sits on the same soft gold pill. */
body.appsbar .bar a.on { background: var(--tint); }
/* The party's banner in the Library's slot (library/partypart.js): what was just said about your party, on show until
   its next check. A quiet line on the painting, its words wrapping, nothing to tap. What was said as a Quickplay search
   stopped is the same line (library/searchpart.js), and what a vote said (library/votes.js), and the Inbox's news said
   where the circles aren't on show (library/inboxpart.js). */
.libtop .partynote, .libtop .qsdone, .libtop .votedone, .libtop .inboxnote { margin: 0; padding: 8px 14px; border-radius: var(--r-row); background: var(--label-back); color: var(--label); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
/* The party's banner (partypart.js): its notes stacked, a note with a button laid out as a row that wraps. */
.libtop .partynotes { display: grid; gap: 0.375rem; }
.libtop .partynote:has(.btn) { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
/* Quickplay's note in the Library's slot while a search runs (library/searchpart.js, ruling 12): a glass row with a
   beating dot, what it is doing over its clock and how many others are looking, then View and Cancel, each 44px,
   wrapping under the words at a large text size. The party's vote under it (library/votes.js, .votebar) is the same
   row: who it's about over its count and seconds, then Yes and No; its part's box (.votebars) adds no box of its own.
   The party's sheet shows the party's vote at its top in the same row (library/party.js), as the sheet covers the slot:
   held at the top of the sheet's scroll, over the chat, on the sheet's own glass, so whoever is chatting still sees it.
   It sits over the sheet's 8px top padding too (top: -8px), so no scrolled words show above it; and while it is there
   the sheet keeps what the keyboard and crisis help land on below it (accessibility.md 9, the html rule's way): 176px
   is the bar with its head ('Vote to remove {name}', a name up to 24 letters) wrapped to four lines on a phone at
   150%, plus that padding. */
.libtop .votebars, .psheet > .votebars { display: contents; }
.libtop .qsnote, .libtop .votebar, .psheet .votebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 8px 8px 14px; border-radius: var(--r-row); background: var(--surface); --label2: var(--label2-on); }
.psheet .votebar { position: sticky; top: -8px; z-index: 1; background: var(--surface2); --label2: var(--label2-on); }
.sheet:has(.psheet .votebar) { scroll-padding-top: 176px; }
.qsnote .qsline, .votebar .votewords { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qsnote b, .votebar b { font-size: 15px; font-weight: 600; color: var(--label); overflow-wrap: anywhere; }
.qsnote small, .votebar small { font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.qsnote .qsfail { color: var(--label); }
.qsnote .qsfail:empty { display: none; }
.qsnote .btn, .votebar .btn { flex: none; min-height: 44px; }
.votebar .votebtns { flex: none; display: flex; gap: 8px; }

/* A bare screen (the door's steps: web/door/required.js): no bar, no strips, no drawer, and the top keeps only the
   account circle. Last in the file so it beats the computer layout's rail above. */
body.bare { padding-left: 0; }
body.bare .bar, body.bare .action, body.bare .drawer, body.bare .drawer-dim, body.bare .composer, body.bare .back, body.bare #strips,
body.bare .topbar .mid, body.bare .topbar .menubtn, body.bare .topbar .side:last-child { display: none; }
body.bare .topbar { left: 0; }
/* Room under the account circle, so it never sits on the card's corner. */
body.bare .main { padding-top: 78px; padding-bottom: 32px; }

/* Table talk (web/library/talk.js): the messages, yours on the right with their More, and its own box with Send */
.talk .talkhint { margin: 0; }
/* The list scrolls on its own, newest at the bottom, with no bar at all (Vincent, Nov 9: "weird arrows when its out of
   screen"; Nov 11: "can u remove the scrolling bar on the table talk aswell"); a scroll at its end never drags the sheet.
   Its right padding holds your message's More and its 44px target (.talkmsg .more::after, 4px past the bubble), which
   reached past the list and made it scroll sideways too; nothing scrolls sideways now. */
.talklist { display: flex; flex-direction: column; gap: 8px; max-height: calc(50vh / var(--size, 1)); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding-right: 6px; }
.talklist::-webkit-scrollbar { display: none; }
.talkmsg { align-self: flex-start; max-width: 85%; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; padding: 8px 12px; border-radius: var(--r-row); background: var(--surface2); color: var(--label); overflow-wrap: anywhere; --label2: var(--label2-on); }
.talkmsg b { flex-basis: 100%; font-size: .8125rem; color: var(--accent-text); }
.talkmsg .words { flex: 1; min-width: 0; }
.talkmsg .sticker { display: block; width: 4.5rem; height: 4.5rem; }
.talkmsg .reacts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.talkmsg .reacts[hidden] { display: none; }
.chip.react { min-height: 32px; } .chip.react[aria-pressed="true"] { background: var(--tint); color: var(--accent-text); }
.talkmsg.mine { align-self: flex-end; background: var(--tint); padding-right: 4px; }
/* Your message's More never makes its bubble taller (item 17): drawn at 32px with the line's own height, its target
   still 44px round it. */
.talkmsg .more { flex: none; width: 32px; height: 32px; margin: -6px -2px -6px auto; }
.talkmsg .more::after { content: ""; position: absolute; inset: -6px; }
.talkform { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.talkform .box { display: flex; align-items: flex-end; gap: 8px; padding: 4px 4px 4px 14px; border-radius: var(--r-card); background: var(--fill); }
.talkform textarea { flex: 1; min-width: 0; font: inherit; color: var(--label); background: none; border: 0; min-height: 44px; max-height: 8em; padding: 11px 0; resize: none; line-height: 1.35; overflow-y: auto; scrollbar-width: none; }
.talkform textarea::placeholder { color: var(--placeholder); }
.talkform .send { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.talkform .stickerpick { flex: none; width: 44px; height: 44px; margin-left: -10px; }
.talkform .stickers { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; }
.talkform .stickers[hidden] { display: none; }
.stickerbtn { padding: 4px; border-radius: var(--r-row); background: var(--fill); } .stickerbtn img { display: block; width: 3rem; height: 3rem; }
.talkform .say { margin: 0; padding: 0 4px; color: var(--label); }
.talkform .say:empty { display: none; }
.talkpanel { gap: 12px; }
.talkpanel[hidden] { display: none; }
.talkpanel .talklist { max-height: calc(40vh / var(--size, 1)); }

/* A story has the whole screen (its row's instory: web/library/screens.js): no bar, no action button, no chats button
   and no account circle. The box at its live height (composer.js --composer-h) stands in for the bar's room under the
   page, as .withbox does, with the box alone at the bottom (.composer.alone). After the computer layout, so it beats it. */
body.instory #bar, body.instory .action, body.instory .topbar .menubtn, body.instory .topbar .acct { display: none; }
/* But Home stays (the round-1 review: a way Home from every screen): it floats beside Back to Play, 52px to its
   right, at the same height (Back's rules below). The top's left side keeps their room, so the title pill starts after them. */
body.instory .topbar .side:first-child > .homepill { display: inline-flex; position: fixed; left: 64px; top: calc(10px + var(--safe-top)); bottom: auto; z-index: 31; pointer-events: auto; }
body.instory .topbar .side:first-child { min-width: 96px; }
body.instory .topbar .side:first-child > .homepill[hidden] { display: none; }
/* The page's room under its last line: the box, with 24px clear of it (Back to Play floats at the top now). */
body.instory .main { padding-bottom: calc(12px + var(--safe-bottom) + var(--composer-h, 96px) + 24px); }
html:has(body.instory .main) { scroll-padding-bottom: calc(12px + var(--safe-bottom) + var(--composer-h, 96px) + 24px); }

/* Back to Play sits at the top left on every width, in the top's own row, never over the story's words (Vincent, Nov 9,
   his iPhone: "the back arrow is in the middle of the text", where it floated over the page above the box). The box keeps
   the whole width. */
body.instory .circ.back { left: 12px; top: calc(10px + var(--safe-top)); bottom: auto; }
body.instory .composer.alone { left: 12px; }
/* A story never steps back behind a sheet (its box, Back and the top are fixed to it, and the step back pushed Earlier
   up under the title: Vincent's iPhone, Nov 10), and Earlier keeps clear of the top. */
body.instory.sheet-open .main { transform: none; border-radius: 0; }
body.instory .pastwrap > .earlier { margin-top: 8px; }
/* The ideas in one row that scrolls sideways where the box is narrow, so they never stack up over the page. */
@container (max-width: 480px) { .ideas { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .ideas .pill { flex: none; max-width: 80%; } }
/* The story's top where it is narrow (375 at 150%, or four circles at 100%): smaller circles closer together (each a 44px
   target still, through its ::after), the chapter line hidden, and the title kept at 44px or more, cut short with an
   ellipsis rather than squeezed away. Measured by the top itself (container queries see the shell's px). */
body.instory .topbar { container-type: inline-size; }
@container (max-width: 320px) { body.instory .topbar .side .circ { width: 40px; height: 40px; } body.instory .topbar .side .circ::after { content: ""; position: absolute; inset: -2px; } body.instory .topbar .side, body.instory .topbar .actions { gap: 4px; } .tpill .twhere { display: none; } .topbar .mid.tpill { padding: 4px 10px; min-width: 44px; } }
/* Every other screen's top on a phone measures itself the same way (375 at 150%: the account circle, a title, the
   Library's two circles, a screen's actions and the chats button), with the same smaller circles, each still a 44px
   target. Under 1100px only: from there the top starts at the rail, and a size container re-bases its fixed scrim
   (.topbar::before, left: var(--side)) on itself, which would put the rail's width in twice. There, a Library screen
   with its own action (a conversation's More) draws no Library circles, as a story has none: six controls don't fit a
   top 240px wide (375 at 150%), and Your chats and More would leave the screen (the final review's ruling, 4c Task 15). */
@media (max-width: 1099px) { body:not(.instory) .topbar { container-type: inline-size; } }
@container (max-width: 320px) { body:not(.instory) .topbar .side .circ { width: 40px; height: 40px; } body:not(.instory) .topbar .side .circ::after { content: ""; position: absolute; inset: -2px; } body:not(.instory) .topbar .side, body:not(.instory) .topbar .actions, body:not(.instory) .topbar .appactions { gap: 4px; } body:not(.instory) .topbar .mid { padding: 0 10px; min-width: 44px; } }
/* On a phone the story's floating controls (the title pill, the top circles, Back and Home) are see-through glass over the
   story's picture and a little smaller (Vincent: "little more translucent and smaller"): 36px circles, each still a 44px
   target through its ::after. */
@media (max-width: 1099px) {
  body.instory :is(.topbar .mid.tpill, .topbar .side .circ, .circ.back, .topbar .side:first-child > .homepill) { background: color-mix(in srgb, var(--raised) 55%, transparent); }
  body.instory :is(.topbar .side .circ, .circ.back, .topbar .side:first-child > .homepill) { width: 36px; height: 36px; }
  /* Only the top's own circles are relative (for their ::after): the :is() above outweighed Back's fixed, so Back sat in
     the page's flow, over the story's words (Vincent, Nov 9). */
  body.instory .topbar .side .circ:not(.homepill) { position: relative; }
  body.instory .circ.back, body.instory .topbar .side:first-child > .homepill { position: fixed; }
  body.instory :is(.topbar .side .circ, .circ.back, .topbar .side:first-child > .homepill)::after { content: ""; position: absolute; inset: -4px; }
  body.instory .topbar .side:first-child > .homepill { left: 56px; }
  body.instory .topbar .side:first-child { min-width: 80px; }
  body.instory .topbar .mid.tpill { min-height: 44px; padding-block: 2px; }
}
/* What doesn't fit beside the pill goes into one More circle (web/topfit.js, items 13 and 92): a folded circle stays in
   the page, hidden. The pill's two words are measured in its own type. */
.topbar [data-folded] { display: none; }
.circ .badge.dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 0; right: 0; } /* a folded circle has a count */
/* What runs past the top's right edge is clipped, never a phone's page made wider (the top would widen with it). */
.topbar { overflow-x: clip; }
.topbar:has(.topmore) .mid { max-width: none; } /* circles folded for it: the pill takes what is left */
.topbar .mid > .twoprobe { position: absolute; visibility: hidden; white-space: nowrap; pointer-events: none; width: max-content; max-width: none; }
/* A story from 1100px (ruling): the whole screen. No rail's gutter and no chats beside it; the page and the box on the
   left, the party panel on the right, and Back to Play at the top left, where the account circle is hidden. */
.party { display: none; }
@media (min-width: 1100px) {
  body.instory { padding-left: 0; }
  body.instory .topbar, body.instory .topbar::before, body.instory .topbar::after { left: 0; }
  body.instory .drawer, body.instory .drawer-dim { display: none; }
  body.instory .topbar .talkbtn { display: none; } /* Table talk sits in the party panel */
  .main.nobar.twocol { max-width: none; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
  .main.nobar.twocol > .storycol { width: 100%; max-width: 816px; justify-self: center; }
  body.instory .composer.alone { left: 32px; right: calc(32px + 320px + 24px); }
  body.instory .composer.alone .box, body.instory .ideas { max-width: 816px; }
  .party { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(72px + var(--safe-top)); }
}

/* A note Harrox offers to keep, under the reply that made it */
.note { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); border: 1px dashed var(--glass-edge); font-size: 15px; --label2: var(--label2-on); }
.note .label { display: inline-flex; align-items: center; gap: 6px; color: var(--label2); font-weight: 600; }
.note p { margin: 0; }
.note .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note.done .noteline { color: var(--label2); }
.askcard .rows { align-self: stretch; min-width: 0; } /* Harrox does things: several matches, a list inside its card */
.kept { align-self: flex-start; padding-left: 8px; font-size: 15px; color: var(--label2); }
/* What was kept opens it (plan 8n, ruling 12): the line's words are a link, in the accent's words colour, underlined, 44px. */
:is(.kept, .noteline) a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* The pill's sheet (web/chat/pill.js): a setting's line, a switch, a segmented choice made of buttons */
.sgroup { display: flex; flex-direction: column; gap: 4px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 2px; }
.set .grow small { display: block; font-size: 13px; color: var(--label2); font-weight: 400; overflow-wrap: anywhere; }
.set .muted { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button { flex: 1; text-align: center; padding: 7px 14px; border-radius: var(--pill); font-size: 15px; font-weight: 600; color: var(--label2); }
.seg button.on { background: var(--surface2); color: var(--label); box-shadow: inset 0 0 0 2px var(--label); --label2: var(--label2-on); }
.switch::after { content: ""; position: absolute; inset: -7px -4px; } /* a 45px tap round the 31px switch (the look check) */
.switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: var(--r-row); background: var(--switch-off); box-shadow: inset 0 0 0 2px var(--switch-edge); transition: background .15s ease; }
.switch span { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.switch.on { background: var(--accent); box-shadow: none; }
.switch.on span { transform: translateX(20px); box-shadow: 0 0 0 2px var(--knob-edge), 0 1px 3px rgba(0, 0, 0, .35); }
.psearch input { width: 100%; min-height: 44px; padding: 0 16px; border-radius: var(--pill); font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--box-edge); }
.pillrow.on { border-color: var(--accent); }

/* Settings (web/settings/settings.js): a glass card a section, under its heading. The heading an address names is
   scrolled to with its card's top edge in view, and takes the keyboard from a script only (the ring shows when a keyboard
   brought it there, as :focus-visible decides).
   A row's words take the room they need: a choice too wide to sit beside them goes under them (a phone, a large text
   size). The card's polite line (prefs.js sayLine) is on show, so it is its own visible mirror. */
.setcard { gap: 10px; }
.sethead { scroll-margin-top: 16px; } /* html's scroll-padding keeps it clear of the top; this shows its card's edge */
.setcard .set { flex-wrap: wrap; }
.setcard .set > .grow { flex: 1 1 160px; }
/* A card's rows are iOS's grouped rows (the council's batch D, item 17): the card is the group, its rows run to its
   edges at 52px with 16px at each side, a hairline between them inset to the words, the line under a name 15/400. */
.setcard .sgroup { gap: 0; margin: 0 -16px; }
.setcard .sgroup > .set { position: relative; padding: 8px 16px; }
.setcard .sgroup > .set + .set::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; border-top: 1px solid var(--sep); pointer-events: none; }
/* Help's questions (web/settings/help.js): each opens and closes, inset like the rows, with the same line between. */
.setcard .sgroup.faq > details { position: relative; padding: 0 16px; }
.setcard .sgroup.faq > details + details::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; border-top: 1px solid var(--sep); pointer-events: none; }
.setcard .sgroup.faq > details > p { margin: 0 0 12px; }
.setcard .set .grow small { font-size: var(--t-sub); }
.setcard .set > .muted > .i:last-child { color: var(--label3); }
/* A row that ends in its chevron alone (Help, You and memory, Data and privacy) keeps it beside the words at any size: it
   is no value to put under them (at 150% on a phone it dropped to a line of its own, at the row's start). */
.setcard .set:has(> .muted:last-child > .i:only-child) { flex-wrap: nowrap; }
/* A value gone under its name that is still wider than the row (a long one at a large text size) wraps its words inside
   the card. Beside the name nothing changes: the row still breaks by the value's one-line width. */
.setcard .set > .muted { max-width: 100%; }
.setcard .set > .muted > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.setline { font-size: 15px; color: var(--label2); }
/* Usage (web/settings/usage.js): today's tokens in large numbers with "of 2M tokens" beside them, then the meter: a
   track (a field's well) with its fill as wide as the share, in the accent's glyph colour, the warning's from the note's
   share and the refusal's once it is used up (each 3:1 in a field: test/newui/states.test.js). The colour is never the
   only sign: the line under the meter says where the day stands in words, and the meter says its percent to a screen
   reader. The track wears a switch's edge, in the words' colour: no well reads against dark glass, and what is left of
   the day is the track still empty.
   Each day's rows fold away under Each day (Help's questions fold the same way), closer together than rows to tap:
   they only say numbers. Every size in px, which --size scales; nothing moves. */
.setcard .usage { gap: 10px; }
.setcard .udays > .set { min-height: 40px; padding: 4px 16px; }
.setcard .ubig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.setcard .ubig b { font-size: 28px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.setcard .ubig span { font-size: 15px; color: var(--label2); }
.umeter { display: block; height: 10px; border-radius: var(--pill); background: var(--fill); box-shadow: inset 0 0 0 1px var(--switch-edge); overflow: hidden; }
.umeter > i { display: block; height: 100%; border-radius: inherit; background: var(--accent-glyph, var(--accent)); }
.umeter.near > i { background: var(--warn-glyph); }
.umeter.out > i { background: var(--bad-glyph); }
/* Account (web/settings/account.js, pictures.js): a row is a button the card's width; a guest's card and the plan's tag;
   a face is a circle, the picture or the initials on their colour (data-css --c, as the old .portrait: dark words on
   it in Night and Day alike, aria-hidden, the name is beside it); the picture sheet's top (.picme) and the portraits to
   pick (.picpick), the picked one ringed in the accent and aria-pressed. Every size in px, which --size scales. */
.setcard button.set { width: 100%; text-align: left; }
.setcard .tag, .sheet .card .tag, .fbitem .tag, .wipcard .tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--pill); background: var(--tint); color: var(--accent-text); }
/* Friends across the age groups (Payton, 2026-10-30): Server › Safety's Flagged and Reports' "Across the age groups"
   wear the same tag, on a line of their own; the notice's four actions (Friends, someone under 18 only) are 44px. */
.agepair .tag, .dmreport .tag { display: inline-block; margin-bottom: 4px; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: var(--pill); background: var(--tint); color: var(--accent-text); }
.agenoticeacts { display: flex; flex-wrap: wrap; gap: 8px; }
.agenoticeacts .btn.sm { min-height: 44px; }
.sheet .card .display { margin: 0; font-size: 28px; font-weight: 700; }
.field textarea { font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); min-height: 88px; padding: 10px 14px; width: 100%; resize: vertical; }
.field textarea::placeholder { color: var(--placeholder); }
.setcard .set .picface, .picme .picface, .picpick .picface { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--c, var(--tint)); color: rgba(20, 14, 10, .8); font-weight: 700; font-size: 15px; }
.setcard .set .picface.pic, .picme .picface.pic, .picpick .picface.pic { background: var(--fill); }
.setcard .set .picface img, .picme .picface img, .picpick .picface img { width: 100%; height: 100%; object-fit: cover; }
.picme { display: flex; align-items: center; gap: 14px; }
.picme .picface.xl { width: 88px; height: 88px; font-size: 32px; }
.picme .pmeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.picme .picnote { margin: 0; }
.picpick { display: flex; flex-wrap: wrap; gap: 10px; }
.picpick .pickface { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; min-height: 44px; padding: 6px; border-radius: var(--r-row); border: 2px solid transparent; }
.picpick .pickface .picface { width: 56px; height: 56px; font-size: 20px; }
.picpick .pickface.on { border-color: var(--accent); background: var(--tint); }
.picpick .pickface small { font-size: 13px; color: var(--label2); }
/* Customize (web/settings/customize.js, paintings.js): a row's polite line under it takes no room while it says nothing;
   a choice too wide for a phone (five looks, a large text size) wraps onto a second line; a held button is faded and
   stays in the keyboard's order; a refusal in the bad words' colour (its bar is .error's). The accent's four colours
   are circles edged in the secondary words' colour, so Parchment shows on Day's glass, each inside a 44px target whose
   own edge rings the one picked in the words' colour, past a gap of the page's edge colour: the keyboard's ring (an
   outline and a halo, drawn outside the target) never covers it. Your own colour's box is as tall. The size's steps,
   its number between them and the slider under them. Themes' cards: the painting small over its name and line (Plain's
   is the look's own ground), the one worn ringed in the words' colour on the accent's tint. Every target 44px; every
   size in px, which --size scales; nothing moves. */
.setcard .sgroup > .setline:empty, .setcard .sgroup > .error:empty { margin-top: -4px; }
.setcard .seg { flex: 0 1 auto; flex-wrap: wrap; border-radius: var(--r-card); }
.setcard .seg button { min-height: 44px; }
.setcard [aria-disabled="true"] { opacity: .5; cursor: default; }
.setcard .error { font-size: 15px; color: var(--bad-text); }
.setcard input[type="color"] { flex: none; width: 64px; height: 44px; padding: 4px; border-radius: var(--r-ctl); border: 1px solid var(--label2); background: var(--fill); cursor: pointer; }
/* Harrox's own colour picker (web/settings/colorsheet.js): the square (saturation across, brightness up) over the hue
   set by setVar, its knob ringed in white and black so it shows on any colour, the hue strip, the hex row with the
   colour now, and the recent colours, each 44px to tap. */
.cpick .cpsv { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-ctl); background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--cp-hue, red)); touch-action: none; cursor: crosshair; }
.cpick .cpknob { position: absolute; left: var(--cp-x, 0); top: var(--cp-y, 0); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--cp-now); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000; pointer-events: none; }
.cpick .cphue { width: 100%; height: 44px; margin: 0; accent-color: var(--cp-now); }
.cpick .cphexrow { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.cpick .cphex { flex: 1 1 auto; min-width: 0; min-height: 44px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.cpick .cpchip, .cpick .cpsw { flex: none; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--label2); background: var(--cp-now); }
.cpick .cpsw { background: var(--cp-sw); padding: 0; cursor: pointer; }
.cpick .cpsws { display: flex; flex-wrap: wrap; gap: 8px; }
.accsws { display: flex; flex-wrap: wrap; gap: 10px; }
.accsw { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; }
.accsw::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid var(--label2); }
.accsw.sw-ember::before { background: #E0915A; }
.accsw.sw-arcane::before { background: #8E9BE8; }
.accsw.sw-parchment::before { background: #EFE3C8; }
.accsw.sw-mist::before { background: #A7ABBA; }
.accsw[aria-checked="true"] { border-color: var(--label); background: var(--edge); }
.sizer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 4px 2px; }
.sizer output { min-width: 64px; text-align: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sizer input[type="range"] { flex: 1 1 100%; min-height: 44px; margin: 0; accent-color: var(--accent); }
/* Which app a painting is for (paintings.js): the apps as pills, the one picked in the accent's words with its edge. */
.rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.rooms[hidden] { display: none; }
.rooms .pill { min-height: 44px; padding: 0 14px; }
.rooms .pill.on { color: var(--accent-text); border-color: var(--accent); background: var(--tint); }
.paints { display: grid; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 10px; }
.paint { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 6px 6px 8px; border-radius: var(--r-row); border: 2px solid transparent; text-align: left; }
.paint i { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-ctl); background: var(--ink) center / cover no-repeat; }
[data-look="day"] .paint i { background-color: var(--parchment); }
.paint b { font-size: 15px; font-weight: 600; }
.paint small { font-size: 13px; color: var(--label2); }
.paint.on { border-color: var(--label); background: var(--tint); }

/* Help (web/settings/help.js, feedback.js, whatsnew.js): the feedback sheet's heading; its Send held while a report is
   out, or after an answer was lost until the words change (faded, and it keeps the keyboard); the thanks under crisis
   help, with its check. What's new's updates: each its date, its title, then its lines under their headings. Every size
   in px, which --size scales; the words in the readable tokens, in Night and Day alike. */
.fbform .fbhead { font-size: 17px; font-weight: 600; }
.fbform [aria-disabled="true"] { opacity: .5; cursor: default; }
.fbthanks { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--label); }
.fbthanks .i { width: 18px; height: 18px; color: var(--ok-glyph); }
.news { display: flex; flex-direction: column; gap: 6px; }
.news .newsdate { font-size: 13px; color: var(--label2); }
.news h3 { font-size: 17px; font-weight: 600; }
.news .newsgroup { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--label2); }
.news ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--label); }

/* Security (web/settings/security.js, plan 7b): the Add a password and leak cards are wells in the card's glass
   (--fill, as Server's account card: every word on one reads at 4.5:1 in every look), the tag as Account's, the heading
   a card's. Every size in px, which --size scales; the button keeps its 44px. */
.setask { background: var(--fill); border-radius: var(--r-ctl); }
.setask h3 { font-size: 17px; font-weight: 600; }
/* A security key's row (web/settings/keys.js), the old one (public/app.css:2520-2523 .coderow, .rowacts): its name and
   its line take the row and wrap anywhere; Rename and Remove beside them as 44px chips (Server's codes' own), or under
   them at the right when there's no room. */
.keyrow { flex-wrap: wrap; }
.keyrow > .grow { flex: 1 1 auto; overflow-wrap: anywhere; }
.keyrow b { font-weight: 600; color: var(--label); }
.keyrow .rowacts { display: inline-flex; flex: none; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.keyrow .rowacts button.chip { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--label); }

/* Server (web/server/*.js, plan 7a): owners only, in the Mist accent (app.js ACCENTS). A screen is its heading, the old
   header's line under it, and on a People or System page a row of chips (.srvsub): the one here on the accent's tint and
   ringed in the words' colour, so it shows by more than its colour, and Feedback's count of new ones beside its name on
   the accent. Numbers line up. A row's status dot is only a mark beside its words (aria-hidden): ok and bad in their
   glyph colours, warn in --warn-glyph (Ember lifted to 3:1; Day's deepened one), anything else the secondary words' colour. Every target 44px;
   every size in px, which --size scales. */
.srv .set .muted { font-variant-numeric: tabular-nums; }
/* A row's value too wide to sit beside its name goes under it (a phone at 150%, or a long value), as Settings' rows do
   (.setcard .set): the name keeps 160px before a value would squeeze it, so its words never break one letter to a line,
   and a value on its own line wraps its words inside the card. */
.srv .set { flex-wrap: wrap; }
.srv .set > .grow { flex: 1 1 160px; }
.srv .set > .muted { white-space: normal; }
.srv .sgroup + .small { padding: 0 4px; }
.srvsub { display: flex; flex-wrap: wrap; gap: 8px; }
.srvsub .chip { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--label); }
.srvsub .chip[aria-current="page"] { background: var(--tint); color: var(--accent-text); border-color: transparent; box-shadow: inset 0 0 0 2px var(--label); }
.srvsub .chip i { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.sdot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--label2); }
.sdot.ok { background: var(--ok-glyph); }
.sdot.warn { background: var(--warn-glyph); }
.sdot.bad { background: var(--bad-glyph); }
/* Server's groups are glass cards (kit.js group), so their rows never lie on the bare painting. A screen's own lines
   that do (the header's line, its polite line, the note under its numbers) sit on the label's back, as the first
   screen's labels do (tokens.css --label-back: 4.5:1 over the brightest painting), rounded as a well is (--r-ctl): a
   one-line label still ends round, and a note that wraps on a phone or at 150% keeps every word on its back (a pill's
   radius bowed a paragraph into an oval, its corner words on the painting); a card's own lines keep its glass and take
   no back (the front page's card is a .stack too). The Overview's On now: its big
   number, then this hour, today and this week as three tiles, wells in its glass (contrast.test.js reads every word on
   --fill). Every size in px, which --size scales. */
.srv > p.muted, .srv > .stack:not(.card) > p.muted { align-self: flex-start; margin: 0; color: var(--label); padding: 2px 12px; border-radius: var(--r-ctl); background: var(--label-back); }
.srvbig { font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--label); font-variant-numeric: tabular-nums; }
.srvtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.srvtiles > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--fill); }
.srvtiles b { font-size: 22px; font-weight: 700; color: var(--label); font-variant-numeric: tabular-nums; }
.srvtiles span { font-size: 13px; color: var(--label); overflow-wrap: anywhere; }
/* Accounts (web/server/accounts.js) and an account's sheet (account.js): the find box and its button side by side, the
   Names to fix chip and the Apps chips as 44px targets, the one on (here, or given) on the accent's tint and ringed in the
   words' colour, so it shows by more than its colour (as .srvsub's); a row is a whole-width button; their badges are
   the house's small chips; a label that starts with its icon keeps its words beside it (here and on every Server
   screen); the Locked and Name to fix cards are wells in the sheet's glass; Delete's details folded under a 44px
   summary in the refusal's words colour. Every size in px, which --size scales. */
.srvfind { display: flex; gap: 8px; align-items: flex-end; }
.srvfind > .field { flex: 1 1 auto; min-width: 0; }
.srvfind > .btn { flex: none; min-height: 46px; }
.srv .chips, .acct .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.srv .chips .chip, .acct .chips button.chip { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--label); }
.srv .chips .chip[aria-current="page"], .srv .chips .chip[aria-pressed="true"], .acct .chips .chip[aria-pressed="true"] { background: var(--tint); color: var(--accent-text); border-color: transparent; box-shadow: inset 0 0 0 2px var(--label); }
.acct .chips button.chip[aria-disabled="true"], .acct .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.srv button.set { width: 100%; text-align: left; }
.srv .set .grow, .acct .acctname { overflow-wrap: anywhere; min-width: 0; }
.srv .label:has(> .i:first-child), .acct .label:has(> .i:first-child) { justify-content: flex-start; gap: 8px; }
.chips.acctbadges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
/* Server › Accounts' groups (web/server/accounts.js): a tick before each row, a group's head, a row of small controls. */
.acctpick { display: flex; align-items: center; gap: 8px; }
.acctpick > .set { flex: 1 1 auto; min-width: 0; }
.acctpick > input[type="checkbox"], .acctall > input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin: 11px; accent-color: var(--accent); }
.acctgrouphead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.acctgrouphead > h2.label { margin: 0; padding: 0; }
.acctall { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--label2); }
.acctbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.acctbar > .field { flex: 1 1 140px; min-width: 0; }
.acctbar > .btn { min-height: 44px; }
.acctgroup details > summary, .acctbulk details > summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.acctgroup details > summary::-webkit-details-marker, .acctbulk details > summary::-webkit-details-marker { display: none; }
.acctgroup details > summary > .i, .acctbulk details > summary > .i { width: 18px; height: 18px; margin-left: auto; color: var(--label2); }
.acctgroup details[open] > summary > .i, .acctbulk details[open] > summary > .i { transform: rotate(180deg); }
.acctbulk details > summary { color: var(--bad-text); }
.acct .acctname { font-size: 22px; font-weight: 700; color: var(--label); }
.acct > .card { background: var(--fill); border-radius: var(--r-ctl); }
.acct .mono, .fbitem .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.acct details > summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--bad-text); cursor: pointer; list-style: none; }
.acct details > summary::-webkit-details-marker { display: none; }
.acct details[open] > summary { margin-bottom: 12px; }
/* A refusal in the bad words' colour (its bar is .error's); empty, it stays in the page for a screen reader, with no gap of its own. */
.acct .error { font-size: 15px; color: var(--bad-text); }
.acct .error:empty { margin-top: -12px; }
/* Access codes (web/server/codes.js): the form's two choices side by side while there's room; a code's row with the
   whole code in monospace (.codefull: one long word, so it wraps anywhere) and its Copy and Cancel as 44px chips; a new
   code's sheet shows it large on a well in its glass, picked whole by a press; a held button or switch is faded (the
   keyboard stays on it); the front page's previews keep their words whole on a narrow screen; a refusal in the bad
   words' colour, as an account's. Every size in px, which --size scales. */
.codeform .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.codeform .check { display: flex; align-items: center; gap: 10px; min-height: 44px; } /* For a shop (Shop app plan, Task 3.3) */
.codefull { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--label); overflow-wrap: anywhere; }
.newcode .codefull { font-size: 20px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--fill); -webkit-user-select: all; user-select: all; }
.newcode .newcodehead { font-size: 22px; font-weight: 700; color: var(--label); }
.coderow .rowacts { display: inline-flex; flex: none; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.coderow .rowacts button.chip { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--label); }
.srv .btn[aria-disabled="true"], .srv button.chip[aria-disabled="true"], .srv .switch[aria-disabled="true"], .srv button.set[aria-disabled="true"], .newcode .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.frontcard > .btn { align-self: flex-start; max-width: 100%; white-space: normal; text-align: left; }
.srv .error { font-size: 15px; color: var(--bad-text); }
.srv .error:empty { margin-top: -12px; }
/* Feedback (web/server/feedback.js) and Reports (reports.js), the old rows (public/app.css:2623-2644) on the glass: a
   row's words take the row, a report's or a bug's in bold, its kind's tag (the house's) over a bug's or an idea's;
   a bug's words keep their line breaks; long words, the screen and the browser's own words (in monospace, .acct's)
   wrap anywhere. Done, Hold, Release and Find @someone on Accounts are the house's 44px chips (.srv .chips) beside the words,
   or under them when there's no room (.srv .set). Every size in px, which --size scales. */
.fbitem .tag { display: inline-block; margin-bottom: 6px; }
.fbitem b { display: block; margin-bottom: 2px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.dmreport b { display: block; font-weight: 600; overflow-wrap: anywhere; }
/* The Front door (web/server/door.js), the old page's (public/app.css:2645-2680) on the glass: what the numbers mean, a
   line after each dot; the range's two chips, the one picked as .srvsub's is; the chart (.dchart), one tab stop whose
   four rows (.dgrow) share the hours or days across, each scaled to its own most (.dmax, top left), the hour or day
   picked (.dslot.on) on the accent's tint in every row and said in the polite line above (.dread); people's bars in the
   accent's glyph colour, wrong tries and lockouts (.dgrow.warn) in --warn-glyph, each 3:1 on the glass and the tint
   (states.test.js); the axis under them; the numbers as a table folded under a 44px summary with the house's turning
   chevron (.cform's), its cells closer and its head smaller in a box too narrow for it (a phone at 130% or 150%), so
   it fits; and a bar under each country, device and browser for its share (.dshare .dbar). Every size in px, which
   --size scales. */
.dmeans p { margin: 0; line-height: 1.45; color: var(--label); }
.dmeans .sdot { margin-right: 8px; }
.dchead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.dchart { display: flex; flex-direction: column; gap: 12px; border-radius: var(--r-ctl); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.dread { min-height: 2.9em; margin: 0; color: var(--label2); font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.dread b { color: var(--label); font-weight: 600; }
.dgrow { display: flex; flex-direction: column; gap: 4px; }
.dhead { display: flex; justify-content: space-between; gap: 8px; color: var(--label2); font-size: 13px; }
.dhead b { color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; }
.dplot { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); height: 46px; padding-top: 12px; border-bottom: 1px solid var(--sep); }
.dplot::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; border-top: 1px solid var(--sep); pointer-events: none; }
.dmax { position: absolute; top: 0; left: 1px; color: var(--label2); font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }
.dslot { display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; border-radius: 3px 3px 0 0; cursor: pointer; }
.dslot.on { background: var(--tint); }
.dslot i { width: 100%; max-width: 14px; border-radius: 3px 3px 0 0; background: var(--accent-glyph); }
.dgrow.warn .dslot i { background: var(--warn-glyph); }
.daxis { position: relative; height: 14px; color: var(--label2); font-size: 11px; font-variant-numeric: tabular-nums; }
.daxis span { position: absolute; top: 0; white-space: nowrap; }
.daxis .first { left: 0; }
.daxis .mid { transform: translateX(-50%); }
.daxis .last { right: 0; }
.dtable > div { max-height: 320px; overflow: auto; border-radius: var(--r-ctl); background: var(--fill); container-type: inline-size; }
.dtable table { min-width: 100%; border-collapse: collapse; font-size: 13px; color: var(--label); font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { padding: 8px; border-bottom: 1px solid var(--sep); text-align: left; }
.dtable thead th { position: sticky; top: 0; background: var(--surface2); color: var(--label2); font-size: 12px; font-weight: 600; --label2: var(--label2-on); }
.dtable th[scope="row"] { font-weight: 500; }
@container (max-width: 260px) { .dtable table { font-size: 12px; } .dtable th, .dtable td { padding: 6px 3px; } .dtable thead th { font-size: 10px; } }
.dshare .dbar { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--accent-glyph); }
/* App switches and In the works (web/server/switches.js, works.js): a refusal said under a switch's own words, on a line
   of its own with the house's bar (.error); a resting part's warning (the old .srv .warn, public/app.css:2180-2182) in
   the label's colour beside its shield in --warn-glyph (Ember lifted to 3:1), so it shows by more than its colour; In
   the works' cards (the old .wipcard, :2541-2545) as rows in their group's glass: an icon on the accent's tint, the name,
   Switched off in the house's tag, its words, a 44px link while Features in the works is on. Every size in px, which
   --size scales. */
.srv .set .grow .error { display: block; margin-top: 0; }
.srv .worksgroup > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; } /* In the works' groups fold (works.js worksBody) */
.srv .worksgroup > summary::-webkit-details-marker { display: none; }
.srv .worksgroup > summary > .muted { margin-left: auto; font-variant-numeric: tabular-nums; }
.srv .worksgroup > summary > .i { width: 18px; height: 18px; color: var(--label2); }
.srv .worksgroup[open] > summary > .i { transform: rotate(180deg); }
.srv .guards { display: contents; } /* the guarded parts' warnings lie in the card as they would without it (.linkbox) */
.srv p.warn, .srv .set .grow .warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 0 4px; font-size: 13px; color: var(--label); }
.srv .warn .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--warn-glyph); }
.wipcard { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 2px; color: var(--label); text-decoration: none; }
.wipcard .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); flex: none; }
.wipcard .grow { min-width: 0; overflow-wrap: anywhere; }
.wipcard .grow b { font-size: 15px; font-weight: 600; }
.wipcard .grow small { display: block; margin-top: 2px; font-size: 13px; color: var(--label2); }

/* Three things to try (web/home/first.js): one card, a row each; a done row is struck back and shows the check */
.tryit { gap: 6px; }
.tryit .label { display: flex; align-items: center; justify-content: space-between; }
.trying { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; padding: 4px 0; }
.trying .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-glyph); flex: none; }
.trying .grow b { display: block; font-size: 15px; font-weight: 600; }
.trying .grow span { display: block; font-size: 13px; color: var(--label2); }
.trying.done { opacity: .6; }
.trying.done .grow b { text-decoration: line-through; }

/* A large text size (web/size.js) gives a phone the room of a narrow one: the box and the strips measure their own room
   (container queries see the shell's px; media queries see only the screen). An Attention row's ask goes under its words
   (its close stays beside them), and the box's pill keeps only its face (its words stay for a screen reader;
   a tap opens it as before), so the words you type keep their room. */
#strips, .composer { container-type: inline-size; }
/* From 125% a row's name takes two lines before it is cut short. */
.bigtext .pillrow .grow b, .bigtext .list .item .grow b, .bigtext .part .tile .grow b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* The bar at a large text size on a phone (spec 13: the bar's labels drop before its icons do; bar.js fitTabs drops the
   labels as its room runs out): a tab may narrow to 40px. Beside the round action the bar's tabs have w / s - 104px
   (its sides, its padding and the action's 84px), and five 44px tabs need 220: a 360 phone runs out from 115% text
   (209px), a 375 from 120% (208.5px; at 150% the bar has 146px). So from 115% (web/size.js liftbar, plan 5b ruling 1)
   the action rises over the bar's right end and the bar takes the whole width; on a 375 at 115-119% (222px) that is
   room it had, and does no harm. A box (Work Home's) rises over the action in turn, and the page keeps room under its
   last row for them all. */
@media (max-width: 1099px) {
  .liftbar .bar a { min-width: 40px; }
  .liftbar .bar.withaction { right: 12px; }
  .liftbar .action { bottom: calc(12px + var(--safe-bottom) + var(--bar-h) + 10px); }
  .liftbar body:not(.bare, .instory):has(> .action) .composer { bottom: calc(2 * var(--bar-h) + 32px + var(--safe-bottom)); }
  .liftbar body:not(.bare, .instory):has(> .action) .composer::before { bottom: calc(-1 * (2 * var(--bar-h) + 32px + var(--safe-bottom))); }
  .liftbar body:not(.bare, .instory):has(> .action) .main { padding-bottom: calc(2 * var(--bar-h) + 50px + var(--safe-bottom)); }
  .liftbar body:not(.bare, .instory):has(> .action) .main.withbox { padding-bottom: calc(2 * var(--bar-h) + 32px + var(--safe-bottom) + var(--composer-h, 96px) + 24px); }
  html.liftbar:has(> body:not(.bare, .instory) > .action) { scroll-padding-bottom: calc(2 * var(--bar-h) + 50px + var(--safe-bottom)); }
  html.liftbar:has(> body:not(.bare, .instory) > .action):has(.main.withbox) { scroll-padding-bottom: calc(2 * var(--bar-h) + 32px + var(--safe-bottom) + var(--composer-h, 96px) + 24px); }
}
/* From 125% each strip takes two lines at most (items 62, 92; fix round 1, the controller's ruling): its words end in
   an ellipsis beside its button and close, their title holds the whole sentence and a tap on them opens what the button
   does (strips.js); the waiting strip shows one row, whose Look opens the rest (drawWaiting, compact). */
.bigtext .strip .grow { flex: 1; min-width: 0; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bigtext .strip li { flex-wrap: nowrap; }
@container (max-width: 320px) { .composer .mode { padding: 0 9px; } .composer .mode span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@container (max-width: 320px) { .composer textarea { overflow-x: hidden; } .composer textarea::placeholder { white-space: nowrap; } }
/* Think's chip on a phone (the box under 480px): only its bulb, as the old app's did when its row was tight (its name
   stays for a screen reader: aria-label). And where Home's chat has all three of its circles in the row (New chat, Show,
   Full screen), there is no room left for the pill's words beside it: the pill keeps only its face, as above. */
@container (max-width: 480px) { .composer .tools .thinkchip { padding: 0 8px; } .composer .tools .thinkchip::after { inset: -4px; } .composer .tools .thinkchip span { display: none; } }
@container (max-width: 480px) { .composer .tools:has(.thinkchip):has(.boxextra .circ:not([hidden]) ~ .circ:not([hidden])) .mode { padding: 0 9px; }
  .composer .tools:has(.thinkchip):has(.boxextra .circ:not([hidden]) ~ .circ:not([hidden])) .mode span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* A finger's targets (accessibility.md 10): 44px at least on a touch screen, where these were 31 to 40. A switch keeps its
   look; its target reaches past it. */
@media (pointer: coarse) {
  .composer .mode, .btn.sm, .label a, .label button, .websrc summary, .pill, .seg button { min-height: 44px; }
  .composer .send, .strip .x, .chat .crisis .x, .group .circ { width: 44px; height: 44px; }
  .switch::before { content: ""; position: absolute; inset: -7px -2px; }
}

/* Wares as pictures (plan 4d, web/library/wares.js): the Market, a Book's market and a story's shop box. As many tiles a
   row as the room allows (two on a phone; the columns follow the text size), each its thing's picture with its price and
   Buy on it and its name under. A rarity is a colour on the tile's edge, never alone: its word is in the sub line. The
   price and why-not sit on the picture in the glass's own colours, so they read in Night and Day alike. */
.wares { --r-common: var(--glass-edge); --r-fine: var(--ok); --r-rare: var(--arcane); --r-epic: color-mix(in srgb, var(--arcane) 55%, var(--bad)); --r-legendary: var(--accent); --r-mythic: var(--bad);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 42%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ware { --rc: var(--r-common); position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r-row); background: var(--surface); border: 1px solid color-mix(in srgb, var(--rc) 60%, var(--glass-edge)); --label2: var(--label2-on); }
.ware.r-fine { --rc: var(--r-fine); } .ware.r-rare { --rc: var(--r-rare); } .ware.r-epic { --rc: var(--r-epic); }
.ware.r-legendary { --rc: var(--r-legendary); } .ware.r-mythic { --rc: var(--r-mythic); }
.ware .pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: var(--fill); }
.ware .pic img { width: 100%; height: 100%; object-fit: cover; }
.ware .kart { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); }
.ware .kart .i { width: 40%; height: 40%; max-width: 56px; max-height: 56px; }
.ware .on { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.ware .price { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--pill); background: var(--surface2); color: var(--label); font-size: 15px; font-variant-numeric: tabular-nums; --label2: var(--label2-on); }
.ware .price .i { width: 14px; height: 14px; color: var(--accent-glyph); }
.ware .why { padding: 4px 8px; border-radius: var(--pill); background: var(--surface2); color: var(--label2); font-size: 13px; --label2: var(--label2-on); }
.ware .on button { min-height: 44px; }
.ware .name { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.ware .name b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; color: var(--label); }
.ware .name small { font-size: 13px; line-height: 1.3; color: var(--label2); }
.ware.locked .pic { opacity: .55; }
/* The purse at the top of every place you spend: a pill to Your purse, a finger's 44px tall. */
.pursepill { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border-radius: var(--pill); flex: none; background: var(--tint); color: var(--label); text-decoration: none; font-size: 13px; }
.pursepill .i { width: 16px; height: 16px; color: var(--accent-glyph); }
.pursepill b { font-size: 15px; font-variant-numeric: tabular-nums; }
.pursepill span { color: var(--label2); }
/* The Market's tab row (web/library/market.js): Shelves' 44px chips, the tab on show in the accent's tint. */
.lrow > nav .chip[aria-current="page"] { background: var(--tint); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.lrow > nav .chip .i { width: 16px; height: 16px; flex: none; }
/* Your purse (web/library/purse.js): its parts glass cards; the number large; a row's words wrap at any text size (no
   cut-off name); a thing waiting its picture or drawn-in-code look in a 44px square; what was said under the crisis
   slot, for the eye (its live region is .sr). The ledger: each line its amount ("+" in, "−" out, so the colour is never
   the only sign), what it was and its small line; lines in the ok colour, lines out in the second label colour, both
   tokens of Night and Day. Every size in px, which the shell's zoom (--size) scales; every control 44px at least. */
.purse .say { margin: 0; padding: 0 4px; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.purse .say:empty { display: none; }
.purse .stats { margin-top: 0; }
.purse .stat b { font-size: 34px; }
.purse .stat { font-size: 15px; }
.purse h3 { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.purse .list .item .grow b { white-space: normal; overflow-wrap: anywhere; }
.purse .list .item .grow small, .purse .row .grow small { display: block; font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.purse .row .initial { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 15px; }
.purse .row .initial .i { width: 18px; height: 18px; }
.purse .frrow .btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
:is(.purse, .mkbook, .mksell, .mksheet, .kitcard) .thumb { flex: none; width: 44px; height: 44px; border-radius: var(--r-ctl); overflow: hidden; display: grid; place-items: center; background: var(--fill); }
:is(.purse, .mkbook, .mksell, .mksheet, .kitcard) .thumb img { width: 100%; height: 100%; object-fit: cover; }
:is(.purse, .mkbook, .mksell, .mksheet, .kitcard) .thumb .kart { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); }
:is(.purse, .mkbook, .mksell, .mksheet, .kitcard) .thumb .i { width: 22px; height: 22px; }
.purse .mkform .fld > span:first-child { font-size: 15px; }
.purse .mkform > .btn { align-self: flex-start; }
.purse .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held while its answer is out */
.ledger { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ledger li { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--sep); }
.ledger li:first-child { border-top: 0; }
.ledger .in { --amt: var(--ok-text); }
.ledger .out { --amt: var(--label2); }
.ledger .amt { flex: none; min-width: 48px; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--amt, var(--label)); }
.ledger .grow b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ledger .grow small { display: block; font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
/* The Market tab (web/library/market.js) and a Book's market (marketbook.js). The search a glass form: its fields
   Create's, "Hide everyday shop items" a 44px row with its small line under it, Search at the start. Books with a market
   a row of 44px chips that wrap. What a Buy, a sale or a switch said under the crisis slot, for the eye (its live region
   is .sr). In the sheet: each shop a part under a line, its name and who keeps it wrapping at any text size; a fold
   (Sell to it, Where its things come from) a 44px summary whose chevron turns; a stash row's picture in a 44px square;
   the frozen line in the bad colour beside its words. A control whose answer is out looks held. Tokens of Night and
   Day only; every size in px, which the shell's zoom (--size) scales. */
.mkform { gap: 14px; }
.mkhide { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 0; color: var(--label); font-size: 15px; font-weight: 600; cursor: pointer; }
.mkhide input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.mkhide > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mkhide small { font-size: 13px; font-weight: 400; color: var(--label2); overflow-wrap: anywhere; }
.mkform > .btn { align-self: flex-start; }
/* Market's search (market.js; Payton's iPhone, 2026-11-01): one light box that searches as you type, its magnifier at
   the left, and Filters beside it (Discover's button and sheet, below). No label over it: the box says what it is. */
.mksearchrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mksearch { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 6px 0 14px; border-radius: var(--pill);
  background: var(--surface2); --label2: var(--label2-on); border: 1px solid var(--box-edge); }
.mksearch .i { flex: none; width: 18px; height: 18px; color: var(--label2); }
.mksearch input { flex: 1 1 auto; min-width: 0; min-height: 44px; font: inherit; color: var(--label); background: none; border: 0; -webkit-appearance: none; appearance: none; }
.mksearchrow > .dfilterbtn { flex: none; }
/* On a phone Filters is its icon (and its count): the box keeps room for its whole placeholder. Its name stays its label. */
@media (max-width: 480px) {
  .mksearchrow > .dfilterbtn { min-width: 46px; min-height: 46px; padding: 0 12px; }
  .mksearchrow > .dfilterbtn > span:not(.dcount) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.mkbooks { display: flex; flex-wrap: wrap; gap: 8px; }
.mkbooks .chip { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--label); background: var(--raised); cursor: pointer; white-space: normal; text-align: left; }
:is(.market, .mkbook, .mksheet) .say { margin: 0; padding: 0 4px; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
:is(.market, .mkbook, .mksheet) .say:empty { display: none; }
:is(.market, .mkbook, .mksheet) .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held while its answer is out */
.market > .stack > .card > .btn, .mkbook .stack > .btn:not(.block) { align-self: flex-start; max-width: 100%; white-space: normal; }
.mkshop { padding-top: 12px; border-top: 1px solid var(--sep); }
.mkshop > .row { flex-wrap: wrap; gap: 4px 10px; }
.mkshop h3, .mkbook h3, .mksheet h3 { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.mkshop .row small { font-size: 13px; overflow-wrap: anywhere; }
.mkbook .bad { margin: 0; font-size: 15px; color: var(--bad-text); }
:is(.mkbook, .mksell, .mksheet) .list .item .grow b { white-space: normal; overflow-wrap: anywhere; }
:is(.mkbook, .mksell, .mksheet) .list .item .grow small { display: block; font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.mkfold > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent-text); cursor: pointer; list-style: none; }
.mkfold > summary::-webkit-details-marker { display: none; }
.mkfold > summary > .i { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--label2); }
.mkfold[open] > summary > .i { transform: rotate(180deg); } /* the cue: down while folded, up while open */
/* What you sell (web/library/marketsell.js): your listings a list of rows, each its picture in a 44px square, its name
   and its line wrapping at any text size, its price by the coin and Take off; each shop of yours a part under a line,
   its buttons a row of 44px controls that wraps, Close in the danger colour beside its word. Its sheets (Add to Market,
   a thing's, a shop's) Create's fields, each heading wrapping, what was said under the form's line for the eye (its live
   region is .sr). Tokens of Night and Day only; every size in px, which the shell's zoom (--size) scales. */
.mksell .btns { flex-wrap: wrap; gap: 8px; }
.mksell .btns .btn { max-width: 100%; white-space: normal; }
.mksell .price { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mksell .price .i { width: 16px; height: 16px; color: var(--accent-glyph); }
.mksheet .mkform > .btn { max-width: 100%; white-space: normal; }

/* Discover (web/library/discover.js): the kinds and the filters rows of 44px chips on glass that wrap, the one on show
   in the accent's tint, a thin bar between Trending or Newest and the ratings; each row's heading its icon and name, See
   all a 44px link beside it; the cards a grid of as many as there is room for (the shell's zoom makes its px larger, so a
   large text size gets fewer, wider cards), each its cover (the kind's icon on its colour, or a Book's tint, with the
   kind's word under it, so a colour is never the only sign), its name and lines wrapping at any text size, and its + a
   44px circle on the cover's corner, held while its answer is out, the check in its place once saved. The Featured card
   a glass row whose cover and words go under each other where it is narrow. What a Save said under the crisis slot, for
   the eye (its live region is .sr). Tokens of Night and Day only; every size in px, which the shell's zoom scales. */
.discover .say { margin: 0; padding: 0 4px; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.discover .say:empty { display: none; }
.discover [role="search"] .fld { position: relative; } /* the box's search icon inside it, at its start, as the old one (discover.js:114) */
.discover [role="search"] .fld > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--label2); pointer-events: none; }
.discover [role="search"] .fld input { padding-left: 46px; }
.dkinds, .dfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:is(.dkinds, .dfilters) .chip { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--label); background: var(--raised);
  white-space: normal; text-decoration: none; }
:is(.dkinds, .dfilters) .chip[aria-current="true"] { background: var(--tint); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.dfilters > span[aria-hidden="true"] { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--sep); }
.discover .label h2 { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 22px; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }
.discover .label h2 .i { width: 18px; height: 18px; flex: none; color: var(--accent-glyph); }
.discover .label a { min-height: 44px; padding: 0 4px; }
.discover > .muted .i { width: 16px; height: 16px; vertical-align: -3px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dcard { position: relative; display: flex; min-width: 0; border-radius: var(--r-card); background: var(--surface); --label2: var(--label2-on); }
.dcard .dopen { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 44px; padding: 10px 10px 12px; border-radius: inherit; color: var(--label); text-align: left; }
.dcover { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 4px; border-radius: var(--r-ctl); color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 20%, var(--fill)); }
.dcover .i { width: 36px; height: 36px; }
.dcard .dopen > b { font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.dcard .dsub { font-size: 13px; line-height: 1.3; color: var(--label2); overflow-wrap: anywhere; }
.discover .dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dcard .dby { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.dcard .dby .i { width: 14px; height: 14px; }
.dcard .dsave { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--raised); color: var(--label); cursor: pointer; }
.dcard .dsave .i { width: 20px; height: 20px; }
.dcard .dsave[aria-disabled="true"] { opacity: .6; cursor: default; } /* held while its answer is out */
.dcard .dsave.done { color: var(--ok-glyph); cursor: default; }
.dhero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; width: 100%; color: var(--label); text-align: left; }
.dhero .dcover { flex: none; width: 120px; margin: 0; }
.dhero .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 160px; }
.dhero .label { justify-content: flex-start; gap: 6px; padding: 0; color: var(--accent-text); }
.dhero .label .i { width: 16px; height: 16px; }
.dhero b { font-size: 22px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.dhero small { font-size: 15px; color: var(--label2); overflow-wrap: anywhere; }

/* Discover's preview and Report (web/library/discoverpeek.js), in the shell's sheet: its top, the cover beside its words
   and under them where it is narrow; its rows, each a label over its words, wrapping at any text size; the maker's row a
   link at least 52px tall; its buttons wrap (their words wrap too, so no text runs out of a button at 150%), each at
   least 44px, held while an answer is out, the saved check in --ok beside its words; what a tap said under them, for the
   eye (its live region is .sr). Tokens of Night and Day only; every size in px, which the shell's zoom scales. */
.dpeek .dtop { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dpeek .dtop .dcover { flex: none; width: 96px; margin: 0; }
.dpeek .dtop > .stack { flex: 1 1 160px; min-width: 0; gap: 6px; }
.dpeek .label { justify-content: flex-start; padding: 0; overflow-wrap: anywhere; }
.dpeek .dtop .label { color: var(--label2); }
.dpeek .dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dpeek .dmeta small { font-size: 13px; color: var(--label2); }
.dpeek .prow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dpeek .prow .label { font-size: 13px; color: var(--label2); }
.dpeek .prow p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--label); overflow-wrap: anywhere; }
.dpeek .prow a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); }
.dpeek .prow p .chip { margin-left: 8px; vertical-align: middle; } /* Set in's Official, after its Book's link */
.dpeek .dmaker { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: var(--r-row); background: var(--fill); color: var(--label); text-decoration: none; }
.dpeek .dmaker .grow b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.dpeek .dmaker .i { width: 18px; height: 18px; color: var(--label2); }
.dpeek .dacts { flex-wrap: wrap; gap: 8px; }
.dpeek .btn { max-width: 100%; height: auto; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; }
.dpeek .btn .i { flex: none; width: 18px; height: 18px; }
.dpeek .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held while its answer is out */
.dpeek .dsaved { color: var(--ok-text); cursor: default; }
.dpeek > .btn.quiet { align-self: flex-start; }
.dpeek .laterbtn { padding: 0 14px; border-radius: var(--pill); background: var(--raised); }
.dpeek .say { margin: 0; padding: 0 4px; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.dpeek .say:empty { display: none; }

/* A Book's page (web/library/book.js): its hero a glass card, its mark (the Book's tint, its name always beside it, so a
   colour is never the only sign) beside its words and over them where it is narrow, its name the large title wrapping
   at any text size; its parts' row 44px links on glass that wrap, the part on show in the accent's tint; Living here's
   line with its health word (Down in the danger colour, beside the word); its buttons rows of 44px controls that wrap,
   their words wrapping too, held while an answer is out, Saved pressed in the accent's tint; its mood's steps from
   Peaceful to Chaos a row that wraps, the one now in the accent's tint and bold, its event beside a bell; what a tap said
   under the crisis slot, for the eye (its live region is .sr, kept in the page while empty so it is heard). Tokens of
   Night and Day only; every size in px, which the shell's zoom (--size) scales. */
.bookpage > .sr:empty { display: block; }
.bookpage .say { margin: 0; padding: 0 4px; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.bookpage .say:empty { display: none; }
.bookhero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.bookhero .dcover { flex: none; width: 120px; margin: 0; }
.bookhero > .stack { flex: 1 1 200px; min-width: 0; gap: 6px; }
.bookhero .label { justify-content: flex-start; padding: 0; color: var(--label2); overflow-wrap: anywhere; }
.bookhero .ltitle { padding: 0; overflow-wrap: anywhere; }
.bookhero .dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.bookhero p { font-size: 15px; line-height: 1.45; color: var(--label); overflow-wrap: anywhere; }
.bookparts { display: flex; flex-wrap: wrap; gap: 8px; }
.bookparts a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--pill); font-size: 15px; font-weight: 600; color: var(--label);
  background: var(--surface); text-decoration: none; --label2: var(--label2-on); }
.bookparts a .i { width: 18px; height: 18px; flex: none; }
.bookparts a[aria-current="page"] { background: var(--tint); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.bookpage .card h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }
.bookpage .card h2 .i { width: 18px; height: 18px; flex: none; color: var(--accent-glyph); }
.bookspot { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--label); overflow-wrap: anywhere; }
.bookspot > .i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--label2); }
.bookhp { display: inline-flex; padding: 0 8px; border-radius: var(--pill); background: var(--fill); font-size: 13px; font-weight: 600; color: var(--label2); }
.bookhp.down { color: var(--bad-text); }
.bookacts { flex-wrap: wrap; gap: 8px; }
.bookacts .btn { max-width: 100%; height: auto; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; }
.bookacts .btn .i { flex: none; width: 18px; height: 18px; }
.bookacts .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held while its answer is out */
.bookacts .btn[aria-pressed="true"] { background: var(--tint); color: var(--accent-text); }
.bookpage .card small.muted { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.bookmoodtop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.bookmoodtop b { font-size: 17px; color: var(--accent-text); overflow-wrap: anywhere; }
.bookmood ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.bookmood li { flex: 1 1 80px; padding: 6px 10px; border-radius: var(--r-cover); background: var(--fill); font-size: 13px; color: var(--label2); text-align: center; overflow-wrap: anywhere; }
.bookmood li[aria-current="true"] { background: var(--tint); color: var(--accent-text); font-weight: 700; }
.bookmood p { font-size: 15px; line-height: 1.45; color: var(--label); overflow-wrap: anywhere; }
.bookevent { display: flex; align-items: flex-start; gap: 8px; }
.bookevent .i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-glyph); }
/* A Book's other parts (plan 4d Task 9): a notebook's row, a shop, a person, a rule, a story's door, its lore and its
   Guide pages; and any notebook in a sheet. Each tap target 44px; text in the tokens, so both looks read it. */
.bookpart { min-width: 0; }
.bookrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); text-align: left; font: inherit; }
button.bookrow { cursor: pointer; }
.bookrow .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bookrow b { font-size: 15px; overflow-wrap: anywhere; }
.bookrow small { font-size: 13px; line-height: 1.4; color: var(--label2); overflow-wrap: anywhere; }
.bookrow > .i { width: 18px; height: 18px; flex: none; color: var(--label2); }
.bookshop { padding: 10px 0; border-top: 1px solid var(--sep); }
.bookshop:first-of-type { border-top: 0; }
.bookshop b { font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.bookshop.shut .wares { opacity: .7; }
.bookrulehead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.bookrulehead .muted { font-size: 15px; }
.bookdoor { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; padding: 12px 14px; border-radius: var(--r-row); background: var(--surface); --label2: var(--label2-on); }
.bookdoor.hidden { opacity: .7; border-style: dashed; }
.bookdoor .arch { display: grid; place-items: center; flex: none; width: 40px; height: 48px; border-radius: 20px 20px 6px 6px; background: var(--tint); color: var(--accent-glyph); }
.bookdoor .arch .i { width: 20px; height: 20px; }
.bookdoor .grow { flex: 1 1 200px; min-width: 0; gap: 4px; }
.bookdoor b { font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.bookdoor small { font-size: 13px; line-height: 1.4; color: var(--label2); overflow-wrap: anywhere; }
.bookdoor .runs { color: var(--label2); }
.bookdoor .bookacts { flex: 1 1 100%; justify-content: flex-end; }
.bookdoor .btn, .booknote .btn, .bookform .btn, .bookpart .snag .btn, .booknotes .snag .btn { min-height: 44px; }
:is(.bookdoor, .booknote, .bookform, .snag) .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held while its answer is out */
.bookdoors .card.flat p { font-size: 15px; }
.lore { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.45; color: var(--label); }
.lore li { overflow-wrap: anywhere; }
.lore .lock { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--accent-glyph); }
.lore .lock .i { width: 16px; height: 16px; }
.booknote { gap: 6px; }
.booknote > b { font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.booknote .btn { align-self: flex-start; }
.bookmd { font-size: 15px; line-height: 1.5; color: var(--label); overflow-wrap: anywhere; }
.bookmd :is(p, ul, ol, blockquote, pre) { margin: 0 0 8px; }
.bookform :is(input, textarea) { font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); min-height: 46px; padding: 10px 14px; width: 100%; min-width: 0; }
.bookform textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.bookform :is(input, textarea)::placeholder { color: var(--placeholder); }
.bookfold > summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent-text); cursor: pointer; }
.booknotes h3 { font-size: 17px; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }

/* Between the Pages (plan 4d Task 10, between.js): the sheet's form is Create's (.cform .fld), its Book's name a
   heading; the wandering strip (wander.js) over a wandering table's story: its places in a row that scrolls sideways
   inside itself, you-are-here marked in words and by its border, who's here as faces, and its actions. Tokens of both
   looks; every size in px, which --size scales; every target at least 44px tall; no text in a box of fixed height. */
.betweensheet h3, .wbperson h3 { font-size: 17px; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }
.betweenform > .btn, .wbperson .btn { min-height: 44px; height: auto; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; }
.betweenform .fld small a { color: var(--accent-text); font-weight: 600; }
:is(.betweenform, .wbperson, .wander) .btn[aria-disabled="true"], .wander [aria-disabled="true"] { opacity: .6; cursor: default; } /* held while its answer is out */
.wander { gap: 10px; min-width: 0; }
.wander > .say { margin: 0; } .wander > .say:empty { display: none; } /* folded: one line, no gap of its own */
.wbhead { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; color: var(--label2); overflow-wrap: anywhere; }
.wbhead b { color: var(--label); }
.wbhead .i { width: 16px; height: 16px; flex: none; color: var(--accent-glyph); }
.wbwhere { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wbwhere img { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--r-ctl); }
.wbwhere figcaption { font-size: 13px; color: var(--label2); }
.wbmap { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; }
.wbplace { flex: 0 0 auto; width: 132px; min-height: 44px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; text-align: left; color: var(--label);
  background: var(--fill); border-radius: var(--r-ctl); cursor: pointer; }
.wbplace.here { border: 2px solid var(--accent); background: var(--tint); cursor: default; }
.wbpic { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; border-radius: var(--r-cover); background: var(--surface); overflow: hidden; --label2: var(--label2-on); }
.wbpic img { width: 100%; height: 100%; min-height: 64px; object-fit: cover; }
.wbph .i { width: 24px; height: 24px; color: var(--label2); }
.wbhere { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; }
.wbname { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.wbplace small { font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.wbfaces, .wbstories { display: flex; flex-wrap: wrap; gap: 8px; }
.wbface { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border-radius: var(--pill); background: var(--fill); color: var(--label); cursor: pointer; }
.wbav { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--accent-glyph); font-size: 13px; font-weight: 700; }
.wbfname { display: flex; flex-direction: column; text-align: left; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.wbfname small { font-size: 13px; font-weight: 400; color: var(--label2); }
.wbstories .chip { min-height: 44px; padding: 6px 14px; font-size: 15px; color: var(--label); cursor: pointer; white-space: normal; text-align: left; }
.wbstories .chip .i { width: 16px; height: 16px; flex: none; }
.wbnone { margin: 0; }

/* The Library notebook and a game's page in it (plan 4d Task 11): its cover, search and tabs; a row (a game, a page, a
   character) with its dot, its lines and when; a tab's page; a game's parts. Tokens only, so both looks hold; every
   link a row or a 44px target; px under html's zoom, so --size scales them. */
.nbcover { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.nbcover h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }
.nbsearch .fld { flex-direction: row; align-items: center; gap: 8px; }
.nbsearch .fld .i { width: 18px; height: 18px; flex: none; color: var(--label2); }
.nbtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.nbtab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill); background: var(--fill); color: var(--label2); font-size: 15px; font-weight: 600; }
.nbtab[aria-current="page"] { background: var(--tint); border-color: var(--accent); color: var(--accent-text); }
.nbpage { display: flex; flex-direction: column; gap: 8px; }
.nbpage.flat { padding: 0; }
.nbtop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.nbtop .nbnew { min-height: 44px; }
.nblist { display: flex; flex-direction: column; gap: 8px; }
.nblabel { margin: 8px 4px 0; font-size: 13px; font-weight: 600; color: var(--label2); }
.nbrow { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); text-decoration: none; }
.nbrow[hidden], .nbgroup[hidden], .nbsect[hidden] { display: none; }
.nbdot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.nbtext { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.nbtext b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.nbtext b .i { width: 14px; height: 14px; vertical-align: -2px; color: var(--label2); }
.nbtext small, .nbtext span { font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.nbtext .glatest { color: var(--label); }
.nbwhen { flex: none; font-size: 13px; color: var(--label2); }
.nbgroup, .nbsect { display: flex; flex-direction: column; gap: 8px; }
.nbgh { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin: 0; padding: 0 4px; font-size: 15px; font-weight: 600; color: var(--accent-text); }
.nbgh small { font-size: 13px; font-weight: 400; color: var(--label2); }
.nbgh .i { width: 16px; height: 16px; }
.nbempty { margin: 0; font-size: 15px; color: var(--label2); }
.nbempty:empty { display: none; }
.nbgo { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); text-decoration: none; }
.nbgo > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.nbgo small { font-size: 13px; color: var(--label2); }
.nbgo .go { flex: none; color: var(--label3); display: grid; place-items: center; }
.nbfoot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); font-weight: 600; }
.gamepage { display: flex; flex-direction: column; gap: 12px; }
.gphead h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }
.gphead p { margin: 0; }
.gsect h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 600; color: var(--label); }
.gsect h2 .i { width: 18px; height: 18px; color: var(--label2); }
.glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.glist li { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.glist li small { font-size: 13px; color: var(--label2); }
.glist li.left { color: var(--label2); }
.glist a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); }
.gchap { display: flex; flex-direction: column; gap: 6px; }
.gchap h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--label); }
.gbeats { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--label); }
.gmove, .gsaid { display: block; overflow-wrap: anywhere; }
.gsaid { color: var(--label2); font-style: italic; }
.gending { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; color: var(--label); }
.gending .i, .linkbtn .i, .gplaces .i { width: 16px; height: 16px; flex: none; }
.grecap { display: flex; flex-direction: column; gap: 6px; }
.gplaces { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent-text); font-weight: 600; }
/* A link inside a line of words (the table's notebook's This story in your notebook, a character's Holding line): the
   accent and underlined, as the old a (public/app.css:29) and the shell's own words' links (.crisis a). */
:is(.gphead, .gsect) p a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* A page of the Library's notebook as it is written, a character's page and a table's notebook with its Pictures (plan
   4d Task 12; the old .nview, .nedit, .savest and storypics' scenes, public/app.css:2012-2064): the old sizes, in the
   tokens, so both looks hold; px under html's zoom, so --size scales them; the box grows with its words (no fixed
   height) and keeps the keyboard's ring. */
.savest { font-size: 13px; color: var(--label2); }
.notebody, .noteedit, .vaultpage { font-size: 17px; line-height: 1.6; color: var(--label); overflow-wrap: anywhere; }
.notebody { min-height: 120px; cursor: text; }
.notebody[hidden], .noteedit[hidden] { display: none; }
:is(.notebody, .vaultpage) p { margin: 0 0 10px; }
:is(.notebody, .vaultpage) :is(ul, ol) { margin: 0 0 10px; padding-left: 20px; }
:is(.notebody, .vaultpage) li + li { margin-top: 4px; }
:is(.notebody, .vaultpage) :is(h2, h3, h4) { margin: 14px 0 6px; font-size: 19px; }
.noteedit { display: block; width: 100%; min-height: 160px; field-sizing: content; padding: 0; border: none; background: none; resize: none; font: inherit; caret-color: var(--accent); }
/* A browser that can't grow the box with its words lets the person pull it taller (the old grew it by script). */
@supports not (field-sizing: content) { .noteedit { resize: vertical; } }
.ntitle .nlock .i { width: 18px; height: 18px; vertical-align: -2px; color: var(--label2); }
.cpwho { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.charfld h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--label2); }
.gsect p.small { margin: 0; font-size: 15px; color: var(--label); }
.scenes { display: flex; flex-direction: column; }
.nbgh.scenech { margin: 0; color: var(--accent-text); }
.scenepage { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 0 14px; border-top: 1px solid var(--glass-edge); }
.nbgh.scenech + .scenepage { border-top: 0; padding-top: 4px; }
.scenepic { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-ctl); background: var(--fill); }
.scenepic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scenewait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 13px; color: var(--label2); text-align: center; }
.scenewait .i { width: 22px; height: 22px; color: var(--accent-glyph); }
.scenepage figcaption { font-family: var(--prose); font-size: 18px; line-height: 1.35; color: var(--label); overflow-wrap: anywhere; }
.scenepage figcaption b { display: block; margin-bottom: 2px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--accent-text); }
/* Harrox's own notebook (plan 8n): Pages | Graph, a seg of links (44px, as .seg's buttons); About you's card, its icon
   in the accent's glyph colour on its tint; a ?f= folder's chip in the accent's words colour; Delete this folder, quiet.
   Tokens only, so Night and Day both hold; px under html's zoom, so --size scales them. */
.nbseg { align-self: flex-start; max-width: 100%; }
.nbseg a { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--pill); font-size: 15px; font-weight: 600; color: var(--label2); text-decoration: none; }
.nbseg a .i { width: 16px; height: 16px; flex: none; }
.nbseg a[aria-current="page"] { background: var(--surface2); color: var(--label); box-shadow: inset 0 0 0 2px var(--label); --label2: var(--label2-on); }
.nbcard.you { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 44px; color: var(--label); text-decoration: none; }
.nbcard.you .nbicon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--accent-glyph); }
.nbcard.you .nbicon .i { width: 20px; height: 20px; }
.nbcard.you .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nbcard.you .nblab { font-size: 13px; font-weight: 600; color: var(--label2); }
.nbcard.you b { font-size: 17px; font-weight: 600; }
.nbcard.you small { font-size: 13px; color: var(--label2); }
.nbcard.you .go { flex: none; display: grid; place-items: center; color: var(--label3); }
.nbsub { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--pill); background: var(--tint); color: var(--accent-text); font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.nbsub .i { width: 16px; height: 16px; flex: none; }
.nbdrop { align-self: flex-start; min-height: 44px; gap: 6px; }
.nbdrop .i { width: 16px; height: 16px; }
/* A page of Harrox's notebook (plan 8n, Task 3): the memory line (the old .mempill, as a quiet line with its icon: the
   words' colour, its icon the accent's glyph; Harrox leaving the page alone is the quieter --label2), Open the chat (a
   row, 44px, its small line under it), and New page's Which tab (closed, its summary 44px in the accent's words). */
.nbmem { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--label); }
.nbmem .i { width: 16px; height: 16px; flex: none; color: var(--accent-glyph); }
.nbmem.off, .nbmem.off .i { color: var(--label2); }
.chatlink { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); text-decoration: none; font-weight: 600; }
.chatlink .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.chatlink small { font-size: 13px; font-weight: 400; color: var(--label2); }
.chatlink .i { width: 18px; height: 18px; flex: none; }
.nbwhich > summary { display: flex; align-items: center; min-height: 44px; color: var(--accent-text); font-size: 15px; font-weight: 600; cursor: pointer; }
.nbwhich small { font-size: 13px; color: var(--label2); }
/* The notebook's Graph (plan 8n, Task 4): the SVG on the page's fill, its lines and dots in the accent's glyph colour (a
   mention fainter and dashed), names in the words' colour, a dot that doesn't match Find a page faint; the zoom's round
   buttons (.circ, 44px); the list beside it from 1100px, under it on a phone, its links 44px tall. A dot's keyboard ring
   is its circle's, drawn in the words' colour (the shared ring below draws round the link too). A zoom eases only under
   no-preference and on a graph that isn't still (Reduce Motion or Calm): graph.js reads --nb-ease, set only here. */
.nbgwrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 1100px) { .nbgwrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; } }
.nbgbox { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nbgraph { display: block; width: 100%; height: min(calc(64vh / var(--size, 1)), 560px); border-radius: var(--r-ctl); background: var(--fill); touch-action: none; }
.nbgraph line { stroke: var(--accent-glyph); stroke-width: 1.4px; vector-effect: non-scaling-stroke; }
.nbgraph line.mention { stroke-opacity: .5; stroke-dasharray: 4 3; }
.nbgraph circle { fill: var(--accent-glyph); }
.nbgraph a.locked circle { fill: var(--label2); }
.nbgraph text { fill: var(--label); font-family: var(--font); font-size: 11px; pointer-events: none; }
.nbgraph a.off { opacity: .25; }
.nbgraph a:focus-visible circle { stroke: var(--label); stroke-width: 3px; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) { .nbgraph:not(.still) { --nb-ease: 150ms; } }
.nbzoom { display: flex; gap: 8px; }
.nbhint { margin: 0; font-size: 13px; color: var(--label2); }
.nblinks h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--label); }
.nbli { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--glass-edge); overflow-wrap: anywhere; }
.nbli[hidden] { display: none; }
.nbli > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--label); text-decoration: none; }
.nbli > a .i { width: 14px; height: 14px; color: var(--label2); }
.nbli p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; font-size: 13px; color: var(--label2); }
.nbli p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* An open game's Last time line on its book (plan 4d Task 13, from #407): "Last time" in bold, then the server's line.
   Tokens of Night and Day; px under html's zoom, so --size scales it; it wraps, with no fixed height. */
.book .lasttime { margin: 6px 0 0; font-size: 13px; line-height: 1.35; color: var(--label); overflow-wrap: anywhere; }
.book .lasttime b { display: inline; font-size: inherit; font-weight: 600; }

/* A kept character's kit (web/library/kit.js, kitwho.js; plan 4e Task 16): the XP bar a track in the fill colour, its
   share of the way to the next level in the accent, its width from data-css (a picture named by the plain line beside
   it); their purse and stories the hero's plain numbers, the purse a 44px link with its chevron after its word; what a
   story offered Create's resting rows, its picture in a 44px square (the purse's), its two buttons under its words; a
   legend's story underlined as a link in its line, as the crisis card's; what a part said, for the eye under it (its
   live region is .sr). A control whose answer is out looks held. Tokens of Night and Day only; every size in px, which
   the shell's zoom (--size) scales; every control 44px at least. */
.xpbar { display: block; height: 8px; border-radius: 4px; background: var(--fill2); overflow: hidden; }
.xpbar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent-glyph); }
.kitcard > div:empty { display: none; } /* the crisis slot, until help comes */
.kitcard .stats { margin-top: 0; }
.kitcard p a { text-decoration: underline; text-underline-offset: 2px; } /* a legend's story, to its game's page */
.kitcard a.stat { min-height: 44px; }
.kitcard a.stat small { display: inline-flex; align-items: center; gap: 2px; }
.kitcard a.stat .i { width: 14px; height: 14px; }
.kitcard .offer { flex-wrap: wrap; }
.kitcard .offer .btns { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.kitcard .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.kitcard .say:empty { display: none; }
.kitcard :is(.btn, .switch, .segpick > button)[aria-disabled="true"] { opacity: .6; cursor: default; }
.kitcard .btn { max-width: 100%; white-space: normal; } /* a long one wraps inside its box at 150% (the card, a thing's sheet), as .pacts .btn */
button.set { text-align: left; } /* a sheet's rows read from the left (the talents, a swap), as the old app.css:384 */
.kitcard .set .grow { overflow-wrap: anywhere; } /* a row's long name wraps inside it (the swap, a slot's wear sheet) */
/* The inventory (web/library/inventory.js, itemsheet.js; plan 4e Task 17): the figure's slots and the things in the bag,
   the pocket and a stash tab are boxes of 52px at least, as many a row as the room allows (two on a phone; the columns
   follow the text size), each its picture in the 44px square, its words read from the left with the small line under
   them (a slot's word, a thing's rarity), in the fill colour of Night and Day; an empty slot is its word alone. A part's
   label carries its icon and, small, how full it is. */
.kitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; }
:is(.slot, .kitem) { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 4px 10px 4px 4px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); font-size: 15px; text-align: left; }
:is(.slot, .kitem) .grow { min-width: 0; overflow-wrap: anywhere; }
:is(.slot, .kitem) .grow small { display: block; font-size: 13px; color: var(--label2); }
.slot:not(.on) { padding-left: 14px; }
/* The grid backpack (web/library/inventory.js): a figure of eleven slots around a drawn outline, and the bag and a stash
   tab as wells of squares where each thing takes its w × h, edged in its rarity's colour (its word is in its label, so the
   colour is never the only sign). Held, it dims with a dashed ring and the squares take a tap; carried, a copy follows
   the pointer and the squares it would take show ok or bad; let go where it doesn't fit, it slides back. */
.inv { container-type: inline-size; --r-common: var(--glass-edge); --r-fine: var(--ok); --r-rare: var(--arcane); --r-epic: color-mix(in srgb, var(--arcane) 55%, var(--bad)); --r-legendary: var(--accent); --r-mythic: var(--bad); }
.inv .r-fine { --rc: var(--r-fine); } .inv .r-rare { --rc: var(--r-rare); } .inv .r-epic { --rc: var(--r-epic); } .inv .r-legendary { --rc: var(--r-legendary); } .inv .r-mythic { --rc: var(--r-mythic); }
.ivtop { display: grid; gap: 16px; min-width: 0; }
@container (min-width: 620px) { .ivtop { grid-template-columns: minmax(220px, 300px) 1fr; align-items: start; } }
.ivheld { position: fixed; z-index: 900; left: 50%; bottom: calc(16px + var(--safe-bottom)); translate: -50% 0; width: min(560px, calc(100vw / var(--size, 1) - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-row); background: var(--raised); border: 1px solid var(--accent); color: var(--label); } /* over the page, never moving it: a drag in flight keeps its squares where they were */
.ivheld[hidden] { display: none; }
.ivheld p { margin: 0; flex: 1 1 100%; }
.ivhint { margin: 0; }
.bag > .ivtidy { align-self: flex-start; }
.figure.doll { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; grid-template-areas: "amulet head back" "main chest off" "main chest off" "ring1 belt ring2" "hands feet ."; gap: 6px; width: 100%; max-width: 320px; margin-inline: auto; }
.doll .ivbody { grid-area: 1 / 2 / 6 / 3; justify-self: center; width: 100%; height: 100%; fill: var(--fill); stroke: var(--glass-edge); stroke-width: 1; pointer-events: none; }
.inv .doll .slot { --rc: var(--glass-edge); position: relative; z-index: 1; flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 4px; text-align: center; background: var(--fill2); border: 1px dashed var(--glass-edge); }
.inv .doll .slot.on { border: 1px solid var(--rc); background: var(--surface2); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--rc) 55%, transparent); }
.inv .doll .slot .thumb { width: 40px; height: 40px; background: none; }
.inv .doll .slot .grow small { font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
.doll .ivempty { display: grid; place-items: center; width: 24px; height: 24px; color: var(--label2); opacity: .5; }
.doll .ivempty .i { width: 16px; height: 16px; }
.doll .s-head { grid-area: head; } .doll .s-amulet { grid-area: amulet; } .doll .s-back { grid-area: back; } .doll .s-main { grid-area: main; } .doll .s-chest { grid-area: chest; }
.inv .doll :is(.s-head, .s-chest, .s-belt, .s-feet):not(.on, .fit, .nofit) { background: color-mix(in srgb, var(--fill2) 35%, transparent); } /* the outline shows through the middle column */
.doll .s-off { grid-area: off; } .doll .s-ring1 { grid-area: ring1; } .doll .s-belt { grid-area: belt; } .doll .s-ring2 { grid-area: ring2; } .doll .s-hands { grid-area: hands; } .doll .s-feet { grid-area: feet; }
.inv .doll .slot.fit { border: 1px solid var(--ok); background: var(--ok-tint); } .inv .doll .slot.nofit { border: 1px solid var(--bad); background: var(--bad-tint); }
.ivgrid { position: relative; display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); grid-template-rows: repeat(var(--h), minmax(0, 1fr)); aspect-ratio: var(--w) / var(--h); width: 100%; max-width: calc(var(--w) * 56px); padding: 3px; border-radius: var(--r-ctl); background: var(--fill2); border: 1px solid var(--glass-edge); }
.ivgrid.stash { max-width: calc(var(--w) * 40px); }
.ivcell { min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 .5px var(--sep); }
.ivgrid.holding .ivcell { cursor: pointer; }
.ivgrid.holding .ivcell:hover, .ivgrid.holding .ivcell:focus-visible { background: var(--tint); }
.inv .ivitem { --rc: var(--r-common); position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; min-height: 0; margin: 2px; padding: 2px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--rc); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--rc) 55%, transparent); cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.inv .ivitem .thumb { width: 100%; height: 100%; max-width: 64px; max-height: 64px; background: none; }
.inv .ivitem .grow, .inv .doll .slot .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ivgrid.holding .ivitem { pointer-events: none; }
.inv :is(.ivitem, .slot).held { opacity: .45; outline: 2px dashed var(--accent); outline-offset: -2px; }
.inv :is(.ivitem, .slot).ivgone { opacity: .25; pointer-events: none; }
.ivbad { position: absolute; top: 1px; right: 4px; font-style: normal; font-weight: 700; font-size: 12px; color: var(--bad-glyph); }
.ivshadow { z-index: 2; margin: 1px; border-radius: 6px; pointer-events: none; }
.ivshadow.fit { background: var(--ok-tint); box-shadow: inset 0 0 0 2px var(--ok); } .ivshadow.nofit { background: var(--bad-tint); box-shadow: inset 0 0 0 2px var(--bad); }
.ivghost { position: fixed; z-index: 1000; margin: 0; display: grid; place-items: center; padding: 2px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--rc, var(--glass-edge)); color: var(--label); pointer-events: none; opacity: .92; transform: scale(1.04); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55); }
.ivghost .grow, .ivghost .ivempty, .ivghost .ivbad { display: none; }
.ivghost .thumb { width: 100%; height: 100%; max-width: 64px; max-height: 64px; }
.ivghost.back { transition: left .18s ease-out, top .18s ease-out, width .18s ease-out, height .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .ivghost, .ivghost.back { transition: none; transform: none; } }
.kitcard .label > span { display: inline-flex; align-items: center; gap: 6px; }
.kitcard .label .i { width: 16px; height: 16px; flex: none; }
.kitcard p > .i { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; } /* a thing's lock, in its line */
.kitcard .label small { font-weight: 400; color: var(--label2); }
/* The kit's boxes in a story (web/library/shopbox.js, kitstory.js, loot.js; plan 4e Task 18b): a shop's head its icon,
   its label over its name and who keeps it, and the purse pill, which wraps under them when the room is short; its wares
   the Market's grid. Sell's rows carry what the shop pays as a ware's price does. Under the page, the line to what's
   lying here a whole-width row. The loot sheet's things the inventory's boxes, the one picked ringed in the accent beside
   its pressed state; Your backpack a card with its line and Take, the keyboard's place once a take went in. Tokens of
   Night and Day only; every size in px, which the shell's zoom (--size) scales; every control 44px at least. */
.shopbox .shophead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shopbox .shophead > .i { width: 22px; height: 22px; flex: none; color: var(--accent-glyph); }
.shopbox .shophead .grow { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.shopbox .shophead .label { padding: 0; }
.shopbox .shophead b { font-size: 17px; font-weight: 600; color: var(--label); }
.shopbox .shophead small { font-size: 13px; color: var(--label2); }
.shopbox .ware .why .i { width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; }
.shopsell .price { display: inline-flex; align-items: center; gap: 4px; flex: none; font-variant-numeric: tabular-nums; }
.shopsell .price .i { width: 14px; height: 14px; color: var(--accent-glyph); }
.kitstory .lootline { width: 100%; text-align: left; }
.kitstory .lootline .grow > span { display: inline-flex; align-items: center; gap: 6px; }
.loot .kitem[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.loot .lootbag { display: flex; flex-flow: row wrap; align-items: center; gap: 10px; }
.loot .lootbag > .i { width: 22px; height: 22px; flex: none; color: var(--accent-glyph); }
.loot .lootbag .grow { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.loot .lootbag small { display: block; font-size: 13px; color: var(--label2); }
/* Library Harrox's panel (web/library/harrox.js, harroxcards.js; plan 4e Task 20): one column in the sheet, its head's
   line over What Harrox did and Start over, the talk in Chat's bubbles (yours to the right), what Harrox looked at a small
   line with its icon, the starters a wrapping row of buttons, each proposal a glass card (what kind over what it is, its
   lines, Confirm and Cancel or its state, Open it), What Harrox did a plain list, the sheet's line in the words' colour
   and Table talk's box at the foot. Tokens of Night and Day only; every size in px, which the shell's zoom (--size)
   scales; every control 44px at least (.btn, .send). */
.lagpanel { display: flex; flex-direction: column; gap: 12px; }
.lagpanel .laghead > p { margin: 0; font-size: 15px; color: var(--label2); }
.lagpanel .laghead .btn.quiet { padding: 0 8px; }
.lagpanel .lagtalk { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lagpanel .laghello h3 { font-size: 20px; font-weight: 600; }
.lagpanel .laglooked { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--label2); overflow-wrap: anywhere; }
.lagpanel .laglooked .i { width: 14px; height: 14px; flex: none; }
.lagstarters { display: flex; flex-wrap: wrap; gap: 8px; }
.lagcard { overflow-wrap: anywhere; }
.lagcard .lagkind { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.lagcard .lagkind .i { width: 16px; height: 16px; flex: none; }
.lagcard ul { margin: 0; padding-left: 20px; font-size: 15px; color: var(--label2); }
.lagcard .lagstate { font-size: 13px; color: var(--label2); }
.lagcard > a.btn { align-self: flex-start; padding: 0 4px; }
.lagpanel .laghist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lagpanel .laghist li { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.lagpanel .laghist small { font-size: 13px; color: var(--label2); }
.lagpanel > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.lagpanel > .say:empty { margin-top: -12px; } /* in the page for a screen reader, no gap of its own */
.lagpanel .talkform textarea { overflow-x: hidden; } .lagpanel .talkform textarea::placeholder { white-space: nowrap; } /* as Chat's box: a long placeholder at 150% is cut at the side, not half a line */
/* The Party tab (web/library/parties.js; plan 4e Task 23): each party a glass card, its name a heading with its icon and
   Rename beside it (under it when the room is short); its lines and rows wrap, a row's words over its buttons at 150%;
   each player's Books and its members plain lists; Add's and Invite's boxes the house's 46px fields, each before its
   button; Leave and Delete at the card's end. The screen's polite line under crisis help, for the eye too. Tokens of
   Night and Day only; every size in px, which the shell's zoom (--size) scales; every control 44px at least. */
.parties > .sr:empty { display: block; } /* the polite region stays in the page while it says nothing */
.parties > .say { margin: 0; padding: 0 4px; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.pcard h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--label); overflow-wrap: anywhere; min-width: 0; }
.pcard h2 .i { width: 18px; height: 18px; flex: none; color: var(--accent-glyph); }
:is(.pcard, .pgear) :is(.phead, .prow) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.pcard .phead > h2 { flex: 1 1 160px; }
:is(.pcard, .pgear) .prow > :is(small, .grow, .pnow) { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
:is(.pcard, .pgear) .prow > .grow small { display: block; font-size: 13px; color: var(--label2); }
.pcard .pnow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--label); }
.pcard .pnow .i { width: 16px; height: 16px; flex: none; color: var(--accent-glyph); }
.pcard > small { font-size: 13px; overflow-wrap: anywhere; }
:is(.pcard, .pgear) :is(.pbooks, .plist) { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.pcard .pbooks small { margin-left: 8px; font-size: 13px; color: var(--label2); }
:is(.pcard, .pgear) .padd :is(select, input) { flex: 1 1 160px; min-width: 0; min-height: 46px; padding: 0 14px; font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); }
.pcard .padd input::placeholder { color: var(--placeholder); }
:is(.pcard, .pgear, .pask) .btn { max-width: 100%; white-space: normal; } /* a long name wraps inside its button at 150% */
:is(.pcard, .pgear, .pask) .btn[aria-disabled="true"] { opacity: .6; cursor: default; } /* held while its answer is out */
:is(.pcard, .pgear) .pend { justify-content: flex-end; }
.pcard .pideas { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard > .btn.primary { align-self: flex-start; }
/* A party's card reads simply (Payton's iPhone, 2026-11-02): who's in it as a short list, each with their initial, their
   name (one line, an ellipsis past it) and what they are; one primary and one secondary action side by side; Leave and
   Delete at its foot, the same kind of button, Delete's words and edge in the danger colour. */
.pcard .pplayers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pcard .pplayers li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; color: var(--label); }
.pcard .pplayers b { flex: 0 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pplayers .initial { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: 15px; }
.pcard .ptag { flex: none; }
.pcard .pmain > .btn { flex: 1 1 auto; } /* each its full words on one line; onto lines of their own when both don't fit */
.pcard .pfoot { justify-content: stretch; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--glass-edge); }
.pcard .pfoot > .btn { flex: 1 1 120px; }
.pcard .pfoot > .btn.danger { background: var(--raised); color: var(--bad-text); border: 1px solid var(--bad); } /* the one control that keeps an edge: Delete's, in the danger colour */
/* Add to the party's sheet: each choice a labelled form, its select or box the sheet's full width, a long name cut with
   an ellipsis inside it, never past the sheet's edge. */
.paddsheet .padd { gap: 8px; }
.paddsheet .fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.paddsheet .fld > span { font-size: 15px; font-weight: 600; color: var(--label); }
.paddsheet .fld :is(select, input) { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.paddsheet .fld input::placeholder { color: var(--placeholder); }
.paddsheet .padd > .btn { align-self: flex-start; max-width: 100%; white-space: normal; }
.paddsheet .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
:is(.pcard, .prename, .pgear, .pask) > .say { margin: 0; font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
:is(.pcard, .prename, .pgear, .pask) > .say:empty { margin-top: -16px; } /* in the page for a screen reader, no gap of its own */
.prename > .btn.primary { align-self: flex-start; } /* the rename sheet's Save */
/* The Party tab's members and the party at a story (web/library/partymembers.js; plan 4e Task 24), as the old bands.css
   (apps/library/web/bands.css:3-18): a row per person, its name and line beside a thin health bar, its other lines under
   it, its controls wrapping; a member who is down faded, as the old; the party at a story edged in the accent. In a
   card's list a row is never 4c's member chip (.pmember, the party sheet's): the chip's centring and width are undone
   here. The gear and ask sheets take the cards' rows, fields and held buttons (the selectors above). Night and Day
   tokens only; px under --size; every control 44px at least. */
.pcard .plist > .pmember { align-items: stretch; gap: 4px; min-width: 0; max-width: none; padding: 10px 12px; border-radius: var(--r-row); text-align: start; }
.pcard .pmember small { display: block; max-width: none; font-size: 13px; }
.pcard .pmember.down { opacity: .7; }
.pcard .pname { display: flex; flex-direction: column; gap: 2px; }
.pcard .pname b { font-size: 15px; color: var(--label); overflow-wrap: anywhere; }
.hpbar { display: block; flex: none; width: 84px; height: 6px; border-radius: 3px; background: var(--fill2); overflow: hidden; }
.hpbar > i { display: block; height: 100%; border-radius: 3px; background: var(--accent-glyph); }
.pcard.ptable { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pask .stack > .btn.primary { align-self: flex-start; } /* a yes-if's Pay or Agree */

/* 4c2 */
/* Reading and sound (web/library/readingparts.js): the sheet's own polite line under its rows, in the words' colour in
   both looks, sized with the page (rem, under html's zoom), taking no gap of its own while it says nothing; a switch
   slides only under motion. */
.soundsheet .say { margin: 0; font-size: .875rem; color: var(--label); overflow-wrap: anywhere; }
.soundsheet .say:empty { margin-top: -6px; }
@media (prefers-reduced-motion: reduce) { .switch, .switch span { transition: none; } }
/* Reading aloud (web/library/readaloud.js): the paragraph being read lit in the accent's tint (a token of both looks),
   reaching a little past its words without moving them; it never fades or slides, so Reduce Motion has nothing to stop.
   Reading speed (readingparts.js): its name over its speeds, which wrap. A voice to pick (voicepick.js): each name and
   line a button of 44px at least, read from the left, the picked one's name in the accent beside its tick. */
.prose .reading { background: var(--tint); border-radius: 6px; box-shadow: 0 0 0 6px var(--tint); }
.readpace { flex-wrap: wrap; }
.readpace > .grow { flex: 1 1 100%; }
.readpace > .segpick { flex: 1 1 auto; }
.vpick button.set, .vpick .set > button.grow { text-align: left; }
.vpick .set > button.grow { min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.vpick [aria-pressed="true"] > b { color: var(--accent-text); }
.vpick .set > .i { flex: none; color: var(--accent-glyph); }
/* Health's ways back (web/library/ways.js, plan 4c2 Task 4): Spectating and the Lost card in the box's place, glass with
   a thin edge and a heart in the danger colour (a token of both looks: the old crimson's place); their buttons 44px at
   least and wrapping at any text size, one out at a time (aria-disabled) shown faded; who's still playing as small
   faces; the card's line for a refusal's sentence, taking no room while it says nothing. Your character's down note on
   the danger colour's tint, and the story history as a list. Each seat's health: a slim meter and its number, or the Down
   chip. The carried line (carry.js): the words' colour on their own back, in both looks. Every font size in rem, under
   html's zoom (--size); nothing moves, so Reduce Motion has nothing to stop. */
.downcard { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.downcard > p { margin: 0; overflow-wrap: anywhere; }
.downcard .downhead { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.downcard .downhead > small { color: var(--label2); font-size: .875rem; }
.downcard .downhead > .i, .downnote > .i { flex: none; color: var(--bad-glyph); }
.downwho { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.downwho > .label { padding: 0; }
.downwho small { font-size: .875rem; }
.downp { display: inline-flex; align-items: center; gap: 6px; }
.downways { display: flex; flex-wrap: wrap; gap: 8px; }
.downways .btn, .helpup .btn { min-height: 44px; white-space: normal; text-align: left; }
.helpup .btn { align-self: flex-start; }
.downcard .btn[aria-disabled="true"], .helpup .btn[aria-disabled="true"], .charsheet .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.downcard > small { color: var(--label2); font-size: .875rem; }
.downcard .say { color: var(--label); font-size: .875rem; }
.downcard .say:empty { display: none; }
.lostwait { font-weight: 600; }
.downnote { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--r-row); background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--label); }
.downnote > span { display: flex; flex-direction: column; gap: 2px; }
.downnote small { font-size: .875rem; }
.charhist { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 4px; }
.hpseat { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--label2); font-size: .8125rem; }
.hpseat meter { width: 48px; height: 6px; accent-color: var(--accent); }
.carried { margin: 0; align-self: flex-start; max-width: 100%; padding: 2px 12px; border-radius: var(--pill); background: var(--label-back); color: var(--label); font-size: .875rem; overflow-wrap: anywhere; }
/* Story settings' folded parts (web/library/settings.js section, plan 4c2 Task 5): Table and Reading and sound, each a
   fold on the sheet's fill with a thin edge, its summary the Settings look's row (44px at least: its icon on the
   accent's tint, its name over what's in it, and a chevron that turns down while open). Table (tablepart.js): Players
   can hurt each other's row under Health (room.js); who brings things in as a row of choices that wraps at any size;
   Take someone out's rows with their buttons; everyone else's lines with no gap of their own. Tokens of both looks,
   every font size in rem, under html's zoom (--size); the chevron turns only under motion. */
.tsec { border-radius: var(--r-ctl); background: var(--fill); }
.tsec > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; color: var(--label); cursor: pointer; list-style: none; }
.tsec > summary::-webkit-details-marker { display: none; }
.tsec > summary > .qi { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-cover); background: var(--tint); color: var(--accent-glyph); }
.tsec > summary > .grow { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; font-size: 1rem; font-weight: 600; }
.tsec > summary > .grow small { font-size: .8125rem; font-weight: 400; color: var(--label2); overflow-wrap: anywhere; }
.tsec > summary > .i:last-child { flex: none; color: var(--label2); transition: transform .15s ease; }
.tsec[open] > summary > .i:last-child { transform: rotate(90deg); }
.tsecbody { padding: 4px 14px 14px; }
.tsecbody .set .grow small { font-size: .8125rem; }
/* Customize's sections (web/settings/customize.js SECTIONS): the same folds on the Settings card, one after another, each
   holding its rows edge to edge as the card's own group does. */
.setcard .tsec + .tsec { margin-top: 8px; }
.setcard .tsecbody > .sgroup { margin: 0 -14px; }
.tsecbody .set .btn { min-height: 44px; flex: none; }
.pvpfld > small { overflow-wrap: anywhere; }
.biwhoset { flex-wrap: wrap; }
.biwhoset > .grow { flex: 1 1 100%; }
.biwhoset > .segpick { flex: 1 1 auto; }
.biwhoset .segpick > button { font-size: .875rem; }
.biwhoset .segpick > button[aria-disabled="true"] { opacity: .6; cursor: default; }
.tablepart > .roomnote, .tablepart > .biwho { margin: 0; color: var(--label2); font-size: .875rem; }
.tablepart > .hpnote { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--label); font-size: .875rem; }
.tablepart > .say:empty { margin-top: -12px; }
.tablepart .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.linkbox .morebtn[aria-disabled="true"], .linkbox .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
@media (prefers-reduced-motion: reduce) { .tsec > summary > .i:last-child { transition: none; } }
/* The pace (web/library/readingparts.js, plan 4c2 Task 6): each row's name and line over its choices, which wrap at any
   text size, one save out at a time shown faded. The talk line (talknote.js, ruling 11): someone else's new message
   over the turn line on the turn line's own back (a token of both looks, with no blur of its own), its name in bold
   before its words, 44px at least and wrapping at any text size; a tap opens Table talk. Font sizes in rem, under
   html's zoom (--size); neither fades nor slides, so Reduce Motion has nothing to stop. */
.tpace { flex-wrap: wrap; }
.tpace > .grow { flex: 1 1 100%; }
.tpace > .segpick { flex: 1 1 auto; }
.tpace .segpick > button { font-size: .875rem; }
.tpace .segpick > button[aria-disabled="true"] { opacity: .6; cursor: default; }
.talkline { display: inline-flex; flex-wrap: wrap; align-items: center; align-self: flex-start; gap: 2px 8px; max-width: 100%; min-height: 44px; padding: 6px 14px; border-radius: var(--pill); background: var(--label-back); color: var(--label); font-size: .875rem; text-align: left; overflow-wrap: anywhere; }
/* Steer the story (web/library/steer.js, and settings.js steerRow; plan 4c2 Task 7, ruling 13): Story settings' row in
   the folded parts' look, on the sheet's fill with a thin edge (its icon on the accent's tint, its name over what it
   opens, and a chevron), 44px at least. In its sheet: the heading; the ideas and the story's people as picks that wrap
   at any text size, each 44px at least; the box on the fill; Send held (aria-disabled) shown faded; the sheet's polite
   line in the words' colour, taking no gap of its own while it says nothing. Tokens of both looks, every font size in
   rem, under html's zoom (--size); nothing fades or slides, so Reduce Motion has nothing to stop. */
.steerrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 14px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); text-align: left; }
.steerrow > .qi { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-cover); background: var(--tint); color: var(--accent-glyph); }
.steerrow > .grow { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; font-size: 1rem; font-weight: 600; }
.steerrow > .grow small { font-size: .8125rem; font-weight: 400; color: var(--label2); overflow-wrap: anywhere; }
.steerrow > .i:last-child { flex: none; color: var(--label2); }
.steersheet h3 { font-size: 1.25rem; font-weight: 600; color: var(--label); }
.steersheet > p.muted { font-size: .9375rem; }
.steerpicks { display: flex; flex-wrap: wrap; gap: 8px; }
.steerpick { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: var(--pill); background: var(--fill); color: var(--label); font-size: .875rem; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.steerout { gap: 8px; }
.steerout > small { font-size: .8125rem; color: var(--label2); }
.steerslot:empty { display: none; }
.steerslot .snag .btn { min-height: 44px; }
.steerform input { font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); min-height: 46px; padding: 0 14px; width: 100%; min-width: 0; }
.steerform input::placeholder { color: var(--placeholder); }
.steerform > .label { padding: 0; font-size: .875rem; }
.steersheet .btn { min-height: 44px; white-space: normal; }
.steersheet .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.steerform .say { margin: 0; font-size: .875rem; color: var(--label); overflow-wrap: anywhere; }
.steerform .say:empty { margin-top: -12px; }
/* The Director's dashboard and box (web/library/dashboard.js, storybox.js, playercards.js; plan 4c2 Task 8, ruling 14).
   The Dashboard bar above the Director's box: the turn line's own back, its name in bold before how many notes wait,
   and a chevron, 44px at least and wrapping at any text size. In the sheet: each part a group with its label; For the
   next turn's notes as rows on the fill with a thin edge (the kind's icon on the accent's tint, the words wrapping,
   Won't go in the danger colour, Going now… faded), Change and Take out 44px icon buttons; the Add and Change boxes on
   the fill; the moves as chips that wrap, each 44px at least, the scene they're in on the accent's tint; the sealed
   ending's line with its lock; the table's switch (.set, .switch) and its buttons. A write that is out holds its control
   (aria-disabled), shown faded. The sheet's polite line sits at its foot on its own back, in view while it says
   something, and takes no room while it says nothing. Player cards: each card on the fill. Tokens of both looks,
   every font size in rem, under html's zoom (--size); nothing fades or slides, so Reduce Motion has nothing to stop. */
.dbbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; align-self: stretch; width: 100%; min-height: 44px; margin: 0 0 6px; padding: 6px 14px; border-radius: var(--pill); background: var(--label-back); color: var(--label); font-size: .875rem; text-align: left; }
.dbbar > b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dbbar > b > .i { color: var(--accent-glyph); }
.dbbar > .dbline { flex: 1 1 auto; min-width: 0; color: var(--label2); overflow-wrap: anywhere; }
.dbbar > .i:last-child { flex: none; color: var(--label2); }
/* From 1100px the story is two columns (.main.nobar.twocol): the bar, a child of the screen beside the story's column,
   goes in the first column under the story, as wide as it, and the party panel keeps the second from the top (Task 15's
   walk: auto-placed, the bar took the second column as a 320px oval and pushed the panel under the story). A panel
   taller than the story and the bar gives its extra to the bar's row, where the bar stays its own height at the top
   (the final review: stretched, it grew into an oval and dropped away from the story). */
@media (min-width: 1100px) {
  .main.nobar.twocol:has(> .dbbar) { grid-template-rows: auto 1fr; }
  .main.nobar.twocol > .dbbar { grid-column: 1; max-width: 816px; justify-self: center; align-self: start; }
  .main.nobar.twocol:has(> .dbbar) > .party { grid-column: 2; grid-row: 1 / span 2; }
}
.composer .send[aria-disabled="true"] { opacity: .6; cursor: default; }
.dashsheet .dbhead { display: flex; flex-direction: column; gap: 4px; }
.dashsheet .dbhead > .label, .pcards > .label { justify-content: flex-start; gap: 6px; padding: 0; color: var(--accent-text); }
.dashsheet .dbhead > p { margin: 0; font-size: .9375rem; }
.dsec { display: flex; flex-direction: column; gap: 8px; }
.dsec > .label, .dbqhead > .label { justify-content: flex-start; gap: 6px; padding: 0; font-size: .875rem; }
.dbqhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dbqhead small { font-size: .8125rem; }
.dbnotes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dbnote { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 4px 4px 10px; border-radius: var(--r-ctl); background: var(--fill); color: var(--label); }
.dbnote > .qi { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-cover); background: var(--tint); color: var(--accent-glyph); }
.dbwords { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.dbstale { font-size: .8125rem; color: var(--bad-text); }
.dbgoing { flex: none; font-size: .8125rem; padding: 0 10px; color: var(--label2); }
.dbnote.flying { opacity: .75; }
.dbout { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--label2); }
.dbout[aria-disabled="true"] { opacity: .6; cursor: default; }
.dbnote.editing { padding: 8px 10px; }
.dbedit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.dbedit > .label, .dbadd > .label { flex: 1 1 100%; padding: 0; font-size: .8125rem; color: var(--label2); }
.dbedit input, .dbadd input { font: inherit; flex: 1 1 12rem; min-width: 0; min-height: 44px; padding: 0 14px; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); }
.dbedit input::placeholder, .dbadd input::placeholder { color: var(--placeholder); }
.dbedbtns, .dbaddrow { display: flex; flex-wrap: wrap; gap: 8px; }
.dbaddrow { flex: 1 1 100%; min-width: 0; }
.dbadd { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.dbempty { margin: 0; font-size: .875rem; }
.dbnow { align-self: flex-start; }
.dbnowsay { font-size: .8125rem; }
.dbchips, .dbtable { display: flex; flex-wrap: wrap; gap: 8px; }
.dbchip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: var(--pill); background: var(--fill); color: var(--label); font-size: .875rem; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.dbchip.on { background: var(--tint); color: var(--accent-text); border-color: transparent; }
.dbchip[aria-disabled="true"] { opacity: .6; cursor: default; }
.dsec details.more > summary { display: flex; align-items: center; min-height: 44px; color: var(--accent-text); font-size: .875rem; font-weight: 600; cursor: pointer; }
.dbeats { margin: 0; padding-left: 1.25em; font-size: .9375rem; display: flex; flex-direction: column; gap: 4px; color: var(--label); }
.dsec > p { margin: 0; font-size: .875rem; }
.sealed { display: flex; align-items: flex-start; gap: 6px; color: var(--label2); }
.sealed > .i { flex: none; margin-top: .125rem; }
.dashsheet .btn, .pcards .btn { min-height: 44px; white-space: normal; }
.dashsheet .btn[aria-disabled="true"], .dashsheet .switch[aria-disabled="true"] { opacity: .6; cursor: default; }
.dashsheet .set .grow { font-size: 1rem; display: flex; flex-direction: column; gap: 2px; color: var(--label); }
.dashsheet .set .grow small { font-size: .8125rem; }
.dbsay { position: sticky; bottom: 0; margin: 0; padding: 6px 14px; border-radius: var(--pill); background: var(--label-back); color: var(--label); font-size: .875rem; overflow-wrap: anywhere; }
.dbsay:empty { display: none; }
.pcard { background: var(--fill); border-radius: var(--r-card); }
.pchead { display: flex; align-items: center; gap: 10px; }
.pchead > .initial { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--accent-glyph); font-weight: 700; font-size: .875rem; }
.pcname { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 1rem; color: var(--label); overflow-wrap: anywhere; }
.pcname small { font-size: .8125rem; color: var(--label2); }
.pcf > .label { padding: 0; font-size: .8125rem; color: var(--label2); }
.pcf > p { margin: 2px 0 0; font-size: .9375rem; color: var(--label); overflow-wrap: anywhere; }
.pclocked { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: .875rem; }

/* The Director's seat and the lobby's Book card (web/library/directit.js, directorseat.js, lobbybook.js; plan 4c2 Task
   9, rulings 15 and 18). The start page's Your seat: the segmented pick (.segpick, 44px), the Direct it line and the
   seats line; what Direct it hides is gone from the page and the keyboard's order, whatever its own display. The
   lobby's Director seat: the Players card's own seat rows (.seat), under its label, a held button faded. The Book card:
   its link the Book chip, who comes along as chips that wrap, each 44px at least, a picked one on the accent's tint
   with its edge (the host's to tap; anyone else's held), each character's last seen, and who still has to pick. Tokens
   of both looks, every font size in rem under html's zoom (--size); nothing moves, so Reduce Motion has nothing to stop. */
.startform [hidden] { display: none !important; }
.seatpick > p { margin: 0; font-size: .9375rem; }
.seatpick > p.seatsline, .startform > .seatsline { font-size: .8125rem; }
.startform > .seatsline { margin: 0; }
.dbseats { gap: 4px; }
.dbseats > .label { padding: 0; }
.lobby .seat .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.lobbybook > p { margin: 0; }
.lobbybook > .label { justify-content: flex-start; gap: 6px; padding: 0; }
.lobbybook > small { font-size: .8125rem; }
.lbchips { display: flex; flex-wrap: wrap; gap: 8px; }
.lbchip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: var(--pill); background: var(--fill); color: var(--label); font-size: .875rem; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.lbchip.on { background: var(--tint); color: var(--accent-text); border-color: var(--accent); }
.lbchip[aria-disabled="true"] { cursor: default; }
.lbchip[aria-disabled="true"]:not(.on) { color: var(--label2); }
.lbfrom { margin: 0; font-size: .9375rem; color: var(--label); overflow-wrap: anywhere; }
.lbwait { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: .875rem; }
.lbwait > .i { flex: none; margin-top: .125rem; }

/* The map moves (web/library/map.js, mapmove.js, mapzoom.js; plan 4c2 Task 10, ruling 16, the zoom from PR 406): a window
   onto the grid that scrolls once it's zoomed (--z through data-css), the zoom's bar under it, each button 44px, the
   level said in the words' second tone. While the Director has a token picked the squares are buttons, the grid at least
   44px a square (the window scrolls on a narrow phone), a player's token takes a tap (it switches the pick or puts it
   down) and an NPC's lets it through to its square; the picked one ringed in the accent and its row on the accent's
   tint. Where someone fell, a heart in its square in the bad tone of each look, under the tokens. Up, Down, Left and
   Right wrap in a row. Tokens of both looks, every font size in rem under html's zoom (--size); only the view's
   scrolling glides, and only without Reduce Motion. */
.mapmove { align-self: center; width: 100%; max-width: 420px; gap: 10px; }
.mapzoom { flex: none; align-self: stretch; overflow: auto; overscroll-behavior: contain; border-radius: var(--r-ctl); max-height: min(calc(62vh / var(--size, 1)), 520px); -webkit-overflow-scrolling: touch; }
.mapzoom.dragging { cursor: grabbing; user-select: none; }
.mapzoom .mapgrid { width: calc(100% * var(--z, 1)); max-width: none; }
.mapzoom .mapgrid.picking { min-width: 378px; }
@media (prefers-reduced-motion: no-preference) { .mapzoom { scroll-behavior: smooth; } }
.mzbar { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mzbar .mzlevel { min-width: 3rem; text-align: center; font-size: .8125rem; color: var(--label2); font-variant-numeric: tabular-nums; }
.mzbar .btn.sm, .mapsteps .btn.sm { font-size: .875rem; min-height: 44px; min-width: 44px; }
.mzbar [aria-disabled="true"], .mapsteps [aria-disabled="true"], .mapgrid button.cell[aria-disabled="true"], .whereall .maprow[aria-disabled="true"] { opacity: .5; cursor: default; }
.mapgrid button.cell { display: block; width: 100%; min-height: 0; cursor: pointer; }
.mapgrid.picking .token:not(.can), .mapgrid .fall { pointer-events: none; }
.mapgrid .token.can { cursor: pointer; }
.mapgrid .token.picked { box-shadow: 0 0 0 2px var(--edge), 0 0 0 5px var(--accent); }
.mapgrid .fall { place-self: center; width: 46%; aspect-ratio: 1; display: grid; place-items: center; color: var(--bad-glyph); }
.mapgrid .fall svg { width: 100%; height: 100%; }
.maphint { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.whereall .maprow { min-height: 44px; width: 100%; padding: 6px 12px; border-radius: var(--r-ctl); text-align: left; font-size: .9375rem; color: var(--label); background: var(--fill); overflow-wrap: anywhere; }
.whereall .maprow[aria-pressed="true"] { background: var(--tint); color: var(--accent-text); border-color: var(--accent); }
.whereall:has(.maprow) { list-style: none; padding-left: 0; }
.whereall.falls { font-size: .875rem; color: var(--label2); }
.mapsteps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Themed again (Payton, 2026-10-31: "a little more themed like how the library was before"). A measured amount of the
   old Library's character (pre-cutover public/app.css and apps/library/web/*.css: candle-lit charcoal, quiet ember
   outlines, letter-spaced capitals over each section, the book face for what is a story's): app.js puts the app on
   <html data-app>, and the Library's screens wear its book face for titles, a small ornament under them, a line of
   italic over them, letter-spaced capitals over each section, and an ember outline with candle-light in the corner of
   their cards. Every heading keeps its backing on the painting (the --label-back rule above), and the words their colour.
   The titles' face is --display (tokens.css), the shell-wide rule below. */
[data-app="library"] h1.ltitle { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: 0; line-height: 1.05; }
/* The large title grows on a wide screen (the walkthrough's): the Library's own rule above is as specific, so it is named. */
@media (min-width: 1100px) { .ltitle, [data-app="library"] h1.ltitle, h1.title:not(:is(.glass, .card, .sheet, .popup) *) { font-size: 52px; } }
/* No ornament under a screen's title either (Payton, 2026-11-19): size, face and room set it apart. */
[data-app="library"] .lrow > p.kicker { font-family: var(--prose); font-style: italic; font-size: 16px; color: var(--label); }
[data-app="library"] :is(.lrow > .label, .lsec) { font-family: var(--display); }
[data-app="library"] #screen .glass:is(.card, .part) { background-image: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
/* The display face everywhere (Vincent, 2026-11-06: "the font on the front page for harrox is cool can u apply it
   everywhere"): every title and heading in every app, the bar's name, the names under Home's icons and a widget's big
   number take tokens.css --display, the front page's self-hosted Cormorant Garamond (Verdana with the dyslexia font).
   :where() weighs nothing, so a rule that sets a face on purpose (monospace codes, a small caption on --font) still wins.
   Small words, inputs, buttons, a heading's small print and a section label's own links stay on --font: Cormorant draws
   thin and small. */
:where(h1, h2, h3, h4, .title, .hero .hello, .label:not(label), .bar .brand, .part .tile .grow > b, .apps .icon .tile .grow b, .places .place > b,
  .moretile > b, .book .grow > b, .display, .stat b, .wstats b, .wbig, .wclock b) { font-family: var(--display); letter-spacing: 0; }
:is(:is(h1, h2, h3, h4, .title, .hero .hello) :is(small, .btn, input, select), .label :is(a, button)) { font-family: var(--font); font-size-adjust: none; }
/* Cormorant draws about a sixth smaller than the phone's font at the same size, so the smaller titles are drawn to the
   phone font's letter height (tokens.css --display-fit; none for the dyslexia font). The big titles keep the front page's
   own sizes, and a rule's font shorthand (front.css) resets it. */
:where(h2, h3, h4, .label:not(label), .bar .brand, .part .tile .grow > b, .apps .icon .tile .grow b, .places .place > b, .moretile > b,
  .book .grow > b, .display, .stat b, .wstats b, .wbig, .wclock b) { font-size-adjust: var(--display-fit); }
/* Big numbers in the book face read as lining figures, not its old-style ones. */
:is(.stat b, .wstats b, .wbig, .wclock b, .sheet .card .display) { font-variant-numeric: lining-nums tabular-nums; }
:is(h1.title, .hero .hello, .bookhero h1) { font-weight: 600; letter-spacing: 0; }
h1.title { font-size: 34px; line-height: 1.05; }
.hero .hello { font-size: 36px; }


/* A table's vote (web/library/settings.js voteChips; plan 4c2 Task 11, ruling 17): Who's here's Vote to remove chips, the
   old votebar.css:10-11 (its label in the words' second tone, smaller), each chip the dashboard's 44px one (.dbchip),
   held faded while a start is out; they wrap at any text size, every font size in rem under html's zoom (--size). */
.votechips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.votechips > .muted { font-size: .75rem; }
/* While one of the story's sheets is open (settings.js voteFollower sheetCtx; Task 11 fix round 1, 4c's party sheet
   ruling carried to the table's vote): the table's vote bar at the sheet's top, after its crisis help, as the party
   sheet's: the same glass row, held at the top of the sheet's scroll over its 8px top padding on the sheet's own glass,
   and the sheet keeps what the keyboard and crisis help land on below it (176px, 4c's room for a 24-letter name on four
   lines at 150% on a phone). Its slot has no box; what a table vote said shows in the sheet's own line under it. */
.sheetvote { display: contents; }
.sheetvote > .votebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 8px 8px 14px; border-radius: 18px; border: 1px solid var(--glass-edge); box-shadow: var(--spec);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); position: sticky; top: -8px; z-index: 1; background: var(--glass-dense); }
.sheet:has(.sheetvote > .votebar) { scroll-padding-top: 176px; }
.votesaid { margin: 0; font-size: .875rem; color: var(--label); overflow-wrap: anywhere; }
.votesaid:empty { display: none; }

/* 4b's carries (plan 4c2 Task 13, ruling 20): the Narrator form's How it sounds (makenarrator.js) scrolls inside a box
   of about 22 lines (em, under html's zoom, so it grows with the text), the picked voice brought into view as it opens.
   The box clips what lies past it, so its inline end leaves room for a Hear button's ring (2px, 2px off, 6px round). */
.voices { max-height: 22em; overflow-y: auto; padding-inline-end: 10px; }

/* A personality (plan 8p): one of yours in Personalities is its editor's row with Chat beside it; the editor's sharing
   card is the house's segmented row and 44px chips. */
.prow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prow > .pillrow { flex: 1; min-width: 0; }
.prow > .btn { flex: none; min-height: 44px; }
.pshare .seg { flex-wrap: wrap; }
.pshare .seg button { min-height: 44px; flex: 1 1 auto; }
.pshare .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pshare .chips .chip { min-height: 44px; padding: 0 16px; font-size: .875rem; color: var(--label); }
.pshare .chips .chip[aria-pressed="true"] { background: var(--tint); color: var(--accent-text); border-color: transparent; box-shadow: inset 0 0 0 2px var(--label); }
.pshare .fld { display: flex; flex-direction: column; gap: 6px; }
.pshare .fld > span:first-child { font-size: .875rem; font-weight: 600; color: var(--label); }
.pshare small { font-size: .8125rem; color: var(--label2); }
.pshare > .label { justify-content: flex-start; gap: 6px; }
.pshare > .label .i { width: 16px; height: 16px; flex: none; }

/* Typing on a phone (web/onscreenkeys.js, Payton 2026-10-31): while the on-screen keyboard is up (html.keys), as in a
   messaging app. The app's bar and the floating buttons go; the box sits right on top of the keyboard (--keys-gap: the
   page under what is seen); the top, the strips and the page follow what is seen down when Safari pans it (--keys-top),
   so nothing is pushed up under the status bar; and the page's room under its last line is the box's, above the
   keyboard. Last in the sheet, and over the lifted bar's and a story's own rules. */
@media (max-width: 1099px) {
  html.keys .bar, html.keys .action, html.keys .back, html.keys body.instory .circ.back,
  html.keys body.instory .topbar .side:first-child > .homepill { display: none !important; }
  /* The solid band under the bar goes with it: left, it was a blank dark block over the page above the keyboard
     (Payton's iPhone, 2026-11-02, the Party tab's friend box). */
  html.keys body::after { display: none !important; }
}
html.keys .composer, html.keys .composer.alone { bottom: calc(var(--keys-gap, 0px) + 8px) !important; }
html.keys .composer::before { bottom: calc(-1 * (var(--keys-gap, 0px) + 8px)) !important; }
html.keys .topbar, html.keys .topbar::before, html.keys .topbar::after { top: var(--keys-top, 0px); }
html.keys #strips, html.keys .main { position: relative; top: var(--keys-top, 0px); }
html.keys .main.withbox, html.keys body.instory .main { padding-bottom: calc(var(--keys-gap, 0px) + 8px + var(--composer-h, 96px) + 24px) !important; }
html.keys:has(.main.withbox) { scroll-padding-bottom: calc(var(--keys-gap, 0px) + 8px + var(--composer-h, 96px) + 24px) !important; }

/* Titles look like titles, options look like options (Payton, 2026-11-01: "the titles should look like titles and in the
   middle. When options and titles look the same it's hard to distinguish"). Three kinds of words, three looks:
   - A screen's title (h1.ltitle, h1.title on the painting) and the italic line over it: centred, in the book face, the
     ember ornament under it, and no backing of its own: no box and no oval (Payton's iPhone, the same day: #468's soft
     dark oval under each title read as a smudge). The letters read by their own shadow instead: a crisp, tight one in
     the page's edge colour (dark in Night, light in Day) that outlines every stroke, and a soft one that lifts them off
     a busy painting. Over a bright painting a full-width, very gentle wash from the top of the screen down past its
     title (#screen::before) helps the whole header area, never a shape per title (test/newui/titles-bars-filters.test.js
     reads both against the brightest and darkest painting in every look).
   - A section's title (.lsec, web/library/heads.js; any other .label on the painting): heading words at the left, 20/600,
     no ornament (Sleek C), the same shadow; its count (.lcount) and its line (.lsub) 15/400 and quiet under it.
   - An option (.lmore: See all, Open the Book; a link left in an older label): a small link on the heading's own row,
     at its right, never in the title's words (below: dense, as an app store's page).
   The pill rule above still sets their colour; this, later and more specific, takes the box away. */
:is(h1.ltitle, h1.title):not(:is(.glass, .card, .sheet, .popup, .hero, .bookhero, .dhero, .ohero) *),
:where(#screen, .lrow) > p.muted.kicker,
:where(#screen, #screen > .stack, #screen > .stack > .stack, .lplay, .lrow, .lstart > .stack) > :is(.lsec, .lcount, .lsub, h2.label, div.label, p.label):not(:empty, :is(.glass, .card, .ocard, .dense) > *) {
  align-self: center; width: fit-content; max-width: 100%; margin-inline: auto; text-align: center; border-radius: 0;
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent), var(--title-glow); }
:is(h1.ltitle, h1.title):not(:is(.glass, .card, .sheet, .popup, .hero, .bookhero, .dhero, .ohero) *) { padding: 0 16px 2px; margin-block: 0; }
#screen :where(#screen, .lrow) > p.muted.kicker { padding: 0 16px; margin: 0 0 -2px; color: var(--label); }
/* A section's title is one style everywhere on the painting (Sleek C, council-sleek C16): at the left, 20/600, its count
   or line 15/400 quiet under it, See all 15/400 in the accent on its row; no ornament (the screen's title keeps its own). */
:where(#screen, #screen > .stack, #screen > .stack > .stack, .lplay, .lrow, .lstart > .stack) > :is(.lsec, .lcount, .lsub, h2.label, div.label, p.label):not(:empty, :is(.glass, .card, .ocard, .dense) > *) {
  align-self: flex-start; margin-inline: 0; text-align: left; }
/* The header's wash, on a phone (on a laptop the rail is beside the titles and the column is narrow): the width of the
   screen, from the top of the page down past the title, faded in and out, so it has no edge. It scrolls with the
   screen, under everything on it, and never takes a tap. */
@media (max-width: 1099px) {
  :root:not([data-app="office"]) body:not(.mailapp, .instory) #screen { position: relative; }
  :root:not([data-app="office"]) body:not(.mailapp, .instory) #screen::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: calc(var(--top-h) + var(--safe-top) + 200px);
    background: linear-gradient(transparent, color-mix(in srgb, var(--edge) 30%, transparent) 48px, color-mix(in srgb, var(--edge) 30%, transparent) 60%, transparent); pointer-events: none; }
}
/* Where the column is narrower than the screen (a tablet), its sides fade too: never an edge. */
@media (min-width: 900px) and (max-width: 1099px) {
  :root:not([data-app="office"]) body:not(.mailapp, .instory) #screen::before { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
}
/* (the title's ornament was here; taken away 2026-11-19, as above) */
#screen :is(.lsec, .lrow > :is(h2.label, div.label)) { display: block; padding: 0 2px; margin-top: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--label); }
.lsec .i, .lrow > :is(h2.label, div.label) > .i { width: 18px; height: 18px; margin-right: 6px; vertical-align: -2px; color: var(--accent-glyph); }
/* A kind inside a group (Shelves' Player characters under Created by you): one step down, no rule of its own. */
#screen h3.lsec { font-size: 1.1875rem; }
#screen .lrow > :is(.lcount, .lsub) { margin: -6px 0 0; padding: 0 2px; font-size: .9375rem; font-weight: 400; color: var(--label2); }
#screen .lrow > .lsub { font-style: italic; }
#screen :is(.lrow > .lmore, .lrow > :is(h2.label, div.label) > :is(a, button)) { align-self: flex-end; min-height: 44px; padding: 0 4px 0 10px; gap: 2px; font-size: .9375rem; font-weight: 400;
  font-family: system-ui, -apple-system, sans-serif; text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge); color: var(--accent-text); }
.lrow > .lmore .i { width: 16px; height: 16px; }
/* A link left inside an older label (Create's, Friends'): set apart as a button of its own after the words. */
.lrow > :is(h2.label, div.label) > :is(a, button) { display: inline-flex; vertical-align: middle; margin-left: 12px; border-radius: var(--pill); background: var(--raised); }
.lrow > :is(h2.label, div.label) > :is(a, button)::after { display: none; }

/* Dense, as a good app store's or Apple Books' page (Payton's iPhone, 2026-11-01: "I don't like all the empty space"):
   the screen's title block small, each section's heading and its See all on ONE row (the heading at the left, See all
   a small link at the right of the same row), sections 20px apart, and a row of cards
   that scrolls sideways on a phone, so a screen shows two or three sections with their cards. Library Play, Shelves
   and Discover; Today and Settings take the smaller title. */
#screen > .lhead { gap: 2px; }
#screen .lplay { gap: 20px; }
#screen .lrow:has(> .lsec) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 8px; }
#screen .lrow:has(> .lsec) > * { grid-column: 1 / -1; min-width: 0; }
#screen .lrow:has(> .lsec) > .lsec { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; text-align: left; }
#screen .lrow:has(> .lsec) > .lmore { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#screen .lrow:has(> .lsec) > :is(.lcount, .lsub) { justify-self: start; margin: -6px 0 0; text-align: left; }
@media (max-width: 1099px) {
  /* A row of cards sideways (play.js, shelves.js and discover.js put .srow on a row's cards): the gutter kept at both
     ends, each card snapping to the start, the next card's edge showing so it reads as more. */
  #screen .srow { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  #screen .srow::-webkit-scrollbar { display: none; }
  #screen .srow > * { flex: 0 0 116px; scroll-snap-align: start; }
  #screen .srow > .book { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 8px 10px; border-radius: var(--r-card); }
  #screen .srow > .book .cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-row); }
  #screen .srow > .book .grow b { font-size: 0.875rem; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; overflow-wrap: anywhere; }
  #screen .srow > .book .grow > span { font-size: 0.75rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
  #screen .srow > .book .bmeta { margin-top: 4px; font-size: 0.75rem; gap: 4px 6px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  #screen .srow > .book :is(.lasttime, .bgo) { display: none; }
  #screen .srow > .dcard { flex-basis: 150px; }
  #screen .srow > .dcard .dsub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  /* Shelves' kinds: one row that scrolls sideways, as Discover's. */
  #screen .lrow > nav:has(> .chip) { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  #screen .lrow > nav:has(> .chip) > .chip { flex: none; }
}

/* Discover's kinds: ONE row that scrolls sideways; then its Filters button, a count of what is on beside its word
   (discover.js; Payton's iPhone, 2026-11-01). The sheet holds the sort, the rating and the genre, a group each. */
#screen .dkinds { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
#screen .dkinds::-webkit-scrollbar { display: none; }
#screen .dkinds .chip { flex: none; }
.dfilterrow { display: flex; }
.dfilterbtn { gap: 6px; }
.dfilterbtn .dcount { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; }
.dfsheet { gap: 16px; }
.dfsheet .dfhead { font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label2); }

/* Under the bar (Payton's iPhone, 2026-11-01: cards showed scrolling in the gap between the floating bar and the
   screen's bottom edge). From the bar's top down to the very bottom solid --edge, the root's own colour and the top
   band's (2026-11-02: never the painting's tone, which left a brown strip under the band), so from the bar to the
   screen's edge is one colour even where iOS shows the root below the layout; it fades in over 48px above the bar, eased,
   so it has no edge against the painting. Under the box (Chat) the box's own band does this too (.composer::before), and
   in a story there is no bar. */
@media (max-width: 1099px) {
  body:not(.bare, .instory, .inmail, .apphome):has(> #bar)::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; pointer-events: none;
    height: calc(var(--bar-h) + 12px + var(--safe-bottom) + 48px);
    background: linear-gradient(transparent, color-mix(in srgb, var(--edge) 30%, transparent) 16px, color-mix(in srgb, var(--edge) 75%, transparent) 32px, var(--edge) 48px); }
  html.liftbar body:not(.bare, .instory, .inmail, .apphome):has(> #bar)::after { height: calc(2 * var(--bar-h) + 22px + var(--safe-bottom) + 48px); }
}

/* The bar gets out of the way while the page scrolls down (web/barhide.js; Payton, 2026-11-01, of YouTube's: "it has the
   bottom bar that moves when you scroll down"), and comes back when it scrolls up. The bar, the round action and the
   band under them move together by the band's own height, so nothing seams; a transform only, so nothing else moves.
   With Reduce Motion it never goes (barhide is never set then; this holds if the setting changes midway). */
@media (max-width: 1099px) {
  :root { --hide-by: calc(var(--bar-h) + 12px + var(--safe-bottom) + 48px); }
  html.liftbar { --hide-by: calc(2 * var(--bar-h) + 22px + var(--safe-bottom) + 48px); }
  .bar, body > .action, body:has(> #bar)::after { transition: transform .2s ease; }
  html.barhid .bar, html.barhid body > .action, html.barhid body:has(> #bar)::after { transform: translateY(var(--hide-by)); }
}
@media (max-width: 1099px) and (prefers-reduced-motion: reduce) {
  html.barhid .bar, html.barhid body > .action, html.barhid body:has(> #bar)::after { transform: none; }
}

/* Home holds the apps, so on a phone it has no bar (Payton, 2026-11-01: "since the apps are there it's redundant"), and
   nor does any app's home page (Payton, 2026-11-02: "The bar shouldn't be on any of the home pages of the apps"): Chat's
   new chat, Today, Settings' top page, the Library's Play, the Office's door (web/screens.js APP_HOMES; app.js puts
   apphome on the body there, athome on Home alone). Each leads where its bar did by its own places (.places, below). Its
   screen then needs only the bottom's safe room (and Safari's toolbar's), plus the round action's when it has one (the
   Office's Drop in a file, Library Harrox), its box sits at the bottom, and a round action at the bottom right. The
   laptop's rail stays: it holds the chats too. */
@media (max-width: 1099px) {
  body.apphome #bar { display: none; }
  body.apphome .main { padding-bottom: calc(24px + var(--safe-bottom) + var(--toolbar-room)); }
  body.apphome:has(> .action) .main:not(.withbox) { padding-bottom: calc(76px + var(--safe-bottom) + var(--toolbar-room)); }
  body.apphome .composer { bottom: calc(12px + var(--safe-bottom)); }
  /* The box is a dock (Payton's iPhone, 2026-11-02: the AI line sat over the cards, which showed through it): solid
     --edge behind the box and its AI line down to the screen's edge, faded in over 24px above the box, and the page's
     last card scrolls fully clear of it (the box's live height, its AI line in it: composer.js --composer-h). */
  body.apphome .composer::before { bottom: calc(-1 * (12px + var(--safe-bottom))); background: linear-gradient(to bottom, transparent, var(--edge) 24px); opacity: 1; }
  body.apphome .main.withbox { padding-bottom: calc(12px + var(--safe-bottom) + var(--composer-h, 120px) + 24px + var(--toolbar-room)); }
  html:has(body.apphome) { scroll-padding-bottom: calc(24px + var(--safe-bottom) + var(--toolbar-room)); }
  html:has(body.apphome .main.withbox) { scroll-padding-bottom: calc(12px + var(--safe-bottom) + var(--composer-h, 120px) + 24px + var(--toolbar-room)); }
  body.apphome .action { right: 12px; bottom: calc(12px + var(--safe-bottom)); }
}

/* An app's places on its home page (web/places.js drawPlaces; bar.js placesFor): one row of tiles that scrolls sideways
   under the title, every place the app's bar had for this person, an icon in a rounded square in the app's accent with
   its name under it, as Home's apps are (the name one line, cut with an ellipsis); a count sits on the icon's corner
   (Email's unread on Work Home). A phone's only: from 1100px the rail holds them. */
@media (max-width: 1099px) {
  .places { display: flex; gap: 4px; margin: 0 -4px; padding: 2px 4px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .places::-webkit-scrollbar { display: none; }
  .places > .place { flex: 0 0 76px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 4px 2px; border-radius: var(--r-row); color: var(--label); text-align: center; }
  .places > .place > .ic { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
    background: color-mix(in srgb, var(--accent) 36%, rgba(26, 30, 40, .72)); color: #F2EFE8; }
  .places > .place > .ic .i { width: 26px; height: 26px; }
  .places > .place > b { display: block; max-width: 100%; padding: 0 1px; font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent); }
  .places .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; line-height: 1; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--edge); }
  .places > .place:active > .ic { scale: .94; }
}
@media (min-width: 1100px) { .places { display: none; } }

/* The generated pictures back on the cards (Payton, 2026-11-01): a story's cover, a character's face, as <img> (CSP:
   no style attribute), filling the cover's place; the icon stays for one with none. A story's start page shows its
   cover over the page. */
.book .cover.pic, .dcover.pic { padding: 0; overflow: hidden; background: var(--fill); }
:is(.book .cover, .dcover).pic > img, .scover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lstart > .scover { align-self: center; width: min(240px, 64%); aspect-ratio: 3 / 4; border-radius: var(--r-row); overflow: hidden; box-shadow: var(--glass-shadow); background: var(--fill); }

/* Quiet notes (Payton's iPhone, 2026-11-01: "Marks are play money..." as a black slab on the painting, outside any
   card; Shelves' notes the same). Every standing note that lies on the painting is small words with no backing, read by
   the titles' own shadow (above), never a dark pill: Play's line, a first part's, a profile's, Server's, the lobby's,
   a message's hint, a story's waiting line and its end. A live line that says what just happened keeps its backing. */
#screen :is(.lrow > .muted, .first-slot > .muted, .profile .lplay > p.muted, .srv > p.muted, .srv > .stack:not(.card) > p.muted, .lobby .hpnote, .dmhint,
  .pending > .muted, .endnote, .carried) {
  padding: 0 2px; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: .875rem;
  text-shadow: 0 0 1px var(--edge), 0 1px 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent); }

/* Safari's AutoFill (Payton's iPhone, 2026-11-02): a box it fills turns bright yellow, and the friend box was offered a
   saved password. Every box but the login's own keeps its look: the yellow covered by the field's colour, the words in
   the label's. */
input:-webkit-autofill:not([autocomplete~="username"]):not([autocomplete~="current-password"]):not([autocomplete~="new-password"]):not([autocomplete~="one-time-code"]) {
  -webkit-box-shadow: 0 0 0 1000px var(--edge) inset; box-shadow: 0 0 0 1000px var(--edge) inset; -webkit-text-fill-color: var(--label) !important; caret-color: var(--label);
  transition: background-color 600000s 0s, color 600000s 0s; } /* focused, the ring takes the box-shadow: the fill waits instead */

/* The quest box (web/library/questbox.js, held 'narratorquests'): top right of the story under the top bar, in the story
   cards' look on dense glass; folded, it is one pill line. */
.questbox { position: fixed; z-index: 29; right: 12px; top: calc(var(--top-h) + var(--safe-top) + 8px); width: min(320px, calc(100vw / var(--size, 1) - 24px)); max-height: calc(60vh / var(--size, 1)); overflow: auto;
  background: var(--glass-dense); border-color: var(--glass-edge); box-shadow: var(--spec), var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.questbox:not([open]) { width: auto; max-width: min(260px, calc(100vw / var(--size, 1) - 24px)); border-radius: var(--pill); overflow: hidden; }
.questbox .qgroup { display: flex; flex-direction: column; gap: 6px; }
.questbox .qhead { margin: 4px 0 0; font: 600 .8125rem/1.3 var(--font); color: var(--label2); }
.questbox .questone { background: none; }
.questbox .qtime { flex: none; font-size: .8125rem; color: var(--label2); }
.questbox .qsteps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: .875rem; }
.questbox .qsteps li { display: flex; align-items: flex-start; gap: 6px; }
.questbox .qsteps li.done { color: var(--label2); }
.questbox .qsteps .i { flex: none; width: 14px; height: 14px; margin-top: .2em; color: var(--accent-glyph); }
@media (prefers-reduced-motion: reduce) { .questbox .i { transition: none; } }
/* From 1100px it sits at the top of the party panel, in its flow (questbox.js mount). */
@media (min-width: 1100px) { .party > .questbox { position: static; width: auto; max-width: none; max-height: none; box-shadow: none; } }
/* The quick note's box (web/quicknote/quicknote.js): one field, Done, and a line for each step Harrox took, newest first. */
.qn { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.qn textarea { font: inherit; color: var(--label); background: var(--fill); border: 1px solid var(--glass-edge); border-radius: var(--r-ctl); min-height: 96px; padding: 10px 14px; width: 100%; min-width: 0; resize: vertical; line-height: 1.4; }
.qn textarea::placeholder { color: var(--placeholder); }
.qnfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.qnsay, .qnreads { margin: 0; color: var(--label2); }
.qnreads:empty, .qnsay:empty { display: none; }
.qnlines { display: flex; flex-direction: column; gap: 8px; }
.qnline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; padding: 8px 12px; background: var(--raised); border-radius: var(--r-ctl); }
.qnbad { flex-basis: 100%; color: var(--bad-text); }
/* The notebook's Organized tab (web/notebook/organized.js): a card per list; each line is a 44px tap, tick box and all. */
.orgs { display: flex; flex-direction: column; gap: 12px; }
.org { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.orghead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.orghead a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--accent-text); }
.orglines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.orgline { display: flex; align-items: center; min-height: 44px; }
.orglabel { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; }
.orgline input { min-width: 44px; min-height: 44px; margin: 0; accent-color: var(--accent); }
.orgline.done .orgwhat { text-decoration: line-through; color: var(--label2); }
.orghint { margin: 0; }
.orgfolded { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.orgfolded a { min-height: 44px; display: inline-flex; align-items: center; color: var(--label2); }
/* A file held over a picker's area (dropfile.js): the accent's outline; one its box wouldn't take, the danger words'. */
.dropping { outline: 2px dashed var(--accent); outline-offset: -4px; }
.dropno { outline: 2px dashed var(--bad-text); outline-offset: -4px; }
/* A PDF shown in the Office (web/office/pdfview.js): the browser's own viewer, the card's width. */
.opdf { display: grid; gap: 8px; margin-top: 8px; }
.opdf iframe { width: 100%; height: min(75vh / var(--size, 1), 900px); border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--surface); }

/* The pay step and the cancel sheet (web/door/pay.js, web/settings/subscription.js): each plan is one of the app's own
   buttons (.btn: raised, 44px and up), so it reads as something to tap (walk of Nov 14), with the price in the display
   serif; the accent only where a price is pointed at. */
/* Choose your plan (Payton's screen, 2026-11-14) in the app's own Night tokens: names and prices in the display serif,
   the picked plan ringed in the accent with its dot filled, the total and Continue to payment on a sheet at the foot. */
.paylist { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.btn.payplan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-content: stretch; gap: 4px 14px; min-height: 64px; padding: 12px 16px; color: var(--label); font: inherit; text-align: left; white-space: normal; cursor: pointer; }
.btn.payplan[aria-checked="true"] { background: var(--tint); box-shadow: inset 0 0 0 2px var(--accent); }
.paydot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--label2); }
.payplan[aria-checked="true"] .paydot { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 5px var(--edge), inset 0 0 0 10px var(--accent); }
.payname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.payname strong { font: 600 22px/1.15 var(--display); }
.payname small { font-size: .875rem; color: var(--label2); }
.payname small.paysave { color: var(--accent-text); font-weight: 600; }
.payprice { font: 600 24px/1 var(--display); font-variant-numeric: lining-nums; }
.paylabel { margin: 4px 0 0; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label2); }
.payseg > button { min-height: 44px; }
.paybadge { margin-left: 6px; padding: 2px 8px; border-radius: var(--pill); background: var(--fill); font-size: .75rem; font-weight: 600; }
.paybadge:empty { display: none; }
.paysheet { display: grid; gap: 12px; margin-top: 8px; padding: 16px; border-radius: var(--r-card); background: var(--surface2); }
.paysum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.paysum > .payname { font-size: 1rem; }
.paytotal { font: 600 36px/1 var(--display); font-variant-numeric: lining-nums; }
.payfree { margin: 0; color: var(--accent-text); font-weight: 600; } /* the free first month (web/door/pay.js) */
.paychairs[hidden] { display: none; }
.payreasons .btn { min-height: 44px; white-space: normal; }
/* The round action leaves the bottom on a phone (Vincent, 2026-11-17, on the dragged bar: "keep that stuff off the
   bottom for iphone and just keep the tab bar"): it is a 44px circle at the top's right end, the top-left circles' size
   and depth, in its own gold, as before the main thing to press (the same link, label and sheet: app.js, bar.js
   actionAttrs). The top's right side steps in to make room for it (a margin, so the top's own circles keep their size;
   topfit.js counts it). It no longer hides with the bar while the page scrolls (barhide.js). After the bar's, the lifted
   bar's and an app home's rules for it, so it wins; only the keyboard's ring comes later. From 1100px nothing changes.
   The bar's words still leave room for an action beside it (bar.js fitTabs, pinned by test/newui/bar-8a.test.js). */
@media (max-width: 1099px) {
  :root body > a.action { top: calc(10px + var(--safe-top)); right: 12px; bottom: auto; width: 44px; height: 44px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--ctl-depth); transform: none; }
  :root body > a.action .i { width: 22px; height: 22px; }
  body:not(.bare, .instory):has(> a.action) .topbar > .side:not(:first-child):last-child { margin-right: calc(44px + 8px); }
}
/* The phone's tab bar is gone or there (Vincent, 2026-11-17: "the tab bar stays the tab bar on the left and remove the
   stuff at the bottom of the phone thing", then "no strip just the the tab bar gone and there"; Payton's "expandable on
   phone where u can drag it back or forward"): under 1100px the bar is never on screen, Mail's too, and nothing is kept
   for it at the bottom (--bar-h 0: the page's, a box's, the scroll's and Mail's room under them; the safe area and
   Safari's toolbar room stay). Its tabs are the left list (bar.js openTabs), opened by the top's tabs circle (app.js
   tabsLink, or the Library's three-line button; Mail's mtabs) or pulled out by a finger from the screen's left edge:
   .tabsedge, a 16px band under the top row (the page's side margin, so it never covers a row's words or a button), there only where the bar has tabs (drawerbar), touch-action pan-y so
   sideways is the finger's and up and down still the page's (bar.js dragTabs). The band under the old bar goes, and the
   page uses the whole width. Home, an app's home page, a story, a bare screen and an open email have no tabs here: the
   left edge stays the chats' there (drawer.js watchEdge). Last but the keyboard's ring.
   Then both (Payton, 2026-11-21, asked which a phone should have: "Both"): where the bar holds the apps (body.barapps:
   an app's apps bar, #734 and #735, or the apps outside any app) it is on screen at the bottom again, with its room
   under the page (--bar-h stays 64px, so Bookings' round + sits above it), and the left list holds the app's own places
   (body.striptabs, app.js tabsHere: never the apps the bar shows). The band then stops above the bar, so the two never
   overlap. An app's own bar (Server, In the works) stays off screen, its places in the left list. Mail's page is as it
   was (its band where its bar has tabs). Home has no bar either way, the calm Home too: its tiles are the apps. */
.tabsedge { display: none; }
@media (max-width: 1099px) {
  body:not(.barapps) > #bar { display: none; }
  body.striptabs:not(.apphome, .athome, .bare, .instory, .inmail) > .tabsedge,
  body.mailapp:not(.apphome, .athome, .bare, .instory, .inmail):has(> #bar.drawerbar:not([hidden])) > .tabsedge { display: block; position: fixed; left: 0; top: calc(var(--top-h) + var(--safe-top)); bottom: 0; width: 16px; z-index: 29; touch-action: pan-y; }
  body.barapps:not(.apphome, .athome) > .tabsedge { bottom: calc(12px + var(--bar-h) + var(--safe-bottom)); }
  html:has(> body:not(.apphome, .athome, .bare, .instory, .barapps) > #bar:not([hidden]) > a[data-tab]) { --bar-h: 0px; overscroll-behavior-x: none; }
  html:has(> body.striptabs) { overscroll-behavior-x: none; }
  body:not(.barapps):has(> #bar)::after { display: none; }
}
@media (min-width: 1100px) { .topbar :is(.tabsbtn, .mtabs) { display: none; } }
/* Scrollbars (Payton, 2026-11-22: "i also like invisible scroll bars", then "or super skinny and light"): none at rest, a
   3px faint thumb while the pointer is over a scrolling area (the rail, the chats, a popup, a list). Scrolling by wheel,
   touch or keys is as before. The page's own (html) stays hidden. Firefox has no width to set, so there it is its
   thin bar, faint, with the same hover. A rule that names scrollbar-width itself (.talklist: none) is left to it. */
:not(html, body)::-webkit-scrollbar { width: 3px; height: 3px; }
:not(html, body)::-webkit-scrollbar-track, :not(html, body)::-webkit-scrollbar-corner { background: transparent; }
:not(html, body)::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
:not(html, body):hover::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--label2) 40%, transparent); }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
@supports not selector(::-webkit-scrollbar) {
  :not(html, body) { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  :not(html, body):hover { scrollbar-color: color-mix(in srgb, var(--label2) 40%, transparent) transparent; }
  html { scrollbar-width: none; }
}
/* The keyboard's ring (accessibility.md 12): one for everything, two-tone so it reads on light and dark glass alike: an
   outline in the words' colour inside a 6px halo of the page's edge colour (dark in Night; in Day the halo is light and
   the outline the dark tone). Drawn outside the thing, so a glass card's overflow never clips it. Last in the file and
   !important, so no control's own shadow (its glass, a button's glow) takes the halo away; the box and the drawer's
   search wear it round themselves, not on the field inside (test/newui/keyboard.test.js). */
:focus-visible, .composer .box:focus-within, .drawer .searchrow:focus-within { outline: 2px solid var(--label) !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px var(--edge) !important; }
/* A menu's glass clips what lies outside it, so a row's ring is drawn inside the row: the same two tones. */
.menu [role="menuitem"]:focus-visible { outline-offset: -4px !important; box-shadow: inset 0 0 0 6px var(--edge) !important; }
/* No ring of their own: the fields inside a ringed box, and what only a script focuses (crisis help, a form's body, a
   screen's heading reached by a tap). */
.composer textarea:focus-visible, .drawer .searchrow input:focus-visible, .crisis:focus, .wayin-body:focus, h1[tabindex="-1"]:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
/* A screen's heading focused for a screen reader after a tap: Safari counts a script's focus as :focus-visible, so the
   ring waits for the keyboard (screenfocus.js watchInput, html[data-input]). */
:root:not([data-input="keys"]) :is(h1, h2, h3)[tabindex="-1"]:focus { outline: none !important; box-shadow: none !important; }
