/* Den's look: Are.na made small for an app. Arial at two weights (regular, and bold where a name or a heading needs
   it), hierarchy by size and grey; white (or black), periwinkle buttons, square-ish corners. Follows the system's light
   or dark. Each person keeps their colour as a name badge.
   Everything a rule says about size, colour, rhythm or timing comes from the one set of tokens in :root below, or from
   the spacing scale. test/look.test.ts holds every rule to them, so the look can't drift one value at a time:
   - Colour: a token (--fg, --g2, --brand…). Nothing else names a colour (a mask's black is a mask, not a colour).
   - Type: --xs --sm --md --lg --xl for size; --tight --lh --loose for line height; weight 400 or 700, nothing between.
   - Spacing: margins, padding and gaps are on Are.na's scale, 2 5 10 15 20 25 35 45 65 (px), or 0 or 1px.
   - Corners: --r, or --r-film for a film's frame; a squircle where the browser draws one. A round shape is 50%.
   - Layers: --z-up, --z-over, --z-float, --z-menu, --z-top, --z-toast, lowest to highest.
   - Timing: --quick, --move, --slow for anything a control does; a longer literal is a scene (a film's fade).
   One component per job: a checkbox, a menu, a shelf are each drawn once and reused, never restyled where they're used. */
/* Arrows (→ ← ↔ ⇒, which the editor writes for -> and the rest) are drawn by the system's own typeface, as Notion
   draws them: a short arrow with an open head. Arial's is a long hairline with a speck for a head. (≠ ≤ ≥ stay
   Arial's: the system's ≠ comes out as an = with a stroke beside it.)
   A typeface can't be named for a few characters only, and the system's can't be named in a font file's source at all,
   so it's said the other way round: "Den Text" is Arial for every character but those, and those fall through to the
   next family, the system's. All four cuts are named, or bold and italic would be faked from the regular. Where Arial
   isn't on the device, everything is the system's face, which is what such a device showed before. */
@font-face { font-family: "Den Text"; font-weight: 400; font-style: normal; src: local("Arial"), local("ArialMT"); unicode-range: U+0000-218F, U+2200-10FFFF; }
@font-face { font-family: "Den Text"; font-weight: 700; font-style: normal; src: local("Arial Bold"), local("Arial-BoldMT"); unicode-range: U+0000-218F, U+2200-10FFFF; }
@font-face { font-family: "Den Text"; font-weight: 400; font-style: italic; src: local("Arial Italic"), local("Arial-ItalicMT"); unicode-range: U+0000-218F, U+2200-10FFFF; }
@font-face { font-family: "Den Text"; font-weight: 700; font-style: italic; src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"); unicode-range: U+0000-218F, U+2200-10FFFF; }
:root {
  /* Colours: every one is light-dark(light, dark), so whichever color-scheme an element has picks its half: the
     system's everywhere, or the one a person chose (data-mode, set before paint by pages.ts THEME), dark inside the film
     at /about, the chat's inside a panel (show.ts). This block is the getden theme (getden's own app's palette: warm
     greys, charcoal, periwinkle), and it's what emails and panels use (look.ts). Classic, below, is the same tokens in
     white and pitch black. Nothing else names a colour; a picture's own ground (--media) and what's laid on it
     (--on-media) are the same everywhere. */
  color-scheme: light dark;
  --bg: light-dark(#fff, #1c1c1f); --fg: light-dark(#282a30, #e6e7eb); --fg2: light-dark(#6c6a63, #9a9ba3);
  --fg3: light-dark(#918e87, #7c7d85); --fg4: light-dark(#bdbab4, #4c4d53);
  --g1: light-dark(#f2f0ed, #2a2a2d); --g2: light-dark(#ebe9e6, #353538); --g3: light-dark(#dddbd8, #404043); --line: light-dark(#e0e1e5, #2d2d33);
  --brand: #6f79d9; --on-brand: #fff; --focus: light-dark(#6771ca, #8088d1); --mark: light-dark(#fdf4dd, #443c24); --link: light-dark(#2161dc, #6f97e6);
  --alert: light-dark(#e07425, #f59e0b); --green: light-dark(#3a903a, #5fb85f); --red: light-dark(#d93636, #c65d5d);
  --tip-bg: light-dark(#282a30, #e6e7eb); --tip-fg: light-dark(#fff, #1c1c1f);
  --shade: light-dark(rgba(0, 0, 0, .1), rgba(0, 0, 0, .45)); --shadow: 0 6px 24px var(--shade); --scrim: light-dark(rgba(153, 151, 148, .42), rgba(18, 20, 22, .7));
  --media: #000; --on-media: #fff;
  /* A picture's white ground (a poster drawn on paper), whatever the mode. */
  --paper: #fff;
  --hair: .5px;
  --font: "Den Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --xs: .78125rem; --sm: .9rem; --md: 1rem; --lg: 1.2rem; --xl: 1.5rem;
  --tight: 1.25; --lh: 1.4; --loose: 1.5;
  /* Layers, lowest to highest: lifted over its neighbour, over that, a floating bar, a menu, a page over the page, a toast. */
  --z-up: 1; --z-over: 2; --z-float: 10; --z-menu: 20; --z-top: 30; --z-toast: 40;
  /* How long a control takes: a hover or a tick, something that moves, something that arrives. */
  --quick: .15s; --move: .2s; --slow: .4s;
  --max: 580px; --gutter: 15px; --edge: max(var(--gutter), env(safe-area-inset-left, 0px));
  --c: var(--g3);
  /* Corners: Are.na's square-ish boxes, each a squircle (continuous, like an iPhone's own) where the browser draws one
     (corner-shape, below); elsewhere a plain round corner of the same size. */
  --r: 4px;
  /* A film's frame (den.talk's, src/front_film.ts): a picture that moves reads as a screen, so it's rounder than a card. */
  --r-film: 10px;
}
/* Every corner is a squircle. A squircle's curve starts as far in but bends later, so it reads smaller than a round
   corner of the same radius: half again as much keeps each corner the size it was. A round shape (a face, a spinner)
   stays round: its rule says corner-shape: round. */
@supports (corner-shape: squircle) {
  :root { --r: 6px; --r-film: 15px; }
  * { corner-shape: squircle; }
}
/* Light or dark whatever the system says, when a person has chosen one (the menu by their picture). */
:root[data-mode="light"] { color-scheme: light; }
:root[data-mode="dark"] { color-scheme: dark; }
/* Native controls (a checkbox, a range, a picker) in Den's colour. */
html { accent-color: var(--brand); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--fg); font: 400 var(--md)/1.45 var(--font); margin: 0; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
h1, h2 { font-weight: 400; }
.w { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.mute { color: var(--fg2); }
.small { font-size: var(--xs); color: var(--fg3); }
.note { color: var(--alert); font-size: var(--sm); margin: 10px 0 0; }
.note.ok { color: var(--fg2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r); }
input:focus-visible, textarea:focus-visible { outline: none; }
::selection { background: color-mix(in srgb, var(--focus) 25%, transparent); }

/* Icons: one stroke weight, the text's colour. */
.i { width: 16px; height: 16px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* The one arrow, after the words of anything that takes you somewhere. */
.i.after { display: inline-block; width: 14px; height: 14px; margin-left: 5px; vertical-align: -2px; }

/* Toasts (public/toast.js): small boxes dropped in at the top of any page. */
#toasts { position: fixed; z-index: var(--z-toast); inset: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; justify-items: center; gap: 5px; pointer-events: none; }
/* Shown as a grid only while it can be seen: as a popover it's hidden (display: none) until a toast opens it. */
#toasts:not([popover]) { display: grid; }
#toasts:popover-open { display: grid; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(100%, calc(var(--max) - 2 * var(--gutter))); min-height: 38px; padding: 0 10px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-size: var(--sm); animation: toast-in .18s cubic-bezier(.22, 1, .36, 1) both; }
.toast:has(.ib) { padding-right: 5px; }
.toast a { color: var(--focus); white-space: nowrap; }
.toast a:hover { text-decoration: underline; text-underline-offset: 3px; }
@keyframes toast-in { from { opacity: 0; translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .toast { animation-name: fade; } }

/* The checkbox, everywhere: the editor's to-do box (editor.css), so a setting and a to-do tick the same way. */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 14px; height: 14px; margin: 0; vertical-align: -2px; border: 1.5px solid var(--fg2); border-radius: var(--r); cursor: pointer;
  background: transparent center / 0 0 no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E");
  transition: background-color var(--quick) ease, border-color var(--quick) ease, transform var(--quick) ease; }
input[type="checkbox"]:hover { border-color: var(--fg); background-color: var(--g1); }
input[type="checkbox"]:active { transform: scale(.88); }
input[type="checkbox"]:checked { border-color: var(--brand); background-color: var(--brand); background-size: 10px 10px; }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Tooltips: a word or two in a small dark box, after a moment, above whatever has data-tip. Fingers don't hover. */
[data-tip] { position: relative; }
@media (hover: hover) {
  [data-tip]:hover::after, [data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; z-index: var(--z-menu); bottom: calc(100% + 6px); left: 50%; translate: -50% 0;
    background: var(--tip-bg); color: var(--tip-fg); font-size: var(--xs); line-height: var(--lh); padding: 5px 5px; border-radius: var(--r);
    white-space: pre-line; width: max-content; max-width: 260px; pointer-events: none; animation: tip .15s .35s both;
  }
  [data-tip-end]:is(:hover, :focus-visible)::after { left: auto; right: 0; translate: 0 0; }
}
/* The eye only says something: on hover, or a tap where there is none. */
.ib.eye { cursor: default; }
/* A tip asked for by a tap, where fingers can't hover (the eye on a thought): the same box, until the next tap. */
[data-tip][data-tip-open]::after {
  content: attr(data-tip); position: absolute; z-index: var(--z-menu); top: calc(100% + 6px); right: 0;
  background: var(--tip-bg); color: var(--tip-fg); font-size: var(--xs); line-height: var(--lh); padding: 5px 5px; border-radius: var(--r);
  white-space: pre-line; width: max-content; max-width: 260px; pointer-events: none;
}
@media (hover: hover) {
  [data-tip-start]:is(:hover, :focus-visible)::after { left: 0; translate: 0 0; }
  /* Along the top of the page there's no room above, and a tip there was cut off by the window's edge: it opens below. */
  :is(.top, .doc-top) [data-tip]:is(:hover, :focus-visible)::after { bottom: auto; top: calc(100% + 6px); }
  /* An empty tip is no tip, and an open menu is already saying what its button does. */
  [data-tip=""]::after, [aria-expanded="true"]::after { display: none !important; }
}
/* A button that already has an aria-label says it once: its tip is for eyes (empty alt text where supported). */
@media (hover: hover) { [data-tip][aria-label]:is(:hover, :focus-visible)::after { content: attr(data-tip); content: attr(data-tip) / ""; } }
[data-tip][data-tip-open][aria-label]::after { content: attr(data-tip); content: attr(data-tip) / ""; }
@keyframes tip { from { opacity: 0; } }

/* Buttons, as Are.na's: navy and full width for the one thing to do, grey for the other. */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 45px; padding: 0 20px; border-radius: var(--r);
  background: var(--brand); color: var(--on-brand); font-size: var(--sm); text-align: center; transition: opacity var(--quick); }
.btn:hover { opacity: .92; }
.btn.secondary { background: var(--g1); color: var(--fg); }
/* "Last used" on the assistant someone tapped last (public/apps.js): quiet, at the button's far end. */
.btn:has(> .last-used) { position: relative; }
.btn .last-used { position: absolute; right: 15px; font-size: var(--xs); opacity: .75; }
@media (max-width: 360px) { .btn .last-used { position: static; } }
.btn.secondary:hover { background: var(--g2); opacity: 1; }
.btn[aria-pressed="true"] { background: var(--g1); color: var(--fg); }
.btn[disabled] { opacity: .55; cursor: default; }
/* Busy: the button that was pressed turns into the wait, a plain ring where its label was. */
form[aria-busy] .btn[type="submit"], .btn[aria-busy] { position: relative; color: transparent; opacity: 1; pointer-events: none; }
form[aria-busy] .btn[type="submit"] > *, .btn[aria-busy] > * { visibility: hidden; }
form[aria-busy] .btn[type="submit"]::after, .btn[aria-busy]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid color-mix(in srgb, var(--on-brand) 35%, transparent); border-top-color: var(--on-brand); border-radius: 50%; corner-shape: round; animation: spin .8s linear infinite; }
.btn.secondary[aria-busy]::after, form[aria-busy] .btn.secondary[type="submit"]::after { border-color: var(--g3); border-top-color: var(--fg2); }
.link { color: var(--fg2); text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 3px; }
.link:hover { color: var(--fg); text-decoration-color: currentColor; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; color: var(--fg); word-break: break-all; cursor: copy; }

/* Fields: a grey box, 3px corners, a blue ring when focused. */
.box { display: flex; align-items: stretch; min-height: 45px; background: var(--g1); border: 1px solid var(--g1); border-radius: var(--r); transition: border-color var(--quick), background var(--quick); }
.box:focus-within { background: var(--bg); border-color: var(--focus); }
.box input { flex: 1; min-width: 0; padding: 0 10px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: var(--md); outline: 0; border-radius: var(--r); -webkit-appearance: none; appearance: none; }
.box input::placeholder { color: var(--fg3); }
/* A field said to be wrong, or one the browser finds wrong once it has been typed in or sent (never before). */
.box:has([aria-invalid="true"], :user-invalid) { border-color: var(--alert); }

/* The top bar: the brand mark and what the page picks between (All, You, groups), you on the right. */
.top { display: flex; align-items: center; gap: 2px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 5px; font-size: var(--sm); }
.top .brand { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 5px 0; color: var(--fg2); }
.top .brand svg { width: 15px; height: 15px; flex: none; }
.top .tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top .tabs::-webkit-scrollbar { display: none; }
.top .tabs a { flex: none; padding: 5px 10px; border-radius: var(--r); color: var(--fg2); white-space: nowrap; }
.top .tabs a:hover { color: var(--fg); background: var(--g1); }
.top .tabs a[aria-current="page"] { color: var(--fg); background: var(--g1); }
.top .right { margin-left: auto; flex: none; padding: 5px 0 5px 10px; color: var(--fg2); white-space: nowrap; }
.top .right:hover, .top .right[aria-current="page"] { color: var(--fg); }
/* Connect now, until Claude or ChatGPT is connected. */
/* Whatever sits under the bar (asking to connect, offering a passkey) keeps the same air above as below it. */
.top + .w { flex: none; padding-top: 10px; padding-bottom: 10px; }
.connect-banner { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding-left: 10px; background: var(--g1); border-radius: var(--r); font-size: var(--sm); }
.connect-banner:hover { background: var(--g2); }
/* The whole bar is Connect now; the Claude logo and the x sit above it, each doing its own thing. */
.connect-banner .go::after { content: ""; position: absolute; inset: 0; }
.connect-banner svg:not(.i) { width: 16px; height: 16px; flex: none; }
.connect-banner .add { position: relative; z-index: var(--z-up); display: flex; align-items: center; align-self: stretch; padding: 0 5px; margin: 0 -5px 0 -5px; }
.connect-banner .ib { position: relative; z-index: var(--z-up); margin-left: auto; margin-right: 5px; }
.connect-banner .ib:hover { background: var(--g3); }
/* Not now: quiet words at the line's end, above the link that covers the rest of it. */
.connect-banner .later { position: relative; z-index: var(--z-up); margin-left: auto; align-self: stretch; padding: 0 10px; color: var(--fg3); }
.connect-banner .later:hover { color: var(--fg); }

/* Pages that scroll: invite, profile, getting started. */
div.page { padding-top: 25px; padding-bottom: 65px; }
div.page h1 { font-size: var(--lg); line-height: var(--lh); margin: 0 0 20px; }
div.page h2 { font-size: var(--md); margin: 35px 0 10px; }
div.page p { margin: 0 0 10px; }
div.page .step { margin: 20px 0; display: grid; gap: 10px; }
div.page blockquote { margin: 0 0 15px; padding: 10px 15px; background: var(--g1); border-radius: var(--r); white-space: pre-wrap; overflow-wrap: anywhere; }
/* An invite (pages.ts invitePage): one sentence in grey with what you're joining in black and its picture small
   beside it, then what they said as a message from them; the one thing to do sits at the foot, by the thumb. */
/* The film at /about (pages.ts aboutPage, public/intro.js): the whole page, always black, whatever the theme. Top to
   bottom: the picture with his words over it, centred low like captions, a line at a time (all in one place, the one
   being said showing), then Back and Enter. "fade" runs the picture off into black; "frame" keeps it in a box.
   One typeface, white and grey: what moves is the words arriving and the emoji landing. */
html:has(.intro) { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: var(--z-top); color-scheme: dark; background: var(--media); color: var(--on-media); overflow: hidden; transition: opacity .6s ease; }
.intro[data-done] { opacity: 0; pointer-events: none; }
.intro-in { position: relative; height: 100%; max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column;
  padding: max(15px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(15px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); }
.intro-film { position: relative; flex: 1 1 0; min-height: 120px; cursor: pointer; }
.intro-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; background: var(--media); }
.intro[data-look="fade"] .intro-film { margin: calc(-1 * max(15px, env(safe-area-inset-top))) calc(-1 * var(--gutter)) -65px; }
.intro[data-look="fade"] .intro-film::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 52%, var(--media) 90%); }
.intro[data-look="frame"] .intro-film { border-radius: var(--r); overflow: hidden; }
.intro-sound { position: absolute; z-index: var(--z-over); left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border-radius: var(--r); background: color-mix(in srgb, var(--media) 60%, transparent); color: var(--on-media); font-size: var(--sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* The front page's film: no "Tap for sound", just the icon in its corner, as it sounds now. On /about it's the words. */
.intro-mute { display: none; }
.front-film .intro-sound { display: none; }
.front-film .intro-mute { position: absolute; z-index: var(--z-over); right: 10px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: var(--r); background: color-mix(in srgb, var(--media) 60%, transparent); color: var(--on-media); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.front-film .intro-mute svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.front-film .intro-mute[aria-pressed="true"] svg:last-child, .front-film .intro-mute[aria-pressed="false"] svg:first-child { visibility: hidden; }
.front-film .intro-film:has(> .intro-sound:not([hidden])) .intro-words { bottom: 8%; }
.intro[data-look="fade"] .intro-sound { bottom: 84px; }
/* Over the picture, low and centred like captions; a soft shadow keeps white words readable on any frame. */
.intro-words { position: absolute; z-index: var(--z-up); left: 0; right: 0; bottom: 8%; display: grid; padding: 0 max(10px, 6%); text-align: center; font-size: clamp(1.15rem, 4.8vw, 1.6rem); line-height: var(--tight); letter-spacing: -.01em; color: var(--on-media); text-shadow: 0 1px 2px color-mix(in srgb, var(--media) 70%, transparent), 0 0 18px color-mix(in srgb, var(--media) 55%, transparent); pointer-events: none; }
.intro[data-look="fade"] .intro-words { bottom: calc(70px + 6%); }
/* While the sound button is up (centred along the bottom), the words sit just over it. */
.intro-film:has(> .intro-sound:not([hidden])) .intro-words { bottom: 62px; }
.intro[data-look="fade"] .intro-film:has(> .intro-sound:not([hidden])) .intro-words { bottom: 132px; }
/* A line arrives a word at a time, each coming into focus out of a blur as it's said; the line before it fades away. */
.intro-words .line { grid-area: 1 / 1; align-self: end; margin: 0; opacity: 0; transition: opacity var(--move) ease; }
.intro-words .line[data-on] { opacity: 1; }
.intro-words .line [data-at] { display: inline-block; opacity: 0; filter: blur(8px); -webkit-filter: blur(8px); transition: opacity var(--slow) ease, filter var(--slow) ease, -webkit-filter var(--slow) ease; }
.intro-words .line [data-at][data-on] { opacity: 1; filter: none; -webkit-filter: none; }
.intro-words .line .nb { white-space: nowrap; }
.intro-foot { position: relative; z-index: var(--z-up); flex: none; display: flex; gap: 10px; margin-top: 15px; }
.intro-back { flex: none; display: flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 20px; border-radius: var(--r); color: var(--fg2); }
.intro-back:hover { color: var(--on-media); background: var(--g1); }
.intro-skip { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 45px; border-radius: var(--r); background: var(--g1); color: var(--on-media); }
.intro-skip:hover { background: var(--g2); }
.intro-credit { position: relative; z-index: var(--z-up); margin: 10px 0 0; font-size: var(--xs); line-height: var(--tight); color: var(--fg4); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .intro-words .line [data-at] { filter: none; -webkit-filter: none; transition: none; }
}

.login main:has(> .invited) { padding-top: max(5vh, 35px); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.invited .says-who { margin: 0; font-size: var(--xl); line-height: var(--lh); color: var(--fg3); }
.invited .says-who b { font-weight: 400; color: var(--fg); }
.invited .says-who .nb { white-space: nowrap; }
/* The button that opens the assistant ends in a chevron, so it reads as the way on. */
.invited .btn[data-ask] .i { width: 16px; height: 16px; flex: none; margin-right: -5px; }
.invited .pic { display: inline-block; width: 24px; height: 24px; margin-right: 2px; vertical-align: -3px; border-radius: var(--r); object-fit: cover; background: var(--g1); }
.invited .msg { margin-top: 25px; }
/* A photo picked for them: their face-to-be, plain, with who picked it under it. */
.invited .picked { margin: 25px 0 0; }
.invited .picked img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: var(--r); background: var(--g1); }
.invited .picked figcaption { margin-top: 10px; font-size: var(--sm); color: var(--fg2); }
.invited [data-photo] input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.invited [data-photo] label.btn { cursor: pointer; }
.invited .msg + .msg { margin-top: 10px; }
.invited .bub { display: inline-block; max-width: 100%; margin: 0; padding: 10px 15px; background: var(--g2); border-radius: 18px 18px 18px 4px; font-size: var(--lg); line-height: var(--tight); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Answer first: your answer sits under the question, on the right, as a message you're about to send. */
.invited .msg.mine { text-align: right; }
.invited .msg.mine .by { justify-content: flex-end; min-height: 0; margin: 0 0 5px; }
.invited .msg.mine .bub { border-radius: 18px 18px 4px 18px; text-align: left; }
.invited .box.answer textarea { flex: 1; min-width: 0; display: block; margin: 0; padding: 10px 10px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: var(--md); line-height: var(--lh); outline: 0; resize: none; field-sizing: content; min-height: 4.5em; max-height: 40vh; }
.invited .box.answer textarea::placeholder { color: var(--fg3); }
.invited .bub .veiled { filter: blur(8px); user-select: none; pointer-events: none; }
.invited .foot { margin-top: 35px; display: grid; gap: 10px; }
/* On a phone what to do next sits at the foot of the screen, nearest the thumb, the message above it. */
@media (max-width: 700px) {
  .login main:has(> .invited) { display: flex; flex-direction: column; min-height: 100dvh; }
  .invited { flex: 1; display: flex; flex-direction: column; }
  .invited .foot { margin-top: auto; padding-top: 35px; }
}
.invited .foot p { margin: 0; }
.invited .foot .small { margin: 5px 0 0; }
.invited .tagline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; font-size: var(--xs); color: var(--fg2); }
.invited .tagline svg { width: 15px; height: 15px; flex: none; }
.invited .connect { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; }
.connect:not(:has([data-app])) .until-connected { display: none; }
/* Something you can say: the arrow, then the sentence. */
.says { display: grid; gap: 5px; margin-bottom: 10px; }
.say { display: flex; align-items: flex-start; gap: 10px; padding: 10px 15px; border-radius: var(--r); background: var(--g1); font-size: var(--sm); line-height: var(--lh); color: var(--fg); }
.say:hover { background: var(--g2); }
.say .i { margin-top: 2px; color: var(--fg3); }
div.page .try { color: var(--fg2); margin: 5px 0; }
div.page p.done { margin-top: 35px; }
div.page p.done.centered { text-align: center; }

/* Sign-in: one question, its field, one navy button; a narrow column a third of the way down. */
.login main { width: 100%; max-width: var(--max); margin: 0 auto; padding: max(14vh, 45px) var(--gutter) 45px; }
.login h1 { font-size: var(--lg); line-height: var(--lh); margin: 0 0 5px; }
.login .lede { color: var(--fg2); font-size: var(--sm); margin: 0 0 20px; }
/* The connector's sign-in: a name first, and under it, apart, the number for whoever is already here. */
.login .box.at { align-items: center; }
.login .box.at span { color: var(--fg3); padding-left: 10px; }
.login .box.at input { padding-left: 2px; align-self: stretch; }
.login .also { margin-top: 35px; }
.login .also > summary { list-style: none; cursor: pointer; color: var(--fg2); font-size: var(--sm); }
.login .also > summary::-webkit-details-marker { display: none; }
.login .also > summary:hover, .login .also[open] > summary { color: var(--fg); }
.login .also form { margin-top: 10px; }
.login form { display: grid; gap: 10px; }
/* On a phone the sign-in page is what Den is at the top and the number at the foot, under your thumb; the small print
   under the button. With the keyboard up the page is shorter (dvh), so the field rides just above it. */
@media (max-width: 700px) {
  .login main:has(> .quotes, > .headline) > form:not(.undo) { margin-top: auto; padding-top: 35px; }
  .login main:has(> .quotes, > .headline) > form:not(.undo) ~ .small { margin-top: 15px; padding-top: 0; }
  /* A step that is one question and its answer (the texted code, your name, allowing an app) sits at the foot the
     same way: the question on its field, under your thumb, never alone at the top of an empty screen. */
  .login main:has(> form[data-code]:last-child), .login main:has(> h1:first-child + .lede + form:last-child) { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .login main:has(> form[data-code]:last-child) > :first-child, .login main:has(> h1:first-child + .lede + form:last-child) > :first-child { margin-top: auto; }
  /* With both, what people say stays up top and what Den is sits on the number, the gap between them. */
  .login main:has(> .headline) > .headline { margin-top: auto; padding-top: 35px; }
  .login main:has(> .headline) > .headline ~ form:not(.undo) { margin-top: 0; padding-top: 0; }
}
.sub { display: flex; flex-wrap: wrap; gap: 5px 20px; margin: 15px 0 0; font-size: var(--sm); }
.sub button, .sub a { color: var(--fg2); text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 3px; padding: 5px 0; }
.sub button:hover, .sub a:hover { color: var(--fg); text-decoration-color: currentColor; }
.login .small { margin-top: 25px; line-height: var(--loose); }
.small .company { display: block; margin-top: 10px; }
.proof { list-style: none; margin: 15px 0 0; padding: 0; display: grid; gap: 10px; }
.proof .yc { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.prose-foot { margin-top: 45px; }
/* Just logged out: one tap puts you back. */
.login form.undo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 35px; padding: 5px 5px 5px 15px; border-radius: var(--r); background: var(--g1); font-size: var(--sm); }
.login form.undo p { margin: 0; }
.login form.undo .btn { width: auto; min-height: 40px; background: var(--bg); }
/* The code: big digits, spaced, one field. */
.box.code input { font-size: var(--xl); letter-spacing: .35em; padding-left: 15px; font-variant-numeric: tabular-nums; }
.box.code input::placeholder { letter-spacing: .35em; color: var(--fg4); }

/* The phone field: the country (flag, code) and the number, in one box. */
.phone { position: relative; }
.cc { flex: none; display: flex; align-items: center; gap: 5px; min-width: 106px; padding: 0 10px 0 10px; color: var(--fg); font-size: var(--md); font-variant-numeric: tabular-nums; white-space: nowrap; border-right: 1px solid var(--g3); border-radius: var(--r) 0 0 3px; }
.cc:hover, .cc[aria-expanded="true"] { background: var(--g2); }
.cc .chev { width: 12px; height: 12px; color: var(--fg3); margin-left: auto; }
.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.15em; line-height: 1; }
.cc-pop { position: absolute; z-index: var(--z-float); left: 0; right: 0; top: calc(100% + 5px); background: var(--bg); border: 1px solid var(--g3); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.cc-search { display: flex; align-items: center; gap: 10px; padding: 0 10px; border-bottom: 1px solid var(--line); color: var(--fg3); }
.cc-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: var(--md); outline: 0; -webkit-appearance: none; appearance: none; }
.cc-search input::placeholder { color: var(--fg3); }
.cc-list { list-style: none; margin: 0; padding: 5px 0; max-height: min(38vh, 300px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cc-list li { display: flex; gap: 10px; align-items: center; padding: 10px 10px; cursor: pointer; }
.cc-list li[aria-selected="true"] { background: var(--g1); }
.cc-list li.sep { height: 1px; padding: 0; margin: 5px 0; background: var(--line); cursor: default; }
.cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-dial { color: var(--fg3); font-size: var(--sm); font-variant-numeric: tabular-nums; }
.cc-list li[data-current] .cc-dial::after { content: " ✓"; color: var(--focus); }
.cc-none { color: var(--fg3); cursor: default; }

/* A person's page (pages.ts profilePage), as X draws one but quieter: the picture, round, with what you can do on the
   right of it; the name, the @handle; the row of their accounts elsewhere as plain icons; how many friends. Plain text
   and placement say what each is: no boxes, no labels. */
.person { margin: 10px 0 25px; }
.person-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.person-acts { position: relative; display: flex; align-items: center; gap: 10px; }
.person-acts .dots { margin-right: -5px; color: var(--fg2); }   /* the dots' edge on the page's edge */
.person-acts .dots .i { width: 18px; height: 18px; }
.person-acts .menu { top: 38px; right: -7px; min-width: 220px; }
/* Someone else's page: talk to them in your own assistant. One under the other on a phone, side by side past that. */
/* A person's own den on their page: their line under their name, what a visitor does there, their own page in its frame. */
.person-line { margin: 10px 0 0; color: var(--fg2); overflow-wrap: anywhere; }
.person .gets { margin-top: 20px; }
.person .gets + .talk { margin-top: 15px; }
.talk-foot { margin: 10px 0 0; }
/* The form that changes it, on your own page: your words in the site's own type, a box as tall as what's in it. */
.prompt.own-den .box.area textarea { min-height: 64px; font: var(--md)/1.4 var(--font); field-sizing: content; }
.own-page { display: block; width: 100%; height: 120px; margin-top: 20px; border: 0; background: transparent; }
.talk { display: grid; gap: 10px; margin-top: 20px; }
.talk .btn svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 560px) { .talk { grid-template-columns: 1fr 1fr; } }
/* Your page seen as someone else: a quiet line over it saying so, and the way back. */
.seen-as { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; margin: 5px 0 20px; padding: 10px 0; border-bottom: var(--hair) solid var(--line); font-size: var(--sm); color: var(--fg2); }
.seen-as a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 3px; }
.seen-as a:hover { text-decoration-color: currentColor; }
.person-acts .follow { margin: 0; }
.person-acts .btn { width: auto; min-height: 34px; padding: 0 15px; }
.person-acts .tag { font-size: var(--sm); color: var(--fg3); padding: 0 5px; }
div.page .person h1, .person h1 { margin: 0; font-size: var(--xl); font-weight: 700; line-height: var(--tight); min-width: 0; overflow-wrap: anywhere; }
.person .handle { margin-top: 2px; color: var(--fg3); overflow-wrap: anywhere; }
.person h1 button, .person .handle button { text-align: left; font-weight: inherit; overflow-wrap: anywhere; }
.person h1 button:hover, .person .handle button:hover { text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 4px; }
.person .note { margin: 10px 0 0; }
.who-edit { display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--focus); border-radius: 0; background: none; color: var(--fg); font: inherit; outline: 0; }
.person-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 15px; margin-top: 10px; font-size: var(--sm); color: var(--fg2); }
.person-meta b { color: var(--fg); font-weight: 700; }
.person-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.quiet { color: var(--fg3); font-size: var(--sm); }
.quiet:hover { color: var(--fg); }
.person .topics { margin: 15px 0 0; }

/* What you last touched, under your name (web/recent.js): a small grey word, then each thought as its first words on
   one line, cut where the page ends. Nothing else: the order says which is latest, a tip says when. */
.recent { display: grid; margin: -10px 0 25px; }
.recent a { padding: 5px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent a:hover { text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 4px; }
/* A recent thought not for everyone: its lock hangs in the margin before it, so no line moves (web/recent.js). */
.recent-row { position: relative; display: grid; }
.recent-lock { position: absolute; left: -17px; top: 50%; transform: translateY(-50%); display: flex; color: var(--fg3); cursor: default; }
.recent-lock .i { width: 12px; height: 12px; }

/* A face: a picture, round (the one round thing, as on X), or the first letter of a name in its colour on grey. Your
   own is a button: a camera shows over it on hover, and the wait is a ring around it while it saves. */
.face { position: relative; flex: none; display: inline-grid; place-items: center; width: var(--size); height: var(--size); border-radius: 50%; corner-shape: round; overflow: hidden;
  background: var(--g1); box-shadow: inset 0 0 0 var(--hair) var(--line); color: light-dark(color-mix(in srgb, var(--c) 78%, black), var(--c)); }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face-letter { font-size: calc(var(--size) * .42); font-weight: 700; line-height: 1; }
button.face { cursor: pointer; }
.face-edit { position: absolute; inset: 0; display: grid; place-items: center; background: var(--scrim); color: var(--on-media); opacity: 0; transition: opacity var(--quick); }
.face-edit .i { width: calc(var(--size) * .3); height: calc(var(--size) * .3); }
button.face:hover .face-edit, button.face:focus-visible .face-edit { opacity: 1; }
button.face.lettered .face-edit { opacity: 1; background: none; color: var(--fg3); }
button.face.lettered .face-letter { display: none; }
.face[aria-busy]::after { content: ""; position: absolute; inset: 0; border-radius: 50%; corner-shape: round; border: 3px solid transparent; border-top-color: var(--focus); animation: spin .8s linear infinite; }
.face[aria-busy] .face-edit { opacity: 0; }
.face-xs { width: 20px; height: 20px; border-radius: 50%; corner-shape: round; object-fit: cover; flex: none; }
.top .right { display: flex; align-items: center; gap: 5px; }
.top .right[aria-busy] .face-xs { opacity: .5; }
/* Completing your profile: the one thing to do, in the bar where your name would be. */
.top .btn.cta { width: auto; min-height: 32px; margin-left: auto; padding: 0 15px; flex: none; white-space: nowrap; }

/* Accounts elsewhere: one row of plain icons, each a link out. Yours ends in a plus that shows, faint, what you could add. */
.sites { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 10px 0 0 -5px; }
.site { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); color: var(--fg2); }
.site .i { width: 20px; height: 20px; }
.site:hover, .site[data-picked] { color: var(--fg); background: var(--g1); }
.site.add { color: var(--fg4); }
.site.add:hover { color: var(--fg); }
.site.plus { color: var(--fg3); }
/* With nothing linked yet, the plus says what it's for. */
.site.plus.first { width: auto; gap: 5px; grid-auto-flow: column; padding: 0 10px; font-size: var(--sm); }
.sites.open .site.plus.first span { display: none; }
.sites.open .site.plus .i { rotate: 45deg; }
.sites.open a.site { box-shadow: inset 0 0 0 var(--hair) var(--g3); }
/* On a person's page their accounts elsewhere are words, each ending on the arrow up and to the right, in one quiet
   line with "Add" at its end. (Picking from the whole grid, on completing your profile, keeps the logos.) */
.person .sites { gap: 2px 20px; margin: 10px 0 0; }
.person .site { display: inline-flex; align-items: center; gap: 5px; width: auto; height: auto; padding: 2px 0; border-radius: 0; background: none; font-size: var(--sm); color: var(--fg2); }
.person .site .i { display: none; }
.person .site-name { display: inline; }
.person a.site::after { content: ""; width: 11px; height: 11px; background: currentColor; opacity: .55; transition: translate var(--move) cubic-bezier(.22, 1, .36, 1), opacity var(--move) ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25'/%3E%3C/svg%3E") center / contain no-repeat; }
.person .site:hover, .person .site[data-picked] { color: var(--fg); background: none; }
.person a.site:hover::after { translate: 1px -1px; opacity: 1; }
.person .site.add { color: var(--fg3); }
.person .sites.open a.site { box-shadow: none; text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 4px; }
.person .sites.open a.site::after { display: none; }
.person .site.plus, .person .site.plus.first { width: auto; padding: 2px 0; color: var(--fg3); font-size: var(--sm); }
.person .site.plus:hover { color: var(--fg); }
.site.plus .short, .site.plus:not(.first) .long { display: none; }
.site.plus:not(.first) .short { display: inline; }
.sites.open .site.plus .long, .sites.open .site.plus .short { display: none; }
.sites.open .site.plus::after { content: attr(data-done); }
.person .sites.open .site.plus { color: var(--fg); }   /* Done stands apart from what you could add */
.site-form { margin: 10px 0 0; }
.site-form label { display: block; font-size: var(--xs); color: var(--fg3); margin-bottom: 5px; }
.site-form .row { display: flex; gap: 10px; align-items: center; }
.site-form .box { flex: 1; min-width: 0; }
.site-form .btn { width: auto; flex: none; }
.site-form .note { margin: 5px 0 0; }

/* A list of people (friends): picture, name, @handle and a line, the whole row a link, one under another. */
.list-head { display: flex; align-items: center; gap: 10px; margin: 5px 0 15px -5px; }
div.page .list-head h1 { margin: 0; font-size: var(--lg); font-weight: 700; }
.people { list-style: none; margin: 10px 0 0; padding: 0; }
.person-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: var(--hair) solid var(--line); }
.person-row:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.person-row .names { display: grid; min-width: 0; line-height: var(--tight); }
.person-row .name { font-weight: 700; overflow-wrap: anywhere; }
.person-row .handle { color: var(--fg3); font-size: var(--sm); }
.person-row .line { margin-top: 2px; color: var(--fg2); font-size: var(--sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Completing your profile: a step a screen, big and plain, the thing to do under the words, Skip under that. */
.complete { padding-top: 20px; }
div.page .complete h1 { margin: 5px 0 5px; font-size: var(--xl); font-weight: 700; }
.complete-face { display: flex; justify-content: center; margin: 25px 0; }
.complete-acts { display: grid; gap: 10px; margin-top: 25px; }
.complete .box.at { display: flex; align-items: center; gap: 2px; }
.complete .box.at span { color: var(--fg3); padding-left: 10px; }
.site-name { display: none; }
/* Completing your profile, the row is the whole screen: each site a tile with its name, in full ink. */
.site-grid .sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 25px 0 0; }
.site-grid .site { width: auto; height: 76px; gap: 5px; align-content: center; color: var(--fg); background: var(--g1); }
.site-grid .site:hover, .site-grid .site[data-picked] { background: var(--g2); }
.sites.big a.site { box-shadow: inset 0 0 0 1.5px var(--fg); }
.site-grid .site .i { width: 24px; height: 24px; }
.site-grid .site-name { display: block; font-size: var(--xs); color: var(--fg2); }
.site-grid .site.plus { display: none; }

/* Cropping a picture: the photo under a round window, the page dimmed behind. */
.cropper { width: min(420px, calc(100vw - 2 * var(--gutter))); padding: 15px; border: 0; border-radius: var(--r); background: var(--bg); color: var(--fg); box-shadow: var(--shadow); }
.cropper::backdrop { background: var(--scrim); }
.crop-view { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; touch-action: none; cursor: grab; background: var(--media); border-radius: var(--r); }
.crop-view:active { cursor: grabbing; }
.crop-view canvas { width: 100%; height: 100%; display: block; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; corner-shape: round; box-shadow: 0 0 0 999px color-mix(in srgb, var(--media) 55%, transparent); outline: 1px solid color-mix(in srgb, var(--on-media) 60%, transparent); }
.cropper .small { text-align: center; margin: 10px 0; }
.crop-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rows { display: grid; gap: 10px; }
.label { color: var(--fg3); font-size: var(--xs); margin-bottom: 5px; }
.topics { margin-bottom: 35px; counter-reset: t; }
.topic { display: grid; grid-template-columns: 22px 1fr; text-align: left; padding: 2px 0; color: var(--fg); counter-increment: t; }
.topic::before { content: counter(t, lower-alpha) "."; color: var(--fg3); }
.topic:hover { color: var(--focus); }
/* A person's page is a head over their thoughts (the feed), and under the last of your own, a foot: small, one line. */
.page.head { padding-bottom: 0; }
.foot { display: flex; flex-wrap: wrap; gap: 5px 20px; padding-top: 35px; padding-bottom: 10px; color: var(--fg3); font-size: var(--sm); }
.foot a:hover, .foot button:hover { color: var(--fg); }
/* The theme this device shows: plain words, the one in use in the text's colour. */
.foot .theme { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; }
.foot .theme [aria-pressed="true"] { color: var(--fg); }
.foot .theme .sep { color: var(--fg4); }
/* What Den is, in one line along the top of a person's page (pages.ts aboutBanner): plain grey words, the two
   assistants as their logos, and the arrow after them. All of it is the link. */
.about-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; width: fit-content; max-width: 100%; margin: 10px auto 20px; font-size: var(--sm); color: var(--fg2); }
.about-banner:hover { color: var(--fg); }
.about-banner svg:not(.i) { width: 15px; height: 15px; flex: none; }
.about-banner .i.after { margin-left: 2px; }

/* Add to Claude / Add to ChatGPT, each a grey button with its logo; a connected app is a quiet tick. */
/* A grid's column is as wide as its widest line unless told otherwise: the address to copy (one long word) pushed
   the whole page past the screen once it showed (Justin, 17 Nov 2026: "screen layout bricked when I clicked add to
   chatgpt"). Every column of these grids is the screen's width at most, and what's too long is cut inside its box. */
.connect { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 25px; }
.app { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 0 15px; border-radius: var(--r); font-size: var(--sm); text-align: left; background: var(--g1); color: var(--fg); }
.app:hover { background: var(--g2); }
.app svg { flex: none; }
/* Every row's icon sits in the same 20px column, so every label starts on the same line. */
.app > .i { margin-inline: 2px; }
.connect .steps { margin: 5px 0 0; gap: 2px; }
.connect .steps li { grid-template-columns: 1.6em minmax(0, 1fr); }
.connect .steps li > :not(button) { grid-column: 2; }
.connect .steps li > span { padding: 5px 0; }
.connect .how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.connect .steps button { text-align: left; color: var(--fg); padding: 5px 0; transition: color var(--move); }
.connect .steps button[aria-pressed="true"] { color: var(--fg3); text-decoration: line-through; }
.connect .steps li:has(button[aria-pressed="true"])::before { content: "✓"; color: var(--green); }
/* Always allow: an open box to tick in a grey row; tapped, the row grows to hold its steps. */
.allow { border-radius: var(--r); background: var(--g1); }
.todo { display: flex; align-items: stretch; min-height: 45px; font-size: var(--sm); }
.todo .open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 0 0 15px; text-align: left; }
.todo .open svg { flex: none; }
.todo .tick { display: grid; place-items: center; padding: 0 15px 0 10px; }   /* the whole end of the row is the box */
.todo .tick:hover .tickbox { border-color: var(--fg2); }
.app .of { margin-left: auto; color: var(--fg3); font-variant-numeric: tabular-nums; }
.tickbox { flex: none; margin: 0 1px 0 auto; transition: border-color var(--quick); display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--fg3); border-radius: var(--r); }
.tickbox .i { width: 18px; height: 18px; stroke-width: 2.4; color: var(--green); opacity: 0; transition: opacity var(--quick); }
/* Done is the tick alone: the box goes. */
.allow[data-done] .tickbox, .tickbox[data-on] { border: 0; }
.allow[data-done] .tickbox .i, .tickbox[data-on] .i { opacity: 1; }
/* A row being waited on: its box is the ring, whether or not it was ticked. */
.app[aria-busy] .tickbox, .app[aria-busy] .tickbox[data-on] { border: 2px solid var(--g3); border-top-color: var(--fg2); border-radius: 50%; corner-shape: round; animation: spin .8s linear infinite; }
.app[aria-busy] .tickbox .i, .app[aria-busy] .tickbox[data-on] .i { opacity: 0; }
.todo-more { display: grid; grid-template-rows: 0fr; }
@media (prefers-reduced-motion: no-preference) { .todo-more { transition: grid-template-rows var(--move) cubic-bezier(.22, 1, .36, 1); } }
.todo-more > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility var(--move); }
.allow[data-open] .todo-more { grid-template-rows: 1fr; }
.allow[data-open] .todo-more > div { visibility: visible; }
/* Something someone said, large, signed with their @handle (pages.ts said). Cycling on the sign-in page, one shows at a time. */
.quote { margin: 0; }
.quote.by-first footer { margin-bottom: 10px; font-size: var(--sm); color: var(--fg2); }
/* What follows a subject and can't be read yet: a stand-in, blurred, wherever the quote is shown. */
.quote .veiled { filter: blur(10px); user-select: none; pointer-events: none; }
/* The invite that brought them, over a sign-in step: it sits where it sat on its own page. */
.login main:has(> .quote.by-first) { padding-top: 35px; }
.login main > .quote.by-first { margin-bottom: 20px; }
.quote.by-first p { margin-bottom: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote p { margin: 0 0 10px; font-size: var(--xl); line-height: var(--tight); }
.quote footer { font-size: var(--xs); }
/* A sealed invite: nothing over it, and its two buttons at the foot of the screen, each with its app's mark. */
.login main:has(.sealed, .foot) { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
/* A page whose only step is a button or two (a sealed invite, a thought that isn't yours to read: .sealed, .foot).
   The message sits a little above the middle of the space over the buttons (two parts above it, three below), where
   the eye lands; the buttons stay at the foot, by the thumb. A tall one (a picture) just fills from the top. */
.letter:has(.sealed, .foot) { flex: 1; display: grid; grid-template-rows: 2fr auto 3fr auto; grid-template-columns: minmax(0, 1fr); }
.letter:has(.sealed, .foot) > .run.lead { grid-row: 2; margin: 0; }
.letter .sealed, .letter .foot { grid-row: 4; margin: 0; padding-top: 25px; }
.letter:has(.sealed, .foot) > .signed { grid-row: 5; margin-top: 15px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--g3); border-top-color: var(--fg2); border-radius: 50%; corner-shape: round; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
/* Less motion: every waiting ring turns slower, never stops (stopped, it reads as stuck). */
@media (prefers-reduced-motion: reduce) { .spinner, form[aria-busy] .btn[type="submit"]::after, .btn[aria-busy]::after, .face[aria-busy]::after, .app[aria-busy] .tickbox { animation-duration: 2.4s; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.letter .sealed .btn svg { width: 18px; height: 18px; flex: none; }
.letter .quote p { font-size: var(--xl); line-height: var(--tight); }

.allow .steps { margin: 0; padding: 0 15px; }
.allow .steps li { grid-template-columns: 30px 1fr; }   /* the numbers under the box, the words under its label */
.connect .allow p { margin: 5px 0 0; padding: 0 15px 10px 45px; font-size: var(--xs); }
.connect .allow a { color: var(--fg2); text-decoration: underline; font-size: var(--sm); justify-self: start; }
/* The connector link: in a box, the whole box copies it, a copy icon on the right that turns to a tick. */
/* Your own page: what's left to do keeps its row; what's done is a line of ticks under it. */
.connect.tidy { display: flex; flex-wrap: wrap; gap: 10px 15px; }
.connect.tidy > * { flex: 1 1 100%; }
.connect.tidy > .app[data-done] { order: 1; flex: 0 0 auto; gap: 5px; min-height: 0; padding: 0; background: none; color: var(--fg2); }
.connect.tidy > .app[data-done]:hover { color: var(--fg); }
.connect.tidy > .app[data-done] > svg { display: none; }
.connect.tidy > .app[data-done] .tickbox { order: -1; margin: 0; }
/* The second layout of your own page (?look=2): only what's left to do is drawn, and nothing at all once it's all done. */
.connect.left > .app[data-done], .connect.left > .allow[data-done] { display: none; }
.connect.left:not(:has(> .app:not([data-done], [hidden]), > .allow:not([data-done], [hidden]))) { display: none; }
/* Its links: one word beside your friends; opened, a plain line each on the row beneath (the details itself draws no box, so its word stays in the row). */
.links.fold { display: contents; }
.links.fold > summary { list-style: none; cursor: pointer; color: var(--fg3); font-size: var(--sm); }
.links.fold > summary::-webkit-details-marker { display: none; }
.links.fold > summary:hover, .links.fold[open] > summary { color: var(--fg); }
.links.fold::details-content { flex: 1 1 100%; min-width: 0; }
.links.fold > :not(summary) { margin: 0; }
.links.fold .linkbox { margin-top: 5px; border: 0; border-top: 1px solid var(--g2); border-radius: 0; }
.links.fold .linkbox .copybox { padding: 0; color: var(--fg); }
.links.fold .linkbox .copybox:hover { background: none; }
.links.fold .copybox svg { width: 16px; height: 16px; }
.links.fold .linkbox .copybox:hover .mono { text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 4px; }
.links.fold .linkbox + .small { border-top: 1px solid var(--g2); padding-top: 10px; }
/* Your links: one box, a line each, the name and then the address. */
.links { margin: 0 0 25px; }
.links > .label { margin-top: 15px; }
.links > .small { margin: 10px 0; }
.linkbox { border: 1px solid var(--g3); border-radius: var(--r); }
.linkbox .copybox { min-height: 40px; border: 0; border-radius: 0; background: none; }
.linkbox .copybox + .copybox { border-top: 1px solid var(--g2); }
.linkbox .copybox:hover { background: var(--g1); }
.linkbox .label { flex: none; width: 112px; margin: 0; }
@media (max-width: 480px) { .linkbox .label { width: 98px; } .linkbox .copybox { gap: 10px; padding: 0 10px 0 10px; } .linkbox .mono { font-size: var(--xs); } }
.connect .address { margin: 5px 0 0; display: grid; gap: 5px; }
.connect .address .label { margin: 0; }
.copybox { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 45px; padding: 0 10px 0 15px; border: 1px solid var(--g3); border-radius: var(--r); background: var(--bg); color: var(--fg); text-align: left; }
.copybox:hover { border-color: var(--fg3); }
.copybox .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--sm) ui-monospace, SFMono-Regular, Menlo, monospace; }
.copybox .i { color: var(--fg2); }
.copybox .did, .copybox[data-done] .do { display: none; }
.copybox[data-done] .did { display: block; color: var(--green); }

/* The feed: the page never scrolls, only #s does; #app is sized to the visible viewport (feed.js). */
html.thread, body.thread { height: 100%; overflow: hidden; touch-action: manipulation; }
#app { position: fixed; left: 0; right: 0; top: 0; height: 100%; display: flex; flex-direction: column; }
#app > .top { flex: none; }
#s { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: max(25px, env(safe-area-inset-bottom)); }
#log { padding-top: 5px; }

/* The box: one grey field; Send turns navy once there's something to send. */
.composer { flex: none; display: flex; align-items: flex-end; gap: 5px; padding-top: 5px; padding-bottom: 10px; }
.composer .field { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px; background: var(--g1); border: 1px solid var(--g1); border-radius: var(--r); padding: 0 5px; transition: border-color var(--quick), background var(--quick); }
.composer .field:focus-within { background: var(--bg); border-color: var(--focus); }
.composer textarea { flex: 1; display: block; min-width: 0; height: 43px; max-height: 40vh; margin: 0; padding: 10px 5px; background: transparent; border: 0; outline: 0; resize: none; overflow-y: auto;
  font: inherit; font-size: var(--md); line-height: var(--tight); color: var(--fg); -webkit-appearance: none; appearance: none; scrollbar-width: thin; }
.composer textarea::placeholder { color: var(--fg3); }
.composer .ib { height: 43px; }
/* The + sits snug to its icon: the box is for words. */
.composer #add { min-width: 26px; padding: 0 5px; }
#go { flex: none; height: 45px; padding: 0 15px; border-radius: var(--r); background: var(--g1); color: var(--fg3); font-size: var(--sm); transition: background var(--quick), color var(--quick); }
#go.on { background: var(--brand); color: var(--on-brand); }
/* The icon, the line, and Cancel at its end; words quoted go under the line, in its column. */
.replying { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 10px; align-items: center; color: var(--fg2); font-size: var(--sm); padding-top: 5px; }
.replying .i { width: 14px; height: 14px; color: var(--fg3); }
.replying span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replying .quote-of { grid-column: 2; margin-bottom: 5px; }
/* Words quoted from a thought: a rule down their side, in grey, three lines at most, and no quote marks nobody typed.
   In the reply bar, and over a reply in its thread. */
.quote-of { padding-left: 10px; border-left: 2px solid var(--g3); color: var(--fg2); font-size: var(--sm); line-height: var(--lh); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* Over words selected in a thought (web/quoting.js): one button in the menu's look, grown from the words; on a phone it's
   under them, a finger's size. Placed by translate, so it never moves the page. */
.quote-reply { position: fixed; z-index: var(--z-top); left: 0; top: 0; display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px 0 10px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-size: var(--sm); white-space: nowrap;
  transform-origin: 50% 100%; animation: menu-in .13s cubic-bezier(.2, .9, .3, 1.15) both; }
.quote-reply[data-under] { transform-origin: 50% 0; }
.quote-reply .i { color: var(--fg3); }
.quote-reply:hover { background: var(--g1); }
.quote-reply:hover .i, .quote-reply:focus-visible .i { color: var(--fg); }
.touch .quote-reply { height: 44px; padding: 0 15px 0 15px; }
@media (prefers-reduced-motion: reduce) { .quote-reply { animation-name: fade; } }
.drop #s { outline: 2px dashed var(--focus); outline-offset: -8px; }

/* An icon button: quiet grey, darker on hover, a 32px target (44px for fingers). */
.ib { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 30px; height: 30px; padding: 0 5px; border-radius: var(--r); color: var(--fg3); font-size: var(--xs); font-variant-numeric: tabular-nums; }
.ib:hover, .ib[data-open] { color: var(--fg); background: var(--g1); }
.ib.danger:hover { color: var(--red); }
.ib[data-done] { color: var(--green); }

/* A thread: the first thought, its replies one indent in on a thin rule, and each reply's own conversation one more:
   two indents at most, so a phone keeps its width (feed.js nestedEl). */
/* A conversation; the line under it runs out past the text to the edge of the screen. */
.thread-block { margin-inline: calc(-1 * var(--edge)); padding: 20px var(--edge); border-bottom: var(--hair) solid var(--line); }
.thread-block:last-of-type { border-bottom: 0; }
.kids { margin-left: 5px; margin-top: 5px; padding-left: 15px; border-left: var(--hair) solid var(--g3); }
/* Replies fold away: the line under a thought says how many and when the latest came, and opens them. */
.fold { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 5px; padding: 2px 0; border: 0; background: none; color: var(--fg3); font: inherit; font-size: var(--xs); cursor: pointer; }
.fold:hover { color: var(--fg); }
.fold .i { width: 10px; height: 10px; transition: transform var(--quick); }
.node[data-folded] > .fold .i { transform: rotate(-90deg); }
.node[data-folded] > .kids { display: none; }
/* "2 waiting for you", under a thread's first thought: the fold's quiet line, a shade darker, its arrow pointing down
   the thread to where it goes. On the fold's line when both are there. */
.waiting { display: inline-flex; align-items: center; gap: 5px; margin: 0 15px 5px 0; padding: 2px 0; color: var(--fg2); font-size: var(--xs); }
.waiting:hover { color: var(--fg); }
.waiting .i { width: 11px; height: 11px; rotate: 90deg; }
.post { position: relative; padding: 10px 0; overflow-wrap: anywhere; }
.post[data-rises] { animation: rise .5s cubic-bezier(.22, 1, .36, 1) both; }
/* The thought you opened by its link: a soft amber behind its words, like a marked passage. */
/* The thought a link opened: marked as you arrive, then the mark fades, as Slack does. A reload marks it again. */
.post:is(.focus, [data-arrived]) > .body { border-radius: var(--r); animation: arrived 3.2s ease-out both; }
@keyframes arrived {
  0%, 55% { background: var(--mark); box-shadow: -6px 0 0 var(--mark), 6px 0 0 var(--mark); }
  100% { background: transparent; box-shadow: -6px 0 0 transparent, 6px 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .post:is(.focus, [data-arrived]) > .body { animation-timing-function: step-end; } }
/* The box to reply sits right under the thought you opened (feed.js placeBox). Words are one size everywhere. */
.composer.inline, .replying.inline { max-width: none; padding-left: 0; padding-right: 0; }
.composer.inline { padding: 5px 0 10px; }
/* The line above the words. It is one sentence of running text (feed.js sentence): "Justin to Linus in Den · 1d", so
   every gap is the type's own word space and a long one wraps as text does. The quiet icons sit at its end, level
   with its first line. */
.by { display: flex; align-items: flex-start; gap: 0 10px; min-height: 26px; margin-bottom: 2px; font-size: var(--xs); color: var(--fg3); }
.by .said { flex: 0 1 auto; min-width: 0; padding: 5px 0; line-height: 18px; }
/* A name: semibold in the person's colour, as Den's speakers wear theirs: as it is on black; on white, darkened just
   enough that yellow and lime still read. */
.badge { font-weight: 700; color: light-dark(color-mix(in srgb, var(--c) 78%, black), var(--c)); white-space: nowrap; }
.by .when { color: var(--fg3); }
.by .when:hover { color: var(--fg); }
.by .sep, .by .dot { color: var(--fg3); }
/* Someone not on Den yet: a name like any other, in grey. */
.by .not-on { font-weight: 700; color: var(--fg3); white-space: nowrap; }
.by .invite { margin-left: auto; padding: 5px 0; line-height: 18px; color: var(--focus); white-space: nowrap; }
.by .invite:hover { text-decoration: underline; }
.by .filed { color: var(--fg2); }
.by .filed a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 3px; }
/* Held until a time, and private: more of the sentence, a small icon before the words. */
/* Who can read it, at the end of every thought's line, in the server's words (feed.js readsEl). One that fewer people
   can read than what it's under says who can't, in full ink: a private reply under a shared post never looks shared. */
.by .reads { display: inline; padding: 0; font: inherit; text-align: left; color: var(--fg2); cursor: pointer; }
.by .reads:hover { color: var(--fg); }
.by .reads.apart, .by .reads.apart .dot { color: var(--fg); font-weight: 700; }
.seen-list.who .name { color: var(--fg); }
.seen-list.who .acts { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 5px; padding-top: 5px; border-top: var(--hair) solid var(--line); }
.seen-list.who .acts button { padding: 2px 0; font: inherit; color: var(--focus); }
.seen-list.who .acts button:hover { text-decoration: underline; text-underline-offset: 3px; }
.seen-list.who .acts .ask { flex-basis: 100%; color: var(--fg); }
/* Under the box, before sending: who will be able to read it. */
.will-read { flex: none; padding-bottom: 5px; margin-top: -5px; font-size: var(--xs); color: var(--fg3); }
/* Who reads a new thought: the whole line is the choice, plain text that opens a list. */
.who-pick { appearance: none; -webkit-appearance: none; border: 0; padding: 0; margin: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.who-pick:hover, .who-pick:focus-visible { color: var(--fg); outline: none; }
.will-read.inline { max-width: none; padding-left: 0; padding-right: 0; margin-top: -10px; padding-bottom: 10px; }
.by .held, .by .private { color: var(--fg2); }
.by .private { text-transform: lowercase; }
.by .held .i, .by .private .i, .by .reads .i { display: inline-block; width: 11px; height: 11px; margin-right: 2px; vertical-align: -1px; }
/* At the end of a thought's top line: the eye once it's been seen, and ⋯, small and grey, for its menu. */
.by .acts { display: inline-flex; align-items: center; gap: 2px; margin: 0 -5px 0 auto; }
.by .invite + .acts { margin-left: 0; }
.by .acts .ib { position: relative; min-width: 26px; height: 26px; color: var(--fg3); }
/* A finger's worth of target, no layout. On ::before: ::after is the tooltip, and sharing it drew an empty white box (14 Nov). */
.by .acts .ib::before { content: ""; position: absolute; inset: -7px -3px; }
.by .acts .dots .i { width: 16px; height: 16px; }
.post:not(.focus) { cursor: pointer; }
/* The menu ⋯ opens: words only, the editor's menu look (editor.css .doc-menu). It scales in from the dots. */
@keyframes menu-in { from { opacity: 0; scale: .94; } }
@keyframes menu-out { to { opacity: 0; scale: .97; } }
.menu { position: absolute; z-index: var(--z-float); right: -6px; top: 32px; min-width: 180px; max-width: min(280px, calc(100vw - 2 * var(--gutter))); padding: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-size: var(--sm); cursor: default; transform-origin: 100% 0; animation: menu-in .13s cubic-bezier(.2, .9, .3, 1.15) both; }
.menu[data-up] { top: auto; bottom: calc(100% - 6px); transform-origin: 100% 100%; }
.menu[data-out] { animation: menu-out .09s ease-in both; pointer-events: none; }
.menu .row { display: flex; align-items: center; width: 100%; min-height: 30px; padding: 0 10px; border-radius: var(--r); text-align: left; color: var(--fg); }
.menu .row .i { width: 16px; height: 16px; margin-right: 10px; flex: none; color: var(--fg3); stroke-width: 1.5; }
.menu .row:hover .i, .menu .row:focus-visible .i { color: var(--fg); }
.menu .row.danger:hover .i, .menu .row.danger:focus-visible .i { color: var(--red); }
.menu .row:hover, .menu .row:focus-visible { background: var(--g1); outline: 0; }
.menu .row.danger:hover, .menu .row.danger:focus-visible { color: var(--red); }
.menu .label { margin-top: 5px; padding: 10px 10px 5px; border-top: var(--hair) solid var(--line); font-size: var(--xs); line-height: var(--lh); color: var(--fg3); }
@media (pointer: coarse) { .menu .row { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .menu, .menu[data-out] { animation: none; } }
.edit-bar { display: flex; gap: 10px; margin-top: 5px; }
.edit-bar .btn { width: auto; min-height: 32px; padding: 0 10px; }
.body { white-space: pre-wrap; font-size: var(--md); line-height: var(--loose); margin: 0; -webkit-user-select: text; user-select: text; }
/* A den is a post: what it's called over its line, and under it the ways in, as words that go out (dens/post.ts). */
.post > .title { margin: 0; font-size: var(--md); line-height: var(--loose); font-weight: 700; -webkit-user-select: text; user-select: text; }
/* A den opened as its post (/n/<den>) reads as its page does (/d/<key>): its name at the page's heading size, then
   its line and the ways in at the size of words. One thing before and after playing, not two looks for it. */
.post.focus > .title { font-size: var(--xl); line-height: var(--tight); letter-spacing: -0.01em; margin-bottom: 10px; }
.post > .asked { margin: 0 0 2px; color: var(--fg2); font-size: var(--sm); line-height: var(--lh); }
.post > .from { margin: 0 0 2px; color: var(--fg3); font-size: var(--sm); line-height: var(--lh); }
.post > .from a { color: var(--fg2); }
.post > .from a:hover { color: var(--fg); }
.post > .ways { display: flex; flex-wrap: wrap; gap: 5px 20px; margin: 10px 0 0; font-size: var(--sm); }
.post > .ways a { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; color: var(--fg2); }
.post > .ways a:hover { color: var(--fg); }
.post > .sent { margin: 5px 0 0; font-size: var(--sm); color: var(--fg2); }
.post > .sent a { color: var(--fg2); text-decoration: underline; text-underline-offset: 3px; }
.post > .ways .i { width: 13px; height: 13px; }
/* Cut to six lines until "See more" (public/web/clamp.js), unless that would only hide a line. */
.body[data-clamp]:not([data-short]) { display: -webkit-box; -webkit-line-clamp: var(--lines, 6); -webkit-box-orient: vertical; overflow: hidden; }
.body { overflow-wrap: anywhere; }
/* Words with blocks in them (web/doc.js draw): the shapes the editor shows (public/editor.css), at the feed's size.
   A mark (bullet, number, box, arrow) sits in a column of its own; what's under a block is indented one step. */
.body.rich { white-space: normal; }
.body.rich[data-clamp]:not([data-short]) { display: block; max-height: calc(var(--lines, 6) * 1.5em); overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 1.5em), transparent); mask-image: linear-gradient(#000 calc(100% - 1.5em), transparent); }
.body.rich .line { display: flex; align-items: flex-start; }
.body.rich .text { flex: 1; min-width: 0; white-space: pre-wrap; }
.body.rich .under { margin-left: 20px; }
.body.rich .mark { flex: none; min-width: 22px; }
.body.rich .blk[data-type="numberedListItem"] > .line > .mark { padding-right: 5px; font-variant-numeric: tabular-nums; }
.body.rich .check { min-width: 0; width: 14px; height: 14px; margin: calc((1.5em - 15px) / 2) 10px 0 0; border: 1px solid var(--fg2); border-radius: var(--r); }
.body.rich .check[data-on] { border-color: var(--brand); background: var(--brand) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E"); }
.body.rich .blk[data-checked] > .line > .text { color: var(--fg3); text-decoration: line-through; }
.body.rich .fold { display: grid; place-items: center; width: 22px; height: 1.5em; margin-left: -5px; margin-right: 5px; min-width: 0; border-radius: var(--r); color: var(--fg); }
.body.rich .fold::before { content: ""; width: 9px; height: 10px; background: currentColor; transition: transform var(--quick) ease;
  /* The editor's arrow: a triangle with its corners a touch rounded (editor.css .bn-toggle-button). */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M1.6 1.4v7.2L7.6 5z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M1.6 1.4v7.2L7.6 5z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.body.rich .blk[data-open] > .line > .fold::before { transform: rotate(90deg); }
.body.rich .blk[data-folds]:not([data-open]) > .under { display: none; }
@media (hover: hover) { .body.rich .fold:hover { background: var(--g2); } }
.body.rich .blk[data-type="heading"] > .line { font-size: var(--xl); line-height: var(--tight); margin: .5em 0 .15em; }
.body.rich .blk[data-type="heading"][data-level="2"] > .line { font-size: var(--lg); }
.body.rich .blk[data-type="heading"][data-level="3"] > .line { font-size: var(--md); }
.body.rich > .blk[data-type="heading"]:first-child > .line { margin-top: 0; }
.body.rich .blk[data-type="heading"] .fold { height: 1.25em; }
.body.rich .blk[data-type="quote"] > .line { border-left: 3px solid var(--fg); padding-left: 10px; margin: 2px 0; }
.body.rich .blk[data-type="file"] { margin: 5px 0; }
.body.rich .blk[data-type="file"] img, .body.rich .blk[data-type="file"] video { display: block; max-width: 100%; height: auto; border-radius: var(--r); }
.body.rich hr { border: 0; border-top: 1px solid var(--g3); margin: 10px 0; }
.body.rich pre { margin: 5px 0; padding: 10px 10px; background: var(--g1); border-radius: var(--r); font: var(--sm)/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-x: auto; overflow-wrap: normal; scrollbar-width: thin; }
/* Code in a thought: the language it's in and Copy along the top of its box (Copy shows on hover; always on a phone). */
.body.rich .blk[data-type="codeBlock"] { position: relative; margin: 5px 0; background: var(--g1); border-radius: var(--r); min-width: 0; }
.body.rich .blk[data-type="codeBlock"] > pre { margin: 0; background: none; }
.body.rich .code-bar:has(> .lang:not(:empty)) + pre { padding-top: 35px; }
.body.rich .code-bar { position: absolute; top: 5px; left: 12px; right: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: var(--xs) var(--font); color: var(--fg3); white-space: nowrap; pointer-events: none; }
.body.rich .code-bar .copy { pointer-events: auto; margin-left: auto; background: var(--g1); }
.body.rich .code-bar .copy { padding: 2px 5px; border-radius: var(--r); color: var(--fg3); font: inherit; opacity: 0; transition: opacity var(--quick) ease; }
.body.rich .code-bar .copy:hover, .body.rich .code-bar .copy:focus-visible { background: var(--g2); color: var(--fg); }
.body.rich .blk[data-type="codeBlock"]:hover .copy, .body.rich .code-bar .copy:focus-visible { opacity: 1; }
@media (hover: none) { .body.rich .code-bar .copy { opacity: 1; } }
.body.rich .text code { word-break: normal; font: .85em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--g2); border-radius: var(--r); padding: .15em .35em; }
.body.rich b { font-weight: 700; }
.body.rich u { text-underline-offset: 3px; }
/* Under the words, on their left edge, only as wide as it reads (the magazine look's column would stretch and centre it). */
.more { display: block; width: fit-content; align-self: flex-start; color: var(--fg2); font-size: var(--sm); padding: 2px 0; }
.more:hover { color: var(--fg); }
.post textarea { display: block; width: 100%; padding: 10px 10px; border: 1px solid var(--focus); border-radius: var(--r); background: var(--bg); color: var(--fg); font: inherit; outline: 0; resize: none; }
.status { color: var(--fg2); font-size: var(--xs); margin-top: 2px; }
.status button { color: var(--fg); text-decoration: underline; }
.tell-claude { display: block; width: fit-content; }
.tell-claude:hover { color: var(--fg); }
.seen-list { display: grid; gap: 2px; margin: 2px 0 0; padding: 10px 10px; background: var(--g1); border-radius: var(--r); color: var(--fg2); font-size: var(--xs); }

/* What a thought holds, under its words, in order: pictures and players at their own shape, pages in a frame, the rest by name. */
.files { display: grid; gap: 10px; margin-top: 10px; justify-items: start; }
.media { display: block; max-width: min(100%, 520px); }
.media img, img.media { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; border-radius: var(--r); }
video.media { width: 100%; max-height: 70vh; border-radius: var(--r); background: var(--media); }
audio.media { width: min(100%, 420px); height: 40px; }
iframe.page { width: min(100%, 520px); aspect-ratio: 1; max-height: 70vh; border: 0; border-radius: var(--r); background: var(--g1); }
/* Two or more things to look at: one shelf (public/web/shelf.js). One height; each tile as wide as its shape, between
   half the height and 92% of the row, so the next always peeks in. Edge to edge on a phone, hairline gaps, snapped to
   the middle. A shape too extreme to crop is shown whole on its tile. */
.shelf { --h: min(66vw, 352px); position: relative; justify-self: stretch; min-width: 0; }
.shelf .track { display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-inline: var(--inset, 0) var(--inset-end, 0); scroll-padding-inline: var(--inset, 0) var(--inset-end, 0); scrollbar-width: none; }
.shelf .track::-webkit-scrollbar { display: none; }
.shelf .tile { flex: none; height: var(--h); width: clamp(calc(var(--h) * .5), calc(var(--h) * var(--a, 1)), 92%); scroll-snap-align: start; overflow: hidden; border-radius: var(--r); background: var(--g1); }
.shelf .tile > .media, .shelf .tile > .media img, .shelf .tile > iframe { display: block; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; aspect-ratio: auto; }
.shelf .tile .media img, .shelf .tile > video.media { object-fit: cover; }
.shelf .tile[data-whole] .media img { object-fit: contain; }
/* A panel: a thing with no picture of its own (a voice memo, a file), upright like a photo, its name over what plays it. */
.shelf .tile.panel { display: flex; flex-direction: column; padding: 20px; }
.shelf .tile.panel .name { font-size: var(--lg); font-weight: 700; line-height: var(--tight); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.shelf .tile.panel .long { margin-top: 5px; font-size: var(--sm); color: var(--fg3); font-variant-numeric: tabular-nums; }
.shelf .tile.panel > audio, .shelf .tile.panel > .file { margin-top: auto; width: 100%; height: auto; }
.shelf .tile.panel > audio { height: 40px; }

/* The arrows: a square of the picture's own dark, frosted, with Den's arrow in white, on each side the row can still
   travel to; clear on any picture, on a phone too. Squared to --r like everything else; darker under the pointer. */
.shelf .nav { position: absolute; z-index: var(--z-up); top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 35px; min-width: 0; height: 35px; padding: 0; border-radius: var(--r);
  background: color-mix(in srgb, var(--media) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-media); transition: background var(--quick) ease, opacity var(--quick) ease; }
.shelf .nav .i { width: 18px; height: 18px; stroke-width: 2; }
.shelf .nav[hidden] { display: none; }
.shelf .nav.prev { left: 10px; }
.shelf .nav.next { right: 10px; }
.shelf .nav:hover, .shelf .nav:focus-visible { background: color-mix(in srgb, var(--media) 80%, transparent); color: var(--on-media); }
.shelf .nav:active { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .shelf .nav { transition: none; } }
/* One song or link card on its own: upright, and small, so it sits beside the words rather than filling the screen. */
iframe.page[data-upright] { width: min(100%, 300px); background: transparent; }
iframe.page[data-sized] { background: transparent; border-radius: 0; }
/* A web address in someone's words: X's blue, underlined only under the pointer, as X shows one. */
.body a { color: var(--link); text-decoration: none; }
.body a:hover { text-decoration: underline; }
.file { display: inline-flex; align-items: center; gap: 5px; color: var(--fg2); font-size: var(--sm); }
.file:hover { color: var(--fg); }
.file .size { color: var(--fg3); flex: none; white-space: nowrap; }
.file > span:not(.size) { min-width: 0; }

#t { color: var(--fg2); font-size: var(--sm); }
#t:not(:empty) { padding: 10px 0 0; }
#t button { color: var(--fg); text-decoration: underline; }
.empty { color: var(--fg2); margin-top: 25px; }
.empty a { color: var(--fg); }
.empty a:hover { text-decoration: underline; text-underline-offset: 3px; }
.earlier { color: var(--fg3); font-size: var(--sm); padding: 15px 0 25px; }
.earlier button { color: var(--fg2); text-decoration: underline; }
.up { margin-top: 25px; display: grid; gap: 15px; }
.up input[type="file"] { color: var(--fg2); font: inherit; font-size: var(--sm); max-width: 100%; }

@keyframes rise { from { opacity: 0; translate: 0 8px; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .post[data-rises] { animation-name: fade; } }

/* Fingers: the same look, with targets you can hit, the space taken from padding, not layout. */
@media (pointer: coarse) {
  .top .tabs a { padding: 10px 10px; }
  .top .right { padding-top: 10px; padding-bottom: 10px; }
  .ib { min-width: 40px; height: 40px; }
  .composer #add { min-width: 34px; }
  .cc-list li { padding: 10px; }
  .topic { padding: 10px 0; }
  .sub button, .sub a { padding: 10px 0; }
  .fold, .waiting { padding-block: 10px; margin-bottom: 0; }
}
/* Searching countries: the list has the focus, not the number. */
.box.phone:has(.cc-pop:focus-within) { background: var(--g1); border-color: var(--g1); }

/* What a sent link opens: the thought on top at every step, then one thing to do. */
.letter .next { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--g2); }
.letter .next h2 { margin: 0 0 5px; font-size: var(--lg); }
.login main:has(.letter) { padding-top: 35px; }
.letter .run { margin: 0 0 20px; }
.letter .run p { margin: 0 0 10px; font-size: var(--md); line-height: var(--lh); white-space: pre-wrap; overflow-wrap: anywhere; }
.letter .run p:last-child { margin-bottom: 0; }
.letter .run .who { margin: 0 0 5px; font-size: var(--sm); color: var(--fg3); }
.letter .run.mine { padding-left: 10px; border-left: 1px solid var(--g2); }
.letter .hook { margin: 0 0 15px; font-size: var(--xl); line-height: var(--tight); font-weight: 700; letter-spacing: -0.01em; white-space: pre-wrap; overflow-wrap: anywhere; }
.letter .media { display: block; width: 100%; margin: 0 0 15px; }
.letter .veiled { filter: blur(10px); user-select: none; pointer-events: none; }
/* Locked, the picture is a fixed band and shrinks while typing, so the thought, the blur and the field all stay on screen above the keyboard. */
.letter .frame { overflow: hidden; margin: 0 0 15px; height: min(26vh, 240px); background: var(--g1); }
.letter:has(.gate input:focus) .frame { height: 84px; }
.letter .frame .media { margin: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px); transform: scale(1.25); }
.letter .frames { display: flex; gap: 2px; margin: 0 0 15px; }
.letter .frames .frame { flex: 1; min-width: 0; margin: 0; }
/* What can't be seen yet, a few lines of it however much there is, fading out so the field under it stays on screen. */
.letter .veil { max-height: 8.2em; overflow: hidden; margin: 0 0 5px; padding: 5px 10px 0; margin-inline: -10px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.letter:has(.gate input:focus) .veil { max-height: 4.4em; }
@media (prefers-reduced-motion: no-preference) { .letter .frame { transition: height var(--move) ease; } .letter .veil { transition: max-height var(--move) ease; } }
.letter .veil .held { display: block; width: fit-content; max-width: 100%; padding: 10px 10px; background: var(--g3); border-radius: var(--r); white-space: nowrap; overflow: hidden; }
.letter div.gate > p { margin: 0 0 15px; }
.letter .reveal { position: relative; overflow: hidden; margin: 0 0 15px; background: var(--g1); }
.letter .reveal img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.letter .reveal .smear { filter: blur(26px); transform: scale(1.25); }
.letter .reveal .media { opacity: 0; filter: blur(24px); transition: opacity var(--move) ease, filter .8s cubic-bezier(.22, 1, .36, 1); }
.letter .reveal.in .media { opacity: 1; filter: blur(0); }
.letter .gate .small { margin-top: 10px; }
.letter .sent { margin: 0 0 15px; }
.letter .signed { margin-top: 25px; }
.letter .signed a { color: var(--fg3); }
/* The same box as the feed's composer. */
.letter .reply { display: flex; align-items: flex-end; gap: 2px; background: var(--g1); border: 1px solid var(--g1); border-radius: var(--r); padding: 0 10px; }
.letter .reply:focus-within { background: var(--bg); border-color: var(--focus); }
.letter .reply textarea { flex: 1; min-width: 0; display: block; margin: 0; padding: 10px 0; font: inherit; font-size: var(--md); line-height: var(--lh); border: 0; outline: 0; background: transparent; color: inherit; resize: none; field-sizing: content; max-height: 40vh; }
.letter .reply textarea::placeholder { color: var(--fg3); }
.letter .reply button { flex: none; padding: 10px 0 10px 10px; font: inherit; font-size: var(--sm); background: none; border: 0; color: inherit; cursor: pointer; }
.letter .assistant { margin-top: 25px; }
.letter .assistant p { margin: 0 0 10px; }
.letter .latest { margin-top: 35px; }
.letter .latest h2 { margin: 0 0 10px; font-size: var(--sm); font-weight: 400; color: var(--fg3); }
.letter .latest a { display: block; padding: 10px 0; border-top: 1px solid var(--g1); color: inherit; text-decoration: none; }
.letter .latest span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: var(--md); line-height: var(--lh); white-space: pre-wrap; overflow-wrap: anywhere; }
.claim { margin: 0 0 20px; }
.claim p { margin: 0 0 10px; }

/* The magazine look (feed.js `mag`, ?look=magazine): the same feed set like a magazine. No rules between thoughts,
   only space; a picture leads its thought edge to edge. Words stay one size, as everywhere. */
.mag .thread-block { border-bottom: 0; padding: 25px var(--edge); }
.mag .thread-block > .node > .post { display: flex; flex-direction: column; }
.mag .thread-block > .node > .post[data-pic] > .files { order: -1; justify-items: stretch; margin: 0 calc(-1 * var(--edge)) 10px; }
.mag .thread-block > .node > .post[data-pic] > .files > .media, .mag .thread-block > .node > .post[data-pic] > .files > .media img { width: 100%; max-width: none; max-height: none; border-radius: 0; }
.mag .badge[data-handle] { cursor: pointer; }
/* A run of one person's thoughts as one entry: the first three, each greyer than the last. */
.burst { display: block; width: 100%; padding: 25px 0; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.burst .by { display: block; min-height: 0; }
.burst .by span:last-child { color: var(--fg3); }
.burst .line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; }
.burst .line:nth-of-type(3) { color: var(--fg2); }
.burst .line:nth-of-type(4) { color: var(--fg3); }
.burst .rest { display: block; margin-top: 10px; font-size: var(--xs); color: var(--fg3); }
/* Someone's page, pulled up over the feed as a phone's sheet is. A hairline gives it an edge where the shadow can't
   (black on a dimmed black feed). */
.sheet::backdrop { background: var(--scrim); opacity: 0; transition: opacity var(--move) ease; }
.sheet[data-open]::backdrop { opacity: 1; }
/* A modal <dialog>: its UA box (centred, padded, capped, bordered) is put back to the sheet's own. */
dialog.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 640px; max-height: none; height: min(92dvh, 760px); margin: 0 auto; padding: 0; overflow: hidden; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -8px 40px var(--shade); transform: translateY(100%); transition: transform var(--slow) cubic-bezier(.32, .72, 0, 1); }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet[data-open] { transform: none; }
/* Scrolling inside a modal or its backdrop never moves the page behind it. */
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }
.sheet .grab { flex: none; width: 36px; height: 5px; margin: 5px auto 0; border-radius: var(--r); background: var(--g3); }
.sheet-done { flex: none; align-self: flex-end; min-height: 44px; padding: 0 var(--edge); border: 0; background: none; color: var(--fg2); font: inherit; font-size: var(--sm); cursor: pointer; }
.sheet iframe { flex: 1; width: 100%; border: 0; opacity: 0; transition: opacity var(--move) ease; }
.sheet iframe[data-ready] { opacity: 1; }
.framed .top, .framed .connect-banner { display: none; }
/* The thread beside the editor (public/editor.js): the thought being written is the page beside it, so here it's only
   its line (who, when, who it's to), for the replies to hang under; its words and files aren't said twice. */
.panel .post.focus > .body, .panel .post.focus > .files, .panel .post.focus > .more { display: none; }
.panel #replying { display: none !important; }
@media (prefers-reduced-motion: reduce) { dialog.sheet, .sheet::backdrop { transition: none; } }

/* Search (public/web/search.js): the magnifier on the top bar's right; tapped, the tabs slide away left and the field
   slides in from the right over the same line. */
.top { position: relative; }
.top .search-open { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; color: var(--fg2); border-radius: var(--r); }
.top .search-open:hover { color: var(--fg); background: var(--g1); }
.top .search-open + .right { margin-left: 0; padding-left: 5px; }
/* Whatever is right of search sits beside it: the button that asks a new person to finish (.cta) pushes right too, and
   two pushes would split the space and leave search in the middle of the bar. */
.top .search-open + .btn.cta { margin-left: 5px; }
/* Writing a page (/new), beside search: the same quiet square. */
.top .tabs, .top .search-open, .top .right { transition: transform var(--move) cubic-bezier(.2, .8, .2, 1), opacity var(--move) ease; }
.top .search { position: absolute; inset: auto var(--edge) 6px; display: flex; align-items: center; gap: 5px; height: 35px; padding: 0 0 0 10px;
  background: var(--g1); border-radius: var(--r); transform: translateX(24px); opacity: 0; pointer-events: none;
  transition: transform var(--move) cubic-bezier(.2, .8, .2, 1), opacity var(--move) ease; }
.top .search .glass { flex: none; color: var(--fg3); width: 17px; height: 17px; }
.top .search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--fg); font: inherit; font-size: var(--md); outline: 0; -webkit-appearance: none; }
.top .search input::-webkit-search-cancel-button { display: none; }
.top[data-searching] .search { transform: none; opacity: 1; pointer-events: auto; }
.top[data-searching] > :not(.search) { transform: translateX(-24px); opacity: 0; pointer-events: none; }
.searching #f, .searching #replying, .searching #connect-banner, .searching .will-read { display: none; }
/* While results show, the feed is hidden where it is (web/search.js): it keeps itself current, out of sight. */
.found #log > :not(.results) { display: none; }
.results .found { color: var(--fg3); font-size: var(--xs); margin: 5px 0 10px; }
.results .person { display: block; padding: 5px 0; color: var(--fg); text-decoration: none; }
.results .person span { color: var(--fg3); }
.results .person + .found { margin-top: 10px; }
/* The words a search matched, where they're written. */
.results mark { background: var(--mark); color: inherit; }
/* How the results are ordered: plain words on the line that says how many, opening the one menu. */
.results .found { position: relative; }
.results .found .order { color: var(--fg2); font: inherit; }
.results .found .order:hover, .results .found .order[data-open] { color: var(--fg); }
/* The passage of a long thought that answers, under its start: where it is, then the words. One tap opens the thought there. */
.results .passage { display: block; width: 100%; margin-top: 5px; padding: 0 0 0 10px; border-left: 1px solid var(--line); text-align: left; color: var(--fg2); font-size: var(--sm); white-space: pre-line; overflow-wrap: anywhere; }
.results .passage:hover { color: var(--fg); border-left-color: var(--fg3); }
.results .passage .where { display: block; color: var(--fg3); font-size: var(--xs); }
/* The place a passage is, lit as the thought opens to it. */
::highlight(passage) { background-color: var(--mark); }
@media (prefers-reduced-motion: reduce) { .top .search, .top .tabs, .top .search-open, .top .right { transition: none; } }

/* The rail on your own page (public/web/rail.js): your thoughts by who can read them, set like the tabs along the top:
   words in grey, the one you're on in a grey box, how many beside each in the lightest grey. */
.rail { display: flex; gap: 2px; margin: 20px 0 0; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail button { flex: none; display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: var(--r); color: var(--fg2); font-size: var(--sm); white-space: nowrap; }
.rail button:hover { color: var(--fg); background: var(--g1); }
.rail button[aria-selected="true"] { color: var(--fg); background: var(--g1); }
.rail .n { color: var(--fg3); font-size: var(--xs); font-variant-numeric: tabular-nums; }
.rail-who { margin: 5px 0 10px; color: var(--fg3); font-size: var(--xs); }

/* A thread's line (feed.js threadEl): who added how many, to what, when. Then the first thought, "N more", the latest reply. */
.summary { display: flex; align-items: baseline; gap: 5px; width: 100%; margin: 0 0 10px; color: var(--fg2); font-size: var(--sm); text-align: left; }
.summary:hover .what { color: var(--fg); }
.summary .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary .sep, .summary time { flex: none; color: var(--fg3); }
/* Over a reply's words, under who said it: what it answers, when where it sits doesn't say, in the quote's grey. Quoted
   words are a block (.quote-of) the whole of which opens what they're from (feed.js opens); its words can be picked,
   and the ring of their link goes round the block, outside its clipped lines. */
.post > .answers { display: block; width: fit-content; max-width: 100%; margin-bottom: 5px; color: var(--fg2); font-size: var(--xs); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.post > .answers:hover { color: var(--fg); }
.post > .quote-of { margin: 2px 0 5px; cursor: pointer; -webkit-user-select: text; user-select: text; }
.post > .quote-of a { -webkit-user-drag: none; }
.post > .quote-of:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r); }
/* Only where the ring above is drawn (a browser with :has) does the link drop its own. */
@supports selector(:has(a)) { .post > .quote-of a:focus-visible { outline: none; } }
.post > .quote-of:hover { color: var(--fg); border-left-color: var(--fg4); }
/* Related thoughts, over a thought on its own page: one quiet line each, who said it and its first words. */
.related { display: grid; gap: 2px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: var(--hair) solid var(--line); font-size: var(--sm); }
.related .label { font-size: var(--xs); color: var(--fg3); }
.related a { display: flex; gap: 10px; min-width: 0; padding: 5px 0; color: var(--fg2); }
.related a:hover { color: var(--fg); }
.related a b { flex: none; font-weight: 700; color: var(--fg); }
.related a span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* A nudge (public/nudge.js): the tooltip's small dark box, kept open over the one thing to do, its point aimed at it.
   It rises in, bobs twice, then stays still; with less motion it only fades in. */
.nudge { position: fixed; z-index: var(--z-top); padding: 5px 5px; border-radius: var(--r); background: var(--tip-bg); color: var(--tip-fg);
  font-size: var(--xs); line-height: var(--lh); white-space: nowrap; pointer-events: none; translate: -50% -100%;
  animation: fade .2s ease-out both; }
@media (prefers-reduced-motion: no-preference) { .nudge { animation: nudge-in .2s ease-out both, nudge-bob .9s .3s ease-in-out 2; } }
.nudge::after { content: ""; position: absolute; top: 100%; left: calc(50% + var(--shift, 0px)); margin-left: -5px; border: 5px solid transparent; border-top-color: var(--tip-bg); }
.nudge[data-gone] { animation: nudge-out .15s ease-in both; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes nudge-out { to { opacity: 0; } }
@keyframes nudge-bob { 50% { transform: translateY(-3px); } }

/* The one numbered list, wherever a list is numbered (Justin, 17 Nov 2026: "the numbered list UI is beautiful but
   wrong font size"): a den's steps, the ways on, the connector's steps, the three to tap, a board. The number lighter,
   the words in the page's colour, one size, the size of the words around it. A list that lays its rows out its own
   way (rows to tap, a board's score) keeps that, and takes its number and type from here. */
.numbered { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 5px; font-size: var(--md); line-height: var(--lh); color: var(--fg); }
.numbered > li { counter-increment: n; display: grid; grid-template-columns: 1.6em minmax(0, 1fr); align-items: baseline; }
.numbered > li::before { content: counter(n) "."; color: var(--fg3); font-variant-numeric: tabular-nums; }
.numbered.invites > li { display: block; }
.numbered.invites > li::before { content: none; }
.numbered.board > li::before { flex: none; width: 1.5em; }

/* A game's pages (src/prompts): its link's page, a friend's part, and the owner's page with what it opened. */
.prompt header { margin-bottom: 25px; }
.prompt .from { margin: 0 0 10px; font-size: var(--sm); color: var(--fg2); }
.prompt h1 { margin: 0 0 10px; font-size: var(--xl); line-height: var(--tight); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
/* den.talk itself: what Den is, the two assistants as their logos, sitting in the line like words. */
.prompt h1.front { text-wrap: balance; }
/* It sits at the foot with the ways in, one block under the thumb, not alone at the top of an empty screen. */
.prompt.thumb:has(h1.front) > header { margin-top: auto; }
.prompt.thumb:has(h1.front) > .entry-ways { margin-top: 0; padding-top: 0; }
.prompt h1.front svg { display: inline-block; width: .85em; height: .85em; vertical-align: -.08em; }
/* The waitlist under it: how many, then the way past it. */
/* den.talk's film (src/front_film.ts): /about's film, filling what the words and buttons leave, in a softly rounded
   frame. Its words, music and sound button are /about's own (.intro-film, below); a look is a filter over the picture. */
.front-film { position: relative; flex: 1 1 0; min-height: 260px; display: flex; margin: 0 0 20px; border-radius: var(--r-film); overflow: hidden; background: var(--media); color: var(--on-media); isolation: isolate; }
.front-film .intro-film { flex: 1; }
.front-film .intro-film::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.front-film[data-look="dim"] video { filter: brightness(.7) saturate(.85); }
.front-film[data-look="dim"] .intro-film::after { background: radial-gradient(ellipse at center, transparent 45%, color-mix(in srgb, var(--media) 40%, transparent)); }
.front-film[data-look="mono"] video { filter: grayscale(1) contrast(1.2) brightness(.8); }
.front-film[data-look="dots"] video { filter: grayscale(1) contrast(1.35) brightness(.75); }
.front-film[data-look="dots"] .intro-film::after { background: radial-gradient(circle, transparent 1.5px, color-mix(in srgb, var(--media) 60%, transparent) 2.1px) 0 0 / 5px 5px; }
.front-film[data-look="scan"] video { filter: saturate(.6) brightness(.75) contrast(1.1); }
.front-film[data-look="scan"] .intro-film::after { background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--media) 42%, transparent) 0 1px, transparent 1px 3px); }
.front-film .intro-words { font-size: clamp(1.05rem, 4.4vw, 1.4rem); }
.prompt.thumb:has(h1.front) > .front-film + header { margin-top: 0; }
/* The film runs to the top of the screen: none of the room kept over other pages' words. */
.login main:has(> .prompt .front-film) { padding-top: max(15px, env(safe-area-inset-top)); }
.entry-foot .backed { display: inline-flex; align-items: center; gap: 5px; }
.entry-foot .yc { width: 14px; height: 14px; flex: none; }
.waitlist { margin-bottom: 15px; }
.waitlist .label { margin: 0; font-size: var(--sm); color: var(--fg3); }
.waitlist .skip { margin: 5px 0 0; font-size: var(--sm); color: var(--fg2); }
.prompt .lede { margin: 0; font-size: var(--lg); line-height: var(--lh); color: var(--fg2); }
/* A den's own line and steps, under its name, at the size its post draws them (.post.focus): words, not a subhead. */
.prompt.den > header > .lede { font-size: var(--md); line-height: var(--lh); }
.prompt.den > header > .gets { margin-top: 5px; }
/* Sharing the picture: one small square at its top right corner. Holding the picture still saves or shares it. */
.prompt figure.poster { position: relative; }
.prompt .share-corner { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: color-mix(in srgb, var(--media) 6%, transparent); color: var(--media); cursor: pointer; }
.prompt .share-corner:hover { background: color-mix(in srgb, var(--media) 12%, transparent); }
.prompt .share-corner .i { width: 18px; height: 18px; }
/* A link for each person they named: a numbered list, each row its words and the copy mark, as Are.na lists things. */
.prompt .invites { margin: 25px 0 0; gap: 0; border-top: 1px solid var(--line); }
.prompt .invites li { border-bottom: 1px solid var(--line); }
.prompt .invites button, .prompt .invites a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 0; background: none; border: 0; color: var(--fg); font: inherit; font-size: var(--md); text-align: left; cursor: pointer; }
.prompt .invites button::before, .prompt .invites a::before { content: counter(n) "."; color: var(--fg3); min-width: 1.4em; }
.prompt .invites button span, .prompt .invites a span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.prompt .invites .i { width: 16px; height: 16px; color: var(--fg3); flex: none; }
.prompt .invites button .did, .prompt .invites button[data-done] .do { display: none; }
.prompt .invites button[data-done] .did { display: inline; }
/* A den's maker, at the top right of its page: what they do with it, as words with an arrow. */
.prompt .den-acts { display: flex; justify-content: flex-end; gap: 20px; margin: 0 0 20px; font-size: var(--sm); }
.prompt .den-acts button, .prompt .den-acts a { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--fg2); font: inherit; cursor: pointer; }
.prompt .den-acts button:hover, .prompt .den-acts a:hover { color: var(--fg); }
.prompt .den-acts .i { width: 13px; height: 13px; }
.prompt .for-one .box button { flex: none; padding: 0 15px; border: 0; background: none; color: var(--fg2); font: inherit; font-size: var(--sm); cursor: pointer; }
.prompt .gate { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.prompt .gate > * { margin: 0; }
.prompt .gate .btn svg { width: 18px; height: 18px; flex: none; }
.prompt .sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; margin: 5px 0 0; font-size: var(--sm); color: var(--fg3); }
.prompt .sub.foot { margin-top: 35px; }
/* Under the play buttons, at the left edge like everything else on the page: a game's answers, then its own link, plain. */
.prompt .sub.under { align-items: center; gap: 5px 20px; margin-top: 10px; }
.prompt .sub.under button { display: inline-flex; align-items: center; gap: 5px; }
.prompt .sub.under .i { width: 13px; height: 13px; }
.prompt .sub.under.own { margin-top: 20px; }
.prompt .sub.under.own button { text-decoration: none; color: var(--fg3); }
/* On a phone the buttons that open the game sit at the foot of the screen, nearest the thumb. */
@media (max-width: 700px) {
  .login main:has(> .prompt.thumb) { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .prompt.thumb { flex: 1; display: flex; flex-direction: column; }
  article.prompt.thumb > .gate:last-child { margin-top: auto; padding-top: 35px; }
}
/* Signed in, a page that stands alone (a den, an invite) sits under the bar: closer to it, and no taller than what's left. */
body.login > nav.top ~ main { padding-top: 35px !important; min-height: calc(100dvh - 56px) !important; }
/* Every way in (src/entry.ts): the thing at the top, and the ways into it at the foot of the screen at every width,
   stacked from the bottom up: Claude, ChatGPT, then the quiet third for someone with neither. */
.login main:has(> .prompt.thumb .entry-ways) { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
.login main:has(> .prompt.thumb .entry-ways) > .prompt.thumb { flex: 1; display: flex; flex-direction: column; }
.prompt.thumb > .entry-ways { margin-top: auto; padding-top: 35px; }
.entry-ways .gate { margin-top: 0; }
/* The quiet row under the buttons, centred under them on every entry page: one rule, here (Justin, 20 Nov 2026:
   "in one place, just consolidate ... centered horizontally"; den.talk's was already, the rest were left). */
.login .entry-foot, .prompt .gate .entry-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 10px 0 0; }
/* Who a den is from, signing it off: under its steps, to the right, with room over it. */
.prompt .from.signed { margin: 35px 0 0; text-align: right; }
/* After a den, each step is a screen of its own: which step it is, small, over what it says. */
.prompt header.finish .from { margin-bottom: 15px; color: var(--fg3); }
/* The one picture they keep: square, and nothing else on the screen but the button under the thumb. */
.prompt figure.poster.square { margin: 0 0 25px; }
.prompt figure.poster.square img { aspect-ratio: 1; }
/* A person, for someone with no account: who they are, then the last few things they've said, plain. */
.who-in { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.who-in h1 { margin: 0; }
.who-in .from { margin: 2px 0 0; }
.said-in { display: grid; gap: 0; }
.said-in a { display: block; padding: 15px 0; border-top: 1px solid var(--line); font-size: var(--md); line-height: var(--lh); overflow-wrap: anywhere; }
/* Den's own chat (public/here.js): the conversation, plain, and the box at the foot. */
.login main:has(> .here) { display: flex; flex-direction: column; min-height: 100dvh; padding-top: 35px; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
.prompt.here { flex: 1; display: flex; flex-direction: column; }
.here header { margin-bottom: 20px; }
.here .log { flex: 1; display: grid; align-content: start; gap: 20px; font-size: var(--lg); line-height: var(--lh); }
.here .log p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.here .theirs { display: grid; gap: 10px; }
.here .theirs .act { color: var(--fg3); }
.here .theirs .btn { margin-top: 5px; }
.here .mine { justify-self: end; max-width: 85%; padding: 10px 15px; background: var(--g1); border-radius: var(--r); }
.here .thinking { color: var(--fg3); }
.here .taps { display: grid; gap: 5px; margin-top: 5px; }
.here .tap { padding: 10px 15px; border: 1px solid var(--g3); border-radius: var(--r); background: transparent; color: var(--fg); font: inherit; font-size: var(--md); text-align: left; cursor: pointer; }
.here .tap:hover:not([disabled]) { background: var(--g1); }
.here form.say { position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 20px; padding-top: 10px; background: var(--bg); }
.prompt.here form.say .box { margin: 0; }
.prompt.here form.say .box.area textarea { min-height: 43px; height: 43px; max-height: 160px; padding: 10px 10px; font: var(--md)/1.4 var(--font); resize: none; }
/* It grows with what's typed, up to its max-height; here.js measures it where the browser can't. */
@supports (field-sizing: content) { .prompt.here form.say .box.area textarea { field-sizing: content; height: auto; } }
.here form.say .btn { width: auto; }
.prompt .gate.on { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
/* The one thing to do, straight under what it's for: no line between them. */
.prompt header + .gate.on { margin-top: 0; padding-top: 0; border-top: 0; }
.prompt .made { margin-top: 35px; }
.prompt [hidden] { display: none; }
.prompt .card { margin: 15px 0 0; padding: 20px; border: 1px solid var(--g3); border-radius: var(--r); }
.prompt .card:first-child { margin-top: 0; }
.prompt .gate + .card { margin-top: 25px; }
.prompt .card .label { margin: 0 0 5px; font-size: var(--xs); color: var(--fg3); }
/* One line where a card would have had only its heading: the heading, no box. */
.prompt h2.alone { margin: 15px 0 0; font-size: var(--lg); line-height: var(--tight); font-weight: 700; overflow-wrap: anywhere; }
.prompt .placed .lede { margin-top: 5px; font-size: var(--md); color: var(--fg); }
.prompt .card h2 { margin: 0; font-size: var(--lg); line-height: var(--tight); font-weight: 700; overflow-wrap: anywhere; }
.prompt .card .lede { margin-top: 5px; font-size: var(--md); color: var(--fg); }
.prompt .card .part { margin-top: 15px; }
.prompt .card .part p:last-child { margin: 0; line-height: var(--lh); white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt .card .yes { margin-top: 20px; display: grid; }
.prompt .said { margin: 15px 0 0; font-size: var(--sm); color: var(--fg2); }
.prompt .veiled { filter: blur(7px); user-select: none; pointer-events: none; }
.prompt .box.area textarea { flex: 1; min-width: 0; min-height: 110px; padding: 10px 10px; border: 0; outline: 0; background: transparent; color: var(--fg); font: var(--md)/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; overflow-wrap: anywhere; }
.prompt .box.area textarea::placeholder { color: var(--fg3); font-family: var(--font); }
/* While the link back is being saved: a spinner in the middle of the screen with one word under it, and nothing else
   (Justin, 20 Nov 2026, in place of a sentence at the top of an empty page). */
.prompt .saving-line { display: none; margin: 0; color: var(--fg2); font-size: var(--sm); }
html.saving .prompt > * { display: none; }
html.saving .prompt > .saving-line { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; min-height: 65dvh; }
html.saving .prompt > .saving-line::before { content: ""; width: 20px; height: 20px; border: 2px solid var(--g3); border-top-color: var(--fg2); border-radius: 50%; corner-shape: round; animation: spin .8s linear infinite; }
/* Places in a pool: three pictures, shut ones blurred. While they're being found they breathe. */
.prompt .places h1 { margin-bottom: 15px; }
.prompt .places .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prompt .place { margin: 0; }
.prompt .place .pic { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--g1); }
.prompt .place img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prompt .place.shut img { filter: blur(14px); transform: scale(1.3); }
.prompt .place figcaption { margin-top: 5px; font-size: var(--xs); color: var(--fg3); }
.prompt .place.open figcaption { color: var(--fg); }
.prompt .places .mute { margin: 10px 0 0; }
.prompt .place.empty .pic { animation: finding 1.6s ease-in-out infinite; }
.prompt .place.empty:nth-child(2) .pic { animation-delay: .2s; }
.prompt .place.empty:nth-child(3) .pic { animation-delay: .4s; }
.prompt .places[data-finding] h1::after { content: "…"; }
.prompt .places:not([data-finding]) .place { animation: found .5s ease both; }
.prompt .places:not([data-finding]) .place:nth-child(2) { animation-delay: .12s; }
.prompt .places:not([data-finding]) .place:nth-child(3) { animation-delay: .24s; }
@keyframes finding { 50% { opacity: .35; } }
@keyframes found { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .prompt .place, .prompt .place .pic { animation: none !important; } }
/* A result's one line as a picture (a game's poster): first on its page, to save and send. Plain words under it. */
.prompt .poster { margin: 0 0 25px; }
.prompt .poster img { display: block; width: 100%; height: auto; border: 1px solid var(--g3); border-radius: var(--r); background: var(--paper); }
.prompt .poster figcaption { margin-top: 10px; gap: 5px 20px; }
.prompt .poster figcaption a, .prompt .poster figcaption button:not(.btn) { color: var(--fg2); text-decoration: none; }
.den .poster figcaption .btn + .sub { margin-top: 10px; }
.prompt .poster figcaption [data-done] { color: var(--fg); }
.prompt header + .poster { margin-top: 20px; }
/* A game's funnel, for whoever runs it: plain tables, numbers to the right, the first column the step. */
.prompt .answer + .came, .prompt .scroll + .came { margin-top: 35px; }
.prompt .answer { margin: 15px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.prompt .scroll { overflow-x: auto; margin-top: 10px; }
.prompt table.funnel { border-collapse: collapse; font-size: var(--sm); width: 100%; }
.prompt table.funnel th, .prompt table.funnel td { padding: 5px 10px 5px 0; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); font-weight: 400; font-variant-numeric: tabular-nums; }
.prompt table.funnel th:first-child { text-align: left; color: var(--fg2); }
.prompt table.funnel thead th { color: var(--fg3); }
.prompt .sub.foot a[aria-current] { color: var(--fg); }
/* A picture: the button is the picker. */
.prompt [data-photo] input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prompt [data-photo] label.btn { cursor: pointer; }
/* Their own result, folded under what it opened. */
.prompt .yours { margin-top: 25px; }
.prompt .yours summary { cursor: pointer; font-size: var(--sm); color: var(--fg2); list-style: none; }
.prompt .yours summary::-webkit-details-marker { display: none; }
.prompt .yours summary::after { content: " +"; color: var(--fg3); }
.prompt .yours[open] summary::after { content: " −"; }
.prompt .yours .card { margin-top: 10px; }
/* What friends said, a board, and where you stand on it. */
.prompt .came h1 { margin-bottom: 0; }
.prompt .came .mute { margin: 5px 0 0; }
.prompt .standing { display: flex; flex-wrap: wrap; gap: 5px 15px; align-items: baseline; margin: 15px 0 0; font-size: var(--sm); color: var(--fg2); }
.prompt .standing strong { font-size: var(--lg); color: var(--fg); font-weight: 700; }
.prompt .board { gap: 0; }
.prompt .board li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.prompt .board li div { flex: 1; min-width: 0; }
.prompt .board p { margin: 2px 0 0; font-size: var(--sm); color: var(--fg2); }
.prompt .board .score { font-weight: 700; font-variant-numeric: tabular-nums; }
.prompt .board .me strong::after { content: " (you)"; font-weight: 400; color: var(--fg3); }
/* Answering on the page: each question's answers are rows to tap. */
.prompt .quiz fieldset { margin: 10px 0 0; padding: 0; border: 0; display: grid; gap: 5px; min-width: 0; }
.prompt .quiz legend { padding: 0; margin-bottom: 10px; font-weight: 700; line-height: var(--lh); }
.prompt .quiz label { display: block; cursor: pointer; }
.prompt .quiz label input { position: absolute; opacity: 0; pointer-events: none; }
.prompt .quiz label span { display: block; padding: 10px 10px; border: 1px solid var(--g3); border-radius: var(--r); line-height: var(--tight); }
.prompt .quiz label input:checked + span { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.prompt .quiz label input:focus-visible + span { border-color: var(--focus); }
/* Every game, at /p. */
/* A week's board by the name its winner gave it. */
.prompt .week { margin: 10px 0 0; font-size: var(--sm); color: var(--fg2); }
.prompt .standing + .week { margin-top: 5px; }
/* A result that is the page: where it came from, small, at its foot, so a screenshot carries the way in. */
.prompt .card .where { margin: 20px 0 0; font-size: var(--xs); color: var(--fg3); }
.prompt .card + .came, .prompt .gate + .came, .prompt .quote + .came, .prompt .list + .came, .prompt .sub + .came { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.prompt .came + .card { margin-top: 15px; }
.prompt .card ~ .came h1, .prompt .quote ~ .came h1, .prompt .gate ~ .came h1, .prompt header ~ .came h1, .prompt .list ~ .came h1, .prompt .board ~ .came h1 { font-size: var(--lg); }
.prompt header + .quote { margin-top: 0; }
/* An answer to an ask: what was asked, their words, whose. Plain, like a thought. */
.prompt .quote { margin: 15px 0 0; padding: 20px; border: 1px solid var(--g3); border-radius: var(--r); }
.prompt .quote .label { margin: 0 0 10px; font-size: var(--xs); color: var(--fg3); }
.prompt .quote blockquote { margin: 0; line-height: var(--lh); white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt .quote figcaption { margin-top: 10px; font-size: var(--sm); color: var(--fg2); }
.prompt .quote:target { border-color: var(--fg); }
.prompt .quote .yes { margin-top: 15px; display: grid; gap: 10px; }
/* A list of theirs: each thing's name, their words under it, and the box that adds one. */
.prompt .list { list-style: none; margin: 10px 0 0; padding: 0; }
.prompt .list li { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.prompt .list li:first-child { border-top: 0; }
.prompt .list p { margin: 2px 0 0; font-size: var(--sm); color: var(--fg2); white-space: pre-wrap; }
.prompt .gate.add { grid-template-columns: 1fr auto; margin-top: 10px; }
.prompt .board li div p .link, .prompt .board li div p button { font-size: var(--sm); }

.prompt .games { display: grid; }
.prompt .games a { display: grid; gap: 2px; padding: 15px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.prompt .games span { font-size: var(--sm); color: var(--fg2); }
/* A photo picked for them on joining: the photo is the button that keeps it. */
.invited form.picked { margin: 25px 0 0; }
.invited form.picked button { display: block; padding: 0; border-radius: var(--r); cursor: pointer; }
.invited form.picked button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.invited form.picked .caption { margin: 10px 0 0; font-size: var(--sm); color: var(--fg2); }
.invited .small.centered { text-align: center; }
/* A world someone's asked into, with no Den in their assistant yet: its own chat buttons wait for the numbered taps. */
.game.needs-den .show [data-say] { display: none; }
/* A public thought for someone with no account (pages.ts publicThoughtPage): the words, then the way in at the foot. */
/* One line of running text (name, handle, date, who can read it) that wraps as text on a phone. */
.public .post .by { display: block; min-height: 0; margin: 0 0 10px; font-size: var(--sm); color: var(--fg2); }
.public .post .by b { color: var(--fg); font-weight: 400; }
.public .post .words { font-size: var(--lg); line-height: var(--lh); white-space: pre-wrap; overflow-wrap: anywhere; }
.public .post .words.rich { white-space: normal; font-size: var(--md); line-height: var(--loose); }
.public .post .files { margin-top: 15px; }
.public .gate .tag { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin: 0 0 5px; color: var(--fg2); font-size: var(--sm); text-align: center; }
.public .gate .tag svg { width: 15px; height: 15px; flex: none; }
.public .gate .small.centered { margin: 5px 0 0; text-align: center; }
/* A den's page (src/dens): what answering opened, two people's side by side, and where it goes next. */
.den blockquote.theirs { margin: 0; font-size: var(--lg); line-height: var(--lh); white-space: pre-wrap; overflow-wrap: anywhere; }
.den blockquote.theirs + blockquote.theirs { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.den .who { display: block; margin-bottom: 2px; font-size: var(--xs); color: var(--fg3); }
.den .waiting, .den .started { margin: 15px 0 0; }
.den .card + .poster, .den .versus-block + .poster, .den .waiting + .poster { margin-top: 25px; }
.den .poster + .card { margin-top: 0; }
.den .versus-block { margin-top: 15px; }
.den .card + .waiting, .den .waiting + .card, .den .versus-block + .card, .den .card + .versus-block { margin-top: 15px; }
.den .said-list { margin: 15px 0 0; display: grid; gap: 5px; }
.den .said-list dt { margin-top: 10px; font-size: var(--xs); color: var(--fg3); }
.den .said-list dd { margin: 0; line-height: var(--lh); white-space: pre-wrap; overflow-wrap: anywhere; }
.den .said-list.two dd + dd { margin-top: 10px; }
.den table.versus { border-collapse: collapse; width: 100%; font-size: var(--sm); }
.den table.versus th, .den table.versus td { padding: 10px 10px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; }
.den table.versus thead th, .den table.versus tbody th { color: var(--fg3); white-space: nowrap; }
.den table.versus td b { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.den table.versus td span { color: var(--fg2); }
.den table.versus td.took b::after { content: " ◀"; font-weight: 400; color: var(--fg3); }
.den table.versus tr.total td, .den table.versus tr.total th { border-bottom: 0; font-size: var(--md); }
.den .scroll { overflow-x: auto; }
.den details.yours { margin-top: 25px; }
.den details.yours summary { cursor: pointer; font-size: var(--sm); color: var(--fg2); }
.den label.ask { display: grid; gap: 5px; }
.den label.ask span { font-size: var(--sm); }
.den .thread h3 { margin: 35px 0 0; font-size: var(--sm); font-weight: 400; color: var(--fg3); }
.den .keys { margin: 15px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: var(--sm); }
.den ol.board { gap: 10px; }
.den ol.board li { display: grid; grid-template-columns: 1.6em 1fr auto; }
.den ol.board small { display: block; font-size: var(--xs); color: var(--fg3); }
.den .gate.own { margin-top: 10px; }
.den .others { margin-top: 25px; }
.den .others > .label { margin: 0 0 10px; font-size: var(--xs); color: var(--fg3); }

/* A den's own page, in its frame: as wide as the column, as tall as it says it is. */
/* A den's views, by name: plain words, the one showing in the page's own colour. */
.den .den-views { display: flex; gap: 15px; margin: 0 0 10px; font-size: var(--sm); }
.den .den-views button { color: var(--fg3); }
.den .den-views button[aria-current] { color: var(--fg); }
.den .den-page { display: block; width: 100%; height: 240px; border: 0; margin: 0 0 1rem; background: transparent; }

/* Answers to tap on a den's page: each a row the size of a button, the chosen one filled. */
.den .taps { border: 0; padding: 0; margin: 0 0 15px; display: grid; gap: 10px; }
.den .taps legend { padding: 0; margin-bottom: 10px; }
.den .tap { display: block; cursor: pointer; }
.den .tap input { position: absolute; opacity: 0; }
.den .tap span { display: flex; align-items: center; min-height: 45px; padding: 0 15px; border-radius: var(--r); background: var(--g1); }
.den .tap input:checked + span { background: var(--fg); color: var(--bg); }
.den .tap input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }

/* A shut place in a den's pool: the shape of a card, its words veiled on the server and blurred here. */
.den .shut { filter: blur(6px); pointer-events: none; user-select: none; }
.den .places.one .label { margin-bottom: 10px; }
/* In a den the card comes first and the places after it: they stand apart from it. */
.den .places { margin-top: 25px; }

/* /reach: what reaches you. One table: a kind of thing a row, a channel a column. */
.reach { display: grid; gap: 15px; max-width: 460px; }
.reach table { width: 100%; border-collapse: collapse; }
.reach th[scope="row"] { text-align: left; font-weight: 400; padding: 10px 10px 10px 0; }
.reach th[scope="col"] { font-weight: 400; color: var(--fg2); font-size: var(--sm); padding: 0 5px 5px; }
.reach td { text-align: center; padding: 10px 5px; white-space: nowrap; }

/* The three to tap, once they've gone to the assistant: a little room over them. */
.prompt .three { margin-top: 5px; }
