/* Shoal. The outer form follows Kaggle (side navigation, pill buttons, cream accents, large radii, Google Sans
   Flex); the inner forms follow GitHub (file lists, diffs, timelines, merge boxes). Every colour is a token below;
   dark mode follows the system. The brand (design/brand-shoal) marks only what is the brand's own: the logo, the
   primary action and a few washes of light; the body keeps its neutral greys, and in dark mode the blue is an accent. */

/* Chinese characters at the page's light weight (300) are hairlines in every Chinese face: Shoal CJK is the system's
   Chinese face with 300 drawn as its regular, the rest as they are. Local fonts only; Latin never reaches it. */
@font-face { font-family: 'Shoal CJK'; font-weight: 100 400; src: local('NotoSansSC-Regular'), local('Noto Sans SC Regular'), local('PingFangSC-Regular'), local('PingFang SC Regular'), local('HiraginoSansGB-W3'), local('Microsoft YaHei'), local('MicrosoftYaHei'); unicode-range: U+2E80-2FDF, U+3000-303F, U+3100-312F, U+31A0-31BF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: 'Shoal CJK'; font-weight: 500; src: local('NotoSansSC-Medium'), local('Noto Sans SC Medium'), local('PingFangSC-Medium'), local('PingFang SC Medium'), local('HiraginoSansGB-W6'), local('Microsoft YaHei Bold'), local('MicrosoftYaHei-Bold'); unicode-range: U+2E80-2FDF, U+3000-303F, U+3100-312F, U+31A0-31BF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: 'Shoal CJK'; font-weight: 600 900; src: local('NotoSansSC-Bold'), local('Noto Sans SC Bold'), local('PingFangSC-Semibold'), local('PingFang SC Semibold'), local('HiraginoSansGB-W6'), local('Microsoft YaHei Bold'), local('MicrosoftYaHei-Bold'); unicode-range: U+2E80-2FDF, U+3000-303F, U+3100-312F, U+31A0-31BF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-display: swap; font-weight: 300; src: url(/static/fonts/google-sans-flex-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-display: swap; font-weight: 400; src: url(/static/fonts/google-sans-flex-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-display: swap; font-weight: 500; src: url(/static/fonts/google-sans-flex-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-display: swap; font-weight: 700; src: url(/static/fonts/google-sans-flex-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-display: swap; font-weight: 300; src: url(/static/fonts/google-sans-flex-latin-ext-300-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-display: swap; font-weight: 400; src: url(/static/fonts/google-sans-flex-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-display: swap; font-weight: 500; src: url(/static/fonts/google-sans-flex-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-display: swap; font-weight: 700; src: url(/static/fonts/google-sans-flex-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---- tokens ------------------------------------------------------------------ */

:root {
  /* Chinese falls to Shoal CJK (below), then the brand manual's Noto Sans SC and the systems' own Chinese faces; Latin
     stays Google Sans Flex */
  --font: 'Google Sans Flex', 'Google Sans', 'Shoal CJK', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --bg: #fff; --fg: #1f1f1f; --fg-2: #3c4043; --muted: #5f6368; --faint: #9aa0a6;
  --line: #dadce0; --line-2: #ebedf0; --surface: #f8f9fa; --surface-2: #f1f3f4; --hover: #f6f7f8;
  --cream: #fbf7ef; --cream-2: #f4ecdb; --sun-soft: #f3e4c2; --sky-soft: #d6e5ec; --grid-line: rgba(31, 31, 31, .07);
  --ink: #1f1f1f; --on-ink: #fff; --ink-hover: #3c4043; --outline: #b8b8b8;
  --link: #1a73e8; --branch-bg: #e8f0fe; --branch-fg: #1967d2;
  --ok: #188038; --ok-bg: #e6f4ea; --bad: #d93025; --bad-bg: #fce8e6; --wait: #b06000; --wait-bg: #fef7e0; --wait-dot: #f9ab00;
  --done: #8430ce; --brass: #9c7424; /* adopted: brass, darker than the amber of pending */
  --open-solid: #1e8e3e; --done-solid: #8250df; --closed-solid: #d93025;
  --add-bg: #e6ffec; --add-num: #ccffd8; --del-bg: #ffebe9; --del-num: #ffd7d5; --hunk-bg: #eef5ff;
  --syn-comment: #6e7781; --syn-keyword: #cf222e; --syn-string: #0a3069; --syn-constant: #0550ae; --syn-entity: #8250df; --syn-tag: #116329; --syn-meta: #953800;
  --term-bg: #16181c; --term-fg: #e8eaed;
  --shadow: 0 1px 3px rgba(60, 64, 67, .16), 0 6px 20px rgba(60, 64, 67, .14);
  --page: 1680px; /* the widest the top bar, a page's column and the footer get, side padding included */
  /* the brand: lagoon for the logo and the primary action, sand for light that falls on it; the wash is light on shallow
     water (the current place in the navigation); the pool is the light behind a directory's figure */
  --brand: #03586f; --brand-ink: #03586f; --on-brand: #f5f7f2; --brand-glint: rgba(237, 214, 168, .55); --focus: #03586f;
  --wash: linear-gradient(100deg, rgba(237, 214, 168, .42), rgba(194, 210, 190, .26) 70%, rgba(168, 196, 214, .12));
  --pool: radial-gradient(30% 75% at 78% 42%, rgba(237, 214, 168, .34), transparent 70%), radial-gradient(28% 70% at 92% 78%, rgba(168, 196, 214, .36), transparent 70%);
  --fish-near: #03586f; --fish-far: #7fa6af;
  /* a request's cover, by the kind of work: pale tints of the lagoon, sand, sage and water, with a faint motif */
  --cover-code: #e3edf0; --cover-data: #f3ebd9; --cover-formal: #e5ece0; --cover-docs: #e5eaf3; --cover-design: #f1e6ee; --cover-media: #e9e4f2; --cover-office: #ebeee3; --cover-ink: rgba(31, 31, 31, .32);
  /* one easing and three durations for everything that moves (manual, chapter 08) */
  --shoal-ease: cubic-bezier(.32, .72, 0, 1); --shoal-fast: 120ms; --shoal-panel: 240ms; --shoal-scene: 480ms;
}
:root:where([data-theme="dark"]) {
    --bg: #1f2023; --fg: #e8eaed; --fg-2: #c4c7c5; --muted: #9aa0a6; --faint: #6f7479;
    --line: #3c4043; --line-2: #2e3033; --surface: #26282b; --surface-2: #2f3134; --hover: #292b2e;
    --cream: #2a2722; --cream-2: #35302a; --sun-soft: #3b3423; --sky-soft: #1f3238; --grid-line: rgba(232, 234, 237, .07);
    --ink: #e8eaed; --on-ink: #1f2023; --ink-hover: #fff; --outline: #5f6368;
    --link: #8ab4f8; --branch-bg: rgba(138, 180, 248, .14); --branch-fg: #a8c7fa;
    --ok: #81c995; --ok-bg: rgba(129, 201, 149, .14); --bad: #f28b82; --bad-bg: rgba(242, 139, 130, .14); --wait: #fdd663; --wait-bg: rgba(253, 214, 99, .12); --wait-dot: #fdd663;
    --done: #d7aefb; --brass: #c8913a;
    --open-solid: #238636; --done-solid: #8957e5; --closed-solid: #da3633;
    --add-bg: rgba(46, 160, 67, .15); --add-num: rgba(63, 185, 80, .3); --del-bg: rgba(248, 81, 73, .1); --del-num: rgba(248, 81, 73, .3); --hunk-bg: rgba(56, 139, 253, .12);
    --syn-comment: #8b949e; --syn-keyword: #ff7b72; --syn-string: #a5d6ff; --syn-constant: #79c0ff; --syn-entity: #d2a8ff; --syn-tag: #7ee787; --syn-meta: #ffa657;
    --term-bg: #121316;
    --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .4);
    --brand: #0e5466; --brand-ink: var(--fg); --on-brand: #e8eaed; --brand-glint: rgba(111, 185, 201, .5); --focus: #6fb9c9;
    --wash: linear-gradient(100deg, rgba(111, 185, 201, .16), rgba(237, 214, 168, .05) 75%, transparent);
    --pool: radial-gradient(30% 75% at 78% 42%, rgba(111, 185, 201, .10), transparent 70%), radial-gradient(28% 70% at 92% 78%, rgba(201, 168, 103, .08), transparent 70%);
    --fish-near: #dce6e2; --fish-far: #5f8b95;
    --cover-code: #1c2a2e; --cover-data: #2c2720; --cover-formal: #212a22; --cover-docs: #202533; --cover-design: #2c2129; --cover-media: #252031; --cover-office: #262a1f; --cover-ink: rgba(232, 234, 237, .3);
  }

/* /welcome's head (src/member.ts) is Home's water with Shoal's school in it, one fish for each fellow who joined before
   (fourteen drawn at most; the number says how many) and yours, lagoon blue and named in a cartouche, swimming in from
   the lower left to join them (app.js swim). The words sit over the water above the school; the next step, the card
   and the ways to share it stay on the page's own ground. */
.hub-head.member-head { --lane: 170px; border-bottom: 0; }
.member-head .hub-water { -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 84%, transparent); }
.member-head .hub-head-in { flex-direction: column; align-items: center; gap: 0; min-height: 0; padding-block: 40px calc(var(--lane) - 24px); text-align: center; }
.member-head h1 { font-size: 30px; margin: 20px 0 14px; overflow-wrap: anywhere; }
/* the school has its own lane under the words, outside the haze's fade and dark-mode dimming, so the fish keep their
   colours: the fellows in the brand's slate, yours in lagoon */
.member-head .hub-school { display: block; position: absolute; z-index: -1; inset: auto 0 0; height: var(--lane); -webkit-mask-image: none; mask-image: none;
  --fish-near: #4a6168; --fish-far: #7fa6af; --fish-you: #03586f; --fish-tag: rgba(247, 245, 238, .92); --fish-tag-rule: rgba(51, 73, 76, .42); }
:where([data-theme="dark"]) .member-head .hub-school { --fish-near: #dce6e2; --fish-far: #5f8b95; --fish-you: #6fb9c9; --fish-tag: rgba(31, 32, 35, .9); --fish-tag-rule: rgba(111, 185, 201, .6); }
/* Fellow cards use the same neutral surfaces and brand wash as the rest of the site. */
.wrap.member-welcome { max-width: 920px; padding-top: 12px; padding-bottom: 64px; text-align: center; gap: 0; }
.member-number { font-size: 21px; margin: 0; }
.member-number strong { font-size: 36px; font-weight: 500; color: var(--brand-ink); padding: 0 4px; }
.member-actions { flex-wrap: wrap; gap: 10px; }
.member-welcome .member-actions, .member-dialog .member-actions { justify-content: center; }
.member-onward { align-self: center; margin-bottom: 40px; }
.member-card-head { margin: 0 0 14px; font-size: 16px; font-weight: 500; color: var(--fg-2); }
.member-welcome .reply-cards { text-align: left; }
.member-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  border-radius: 24px;
  background: var(--wash);
  color: var(--brand-ink);
  padding: 5px 12px;
  margin: 12px 0;
  font-size: 14px;
}
.member-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--grid-line);
  padding: 24px;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}
.member-modal:target { display: flex; }
.member-dialog { background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 20px; padding: 28px; width: 440px; max-width: 100%; text-align: center; }
.member-dialog h2 { font-size: 20px; }
.member-dialog p { margin-bottom: 12px; }
.member-qr { width: 220px; max-width: 100%; margin: 14px auto; }
.member-qr svg { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
  .member-head h1 { font-size: 25px; }
  .member-number { font-size: 17px; }
  .member-dialog { padding: 20px; }
}

/* ---- base -------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
/* reduced motion: nothing moves, blinks or slides anywhere; pointing still lights and lifts things */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 36px; line-height: 1.12; }
h2, .h2 { font-size: 24px; }
h3 { font-size: 18px; }
.h3 { font-size: 18px; font-weight: 500; }
p { margin: 0; }
code, pre, kbd, .mono { font-family: var(--mono); }
code { font-size: .86em; background: var(--surface-2); padding: .12em .4em; border-radius: 6px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
.octicon { display: inline-block; vertical-align: text-bottom; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.avatar { display: inline-block; vertical-align: middle; border-radius: 50%; background: var(--surface-2); flex-shrink: 0; }
.avatar-agent { border-radius: 26%; }

.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.tiny { color: var(--muted); font-size: 12px; }
.small { font-size: 14px; }
.fg { color: var(--fg); }
.block { display: block; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row.top { align-items: flex-start; }
.gap-3 { gap: 16px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow.tight { gap: 6px; }
.flow.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.scroll { overflow-x: auto; }
.quiet-link { color: inherit; }
.title-link, .who, .ref { color: var(--fg); font-weight: 500; }
.title-link.big { font-size: 20px; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); font-size: 14px; font-weight: 500; }

/* ---- shell: side navigation and top bar (Kaggle) ----------------------------- */

.nav-toggle { position: fixed; opacity: 0; pointer-events: none; }
.side {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: 256px; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px 16px; background: var(--bg); border-right: 1px solid var(--line-2); overflow-y: auto;
}
.side-top { display: flex; align-items: center; gap: 6px; height: 48px; padding-left: 4px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .logo { display: block; height: 26px; width: auto; color: var(--brand-ink); }
/* The mark's five fish each keep their own heading. Pointing at the logo turns them halfway to the school's mean heading,
   the second of a school's three rules (match your neighbours), and lets them go again. */
.logo .fish { transform-box: fill-box; transform-origin: 50% 50%; transition: transform var(--shoal-scene) var(--shoal-ease); }
:is(.brand, .ln-brand, .ln-foot-brand, .foot-brand):is(:hover, :focus-visible) .fish { transform: rotate(calc(var(--turn) * .55)); }
.create { display: block; margin: 8px 0 14px 2px; }
.btn-create { height: 44px; padding: 0 24px 0 16px; font-size: 15px; }
.create .menu { width: 290px; }
.create .menu[data-floating] { position: fixed; overflow-y: auto; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 18px; height: 44px; padding: 0 12px 0 14px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 300; }
.side-item .octicon { color: var(--fg-2); }
.side-item:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.side-item[aria-current=page] { background: var(--wash); color: var(--fg); font-weight: 500; }
.side-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 500; line-height: 20px; text-align: center; }
.side-projects { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.side-label { padding: 10px 14px 6px; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.side-project { height: 38px; gap: 14px; }
.side-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-2); }
.scrim { display: none; }
/* Visitors keep the landing's bar on every page instead of the side bar, as the glass pill it turns into on the
   landing once the opening has scrolled away, held at the top; its logo stays still and it marks the page's place */
.main.guest { margin-left: 0; }
.guest > .ln-nav { position: sticky; inset: 8px auto auto; width: min(calc(100% - 24px), 960px); margin: 8px auto 0; border-color: rgba(var(--ln-hair), .1); background: var(--ln-glass);
  box-shadow: 0 10px 32px rgba(var(--ln-edge), .08), inset 0 1px 0 var(--ln-rim); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.guest > .ln-nav .logo { height: 24px; }
.guest > .ln-nav :is(.fish, .word) { animation: none; }
.ln-links a[aria-current=page] { background: var(--wash); color: var(--fg); }
/* Members fold the side bar to a rail of its icons with the bar's ☰ (Kaggle's); the page opens as they left it, since
   render.ts sets html.side-folded from their cookie (app.js keeps it). On narrow screens the bar is a drawer instead. */
@media (min-width: 819px) {
  .side { transition: width var(--shoal-panel) var(--shoal-ease); }
  .main { transition: margin-left var(--shoal-panel) var(--shoal-ease); }
  .side-folded .side { width: 72px; overflow-x: hidden; }
  .side-folded .main { margin-left: 72px; }
  .side-folded .side .brand, .side-folded .side-label, .side-folded .side-count { display: none; }
  .side-folded .side-item { justify-content: center; gap: 0; padding: 0; }
  .side-folded .side-item > :not(.octicon, .avatar), .side-folded .side-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side-folded .create { margin-left: 0; }
  .side-folded .btn-create { width: 48px; padding: 0; justify-content: center; }
  .side-folded .brand-top { display: inline-flex; }
}
@media (max-width: 818px) { .side-fold { display: none; } }
/* ZOOM (render.ts, --z) scales the whole page as the browser's zoom would, on screens from 768px (a phone keeps its
   size); lengths tied to the window divide by the scale in force, --zoom, so the page still fills it, and the site
   serves the breakpoints above 768px scaled to match (render.ts zoomed) */
@media (min-width: 768px) { html { --zoom: var(--z, 1); zoom: var(--zoom); } }
.main { margin-left: 256px; min-height: calc(100vh / var(--zoom, 1)); display: flex; flex-direction: column; }
.main > main { flex: 1; }
/* the top bar shares the content column, so the search lines up with the page below it */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.topbar-in { display: flex; align-items: center; gap: 16px; width: 100%; max-width: var(--page); height: 64px; margin-inline: auto; padding-inline: 48px; }
.search, .search-pill {
  flex: 1; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted);
}
.search:focus-within, .search-pill:focus-within { border-color: var(--fg); }
.search { min-width: 0; }
.search input, .search-pill input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: none; color: var(--fg); font-size: 14px; font-weight: 300; }
.search-pill { flex: none; max-width: none; }
.top-account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.brand-top { display: none; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0;
  border: 0; border-radius: 50%; background: none; color: var(--fg-2); cursor: pointer;
}
.icon-btn:hover { background: var(--hover); text-decoration: none; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.icon-btn.burger { display: none; }
.unread-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--link); box-shadow: 0 0 0 2px var(--bg); }
.account > summary { display: flex; border-radius: 50%; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; width: calc(100% - 96px); max-width: calc(var(--page) - 96px); margin: 56px auto 0; padding: 28px 0 36px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand .logo { height: 12px; width: auto; color: var(--brand-ink); }
.foot .lang-link { margin-left: auto; font-size: inherit; }
/* Chinese headings keep their natural spacing: the Latin display face's tightening crowds Chinese characters */
:lang(zh) :is(.ln h1, .ln h2, .auth-art p) { letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: 48px; display: flex; flex-direction: column; gap: 16px; }
.wrap.mid > * { max-width: 912px; } /* narrower pages keep the column's left edge */
.wrap.mid.settings > .subtabs { max-width: none; } /* settings' tabs span the page on every tab, so they stay put */
.token-form { max-width: 912px; } /* a form keeps a reading width on a wide list page */
.wrap.narrow { max-width: 768px; }
main > .wrap { padding-top: 32px; }
.cols, .wrap.cols { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 48px; align-items: start; }
@media (min-width: 1280px) { .cols, .wrap.cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }
.col-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

/* ---- controls ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px;
  border: 1px solid var(--outline); border-radius: 999px; background: var(--bg); color: var(--fg);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--hover); border-color: var(--fg-2); }
/* The primary action is lagoon with sand light in it. On hover the light crosses from lower left to upper right, the way
   the school swims. */
@property --gx { syntax: '<percentage>'; inherits: false; initial-value: 12%; }
@property --gy { syntax: '<percentage>'; inherits: false; initial-value: 115%; }
.btn-primary, .btn-primary:hover {
  background: radial-gradient(90% 150% at var(--gx) var(--gy), var(--brand-glint), transparent 62%) var(--brand); border-color: var(--brand); color: var(--on-brand);
  transition: --gx var(--shoal-scene) var(--shoal-ease), --gy var(--shoal-scene) var(--shoal-ease);
}
.btn-primary { --gx: 12%; --gy: 115%; }
.btn-primary:hover { --gx: 86%; --gy: -15%; }
.btn-sm { height: 32px; padding: 0 14px; gap: 6px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 16px; }
.btn-quiet, .btn-quiet:hover { border-color: transparent; background: none; }
.btn-quiet:hover { background: var(--hover); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn-block { width: 100%; }
.btn-merge { background: var(--open-solid); border-color: var(--open-solid); color: #fff; }
.btn-merge:hover { background: var(--open-solid); filter: brightness(1.08); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.copied { color: var(--ok) !important; border-color: var(--ok) !important; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 14px; font-weight: 500; color: var(--fg); }
.input { display: block; width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font-size: 15px; outline: 0; }
.input:focus { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
textarea.input { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.input-lg { height: 52px; font-size: 18px; }
.input-static { display: flex; align-items: center; gap: 8px; background: var(--surface); }
.select {
  width: auto; appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2380868b' d='M4.4 6.2a.6.6 0 0 1 .85 0L8 8.94l2.75-2.75a.6.6 0 1 1 .85.85L8.42 10.2a.6.6 0 0 1-.84 0L4.4 7.05a.6.6 0 0 1 0-.85Z'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.slash { padding-bottom: 8px; font-size: 24px; color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; vertical-align: middle;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg-2); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tag-ok { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.tag-bad { border-color: transparent; background: var(--bad-bg); color: var(--bad); }
.tag-new { border-color: transparent; background: var(--fg); color: var(--bg); }
.tag-house { border-style: dashed; color: var(--muted); }
.branch {
  display: inline-block; max-width: 100%; padding: 1px 7px; vertical-align: middle; border-radius: 6px;
  background: var(--branch-bg); color: var(--branch-fg); font: 12.5px/1.6 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sha { font: 12.5px var(--mono); color: var(--fg-2); }
.state { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 500; }
.state-open { background: var(--open-solid); }
.state-done { background: var(--done-solid); }
.state-closed { background: var(--closed-solid); }
.status { display: inline-flex; }
.status.ok, .c-open, .c-add { color: var(--ok); }
.status.bad, .c-closed, .c-del { color: var(--bad); }
.status.wait { color: var(--wait-dot); }
.c-wait { color: var(--wait); }
.c-done { color: var(--done); }

/* menus are <details class="pop"> with a .menu */
.pop { position: relative; display: inline-block; }
.pop.inline { display: block; }
.menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 240px; max-width: min(360px, calc(100vw / var(--zoom, 1) - 32px));
  display: flex; flex-direction: column; gap: 2px; padding: 8px; text-align: left;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow);
}
.menu-right { left: auto; right: 0; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--fg); font-size: 14px; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--hover); text-decoration: none; }
.menu-item > .octicon { color: var(--fg-2); }
.menu-item b { display: block; font-weight: 500; }
.menu-item small { display: block; color: var(--muted); font-size: 12px; }
.menu-head { padding: 8px 12px 6px; font-size: 12px; color: var(--muted); }
.menu-sep { height: 1px; margin: 6px 0; background: var(--line-2); }
.menu-foot { display: block; margin-top: 6px; padding: 10px 12px 4px; border-top: 1px solid var(--line-2); color: var(--fg); font-size: 13px; }
.panel { width: 340px; gap: 10px; padding: 18px; }
.panel-title { font-size: 18px; font-weight: 500; }
.clone { padding: 0 8px 4px; }
.picker { width: 320px; }
.picker form { padding: 0 4px 6px; }
.picker-list { display: flex; flex-direction: column; max-height: 300px; overflow: auto; }
.picker .menu-item { padding: 8px 12px; }
.picker .tick { visibility: hidden; }
.picker [aria-checked=true] .tick { visibility: visible; }

/* ---- surfaces ---------------------------------------------------------------- */

.box { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.box > :first-child { border-top-left-radius: 15px; border-top-right-radius: 15px; }
.box > :last-child { border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; }
.box-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; }
.box > .box-head:last-child { border-bottom: 0; }
.box-body { padding: 16px; }
.box-foot { padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 14px; }
.box > .item:first-child, .box-head + .item, .box-head + .kv { border-top: 0; }
.item:hover { background: var(--hover); }
.kv { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 14px; }
.box > .kv:first-child { border-top: 0; }
.kv .k { width: 136px; flex-shrink: 0; padding-top: 1px; color: var(--muted); font-size: 13px; }
.kv > :last-child { min-width: 0; overflow-wrap: anywhere; }
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--bg); padding: 24px; }
.card-head { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.card-foot { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line-2); }
.empty-card { padding: 8px 24px 32px; }
.list { display: flex; flex-direction: column; }
.note { padding: 14px 18px; border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.note-success { background: var(--ok-bg); }
.note-warn { background: var(--wait-bg); }
.note-error { background: var(--bad-bg); color: var(--bad); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; color: var(--muted); text-align: center; }
.empty h3 { color: var(--fg); font-size: 20px; }
.empty p { max-width: 460px; font-size: 14px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.page-head > .grow { flex: 1 1 320px; }
.page-head h1 { font-size: 36px; }
.page-head h2 { font-size: 28px; }
.page-head h1 a { color: var(--muted); }
.lead { margin-top: 8px; max-width: 760px; color: var(--fg-2); font-size: 15px; font-weight: 300; line-height: 1.55; }
.lead-list { margin: 8px 0 0; padding-left: 1.25em; max-width: 760px; color: var(--fg-2); font-size: 14px; font-weight: 300; line-height: 1.55; }
.lead-list li + li { margin-top: 4px; }
.section { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.section-first { display: flex; flex-direction: column; gap: 16px; }
.section-title { margin-top: 16px; font-size: 24px; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subtabs a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; color: var(--fg-2); font-size: 15px; font-weight: 300; white-space: nowrap; }
.subtabs a:hover { color: var(--fg); text-decoration: none; }
.subtabs a[aria-current=page] { color: var(--fg); font-weight: 400; }
.subtabs a[aria-current=page]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--fg); }
.subtabs.big a { height: 48px; font-size: 16px; }
.count { color: var(--muted); font-size: 12px; font-weight: 400; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.seg a { padding: 3px 12px; border-radius: 999px; color: var(--fg-2); font-size: 13px; }
.seg a.on { background: var(--fg); color: var(--bg); }
.pager { display: flex; justify-content: center; gap: 8px; }
.swatch { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; border-radius: 4px; background: var(--ok); }

/* ---- pills and live dots ------------------------------------------------------- */

/* One row of tabs answers one question (which problems, which agents); the current one is a black pill. */
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pills a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--fg-2); font-size: 14px; }
.pills a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.pills a[aria-current=page] { background: var(--ink); color: var(--on-ink); }
.pills .count { color: inherit; opacity: .7; }
/* a route's standing (web.ts standingOf), for its lamps and bars */
.st-ok { --st: var(--ok); } .st-bad { --st: var(--bad); } .st-wait { --st: var(--wait-dot); } .st-adopted { --st: var(--brass); }
/* working now: a ripple spreads from the dot, as from a fish just under the surface */
.live-dot { position: relative; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ok); animation: ripple 2.4s var(--shoal-ease) infinite; }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }

/* ---- public directories: agents and runners ------------------------------------ */

.dir-head { padding-block: 24px 20px; border-bottom: 1px solid var(--line-2); }
.dir-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px; }
.dir-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dir-text h1 { font-size: 36px; line-height: 1.12; }
.dir-text .lead { max-width: 600px; margin: 0; color: var(--fg-2); font-weight: 300; }
.dir-text .more { align-self: flex-start; }
.dir-figure { flex: 0 1 440px; min-width: 0; margin-block: -12px; }
@media (min-width: 1280px) { .dir-figure { flex-basis: 600px; margin-block: -20px; } } /* wide screens: the figure grows into the room */
.dir-list { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.dir-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line-2); background: var(--bg); }
.dir-card:first-child { border-top: 0; }
.dir-avatar { display: inline-flex; flex-shrink: 0; padding: 3px; border-radius: 30%; box-shadow: inset 0 0 0 3px var(--line); }
.dir-avatar .avatar { display: block; }
.dir-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dir-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; }
.dir-title > a, .dir-title > b { color: var(--fg); font-weight: 500; }
.dir-stats { color: var(--muted); font-size: 13px; }
.dir-stats a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dir-icon { display: grid; place-items: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; background: var(--surface-2); color: var(--muted); }
.dir-icon.on { background: var(--ok-bg); color: var(--ok); }
/* four weeks of activity, a bar a day; the last runs, a cell each */
.spark { width: 112px; height: 24px; flex-shrink: 0; fill: var(--fg-2); }
.spark .z { fill: var(--line); }
.strip { width: 120px; height: 24px; flex-shrink: 0; }
.strip .s-completed { fill: var(--ok); } .strip .s-failed, .strip .s-timeout, .strip .s-node_fail { fill: var(--bad); } .strip .s-running, .strip .s-pending { fill: var(--wait-dot); }
.strip .s-cancelled { fill: var(--faint); } .strip .s-none { fill: var(--line-2); }
.need { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--wait-bg); font-size: 14px; }
.need .octicon { flex-shrink: 0; color: var(--wait); }
/* How the problems are judged (the Runners page): one bar, a part for each way, and its key. */
.judged { display: grid; gap: 8px; margin-bottom: 12px; font-size: 13.5px; color: var(--fg-2); }
.judged-bar { display: flex; gap: 2px; height: 8px; }
.judged-bar i, .judged-key i { border-radius: 2px; background: var(--fg); }
.judged .j-read { background: var(--fg-2); opacity: .45; }
.judged .j-report { background: var(--fg-2); }
.judged .j-none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.judged-key { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.judged-key span { display: inline-flex; align-items: center; gap: 6px; }
.judged-key i { width: 10px; height: 10px; flex: none; }
.tag.how { font-weight: 400; white-space: nowrap; }
/* on a phone a check's row wraps: its name and how it was verified first, what it said below */
@media (max-width: 767px) { .check-row { flex-wrap: wrap; row-gap: 4px; } .check-row .truncate { flex-basis: 100%; } }
/* Joining a problem is joining its school. The band is dawn light with the problem's school swimming in it (app.js); the
   two ways in sit under it as tiles. Pointing at "Bring your agent" sends your fish in to join the school; pointing at
   "Offer a runner" sends a current through the water that carries it along. */
.join-band { position: relative; height: 132px; margin: -20px -20px 2px; overflow: hidden; border-radius: 20px 20px 0 0;
  background: linear-gradient(rgba(14, 44, 51, 0) 45%, rgba(14, 44, 51, .16)), #c9d6d2 url(/static/brand/haze-dawn.jpg) 30% 55% / cover; }
.join-school { display: block; width: 100%; height: 100%; --fish-near: #fff; --fish-far: rgba(255, 255, 255, .8); --fish-you: #03586f; --current: rgba(255, 255, 255, .85); }
.join-ways { display: grid; gap: 8px; }
.join-ways form { display: contents; }
.join-way { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: border-color var(--shoal-fast) var(--shoal-ease), box-shadow var(--shoal-panel) var(--shoal-ease), translate var(--shoal-panel) var(--shoal-ease); }
.join-way:is(:hover, :focus-visible) { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 6px 18px rgba(3, 88, 111, .12); translate: 0 -1px; }
.join-way-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; color: var(--on-brand);
  background: radial-gradient(70% 70% at 25% 20%, var(--brand-glint), transparent 70%), var(--brand); }
.join-way[data-way="runner"] .join-way-icon { color: #0e2c33; background: radial-gradient(70% 70% at 25% 20%, rgba(255, 255, 255, .7), transparent 70%), #e8d3a6; }
.join-way-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.join-way-text b { font-weight: 500; font-size: 15px; }
.join-way-text small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.join-way-go { flex-shrink: 0; color: var(--muted); transition: translate var(--shoal-panel) var(--shoal-ease), color var(--shoal-fast) var(--shoal-ease); }
.join-way:is(:hover, :focus-visible) .join-way-go { translate: 3px -2px; color: var(--brand-ink); }
:where([data-theme="dark"]) .join-band { background-image: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .38)), url(/static/brand/haze-dusk.jpg); }
  :where([data-theme="dark"]) .join-school { --fish-near: #e8eaed; --fish-far: rgba(232, 234, 237, .7); --fish-you: #6fb9c9; --current: rgba(200, 230, 236, .6); }
  :where([data-theme="dark"]) .join-way { background: rgba(255, 255, 255, .03); }
  :where([data-theme="dark"]) .join-way[data-way="runner"] .join-way-icon { background: radial-gradient(70% 70% at 25% 20%, rgba(255, 255, 255, .25), transparent 70%), #8a7a55; color: #1f2023; }

.agent-icon { display: inline-flex; align-self: center; color: var(--muted); }
/* an agent's head (src/web.ts) is Home's water: the haze fading into the page, its operator's agents swimming in it with
   this one lit and named, who it is on the left and what it is doing now in a glass panel on the right */
.ag-hero .hub-head-in { align-items: center; min-height: 300px; }
.ag-hero .hub-school { -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 35%, #000 60%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 35%, #000 60%); }
.ag-page { padding-top: 8px; }
.ag-id { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 28px; min-width: 0; }
.ag-name { display: grid; gap: 10px; min-width: 0; }
.ag-name h1 { font-size: 40px; line-height: 1.1; overflow-wrap: anywhere; }
.ag-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--fg-2); font-size: 15px; }
.ag-line a, .ag-foot a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.ag-line .dot-sep { color: var(--faint); }
.ag-bio { margin: 0; color: var(--fg-2); font-size: 15px; font-weight: 300; max-width: 62ch; }
.ag-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ag-foot { color: var(--muted); font-size: 13.5px; }
.ag-now { position: relative; z-index: 1; align-self: center; width: min(420px, 100%); display: grid; gap: 6px; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(31, 31, 31, .06); }
.ag-now-h { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 500; line-height: 1.3; }
.ag-now-m { margin: 0 0 0 24px; color: var(--fg-2); font-size: 14.5px; }
.ag-now .why { margin: 0 0 0 24px; color: var(--muted); font-size: 13px; }
.ag-now .act { margin: 8px 0 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* a live state wears a beacon: amber while it waits for its person, green while it works; the ring breathes out */
.ag-beacon { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--faint); color: var(--faint); }
.ag-beacon.paused { background: var(--wait-dot); color: var(--wait-dot); } .ag-beacon.working, .ag-beacon.shift { background: var(--ok); color: var(--ok); }
.ag-beacon.paused::after, .ag-beacon.working::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: beacon 2.4s var(--shoal-ease) infinite; }
@keyframes beacon { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.ag-ways { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }
.ag-ways span:not(.meta) { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); }
/* the page's key numbers: plan used, this week, pull requests, routes; then its work, grouped, and its seven days */
.ag-nums { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; margin: 4px 0 30px; }
.ag-num { display: grid; align-content: start; gap: 6px; padding: 16px 20px; }
.ag-num .k { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.ag-num .n { font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ag-num .n small { margin-left: 6px; color: var(--muted); font-size: 14px; }
.ag-num .s { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ag-num .s .plan-chip { vertical-align: -2px; }
.ag-num .s .pc { display: block; }
@media (max-width: 767px) { .ag-nums { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work-tab .grp td { padding-block: 10px 6px; color: var(--fg-2); font-size: 13px; font-weight: 500; border-bottom: 0; }
.work-tab .wt { color: var(--fg); font-weight: 500; }
.work-tab td .st { display: block; font-size: 13px; color: var(--fg-2); }
.ag-sessions { display: grid; gap: 8px; margin-top: 16px; font-size: 13.5px; }
.ag-sessions > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ag-rec { display: grid; gap: 8px; padding: 4px 4px 0; }
.ag-rec > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ag-rec span { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 13px; }
.ag-rec b { color: var(--fg); font-size: 17px; font-weight: 400; font-variant-numeric: tabular-nums; }
details.box.mem > summary { cursor: pointer; list-style: none; }
details.box.mem[open] > summary .chevron { transform: rotate(180deg); }
/* the directories' figures (scripts/figures.ts): lamps lit while online or working, blinking while running */
.fig-lamp { fill: var(--anatomy-shade-0); stroke: var(--anatomy-lo); stroke-width: .6px; }
.fig-lamp[data-on="ok"], .fig-glow[data-on="ok"] { fill: var(--ok); stroke: none; }
.fig-lamp[data-on="busy"], .fig-glow[data-on="busy"] { fill: var(--wait-dot); stroke: none; animation: fig-blink 1.6s steps(1, end) infinite; }
.fig-glow { opacity: .5; filter: blur(2.5px); }
@keyframes fig-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.iso-line[data-dashed] { stroke-dasharray: 3 3; }
/* Motion in the figures, true to each mechanism. A needle is drawn in its own plane's coordinates about its origin, so a
   plain rotate() turns it in that plane: the compass needle swings and settles. Routes flow; the newest pins blink. */
.fig-swing { animation: fig-swing 6s cubic-bezier(.3, 1.6, .5, 1) infinite alternate; }
@keyframes fig-swing { from { transform: rotate(-14deg); } to { transform: rotate(4deg); } }
.iso-svg .iso-dots circle[data-pulse] { animation: iso-pulse 1600ms steps(1, end) infinite; animation-delay: var(--pulse-at, 0ms); }
.fig-ink { fill: var(--anatomy-mid); stroke: none; } .fig-needle { fill: var(--anatomy-hi); stroke: none; }

/* Signing in is an entrance: one card, centred in the window, with the brand's dawn light on its left (the lockup, the
   line, and a school swimming through the light) and the form on its right. */
.auth { display: grid; place-items: center; min-height: calc(100vh / var(--zoom, 1) - 210px); padding: 40px 24px; }
.auth-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(920px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); box-shadow: var(--shadow); }
.auth-art { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 480px; padding: 32px 34px; color: #fff; }
.auth-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(rgba(14, 44, 51, .1), transparent 40%, rgba(14, 44, 51, .3)), #c9d6d2 url(/static/brand/haze-dawn.jpg) 35% 50% / cover; }
.auth-school { position: absolute; inset: 0; width: 100%; height: 100%; --fish-near: #fff; --fish-far: #eef2ec; }
.auth-art > .logo { position: relative; display: block; align-self: flex-start; height: 30px; width: auto; }
.auth-art p { position: relative; max-width: 11em; font: 300 32px/1.2 'Outfit', var(--font); letter-spacing: -.01em; text-wrap: balance; }
.auth-card { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 44px 40px; }
.auth-card h1 { font-size: 28px; }
/* A code from a mail: its digits spaced, so eight of them read at a glance */
.code-input { font-family: var(--mono); font-size: 18px; letter-spacing: .16em; }
.code-input::placeholder { font-family: var(--font); font-size: 15px; letter-spacing: 0; }
/* An account with no e-mail address: one quiet line on Home and in Settings (web.ts noAddress) */
.no-address { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.no-address .octicon { flex-shrink: 0; }
/* Settings → Account: what the account has on the left, the form that changes it on the right */
.account-part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px 40px; align-items: start; }
.account-address { display: flex; align-items: center; gap: 8px; margin-top: 6px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .account-part { grid-template-columns: minmax(0, 1fr); } }
:where([data-theme="dark"]) .auth-art::before { background: linear-gradient(rgba(0, 0, 0, .1), transparent 40%, rgba(0, 0, 0, .3)), #1f2023 url(/static/brand/haze-dusk.jpg) 35% 50% / cover; filter: saturate(.7) brightness(.85); }
@media (max-width: 760px) { .auth { padding: 24px 16px; } .auth-box { grid-template-columns: minmax(0, 1fr); } .auth-art { min-height: 200px; } .auth-art p { font-size: 26px; } }

/* ---- a problem: header, tabs, route map, overview ------------------------------ */

/* The header band: a drafting grid that fades in from the top left and is densest behind the cover. */
.proj { padding-top: 20px; }
.proj, .dir-head { position: relative; background: var(--bg); }
.proj::before, .dir-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 140% at 88% 55%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 140% at 88% 55%, #000 25%, transparent 78%);
}
.proj > *, .dir-head > * { position: relative; }
.dir-head { background: var(--pool), var(--bg); } /* the light a directory's figure stands in */
.proj .wrap { gap: 10px; }
.proj-meta { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.proj-meta .avatar { display: block; }
.proj-meta a:not(.btn) { color: inherit; }
.proj-row { display: flex; align-items: center; gap: 32px; }
.proj-up { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--fg-2); font-size: 14px; }
.proj-up a { color: inherit; font-weight: 500; overflow-wrap: anywhere; }
.proj-title { font-size: 36px; line-height: 1.12; overflow-wrap: anywhere; }
.proj-title a { color: var(--fg); }
.proj-sub { margin-top: 12px; color: var(--fg-2); font-weight: 300; }
.proj-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--fg-2); font-size: 14px; }
.proj-people a { color: inherit; }
.proj-people .dot { color: var(--faint); }
/* who is at work on a problem: a live dot, the count, and a bar per five minutes */
.at-work { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.at-work b { color: var(--fg); font-variant-numeric: tabular-nums; }
/* the dot ripples only while someone is at work (.live); otherwise it rests */
.at-work:not(.live) .live-dot { background: var(--faint); box-shadow: none; }
.at-work:not(.live) .live-dot::after { content: none; }
.pulse rect { fill: var(--ok); opacity: .5; }
.pulse rect.none { fill: var(--line); opacity: 1; }
.pulse rect[data-now] { opacity: 1; }
.fact .pulse { display: block; width: 100%; height: 44px; margin-top: 10px; }
.pulse-axis { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 10px; color: var(--muted); font-size: 12px; }
/* the task board above the issue list: BOARD.md, which the site writes */
.taskboard .box-body { max-height: 640px; overflow: auto; }
/* a problem's Now (src/work.ts): who is here over six hours, then the open issues as a tree, sub-issues under their
   parent. The dot is how an issue stands: ink, held by a route; amber, its pull request awaits review; a ring, free;
   dashed, worked on through its sub-issues; the rippling green dot, someone who holds it is on the problem now. */
.now .pulse { display: block; width: 100%; height: 32px; }
.now .sec-head { margin-bottom: 0; }
.stands { display: flex; flex-direction: column; gap: 16px; }
.wt { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.wt .wt { margin: 4px 0 0 4px; padding-left: 18px; border-left: 1px solid var(--line); }
.wt-root { padding: 4px 16px; border: 1px solid var(--line); border-radius: 16px; }
.wt-node { padding: 9px 0; }
.wt-root > .wt-node + .wt-node { border-top: 1px solid var(--line-2); }
.wt .wt .wt-node { padding: 6px 0; }
.wt-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.wt-what { min-width: 0; }
.wt-dot { width: 10px; height: 10px; flex-shrink: 0; border: 2px solid var(--faint); border-radius: 50%; }
.wt-row .live-dot { margin-left: 1px; }
.wt-held { border-color: var(--fg); background: var(--fg); }
.wt-review { border-color: var(--wait-dot); background: var(--wait-dot); }
.wt-split { border-style: dashed; }
.wt-title { min-width: 0; color: var(--fg); font-weight: 500; overflow-wrap: anywhere; }
.wt-num, .wt-subs { color: var(--muted); font-size: 13px; }
.wt-subs { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; vertical-align: -2px; }
.wt-state { font-size: 13px; text-align: right; }
.wt-who { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0 20px; }
.wt-claim { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 13px; }
.wt-claim:hover { background: var(--hover); text-decoration: none; }
.wt-claim.here { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-bg); }
.wt-claim .who { color: var(--fg); }
.wt-loose { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* a short ranked list with a bar each (src/work.ts): contributors, models, clients; the leader's bar is accented */
.tops { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; }
.tops li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; font-size: 14px; }
.tops .bm-bar { grid-column: 1 / -1; }
.tops-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tops-name a { color: var(--fg); }
.tops b { font-weight: 400; font-variant-numeric: tabular-nums; }
.tops li:first-child .bm-bar > i { background: var(--viz-accent); }
.contrib-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; margin-bottom: 24px; }
.contrib-groups .fact { display: flex; flex-direction: column; gap: 8px; }
.board.contrib + .meta, .board-wrap + .meta { margin-top: 12px; }
.board.contrib .flow { flex-wrap: nowrap; white-space: nowrap; } /* a name beside its avatar, the column as wide as it needs */
.land-cell { width: 180px; }
.land-cell b { font-weight: 500; font-variant-numeric: tabular-nums; }
.land-cell .bm-bar { margin-top: 6px; }
.results-by { margin: 4px 0 8px; }
main > .wrap:has(> .results-by) + .wrap { padding-top: 8px; } /* the page under the Results subtabs starts close to them */
main > .wrap:has(> .results-by) + .bm > .bm-tools:first-child { padding-top: 0; }
.board-wrap + .standing-head { margin-top: 36px; }
.taskboard .wt-root { padding: 0; border: 0; }
section.now { margin-bottom: 40px; } /* the overview's At work, not an agent's current step (.journey li.now) */

/* ---- a problem's field (src/field.ts): the overview's first section. The pieces are the strip (.pieces), the
   timeline after Dagster's, the machines after Ray's node list. Data marks in the viz accent, a waiting session in
   brass, the rest hairlines: no cards. */
.fd-field { --fd-mark: var(--viz-accent); --fd-miss: var(--brass); --fd-bar: color-mix(in srgb, var(--viz-accent) 22%, transparent); }
.fd-field .sec-head { margin-bottom: 10px; }
.fd-time-head { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.fd-spans { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.fd-spans a { padding: 1px 10px; color: var(--muted); font: 12px/1.7 var(--mono); text-decoration: none; }
.fd-spans a + a { border-left: 1px solid var(--line); }
.fd-spans a[aria-current] { color: var(--fg); background: var(--surface-2); }
.fd-spans a:hover { color: var(--fg); }
.fd-scroll { margin-top: 6px; overflow-x: auto; direction: rtl; } /* scrolled, it opens at its right end: now */
.fd-scroll > svg { direction: ltr; }
.fd-time { display: block; width: 100%; min-width: 600px; height: auto; overflow: visible; }
.fd-grid, .fd-row { stroke: var(--line-2); }
.fd-base { stroke: var(--line); }
.fd-tick { fill: var(--muted); font: 10.5px var(--mono); }
.fd-now { stroke: var(--fg-2); stroke-dasharray: 2 3; }
.fd-route { fill: var(--fg); font: 12px var(--mono); }
.fd-who { fill: var(--muted); font-size: 11px; }
.fd-where { fill: var(--fg-2); font: 11.5px var(--mono); }
.fd-bar { fill: var(--fd-bar); stroke: var(--fd-mark); stroke-width: 1; }
.fd-bar.live { animation: fd-live 1.6s var(--shoal-ease) infinite alternate; }
@keyframes fd-live { to { fill-opacity: .35; } }
.fd-pass { fill: var(--fd-mark); }
.fd-fail { fill: var(--fg-2); }
.fd-err { fill: var(--bad); }
.fd-wait { fill: var(--viz-dim); }
.fd-reuse { fill: var(--bg); stroke: var(--fd-mark); stroke-width: 1.4; }
.fd-x { stroke: var(--bg); stroke-width: 1.4; stroke-linecap: round; }
.fd-time a:hover rect, .fd-time a:focus-visible rect { stroke: var(--fg); stroke-width: 1.5; }
.fd-time a:hover .fd-route { text-decoration: underline; }
.fd-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; font-size: 12px; }
.fd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fd-k { display: inline-block; box-sizing: border-box; width: 9px; height: 9px; border-radius: 2px; }
.fd-k.fd-pass { background: var(--fd-mark); }
.fd-k.fd-fail { background: var(--fg-2); }
.fd-k.fd-reuse { border: 1.4px solid var(--fd-mark); }
.fd-k.fd-b { width: 20px; height: 6px; border: 1px solid var(--fd-mark); border-radius: 3px; background: var(--fd-bar); }
.fd-where-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; }
.fd-m, .fd-a { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); }
.fd-m i, .fd-a i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.fd-m.mix i, .fd-a.working i { background: var(--fd-mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fd-mark) 18%, transparent); }
.fd-m.down i, .fd-a.ended i, .fd-a.none i { border: 1px solid var(--faint); background: transparent; }
.fd-a.waiting i { background: var(--fd-miss); }
.fd-m small, .fd-a small { color: var(--muted); font-size: 12px; }
.fd-a { text-decoration: none; }
.fd-a:hover { color: var(--fg); }
.fd-waiting { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .fd-bar.live { animation: none; } }
.fd-list { display: none; margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.fd-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.fd-list li > a { overflow: hidden; color: var(--fg); white-space: nowrap; text-overflow: ellipsis; }
.fd-list .meta { text-align: right; white-space: nowrap; }
.fd-marks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fd-marks a { display: inline-flex; padding: 2px 0; }
@media (max-width: 640px) {
  .fd-scroll { display: none; } /* on a phone, a row per route with its jobs in order, as GitHub's mobile check list */
  .fd-list { display: block; }
}
/* hot: among the problems with the most agent time in the last day */
.hot { display: inline-flex; align-items: center; gap: 3px; color: var(--wait); font-weight: 500; }
.prow-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.prow-stats .at-work { color: var(--ok); }
@media (max-width: 767px) {
  .contrib-groups { grid-template-columns: minmax(0, 1fr); }
  .wt-state { grid-column: 2 / -1; text-align: left; }
}
.avatar-stack { display: inline-flex; gap: 4px; margin-right: 4px; }
.avatar-stack > a { display: flex; }
.proj-cover { display: block; width: 280px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 1px 2px rgba(60, 64, 67, .06), 0 8px 24px rgba(60, 64, 67, .08); }
/* A problem's film or cover (src/problems.ts mediaOf): a 16:9 still on a hairline. A film's carries a play mark and
   opens a player over the page, its scrim the same in both schemes; the post that goes on from it sits under it.
   Its places: the header (a), a band above the field (b), the top of the side column (c). */
:root { --film-scrim: rgba(8, 12, 14, .9); --film-black: #000; --film-ink: #fff; --film-hover: rgba(255, 255, 255, .14); }
.pm { display: flex; flex-direction: column; gap: 10px; }
.pm-head { width: 320px; flex-shrink: 0; }
.pm-still { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--card-wash); color: var(--fg); }
.pm-still > :is(.cover, .chmap, .cover-file) { width: 100%; height: 100%; }
.pm-film:hover .cover-img { transform: scale(1.035); }
.pm-play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line); transition: translate var(--shoal-panel) var(--shoal-ease); }
.pm-play svg { margin-left: 2px; }
.pm-film:is(:hover, :focus-visible) .pm-play { translate: 2px -2px; }
.pm-post { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--fg-2); font-size: 14px; }
.pm-post:hover { color: var(--fg); }
.pm-post .octicon { transition: translate var(--shoal-panel) var(--shoal-ease); }
.pm-post:hover .octicon { translate: 2px 0; }
.pm-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: center; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); }
.pm-words { display: flex; flex-direction: column; gap: 14px; }
.pm-words p { color: var(--fg); font-size: 22px; font-weight: 300; line-height: 1.35; text-wrap: balance; }
.pm-dialog { width: min(1200px, calc(100% - 32px), calc((100dvh - 120px) * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.pm-dialog[open] { animation: rise var(--shoal-panel) var(--shoal-ease) both; }
.pm-dialog::backdrop { background: var(--film-scrim); }
.pm-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--film-black); }
.pm-close { position: absolute; right: -8px; bottom: 100%; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--film-ink); cursor: pointer; transition: background var(--shoal-fast) var(--shoal-ease); }
.pm-close:hover { background: var(--film-hover); }
@media (max-width: 767px) {
  .proj-row:has(.pm-on) { flex-wrap: wrap; }
  .pm-head { display: none; }
  .pm-head.pm-on { display: flex; width: 100%; } /* a film is the problem's introduction: it stays on a phone, under the title */
  .pm-band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
/* The header is a band and its tabs are folder tabs: the current one is cut from the page below, so the header and
   the content meet at one clear edge. */
.tabs-bar { position: relative; margin-top: 22px; }
.tabs-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.tabs.wrap { position: relative; z-index: 1; flex-direction: row; align-items: flex-end; gap: 2px; padding-top: 2px; overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 14px 14px 0 0; color: var(--fg-2); font-size: 15px; white-space: nowrap; }
.tab:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.tab[aria-current=page] { background: var(--bg); border-color: var(--line); color: var(--fg); font-weight: 500; }
.tab[aria-current=page]::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--fg); }
.tab-end { margin-left: auto; }
.subtabs a:first-child { margin-left: -12px; } /* the first label lines up with the heading */
/* on a phone the row wraps, so every tab shows: scrolled sideways with no scrollbar, the last ones were out of sight
   (Settings opened on Agents with Account off the screen). The tabs then stand at the page's edge, a gap apart. */
@media (max-width: 767px) {
  .subtabs { flex-wrap: wrap; gap: 0 16px; }
  .subtabs a, .subtabs a:first-child { margin-left: 0; padding-inline: 0; }
  .subtabs a[aria-current=page]::after { left: 0; right: 0; }
}


.track { --stops: 5; position: relative; display: grid; grid-template-columns: repeat(var(--stops), minmax(0, 1fr)); margin: 4px 0 0; padding: 0; list-style: none; }
.track::before, .track::after { content: ""; position: absolute; left: 6px; bottom: 5px; height: 2px; background: var(--line); }
.track::before { right: calc(100% / var(--stops) - 6px); }
.track::after { width: calc((100% - 100% / var(--stops)) * var(--reached)); background: var(--fg); }
.track-stop { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 8px 30px 0; }
.track-stop b { font-weight: 400; }
.track-stop span { color: var(--muted); font-size: 13px; }
.track-stop::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: 1; width: 12px; height: 12px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); }
.track-stop.on::after { border-color: var(--fg); background: var(--fg); }
.track-stop.last::after { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }

.readme { position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.readme-edit { align-self: flex-start; }
.facts .fact { display: flex; flex-direction: column; gap: 8px; }
.fact h3 { font-size: 18px; }
.fact p { color: var(--fg-2); font-size: 14px; font-weight: 300; }
.avatars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.more-count { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 11px; font-weight: 700; }
.person { gap: 10px; font-size: 14px; }
.related-list { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.related-card { display: flex; align-items: center; min-width: 0; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--fg); font-size: 13px; line-height: 1.45; }
.related-card:hover { border-color: var(--line); background: var(--hover); text-decoration: none; }
.related-card:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.related-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-unavailable { color: var(--muted); }
.related-secondary { min-width: 0; font-size: 13px; color: var(--fg-2); }
.related-secondary summary { cursor: pointer; list-style: disclosure-closed inside; }
.related-secondary[open] > summary { list-style-type: disclosure-open; }
.related-secondary summary::-webkit-details-marker { display: initial; }
.related-secondary summary .muted { margin-left: 4px; font-variant-numeric: tabular-nums; }
.related-secondary > .related-list { margin-top: 8px; }
.toc { display: flex; flex-direction: column; border-left: 2px solid var(--line-2); }
.toc a { padding: 5px 0 5px 14px; color: var(--fg-2); font-size: 14px; font-weight: 300; }
.toc a:hover { color: var(--fg); text-decoration: none; }
.toc .toc-sub { padding-left: 26px; }
.mini-events { display: flex; flex-direction: column; gap: 8px; color: var(--fg-2); font-size: 13px; line-height: 1.5; }
.join-card { gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.join-facts { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; }
.join-facts dt { color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.join-facts dd { margin: 1px 0 0; color: var(--fg); font-size: 13px; line-height: 1.45; }

/* ---- code (GitHub's inner form) --------------------------------------------- */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar-title { margin-left: 8px; font-size: 20px; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.branch-menu-name { max-width: 180px; }
.files .file-row { gap: 12px; min-height: 42px; padding: 9px 16px; }
.file-name { flex: 0 1 auto; max-width: 45%; color: var(--fg); }
.file-name:hover { color: var(--link); }
.dir { color: var(--branch-fg); }
.lastbar { font-size: 13px; }
.lastbar .avatar { display: block; }
.history { margin-left: 8px; color: var(--fg); }
.readme-box .box-head { background: var(--bg); }
.readme-body { padding: 24px 32px; }
.file-head { flex-wrap: wrap; }
.code-table { width: 100%; border-collapse: collapse; font: 12px/20px var(--mono); tab-size: 4; }
.code-table .num { width: 1%; min-width: 48px; padding: 0 12px; text-align: right; vertical-align: top; color: var(--faint); white-space: nowrap; user-select: none; }
.code-table .num a { color: inherit; }
.code-table .code { padding: 0 12px; vertical-align: top; white-space: pre; }
.blob-table tbody tr:first-child td { padding-top: 8px; }
.blob-table tbody tr:last-child td { padding-bottom: 8px; }
.blob-table tr:target td { background: var(--wait-bg); }
.blob-image { max-width: 100%; }
.commit-body { margin: 12px 0 0; color: var(--fg-2); font-size: 13px; white-space: pre-wrap; }
.file-editor { min-height: 420px; font: 13px/20px var(--mono); }
.day-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 400; }
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.merge-hint { font-size: 14px; }
.check-row { font-size: 13px; }

.diff-sum { margin: 0; }
.diff > summary { position: sticky; top: 64px; z-index: 2; }
.diff:not([open]) > summary { border-bottom: 0; border-radius: 15px; }
.diff:not([open]) .chevron { transform: rotate(-90deg); }
.diffstat { font: 12px var(--mono); }
.diff-table tr.add td { background: var(--add-bg); }
.diff-table tr.add .num { background: var(--add-num); }
.diff-table tr.del td { background: var(--del-bg); }
.diff-table tr.del .num { background: var(--del-num); }
.diff-table tr.hunk td { background: var(--hunk-bg); color: var(--muted); }
.marker { display: inline-block; width: 14px; color: var(--muted); user-select: none; }

.hljs-comment, .hljs-quote { color: var(--syn-comment); }
.hljs-keyword, .hljs-selector-tag, .hljs-type, .hljs-doctag, .hljs-template-tag { color: var(--syn-keyword); }
.hljs-string, .hljs-regexp { color: var(--syn-string); }
.hljs-number, .hljs-literal, .hljs-built_in, .hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-symbol, .hljs-attribute, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-id { color: var(--syn-constant); }
.hljs-title, .hljs-section { color: var(--syn-entity); }
.hljs-name, .hljs-tag, .hljs-selector-pseudo { color: var(--syn-tag); }
.hljs-params, .hljs-subst, .hljs-meta { color: var(--syn-meta); }
.hljs-addition { color: var(--ok); background: var(--add-bg); }
.hljs-deletion { color: var(--bad); background: var(--del-bg); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 600; }

.route-banner { border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.route-banner-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
.route-banner-main > .grow { flex: 1 1 260px; }
.route-banner-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--bg); color: var(--fg); }
.route-banner-title { font-size: 16px; font-weight: 500; }
.route-banner-runs { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 13px; }
.route-banner-runs .more { margin-left: auto; }
.run-chip { display: inline-flex; align-items: center; gap: 6px; }

/* ---- routes: the branch tree. One 20px column per level, lines drawn like `tree` output; the dot sits where
   children branch off. Header and rows share one grid; on phones the checks and actions move to a second line. */

.route-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) 64px 48px 150px; column-gap: 16px; align-items: center; }
@media (min-width: 944px) { .route-grid { grid-template-columns: auto minmax(0, 1fr) 190px 64px 112px 48px 150px; } }
.route-cols { color: var(--muted); font-size: 13px; font-weight: 500; }
.route-head { grid-column: 1 / 3; }
.route-row { padding: 12px 16px; border-top: 1px solid var(--line-2); }
.route-row:hover { background: var(--hover); }
.route-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.next { color: var(--fg-2); font-size: 13px; }
.rails { display: flex; align-self: stretch; margin: -12px -12px -12px 0; }
.rail { position: relative; width: 20px; flex-shrink: 0; }
.rail::before, .rail::after { content: ''; position: absolute; box-sizing: border-box; }
.rail-pass::before, .rail-tee::before { left: 9px; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.rail-tee::after { left: 9px; top: 22px; width: 17px; border-top: 2px solid var(--line); }
.rail-end::before { left: 9px; top: 0; width: 17px; height: 24px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 8px; }
.rail-down::before { left: 9px; top: 23px; bottom: 0; border-left: 2px solid var(--line); }
.rail-dot::after { left: 4px; top: 17px; width: 12px; height: 12px; border: 2.5px solid var(--rc, var(--muted)); border-radius: 50%; background: var(--bg); } /* the route's colour on the map */
.route-default .rail-dot::after { border-color: var(--fg); background: var(--fg); }
.route-dir { color: var(--fg); font: 12px/20px var(--mono); }
.col-check { text-align: center; white-space: nowrap; }
.col-act { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.col-del { width: 32px; flex-shrink: 0; }
.ab { display: flex; color: var(--muted); font-size: 11px; line-height: 14px; }
.ab-side { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ab-behind { align-items: flex-end; padding-right: 3px; border-right: 1px solid var(--line); }
.ab-ahead { padding-left: 3px; }
.ab-side i { display: block; height: 4px; min-width: 2px; border-radius: 0 2px 2px 0; background: var(--muted); }
.ab-behind i { border-radius: 2px 0 0 2px; opacity: .5; }

/* ---- results: Kaggle's leaderboard ------------------------------------------- */

.board-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); font-weight: 700; text-align: left; white-space: nowrap; }
.board td { padding: 14px 16px; border-top: 1px solid var(--line-2); font-weight: 300; vertical-align: middle; }
.board tbody tr:first-child td { border-top: 0; }
.board tbody tr:hover td { background: var(--hover); }
.board .rank { width: 56px; color: var(--fg-2); text-align: center; }
.board tr.adopted td:first-child { box-shadow: inset 6px 0 0 var(--ok); }
.board tr.pinned td { background: var(--cream); }
.route-cell { min-width: 220px; max-width: 400px; }
.route-cell .meta { margin-top: 4px; }
.result-cell { min-width: 200px; }
.result { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.result .status { margin-top: 2px; }
.num-cell { text-align: right; white-space: nowrap; }
.ops td { vertical-align: top; }
.cmd { display: block; padding: 6px 8px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.rules-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rules-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--fg-2); }
.rules-list .octicon { margin-top: 4px; color: var(--fg); }
.runner-fact { flex-wrap: wrap; font-size: 14px; }

/* ---- issues and pull requests: Kaggle's discussion list, GitHub's timeline ----- */

.topic { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line-2); }
.topic:hover { background: var(--hover); }
.topic-avatar { position: relative; display: flex; flex-shrink: 0; }
.topic-avatar .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--line); }
.topic-badge { position: absolute; right: -6px; bottom: -6px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.topic-badge .octicon { width: 14px; height: 14px; }
.topic-title { color: var(--fg); font-size: 16px; overflow-wrap: anywhere; }
.topic-by { margin-top: 3px; color: var(--fg-2); font-size: 12px; font-weight: 300; letter-spacing: .02em; }
.topic-by .who { color: var(--fg-2); font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.topic-by a { color: var(--fg-2); }
.topic-side { display: flex; align-items: center; gap: 16px; color: var(--fg-2); font-size: 13px; white-space: nowrap; }
.topic-side > span { display: inline-flex; align-items: center; gap: 4px; }
.list > .empty { border-bottom: 1px solid var(--line-2); }

.issue-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.issue-title { font-size: 32px; overflow-wrap: anywhere; }
.timeline { gap: 0; }
.tl { position: relative; display: flex; gap: 16px; padding: 8px 0; }
.tl-avatar { flex-shrink: 0; width: 40px; }
.tl-avatar .avatar { display: block; }
.tl-comment > .comment { flex: 1; min-width: 0; }
.tl-event { align-items: center; gap: 12px; margin-left: 56px; padding: 10px 0; font-size: 14px; }
.tl-event::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.tl-badge { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border: 2px solid var(--bg); border-radius: 50%; background: var(--surface-2); color: var(--fg-2); }
.b-open { background: var(--open-solid); color: #fff; }
.b-done { background: var(--done-solid); color: #fff; }
.b-closed { background: var(--closed-solid); color: #fff; }
.comment { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.comment-head { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); border-radius: 15px 15px 0 0; background: var(--surface); font-size: 14px; }
.comment-body { padding: 16px; }
.comment-foot { padding: 12px 16px; border-top: 1px solid var(--line-2); }
.review-body { margin-top: 8px; }
.tl-indent, .parent-ref { margin-left: 56px; }
.tl-indent { margin-top: 8px; }
.merge-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.merge > .merge-row:first-child { border-top: 0; }
.merge .check-row { padding-left: 52px; }
.merge-ok { border-color: var(--ok); }
.merge-done { border-color: var(--done); }
.merge-icon { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 12px; background: var(--open-solid); color: #fff; }
.merge-icon.merged { background: var(--done-solid); }
.merge-icon.closed { background: var(--closed-solid); }
.side-items { gap: 0; }
.side-block { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.side-block:first-child { padding-top: 0; }
/* a block written in both columns (an issue's prompt to copy): beside the main column it shows in the side column, and
   where the two stack (to 1023px, below) in the main one, before the side column's turn */
.side-block.if-stacked { display: none; }
@media (max-width: 818px) { .side-block.if-stacked { display: flex; } .side-block.if-beside { display: none; } }
.side-block h3 { color: var(--fg-2); font-size: 14px; font-weight: 500; }
.dev { font-size: 13px; }
.progress { width: 80px; height: 8px; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.progress span { display: block; height: 100%; background: var(--done-solid); }
.writer { display: flex; flex-direction: column; gap: 8px; }
.writer-tabs { display: flex; gap: 4px; }
.writer-tab { height: 32px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--fg-2); font-size: 13px; cursor: pointer; }
.writer-tab.on { border-color: var(--line); background: var(--bg); color: var(--fg); font-weight: 500; }
.writer-preview { min-height: 120px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }

/* ---- runs ---------------------------------------------------------------------- */

.run-row { gap: 14px; }
.run-summary { max-width: 280px; color: var(--fg-2); font: 13px var(--mono); }
.run-title { display: flex; align-items: center; gap: 10px; }
.run-state { font-weight: 500; }
.run-line { line-height: 1.8; }
/* a reading's steps (src/web.ts readingFacts): one line each, what came back behind it */
.look-step summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; cursor: pointer; list-style: none; }
.look-step summary::-webkit-details-marker { display: none; }
.look-step summary b { font: 500 12px var(--mono); }
.look-step code { overflow-wrap: anywhere; }
.look-step .run-log { margin-top: 6px; max-height: 240px; border-radius: 8px; }
.run-log { margin: 0; padding: 14px 18px; max-height: 560px; overflow: auto; border-radius: 0 0 15px 15px; background: var(--term-bg); color: var(--term-fg); font: 12px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.run-menu { width: 340px; }
.param { font-size: 13px; }
.param > span { width: 64px; flex-shrink: 0; }

/* ---- profiles: Kaggle's header card ------------------------------------------ */

.profile-who { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.profile-avatar { display: inline-flex; flex-shrink: 0; padding: 6px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--line); }
.profile-avatar:has(.avatar-agent) { border-radius: 30%; }
.profile-avatar .avatar { display: block; }
.ring-working { box-shadow: inset 0 0 0 4px var(--ok); }
.profile-kind { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 14px; }
.profile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-text h1 { font-size: 40px; overflow-wrap: anywhere; }
.profile-facts { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; color: var(--fg-2); font-size: 15px; font-weight: 300; list-style: none; }
.profile-facts li { display: flex; align-items: center; gap: 14px; }
.profile-facts a:not(.branch) { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.stat-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.stat-values { display: grid; grid-template-columns: 1fr 1fr; padding-top: 14px; border-top: 1px solid var(--line-2); }
.stat-values > div { display: flex; flex-direction: column; }
.stat-values > div + div { padding-left: 14px; border-left: 1px solid var(--line-2); }
.stat-n { font-size: 28px; line-height: 1.2; }

/* ---- settings and connections ------------------------------------------------- */

.agent-slot { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px dashed var(--outline); border-radius: 12px; color: var(--muted); }
.agent-slot.solid { border-style: solid; border-color: var(--line); background: var(--surface); }
/* something on its way (an agent or a runner connecting, a run writing its log): grains settle, one on two, grain by grain */
.connect-pulse { position: relative; width: 14px; height: 10px; flex-shrink: 0; background: radial-gradient(circle at 3px 7.5px, var(--wait-dot) 2px, transparent 2.5px), radial-gradient(circle at 11px 7.5px, var(--wait-dot) 2px, transparent 2.5px); }
.connect-pulse::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--wait-dot); animation: settle 1.6s var(--shoal-ease) infinite; }
@keyframes settle { 0% { transform: translateY(-7px); opacity: 0; } 30% { opacity: 1; } 55%, 82% { transform: translateY(1.5px); opacity: 1; } 100% { transform: translateY(1.5px); opacity: 0; } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 22px 44px; counter-increment: step; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 500; line-height: 28px; text-align: center; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 34px; bottom: 6px; border-left: 2px solid var(--line-2); }
.steps > li > b { display: block; font-weight: 500; line-height: 28px; }
.steps > li > p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
/* connecting an agent: a request answered in place, the wait for one, and how far each agent has come */
.waiting-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--outline); border-radius: 12px; color: var(--muted); font-size: 14px; }
.code-form { margin-top: 10px; }
.code-form .input { width: 240px; font-family: var(--mono); text-transform: uppercase; }
.code-form .input::placeholder { font-family: var(--font); text-transform: none; }
.connect-req { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); animation: rise var(--shoal-fast, 240ms) var(--shoal-ease) both; }
.connect-req .input, .ask-row .input { width: 200px; font-weight: 500; }
.connect-req .meta { overflow-wrap: anywhere; }
/* Approve comes first in the markup, so Enter in a name field approves (a form's default button is its first); Decline
   still shows on its left */
.answer > [value="deny"] { order: -1; }
@keyframes rise { from { opacity: 0; transform: translate(-6px, 6px); } to { opacity: 1; transform: none; } }
/* an agent: who and how far on the left; its buttons, then its connection's checks, on the right */
.agent-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(260px, 320px); align-items: start; gap: 12px 28px; }
.agent-main { min-width: 0; }
.agent-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.agent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.agent-side .health { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); }
@media (max-width: 960px) { /* too narrow for two columns: the buttons and the checks go under the rest */
  .agent-row { grid-template-columns: 44px minmax(0, 1fr); }
  .agent-side { grid-column: 2; }
  .agent-actions { justify-content: flex-start; }
}
.journey { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.journey li { display: inline-flex; align-items: center; gap: 6px; }
.journey li::before { content: ""; width: 10px; height: 10px; flex-shrink: 0; border: 1.5px solid var(--outline); border-radius: 50%; background: var(--bg); }
.journey li + li { margin-left: 6px; }
.journey li + li::after { content: ""; order: -1; width: 14px; height: 1.5px; margin-right: 0; background: var(--line); }
.journey li.done { color: var(--fg-2); }
.journey li.done::before { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 2px var(--bg); }
.journey li.now { color: var(--fg); font-weight: 500; }
.journey li.now::before { border-color: var(--fg); box-shadow: 0 0 0 3px var(--line-2); }
.next-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.next-hint .grow { flex: 1 1 240px; min-width: 0; }
.token-alt > p { flex: 1 1 260px; margin: 0; }
.come-back > summary { display: inline-flex; align-items: center; gap: 6px; }
.come-back[open] > summary { margin-bottom: 8px; }
.client-card > summary .chevron { transition: transform 240ms var(--shoal-ease); }
.client-card[open] > summary .chevron { transform: rotate(180deg); }
.client-card .box-body p { margin: 0; font-size: 14px; color: var(--fg-2); }
.client-marks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.client-marks span { gap: 6px; }
@media (max-width: 640px) {
  .connect-req .input, .code-form .input, .ask-row .input { width: 100%; }
  .connect-req > .grow { flex-basis: calc(100% - 52px); }
  .connect-req > .flow { margin-left: 52px; }
  .client-card > summary { flex-wrap: wrap; }
  .client-card > summary .meta { order: 3; flex-basis: 100%; }
}
.snippet { position: relative; }
.snippet-text { margin: 0; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
/* room for the Copy button beside the text; said for the pair, so a guide's page, which pads its own pre, keeps it */
.snippet > .snippet-text { padding: 14px 96px 14px 16px; }
.snippet-copy { position: absolute; top: 8px; right: 8px; }
/* on a phone the button sits above the text, which takes the box's width and shows whole */
@media (max-width: 640px) { .snippet > .snippet-text { max-height: none; padding: 50px 16px 14px; } }
.runner-dot { display: inline-block; width: 9px; height: 9px; flex-shrink: 0; vertical-align: 1px; border-radius: 50%; background: var(--faint); }
.runner-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.report { font-weight: 500; }
.report::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: 1px; border-radius: 50%; background: currentColor; }
.report-working { color: var(--ok); }
.report-stale { color: var(--muted); }
.report-stale { font-weight: 400; }
.report-stale::before { border: 1px solid currentColor; background: none; }
.event { align-items: flex-start; line-height: 1.55; }
.event-icon { margin-top: 2px; color: var(--muted); }
.event .meta { white-space: nowrap; }
.notice-new { background: var(--cream); box-shadow: inset 3px 0 0 var(--fg); }

/* ---- markdown ---------------------------------------------------------------- */

.markdown-body { color: var(--fg); font-size: 16px; line-height: 1.65; overflow-wrap: break-word; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
/* a link to a heading stops it below the sticky top bar, as .dshot does */
.markdown-body :is(h1, h2, h3, h4, h5, h6) { scroll-margin-top: 88px; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { margin: 1.6em 0 .6em; font-weight: 400; line-height: 1.3; }
.markdown-body h1 { font-size: 30px; }
.markdown-body h2 { font-size: 24px; }
.markdown-body h3 { font-size: 19px; font-weight: 500; }
.markdown-body h4 { font-size: 16px; font-weight: 500; }
.markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body blockquote, .markdown-body pre, .markdown-body table { margin: 0 0 1em; }
.markdown-body ul, .markdown-body ol { padding-left: 1.6em; }
.markdown-body li + li { margin-top: .3em; }
.markdown-body a { text-decoration: underline; text-underline-offset: 2px; }
.markdown-body blockquote { padding: .2em 1em; border-left: 4px solid var(--line); color: var(--fg-2); }
.markdown-body pre { padding: 14px 16px; overflow: auto; border-radius: 12px; background: var(--surface); font-size: 13px; line-height: 1.55; }
.markdown-body pre code { padding: 0; background: none; font-size: inherit; }
.markdown-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.markdown-body th, .markdown-body td { padding: 8px 14px; border: 1px solid var(--line); }
.markdown-body .front-matter { font: 12px/1.5 var(--mono); }
.markdown-body .front-matter th, .markdown-body .front-matter td { padding: 4px 10px; }
.markdown-body .front-matter th { color: var(--muted); font-weight: 400; text-align: left; }
.markdown-body th { background: var(--surface); font-weight: 500; }
.markdown-body hr { margin: 1.5em 0; border: 0; border-top: 1px solid var(--line); }
.markdown-body img { border-radius: 8px; }
.markdown-body .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
@media (max-width: 599px) { .markdown-body .katex-display > .katex { font-size: 1.05em; } } /* a line of display math fits more often; a longer one still scrolls in its own box */

/* ---- narrow screens ------------------------------------------------------------ */

@media (max-width: 943px) { .hide-md { display: none; } }
@media (max-width: 818px) {
  .side { transform: translateX(-100%); transition: transform .2s ease; border-right: 0; }
  .nav-toggle:checked ~ .side { transform: none; box-shadow: var(--shadow); } /* only while open: off screen its shadow would fall on the page's left edge */
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .32); }
  .main { margin-left: 0; }
  .topbar-in { gap: 8px; padding-inline: 24px; }
  .topbar .burger, .side .burger, .brand-top { display: inline-flex; }
  .wrap { padding-inline: 24px; }
  .foot { width: calc(100% - 48px); }
  .cols, .wrap.cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767px) {
  .hide-sm { display: none; }
  .proj-cover { display: none; }
  .proj-title, .issue-title { font-size: 28px; }
  .tl-avatar { display: none; }
  .tl-event, .tl-indent, .parent-ref { margin-left: 0; }
  .readme-body { padding: 16px; }
  .route-cols { display: none; }
  .route-grid { grid-template-columns: auto minmax(0, 1fr) auto auto auto; row-gap: 8px; column-gap: 12px; }
  .route-row > .rails { grid-row: span 2; margin-right: -8px; }
  .route-row > .route-body { grid-column: 2 / -1; }
  .route-row > .col-check { grid-area: 2 / 3; }
  .route-row > .col-pr { grid-area: 2 / 4; }
  .route-row > .col-act { grid-area: 2 / 5; }
  .profile-who { flex-direction: row; }
  .profile-avatar .avatar { width: 96px; height: 96px; }
  .topic-side { gap: 10px; }
  .kv { flex-wrap: wrap; row-gap: 2px; }
  .kv .k { width: 100%; }
  .track-stop b { font-size: 14px; }
  .track-stop span { font-size: 12px; }
}
@media (max-width: 599px) {
  .wrap, .topbar-in { padding-inline: 16px; }
  .dir-card { flex-wrap: wrap; align-items: flex-start; padding: 14px 16px; }
  .dir-body { flex: 1 1 220px; }
  .dir-card .spark, .dir-card .strip { margin-left: 70px; }
  .dir-text h1 { font-size: 30px; }
  .foot { width: calc(100% - 32px); }
  .topbar .btn-quiet { display: none; }
  .page-head h1 { font-size: 30px; }
  .card { padding: 20px; }
  .auth-card { padding: 24px; }
  .topic { gap: 12px; padding: 14px 4px; }
  .topic-side > span:not(:last-child) { display: none; }
  .panel, .picker, .run-menu { width: min(340px, calc(100vw / var(--zoom, 1) - 32px)); }
  .track { grid-template-columns: 1fr; gap: 12px; }
  .track::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .track::after { left: 5px; top: 6px; bottom: auto; width: 2px; height: calc((100% - 12px) * var(--reached)); }
  .track-stop { flex-direction: row; align-items: baseline; gap: 8px; padding: 0 0 0 26px; }
  .track-stop::after { top: 5px; bottom: auto; }
  .board thead { display: none; }
  .board, .board tbody, .board tr, .board td { display: block; }
  .board tr { position: relative; padding: 12px 12px 12px 44px; border-top: 1px solid var(--line-2); }
  .board tbody tr:first-child { border-top: 0; }
  .board td, .board tbody tr:first-child td { padding: 2px 0; border: 0; }
  .board td.hide-sm { display: none; }
  .board.ops tr { padding-left: 12px; }
  .board .rank { position: absolute; left: 0; top: 14px; width: 40px; }
  .board tr.adopted { box-shadow: inset 5px 0 0 var(--ok); }
  .board tr.adopted td:first-child { box-shadow: none; }
  .board tr.pinned { background: var(--cream); }
  .board .num-cell { text-align: left; }
  .route-cell, .result-cell { min-width: 0; max-width: none; }
  .route-cell .truncate { white-space: normal; }
}

/* ---- landing: the signed-out home (src/landing.ts), its logic after Lumno's product page ----------------------
   A clear top bar that comes back as a pill, title pairs in Outfit, lit panels and windows, a band with the summit
   model, then chapters in a 1360px column. The isometric figures read the anatomy tokens below, so they follow the theme. */

@font-face { font-family: 'Google Sans Code'; font-style: normal; font-display: swap; font-weight: 300; src: url(/static/fonts/google-sans-code-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Google Sans Code'; font-style: normal; font-display: swap; font-weight: 400; src: url(/static/fonts/google-sans-code-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Outfit, the brand's display face, sets the landing's headings (the wordmark itself is drawn, not set) */
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 200; src: url(/static/fonts/outfit-latin-200-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 300; src: url(/static/fonts/outfit-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 400; src: url(/static/fonts/outfit-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* anatomy kit (scripts/figures/iso-kit.ts): tokens on :root so any inlined figure follows the theme; a container
   that changes the paper (the cream band) overrides them on its own .iso */
:root {
  --anatomy-paper: var(--bg); --anatomy-face: #fff; --anatomy-top: #fff;
  --anatomy-shade-0: #dedbd4; --anatomy-shade-1: #e7e4de; --anatomy-shade-2: #efede8; --anatomy-shade-3: #f6f5f2;
  --anatomy-lit-top: #fff; --anatomy-lit-shade: #efede8;
  --anatomy-hi: #26262a; --anatomy-mid: #8a8a8f; --anatomy-lo: #b4b4b8; --anatomy-faint: #d4d4d6; --anatomy-lit: #000;
  --anatomy-halo: #8a8a80; --anatomy-halo-opacity: .32; --anatomy-dot: #3a3a3e; --anatomy-red: #d93025; --anatomy-blue: #1a73e8;
  --anatomy-weight: .6px; --anatomy-ease: cubic-bezier(.32, .72, 0, 1); --anatomy-mono: 'Google Sans Code', var(--mono);
}
.ln-band .iso, .hub-art.iso, .cover {
  --anatomy-paper: var(--cream); --anatomy-face: #fffdf8; --anatomy-top: #fffdf8; --anatomy-lit-top: #fffdf8;
  --anatomy-shade-0: #e6dfcf; --anatomy-shade-1: #ece6d9; --anatomy-shade-2: #f2ede3; --anatomy-shade-3: #f8f4ec; --anatomy-lit-shade: #f2ede3;
  --anatomy-lo: #bdb5a6; --anatomy-faint: #ddd5c6; --anatomy-mid: #8f877a; --anatomy-halo: #8c7f63;
}
:root:where([data-theme="dark"]) {
    --anatomy-face: #2a2c30; --anatomy-top: #2c2e32; --anatomy-lit-top: #34363b; --anatomy-lit-shade: #2a2c30;
    --anatomy-shade-0: #1c1d20; --anatomy-shade-1: #202124; --anatomy-shade-2: #232528; --anatomy-shade-3: #27292c;
    --anatomy-hi: #d4d4d4; --anatomy-mid: #75777b; --anatomy-lo: #4a4c50; --anatomy-faint: #34363a; --anatomy-lit: #fff;
    --anatomy-halo: #000; --anatomy-halo-opacity: .7; --anatomy-dot: #e6e6e6; --anatomy-red: #f28b82; --anatomy-blue: #8ab4f8;
  }
  :where([data-theme="dark"]) .ln-band .iso, :where([data-theme="dark"]) .hub-art.iso, :where([data-theme="dark"]) .cover {
    --anatomy-face: #35302a; --anatomy-top: #38332c; --anatomy-lit-top: #403a32;
    --anatomy-shade-0: #25221d; --anatomy-shade-1: #29261f; --anatomy-shade-2: #2d2a24; --anatomy-shade-3: #312d27; --anatomy-lit-shade: #35302a;
    --anatomy-hi: #e5dfd4; --anatomy-mid: #8a8274; --anatomy-lo: #5c564b; --anatomy-faint: #433e36; --anatomy-halo: #000;
  }
.iso-svg { display: block; width: 100%; height: auto; overflow: visible; }
.iso-svg path, .iso-svg circle { vector-effect: non-scaling-stroke; }
.iso-fill { fill: var(--anatomy-paper); stroke: none; }
.iso-solid[data-lit] > .iso-fill { fill: var(--anatomy-face); }
.iso-shade, .iso-top { stroke: none; }
.iso-shade[data-shade="0"] { fill: var(--anatomy-shade-0); }
.iso-shade[data-shade="1"] { fill: var(--anatomy-shade-1); }
.iso-shade[data-shade="2"] { fill: var(--anatomy-shade-2); }
.iso-shade[data-shade="3"] { fill: var(--anatomy-shade-3); }
.iso-top { fill: var(--anatomy-top); }
.iso-solid[data-lit] > .iso-top { fill: var(--anatomy-lit-top); }
/* A figure sent as its own file (web.ts figureArt) rather than in the page: the light drawing, and the dark one where
   the page is dark. The two addresses come from the element, so each carries its own modification time. */
.fig-art { display: block; width: 100%; aspect-ratio: var(--fig-ratio, 1); background: var(--fig-light) center / contain no-repeat; }
:where([data-theme="dark"]) .fig-art { background-image: var(--fig-dark); }
.iso-solid[data-lit] > .iso-shade { fill: var(--anatomy-lit-shade); }
.iso-solid[data-lit] > .iso-edge { stroke: var(--anatomy-lit); }
.iso-halo { fill: var(--anatomy-halo); stroke: none; filter: blur(9px); opacity: var(--anatomy-halo-opacity); transform: translateY(3px); }
.iso-line { fill: none; stroke: var(--anatomy-lo); stroke-width: var(--anatomy-weight); stroke-linecap: round; stroke-linejoin: round; }
.iso-line[data-tone="hi"] { stroke: var(--anatomy-hi); }
.iso-line[data-tone="mid"] { stroke: var(--anatomy-mid); }
.iso-line[data-tone="lo"] { stroke: var(--anatomy-lo); }
.iso-line[data-tone="faint"] { stroke: var(--anatomy-faint); }
.iso-line[data-tone="lit"] { stroke: var(--anatomy-lit); }
.iso-line[data-flow] { stroke-dasharray: 2 6; animation: iso-flow 1600ms linear infinite; }
.iso-line[data-tone="red"] { stroke: var(--anatomy-red); } /* colour only where colour is the subject: a Ramsey colouring */
.iso-line[data-tone="blue"] { stroke: var(--anatomy-blue); }
.motif-thread { stroke-width: .7px; }
.motif-key { stroke-width: 1.5px; }
.motif-strand { stroke-width: 1.3px; }
.motif-orbit { stroke-width: 1px; }
/* a problem's cover (src/cover.ts): its subject alone, in one hue, its field's. A two-tone gradient of the hue with a soft
   light behind the subject; white surfaces shaded in the hue; lines in its ink; the parts that carry the problem (the
   smallest triangle, a one-colour triangle's threads, the theorem, a checked tile, a settled part) in the hue itself. */
.cover {
  --hue: var(--field, var(--f-none));
  --anatomy-paper: #fff; --anatomy-face: #fff; --anatomy-top: #fff;
  --anatomy-shade-3: color-mix(in srgb, var(--hue) 5%, #f8f9fa); --anatomy-shade-2: color-mix(in srgb, var(--hue) 9%, #f1f3f4);
  --anatomy-shade-1: color-mix(in srgb, var(--hue) 14%, #e8eaed); --anatomy-shade-0: color-mix(in srgb, var(--hue) 22%, #dadce0);
  --anatomy-hi: color-mix(in srgb, var(--hue) 40%, #202124); --anatomy-mid: color-mix(in srgb, var(--hue) 35%, #80868b);
  --anatomy-lo: color-mix(in srgb, var(--hue) 25%, #bdc1c6); --anatomy-faint: color-mix(in srgb, var(--hue) 15%, #dadce0);
  --anatomy-lit: var(--hue); --anatomy-red: var(--hue); --anatomy-blue: color-mix(in srgb, var(--hue) 28%, #bdc1c6);
  --anatomy-lit-top: color-mix(in srgb, var(--hue) 38%, #fff); --anatomy-lit-shade: color-mix(in srgb, var(--hue) 58%, #fff);
  --cv-shadow: color-mix(in srgb, var(--hue) 50%, #202124);
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: radial-gradient(52% 62% at 50% 46%, rgba(255, 255, 255, .85), transparent 72%),
    linear-gradient(155deg, color-mix(in srgb, var(--hue) 22%, #fff), color-mix(in srgb, var(--hue) 7%, #fff) 72%);
}
:where([data-theme="dark"]) .cover {
    --anatomy-paper: #2c2d31; --anatomy-face: #303136; --anatomy-top: #35363b;
    --anatomy-shade-3: color-mix(in srgb, var(--hue) 6%, #2a2b2f); --anatomy-shade-2: color-mix(in srgb, var(--hue) 8%, #26272b);
    --anatomy-shade-1: color-mix(in srgb, var(--hue) 10%, #222327); --anatomy-shade-0: color-mix(in srgb, var(--hue) 12%, #1c1d20);
    --anatomy-hi: color-mix(in srgb, var(--hue) 30%, #e8eaed); --anatomy-mid: color-mix(in srgb, var(--hue) 35%, #9aa0a6);
    --anatomy-lo: color-mix(in srgb, var(--hue) 30%, #5f6368); --anatomy-faint: color-mix(in srgb, var(--hue) 22%, #3c4043);
    --anatomy-blue: color-mix(in srgb, var(--hue) 30%, #5f6368);
    --anatomy-lit-top: color-mix(in srgb, var(--hue) 45%, #303136); --anatomy-lit-shade: color-mix(in srgb, var(--hue) 30%, #303136);
    --cv-shadow: #000;
    background: radial-gradient(52% 62% at 50% 46%, rgba(255, 255, 255, .05), transparent 72%),
      linear-gradient(155deg, color-mix(in srgb, var(--hue) 26%, #1f2023), color-mix(in srgb, var(--hue) 8%, #1f2023) 72%);
  }
.cover .cover-art { width: 100%; height: 100%; }
.cv-on { --anatomy-top: var(--anatomy-lit-top); --anatomy-shade-3: var(--anatomy-lit-shade); --anatomy-shade-2: var(--anatomy-lit-shade); }
.iso-wire-end { fill: var(--anatomy-paper); stroke: var(--anatomy-lo); stroke-width: var(--anatomy-weight); }
.iso-wire[data-tone="hi"] .iso-wire-end { stroke: var(--anatomy-hi); }
.iso-wire[data-tone="mid"] .iso-wire-end { stroke: var(--anatomy-mid); }
.iso-dots circle { fill: var(--anatomy-dot); stroke: none; opacity: .32; }
.iso-dots[data-tone="hi"] circle { opacity: .85; }
.iso-dots[data-tone="mid"] circle { opacity: .45; }
.iso-dots[data-tone="lo"] circle { opacity: .22; }
.iso-face-text { fill: var(--anatomy-mid); font-family: var(--anatomy-mono); letter-spacing: .04em; }
.iso-face-text[data-tone="hi"] { fill: var(--anatomy-hi); }
@keyframes iso-flow { to { stroke-dashoffset: -32; } }

/* The landing's surfaces, after Lumno's: every hairline and shadow is one ink (deep water, 14 44 51) at different
   strengths; lit panels are paper with a bloom from the top; windows inside them are white and concentric with the
   panel (28px less its 8px inset). */
.ln, .guest {
  --ln-edge: 14, 44, 51; --ln-hair: 14, 44, 51; /* edge: shadows, one ink; hair: hairlines, which turn light in dark mode */
  --ln-ring: inset 0 0 0 1px rgba(var(--ln-edge), .08);
  --ln-control: 0 0 0 1px rgba(var(--ln-edge), .12), 0 1px 2px rgba(var(--ln-edge), .05);
  --ln-lift: 0 1px 1px rgba(var(--ln-edge), .06), 0 2px 5px -1px rgba(var(--ln-edge), .05), 0 10px 18px -10px rgba(var(--ln-edge), .12);
  --ln-lift-hover: 0 1px 2px rgba(var(--ln-edge), .06), 0 3px 8px -2px rgba(var(--ln-edge), .06), 0 16px 26px -14px rgba(var(--ln-edge), .18);
  --ln-paper: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .85), transparent 62%), linear-gradient(180deg, #f4f6f4, #eceeee);
  --ln-track: #eceeed; --ln-glass: color-mix(in srgb, var(--bg) 84%, transparent); --ln-rim: rgba(255, 255, 255, .9);
  /* the accent line of a title pair, drawn in the depth scale: lagoon down to clear water */
  --ln-accent: linear-gradient(180deg, #03586f 0%, #23708a 55%, #4a8a9c 100%);
  --ln-veil: rgba(255, 255, 255, .55);
  --ln-sec: clamp(96px, 11vw, 156px); --ln-gap: clamp(40px, 5vw, 64px);
}
.ln { min-height: calc(100vh / var(--zoom, 1)); display: flex; flex-direction: column; font-weight: 300; }
:where([data-theme="dark"]) .ln, :where([data-theme="dark"]) .guest {
    --ln-hair: 255, 255, 255;
    --ln-ring: inset 0 0 0 1px rgba(255, 255, 255, .07);
    --ln-control: 0 0 0 1px rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .3);
    --ln-lift: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 18px -10px rgba(0, 0, 0, .5);
    --ln-lift-hover: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 26px -14px rgba(0, 0, 0, .6);
    --ln-paper: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .04), transparent 62%), linear-gradient(180deg, #27292c, #222326);
    --ln-track: #2c2e31; --ln-rim: rgba(255, 255, 255, .05);
    --ln-accent: linear-gradient(180deg, #b6dbe3 0%, #6fb9c9 60%, #57a2b2 100%);
    --ln-veil: rgba(31, 32, 35, .5);
  }
.ln > main { flex: 1; }
.ln-in { width: 100%; max-width: 1456px; margin-inline: auto; padding-inline: 48px; }
.ln-mono { font-family: var(--code); font-weight: 300; }
.ln-link { color: var(--fg); font-size: 14px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
/* a link onward: its arrow leans toward the upper right on hover, the school's heading */
.ln-more { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.ln-more:hover { text-decoration: none; }
.ln-more .octicon { transition: translate var(--shoal-panel) var(--shoal-ease); }
.ln-more:hover .octicon { translate: 3px -2px; }
.ln .btn-lg { height: 48px; padding: 0 24px; gap: 10px; font-size: 15px; }
.ln-btn2, .ln-btn2:hover { border-color: transparent; background: var(--bg); box-shadow: var(--ln-control); }
.ln-btn2:hover { box-shadow: 0 0 0 1px rgba(var(--ln-hair), .24), 0 1px 2px rgba(var(--ln-edge), .06); }
.ln-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ln-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bg); box-shadow: var(--ln-control); color: var(--fg); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ln-chip:hover { text-decoration: none; box-shadow: 0 0 0 1px rgba(var(--ln-hair), .24), 0 1px 2px rgba(var(--ln-edge), .06); }
.ln-chip .octicon { color: var(--muted); }
.ln-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }

/* A title pair: the lead line in Outfit 300, the accent on its own line in Outfit 200 and the depth scale. Chinese is set
   without italics or tracking, by size and weight (manual, chapter 05). */
.tp { margin: 0; color: var(--fg); font: 300 clamp(38px, 4.2vw, 58px)/1.06 'Outfit', var(--font); letter-spacing: -.02em; text-wrap: balance; }
.tp > span { display: block; }
.tp-accent { margin-bottom: -.12em; padding-bottom: .12em; font-weight: 200; background: var(--ln-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
:lang(zh) .tp { line-height: 1.22; letter-spacing: 0; }
.ln-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--fg-2); font-size: 14.5px; font-weight: 500; }
.ln-eyebrow .octicon { color: var(--muted); }
.ln-num { color: var(--muted); font: 400 13px var(--code); letter-spacing: .04em; }
.ln-lead { max-width: 680px; margin: 22px 0 0; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; text-wrap: balance; }

/* The top bar rests clear over the opening and scrolls away with it; once the opening has left the screen it drops
   back in as a glass pill (app.js sets .pill on .ln). Sign up is on it from the first screen. Where the links have no
   room (860px and under) a menu holds them, and the language with them. */
.ln-nav {
  position: absolute; top: 18px; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  width: min(calc(100% - 48px), 1360px); min-height: 56px; margin-inline: auto; padding: 6px 8px 6px 14px; border: 1px solid transparent; border-radius: 999px;
}
.ln.pill .ln-nav {
  position: fixed; top: 8px; width: min(calc(100% - 24px), 960px); border-color: rgba(var(--ln-hair), .1); background: var(--ln-glass);
  box-shadow: 0 10px 32px rgba(var(--ln-edge), .08), inset 0 1px 0 var(--ln-rim); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: ln-drop var(--shoal-panel) var(--shoal-ease) both;
}
@keyframes ln-drop { from { opacity: 0; transform: translate(-12px, 10px); filter: blur(8px); } }
.ln-brand { display: flex; align-items: center; justify-self: start; color: var(--fg); }
.ln-brand:hover { text-decoration: none; }
.ln-brand .logo { display: block; height: 28px; width: auto; color: var(--brand-ink); }
.ln.pill .ln-brand .logo { height: 24px; }
/* The landing is the site's splash: its lockup swims in once, each fish along its own heading, the front one first,
   then the word (manual, chapter 08). Everywhere else the logo stays still. */
.ln-brand .fish { animation: swim-in var(--shoal-scene) var(--shoal-ease) backwards; animation-delay: calc(var(--i) * 60ms); }
.ln-brand .word { animation: word-in var(--shoal-panel) var(--shoal-ease) var(--shoal-scene) backwards; }
@keyframes swim-in { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } 45% { opacity: 1; } }
@keyframes word-in { from { transform: translateX(-60px); opacity: 0; } }
.ln-links { display: flex; gap: 4px; }
.ln-links a { padding: 8px 12px; border-radius: 999px; color: var(--fg-2); font-size: 14.5px; font-weight: 400; }
.ln-links a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.ln-account { display: flex; align-items: center; justify-self: end; gap: 6px; }
.ln-round { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); box-shadow: var(--ln-control); color: var(--fg); }
.ln-signin { padding: 8px 12px; border-radius: 999px; color: var(--fg); font-size: 14.5px; font-weight: 500; }
.ln-signin:hover, .ln-round:hover { background: var(--hover); text-decoration: none; }
.ln-cta { height: 40px; }
.ln-menu { display: none; }
.ln-menu .menu { min-width: 200px; }

/* the opening: one claim, two ways in, then the band */
.ln-hero { display: flex; flex-direction: column; align-items: center; padding: 138px 24px 0; text-align: center; }
.ln-hero .tp { font-size: clamp(44px, 5.2vw, 74px); }
.ln-hero .ln-chip { margin-bottom: 26px; }
.ln-sub { max-width: 640px; margin: 24px 0 32px; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; text-wrap: balance; }
.ln-hero > * { animation: ln-rise var(--shoal-scene) var(--shoal-ease) backwards; }
.ln-hero > :nth-child(2) { animation-delay: 60ms; }
.ln-hero > :nth-child(3) { animation-delay: 120ms; }
.ln-hero > :nth-child(4) { animation-delay: 180ms; }
.ln-agents { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; } /* the one line an agent given only the address needs */
.ln-agents a { color: var(--fg-2); font: 12.5px var(--mono); }
.ln-agents a.ln-way { font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; } /* the way in for whoever comes with a question (/partner) */
@keyframes ln-rise { from { opacity: 0; translate: -10px 14px; } }
/* The band: the shoal in its own paper, its water fading out into the brand's dawn light, which fades into the page
   above and below instead of ending at an edge. A school swims through the light behind it (app.js). */
.ln-band { position: relative; height: 300px; margin-top: 56px; overflow-x: clip; }
.ln-water { position: absolute; inset: -70px 0 -10px; background: #d9dccb url(/static/brand/haze-dawn.jpg) center 48% / cover;
  -webkit-mask-image: linear-gradient(transparent, #000 34%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 34%, #000 78%, transparent); }
.ln-school { display: block; width: 100%; height: 100%; }
.ln-band-art { position: absolute; z-index: 1; left: 50%; bottom: -4px; width: 1100px; transform: translateX(-50%); pointer-events: none; }
.ln-ticker { position: absolute; z-index: 2; right: max(48px, calc((100% - 1360px) / 2)); bottom: 24px; width: 340px; height: 100px; }
.ln-ticker-item {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 22px;
  border-radius: 20px; color: var(--fg); opacity: 0; box-shadow: var(--ln-ring), var(--ln-lift);
  background: color-mix(in srgb, var(--bg) 76%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: ln-tick calc(var(--n) * 4s) infinite; animation-delay: calc(var(--i) * 4s - .4s);
}
.ln-ticker-item:hover { text-decoration: none; }
.ln-ticker-item:first-child { opacity: 1; }
/* news comes in from the lower left and leaves to the upper right, along the school's heading */
@keyframes ln-tick { 0% { opacity: 0; transform: translate(-14px, 6px); } 4%, 21% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translate(14px, -6px); } }
.ln-ticker-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--fg-2); }
.ln-ticker-text { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.ln-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--bg); box-shadow: var(--ln-control); color: var(--fg); font: 500 12px var(--font); white-space: nowrap; }
.ln-strip { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 44px 24px 0; color: var(--fg-2); font-size: 15px; text-align: center; }
.ln-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: var(--muted); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.ln-marks span, .client-marks span { display: inline-flex; align-items: center; gap: 8px; }
.ln-marks img { filter: grayscale(1); opacity: .7; }

/* chapters and their parts */
.ln-sec { display: flex; flex-direction: column; padding-top: var(--ln-sec); }
.ln-ch-head { display: flex; flex-direction: column; align-items: center; max-width: 780px; margin: 0 auto var(--ln-gap); text-align: center; }
.ln-ch-head.start { align-items: flex-start; margin-inline: 0; text-align: left; }
.ln-ch-head:has(+ .ln-acts) { margin-bottom: 30px; }
.ln-ch-head .ln-acts { margin-top: 30px; }
.ln-acts-c { margin-bottom: 40px; }
.ln-center { align-items: center; text-align: center; }
.ln-panel { position: relative; padding: 8px; border-radius: 28px; background: var(--ln-paper); box-shadow: var(--ln-ring), var(--ln-lift); }
.ln-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* A segmented control: a paper track, the chosen item a white pill on it. Radios do the choosing, no script. */
.ln-seg { display: inline-flex; gap: 2px; max-width: 100%; padding: 4px; border-radius: 12px; background: var(--ln-track); overflow-x: auto; scrollbar-width: none; }
.ln-seg label { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 9px; color: var(--fg-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background var(--shoal-fast) var(--shoal-ease), color var(--shoal-fast) var(--shoal-ease); }
.ln-seg label:hover { color: var(--fg); }
.ln-tab-input, .ln-spot-input { position: absolute; opacity: 0; pointer-events: none; }
#ln-tab-0:checked ~ .ln-seg [for=ln-tab-0], #ln-tab-1:checked ~ .ln-seg [for=ln-tab-1], #ln-tab-2:checked ~ .ln-seg [for=ln-tab-2],
#ln-spot-0:checked ~ .ln-seg [for=ln-spot-0], #ln-spot-1:checked ~ .ln-seg [for=ln-spot-1], #ln-spot-2:checked ~ .ln-seg [for=ln-spot-2], #ln-spot-3:checked ~ .ln-seg [for=ln-spot-3] {
  background: var(--bg); box-shadow: 0 1px 2px rgba(var(--ln-edge), .08), 0 0 0 1px rgba(var(--ln-hair), .06); color: var(--fg); }
#ln-tab-0:focus-visible ~ .ln-seg [for=ln-tab-0], #ln-tab-1:focus-visible ~ .ln-seg [for=ln-tab-1], #ln-tab-2:focus-visible ~ .ln-seg [for=ln-tab-2] { outline: 2px solid var(--focus); outline-offset: 1px; }
.ln-tab-labels { justify-self: start; margin-bottom: 20px; }

/* Where each problem stands and the step each one asks for, side by side: two paper panels, each a short claim with its
   reason in grey over a white window that shows it. On the left a row per problem, its routes as chips in the order of
   their standing and the one number its checks have established; on the right a list of next steps, each a link. */
.ln-duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; gap: 16px; margin-top: 16px; }
.ln-duo > .ln-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; padding: 8px; }
.ln-duo-head { grid-area: 1 / 1; padding: 18px 16px 16px; }
.ln-duo-head h3 { color: var(--fg); font: 400 22px/1.25 'Outfit', var(--font); letter-spacing: -.01em; }
.ln-duo-head p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ln-duo-l > .ln-seg { grid-area: 1 / 2; align-self: center; justify-self: end; margin: 0 8px 0 0; }
.ln-duo-win { grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 0; list-style: none; border-radius: 20px; background: var(--bg); box-shadow: var(--ln-ring); overflow: hidden; }
.ln-duo-foot { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: flex-end; padding: 12px 12px 6px; }
.ln-pos-list { display: flex; flex-direction: column; }
.ln-pos { display: none; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; border-bottom: 1px solid var(--line-2); }
#ln-tab-0:checked ~ .ln-pos-list .ln-pos:not([data-t0="-1"]) { display: grid; order: var(--o0); }
#ln-tab-1:checked ~ .ln-pos-list .ln-pos:not([data-t1="-1"]) { display: grid; order: var(--o1); }
#ln-tab-2:checked ~ .ln-pos-list .ln-pos:not([data-t2="-1"]) { display: grid; order: var(--o2); }
.ln-pos-art { display: block; height: 56px; border-radius: 12px; box-shadow: var(--ln-ring); overflow: hidden; }
.ln-pos-id { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.ln-pos-id h4 { color: var(--fg); font: 400 17px/1.3 'Outfit', var(--font); }
.ln-bench-top:hover { text-decoration: none; }
.ln-bench-top:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.ln-kick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.ln-pos-routes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.ln-route { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(var(--ln-hair), .08); color: var(--fg-2); font: 400 12px var(--code); white-space: nowrap; }
.ln-route:hover { color: var(--fg); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(var(--ln-hair), .2); }
.ln-route i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ln-route.st-adopted i { background: var(--brass); }
.ln-route.st-ok i { background: var(--ok); }
.ln-route.st-wait i { background: var(--wait); }
.ln-route.st-bad i { background: var(--bad); }
.ln-pos-more, .ln-pos-none { color: var(--muted); font-size: 12px; line-height: 24px; }
.ln-pos-best { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.ln-pos-best b { color: var(--fg); font: 300 28px/1.05 'Outfit', var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ln-pos-best span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ln-nexts li + li { border-top: 1px solid var(--line-2); }
.ln-next { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px 14px 16px; color: var(--fg);
  transition: background var(--shoal-fast) var(--shoal-ease); }
.ln-next:hover { text-decoration: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ln-next-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; box-shadow: var(--ln-control); color: var(--brand-ink); }
.ln-next-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ln-next-kind { color: var(--brand-ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.ln-next-text, .ln-next-of { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-next-text { color: var(--fg); font-size: 15px; }
.ln-next-of { color: var(--muted); font-size: 12.5px; }
.ln-next > .octicon { color: var(--fg-2); transition: translate var(--shoal-panel) var(--shoal-ease); }
.ln-next:hover > .octicon { translate: 3px -2px; }
/* on the landing the covers take the brand's light, foam to sand, instead of their field's colour */
.ln .cover { --hue: #4a8a9c; background: radial-gradient(56% 64% at 50% 44%, rgba(255, 255, 255, .9), transparent 72%), linear-gradient(160deg, var(--sky-soft), var(--cream) 58%, var(--sun-soft)); }
:where([data-theme="dark"]) .ln .cover { --hue: #6fb9c9; background: radial-gradient(56% 64% at 50% 44%, rgba(255, 255, 255, .05), transparent 72%), linear-gradient(160deg, var(--sky-soft), var(--cream) 58%, var(--sun-soft)); }

/* the exchange in three steps, one panel ruled into columns; the plans it runs on below */
.ln-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; border-radius: 28px; background: var(--bg); box-shadow: var(--ln-ring), var(--ln-lift); overflow: hidden; }
.ln-step { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.ln-step + .ln-step { border-left: 1px solid var(--line-2); }
.ln-step-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; box-shadow: var(--ln-control); color: var(--fg-2); }
.ln-step b { font-size: 17px; font-weight: 500; }
.ln-step p { color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.ln-show .pl-show { margin: 0; padding: 14px 16px; border: 0; background: none; }

/* people and agents: the claim beside a staircase of tiles, some holding a face */
.ln-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.ln-split .ln-ch-head { margin: 0; }
/* the tiles take their size from the panel's own width (a container), so the staircase always fits it */
.ln-wall-panel { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 44px 24px 28px; container-type: inline-size; }
.ln-wall { --t: min(56px, calc((100cqw - 48px) / 13 - 2px)); position: relative; width: calc(13 * (var(--t) + 2px)); height: calc(6 * (var(--t) + 2px)); }
.ln-tile { position: absolute; left: calc(var(--c) * (var(--t) + 2px)); top: calc(var(--r) * (var(--t) + 2px)); width: var(--t); height: var(--t);
  display: flex; align-items: center; justify-content: center; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(var(--ln-hair), .07); }
.ln-tile-face { background: var(--bg); box-shadow: var(--ln-ring), var(--ln-lift); }
.ln-tile-face .avatar { width: 56%; height: 56%; }
.ln-tile-sun { background: linear-gradient(135deg, var(--sun-soft), transparent 80%); }
.ln-tile-sky { background: linear-gradient(135deg, var(--sky-soft), transparent 80%); }
.ln-wall-cap { align-self: flex-end; }

/* From 01 on, each chapter opens over its own water, as the page opens over the band: a window of the brand's light
   behind the chapter's head, from just above its eyebrow to just under its panel's top, fading into the page above and
   below. In it a brand photograph drawn as grains lends the light its texture (soft light) under a living layer drawn
   for what the chapter says (app.js, SCENES; the people chapter's is the school). The layer is composed over the
   chapter's first --sc-full pixels and the window shows the part behind the head. A veil keeps the words clear, and the
   chapter's panel floats over the window's lower edge. The marks: one ink, sand, clear water, lagoon and foam. */
.ln > main { overflow-x: clip; }
.ln-sec { position: relative; isolation: isolate; }
.ln-scene { --sc-ink: #0e2c33; --sc-sand: #b08a4e; --sc-water: #5d8ea6; --sc-lagoon: #03586f; --sc-foam: #fff; --sc-hair: rgba(14, 44, 51, .14); --sc-shade: rgba(14, 44, 51, .16); --fish-alt: #b08a4e; --sc-full: 780px;
  position: absolute; z-index: -1; top: calc(var(--ln-sec) - 40px); left: 50%; width: calc(100vw / var(--zoom, 1)); height: var(--sc-h, 520px); margin-left: calc(-50vw / var(--zoom, 1));
  background: var(--sc-wash); pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 68%, transparent); }
.ln-scene canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* one water at a time (app.js): the band or window nearest the middle of the screen shows, the others wait faded out */
.ln-band, .ln-scene { transition: opacity var(--shoal-scene) var(--shoal-ease), visibility 0s; }
.ln-hush { opacity: 0; visibility: hidden; transition: opacity var(--shoal-scene) var(--shoal-ease), visibility 0s var(--shoal-scene); }
@media (prefers-reduced-motion: reduce) { .ln-band, .ln-scene { transition: none; } }
.ln-scene .ln-grain { opacity: var(--sc-photo, .7); mix-blend-mode: soft-light; }
.ln-scene::after { content: ''; position: absolute; inset: 0; background: radial-gradient(var(--sc-veil, 32% 32% at 50% 42%), color-mix(in srgb, var(--bg) 82%, transparent) 30%, transparent); }
.ln-scene[data-scene="braids"] { --sc-photo: .85; --sc-wash: radial-gradient(40% 50% at 8% 46%, var(--sky-soft), transparent 72%), radial-gradient(38% 50% at 94% 42%, var(--sky-soft), transparent 72%), radial-gradient(50% 30% at 50% 62%, var(--sun-soft), transparent 70%); }
/* the tide and the shore take the band's own recipe: the photograph whole, in its colour, with long soft fades. The tide
   is the opening's dawn, the sand above its waterline and the water below it (app.js colours each side where the tide
   stands); the shore is wet sand under a film of water, blurred until only its warm light is left. */
.ln-scene[data-scene="tide"] { --sc-whole: #dfe4da url(/static/brand/haze-dawn.jpg) center 40% / cover; }
.ln-scene[data-scene="shore"] { --sc-whole: #e7dfcf url(/static/brand/photo-grains.jpg) center 22% / cover; }
.ln-scene:is([data-scene="tide"], [data-scene="shore"])::before { content: ''; position: absolute; inset: 0; background: var(--sc-whole); }
.ln-scene[data-scene="shore"]::before { inset: -40px; filter: blur(14px) saturate(1.1); }
.ln-scene:is([data-scene="tide"], [data-scene="shore"]) { --sc-veil: 30% 34% at 50% 40%;
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 72%, transparent); }
.ln-scene[data-scene="people"] { --sc-photo: .8; --sc-wash: radial-gradient(46% 60% at 14% 52%, var(--sky-soft), transparent 72%), radial-gradient(40% 50% at 60% 18%, var(--sun-soft), transparent 70%); --sc-veil: 26% 34% at 20% 50%; --sc-h: 440px; } /* a short chapter: a shorter window, clear of the next one */

.ln-scene[data-scene="chart"] { --sc-photo: .6; --sc-wash: radial-gradient(40% 60% at 4% 60%, var(--sky-soft), transparent 70%), radial-gradient(40% 60% at 96% 50%, var(--sky-soft), transparent 70%), radial-gradient(60% 70% at 50% 46%, var(--cream), transparent 80%); }
.ln-scene[data-scene="echo"] { --sc-photo: .6; --sc-wash: radial-gradient(36% 70% at 4% 40%, var(--sky-soft), transparent 72%), radial-gradient(36% 70% at 96% 60%, var(--sun-soft), transparent 72%); --sc-veil: 26% 32% at 18% 44%; --sc-full: 640px; --sc-h: 460px; }
/* on a phone the words run nearly edge to edge, so the veil widens and the water shows round them */
@media (max-width: 767px) {
  .ln-scene { --sc-full: 640px !important; --sc-h: 460px !important; }
  .ln-scene::after { background: radial-gradient(78% 34% at 50% 40%, color-mix(in srgb, var(--bg) 90%, transparent) 55%, transparent); }
}
:where([data-theme="dark"]) .ln-scene .ln-grain { opacity: calc(var(--sc-photo, .7) * .7); }
  :where([data-theme="dark"]) .ln-scene[data-scene="tide"] { --sc-whole: #1f2023 url(/static/brand/haze-dusk.jpg) center 40% / cover; }
  :where([data-theme="dark"]) .ln-scene[data-scene="tide"]::before { filter: saturate(.7) brightness(.62); }
  :where([data-theme="dark"]) .ln-scene[data-scene="shore"]::before { filter: blur(14px) saturate(.7) brightness(.5); }
  :where([data-theme="dark"]) .ln-scene { --sc-ink: #dce6e2; --sc-sand: #c8a66a; --sc-water: #6fb9c9; --sc-lagoon: #6fb9c9; --sc-foam: rgba(232, 234, 237, .5); --sc-hair: rgba(255, 255, 255, .12); --sc-shade: rgba(0, 0, 0, .5); --fish-alt: #c8a66a; }

/* The spotlight on its stage: each slide a white window in the panel, the problems a segmented control under it. */
.ln-stage .ln-spot { display: flex; flex-direction: column; }
.ln-spot-slide { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 480px; border-radius: 20px; background: var(--bg); box-shadow: var(--ln-ring); overflow: hidden; }
#ln-spot-0:checked ~ .ln-spot-slides [data-slide="0"], #ln-spot-1:checked ~ .ln-spot-slides [data-slide="1"], #ln-spot-2:checked ~ .ln-spot-slides [data-slide="2"], #ln-spot-3:checked ~ .ln-spot-slides [data-slide="3"] { display: grid; }
.ln-spot-text { display: flex; flex-direction: column; gap: 22px; padding: 44px; }
.ln-spot-text h3 { font: 300 clamp(28px, 2.8vw, 40px)/1.12 'Outfit', var(--font); letter-spacing: -.01em; }
.ln-spot-text p { color: var(--fg-2); font-size: 16px; line-height: 1.55; }
.ln-spot-text .ln-link { margin-top: auto; align-self: flex-start; }
.ln-spot-art { display: flex; align-items: center; background: radial-gradient(120% 90% at 55% 0%, var(--sun-soft), transparent 55%), radial-gradient(90% 90% at 80% 100%, var(--sky-soft), transparent 60%), var(--cream); }
.ln-spot-tabs { align-self: center; flex-wrap: wrap; justify-content: center; margin: 10px 0 2px; overflow: visible; }
/* The replay (app.js): moves still to come are faint in the log and not yet on the map. A route's channel draws itself
   from where it leaves the one it grew from, then its end and label appear; its check and its adoption come at their own moves. */
.ln-replay { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--fg-2); font-size: 14.5px; line-height: 1.4; }
.ln-replay li { display: flex; gap: 10px; transition: opacity var(--shoal-panel) var(--shoal-ease), color var(--shoal-panel) var(--shoal-ease); }
.ln-replay .octicon { flex: none; margin-top: 2px; color: var(--muted); }
.ln-replay .check .octicon { color: var(--ok); }
.ln-replay .bad .octicon { color: var(--bad); }
.ln-replay b { font-weight: 500; color: var(--fg); }
.ln-spot[data-replay] .ln-replay li:not(.on) { opacity: .25; }
.ln-spot[data-replay] .ln-replay li.now { color: var(--fg); }
.ln-spot[data-replay] .chmap [data-step] { transition: opacity var(--shoal-scene) var(--shoal-ease); }
.ln-spot[data-replay] .chmap [data-step]:not(.on) { opacity: 0; }
.ln-spot[data-replay] .ch-draw { stroke-dasharray: 1; transition: stroke-dashoffset 1.6s var(--shoal-ease); }
.ln-spot[data-replay] :not(.on) > .ch-draw, .ln-spot[data-replay] .ch-draw[data-step]:not(.on) { stroke-dashoffset: 1; }
.ln-spot[data-replay] .route[data-step] > :is(.ch-open, .ch-dot, .ch-pulse, .ch-name, .ch-state, .ch-check, .ch-adopted, .ch-lane:not(.ch-draw)):not([data-step]) { transition: opacity var(--shoal-panel) var(--shoal-ease) 1.2s; }
.ln-spot[data-replay] .route[data-step]:not(.on) > :is(.ch-open, .ch-dot, .ch-pulse, .ch-name, .ch-state, .ch-check, .ch-adopted, .ch-lane:not(.ch-draw)):not([data-step]) { opacity: 0; transition-delay: 0s; }
.ln-spot[data-replay] .route[data-step].on > .ch-draw ~ .ch-draw:not([data-step]) { transition-delay: 1.2s; }
.ln-spot[data-replay] .ch-check[data-step] { transform-box: fill-box; transform-origin: center; transition: opacity var(--shoal-panel) var(--shoal-ease), transform var(--shoal-scene) var(--shoal-ease); }
.ln-spot[data-replay] .ch-check[data-step]:not(.on) { transform: scale(.3); }
.ch-fish { fill: var(--rc); }

/* Why results hold: three panels, each a claim over a window that runs off its lower edge. */
.ln-trust { display: flex; flex-direction: column; padding: 28px 28px 0; overflow: hidden; }
.ln-trust h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; line-height: 1.35; }
.ln-trust > p { margin: 8px 0 24px; color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.ln-win { margin-top: auto; height: 216px; border-radius: 16px 16px 0 0; background: var(--bg); box-shadow: var(--ln-ring); overflow: hidden; }
.ln-win-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line-2); }
.ln-win-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ln-win-bar span { overflow: hidden; margin-left: 8px; color: var(--muted); font: 400 12px var(--code); text-overflow: ellipsis; white-space: nowrap; }
.ln-win-list { margin: 0; padding: 4px 14px; list-style: none; }
.ln-win-list li { display: flex; align-items: center; gap: 8px; height: 35px; border-bottom: 1px solid var(--line-2); font-size: 13px; white-space: nowrap; }
.ln-win-list li > .octicon { flex: none; color: var(--muted); }
.ln-win-list b { font-weight: 500; }
.ln-win-said { flex: 1; min-width: 0; overflow: hidden; color: var(--fg-2); text-overflow: ellipsis; }
.ln-faint { color: var(--faint); font-size: 12px; }
.ln-win-none { padding: 16px; color: var(--muted); font-size: 13px; }
.ln-st { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 500; }
.ln-st.st-adopted { background: color-mix(in srgb, var(--brass) 14%, transparent); color: var(--brass); }
.ln-st.st-ok { background: var(--ok-bg); color: var(--ok); }
.ln-st.st-wait { background: var(--wait-bg); color: var(--wait); }
.ln-st.st-bad { background: var(--bad-bg); color: var(--bad); }
.ln-term { margin: 0; padding: 14px 16px; color: var(--fg); font: 400 12.5px/1.9 var(--code); white-space: pre-wrap; word-break: break-all; }
.ln-term span { color: var(--muted); }

/* the catalog figure and its legend */
.ln-catalog { width: 100%; max-width: 980px; margin: 8px auto 0; }
.ln-plate { position: relative; padding: 48px 24px 40px; }
.ln-plate .iso-svg { max-width: 760px; margin-inline: auto; }
.ln-corner { position: absolute; color: var(--muted); font: 300 11px/1 var(--code); letter-spacing: .06em; white-space: nowrap; }
.ln-corner[data-corner="fig"] { top: 12px; left: 12px; color: var(--fg-2); }
.ln-corner[data-corner="title"] { top: 12px; right: 12px; text-transform: uppercase; letter-spacing: .12em; }
.ln-corner[data-corner="hint"] { bottom: 12px; left: 12px; text-transform: uppercase; letter-spacing: .12em; }
.ln-corner[data-corner="readout"] { bottom: 12px; right: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.cat-card { transition: transform .7s var(--anatomy-ease); }
.cat-card[data-on] { transform: translateY(var(--lift)); }
.ln-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; text-align: left; }
.ln-legend-item { display: flex; flex-direction: column; gap: 6px; padding: 16px 0 0; border: 0; border-top: 2px solid var(--line-2); background: none; color: var(--fg-2); font-size: 14px; line-height: 1.45; text-align: left; cursor: pointer; transition: border-color .3s; }
.ln-legend-item b { color: var(--fg); font-size: 16px; font-weight: 500; }
.ln-legend-count { color: var(--fg); font: 300 28px/1.1 var(--code); letter-spacing: -.02em; }
.ln-legend-item[aria-current] { border-top-color: var(--fg); }

/* questions, answered: the claim stays put on the left while the questions open on the right */
.ln-sec.ln-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(40px, 6vw, 96px); }
.ln-faq-head { position: sticky; top: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ln-q { border-bottom: 1px solid var(--line-2); transition: background var(--shoal-panel) var(--shoal-ease); }
.ln-q[open] { border-bottom-color: transparent; border-radius: 20px; background: var(--surface); }
.ln-q summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 20px; color: var(--fg); font-size: 17px; font-weight: 500; line-height: 1.45; list-style: none; cursor: pointer; }
.ln-q summary::-webkit-details-marker { display: none; }
.ln-q-ic { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); box-shadow: var(--ln-control); }
.ln-q-ic::before, .ln-q-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; border-radius: 1px; background: var(--fg-2); transition: transform var(--shoal-panel) var(--shoal-ease); }
.ln-q-ic::after { transform: rotate(90deg); }
.ln-q[open] .ln-q-ic::after { transform: rotate(0); }
.ln-q p { padding: 0 20px 22px; color: var(--fg-2); font-size: 15.5px; line-height: 1.7; }

/* The closing plate comes back to the water: the noon haze, where a sandbar crosses from lower left to upper right,
   drawn as grains of sand (an ordered dither in 2px cells, app.js), with a school swimming through it. */
.ln-final { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: clamp(440px, 42vw, 580px);
  border-radius: 28px; background: #dfe3d6 url(/static/brand/haze-noon.jpg) center / cover; box-shadow: var(--ln-ring), var(--ln-lift); overflow: hidden; }
.ln-final-art { position: absolute; inset: 0; z-index: -1; }
.ln-final-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(46% 52% at 50% 50%, var(--ln-veil), transparent 78%); }
.ln-grain { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.ln-final .ln-school { position: absolute; inset: 0; }
.ln-final-text { display: flex; flex-direction: column; align-items: center; padding: 56px 24px; text-align: center; }
.ln-final-text .ln-lead { margin-bottom: 30px; color: var(--fg); }

/* footer: the brand and its line, three columns, and the braided channels fading in under the bar */
.ln-foot { position: relative; margin-top: var(--ln-sec); border-top: 1px solid var(--line-2); overflow: hidden; }
.ln-foot-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 48px; }
.ln-foot-brand { display: inline-flex; color: var(--fg); }
.ln-foot-brand .logo { display: block; height: 32px; width: auto; color: var(--brand-ink); }
.ln-foot-about p { max-width: 380px; margin: 16px 0 20px; color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.ln-foot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ln-foot h2 { margin-bottom: 6px; color: var(--fg); font-size: 13px !important; font-weight: 600 !important; letter-spacing: .02em; }
.ln-foot nav a { color: var(--fg-2); font-size: 14.5px; }
.ln-foot-bar { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; }
.ln-foot-bar b { color: var(--fg); font-weight: 500; }
.ln-foot-art { position: relative; height: 200px; margin-top: -24px; background: url(/static/brand/photo-braids.jpg) center 62% / cover; opacity: .5;
  -webkit-mask-image: linear-gradient(transparent, #000 75%); mask-image: linear-gradient(transparent, #000 75%); }

/* Chapters settle into place as they come on screen, from the lower left toward the upper right (app.js sets
   .rv-ready on <html>, so without a script nothing waits). */
.rv-ready [data-rv] { transition: opacity var(--shoal-scene) var(--shoal-ease), translate var(--shoal-scene) var(--shoal-ease); transition-delay: calc(var(--rv-i, 0) * 60ms); }
.rv-ready [data-rv]:not(.on) { opacity: 0; translate: -12px 16px; }

:where([data-theme="dark"]) .ln-water { background-color: #1f2023; background-image: url(/static/brand/haze-dusk.jpg); filter: saturate(.7) brightness(.8); }
  :where([data-theme="dark"]) .ln-final { background-color: #1f2023; background-image: url(/static/brand/haze-dusk.jpg); }
  :where([data-theme="dark"]) .ln-foot-art { opacity: .28; filter: saturate(.6); }
@media (max-width: 818px) {
  .ln-in { padding-inline: 24px; }
  .ln-grid3, .ln-split, .ln-sec.ln-faq { grid-template-columns: 1fr; }
  .ln-duo { grid-template-columns: 1fr; }
  .ln-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-faq-head { position: static; }
  .ln-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ln-foot-about { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .ln-nav { grid-template-columns: 1fr auto; }
  .ln-links, .ln-account > .ln-round { display: none; }
  .ln-menu { display: inline-block; }
}
@media (max-width: 767px) {
  .ln-hero { padding-top: 112px; }
  .ln-band { height: 200px; margin: 48px 0 120px; }
  .ln-band-art { width: 760px; }
  .ln-ticker { position: relative; right: auto; bottom: auto; width: auto; margin: 0 16px; top: 224px; }
  .ln-marks { gap: 10px 24px; font-size: 15px; }
  .ln-steps { grid-template-columns: 1fr; }
  .ln-step + .ln-step { border-left: 0; border-top: 1px solid var(--line-2); }
  .ln-spot-slide { grid-template-columns: 1fr; }
  .ln-spot-text { padding: 28px; }
  .ln-duo > .ln-panel { grid-template-columns: minmax(0, 1fr); }
  .ln-duo-l > .ln-seg { grid-area: auto; justify-self: start; margin: 0 8px 12px; }
  .ln-duo-l .ln-pos-list { grid-row: 3; }
  .ln-duo-l .ln-duo-foot { grid-row: 4; }
  .ln-pos { grid-template-columns: 56px minmax(0, 1fr); padding: 12px; }
  .ln-pos-art { height: 48px; }
  .ln-pos-best { grid-column: 2; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; }
  .ln-q summary { padding: 18px 14px; font-size: 16px; }
  .ln-q p { padding: 0 14px 18px; }
}
@media (max-width: 599px) {
  .ln-in { padding-inline: 16px; }
  .ln-nav { width: calc(100% - 24px); gap: 8px; }
  .ln-brand .logo { height: 24px; } /* the lockup, both sign-in links and the menu fit a 360px screen */
  .ln-signin { padding-inline: 8px; }
  .ln-legend { grid-template-columns: 1fr; }
  .ln-foot-cols { grid-template-columns: 1fr 1fr; }
  .ln-trust { padding: 22px 22px 0; }
}

/* ---- the community's page (src/community.ts): the landing's parts inside the site's frame ---------------------------
   The page is a column of the main frame (the visitor's bar above it, or a member's side bar beside it), so what the
   landing sizes to the window it sizes to its own width (a container): the chapters' windows of light. Its one colour of
   its own is the school's second tone, sand for the people among the fish. */
.cm { min-height: 0; overflow-x: clip; container-type: inline-size; --fish-alt: #b08a4e; }
:where([data-theme="dark"]) .cm { --fish-alt: #c8a66a; }
.cm .ln-hero { padding-top: 64px; }
.cm .ln-scene { width: 100cqw; margin-left: -50cqw; }
.cm .tp { font-size: clamp(36px, 4.2cqw, 58px); }
.cm .ln-hero .tp { font-size: clamp(40px, 5.2cqw, 74px); }
/* a question's state and an agent's, as a shape: solid answered or at work, hollow waiting or away, a dashed ring on shift */
.cm-shape { display: inline-block; flex: none; width: 9px; height: 9px; border: 1.5px solid var(--brand-ink); border-radius: 50%; box-sizing: border-box; }
.cm-shape:is(.s-working, .s-done) { background: var(--brand-ink); }
.cm-shape.s-shift { border-style: dashed; border-color: var(--muted); }
/* the band: the threads lately active, each a tag pinned to its place on the water as a team space pins its problems
   (.sp-band .ln-tag, below), its pin a grain once answered, a ring while it waits. The school's canvas gathers at the
   places, in fractions of the water, which reaches 70px above the band and 10px below it. */
.cm-band { height: 240px; }
.cm-tags { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; }
.cm-band .ln-tag { left: calc(var(--x) * 100%); top: calc(var(--y) * (100% + 80px) - 70px); animation: ln-rise var(--shoal-scene) var(--shoal-ease) 240ms backwards; }
.cm-tags li:nth-child(2) .ln-tag { animation-delay: 300ms; } .cm-tags li:nth-child(3) .ln-tag { animation-delay: 360ms; }
.cm-band .ln-tag b { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.cm-band .ln-tag.s-done::before { left: calc(50% - 4px); bottom: -24px; width: 8px; height: 8px; background: var(--fish-alt); }
.cm-band .ln-tag.s-waits::before { left: calc(50% - 4px); bottom: -24px; width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid var(--fg); background: var(--bg); }
.cm-faces { display: flex; align-items: center; gap: 4px; }
.cm-faces .avatar { display: block; }
/* 01: the latest threads, a row each in the panel's window: a question with the answer that settled it, else the first lines */
.cm-qs li + li { border-top: 1px solid var(--line-2); }
.cm-q { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px 20px 16px 18px; color: var(--fg); transition: background var(--shoal-fast) var(--shoal-ease); }
.cm-q:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); text-decoration: none; }
.cm-q-t { font: 400 17px/1.35 'Outfit', var(--font); }
.cm-q-a { display: flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 6px; color: var(--fg-2); font-size: 14px; }
.cm-q-a > :not(:last-child) { flex: none; }
.cm-q-a > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-q-a b { color: var(--fg); font-weight: 500; }
/* 02: each problem's room, a row each in one window, with who is on it now */
.cm-rooms { width: 100%; max-width: 880px; text-align: left; }
.cm-rooms .ln-win { height: auto; border-radius: 20px; }
.cm-rooms .ln-nexts { margin: 0; padding: 0; list-style: none; }
.ln-next.cm-room { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
/* the fellow researchers, a row each with their agents */
.cm-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 14px 20px 14px 16px; }
.cm-person + .cm-person { border-top: 1px solid var(--line-2); }
.cm-person-who { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--fg); }
.cm-person-who:hover { text-decoration: none; }
.cm-person-who:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cm-person-who > span { display: flex; flex-direction: column; min-width: 0; }
.cm-person-who b { font-size: 15px; font-weight: 500; }
.cm-person-who small { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cm-person-agents { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cm-agent { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(var(--ln-hair), .1); color: var(--fg-2); font: 400 12.5px var(--code); }
.cm-agent:hover { color: var(--fg); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(var(--ln-hair), .22); }
.cm-people .ln-duo-foot { gap: 22px; }
@media (max-width: 767px) {
  .cm .ln-hero { padding-top: 40px; }
  .cm .ln-band { height: 200px; margin-bottom: 0; }
  .cm-tags li + li { display: none; }
  .cm-band .ln-tag b { max-width: 52vw; }
  .cm-person { grid-template-columns: minmax(0, 1fr); }
  .cm-person-agents { justify-content: flex-start; padding-left: 52px; }
}

/* ---- the shoal (scripts/figures.ts shoal): the deposit's layers, the water and its flow ----------------------------------
   The deposit is the one coloured thing: each layer's bank and grains in the colour of when it settled, from deep water
   (the oldest) to sand (the newest), the brand's strata. The water is a tint that fades out to nothing; its streamlines
   are broken lines, like an engraver's water, and a particle of light rides each at the water's own speed (SMIL). */
:root {
  --fl-3: #6d96a1; --fl-4: #82a7b0; --fl-5: #98b6bc; --fl-6: #c9bc93; --fl-7: #d1c08d; --fl-8: #d9c793; --fl-9: #e1cf9e;
  --fl-10: #e8d8ad; --fl-11: #eee1be;
  --fl-tint: #8fb9c8; --fl-line: rgba(3, 88, 111, .26); --fl-glint: #fff; --fl-foam: rgba(255, 255, 255, .9);
}
:root:where([data-theme="dark"]) {
    --fl-3: #2b5d68; --fl-4: #356b76; --fl-5: #417884; --fl-6: #7f7552; --fl-7: #8c8158; --fl-8: #998c5e; --fl-9: #a79864;
    --fl-10: #b5a46c; --fl-11: #c4b17a;
    --fl-tint: #0e5466; --fl-line: rgba(160, 214, 226, .2); --fl-glint: #cfe9ef; --fl-foam: rgba(200, 230, 236, .5);
  }
/* a layer's bank is a pale wash of its colour, its grains in rows on it */
.fl-board { --lc: var(--fl-3); --anatomy-paper: color-mix(in srgb, var(--lc) 30%, var(--bg));
  --anatomy-shade-3: color-mix(in srgb, var(--lc) 34%, var(--bg)); --anatomy-shade-2: color-mix(in srgb, var(--lc) 40%, var(--bg));
  --anatomy-shade-1: color-mix(in srgb, var(--lc) 46%, var(--bg)); --anatomy-shade-0: color-mix(in srgb, var(--lc) 70%, #0e2c33); }
.fl-board[data-l="4"] { --lc: var(--fl-4); } .fl-board[data-l="5"] { --lc: var(--fl-5); } .fl-board[data-l="6"] { --lc: var(--fl-6); }
.fl-board[data-l="7"] { --lc: var(--fl-7); } .fl-board[data-l="8"] { --lc: var(--fl-8); } .fl-board[data-l="9"] { --lc: var(--fl-9); }
.fl-board[data-l="10"] { --lc: var(--fl-10); } .fl-board[data-l="11"] { --lc: var(--fl-11); }
.fl-dry { --anatomy-top: color-mix(in srgb, var(--fl-11) 30%, var(--anatomy-face)); --anatomy-lit-top: var(--anatomy-top); }
.fl-board:not(.fl-dry) { --anatomy-top: color-mix(in srgb, var(--lc) 40%, var(--bg)); } /* sand under water takes its layer's colour */
.fl-rows path { fill: none; stroke: var(--lc); stroke-width: 2.1px; stroke-linecap: round; stroke-dasharray: 0 2.9; }
.fl-stream { fill: none; stroke: var(--fl-line); stroke-width: .8px; stroke-linecap: round; }
.fl-rider { fill: none; stroke-width: 1.6px; stroke-linecap: round; }
.fl-grain { fill: var(--fl-9); stroke: var(--fl-6); stroke-width: .5px; }
.fl-foam { fill: none; stroke: var(--fl-foam); stroke-width: 1.1px; }
.fl-grass { stroke-width: .7px; }
@media (prefers-reduced-motion: reduce) { .fl-riders { display: none; } }
/* ---- the sandbar (src/sandbar.ts): the same shoal, drawn from a problem's checked values ------------------------------
   The chart's dotted outline is where the bar lies, sounded or not; a ring in the water marks the viewer's own slices,
   a slow pulse the newest; fish are agents at work there now; a slice lights its outline when pointed at. */
.sb .iso-dots circle { fill: var(--fl-6); }
.sb-chart { fill: none; stroke: color-mix(in srgb, var(--fl-3) 75%, transparent); stroke-width: 1.2px; stroke-dasharray: .5 4.5; stroke-linecap: round; }
.sb-label { font: 500 15px/1 var(--mono); fill: var(--muted); letter-spacing: .02em; }
.sb-you { fill: none; stroke: var(--brand); stroke-width: 1.4px; }
.sb-fresh { fill: none; stroke: var(--fl-foam); stroke-width: 1.2px; transform-box: fill-box; transform-origin: center; animation: sb-pulse 3.2s var(--shoal-ease) infinite; }
@keyframes sb-pulse { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.5); } }
.sb-fish { fill: var(--brand); opacity: .85; }
:where([data-theme="dark"]) .sb-fish { fill: var(--fl-glint); opacity: .7; } /* a dark fish on dark water would not show */
.sb-fish path { animation: sb-sway 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -0.8s); transform-box: fill-box; transform-origin: 70% 50%; }
@keyframes sb-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.sb-hit { fill: transparent; stroke: none; cursor: default; outline: none; }
.sb-hit:hover, .sb-hit:focus-visible { fill: color-mix(in srgb, var(--fl-tint) 22%, transparent); stroke: var(--fl-line); stroke-width: 1px; }
@media (prefers-reduced-motion: reduce) { .sb-fresh, .sb-fish path { animation: none; } }

/* ---- the school (scripts/figures.ts agents): agents as the mark's fish over a sandbar --------------------------------
   The fish carry the brand's colour; the sand, the routes cut in it and the water stay quiet. Each fish sways in its own
   time, and the one at work rings the water above it with the site's working ripple. */
:root { --ag-sand: #f2e8d3; --ag-groove: rgba(150, 118, 64, .28); --ag-water: rgba(143, 185, 200, .34); --ag-fish: #2a7487; --ag-fish-side: #0e3c47;
  --ag-shadow: rgba(14, 44, 51, .2); }
:root:where([data-theme="dark"]) { --ag-sand: #3b362c; --ag-groove: rgba(0, 0, 0, .32); --ag-water: rgba(14, 84, 102, .3); --ag-fish: #6fb9c9; --ag-fish-side: #2b6f7f;
    --ag-shadow: rgba(0, 0, 0, .45); }
.ag-top { fill: var(--ag-fish); } .ag-side { fill: var(--ag-fish-side); } .ag-shadow { fill: var(--ag-shadow); } .ag-groove { fill: var(--ag-groove); }
.ag-ripple { fill: none; stroke: var(--ok); stroke-width: 1.2px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ag-ripple 2.4s var(--shoal-ease) infinite; }
@keyframes ag-ripple { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.ag-swim { transform-box: fill-box; transform-origin: center; animation: ag-swim 4.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.1s); }
@keyframes ag-swim { from { transform: rotate(-2.5deg) translateX(-1.2px); } to { transform: rotate(2.5deg) translateX(1.2px); } }

/* ---- sand and water in the figures (the tide gauge): wet and dry sand, foam, the water's moving lines ------------- */
:root { --fig-water: rgba(118, 168, 188, .5); }
.fig-sand { --anatomy-paper: #ecdcb9; --anatomy-face: #efe1c2; --anatomy-top: #f2e7cc; --anatomy-shade-0: #cfb789; --anatomy-shade-1: #d9c398; --anatomy-shade-2: #e2cea8; --anatomy-shade-3: #e9d8b6; }
.fig-wet { --anatomy-paper: #dcc79c; --anatomy-face: #e0cca2; --anatomy-top: #e4d2ab; --anatomy-shade-0: #bfa673; --anatomy-shade-1: #c9b080; --anatomy-shade-2: #d2bb8e; --anatomy-shade-3: #dac59b; }
.fig-grains { fill: none; stroke: #c4a771; stroke-width: 1.3px; stroke-linecap: round; stroke-dasharray: 0 2.2; }
.fig-foam { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 1px; }
.fig-flow { fill: none; stroke: rgba(3, 88, 111, .3); stroke-width: .8px; stroke-linecap: round; stroke-dasharray: 6 3 2 3; }
:where([data-theme="dark"]) .fig-sand { --anatomy-paper: #3f392d; --anatomy-face: #4a4234; --anatomy-top: #514838; --anatomy-shade-0: #2e2a21; --anatomy-shade-1: #353026; --anatomy-shade-2: #3c362b; --anatomy-shade-3: #433c30; }
  :where([data-theme="dark"]) .fig-wet { --anatomy-paper: #353026; --anatomy-face: #3d372b; --anatomy-top: #423b2e; --anatomy-shade-0: #26221b; --anatomy-shade-1: #2b271f; --anatomy-shade-2: #302b22; --anatomy-shade-3: #353025; }
  :root:where([data-theme="dark"]) { --fig-water: rgba(14, 84, 102, .45); }
  :where([data-theme="dark"]) .fig-grains { stroke: #786a4e; } :where([data-theme="dark"]) .fig-foam { stroke: rgba(200, 230, 236, .45); } :where([data-theme="dark"]) .fig-flow { stroke: rgba(160, 214, 226, .22); }

/* ---- the route map (src/channels.ts): a braided river seen from above ---------------------------------------------
   Colour says which route (five river colours from the brand, the default branch in ink), the shape at a channel's end
   says how it stands, and the disc before it what the latest checks found. Water flows in a channel someone works on. */
:root { --r1: #0b6e85; --r2: #a0712e; --r3: #3467b0; --r4: #6e52b0; --r5: #b0457e; }
:root:where([data-theme="dark"]) { --r1: #5db7c9; --r2: #d9ae68; --r3: #7fa8e8; --r4: #a891e8; --r5: #e384b5; }
.chmap { display: block; width: 100%; height: auto; overflow: visible; }
.chmap .route { transition: opacity var(--shoal-panel) var(--shoal-ease); }
.chmap:hover .route:not(:hover) { opacity: .2; }
.ch-lane { fill: none; stroke: var(--rc); stroke-width: 2.6; stroke-linecap: round; }
.ch-lane.trunk { stroke-width: 3.2; }
.ch-flow { fill: none; stroke: var(--bg); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1.5 9; opacity: .75; animation: ch-flow 1.8s linear infinite; }
@keyframes ch-flow { to { stroke-dashoffset: -21; } }
.ch-dot, .ch-pulse { fill: var(--rc); }
.ch-pulse { transform-box: fill-box; transform-origin: center; animation: ch-pulse 2.4s var(--shoal-ease) infinite; }
@keyframes ch-pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(3); opacity: 0; } }
.ch-open { fill: var(--bg); stroke: var(--rc); stroke-width: 2.4; }
.ch-adopted { fill: var(--rc); stroke: var(--fg); stroke-width: 1.8; }
.ch-check circle { stroke: var(--bg); stroke-width: 1.5; }
.ch-check.ok circle { fill: var(--ok); } .ch-check.bad circle { fill: var(--bad); } .ch-check.wait circle { fill: var(--wait-dot); }
.ch-check path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ch-name { font: 12px var(--code); fill: var(--fg); }
.ch-state { font: 12px var(--font); fill: var(--muted); }
.ch-legend text { font: 10.5px var(--font); fill: var(--muted); }
.ch-ghost .ch-lane { stroke: var(--line); stroke-dasharray: 4 6; }
.ch-ghost .ch-open { stroke: var(--line); }
@keyframes iso-pulse { 0%, 100% { opacity: .18; } 12% { opacity: 1; } }

/* ---- problems: fields, tags and rows (src/problems.ts) -----------------------------------------------------------
   Problems are divided with tags, as Hugging Face and GitHub divide theirs. The five fields are the only category
   colours on the site: each field's icon is drawn in its colour (as GitHub colours languages), and, faded, it is the
   paper of a problem's cover (src/cover.ts); everything else is ink, lines and the semantic colours of checks. */

:root {
  --anatomy-cavity: #d3cec4; --code: 'Google Sans Code', var(--mono);
  --f-mathematics: #4f6bed; --f-computer-science: #9b59d0; --f-physics-astronomy: #129d96; --f-chemistry-materials: #d08a17;
  --f-life-health: #5a9e2c; --f-earth-environment: #2a8ccf; --f-engineering-energy: #d4533f; --f-social-economics: #c2448f; --f-none: #bdc1c6;
  /* a card's accent for what is conjectured, claimed or partly settled (the figures' sand: shoal-catalog tools/cards/kit.py),
     and the wash a drawn figure stands on: sand light on the left, water on the right */
  --sand: #b8862c;
  --card-wash: radial-gradient(55% 85% at 30% 45%, rgba(237, 214, 168, .40), transparent 70%), radial-gradient(45% 80% at 78% 78%, rgba(168, 196, 214, .38), transparent 70%), var(--surface);
}
:root:where([data-theme="dark"]) {
    --anatomy-cavity: #0d0e10; --f-mathematics: #93a6ff; --f-computer-science: #c9a2f3; --f-physics-astronomy: #5fd0c8; --f-chemistry-materials: #f2c063;
    --f-life-health: #a3d47a; --f-earth-environment: #7cc4f2; --f-engineering-energy: #f29484; --f-social-economics: #f09ac8; --f-none: #5f6368;
    --sand: #d9b26a;
    --card-wash: radial-gradient(55% 85% at 30% 45%, rgba(111, 185, 201, .12), transparent 70%), radial-gradient(45% 80% at 78% 78%, rgba(201, 168, 103, .09), transparent 70%), var(--surface);
  }

.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 16px; }
.sec-head h2 { font-size: 22px; }

.field-icon { display: inline-flex; flex: none; }
.field-icon > svg.octicon { color: var(--field); }
.field-name { display: inline-flex; align-items: center; gap: 8px; }
.pills a[aria-current=page] .field-icon > svg.octicon { color: inherit; }
.field-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); }

/* the panel: a sidebar of fields and tag groups beside the list */
.pwrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 4px; }
.pf { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 24px; }
.pf-fields { display: flex; flex-direction: column; gap: 2px; }
.pf-field { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--fg); font-size: 14px; }
.pf-field > span:not(.field-icon) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pf-field small { color: var(--muted); font: 400 12px var(--code); }
.pf-field .octicon { color: var(--muted); }
.pf-field:hover { background: var(--hover); text-decoration: none; }
.pf-field.on { background: var(--cream); font-weight: 500; }
/* the selected field's topics, and the collections problems came from: quieter rows under their heading */
.pf-topics { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 23px; padding-left: 10px; border-left: 1px solid var(--line); }
.pf-sources { display: flex; flex-direction: column; gap: 1px; }
.pf-topic, .pf-source { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px; color: var(--fg-2); font-size: 13px; }
.pf-topic span, .pf-source span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pf-topic small, .pf-source small { color: var(--muted); font: 400 11px var(--code); }
.pf-topic:hover, .pf-source:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.pf-topic.on, .pf-source.on { background: var(--cream); color: var(--fg); font-weight: 500; }
.pf-more summary { padding: 6px 10px; color: var(--muted); font-size: 13px; cursor: pointer; list-style: none; }
.pf-more summary::-webkit-details-marker { display: none; }
.pf-more summary:hover { color: var(--fg); }
.pf-more[open] summary { display: none; }
.pf-group h3 { margin-bottom: 10px; color: var(--muted); font: 500 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg-2); font-size: 13px; white-space: nowrap; }
.tag-pill small { color: var(--muted); font: 400 11px var(--code); }
.tag-pill .octicon { color: var(--muted); }
.tag-pill:hover { border-color: var(--outline); color: var(--fg); text-decoration: none; }
.tag-pill.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tag-pill.on small, .tag-pill.on .octicon { color: inherit; opacity: .75; }
.tag-pill.also { border-style: dashed; }

.pf-btn { display: none; }
.pmain { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ptool { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ptool-search { flex: 1; display: flex; align-items: center; gap: 8px; min-width: min(100%, 260px); height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.ptool-search:focus-within { border-color: var(--fg-2); }
.ptool-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; text-overflow: ellipsis; } /* a hint longer than the box ends in an ellipsis, not mid-letter */
.pactive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-on { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13px; }
.chip-on:hover { opacity: .85; text-decoration: none; }
.pactive-clear { font-size: 13px; }
.psec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.psec-head h2 { font-size: 20px; }
.pcs.pcs-3 { grid-template-columns: repeat(auto-fit, minmax(min(264px, 100%), 1fr)); } /* one row of featured cards, or a stack */
.pmain { container-type: inline-size; }
@container (max-width: 767px) { .pcs-3 > :nth-child(3) { display: none; } } /* two when three do not fit in a row */
.psec-head a.meta { margin-left: auto; }

/* its head: the page's name, and its three numbers at the right */
.pouter { padding-block: 28px 64px; gap: 20px; }
.ptally { margin: 0; align-self: flex-end; }

/* one row per problem, as GitHub lists repositories */
.prows { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.prow { display: grid; grid-template-columns: 176px minmax(0, 1fr) 248px; gap: 24px; padding: 18px 22px; border-top: 1px solid var(--line-2); }
.prow-cover { display: block; align-self: start; aspect-ratio: 640 / 304; overflow: hidden; border-radius: 10px; background: var(--cream); }
.prow-cover .cover, .prow-cover .chmap { width: 100%; height: 100%; }
@container (max-width: 767px) { .prow { grid-template-columns: 112px minmax(0, 1fr) 216px; gap: 16px; } } /* beside the filters on a small window the cover gives way to the text */
.prow:first-child { border-top: 0; }
.prow:hover { background: var(--surface); }
.prow-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
.prow-meta .field-tag:hover { color: var(--fg); text-decoration: none; }
.prow-src a { color: var(--fg-2); }
.prow-src-id { display: inline-flex; align-items: center; gap: 3px; }
.prow-src-id .octicon { color: var(--muted); }
.prow-side .prow-prog.prow-said { flex-direction: column; gap: 2px; } /* what the source says, then whose word it is and when */
.prow-prog.prow-said b { font-size: 15px; line-height: 1.3; }
.prize { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--sun-soft); color: var(--fg); font-size: 11px; line-height: 18px; white-space: nowrap; }
.prow-title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.prow-title a { color: var(--fg); }
.prow-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.prow-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.prow-tags .tag-pill { height: 24px; padding: 0 9px; font-size: 12px; }
.prow-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prow-prog { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--fg-2); font-size: 13px; } /* a long value takes the line, and what it counts goes under it */
.prow-prog b { min-width: 0; max-width: 100%; overflow: hidden; color: var(--fg); font: 600 20px/1.1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; } /* a long value is cut, not run out of the row */
.prow-prog .bar { flex: 0 0 100%; margin-top: 4px; }
.bar { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--line-2); }
.bar span { display: block; height: 100%; background: var(--ok); }
/* a running job's progress: what it reported, or (faint) how much of its time limit it has used */
.bar.est span { background: var(--faint); }
.job-prog { display: flex; flex-direction: column; gap: 3px; min-width: 96px; }
.job-prog .bar { width: 100%; }
.job-prog.wide { max-width: 420px; }
.job-prog.wide .bar { height: 6px; border-radius: 3px; }
.prow-slot { display: flex; align-items: flex-start; gap: 4px; min-width: 0; }
.prow-next { flex: 1; display: flex; flex-direction: column; min-width: 0; color: var(--fg-2); font-size: 13px; line-height: 1.4; }
.prow-next span { color: var(--fg); font-weight: 500; }
.prow-next:hover { text-decoration: none; }
.prow-next:hover span { text-decoration: underline; }
.prow-slot .icon-btn { flex: none; margin-top: -4px; }
.prow-stats { margin: 0; color: var(--muted); font-size: 12px; }

/* a problem card: the cover carries the colour, so the card has no frame: under it one line of what kind it is, the
   title, the question, where it stands, and the step that names something of it */
.pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(264px, 100%), 1fr)); gap: 32px 22px; }
.pc { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pc-cover { position: relative; display: block; aspect-ratio: 640 / 304; overflow: hidden; border-radius: 14px; background: var(--cream); color: var(--fg); }
.pc-cover .chmap, .pc-cover .cover { width: 100%; height: 100%; }
.cover-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--shoal-scene) var(--shoal-ease); }
.pc:hover .cover-img { transform: scale(1.035); }
.pc-cover:hover { text-decoration: none; }
.pc-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-inline: 2px; }
.pc-kicker { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; color: var(--muted); font-size: 12.5px; }
.pc-kicker .check-mark { color: var(--faint); }
/* a featured problem carries the Shoal mark: on its row, and pinned to its card's cover */
.featured { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 7px; border-radius: 999px; background: var(--surface); color: var(--fg); font-size: 11px; font-weight: 500; white-space: nowrap; }
.featured .logo, .tag-pill .logo { width: auto; height: 9px; }
.featured .logo { color: var(--focus); } /* the brand colour stays on the mark */
.prow-meta .featured { margin-left: 4px; }
.pc-cover .featured { position: absolute; top: 10px; left: 10px; background: var(--bg); }
/* who is on it now, pinned to the cover's other corner */
.pc-live { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 8px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--bg); font-size: 11.5px; }
.pc-live .hot, .pc-live .at-work { padding: 0; background: none; font-size: inherit; }
.pc-live .at-work { color: var(--ok); }
.pc-live .live-dot { box-shadow: none; }
.pc-live .live-dot::after { content: none; }
.pc-title { font-size: 16px; font-weight: 500; line-height: 1.3; text-wrap: balance; }
.pc-title a { color: var(--fg); }
.pc-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.pc-stake { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.pc-body > .fr, .pc-body > .prow-prog { margin-top: 6px; }
.pc .prow-prog b { font-size: 15px; line-height: 1.3; }
.pc .prow-prog.prow-said span:not(.prize) { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-next { display: flex; align-items: flex-start; gap: 8px; min-width: 0; margin-top: 6px; color: var(--fg); font-size: 13px; line-height: 1.4; }
.pc-next:hover { text-decoration: none; }
.pc-next:hover .pc-next-text { text-decoration: underline; }
.pc-next-text { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--fg-2); }
.pc-next-text b { color: var(--fg); font-weight: 500; }
.pc-go { display: inline-grid; flex: none; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--brand); color: var(--on-brand); transition: transform var(--shoal-panel) var(--shoal-ease); }
.pc-next:hover .pc-go { transform: translate(2px, -2px); }
.pc-meta { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.pc-meta a { color: inherit; }
.check-mark { display: inline-flex; color: var(--fg-2); }
.cover-file { display: flex; width: 100%; height: 100%; background: var(--card-wash); }
.cover-file .cover-img { object-fit: contain; }
/* the featured band: the cover on the left at its own proportions, the text on the right, the first step a button */
.pc-wide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 12px 44px; }
.pc-wide .pc-cover { border-radius: 20px; }
.pc-wide .pc-body { gap: 10px; padding: 8px 0; }
.pc-wide .pc-kicker { font-size: 13px; }
.pc-wide .pc-title { font-size: 30px; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
.pc-wide .pc-desc { -webkit-line-clamp: 4; font-size: 16px; line-height: 1.5; }
.pc-wide .pc-body > .fr, .pc-wide .pc-body > .prow-prog { margin-top: 8px; }
.pc-wide .prow-prog b { font-size: 22px; }
.pc-wide .prow-prog .bar { max-width: 320px; }
.pc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.pc-acts .btn-primary { height: auto; min-height: 40px; padding: 10px 18px; line-height: 1.3; white-space: normal; text-align: left; }
.pc-acts .pc-next-text { flex: 1 1 160px; }
.pc-wide + .pcs { margin-top: 32px; }
@container (max-width: 767px) {
  .pc-wide { grid-template-columns: minmax(0, 1fr); }
  .pc-wide .pc-cover { border-radius: 16px; }
  .pc-wide .pc-title { font-size: 24px; }
}

/* a card's frontier (src/frontier.ts): the field's colour is what stands now, sand what is conjectured, claimed or partly
   settled, faint what came before or ranks below, a dashed outline what is open */
.fr { --fr: var(--field, var(--f-none)); display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.fr-cap { margin: 0; color: var(--muted); font-size: 12px; }
.fr-big { margin: 0; color: var(--fg); font-size: 18px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fr-big sup, .fr-big sub { font-size: .6em; }
.fr-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fr-axis { stroke: var(--line); stroke-width: 1; }
.fr-gap { fill: var(--fr); fill-opacity: .16; }
.fr-now { fill: var(--fr); stroke: var(--bg); stroke-width: 1.5; }
.fr-cand { fill: var(--bg); stroke: var(--fr); stroke-width: 1.2; }
.fr-was { fill: var(--faint); }
.fr-guess { fill: none; stroke: var(--sand); stroke-width: 1.6; }
.fr-t { fill: var(--muted); font: 400 10.5px var(--font); font-variant-numeric: tabular-nums; }
.fr-t.b { fill: var(--fg); font-weight: 500; }
.fr-t.f { fill: var(--faint); }
.fr-l { min-width: 0; overflow: hidden; color: var(--fg-2); white-space: nowrap; text-overflow: ellipsis; }
.fr-v, .fr-y { color: var(--muted); font: 400 11.5px/1.2 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* records: one cell per instance; merged with the instances checked here, a meter of the best checked over the record */
.fr-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.fr-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: 10px; }
.fr-cell .fr-l, .fr-case .fr-l { color: var(--fg); font: 500 12px/1.25 var(--font); font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.fr-cell .fr-v { overflow: hidden; text-overflow: ellipsis; }
.fr-m { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--line-2); }
.fr-m i { display: block; height: 100%; background: var(--faint); }
.fr-s { display: inline-flex; align-items: center; gap: 3px; overflow: hidden; color: var(--fg-2); font: 400 11.5px/1.2 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.fr-cell.is-rep, .fr-cell.is-new { border-color: color-mix(in srgb, var(--fr) 50%, var(--line-2)); }
.fr-cell.is-rep .fr-m i, .fr-cell.is-new .fr-m i { background: var(--fr); }
.fr-cell.is-rep .fr-s, .fr-cell.is-new .fr-s { color: var(--fg); font-family: var(--font); font-weight: 500; }
.fr-cell.is-rep .fr-s .octicon { color: var(--fr); }
.fr-cell.is-open { border: 1px dashed var(--line); }
/* cases, as a ladder when there are few: the settled ones filled, the open ones dashed */
.fr-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); align-items: end; gap: 6px; }
.fr-cases.stairs { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.fr-case { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-width: 0; min-height: 40px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; }
.fr-cases.stairs .fr-case { min-height: calc(38px + var(--i) * 8px); }
.fr-case .fr-y { display: inline-flex; align-items: center; gap: 3px; }
.fr-case.is-solved { border-color: color-mix(in srgb, var(--fr) 45%, transparent); background: color-mix(in srgb, var(--fr) 12%, transparent); }
.fr-case.is-solved .octicon { color: var(--fr); }
.fr-case.is-partial { border-color: color-mix(in srgb, var(--sand) 55%, transparent); background: color-mix(in srgb, var(--sand) 12%, transparent); }
.fr-case.is-claimed { border: 1px dashed var(--sand); }
.fr-case.is-open { border-style: dashed; }
/* bars to one scale: the sizes searched (the dashed track beyond is not searched) and a board's standings */
.fr-bars { display: grid; grid-template-columns: minmax(0, auto) minmax(56px, 1fr) auto; align-items: center; gap: 7px 10px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.fr-bars li { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; }
.fr-bar { display: block; height: 8px; border: 1px dashed var(--line); border-radius: 4px; }
.fr-bar i { display: block; height: 100%; margin: -1px; border-radius: 4px; background: var(--fr); }
.fr-rows { grid-template-columns: auto minmax(0, auto) minmax(48px, 1fr) auto; }
.fr-rows .fr-bar { height: 6px; border: 0; }
.fr-rows .fr-bar i { margin: 0; border-radius: 3px; background: var(--faint); }
.fr-rows .is-top .fr-bar i { background: var(--fr); }
.fr-rows .is-top .fr-l, .fr-rows .is-top .fr-v { color: var(--fg); }
.fr-n { color: var(--muted); font: 400 11.5px var(--font); font-variant-numeric: tabular-nums; }
.fr-rows .is-ref .fr-l { font-style: italic; }
/* who has solved it */
.fr-who { gap: 6px; font-size: 13px; }
.fr-who li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fr-who .octicon { flex: none; }
.fr-who .is-solved .octicon { color: var(--fr); }
.fr-who .is-claimed .octicon { color: var(--sand); }
.fr-who .is-unsolved .octicon { color: var(--faint); }
.fr-who .fr-l { color: var(--fg); }
.fr-note { min-width: 0; margin-left: auto; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
/* what is known, on its axis or as a list, and what is not */
.fr-finds { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.fr-finds li { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fr-finds li::before, .fr-open::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fr); transform: translateY(-1px); }
.fr-finds b { flex: none; color: var(--fg); font-weight: 500; }
.fr-finds .fr-l, .fr-who .fr-l { white-space: normal; } /* a long name takes a second line rather than being cut */
.fr-open { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--fg-2); font-size: 13px; line-height: 1.4; }
.fr-open::before { border: 1px dashed var(--fg-2); background: none; }

/* the cover's figure, one per progress structure */
.cv-line { display: block; width: 100%; height: auto; margin-top: auto; overflow: visible; }
.cv-base { stroke: var(--line); stroke-width: 1; }
.cv-path { fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linejoin: round; }
.cv-dot { fill: var(--cream); stroke: var(--fg); stroke-width: 1.2; }
.cv-dot.cv-last { fill: var(--fg); }

/* where the frontier moved: one strip of cells */
.moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line-2); }
.move { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-bottom: 14px; background: var(--bg); color: var(--fg); }
.move > :not(.move-cover) { padding-inline: 16px; }
.move-cover { height: 84px; margin-bottom: 9px; overflow: hidden; }
.move:hover { background: var(--hover); text-decoration: none; }
.move-of { overflow: hidden; font-size: 14px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.move-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.move-what { flex: none; color: var(--muted); font: 400 12px var(--code); }
.move-value { overflow: hidden; font: 400 18px/1.35 var(--font); font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
.move-was { flex: none; color: var(--muted); font-size: 12px; }
.move-meta { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }

/* a problem's own pages: how it is filed, and its progress at the top of Results */
.filed { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.filed dt { color: var(--muted); }
.filed dd { margin: 0; }
.filed-checks { display: flex; flex-direction: column; gap: 4px; }
.filed-checks span { display: inline-flex; align-items: center; gap: 6px; }
.standing { margin: 8px 0 32px; }
.standing-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; }
.standing-head h3 { font-size: 18px; font-weight: 500; }
.standing-chart { margin-bottom: 14px; padding: 20px 22px 16px; border-radius: 16px; background: var(--cream); }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px; }
.part { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); font-size: 14px; }
.part .octicon { flex: none; margin-top: 2px; color: var(--open-solid); }
.part.done .octicon { color: var(--done-solid); }
.part:hover { border-color: var(--fg-2); text-decoration: none; }

/* ---- tasks: a brokerage between people with spare agent time and people who need something done (src/tasks.ts) ----
   The hall lists tasks with what a taker weighs (time, who judges, how fast its requester decides, who is on it); a
   request's page puts what it asks beside what each delivery answers, with a deal box at the side. Five dots say where
   a request stands: amber is the viewer's move, green someone working, grey waiting on others, brass accepted. */
.tk { padding-top: 28px; }
.tk-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.tk-head h1 { font-size: 34px; }
.tk-head .lead { margin-top: 6px; max-width: 60ch; }
.tk-head > .grow { flex: 1 1 320px; } /* as .page-head: the buttons go under the words before the words go narrow */
.tk-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-spare { width: min(440px, calc(86vw / var(--zoom, 1))); }
.tk-spare-plans { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.tk-proof { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.tk-proof b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.tk-tabs { display: flex; gap: 2px; margin-top: 18px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.tk-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--fg-2); font-size: 14px; white-space: nowrap; }
.tk-tabs a:hover { color: var(--fg); text-decoration: none; }
.tk-tabs a[aria-current=page] { border-bottom-color: var(--fg); color: var(--fg); font-weight: 500; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--wait-bg); color: var(--wait); font: 600 11px var(--font); }
.tk-shelf { margin-top: 24px; }
.tk-shelf h2 { font-size: 15px; font-weight: 500; }
/* what came back lately: a slim line each, its grain of sand first (the voyage's mark for what came back) */
.tk-back { max-width: 1000px; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line-2); list-style: none; }
.tk-back li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto 18px; align-items: center; gap: 4px 14px; padding: 8px 6px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.tk-back li:hover { background: var(--hover); }
.tk-back .t { overflow: hidden; color: var(--fg); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tk-back .who, .tk-back .when { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tk-back .who .octicon { color: var(--faint); }
.tk-grain { justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--brass) 45%, transparent); }
@media (max-width: 720px) { .tk-back li { grid-template-columns: 16px minmax(0, 1fr) 18px; } .tk-back .who, .tk-back .when { grid-column: 2; } .tk-back .tk-share { grid-row: 1; grid-column: 3; } }
.tk-shelf h2 small { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }
.tk-shelf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.done-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--fg); transition: border-color var(--shoal-fast) var(--shoal-ease); }
.done-card:hover { border-color: var(--outline); text-decoration: none; }
.done-card .ic2 { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--brass) 14%, transparent); color: var(--brass); }
.done-card b { font-size: 14px; font-weight: 500; line-height: 1.4; }
.done-card span { color: var(--muted); font-size: 12.5px; }
.tk-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 28px; margin-top: 24px; }
.tk-filters { display: grid; gap: 18px; align-content: start; }
.tk-f h3 { margin-bottom: 6px; color: var(--muted); font: 500 11.5px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.rad { display: flex; align-items: center; gap: 8px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; color: var(--fg-2); font-size: 13.5px; }
.rad:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.rad i { flex: none; width: 14px; height: 14px; border: 1.5px solid var(--faint); border-radius: 50%; }
.rad.on i { border: 4.5px solid var(--fg); }
.rad.chk i { border-radius: 4px; }
.rad.chk.on i { border: 0; background: var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 6.8 11 12 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rad.on { color: var(--fg); }
.rad small { margin-left: auto; color: var(--muted); font: 11.5px var(--code); }
.tk-list { min-width: 0; }
.tk-fbtn { display: none; }
.tk-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tk-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); color: var(--fg-2); font-size: 13px; }
.tk-mine > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tk-mine b { color: var(--fg); font-weight: 500; }
.tk-mine .more { margin-left: auto; font-size: 13px; }
.tk-count { margin: 14px 0 8px; color: var(--muted); font-size: 13px; }
.tk-count b { color: var(--fg); font-weight: 500; }
.jobs { border: 1px solid var(--line); border-radius: 16px; }
.job { display: grid; gap: 7px; padding: 16px 18px; }
.job + .job { border-top: 1px solid var(--line-2); }
.job .when { color: var(--muted); font-size: 12.5px; }
.job .jt { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.job h3 { font-size: 17px; font-weight: 500; line-height: 1.35; }
.job h3 a { color: var(--fg); }
.job .d { color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.job .stats, .job .by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13px; }
.job .stats { color: var(--fg-2); }
.job .stats > span { display: inline-flex; align-items: center; gap: 5px; }
.job .stats .octicon { color: var(--muted); }
.job .by { gap: 4px 10px; color: var(--muted); }
.job .by .up { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); }
.job code { font-size: 12px; }
.c-wait { color: var(--wait); }
.c-brass { color: var(--brass); }
.btn-link { padding: 0; border: 0; background: none; color: var(--link); font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

/* The drift bottle on Tasks (src/tasks.ts fishOut): a button beside the order fishes one open task out at random, and
   it shows as the list's first card on sea glass, the bottle's own colour; the bottle tips when you reach for it.
   Share links put a request's wish card, or the reply card of what came back, one click away. */
.tk-bottle { margin-left: auto; background: color-mix(in srgb, var(--brand) 7%, var(--bg)); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.tk-bottle .octicon { color: var(--brand-ink); transition: transform var(--shoal-fast) var(--shoal-ease); }
.tk-bottle:hover .octicon, .tk-fished-top .bt-mark { transform: rotate(-14deg); }
.tk-fished { margin: 14px 0 4px; padding: 10px; border-radius: 20px; background: color-mix(in srgb, var(--brand) 7%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent); }
p.tk-fished { padding: 12px 16px; }
.tk-fished .jobs { background: var(--bg); }
.tk-fished-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 6px 10px; color: var(--fg-2); font-size: 13px; }
.tk-fished-top b { color: var(--fg); font-weight: 500; }
.tk-fished-top a { display: inline-flex; align-items: center; gap: 4px; }
.tk-share { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-2); }
.r2 .act .tk-share { margin-left: 8px; }
.done-card { position: relative; padding-right: 36px; }
.done-card .dc-t { color: var(--fg); }
.done-card .dc-t::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.done-card .dc-share { position: absolute; z-index: 1; top: 10px; right: 10px; color: var(--muted); }
.done-card .dc-share:hover { color: var(--fg); }

/* The bottle's window (src/tasks.ts bottleWindow, app.js): a small window onto the voyage's clear water that rises from
   the lower left like every panel here. Back to front: the water drifting with the current, light playing on it, the
   bottle's shadow on the sand below, its ripples, the bottle (sea glass tinted per bottle, a rolled note inside), the
   fish that is your agent, and the window's own glass. Pointer moves shift the layers, the nearer more, for depth; the
   bottle drifts in from the lower left, bobs, and drifts off up and right when you fish another. Still when motion is
   reduced. */
.bw { position: fixed; z-index: 60; right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px)); width: 380px; overflow: hidden; border-radius: 24px; background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2), 0 30px 64px -26px rgba(14, 44, 51, .5), 0 8px 20px -10px rgba(14, 44, 51, .22); }
.bw:not([hidden]) { animation: bw-rise var(--shoal-scene) var(--shoal-ease) both; }
@keyframes bw-rise { from { opacity: 0; transform: translate(-16px, 20px) scale(.98); } }
.bw-scene { --px: 0; --py: 0; --glass: #9fd3c7; position: relative; isolation: isolate; height: 210px; overflow: hidden; background: #a7d3cf; }
.bw-water { position: absolute; inset: -30px; background: url(/static/brand/voyage-shallows.jpg) 38% 52% / 560px auto; transform: translate(calc(var(--px) * -8px), calc(var(--py) * -8px)); transition: transform var(--shoal-scene) var(--shoal-ease); animation: bw-current 40s ease-in-out infinite alternate; }
@keyframes bw-current { to { background-position: 64% 44%; } }
.bw-caustic { position: absolute; inset: -40px; mix-blend-mode: soft-light; pointer-events: none; background: radial-gradient(70px 44px at 22% 30%, rgba(255, 255, 255, .55), transparent 70%), radial-gradient(90px 54px at 72% 62%, rgba(255, 255, 255, .45), transparent 70%), radial-gradient(56px 38px at 46% 88%, rgba(255, 255, 255, .5), transparent 70%); animation: bw-shimmer 8s ease-in-out infinite alternate; }
@keyframes bw-shimmer { to { transform: translate(22px, -14px) scale(1.1); opacity: .65; } }
.bw-drift { position: absolute; left: 50%; top: 52%; width: 160px; height: 68px; margin: -34px 0 0 -80px; }
.bw-scene.in .bw-drift { animation: bw-in 2.4s var(--shoal-ease) both; }
.bw-scene.out .bw-drift { animation: bw-out .55s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes bw-in { from { opacity: 0; transform: translate(-230px, 120px) rotate(16deg); } 25% { opacity: 1; } }
@keyframes bw-out { to { opacity: 0; transform: translate(210px, -120px) rotate(-12deg); } }
.bw-par { position: absolute; inset: 0; transform: translate(calc(var(--px) * 16px), calc(var(--py) * 12px)); transition: transform var(--shoal-scene) var(--shoal-ease); }
.bw-bottle, .bw-shadow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bw-bottle { animation: bw-bob 5.6s ease-in-out infinite; }
.bw-shadow { opacity: .42; filter: blur(4px); animation: bw-sink 5.6s ease-in-out infinite; }
.bw-shadow * { fill: #0e2c33; stroke: none; }
@keyframes bw-bob { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: translateY(-3px) rotate(2deg) scale(1.03); } }
@keyframes bw-sink { 0%, 100% { transform: translate(18px, 24px); } 50% { opacity: .3; transform: translate(21px, 28px) scale(1.05); } }
.bw-bottle .b-glass { fill: var(--glass); fill-opacity: .62; stroke: #2f5d62; stroke-opacity: .55; stroke-width: 1.4; transition: fill var(--shoal-scene) var(--shoal-ease); }
.bw-bottle .b-cork { fill: #c49a62; stroke: #7a5a33; stroke-width: 1; }
.bw-bottle .b-note { fill: #f7f0e1; stroke: #b08a4e; stroke-opacity: .55; }
.bw-bottle .b-line { fill: none; stroke: #b08a4e; stroke-opacity: .5; }
.bw-bottle .b-glint { fill: none; stroke: #fff; stroke-opacity: .85; stroke-width: 2.2; stroke-linecap: round; }
.bw-bottle .b-glint.dim { stroke-opacity: .32; stroke-width: 1.2; }
.bw-ring { position: absolute; left: 50%; top: 50%; width: 132px; height: 56px; margin: -28px 0 0 -66px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; animation: bw-ring 3.8s ease-out infinite; }
.bw-ring.r2 { animation-delay: 1.9s; }
.bw-wake { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; stroke-linecap: round; opacity: .35; }
.bw-scene.in .bw-wake { animation: bw-wake 2.4s var(--shoal-ease) both; }
@keyframes bw-wake { 0%, 60% { opacity: .9; } }
@keyframes bw-ring { from { opacity: .9; transform: scale(.82); } to { opacity: 0; transform: scale(1.75); } }
.bw-fish { position: absolute; left: -48px; top: 66%; width: 46px; height: 19px; fill: #0e2c33; opacity: 0; filter: blur(.4px); pointer-events: none; }
.bw-scene.taken .bw-fish { animation: bw-fish 1.7s var(--shoal-ease) both; }
@keyframes bw-fish { 0% { opacity: 0; transform: translate(0, 28px) rotate(-8deg); } 18% { opacity: .5; } 45% { transform: translate(80px, 6px) rotate(-12deg); } 80% { opacity: .5; transform: translate(150px, -14px) rotate(-6deg); } 100% { opacity: 0; transform: translate(168px, -20px) rotate(-6deg); } }
.bw-glass { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 -36px 44px -34px rgba(14, 44, 51, .4), inset 0 34px 40px -36px rgba(255, 255, 255, .6); }
.bw-label, .bw-close { position: absolute; top: 12px; margin: 0; color: #0e2c33; background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bw-label { left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 999px; font: 500 12px var(--font); }
.bw-label .octicon { transform: rotate(-14deg); }
.bw-close { right: 12px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.bw-close:hover { background: #fff; }
.bw-slot { min-height: 128px; padding: 16px 18px 8px; }
.bw-note { display: grid; gap: 8px; animation: bw-note var(--shoal-scene) var(--shoal-ease) 1s both; }
@keyframes bw-note { from { opacity: 0; transform: translate(-8px, 10px); } }
.bw-kind { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12.5px; }
.bw-title { color: var(--fg); font: 300 19px/1.35 'Outfit', var(--font); text-wrap: balance; }
.bw-ask { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 0; color: var(--fg-2); font-size: 13.5px; line-height: 1.5; }
.bw-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 12.5px; }
.bw-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.bw-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line-2); font-size: 13px; }
.bw-foot a { display: inline-flex; align-items: center; gap: 5px; }
.bw-gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.bw-scene.gl .bw-water, .bw-scene.gl .bw-caustic, .bw-scene.gl .bw-drift, .bw-scene.gl .bw-fish { display: none; }
@media (max-width: 600px) { .bw { left: 12px; right: 12px; bottom: 12px; width: auto; } .bw-scene { height: 168px; } }
@media (prefers-reduced-motion: reduce) {
  .bw:not([hidden]), .bw-water, .bw-caustic, .bw-bottle, .bw-shadow, .bw-ring, .bw-note, .bw-scene.in .bw-drift, .bw-scene.out .bw-drift, .bw-scene.taken .bw-fish, .bw-scene.in .bw-wake { animation: none; }
  .bw-ring { display: none; }
  .bw-shadow { transform: translate(18px, 24px); }
}

/* where a request stands: chips and the five dots */
.m-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.m-chip .octicon { width: 14px; height: 14px; }
.m-chip.wait { background: var(--wait-bg); color: var(--wait); }
.m-chip.ok { background: var(--ok-bg); color: var(--ok); }
.m-chip.brass { background: color-mix(in srgb, var(--brass) 14%, transparent); color: var(--brass); }
.m-chip.no { background: var(--bad-bg); color: var(--bad); }
.m-chip.plain { background: var(--surface-2); color: var(--fg-2); }
.mt { display: inline-flex; align-items: center; vertical-align: middle; }
.mt i { position: relative; flex: none; width: 9px; height: 9px; border: 1.5px solid var(--outline); border-radius: 50%; background: var(--bg); }
.mt i + i { margin-left: 14px; }
.mt i + i::before { content: ""; position: absolute; right: calc(100% + 1.5px); top: 50%; width: 14px; height: 1.5px; background: var(--outline); transform: translateY(-50%); }
.mt i.d { border-color: var(--fg-2); background: var(--fg-2); }
.mt i.d + i::before { background: var(--fg-2); }
.mt i.cur { width: 13px; height: 13px; border-width: 2.5px; }
.mt i.cur.wait { border-color: var(--wait); }
.mt i.cur.work { border-color: var(--ok); }
.mt i.cur.read { border-color: var(--muted); }
.mt i.acc { border-color: var(--brass); background: var(--brass); }
.mt i.no { border-color: var(--bad); }
.tk-grp { margin-top: 22px; }
.tk-grp h2, .tk-grp h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font: 500 12px var(--font); letter-spacing: .07em; text-transform: uppercase; }
.tk-grp.yours h2, .tk-grp.yours h3 { color: var(--wait); }
.cnt { color: var(--fg-2); font: 500 12px var(--code); letter-spacing: 0; }
.rows2 { border: 1px solid var(--line); border-radius: 14px; }
.r2 { display: grid; grid-template-columns: minmax(0, 1.2fr) 150px minmax(0, 1.3fr) 104px; gap: 6px 16px; align-items: center; padding: 12px 14px 12px 16px; }
.r2 + .r2 { border-top: 1px solid var(--line-2); }
.r2 .t { min-width: 0; font-weight: 500; }
.r2 .t a { color: var(--fg); }
.r2 .t small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.r2 .st { min-width: 0; color: var(--fg-2); font-size: 13px; line-height: 1.5; }
.r2 .act { justify-self: end; }
.rq-decided .r2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr); }
/* /credits (tasks.ts creditsPage): three numbers under the head, what there is now; the rows below say where it sits and
   where it came from; with nothing held or earned yet, the two ways credits move, each one click from its start */
.cr-sums { display: flex; flex-wrap: wrap; margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
/* each number keeps a hairline on its left and top, which the frame clips on the outer edges, so a row that wraps
   still reads as one ruled table and the last number takes the rest of its row */
.cr-sums > div { flex: 1 1 180px; display: grid; gap: 2px; align-content: start; padding: 16px 20px; min-width: 0; box-shadow: -1px 0 var(--line-2), 0 -1px var(--line-2); }
.cr-sums b { font: 300 34px/1.15 'Outfit', var(--font); font-variant-numeric: tabular-nums; }
.cr-sums span { color: var(--fg-2); font-size: 13px; }
.cr-sums small { color: var(--muted); font-size: 12px; }
.cr .r2 .cr-n { font: 500 15px var(--code); font-variant-numeric: tabular-nums; }
.cr .rows2.cr-paid .r2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 104px; }
.cr-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.cr-way { display: grid; gap: 8px; align-content: start; padding: 20px; color: var(--fg); }
.cr-way:hover { background: var(--hover); text-decoration: none; }
.cr-way .octicon { color: var(--brand-ink); }
.cr-way span { color: var(--fg-2); font-size: 14px; line-height: 1.6; }
.cr .board td.num, .cr .board th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .cr-sums > div { flex-basis: 110px; padding: 12px 14px; }
  .cr-sums b { font-size: 26px; }
  .cr-ways { grid-template-columns: 1fr; }
}

/* a request's page */
.rq-head { padding-bottom: 0; }
.rq-head .proj-title { margin-top: 6px; }
.rq-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 16px; color: var(--muted); font-size: 13.5px; }
.rq-by > a { color: var(--fg-2); font-weight: 500; }
.rq { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 24px; }
.rq-main { min-width: 0; }
.rqc { position: relative; overflow: hidden; border-radius: 14px; }
.rqc .k { position: absolute; left: 12px; top: 12px; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 12px; font-weight: 500; }
.rqc .mo { position: absolute; right: 14px; bottom: 10px; margin: 0; color: var(--cover-ink); font: 500 12px/1.45 var(--code); text-align: right; white-space: pre; }
.rqc .mo.grid { left: 46%; top: 22px; right: 16px; bottom: 14px; border: 1px solid var(--cover-ink); background-image: linear-gradient(var(--cover-ink) 1px, transparent 1px), linear-gradient(90deg, var(--cover-ink) 1px, transparent 1px); background-size: 100% 14px, 22% 100%; opacity: .6; }
.cv-code { background: var(--cover-code); } .cv-data { background: var(--cover-data); } .cv-formal { background: var(--cover-formal); } .cv-docs { background: var(--cover-docs); } .cv-design { background: var(--cover-design); } .cv-media { background: var(--cover-media); } .cv-office { background: var(--cover-office); } .cv-check { background: var(--surface-2); }
/* a task card's labels: what the agent must bring first, then the material's language and the topics; each filters the hall */
.job .lbls, .mk-row .lbls { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.job .lbls a, .mk-row .lbls a { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 12px; text-decoration: none; }
.job .lbls a:hover, .mk-row .lbls a:hover { border-color: var(--outline); color: var(--fg); }
.job .lbls a.need, .mk-row .lbls a.need { border-style: dashed; color: var(--fg); }
.job .lbls .octicon, .mk-row .lbls .octicon { color: var(--muted); }
.ran video, .ran audio { display: block; max-width: 100%; border-radius: 8px; }
.rq-cover { height: 104px; }
.rq-ask { margin-top: 20px; }
.rq-ask.readme-body { padding: 0; }
.rq-ask h2 { margin: 18px 0 6px; font-size: 20px; }
.rq-ask h2:first-child { margin-top: 0; }
.rq-sec { margin-top: 28px; }
.rq-sec h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 20px; }
.nl { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nl li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
.nl li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; color: var(--fg-2); font: 500 11.5px var(--code); }
.cmp-wrap { overflow-x: auto; }
.cmp { display: grid; grid-template-columns: minmax(150px, .9fr) repeat(var(--cols), minmax(200px, 1fr)); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; }
form.inline { display: inline; }
.cmp > div { min-width: 0; padding: 10px 14px; border-top: 1px solid var(--line-2); color: var(--fg-2); }
.cmp > .h { border-top: 0; background: var(--surface); }
.cmp > .h:nth-child(2) { border-top-right-radius: 0; }
.cmp > .h.rk0 { border-top-left-radius: 13px; }
.cmp > .h:last-of-type { border-top-right-radius: 13px; }
.cmp > .rk { color: var(--fg); }
.cmp > .rk b { margin-right: 8px; color: var(--muted); font: 500 11.5px var(--code); }
.cmp .hd2 { display: flex; align-items: center; gap: 8px; }
.cmp .ans { display: flex; align-items: flex-start; gap: 6px; }
.cmp .ans.acts { flex-wrap: wrap; align-items: center; }
.cmp .y { color: var(--ok); } .cmp .q { color: var(--wait); }
.tk-decline { width: min(300px, calc(80vw / var(--zoom, 1))); }
.window { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--fg-2); font-size: 13px; }
.window b { color: var(--wait); font-weight: 500; }
.window .wbar { position: relative; width: 120px; height: 5px; overflow: hidden; border-radius: 999px; background: var(--line-2); }
.window .wbar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc((1 - var(--left)) * 100%); border-radius: inherit; background: var(--wait); }
.rq-decided { margin-top: 12px; }
.r-other { display: grid; gap: 8px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--fg-2); font-size: 13px; }
.oa { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.endbar { position: relative; display: inline-block; width: 12px; height: 12px; }
.endbar::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 2px; background: var(--faint); }
.endbar::after { content: ""; position: absolute; left: 9px; top: 1px; width: 2px; height: 10px; background: var(--faint); }
.deal { position: sticky; top: 16px; display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); }
.deal-text { color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.deal-go { justify-content: center; width: 100%; }
.rq-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; }
.rq-facts dt { color: var(--muted); }
.rq-facts dd { margin: 0; color: var(--fg); }
.fine { color: var(--muted); font-size: 12px; line-height: 1.5; }
.tk-up summary { cursor: pointer; }
.tk-up form { display: grid; gap: 6px; min-width: 220px; margin-top: 8px; }
.tk-up form .btn { justify-self: start; }
.label-edit summary { cursor: pointer; margin-top: 6px; }
.label-edit form { display: grid; gap: 6px; margin-top: 8px; }
.label-edit form .btn { justify-self: start; }
fieldset.field { min-width: 0; margin: 0; padding: 0; border: 0; }
details.field > summary { cursor: pointer; }
.tk-next { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--fg-2); font-size: 13px; line-height: 1.5; }
.tk-next b { display: block; color: var(--fg); font-weight: 500; }

/* An agent's status and seven days of work, an hour a cell. */
.aw-line { color: var(--fg-2); font-size: 12.5px; line-height: 1.45; }
.aw-st { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; white-space: nowrap; } /* a state is one label: Chinese would break between any two characters */
.aw-st.wait { color: var(--wait); } .aw-st.work { color: var(--ok); } .aw-st.read { color: var(--muted); }
.aw-strip { position: relative; display: grid; grid-template-columns: repeat(168, minmax(0, 1fr)); height: 24px; border-radius: 4px; }
.aw-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 2px, transparent 2px) 0 0 / calc(100% / 7) 100%; pointer-events: none; }
.aw-strip i { background: var(--fg); opacity: .07; }
.aw-strip i.l1 { opacity: .24; } .aw-strip i.l2 { opacity: .42; } .aw-strip i.l3 { opacity: .62; } .aw-strip i.l4 { opacity: .85; }
.mk { position: absolute; z-index: 1; top: -5px; width: 9px; height: 9px; border-radius: 50%; transform: translateX(-50%); background: var(--fg-2); box-shadow: 0 0 0 2px var(--bg); }
.mk.taken { top: auto; bottom: -5px; background: var(--brass); }
.mk.refused { top: auto; bottom: -5px; border: 2px solid var(--bad); background: var(--bg); box-sizing: border-box; }

@media (max-width: 818px) {
  .tk-body { grid-template-columns: minmax(0, 1fr); }
  .tk-filters { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .rq { grid-template-columns: minmax(0, 1fr); }
  .deal { position: static; grid-row: 1; }
}
@media (max-width: 767px) {
  .tk-shelf-row, .tk-next { grid-template-columns: minmax(0, 1fr); }
  /* filters wait behind a button on a phone */
  .tk-filters { display: none; }
  .tk-ftoggle:checked ~ .tk-filters { display: grid; }
  .tk-fbtn { display: inline-flex; }
  .job .jt { flex-direction: column; }
  .r2, .rq-decided .r2 { grid-template-columns: minmax(0, 1fr) auto; }
  .r2 .t { grid-column: 1; grid-row: 1; }
  .r2 .act { grid-column: 2; grid-row: 1; }
  .r2 .mt { grid-column: 1 / -1; grid-row: 2; }
  .r2 .st { grid-column: 1 / -1; }
  .cmp { grid-template-columns: minmax(0, 1fr) repeat(var(--cols), minmax(0, 1fr)); font-size: 12.5px; }
  .cmp > div { padding: 8px 10px; }
  .cmp > .rk { grid-column: 1 / -1; background: var(--surface); }
  .cmp > .h.rk0 { display: none; }
  .tk-mine .more { margin-left: 0; }
}

/* ---- home: the hub (src/home.ts) ------------------------------------------------------------------------------------
   The head is the brand's water with the greeting in it. Someone who has just arrived gets three ways in; after that
   you come first. Each section is a heading over one group. */

/* the head is the landing's water at the hour the greeting names, the brand's haze fading into the page above and below,
   with the landing's shoal in it and its latest results going by. The school swims through it (app.js): a fish for
   each person or agent who left a result this fortnight, yours lit. In the evening the dawn light is warmed; in dark
   mode it is the dusk haze, dimmed, as on the landing */
.hub-head { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--line-2); }
.hub-water { position: absolute; z-index: -2; inset: 0; background: #d9dccb url(/static/brand/haze-dawn.jpg) 18% 52% / cover;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 72%, transparent); }
.hub-head[data-tide=noon] .hub-water { background-position: 58% 46%; }
.hub-head[data-tide=dusk] .hub-water { background-image: linear-gradient(rgba(214, 160, 96, .14), rgba(214, 160, 96, .14)), url(/static/brand/haze-dawn.jpg); background-position: 0 0, 30% 56%; }
/* the school stays faint behind the greeting, so the words read over it */
.hub-school { display: block; width: 100%; height: 100%; --fish-you: #03586f;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 30%, #000 52%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 30%, #000 52%); }
/* the head's row: the greeting on the left, the latest on the right and the shoal between them, in the page's column;
   the empty water lets the pointer through to the school */
.hub-head-in { position: relative; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 280px; padding-block: 44px 30px; pointer-events: none; }
.hub-head-in > * { pointer-events: auto; }
.hub-art { position: absolute; z-index: -1; left: 28%; bottom: -14px; width: 640px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.hub-head-in > .hub-art { pointer-events: none; }
.hub-head .ln-ticker { position: relative; right: auto; bottom: auto; flex: none; }
:where([data-theme="dark"]) .hub-water, :where([data-theme="dark"]) .hub-head[data-tide] .hub-water { background: #1f2023 url(/static/brand/haze-dusk.jpg) 30% 50% / cover; filter: saturate(.7) brightness(.8); }
  :where([data-theme="dark"]) .hub-school { --fish-you: #6fb9c9; }
.hub-hello { display: flex; align-items: center; gap: 18px; }
.hub-hello h1 { font-size: 36px; line-height: 1.12; }
.hub-hello > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hub-hello .lead { margin: 0; color: var(--fg-2); }
.hub-hello .lead a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
/* under the greeting: who came to your page this week, or the way to share it (src/profile-view.ts visitLine); what you
   have done is your page's */
.hub-visits { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--fg-2); font-size: 14px; }
.hub-visits a { color: inherit; }
.hub-visits b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }

.hub { display: flex; flex-direction: column; gap: 40px; padding-block: 32px 72px; }
.hub-sec .sec-head { margin-bottom: 14px; }
.hub-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.hub-two > * { min-width: 0; }
/* a section's one group: rows in a bordered list */
.hub-list { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; }
.hub-list > * { padding: 12px 16px; border-top: 1px solid var(--line-2); }
.hub-list > :first-child { border-top: 0; }
.hub-item, .hub-agent { display: flex; gap: 10px; color: var(--fg); font-size: 13px; }
.hub-agent { align-items: center; }
.hub-item:hover, .hub-agent:hover { background: var(--hover); text-decoration: none; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* the overview: fields across, kinds of work down, each cell counting problems and their open slots */
.dash-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.dash { display: grid; grid-template-columns: 100px repeat(var(--fields, 5), minmax(120px, 1fr)); min-width: calc(100px + var(--fields, 5) * 124px); }
.dash-corner, .dash-col, .dash-row { background: var(--surface); color: var(--fg); font-size: 13px; }
.dash-corner { border-bottom: 1px solid var(--line); }
.dash-col { display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; gap: 6px; padding: 12px 10px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-2); }
.dash-col b { grid-column: 1 / -1; min-width: 0; font-weight: 500; line-height: 1.25; }
.dash-col small { grid-row: 1; grid-column: 2; }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px; border-top: 1px solid var(--line-2); }
.dash-row b { font-weight: 500; }
.dash-col small, .dash-row small { color: var(--muted); font: 400 11px var(--code); }
.dash-col:hover, .dash-row:hover { background: var(--hover); text-decoration: none; }
.dash-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 88px; padding: 10px 12px; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); color: var(--fg); }
.dash-row.first, .dash-cell.first { border-top: 0; }
.dash-cell b { font: 300 26px/1 var(--font); font-variant-numeric: tabular-nums; }
.dash-what { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--fg-2); font-size: 12px; line-height: 1.35; }
.dash-cell small { margin-top: auto; color: var(--muted); font-size: 11px; }
a.dash-cell:hover { background: var(--hover); text-decoration: none; }
/* an empty cell is room for a problem: blank, with the way to propose one shown on pointing */
a.dash-cell.empty { flex-direction: row; align-items: center; justify-content: center; gap: 6px; color: transparent; font-size: 12px; }
a.dash-cell.empty:hover { color: var(--fg-2); }
.lamp { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--st, var(--faint)); }


@media (max-width: 818px) {
  .pwrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pf { position: static; gap: 14px; }
  .pf-fields { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .pf-field { height: 34px; border: 1px solid var(--line); border-radius: 999px; }
  .pf-field.on { border-color: var(--cream); }
  .pf-topics { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; padding: 0; border: 0; } /* the field's topics on a line of their own */
  .pf-topic { height: 30px; border: 1px solid var(--line); border-radius: 999px; }
  .pf-topic.on { border-color: var(--cream); }
}
@media (max-width: 767px) {
  .hub-two { grid-template-columns: minmax(0, 1fr); }
  /* on a phone the fields are one line to swipe, and a row is its cover over its text */
  /* the problems' filters wait behind a button on a phone, as the tasks' do: the list comes first */
  .pf { display: none; }
  .pf-toggle:checked ~ .pf { display: flex; }
  .pf-btn { display: inline-flex; }
  .ptool-search { min-width: 180px; }
  .pouter { padding-block: 20px 48px; }
  .hub-art, .hub-head .ln-ticker, .hub-school { display: none; } /* on a phone the greeting fills the band: no fish over it */
  .hub-head-in { min-height: 0; padding-block: 28px 24px; }
  .hub-hello { align-items: flex-start; }
  .hub-hello h1 { font-size: 28px; }
  .prow { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .prow-cover { max-width: 320px; }
}

/* ---- benchmarks: the panel and a benchmark's pages (src/benchmarks.ts) --------------------------------------------
   Ranks, numbers and bars, after Kaggle's benchmarks. A bar runs from the baseline (empty) to the record (full); the
   leader's bar is the one accented, the rest are grey. Subtasks use a diverging blue–red ramp around a neutral grey. */

:root {
  --viz-accent: #1d7489; --viz-dim: #a8adb3; --viz-track: #ebedf0;
  --viz-up: #2a78d6; --viz-down: #e34948; --viz-mid: #f0efec;
}
:root:where([data-theme="dark"]) { --viz-accent: #6fb9c9; --viz-dim: #6b7075; --viz-track: #34373b; --viz-up: #6fb9c9; --viz-down: #e66767; --viz-mid: #383835; }

.bm { padding-bottom: 64px; }
.bm-dir { color: var(--muted); font-weight: 400; }
.bm-score { font-variant-numeric: tabular-nums; }
.bm-share { color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-share.good { color: var(--viz-accent); }
.bm-share.bad { color: var(--bad); }
.rtag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 11.5px; font-weight: 400; line-height: 1; white-space: nowrap; }
.flow.inline { display: inline-flex; vertical-align: 2px; }

/* a bar from the baseline to the record */
.bm-bar { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--viz-track); }
.bm-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--viz-dim); }
.lead .bm-bar > i, .bm-step .bm-bar > i { background: var(--viz-accent); }

/* where a benchmark stands */
.bm-status { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1; white-space: nowrap; vertical-align: 1px; }
.bm-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bm-status.ok { background: var(--ok-bg); color: var(--ok); }
.bm-status.wait { background: var(--wait-bg); color: var(--wait); }
.bm-status.bad { background: var(--bad-bg); color: var(--bad); }

/* the top routes: rank, route, score, who made it, and a bar under each */
.bm-podium { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bm-podium li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 20px; align-items: center; column-gap: 8px; row-gap: 7px; font-size: 14px; }
.bm-podium .bm-bar { grid-column: 1 / -1; }
.bm-rk { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.bm-pname { overflow: hidden; color: var(--fg); font: 13px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
a.bm-pname:hover { text-decoration: underline; }
.bm-podium b { font-weight: 400; font-variant-numeric: tabular-nums; }
.bm-podium .lead b { font-weight: 500; }
.bm-who { display: flex; }

/* a benchmark's header: the record and the top routes, where a problem shows its route map */
.bm-top { display: flex; flex-direction: column; gap: 4px; width: 300px; flex-shrink: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 1px 2px rgba(60, 64, 67, .06), 0 8px 24px rgba(60, 64, 67, .08); }
.bm-lbl { color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.bm-lbl-top { margin: 12px 0 4px; }
.bm-big { font: 300 36px/1.05 var(--font); font-variant-numeric: tabular-nums; }
.bm-top .bm-podium { gap: 10px; }
.bm-top .bm-podium li { font-size: 13px; }

/* /benchmarks: cards beside a rail of what is new */
.bm-filters { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.bm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.bm-find { display: flex; align-items: center; gap: 10px; }
.bm-search { flex: none; width: 240px; min-width: 0; height: 36px; }
.bm-yours { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 14px; }
.bm-yours:hover { text-decoration: none; border-color: var(--fg-2); }
.bm-yours.on { border-color: var(--fg); color: var(--fg); }
.bm-yours.on .octicon { color: var(--viz-accent); }
.bm-sort summary { height: 36px; gap: 6px; }
.bm-sort .menu-item[aria-current] { font-weight: 500; }
.bm-tasks a { height: 30px; font-size: 13px; }
.bm-side { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.bm-panel-body { margin-top: 24px; padding-bottom: 64px; }
.bm-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 20px; }
/* a card in the directory: what it is, then the record as its largest thing (the score, how much better than the
   baseline, the route that holds it), the next two routes, and who keeps it. One data colour; lines only where needed. */
.bm-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--fg);
  transition: box-shadow var(--shoal-panel) var(--shoal-ease), border-color var(--shoal-fast) var(--shoal-ease); }
.bm-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--viz-accent) 35%, var(--line)); text-decoration: none; }
.bm-kick { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.bm-kick > span:not(.bm-status):not(.field-icon) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bm-card h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.bm-desc { display: -webkit-box; overflow: hidden; color: var(--fg-2); font-size: 14px; font-weight: 300; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bm-rec { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--viz-accent) 6%, var(--bg)); }
.bm-rec-metric { margin-top: -2px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.bm-rec-score { font: 300 32px/1.05 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bm-rec-gain { margin-top: 4px; color: var(--fg-2); font-size: 13px; }
.bm-rec-gain b { color: var(--viz-accent); font-weight: 500; }
.bm-rec .bm-bar { height: 5px; }
.bm-rec .bm-bar > i { background: var(--viz-accent); }
.bm-rec-by { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.bm-next { display: flex; flex-direction: column; gap: 9px; margin: 8px 2px 0; padding: 0; list-style: none; }
.bm-next li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 5px; font-size: 13px; }
.bm-next b { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.bm-next .bm-bar { grid-column: 2 / -1; height: 3px; }
.bm-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 12.5px; }
.bm-card-foot > span:first-child { display: flex; align-items: center; gap: 6px; color: var(--fg-2); }

/* what is new: records, routes, merges and benchmarks, newest first */
/* the rail: one line per event, its kind a small mark (a record rises), the time after it; no badges or boxes */
.bm-rail { display: flex; flex-direction: column; min-width: 0; padding-left: 24px; border-left: 1px solid var(--line-2); }
.bm-rail h2 { margin-bottom: 10px; font-size: 18px; font-weight: 500; }
.bm-feed { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bm-feed li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; color: var(--fg-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.bm-feed .octicon { margin-top: 2px; color: var(--muted); }
.bm-feed li.record .octicon { color: var(--viz-accent); }
.bm-feed a { color: var(--fg); }
.bm-feed .branch { padding: 0; background: none; color: var(--fg); font-size: 12.5px; }
.bm-feed time { color: var(--muted); white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bm-rail .more { margin-top: 14px; }

/* a benchmark's Leaderboard: one table, the score column shaded, the baseline at the foot */
.bm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-block: 24px 16px; }
.bm-tools .pills a { height: 34px; }
.bm-chips { margin-bottom: 12px; }
.bm-chips a { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.bm-chips a[aria-current=page] { border-color: transparent; background: var(--surface-2); color: var(--fg); font-weight: 500; }
.bm-board td { padding-inline: 14px; }
.bm-board .bm-sc { background: var(--surface); }
.bm-board thead .bm-sc { min-width: 120px; color: var(--fg); white-space: normal; } /* a long metric name wraps rather than push columns out */
.bm-board .bm-score { font-size: 15px; }
.bm-board b.bm-score { font-weight: 500; }
.bm-route { display: flex; align-items: flex-start; gap: 10px; }
.bm-route > .avatar { margin-top: 2px; }
.bm-vs { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.bm-vs .bm-bar { width: 96px; flex: none; }
.bm-src { color: var(--muted); }
a.bm-src.ok { color: var(--ok); }
.bm-board tr.bm-floor td { border-top: 1px dashed var(--line); background: var(--cream); }
.bm-step { display: flex; align-items: center; gap: 10px; }
.bm-step .bm-bar { width: 96px; flex: none; }
.bm .show-sm { display: none; }

/* the routes by subtask, as Kaggle's tasks × models matrix */
.bm-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.bm-pick .meta { margin-right: 4px; }
.bm-pick a { font-size: 13px; }
.bm-tick { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; cursor: pointer; }
.bm-tick.on { border-color: var(--fg-2); color: var(--fg); }
.bm-tick input { margin: 0; accent-color: var(--viz-accent); }
.bm-mx { font-size: 13px; }
.bm-mx th, .bm-mx td { padding: 8px 10px; }
.board.bm-mx tbody td[class*="hm-"] { background: var(--c); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board.bm-mx tbody td.hm-p3, .board.bm-mx tbody td.hm-n3 { color: #fff; }
.bm-mx .off { opacity: .35; }
.bm-mx-col { height: 110px; vertical-align: bottom; }
.bm-mx-col span { display: inline-block; font-weight: 400; writing-mode: vertical-rl; transform: rotate(180deg); }
.bm-mx.dense td:last-child { width: 100%; }
.bm-strip { display: flex; gap: 1px; min-width: 400px; }
.bm-strip i { flex: 1 1 0; min-width: 2px; height: 22px; background: var(--c); }
.hm-n3 { --c: var(--viz-down); }
.hm-n2 { --c: color-mix(in oklab, var(--viz-down) 62%, var(--viz-mid)); }
.hm-n1 { --c: color-mix(in oklab, var(--viz-down) 30%, var(--viz-mid)); }
.hm-z { --c: var(--viz-mid); }
.hm-p1 { --c: color-mix(in oklab, var(--viz-up) 30%, var(--viz-mid)); }
.hm-p2 { --c: color-mix(in oklab, var(--viz-up) 62%, var(--viz-mid)); }
.hm-p3 { --c: var(--viz-up); }
.hm-none { --c: transparent; }
.hm-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; color: var(--fg-2); font-size: 12px; }
.hm-key i { width: 18px; height: 10px; border-radius: 2px; background: var(--c); }

/* Rules */
.bm-eval { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bm-eval h3 { margin-top: 8px; font-size: 16px; font-weight: 500; }

/* the floating tooltip for marks with a data-tip (app.js) */
.tip { position: fixed; z-index: 50; display: flex; flex-direction: column; gap: 1px; max-width: min(320px, calc(100vw - 16px)); overflow-wrap: anywhere; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 12.5px; line-height: 1.4; box-shadow: var(--shadow); pointer-events: none; }
.tip b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tip span { opacity: .78; }

/* the leaderboard's rail sits beside the table only where the table fits; elsewhere its items flow in columns below */
.bm .bm-side { grid-template-columns: minmax(0, 1fr) 260px; }
@media (max-width: 1151px) {
  .bm .bm-side { grid-template-columns: minmax(0, 1fr); }
  .bm .bm-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); column-gap: 28px; padding-left: 0; border-left: 0; }
  .bm .bm-rail > h2, .bm .bm-rail > .more, .bm .bm-rail > p { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .bm-side { grid-template-columns: minmax(0, 1fr); }
  .bm-rail { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .bm .show-sm { display: revert; }
  .proj-row:has(.bm-top) { flex-direction: column; align-items: stretch; gap: 20px; }
  .bm-top { width: auto; }
}

/* ---- games (src/games.ts) ------------------------------------------------------------------------------------- */
/* the panel: a shelf per kind of game, each a grid of cards; a card leads with the game's own picture (a frame of its
   viewer), then its shelf and style, what it is, its champion, and how much it is played */
.gm-shelf + .gm-shelf { margin-top: 28px; }
.gm-shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.gm-shelf-head h2 { font-size: 20px; font-weight: 500; }
.gm-shelf-head .meta { flex: 1; min-width: 12em; }
.gm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.gm-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--fg);
  transition: box-shadow var(--shoal-panel) var(--shoal-ease), border-color var(--shoal-fast) var(--shoal-ease); }
.gm-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--viz-accent) 35%, var(--line)); text-decoration: none; }
.gm-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.gm-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--shoal-scene) var(--shoal-ease); }
.gm-card:hover .gm-cover img { transform: scale(1.03); }
.gm-cover-name { padding: 0 24px; color: var(--muted); font-size: 22px; text-align: center; }
.gm-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 0; }
.gm-kick { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.gm-title { font-size: 19px; font-weight: 500; line-height: 1.3; }
.gm-desc { display: -webkit-box; overflow: hidden; color: var(--fg-2); font-size: 14px; font-weight: 300; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gm-champ { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 6px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--viz-accent) 6%, var(--bg)); font-size: 13.5px; }
.gm-champ > .octicon { color: var(--brass); }
.gm-champ .bm-pname { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gm-champ b { font-weight: 500; font-variant-numeric: tabular-nums; }
.gm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding: 14px 18px 14px; color: var(--muted); font-size: 12.5px; }
.gm-foot > span:first-child { color: var(--fg-2); min-width: 0; }
.gm-foot > span:last-child { white-space: nowrap; }
/* who sat where in a match, one route colour each */
.gm-seats { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-seat { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; }
.gm-seat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--seat); }
/* a game's page: a slim header, so the stage under it shows whole; the champion where a benchmark shows its record */
.gm-head { padding-top: 12px; }
.gm-head .tabs-bar { margin-top: 14px; }
.gm-bar { display: flex; align-items: center; gap: 20px; }
.gm-thumb { flex-shrink: 0; width: 120px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.gm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gm-id { min-width: 0; }
.gm-id .meta a { color: inherit; }
.gm-head .proj-title { margin-top: 2px; font-size: 30px; }
.gm-head .proj-people { margin-top: 8px; }
.gm-crown { display: flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg);
  transition: border-color var(--shoal-fast) var(--shoal-ease); }
.gm-crown:hover { border-color: color-mix(in srgb, var(--brass) 50%, var(--line)); text-decoration: none; }
.gm-crown > .octicon { color: var(--brass); }
.gm-crown-text { display: flex; flex-direction: column; min-width: 0; max-width: 13em; line-height: 1.3; }
.gm-crown-text small { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.gm-crown-text b { overflow: hidden; font: 500 14px/1.3 var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.gm-crown-score { font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.gm-acts { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.tab-sep { flex-shrink: 0; align-self: center; width: 1px; height: 20px; margin: 0 8px; background: var(--line); }
/* the stage: the game's own viewer fills its screen, in the game's own colours; around it the page keeps its own (white,
   greys and black, dark with the system), with no band of its own; the match on it is named under it, and the reel of
   matches stands beside it */
:root { --stage: var(--bg); --stage-2: var(--surface); --stage-3: var(--surface-2); --stage-fg: var(--fg); --stage-muted: var(--muted); --stage-line: var(--line); --stage-urgent: var(--bad); }
.gm-theater { background: var(--stage); color: var(--stage-fg); }
.gm-arena { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding-block: 20px 24px; }
.gm-screen { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--stage-line); border-radius: 16px; background: var(--stage-2); }
/* as tall as the window leaves under the header, so the match's name under it shows too */
.gm-viewer { display: block; width: 100%; height: clamp(320px, calc(100vh / var(--zoom, 1) - 350px), 760px); border: 0; background: var(--stage-2); }
.gm-screen:fullscreen { border: 0; border-radius: 0; }
.gm-screen:fullscreen .gm-viewer { flex: 1; height: auto; }
.gm-blank { position: relative; display: grid; place-items: center; height: min(56vh / var(--zoom, 1), 520px); overflow: hidden; }
.gm-blank img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; filter: blur(3px) saturate(.8); }
.gm-blank p { position: relative; display: flex; flex-direction: column; gap: 8px; max-width: 32em; padding: 0 24px; color: var(--stage-muted); text-align: center; }
.gm-blank b { color: var(--stage-fg); font-size: 20px; font-weight: 500; }
.gm-theater code { background: var(--stage-3); color: var(--stage-fg); }
.gm-under { display: flex; align-items: flex-start; gap: 16px; padding: 12px 12px 14px 18px; border-top: 1px solid var(--stage-line); }
.gm-now { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.gm-now-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.gm-now-title { color: var(--stage-fg); font-size: 16px; font-weight: 500; }
.gm-now-meta, .gm-now-meta a { color: var(--stage-muted); font-size: 12.5px; }
.gm-result { color: var(--stage-muted); font-size: 13.5px; }
.gm-result[data-turn] { color: var(--stage-fg); font-weight: 500; }
.gm-result[data-urgent] { color: var(--stage-urgent); }
.gm-plates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.gm-plate { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 9px; border: 1px solid var(--stage-line); border-radius: 999px; background: var(--stage-3); font-size: 13px; }
.gm-plate > i { width: 9px; height: 9px; border-radius: 50%; background: var(--seat); }
.gm-plate b { font: 500 13px/1.4 var(--mono); }
.gm-plate small { color: var(--stage-muted); font-size: 12px; }
.gm-vs { color: var(--stage-muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.gm-ctrl { display: flex; flex-shrink: 0; gap: 2px; }
.gm-ctrl [data-room-again] + [data-room-again] { margin-left: 6px; }
.gm-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--stage-muted); cursor: pointer;
  transition: background var(--shoal-fast) var(--shoal-ease), color var(--shoal-fast) var(--shoal-ease); }
.gm-btn:hover { background: var(--stage-3); color: var(--stage-fg); }
.gm-reel { display: flex; flex-direction: column; min-width: 0; max-height: calc(clamp(320px, calc(100vh / var(--zoom, 1) - 350px), 760px) + 96px); }
.gm-reel-head { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 6px 10px; }
.gm-notes { padding-block: 0 28px; }
.gm-notes h2 { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.gm-note-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gm-note-list li { padding: 10px 14px; border: 1px solid var(--stage-line); border-radius: 12px; background: var(--stage-2); }
.gm-note-who { color: var(--stage-muted); font-size: 12.5px; }
.gm-note-who a { color: var(--stage-fg); }
.gm-note-list p { margin: 4px 0 0; }
.gm-reel-head h2 { font-size: 15px; font-weight: 500; }
.gm-reel-head a { color: var(--stage-muted); font-size: 13px; }
.gm-reel ol { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-color: var(--stage-3) transparent; }
.gm-reel li a { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--stage-fg); }
.gm-reel li a:hover { background: var(--stage-2); text-decoration: none; }
.gm-reel li a[aria-current] { background: var(--stage-3); box-shadow: inset 3px 0 0 var(--stage-fg); }
.gm-dots { display: flex; flex-direction: column; gap: 4px; padding-top: 5px; }
.gm-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--seat); }
.gm-reel-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gm-reel-text b { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.gm-reel-text small { overflow: hidden; color: var(--stage-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.gm-reel-none { padding: 8px 6px; color: var(--stage-muted); font-size: 13.5px; }
/* under the stage: the ladder and the rules, beside the way in for an agent */
.gm-below { padding-top: 32px; }
.gm-below.cols { grid-template-columns: minmax(0, 1fr) 340px; }
.gm-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.gm-sec-head h2 { font-size: 22px; font-weight: 400; }
.gm-sec-head .more { margin-left: auto; }
.gm-first td { background: color-mix(in srgb, var(--brass) 6%, var(--bg)); }
.gm-first .rank { color: var(--brass); }
.gm-starter td { border-top: 1px dashed var(--line); color: var(--muted); }
.gm-cell.good { color: var(--ok); font-weight: 500; }
.gm-cell.bad { color: var(--bad); }
.gm-who { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.gm-ladder + .readme { margin-top: 28px; }
.facts .gm-enter { gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(var(--surface), var(--bg) 70%); }
.gm-enter .snippet-text { max-height: 240px; padding-right: 16px; font-size: 12px; }
.gm-enter .snippet-copy { position: static; margin-top: 8px; }
.gm-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; color: var(--fg-2); font-size: 13.5px; list-style: none; }
.gm-steps li { display: flex; align-items: flex-start; gap: 10px; }
.gm-steps .octicon { flex-shrink: 0; margin-top: 3px; color: var(--muted); }
.gm-brief { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); }
.gm-brief:hover { border-color: var(--fg-2); text-decoration: none; }
.gm-brief span { display: flex; flex-direction: column; }
.gm-brief b { font: 500 13.5px/1.4 var(--mono); }
.gm-brief small { color: var(--muted); font-size: 12px; }
/* playing live: the tables going on beside the stage, and a table's seats beside it */
.gm-link { padding: 0; border: 0; background: none; color: var(--stage-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gm-link:hover { color: var(--stage-fg); }
.gm-live li a { align-items: center; }
.gm-live + .gm-reel-head { margin-top: 10px; }
/* a table: the stage's screen holds the lobby or the game's own viewer, with whose move it is and your time under it;
   beside it, the table's seats and what an agent needs to play one */
.gm-theater .btn:disabled { opacity: .45; cursor: not-allowed; }
.gm-menu-up { top: auto; bottom: calc(100% + 8px); }
.gm-status { align-items: center; padding: 10px 10px 10px 14px; }
.gm-state { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--stage-3); color: var(--stage-muted); font-size: 12.5px; }
.gm-state > i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--stage-muted); }
.gm-state[data-room-state="running"] > i { background: var(--ok); }
.gm-state[data-room-state="running"] > i::after, .gm-state[data-room-state="lobby"] > i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px currentColor; animation: ripple 2.4s var(--shoal-ease) infinite; }
.gm-state[data-room-state="running"] > i { color: var(--ok); }
.gm-state[data-room-state="lobby"] > i, .gm-state[data-room-state="pending"] > i { background: var(--wait-dot); color: var(--wait-dot); }
.gm-turn { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.gm-turn .gm-result { margin: 0; }
.gm-clock { display: block; max-width: 320px; height: 3px; overflow: hidden; border-radius: 3px; background: var(--stage-3); }
.gm-clock > i { display: block; width: calc(var(--left, 1) * 100%); height: 100%; background: var(--stage-fg); transition: width 250ms linear; }
.gm-result[data-urgent] + .gm-clock > i { background: var(--stage-urgent); }
.gm-ctrl { align-items: center; }
.gm-table { gap: 12px; }
.gm-table-head { display: flex; flex-direction: column; gap: 3px; padding: 4px 6px 4px; }
.gm-table-head h2 { font-size: 15px; font-weight: 500; }
.gm-table-head .meta, .gm-table-head a { color: var(--stage-muted); font-size: 12.5px; }
.gm-table-head a { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; }
.gm-seat-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gm-seat-list li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--stage-2); }
.gm-seat-list li.is-you { box-shadow: inset 2px 0 0 var(--stage-fg); }
.gm-seat-label { flex-shrink: 0; width: 4.6em; color: var(--stage-muted); font-size: 12px; letter-spacing: .02em; }
.gm-seat-who { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.gm-seat-who > .octicon { flex-shrink: 0; color: var(--stage-muted); }
.gm-seat-who b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.gm-seat-who small { flex-shrink: 0; color: var(--stage-muted); font-size: 12px; }
.gm-seat-more > summary { width: 32px; height: 32px; }
.gm-seat-menu { min-width: 220px; }
.gm-seat-menu .btn { justify-content: flex-start; width: 100%; height: 38px; border: 0; background: none; color: var(--fg); font-size: 13.5px; }
.gm-seat-menu .btn:hover { background: var(--hover); }
.gm-agents { padding: 10px 12px; border: 1px solid var(--stage-line); border-radius: 12px; }
.gm-agents > summary { display: flex; align-items: center; gap: 8px; color: var(--stage-fg); font-size: 13.5px; }
.gm-agents > summary .octicon { color: var(--stage-muted); }
.gm-agents p { margin: 10px 0 8px; color: var(--stage-muted); font-size: 12.5px; line-height: 1.5; }
.gm-agents .snippet-text { max-height: 200px; padding: 10px 12px; border-color: var(--stage-line); background: var(--stage-2); color: var(--stage-fg); font-size: 12px; }
.gm-agents .snippet-copy { position: static; margin-top: 8px; }
.gm-api { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--stage-2); color: var(--stage-muted); font: 11.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 880px) { .gm-arena, .gm-below.cols { grid-template-columns: minmax(0, 1fr); } .gm-reel { max-height: 360px; } }
@media (max-width: 767px) {
  .gm-bar { flex-wrap: wrap; gap: 12px; } .gm-thumb, .gm-crown-text { display: none; } .gm-id { flex-basis: 100%; } .gm-head .proj-title { font-size: 24px; }
  .gm-viewer { height: calc(62vh / var(--zoom, 1)); } .gm-under { flex-direction: column; } .gm-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* The four opponents have different setup and start rules; present them before opening a table. */
.gm-play-menu { padding: clamp(18px, 3vw / var(--zoom, 1), 36px); color: var(--stage-fg); }
.gm-play-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.gm-play-intro p { margin: 0; }
.gm-rules { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--stage-line); border-radius: 999px; color: var(--stage-fg); font-size: 13px; }
.gm-rules:hover { border-color: var(--stage-muted); text-decoration: none; }
.gm-rules .octicon { color: var(--stage-muted); }
.gm-sides { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; border: 0; }
.gm-sides legend { float: left; margin-right: 6px; padding: 0; color: var(--stage-muted); font-size: 13px; }
.gm-sides label { position: relative; cursor: pointer; }
.gm-sides input { position: absolute; opacity: 0; pointer-events: none; }
.gm-sides span { display: inline-block; padding: 6px 14px; border: 1px solid var(--stage-line); border-radius: 999px; background: var(--stage-2); color: var(--stage-muted); font-size: 13.5px;
  transition: background var(--shoal-fast) var(--shoal-ease), color var(--shoal-fast) var(--shoal-ease), border-color var(--shoal-fast) var(--shoal-ease); }
.gm-sides input:checked + span { border-color: var(--stage-fg); background: var(--stage-3); color: var(--stage-fg); }
.gm-sides input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.gm-play-intro h2 { margin: 0 0 8px; font-size: 26px; font-weight: 500; }
.gm-play-intro p, .gm-mode p { color: var(--stage-muted); line-height: 1.55; }
.gm-play-intro p a, .gm-mode a:not(.btn) { color: var(--stage-fg); }
.gm-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gm-mode { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 16px; }
.gm-mode h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 19px; font-weight: 500; }
.gm-mode p { margin: 0; flex: 1; font-size: 13px; }
.gm-mode label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--stage-muted); }
.gm-mode select { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--stage-line); border-radius: 8px; color: var(--stage-fg); background: var(--bg); font: inherit; font-size: 14px; }
.gm-mode .btn { width: 100%; justify-content: center; }
.gm-mode .btn:disabled { opacity: .45; cursor: not-allowed; }
.gm-lobby { display: flex; flex-direction: column; gap: 14px; min-height: clamp(460px, calc(100vh / var(--zoom, 1) - 300px), 820px); padding: 18px 22px 18px; color: var(--stage-fg); }
.gm-lobby p { margin: 0; }
.gm-felt { position: relative; flex: 1; min-height: 400px; }
.gm-felt-table { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: min(44%, 460px); aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--stage-line); border-radius: 50%; background: radial-gradient(closest-side, var(--stage-3), var(--stage-2)); box-shadow: inset 0 0 40px color-mix(in srgb, var(--fg) 8%, transparent); translate: -50% -50%; }
.gm-felt-table img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.85); }
.gm-felt-table span { position: relative; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--stage-muted); font-size: 13px; }
.gm-felt-table b { color: var(--stage-fg); font-weight: 500; }
.gm-chair { position: absolute; top: var(--y); left: var(--x); display: flex; flex-direction: column; align-items: center; gap: 4px; width: 168px; text-align: center; translate: -50% -50%; animation: rise var(--shoal-scene) var(--shoal-ease) both; }
.gm-chair-mark { display: grid; place-items: center; width: 50px; height: 50px; overflow: hidden; border: 1px solid var(--stage-line); border-radius: 50%; background: var(--stage-3); color: var(--stage-muted); }
.gm-chair-mark .avatar { width: 48px; height: 48px; }
.gm-chair-mark .octicon { width: 20px; height: 20px; }
.gm-chair.is-open .gm-chair-mark { border: 1.5px dashed var(--stage-muted); background: transparent; }
.gm-chair.is-you .gm-chair-mark { box-shadow: 0 0 0 2px var(--stage-2), 0 0 0 4px var(--stage-fg); }
.gm-chair-label { color: var(--stage-muted); font-size: 11.5px; letter-spacing: .03em; }
.gm-chair-label b { color: var(--stage-fg); font-weight: 500; }
.gm-chair-name { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.gm-chair.is-open .gm-chair-name { color: var(--stage-muted); font-weight: 400; }
.gm-chair-name small { color: var(--stage-muted); font-size: 12px; font-weight: 400; }
.gm-chair-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 2px; }
.gm-chair-acts .btn { height: 28px; padding: 0 10px; font-size: 12.5px; }
.gm-lobby-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--stage-line); }
.gm-invite { display: flex; align-items: center; gap: 10px; }
.gm-invite > span { color: var(--stage-muted); font-size: 12.5px; }
.gm-invite input { flex: 1; min-width: 0; padding: 6px 12px; border: 1px solid var(--stage-line); border-radius: 8px; background: var(--bg); color: var(--stage-fg); font: 12.5px var(--mono); }
.gm-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gm-start .meta, .gm-lobby-foot > .meta { color: var(--stage-muted); font-size: 13px; }
.gm-close { margin-left: auto; }
.gm-close .gm-link { font-size: 13px; }
.gm-chair-acts .menu { left: 50%; translate: -50% 0; min-width: 200px; }
@media (max-width: 760px) {
  .gm-felt { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 10px; min-height: 0; }
  .gm-felt-table { display: none; }
  .gm-chair { position: static; width: auto; translate: none; }
  .gm-invite { flex-wrap: wrap; } .gm-invite input { flex-basis: 100%; order: 2; }
}
@media (max-width: 680px) { .gm-modes { grid-template-columns: 1fr; } .gm-play-menu, .gm-lobby { padding: 18px; } }
.gm-entry-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 12px; }
.gm-entry-modes > span { display: flex; align-items: center; gap: 6px; }

/* ---- docs (src/docs.ts) ------------------------------------------------------------------------------------- */
/* the user guide: its pages on the left (the current one with its sections), the page beside them */
.wrap.docs { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 16px 44px; align-items: start; padding-bottom: 48px; }
.docs-nav { position: sticky; top: 88px; display: grid; gap: 2px; font-size: 14px; }
.docs-nav a { color: var(--muted); padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.docs-nav a:hover { color: var(--fg); background: var(--hover); }
.docs-nav a[aria-current] { color: var(--fg); background: var(--surface-2); font-weight: 500; }
.docs-nav a.sub { padding-left: 24px; font-size: 13px; }
.docs-for-agents { margin: 12px 0 0; padding: 12px 12px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.docs-nav .docs-for-agents a { padding: 0; color: inherit; text-decoration: underline; }
.docs-main { min-width: 0; max-width: 1120px; }
.docs-main .markdown-body { font-size: 15px; }
.markdown-body .steps { padding-left: 0; } /* the Connect page's steps, atop the guide, as they are there */
/* a "Screenshot" in the guide's steps opens its picture over the page; Esc, a click outside or × closes it */
.dpeek { text-decoration: underline; text-underline-offset: 2px; }
.dpeek-pop { width: min(1200px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--fg); box-shadow: var(--shadow); }
.dpeek-pop::backdrop { background: var(--ln-veil); backdrop-filter: blur(2px); }
.dpeek-pop .dshot { margin: 0; }
.dpeek-pop .dshot-head { padding-right: 40px; }
.dpeek-close { position: absolute; top: 12px; right: 12px; }
/* a screenshot with numbered boxes over it and its notes beside it; pointing at a note lights its box */
.dshot { margin: 20px 0 36px; display: grid; gap: 8px; scroll-margin-top: 88px; }
.dshot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.dshot-head b { font-size: 16px; font-weight: 500; }
.dshot-head code { font-size: 12px; color: var(--muted); }
.dshot-what { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.dshot-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.markdown-body .dshot-img { position: relative; display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; }
.markdown-body .dshot-img img { display: block; width: 100%; height: auto; border-radius: 9px; }
.dpin { position: absolute; border: 1px dashed color-mix(in srgb, var(--brand-ink) 55%, transparent); border-radius: 6px; pointer-events: none; transition: opacity var(--shoal-fast) var(--shoal-ease); }
.dpin > span { position: absolute; left: -9px; top: -9px; width: 19px; height: 19px; border-radius: 50%; background: var(--bg); color: var(--brand-ink); border: 1px solid var(--brand-ink); font: 500 10.5px/17px var(--mono); text-align: center; }
.dpin.at-left > span { left: 3px; }
.dpin.at-top > span { top: 3px; }
.markdown-body .dshot-notes { list-style: none; margin: 0; padding: 0; display: grid; font-size: 13.5px; line-height: 1.55; color: var(--muted); counter-reset: note; }
.markdown-body .dshot-notes li { position: relative; margin: 0; padding: 5px 8px 5px 36px; border-radius: 8px; counter-increment: note; }
.dshot-notes li::before { content: counter(note); position: absolute; left: 8px; top: 6px; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--brand-ink); color: var(--brand-ink); font: 500 10.5px/17px var(--mono); text-align: center; }
.dshot-notes li b { color: var(--fg); font-weight: 500; margin-right: 6px; }
.dshot-notes li:hover, .dshot-notes li:focus-visible { background: var(--surface-2); outline: none; }
.dshot:has(.dshot-notes li:hover, .dshot-notes li:focus-visible) .dpin { opacity: .25; }
.dshot:has(li[data-n="1"]:hover, li[data-n="1"]:focus-visible) .dpin[data-n="1"], .dshot:has(li[data-n="2"]:hover, li[data-n="2"]:focus-visible) .dpin[data-n="2"], .dshot:has(li[data-n="3"]:hover, li[data-n="3"]:focus-visible) .dpin[data-n="3"], .dshot:has(li[data-n="4"]:hover, li[data-n="4"]:focus-visible) .dpin[data-n="4"], .dshot:has(li[data-n="5"]:hover, li[data-n="5"]:focus-visible) .dpin[data-n="5"], .dshot:has(li[data-n="6"]:hover, li[data-n="6"]:focus-visible) .dpin[data-n="6"], .dshot:has(li[data-n="7"]:hover, li[data-n="7"]:focus-visible) .dpin[data-n="7"], .dshot:has(li[data-n="8"]:hover, li[data-n="8"]:focus-visible) .dpin[data-n="8"], .dshot:has(li[data-n="9"]:hover, li[data-n="9"]:focus-visible) .dpin[data-n="9"] {
  opacity: 1; border: 1.5px solid var(--brand-ink); background: color-mix(in srgb, var(--brand-ink) 8%, transparent);
}
@media (max-width: 818px) {
  .wrap.docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; }
  .docs-nav a.sub, .docs-for-agents { display: none; }
  .dshot-body { grid-template-columns: minmax(0, 1fr); }
}

/* the tide (src/tide.ts): agents active hour by hour, and the clients they run on */
.tide-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 10px 0 20px; }
.tide-stats span { display: flex; flex-direction: column; color: var(--muted); font-size: 14px; }
.tide-stats b { font-size: 28px; font-weight: 500; line-height: 1.2; color: var(--fg); font-variant-numeric: tabular-nums; }
.tide-chart { margin: 0; padding: 14px 16px 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; }
.tide-chart svg { display: block; width: 100%; height: auto; }
.tide-chart figcaption { margin-top: 4px; }
.tide-water { fill: var(--sky-soft); }
.tide-edge { fill: none; stroke: var(--fg-2); stroke-width: 1.5; stroke-linejoin: round; }
.tide-grid { stroke: var(--grid-line); stroke-width: 1; }
.tide-now { fill: var(--brand-glint); }
.tide-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.tide-tick { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.tide-hit { fill: transparent; }
.tide-hit:hover { fill: var(--grid-line); }
.tide-sec, .tide-foot, .pl-sec { margin-top: 28px; }
.tide-clients { display: grid; margin-top: 8px; }
.tide-client { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.tide-client .who { display: flex; gap: 10px; align-items: center; min-width: 0; font-weight: 500; }
.tide-client .n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tide-working { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 640px) { .tide-client { grid-template-columns: minmax(0, 1fr) auto; } .tide-client .bm-bar { display: none; } }

/* The newcomer home (src/home.ts): three ways into a problem, then two paths beyond it. */
.hub-head-starting .hub-head-in { align-items: center; }
.hub-head-starting .hub-art { left: 46%; width: min(58%, 640px); }
.hub-intro-copy { display: grid; gap: 8px; max-width: 34rem; animation: ln-rise var(--shoal-scene) var(--shoal-ease) backwards; }
.hub-intro-copy h1 { font-size: clamp(30px, 4vw, 48px); }
.hub-intro-copy p { margin: 0; }
.hub-intro-copy .lead { color: var(--fg); text-wrap: pretty; }
.hub-intro-agent { justify-self: start; margin-top: 6px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.hub-starting { gap: 16px; padding-top: 16px; }
.hub-paths { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-path, .hub-side-path { position: relative; isolation: isolate; border: 1px solid var(--line-2); border-radius: 16px; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.hub-path { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); }
.hub-path-main { background: var(--surface); border-color: var(--line); }
.hub-path:not(.hub-path-main):is(:hover, :focus-visible), .hub-side-path:is(:hover, :focus-visible) { background-color: var(--hover); }
:is(.hub-path, .hub-side-path):is(:hover, :focus-within) { border-color: color-mix(in srgb, var(--focus) 50%, var(--line)); box-shadow: 0 6px 18px color-mix(in srgb, var(--focus) 14%, transparent); text-decoration: none; }
.hub-path h2, .hub-next h2 { font-size: 18px; font-weight: 500; }
.hub-path p, .hub-next p { margin: 0; color: var(--muted); font-size: 14px; }
.hub-kicker { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--brand-ink); }
.hub-path > .more, .hub-path-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-path-actions small { color: var(--muted); }
.hub-problem-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hub-path-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13px; }
.hub-step-label { margin-inline-end: 8px; color: var(--muted); }
.hub-step-link { position: relative; z-index: 1; color: var(--fg); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hub-step-link:hover { text-decoration-color: currentColor; }
.hub-check-link { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-2); }
.hub-side-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-side-path { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background-color: var(--bg); }
.hub-side-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--brand-ink); background: var(--surface-2); }
.hub-side-copy { display: grid; gap: 2px; }
.hub-side-copy strong { font-size: 15px; font-weight: 500; }
.hub-side-copy small { color: var(--muted); font-size: 13px; }
.hub-side-path .hub-path-arrow { color: var(--muted); }
@keyframes hub-card-in { from { opacity: 0; transform: translate(-16px, 20px); } }
@media (prefers-reduced-motion: no-preference) {
  .hub-path, .hub-side-path {
    animation: hub-card-in var(--shoal-scene) var(--shoal-ease) var(--shoal-fast) backwards;
    transition: translate var(--shoal-panel) var(--shoal-ease), border-color var(--shoal-fast) var(--shoal-ease), box-shadow var(--shoal-panel) var(--shoal-ease), background-color var(--shoal-fast) var(--shoal-ease);
  }
  .hub-path:nth-child(2) { animation-delay: var(--shoal-panel); }
  .hub-path:nth-child(3) { animation-delay: calc(var(--shoal-panel) + var(--shoal-fast)); }
  .hub-side-path { animation-delay: var(--shoal-scene); }
  .hub-side-path + .hub-side-path { animation-delay: calc(var(--shoal-scene) + var(--shoal-fast)); }
  .hub-path-arrow { transition: translate var(--shoal-panel) var(--shoal-ease); }
  :is(.hub-path, .hub-side-path):is(:hover, :focus-within) { translate: 0 -4px; }
  :is(.hub-path, .hub-side-path):is(:hover, :focus-within) .hub-path-arrow { translate: 4px 0; }
}
.hub-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.hub-next p { margin-top: 4px; }
@media (max-width: 767px) {
  .hub-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-path-main { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .hub-head-starting .hub-school { display: block; opacity: .45; } }
@media (max-width: 580px) { .hub-paths, .hub-side-paths { grid-template-columns: minmax(0, 1fr); } }

/* the drift bottle on Home's water (src/bottle.ts): the landing's card on the water, one question at a time; its dots are
   what the profile says, its mark the one bit of colour */
.bt { flex: none; display: grid; gap: 12px; width: 360px; padding: 14px 18px 16px; border-radius: 20px; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--ln-ring), var(--ln-lift); animation: ln-rise var(--shoal-scene) var(--shoal-ease) 240ms backwards; }
/* Only the bottle fades on replacement; focus never scrolls the page. */
.bt { transition: opacity var(--shoal-fast) var(--shoal-ease); }
.bt-changing { opacity: 0; }
.bt-updated { animation: none; }
.bt [aria-disabled="true"] { pointer-events: none; opacity: .5; }
.bt-error { margin: 0; color: var(--bad); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .bt { transition-duration: 0s; } }

.bt-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 400 12px var(--code); letter-spacing: .02em; }
.bt-mark { color: var(--brand-ink); }
.bt-dots { display: inline-flex; gap: 4px; margin-left: auto; }
.bt-dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 16%, transparent); }
.bt-dots i.on { background: var(--brand-ink); }
.bt-note { display: grid; gap: 10px; }
.bt-q { color: var(--fg); font: 300 19px/1.4 'Outfit', var(--font); text-wrap: balance; }
.bt-from { display: inline-flex; align-items: center; gap: 8px; font: 400 14px/1.4 var(--font); color: var(--fg-2); }
.bt-why { margin: 0; color: var(--fg-2); font-size: 13px; line-height: 1.5; }
.bt .input { background: var(--bg); }
.bt textarea.input { resize: vertical; }
.bt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-chips label { display: inline-flex; cursor: pointer; }
.bt-chips input { position: absolute; opacity: 0; pointer-events: none; }
.bt-chips span { padding: 4px 10px; border-radius: 999px; background: var(--wash, var(--hover)); color: var(--fg-2); font-size: 13px; transition: background var(--shoal-fast) var(--shoal-ease), color var(--shoal-fast) var(--shoal-ease); }
.bt-chips input:checked + span { background: var(--brand); color: var(--on-brand); }
.bt-chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.bt-card { display: flex; gap: 12px; align-items: flex-start; }
.bt-card b { font-weight: 500; }
.bt-card p { margin: 4px 0 0; color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.bt-tags { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 760px) { .bt { width: 100%; } }
/* a person and their agent, each in the other's words: the person's About tab and the agent's page */
.pairs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pair-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: var(--line-2); }
.pair-q { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; margin: 0; padding: 20px 22px; background: var(--bg); }
.pair-q blockquote { margin: 0; color: var(--fg); font: 300 18px/1.55 var(--font); }
.pair-q blockquote::before { content: '“'; } .pair-q blockquote::after { content: '”'; }
.pair-q figcaption { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.pair-q figcaption a { color: var(--fg); font-weight: 500; }
.pair-pending { display: flex; align-items: center; gap: 6px; margin: 0; }
.pair-form { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; }
.pair-form fieldset { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; }
.pair-form legend { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-weight: 500; }
.pair-seen { margin: 6px 0 0; color: var(--fg-2); font-size: 14px; }
.pair-seen span { font-weight: 300; }

/* a request's tabs: its requester reads the request and the deliveries; the repository's own tabs sit quieter */
.tab-split { align-self: center; flex: none; width: 1px; height: 18px; margin: 0 6px 10px; background: var(--line); }
.tab.tab-minor { padding: 0 10px; font-size: 13.5px; color: var(--faint); }
.tab.tab-minor[aria-current=page] { color: var(--fg); }


/* an agent's plan and quota use under its lane, for it and its person (src/shifts.ts) */
.aw-quota { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-left: 42px; font-size: 12.5px; color: var(--fg-2); }
.aw-quota b { font-weight: 500; color: var(--fg); }
.aw-quota .q { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.aw-quota .qn, .aw-quota .qr { color: var(--muted); }
.aw-quota .bm-bar { width: 72px; }
.aw-quota .q.low .bm-bar > i { background: var(--wait); }
.aw-quota .q.low .qv { color: var(--wait); }
@media (max-width: 640px) { .aw-quota { padding-left: 0; } }

.tide-bands { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 12px; }
.tide-band { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--muted); }
.tide-band b { font-size: 20px; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.tide-band.b-little b { color: var(--wait); }
.tide-band.b-soon b { color: var(--ok); }

/* a delivery's answer to a check of Done when, as its author wrote it (src/tasks.ts) */
.ans-md > :first-child { margin-top: 0; }
.ans-md > :last-child { margin-bottom: 0; }
.ans-md p, .ans-md ul { margin: 0 0 4px; }
.ans-md ul { padding-left: 1.1em; }

/* the plans that work here: the showcase strip and /plans (src/plans.ts) */
.pl-show { margin: 16px 0 6px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.pl-show-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.pl-show-head b { font-weight: 500; }
.pl-show-head .more { margin-left: auto; }
.pl-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.pl-track { display: flex; gap: 10px; width: max-content; }
.pl-card { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--fg); white-space: nowrap; text-decoration: none; }
.pl-card:hover { border-color: var(--line); text-decoration: none; }
.pl-card b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.pl-card small { display: block; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pl-viewport { overflow-x: auto; mask-image: none; } }
.pl-board { min-width: 760px; }
.pl-board tr:target td { background: var(--hover); }
.pl-board .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-name { display: flex; align-items: center; gap: 10px; }
.pl-name small { display: block; color: var(--muted); font-size: 12.5px; }
.pl-clients { display: flex; flex-wrap: wrap; gap: 4px; }
.aw-plan { display: inline-flex; align-items: center; gap: 6px; }
.tag-model { display: inline-flex; align-items: center; gap: 5px; }

/* the agents' pages share one tab bar (render.ts agentsTabs) */
.hub-tabs { margin: 18px 0; }
/* a person's desk on their home: agents with their usage, requests (src/tasks.ts desk) */
.desk { display: grid; gap: 2px; }
.desk-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.desk-row:last-child { border-bottom: 0; }
.desk-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.desk-who b { font-weight: 500; }
.desk-row .aw-quota { padding-left: 34px; }
.agent-main .aw-quota { padding-left: 0; margin-top: 2px; } /* an agent's usage, in its own card */

/* credits (src/credits.ts): held is brass outlined, paid brass */
.tk-cr { display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); font-weight: 500; font-variant-numeric: tabular-nums; }
.tk-credits-in { max-width: 9em; }
.side-credits { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.side-credits .side-count { color: var(--brass); font-weight: 500; }
.tk-ledger .num { text-align: right; font-variant-numeric: tabular-nums; }

/* what a delivery's demo brought back (src/tasks.ts ranCell), and the phone's card a delivery */
.ran { display: grid; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; } /* a wide table scrolls in its cell */
.ran-img { max-width: 100%; max-height: 160px; border: 1px solid var(--line-2); border-radius: 8px; }
.ran-table { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.ran-table th, .ran-table td { padding: 2px 6px; border: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.ran-table th { font-weight: 500; background: var(--surface); }
.ran-text { margin: 0; max-height: 140px; overflow: auto; padding: 6px 8px; border-radius: 8px; background: var(--surface); font-size: 12px; white-space: pre-wrap; }
.cmp-cards { display: none; }
.cc-ans { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; font-size: 14px; }
.cc-q { display: block; font-size: 12.5px; color: var(--muted); }
.cc-a { display: flex; gap: 6px; align-items: baseline; }
@media (max-width: 640px) {
  .cmp-wrap { display: none; }
  .cmp-cards { display: grid; gap: 12px; }
  .cmp-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); min-width: 0; }
  .cmp-card > *, .cc-a > .ans-md, .cmp-card figure { min-width: 0; margin: 0; overflow-wrap: anywhere; }
}

/* the requester's pages in the other language (src/lang.ts) */
.lang-link { align-self: flex-start; font-size: 13px; color: var(--muted); white-space: nowrap; }
/* ---- agents: one state each, your agents' table, the store of public agents, an agent's page, hiring (src/fleet.ts) --
   One row or card an agent, every fact named; colour only says the state: green working or on shift, amber its
   person's (or, on a hire, your) move, grey waiting or off, brass accepted. */
.need-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--wait-dot); box-shadow: 0 0 0 3px var(--wait-bg); }
.ring-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ok); }
.off-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--faint); }
.aw-st .octicon { flex-shrink: 0; }
.itab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.itab th { padding: 0 14px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 400; text-align: left; white-space: nowrap; }
.itab td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.itab td small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.itab td a { white-space: nowrap; }
.work-tab td a { white-space: normal; overflow-wrap: anywhere; } /* a pull request's title is a sentence: it wraps, so the table keeps to its column */
.itab tbody tr:last-child td { border-bottom: 0; }
.itab tr.needs td { border-bottom-color: transparent; background: var(--wait-bg); }
.itab tr.needs td:first-child { border-radius: 12px 0 0 12px; }
.itab tr.needs td:last-child { border-radius: 0 12px 12px 0; }
.itab tr.quiet td { color: var(--fg-2); }
.itab .who { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.itab .who a { color: var(--fg); }
.itab .who b, .itab .who-n { color: var(--fg); font-weight: 500; }
.itab .who .meta { font-size: 12.5px; }
.itab .act { width: 1%; text-align: right; white-space: nowrap; }
.lk { display: inline-flex; color: var(--muted); vertical-align: -1px; }
/* an agent's plan, said with where the numbers came from (src/fleet.ts): its mark and name, dimmed when a day old; the
   checks of an agent's Connection (src/web.ts); and its sessions under its seven days, a thin span each (src/tasks.ts) */
.aw-strip .ss { position: absolute; bottom: -6px; height: 3px; border-radius: 2px; background: var(--ok); opacity: .75; }
.plan-cell { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.plan-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.plan-chip small { color: var(--muted); }
.plan-cell.stale { opacity: .55; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.checks li { display: flex; align-items: center; gap: 8px; color: var(--fg-2); }
.checks li.ok svg { color: var(--ok); }
.checks li.no { color: var(--muted); }
.meter { display: inline-grid; grid-template-columns: 72px auto; align-items: center; gap: 10px; color: var(--fg-2); font-size: 12.5px; white-space: nowrap; }
.meter .bm-bar { height: 5px; }
.meter .bm-bar > i { background: var(--fg-2); }
.meter.low .bm-bar > i { background: var(--wait); }
.meter.low .num { color: var(--wait); }
.meter .num { font-variant-numeric: tabular-nums; }
.tag-yours { border-style: dashed; color: var(--muted); }
.tag-need { border-style: dashed; }
.band { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 500; }
.band.some { background: var(--wait-bg); color: var(--wait); }
.band.little { background: var(--bad-bg); color: var(--bad); }
/* a requester's hires on their requests' page, each on a hire's four steps (src/fleet.ts yourHires) */
.hb { margin: 24px 0 34px; }
.hb-row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, .6fr)) minmax(0, 1.7fr); align-items: center; gap: 0 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.hb .hb-row.hb-head { align-items: end; padding-block: 0 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.hb-head h2 { font-size: 18px; font-weight: 500; color: var(--fg); }
.hb-head > span { text-align: center; }
.hb-row.needs { border-bottom-color: transparent; border-radius: 12px; background: var(--wait-bg); }
.hb-who { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; color: var(--fg-2); font-size: 14px; }
.hb-who > span { min-width: 0; }
.hb-who small { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.hb-trk { position: relative; grid-column: 2 / span 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hb-trk::before, .hb-trk::after { content: ""; position: absolute; top: 5px; left: 12.5%; height: 2px; background: var(--line); }
.hb-trk::before { right: 12.5%; }
.hb-trk::after { width: calc(var(--at) * 25%); background: var(--fg-2); }
.hb-st { position: relative; display: grid; justify-items: center; gap: 10px; padding-inline: 6px; text-align: center; }
.hb-st i { width: 12px; height: 12px; border: 2px solid var(--outline); border-radius: 50%; background: var(--bg); }
.hb-st.d i { border-color: var(--fg-2); background: var(--fg-2); }
.hb-st.cur.read i { border-color: var(--fg-2); }
.hb-st.cur.work i { border-color: var(--ok); background: var(--ok); }
.hb-st.cur.wait i { border-color: var(--wait-dot); background: var(--wait-dot); box-shadow: 0 0 0 3px var(--wait-bg); }
.hb-st.cur.acc i { border-color: var(--brass); background: var(--brass); }
.hb-st.cur.no i { border-color: var(--bad); }
.hb-now { color: var(--fg-2); font-size: 13.5px; line-height: 1.5; }
.hb-now b { color: var(--fg); font-weight: 500; }
.hb-now .btn { margin-left: 6px; }
/* /agents: the public agents by when they could start, a card each */
.shelf { margin-top: 30px; }
.shelf-h { font-size: 18px; font-weight: 500; }
.shelf-h + .meta { margin-top: 2px; font-size: 13.5px; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.offer { display: grid; align-content: start; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.offer-top { display: flex; align-items: center; gap: 12px; }
.offer-id { display: grid; flex: 1; gap: 3px; min-width: 0; }
.offer-n { color: var(--fg); font-size: 16px; font-weight: 500; }
.offer-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: 13px; }
.offer-src a { color: inherit; }
.src-shoal { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-ink); font-weight: 500; }
.src-shoal .logo { width: 20px; height: auto; }
.offer-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--surface); color: var(--fg-2); font-size: 13.5px; }
.offer-facts { display: grid; gap: 9px; margin: 0; }
.offer-facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.offer-facts dt { color: var(--muted); font-size: 12.5px; }
.offer-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--fg-2); font-size: 13.5px; }
.offer .meter { grid-template-columns: 52px auto; }
.fc { display: inline-flex; align-items: center; gap: 5px; }
.fc .octicon { color: var(--muted); }
.fc small { color: var(--muted); font-size: 12px; }
.days { display: inline-flex; gap: 3px; margin-right: -4px; }
.days i { width: 10px; height: 10px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.days i.on { background: var(--fg-2); box-shadow: none; }
.hire-when { margin: 0; color: var(--fg-2); font-size: 13.5px; }
.hire-when b { color: var(--fg); font-weight: 500; }
.section-title.sm { margin: 0 0 10px; font-size: 18px; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 22px; }
.ov-main, .ov-rail { display: grid; gap: 26px; min-width: 0; }
.ckm { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; white-space: nowrap; }
.ckm.ok { color: var(--ok); }
.ckm.bad { color: var(--bad); }
.ckm.wait { color: var(--wait); }
.party { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.party-h { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; }
.party-sec { display: grid; justify-items: start; gap: 10px; padding: 14px 18px; }
.party-sec + .party-sec { border-top: 1px solid var(--line-2); }
.mem .box-head { gap: 10px; }
.mem .markdown-body { font-size: 14px; }
.mem .markdown-body h2 { margin: 16px 0 6px; padding: 0; border: 0; font-size: 15px; font-weight: 500; }
.mem .markdown-body h2:first-child, .mem .markdown-body h1:first-child { margin-top: 0; }
.cap-meter .meter { grid-template-columns: 56px auto; }
.hire { gap: 18px; padding-block: 28px 56px; }
.hire-h { font-size: 28px; }
.hire-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; }
.hire-who > div { display: grid; }
.hire-who b { font-weight: 500; }
.hire-pick { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.hire-req { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.hire-req:has(input:checked) { border-color: var(--fg); }
.hire-req input { margin-top: 3px; }
.hire-req span { display: grid; gap: 2px; }
.hire-req b { font-weight: 500; }
@media (max-width: 818px) {
  .itab thead { display: none; }
  .itab, .itab tbody, .itab tr, .itab td { display: block; }
  .itab tr { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .itab td { padding: 4px 0; border: 0; }
  .itab tr.needs { padding: 12px; border-radius: 12px; background: var(--wait-bg); }
  .itab tr.needs td { background: none; }
  .itab .act { width: auto; text-align: left; }
  .hb-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 0; }
  .hb-head h2, .hb-who, .hb-now, .hb-trk { grid-column: 1 / -1; }
  .hb-head > span:empty { display: none; }
  .offer { padding: 16px; }
  .offer-facts > div { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
}
/* an agent's work table needs some 480px: under 1200 the side panel goes below it instead of over it */
@media (max-width: 959px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }

/* Project analysis (src/project-analysis): forms first, then the page. */
.pa-form, .pa-form label { display: grid; gap: 12px; }
.pa-form { margin-top: 20px; }
.pa-form label { gap: 6px; min-width: 0; }
.pa-form > button { justify-self: start; }
.pa-form textarea, .pa-form select, .pa-form input { width: 100%; min-width: 0; }
.pa-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }

.pa-page [data-analysis-status]:empty { display: none; }
.pa-reference { margin-top: 14px; }
.pa-reference > summary, .pa-upload > summary { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 7px 10px; margin-left: -10px; border-radius: 6px; color: var(--fg-2); font-size: 13px; font-weight: 500; }
.pa-reference > summary::before, .pa-upload > summary::before { content: ''; width: 6px; height: 6px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--shoal-fast) var(--shoal-ease); }
.pa-reference[open] > summary::before, .pa-upload[open] > summary::before { transform: rotate(45deg); }
.pa-reference > summary:hover, .pa-upload > summary:hover { background: var(--surface-2); color: var(--fg); }
.pa-reference > summary:focus-visible, .pa-upload > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.pa-reference[open] > summary, .pa-upload[open] > summary { margin-bottom: 12px; }
.pa-reference > label { margin-top: 14px; }

/* Owner review: readable results first, an ordinary form only while editing. */
.pa-file-picker { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; min-height: 110px; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.pa-file-picker:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.pa-form .pa-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* The analysis page (src/project-analysis/view.ts). A review's card opens on the site's track, each stop carrying its
   own fact; a report is one tall bar split by share over the people it names, and a figure over bars as long as their
   steps weigh. Words are kept to names, figures and actions; what a reviewer wrote at length opens on a click. */
:root { --bar: #007f9c; --hatch: rgba(255, 255, 255, .5); --share-0: #03586f; --share-1: #a8c4d6; --share-2: #c2d2be; --share-3: #edd6a8; --share-rest: #e8ece7; --share-ink-0: #f5f7f2; --share-ink: #0e2c33; --share-sheen: rgba(255, 255, 255, .26); --grain: #edd6a8; --grain-rim: #b89a5c; }
:root:where([data-theme="dark"]) { --share-0: #6fb9c9; --share-1: #55707d; --share-2: #5a6a5c; --share-3: #7d6f52; --share-rest: #34383a; --share-ink-0: #0b1c20; --share-ink: #f5f7f2; --share-sheen: rgba(255, 255, 255, .1); --grain: #b9a57c; --grain-rim: #7d6f52; }
.pa-page { display: grid; gap: 20px; padding-bottom: 48px; min-width: 0; }
.pa-page > * { min-width: 0; }
.pa-page .page-head { align-items: center; margin-bottom: 0; }
.pa-page .page-head > .grow { flex-basis: auto; }
.pa-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-switch .tag-pill[aria-current] { border-color: var(--fg); color: var(--fg); }
.pa-state { width: 8px; height: 8px; border: 1.5px solid var(--faint); border-radius: 50%; }
.pa-state-on { border-color: var(--fg); background: var(--fg); }
.pa-state-wait { border-color: var(--wait-dot); background: var(--wait-dot); }
.pa-state-live { border-color: var(--ok); background: var(--ok); }
.pa-state-cancelled { border-style: dashed; }
.pa-task, .pa-start, .pa-public { display: grid; gap: 22px; min-width: 0; }
.pa-task, .pa-public { position: relative; isolation: isolate; }
.pa-task::before, .pa-public::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 132px; border-radius: 20px 20px 0 0; background: var(--pool); pointer-events: none; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.pa-reward { min-width: 0; }
.pa-task > *, .pa-reward > *, .pa-public > *, .pa-start > * { min-width: 0; margin-block: 0; }
.pa-task-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; }
.pa-task-head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.pa-track { flex: 1 1 420px; max-width: 760px; margin: 0; }
@media (min-width: 641px) { .pa-track .track-stop { padding-bottom: 26px; } }
.pa-track .track-stop b { font-size: 14px; font-weight: 500; }
.pa-track .track-stop span { display: flex; align-items: center; gap: 5px; min-height: 20px; overflow: hidden; white-space: nowrap; }
.pa-track .track-stop span b { font-weight: 400; }
.pa-track .live-dot { margin: 0 3px; }
.pa-toolbar, .pa-brief, .pa-by, .pa-foot, .pa-recipient-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pa-toolbar .menu form { padding: 8px 12px; }
.pa-by { gap: 10px; font-size: 14px; }
.pa-by b { font-weight: 500; }
.pa-by .avatar { vertical-align: -4px; }
.pa-brief { gap: 12px; color: var(--muted); font-size: 13px; }
.pa-chip { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.pa-stack { display: inline-flex; gap: 3px; }
.pa-foot { gap: 6px 14px; }
.pa-foot .pa-reference, .pa-foot .pa-upload { margin: 0; }
.pa-foot summary { white-space: nowrap; }
.pa-report { display: grid; gap: 28px; min-width: 0; }
.pa-report h3 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.pa-summary { max-width: 72ch; font-size: 17px; line-height: 1.6; }
.pa-prose p { margin: 0 0 8px; }
.pa-prose code { font-size: .9em; }
.pa-lede > summary { display: flex; align-items: baseline; gap: 8px; }
.pa-lede > summary::after { content: ''; flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform var(--shoal-fast) var(--shoal-ease); }
.pa-lede[open] > summary::after { transform: rotate(-135deg); }
.pa-lede[open] > summary span { display: none; }
.pa-lede:not(.pa-summary) > summary { color: var(--fg-2); font-size: 14px; line-height: 1.65; }
.pa-split { position: relative; display: flex; gap: 2px; height: 28px; min-width: 0; border-radius: 7px; overflow: hidden; }
/* light on the surface, one sheet across every block */
.pa-split::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--share-sheen), transparent 48%); box-shadow: inset 0 1px 0 var(--share-sheen); pointer-events: none; }
.pa-split:empty { border-radius: 4px; background: var(--line-2); }
.pa-b { display: flex; align-items: center; min-width: 3px; padding: 0 9px; border-radius: 2px; overflow: hidden; animation: pa-flow var(--shoal-scene) var(--shoal-ease) calc(var(--i, 0) * 60ms) both; font-style: normal; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; transition: flex-grow var(--shoal-panel) var(--shoal-ease); }
.pa-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
@keyframes pa-flow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
[data-reward-bar] .pa-b { animation: none; }
.pa-b0 { background: var(--share-0); color: var(--share-ink-0); }
.pa-b1 { background: var(--share-1); color: var(--share-ink); }
.pa-b2 { background: var(--share-2); color: var(--share-ink); }
.pa-b3 { background: var(--share-3); color: var(--share-ink); }
.pa-brest { background: var(--share-rest); color: var(--fg-2); }
.pa-grains { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
.pa-grains small { color: var(--muted); font-size: 12px; }
.pa-grain { width: 9px; height: 9px; border: 1px solid var(--grain-rim); border-radius: 50%; background: var(--grain); transition: transform var(--shoal-fast) var(--shoal-ease); }
a.pa-grain:hover { transform: scale(1.35); }
.pa-rows, .pa-meters, .pa-legend { margin: 0; padding: 0; list-style: none; }
.pa-rows { margin-top: 6px; }
.pa-person > summary { gap: 10px; padding: 9px 0; }
.pa-rows > li + li { border-top: 1px solid var(--line-2); }
.pa-person > summary b { font-weight: 500; overflow-wrap: anywhere; }
.pa-person > summary:hover b, .pa-meter > summary:hover .pa-meter-name { text-decoration: underline; text-underline-offset: 3px; }
.pa-figure { margin-left: auto; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-person > .pa-prose, .pa-person > .pa-role { margin: 0 0 12px 54px; }
.pa-role { display: grid; gap: 6px; }
.pa-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-ref { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--fg-2); font: 12.5px/1.5 var(--mono); text-decoration: none; overflow-wrap: anywhere; }
a.pa-ref:hover { text-decoration: underline; }
.pa-zero { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.pa-zero > summary { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.pa-progress { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 8px 36px; align-items: start; padding-top: 26px; border-top: 1px solid var(--line-2); }
.pa-hero .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pa-hero { display: flex; align-items: baseline; }
.pa-hero h3 { margin: 0; }
.pa-hero b { font: 300 64px/.92 'Outfit', var(--font); letter-spacing: -.02em; }
.pa-hero small { margin-left: 2px; color: var(--muted); font-size: 20px; }
.pa-progress-main { display: grid; gap: 14px; min-width: 0; }
.pa-progress-main .pa-reference { margin: 0; }
.pa-meter > summary, div.pa-meter { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) 48px; align-items: center; gap: 16px; padding: 7px 0; font-size: 14px; }
.pa-meter-name { display: flex; align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pa-meter-name svg { flex: none; margin-top: 3px; color: var(--muted); }
.pa-step-verified .pa-meter-name svg { color: var(--fg); }
.pa-step-blocked .pa-meter-name svg { color: var(--brass); }
.pa-meter .pa-figure { text-align: right; font-size: 14px; font-weight: 400; color: var(--fg-2); }
.pa-meter > .pa-prose, .pa-meter > .pa-refs { margin: 2px 0 10px 24px; }
.pa-considerations { margin: 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.pa-prompt { margin: 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--fg-2); font: 12.5px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; animation: rise var(--shoal-panel) var(--shoal-ease) both; }
.pa-start .pa-form { margin-top: 0; }
.pa-budget { display: inline-flex; align-items: baseline; gap: 5px; color: var(--brass); font-size: 13px; }
.pa-budget b { font: 300 30px/1 'Outfit', var(--font); }
.pa-reward > summary { align-items: center; justify-content: flex-start; }
.pa-reward > summary::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform var(--shoal-fast) var(--shoal-ease); }
.pa-reward[open] > summary::after { transform: rotate(-135deg); }
.pa-reward[open] > summary { margin-bottom: 22px; }
.pa-reward[open] { gap: 0; }
.pa-reward[open] > * + * { margin-top: 14px; }
.pa-reward .pa-form { margin-top: 0; gap: 14px; }
.pa-recipients { display: grid; }
.pa-recipient { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.pa-recipient:first-child { border-top: 0; }
.pa-recipient b { margin-right: auto; font-weight: 500; overflow-wrap: anywhere; }
.pa-recipient-tools output { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; }
.pa-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.pa-legend li { display: flex; align-items: center; gap: 8px; }
.pa-legend b { font-weight: 500; }
/* A row reads across as the algorithm works: who and at what tier (with the points it carries), a column a role with
   a dot as large as the tier it was done at, the records cited, how far other reviews put the same person, the share. */
.pa-cols { display: grid; grid-template-columns: minmax(0, 1fr) 204px 96px 84px; align-items: center; gap: 14px; }
.pa-cols.pa-ranged { grid-template-columns: minmax(0, 1fr) 204px 96px 72px 96px; }
.pa-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pa-who b { font-weight: 500; overflow-wrap: anywhere; }
.pa-who .tag small { margin-left: 3px; font: 500 11px var(--mono); opacity: .66; }
.pa-matrix { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; justify-items: center; }
.pa-rows-head { padding: 12px 0 2px; color: var(--muted); font-size: 12px; }
.pa-rows-head .pa-none { color: var(--faint); }
.pa-rc { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.pa-rc-1 { width: 5px; height: 5px; background: var(--fg-2); }
.pa-rc-2 { width: 8px; height: 8px; background: var(--fg); }
.pa-rc-3 { width: 11px; height: 11px; background: var(--fg); }
.pa-rc-4 { width: 14px; height: 14px; background: var(--fg); }
.pa-grain-check { background: var(--bg); box-shadow: inset 0 0 0 2px var(--grain); }
.pa-grain-record { background: transparent; }
.pa-range { position: relative; height: 6px; border-radius: 3px; background: var(--line-2); }
.pa-range i { position: absolute; top: 0; bottom: 0; min-width: 3px; border-radius: 3px; background: var(--faint); }
.pa-range u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--fg); }
.pa-cols .pa-figure { margin: 0; text-align: right; }
.pa-off { margin-right: 6px; color: var(--brass); font: 500 11.5px var(--mono); }
.pa-report .pa-section-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.pa-report .pa-section-title h3 { margin: 0; }
.pa-section-title > :nth-child(2) { margin-left: 0; }
.pa-agree { margin-left: auto; color: var(--muted); font-size: 13px; }
.pa-agree b { margin-left: 4px; color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
/* several outputs: each one's own split under the bar they add up to, with its weight */
.pa-outputs { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.pa-outputs li { display: grid; grid-template-columns: minmax(0, 190px) 30px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--fg-2); font-size: 13px; }
.pa-out-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-out-weight { color: var(--muted); font: 12px var(--mono); }
.pa-split.pa-thin { height: 8px; border-radius: 4px; }
.pa-split.pa-thin::after, .pa-split.pa-pay::after { display: none; }
.pa-thin .pa-b { min-width: 2px; padding: 0; }
/* shares become whole credits, by person */
.pa-split.pa-pay { height: 26px; }
.pa-split.pa-pay:empty { display: none; }
.pa-pay .pa-b { border: 1px solid color-mix(in srgb, var(--brass) 42%, transparent); border-radius: 5px; background: color-mix(in srgb, var(--brass) 11%, var(--bg)); color: var(--brass); animation: none; }
.hbar-was { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--fg); }
/* One bar for one measure (after the site's estimate bars): a pale track, the reach of what could fill it a shade
   darker, the fill in hatched teal. */
.hbar { position: relative; display: block; height: 10px; min-width: 40px; border-radius: 5px; overflow: hidden; background: var(--line-2); }
.hbar-span, .hbar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.hbar-span { background: var(--line); }
.hbar i { background: repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 7px), var(--bar); animation: pa-flow var(--shoal-scene) var(--shoal-ease) calc(120ms + var(--i, 0) * 60ms) both; }
.pa-step-blocked .hbar-span { background: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 7px); }
/* the editor wears the report's own layout */
.pa-editor { display: grid; gap: 18px; }
.pa-editor textarea { width: 100%; line-height: 1.6; resize: vertical; }
.pa-editor textarea.pa-summary { max-width: none; }
.pa-edit-person, .pa-edit-step { flex-wrap: wrap; }
.pa-edit-person b, .pa-edit-step b { flex: 1 1 140px; margin-right: 0; }
.pa-recipient select.input { width: auto; }
.pa-recipient input[type=number] { width: 92px; text-align: right; }
.pa-note { flex-basis: 100%; margin-left: 44px; min-width: 0; }
.pa-note > summary { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pa-note > summary:hover { color: var(--fg); }
.pa-note[open] > summary { display: none; }
.pa-total-invalid, .pa-editor-error { color: var(--bad); font-size: 14px; }
.pa-editor-error:empty, .pa-total-invalid:empty { display: none; }
.pa-editor .pa-hero b:empty::before { content: '—'; }
/* a project's front page: the figure, what moves, what is stuck */
.pa-front { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.pa-front .pa-progress { padding-top: 0; border-top: 0; }
/* room to spare: the people and the progress stand side by side instead of stretching */
@media (min-width: 1200px) {
  .pa-report:has(> .pa-people):has(> .pa-progress) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 64px; }
  .pa-report:has(> .pa-people):has(> .pa-progress) > :not(.pa-people, .pa-progress) { grid-column: 1 / -1; }
  .pa-report:has(> .pa-people) > .pa-progress { grid-template-columns: minmax(0, 1fr); padding-top: 0; border-top: 0; }
  .pa-report:has(> .pa-people) > .pa-progress .pa-hero { margin-top: 26px; }
}
@media (max-width: 700px) {
  .pa-task, .pa-start, .pa-reward, .pa-public { padding: 16px; }
  .pa-cols, .pa-cols.pa-ranged { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .pa-matrix, .pa-rows-head, .pa-range { display: none; }
  .pa-person > .pa-prose, .pa-person > .pa-role { margin-left: 0; }
  .pa-progress { grid-template-columns: minmax(0, 1fr); }
  .pa-hero b { font-size: 44px; }
  .pa-meter > summary, div.pa-meter { grid-template-columns: minmax(0, 1fr) 48px; gap: 4px 12px; }
  .pa-meter .hbar { grid-row: 2; grid-column: 1 / -1; }
  .pa-note { margin-left: 0; }
}
.pa-gain { display: inline-flex; align-items: baseline; align-self: center; gap: 4px; margin-left: 14px; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13px; }
.pa-gain b { font: 600 13.5px/1.4 var(--font); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pa-gain.bad { background: var(--bad-bg); color: var(--bad); }

/* ---- team spaces (src/spaces.ts): the archipelago head, today, the problems as rows, People ---------------------- */
.ln.sp-head, .ln.sp-today-wrap, .ln.sp-new { min-height: 0; display: block; }
.sp-head { position: relative; isolation: isolate; padding-top: 32px; }
.wrap.sp-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; position: relative; z-index: 3; }
.sp-kick { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 500 14.5px var(--font); color: var(--fg-2); }
.sp-kick .avatar { border-radius: 6px; }
.sp-head .tp { font-size: clamp(36px, 4vw, 52px); }
.sp-people { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; }
.sp-people small { display: block; color: var(--muted); font-size: 13px; }
.sp-stack { display: inline-flex; }
.sp-stack .avatar { box-shadow: 0 0 0 2px var(--bg); }
.sp-stack .avatar + .avatar { margin-left: -8px; }
.sp-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-bottom: 6px; }
.sp-acts .btn { height: 40px; padding: 0 18px; }
.sp-inv { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); }
.sp-band { height: 340px; margin-top: 8px; }
.sp-band .ln-water { inset: -150px 0 -10px; }
.sp-band .ln-band-art { width: 1100px; bottom: 6px; }
.sp-tags { position: absolute; inset: 0; z-index: 2; }
/* a flag's tag: glass over the water, pinned to its island by a thin line and a dot */
.sp-band .ln-tag, .cm-band .ln-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 5px 7px 5px 12px; border-radius: 12px; font-size: 13px; white-space: nowrap; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 78%, transparent); box-shadow: var(--ln-ring), 0 8px 22px -12px rgba(var(--ln-edge), .42);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15); transform: translate(-50%, calc(-100% - 20px)); pointer-events: auto;
  transition: transform var(--shoal-panel) var(--shoal-ease); }
:is(.sp-band, .cm-band) .ln-tag:hover { transform: translate(calc(-50% + 1px), calc(-100% - 21px)); }
:is(.sp-band, .cm-band) .ln-tag b { font-weight: 500; }
:is(.sp-band, .cm-band) .ln-tag .octicon { color: var(--fg-2); margin-right: -2px; }
.sp-band .ln-tag .num { font: 500 11.5px var(--code); padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, #edd6a8 60%, var(--bg)); color: var(--fg); }
.sp-band .ln-tag.priv .num { background: color-mix(in srgb, #cfe6e8 70%, var(--bg)); }
:is(.sp-band, .cm-band) .ln-tag::after { content: ''; position: absolute; left: 50%; bottom: -19px; width: 1px; height: 17px; background: rgba(var(--ln-edge), .4); }
:is(.sp-band, .cm-band) .ln-tag::before { content: ''; position: absolute; left: calc(50% - 2.5px); bottom: -22px; width: 5px; height: 5px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 2px var(--bg); }
/* outside the space, the reef's inner side stays under the haze: nothing there is named, nor counted */
.sp-band.out .ln-band-art > svg { -webkit-mask-image: linear-gradient(90deg, #000 54%, transparent 63%); mask-image: linear-gradient(90deg, #000 54%, transparent 63%); }
.sp-band.compact { height: 220px; margin-top: -140px; }
.sp-band.compact .ln-water { inset: -40px 0 -10px; }
.sp-band.compact .ln-band-art { left: auto; right: 0; transform: none; width: 680px; bottom: 0; }
.sp-band.compact .sp-tags { display: none; } /* shrunk, the head keeps only the name and the people */
.sp-head.compact .tp { font-size: 38px; }
.sp-head.compact .sp-top { align-items: flex-start; }
.sp-head.compact .sp-acts { display: none; }
.sp-today-wrap { position: relative; z-index: 2; margin-top: -104px; }
.sp-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 20px; background: var(--bg); box-shadow: var(--ln-ring); }
.sp-col { padding: 18px 20px 16px; min-width: 0; }
.sp-col + .sp-col { border-left: 1px solid var(--line-2); }
.sp-col h3 { margin: 0 0 10px; font: 400 15px 'Outfit', var(--font); color: var(--muted); }
.sp-it { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; font-size: 14.5px; }
.sp-it + .sp-it { border-top: 1px solid var(--line-2); }
.sp-it small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.sp-it .octicon { margin-top: 3px; } .sp-it .on, .sp-it .ok { color: var(--ok); }
.sp-btns { margin-top: 8px; }
.sp-note { width: 100%; height: auto; padding: 10px 12px; margin-bottom: 8px; resize: none; font: inherit; font-size: 14px; line-height: 1.5; }
.sp-tabs { margin-top: 22px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; margin-top: 24px; align-items: start; }
.sp-h { display: flex; align-items: center; gap: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sp-h h3 { margin: 0; font: 400 22px 'Outfit', var(--font); }
.sp-filter { display: flex; gap: 18px; }
.sp-filter a { color: var(--muted); font-size: 14px; }
.sp-filter a[aria-current] { color: var(--fg); font-weight: 500; }
.sp-filter i { font-style: normal; margin-left: 4px; color: var(--muted); font-weight: 400; }
.sp-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.sp-nm { font: 400 18px/1.3 'Outfit', var(--font); color: var(--fg); }
.sp-nm span { color: var(--muted); }
.sp-next { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.sp-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.sp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sp-meta .at { color: var(--fg-2); } .sp-meta .at .octicon { color: var(--ok); }
.sp-best { text-align: right; font-size: 12px; color: var(--muted); }
.sp-best b { display: block; font: 300 26px/1.1 'Outfit', var(--font); color: var(--fg); font-variant-numeric: tabular-nums; }
.sp-best small { display: block; margin-top: 8px; font-size: 12px; }
.sp-empty { padding: 24px 0; }
.sp-side section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.sp-side section:last-child { border-bottom: 0; }
.sp-side h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font: 500 14.5px var(--font); }
.sp-side h4 small { font: 400 12px var(--code); color: var(--muted); }
.sp-party { display: flex; align-items: center; gap: 16px; padding: 6px 0; }
.sp-face { position: relative; width: 36px; height: 36px; flex: none; }
.sp-ags { position: absolute; right: -10px; bottom: -5px; display: flex; }
.sp-ags .avatar { box-shadow: 0 0 0 2px var(--bg); }
.sp-ags .avatar + .avatar { margin-left: -6px; }
.sp-pn small { display: block; color: var(--muted); font-size: 12.5px; }
.sp-pend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--fg-2); }
.sp-pend span { margin-left: auto; color: var(--brand-ink); font-weight: 500; }
.sp-files { list-style: none; margin: 0; padding: 0; }
.sp-files li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.sp-files .octicon { color: var(--muted); flex: none; }
.sp-files a { color: var(--fg); }
.sp-files small { margin-left: auto; color: var(--muted); font-size: 12.5px; text-align: right; }
.sp-invite { display: flex; gap: 8px; align-items: center; }
.sp-invite .input { height: 36px; width: 200px; }
.sp-invite select.input { width: 110px; }
/* who asked, in the haze of a selected row: the one place that waits for an admin */
.sp-wait { margin-bottom: 16px; padding: 4px 18px; border-radius: 12px; background: var(--wash); }
.sp-wait-h { display: flex; align-items: center; gap: 8px; padding: 10px 0 4px; font-size: 14px; }
.sp-req { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0 12px; }
.sp-req + .sp-req { border-top: 1px solid var(--line-2); }
.sp-req p { margin: 4px 0 0; font-size: 14.5px; color: var(--fg-2); }
.sp-req .sp-btns, .sp-it .sp-btns { margin-top: 0; }
.sp-it .sp-btns { margin-top: 8px; }
.board.sp-ppl td { vertical-align: middle; }
.sp-ag { margin: 3px 0; }
.sp-invited td { color: var(--muted); }
.sp-invited .avatar { opacity: .6; }
.sp-more { width: 90px; text-align: right; }
.sp-foot { margin-top: 10px; font-size: 13.5px; }
.sp-leave { border: 0; background: none; padding: 0; margin-left: 8px; font: inherit; color: var(--bad); cursor: pointer; }
.sp-settings .page-head { margin-top: 28px; }
.sp-new .sp-kick { margin-top: 24px; }
.sp-new .tp { font-size: clamp(34px, 4vw, 48px); }
.sp-band-new { height: 230px; margin-top: 14px; }
.sp-band-new .ln-water { inset: -8px 0 -10px; }
.sp-band-new .ln-band-art > svg { -webkit-mask-image: radial-gradient(ellipse 10% 18% at 81% 56%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 10% 18% at 81% 56%, #000 55%, transparent 100%); }
.sp-band-new + .wrap .card { margin-top: -36px; position: relative; z-index: 3; }
.sp-pre { display: flex; align-items: center; }
.sp-pre > span { padding-right: 2px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.sp-pre .input { flex: 1; }
.sp-comes { list-style: none; margin: 16px 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; }
.sp-comes li { display: inline-flex; align-items: center; gap: 6px; }
.sp-comes code { font: 400 12.5px var(--code); color: var(--fg); }
/* where a new problem lives, and who sees it: two choices as one control each */
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.seg-opt input, .seg-card input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--fg); color: var(--bg); }
.seg-opt:has(input:focus-visible), .seg-card:has(input:focus-visible) { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.seg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-card { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.seg-card:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.seg-card .octicon { margin-top: 2px; color: var(--fg-2); }
.seg-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
/* who sees a problem, as a track: the stop it is at lit, the ones behind it drawn */
.vis-track { display: flex; align-items: center; margin: 4px 0 12px; }
.vis-stop { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.vis-stop + .vis-stop::before { content: ''; width: 48px; height: 1px; margin: 0 12px; background: var(--line); }
.vis-stop.past, .vis-stop.on { color: var(--fg-2); }
.vis-stop.on { color: var(--fg); font-weight: 500; }
.vis-stop.on + .vis-stop::before, .vis-stop.past + .vis-stop::before { background: var(--fg-2); }
.vis-go { margin-bottom: 8px; }
@media (max-width: 767px) {
  .sp-top { flex-direction: column; align-items: flex-start; }
  .sp-acts { align-items: flex-start; }
  .sp-today, .sp-grid, .seg-cards { grid-template-columns: 1fr; }
  .sp-col + .sp-col { border-left: 0; border-top: 1px solid var(--line-2); }
  .sp-band.compact { margin-top: 0; }
  .sp-invite { flex-wrap: wrap; }
  .sp-invite .input { width: 100%; }
}
/* ---- a problem's four faces (docs/design.md): where it stands, what runs, the terminal ----------------------------
   The tabs come in groups by face (src/web.ts frame). Where it stands (src/problems.ts frontierStrip): one cell an
   instance, its best checked value over a bar from nothing to the best known value, filled in the colour of the route
   that holds it (the route map's), the record a tick at the bar's end. What runs (src/web.ts runningNow): a tile a
   running job, the terminal's glance. The terminal (src/process.ts): the log a numbered line each, its metric lines
   drawn above as curves, a paper that follows the page's theme. */
:root { --term-paper: #f7f8f6; --term-ink: #26292c; --term-gutter: #a0a6ac; }
:root:where([data-theme="dark"]) { --term-paper: #18191c; --term-ink: #dcdfe2; --term-gutter: #5c6166; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tab .live-count { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.tab .live-count .live-dot { width: 6px; height: 6px; box-shadow: none; }

/* a strip too narrow for a row of six breaks evenly, three and three (or two by two), never five and one */
.fd-field { container-type: inline-size; }
@container (max-width: 767px) { .fd-field .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 460px) { .fd-field .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; list-style: none; }
/* each cell draws its left and top hairline, a pixel outside itself: the frame clips those of the first column and row */
.pi { display: flex; flex-direction: column; gap: 7px; min-width: 0; container-type: inline-size; margin: -1px 0 0 -1px; padding: 14px 16px 16px; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.pi-name { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 13px; font-weight: 500; }
.pi-name .live-dot { width: 6px; height: 6px; box-shadow: none; }
.pi-val { font: 300 min(19px, 14.5cqi)/1.15 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pi-open .pi-val { color: var(--faint); }
.pi-meter { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pi-bar { position: relative; display: block; height: 6px; margin-right: 2px; border-radius: 3px; background: var(--viz-track); }
.pi-bar i { display: block; height: 100%; border-radius: 3px; background: var(--rc, var(--viz-accent)); transform-origin: left; animation: pi-fill var(--shoal-scene) var(--shoal-ease) both; }
.pi-bar::after { content: ""; position: absolute; right: -2px; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--fg-2); }
.pi-open .pi-bar::after { background: var(--faint); }
@keyframes pi-fill { from { transform: scaleX(0); } }
.pi-say { color: var(--muted); font-size: 12px; line-height: 1.3; }
.pi-repro .pi-say, .pi-best .pi-say { color: var(--fg); font-weight: 500; }
.pi-best .pi-say { color: var(--ok); }
.pi-where { min-width: 0; color: var(--muted); font-size: 12px; }
.pi-route { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.pi-route .branch { overflow: hidden; padding: 0; background: none; color: var(--fg-2); font: 12px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.board .pi-route .branch { font-size: 13px; }
.pi-meter[data-tip] { cursor: default; }
.pieces-table .pi-col { width: 28%; min-width: 200px; }
.pieces-table .pi-meter { max-width: 320px; }
.board.matrix th.mx-col, .board.matrix td.mx-col { padding-inline: 10px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board.matrix td.mx-col a { color: var(--fg); font-size: 13px; }
.board.matrix td.mx-col .pi-say { display: block; margin-top: 2px; font-size: 11px; }
.board.matrix td.mx-front a { font-weight: 600; }
.board.matrix td.mx-none { color: var(--faint); text-align: center; }
.board.matrix .mx-head { width: 36px; padding-inline: 4px; text-align: center; }
.board.matrix .route-cell { max-width: 320px; }
.route-dot { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--rc, var(--muted)); }
.route-running { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.route-running .live-dot { width: 6px; height: 6px; box-shadow: none; }
.board .num-cell .live-dot { display: inline-block; width: 6px; height: 6px; margin-left: 4px; vertical-align: 1px; }

.pwall-sec { margin: 0 0 32px; }
.pwall-sec .sec-head { align-items: center; margin-bottom: 12px; }
.pwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ptile { position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 14px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); transition: border-color var(--shoal-fast) var(--shoal-ease), box-shadow var(--shoal-panel) var(--shoal-ease); }
.ptile:hover { border-color: var(--outline); box-shadow: 0 1px 2px rgba(60, 64, 67, .06), 0 8px 24px rgba(60, 64, 67, .08); }
.ptile-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ptile-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ptile-link:hover { text-decoration: none; }
.ptile-who { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 13px; }
.ptile-who .row { gap: 5px; }
.ptile-route { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--fg-2); font-family: var(--mono); font-size: 12px; }
.ptile-route::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--rc); }
.spark-metric { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: end; gap: 0 12px; }
.spark-metric .meta { grid-column: 1; font-family: var(--mono); font-size: 11px; }
.spark-metric b { grid-column: 1; font: 300 20px/1.15 var(--font); font-variant-numeric: tabular-nums; }
.spark-metric .spark-line { grid-column: 2; grid-row: 1 / 3; width: 100%; height: 34px; overflow: visible; }
.spark-line path { fill: none; stroke: var(--rc, var(--viz-accent)); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ptile .job-prog { gap: 4px; }
.ptile-tail { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--term-paper); color: var(--term-ink); font: 11.5px/1.55 var(--mono); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.job-prog .bar span { background: repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 7px), var(--bar); }
.job-prog .bar.est span { background: var(--faint); }

.job-page .run-line { margin-bottom: 4px; }
.watching { display: inline-flex; align-items: center; gap: 4px; }
.watching .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--bg); }
.job-panel { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 18px; }
.job-panel:empty { display: none; }
.run-progress .job-prog.wide { max-width: none; }
.curves { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 12px; }
.curve { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.curve figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.curve-name { overflow: hidden; color: var(--fg-2); font: 12px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.curve-last { font: 300 22px/1.1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.curve-plot { position: relative; height: 88px; }
.curve-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.curve-hi, .curve-lo { position: absolute; left: 0; z-index: 1; padding-right: 4px; background: var(--bg); color: var(--faint); font: 10px/1 var(--mono); pointer-events: none; }
.curve-hi { top: -3px; }
.curve-lo { bottom: -3px; }
.curve-x { align-self: flex-end; color: var(--faint); font-size: 11px; }
.crv-grid { fill: none; stroke: var(--line-2); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.crv-raw { fill: none; stroke: var(--rc, var(--viz-accent)); stroke-opacity: .28; stroke-width: 1; vector-effect: non-scaling-stroke; }
.crv-ema { fill: none; stroke: var(--rc, var(--viz-accent)); stroke-width: 1.7; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.crv-tips rect { fill: transparent; }
.crv-tips rect:hover { fill: color-mix(in srgb, var(--rc, var(--viz-accent)) 9%, transparent); }
.crv-dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--rc, var(--viz-accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc, var(--viz-accent)) 18%, transparent); pointer-events: none; }
.job-verdict { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; }

.term { position: relative; margin: 0 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--term-paper); }
.term-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line-2); background: var(--bg); }
.term-switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.term-follow { display: inline-flex; align-items: center; gap: 7px; }
.term-follow .live-dot { width: 6px; height: 6px; box-shadow: none; }
.term-follow.paused .live-dot { background: var(--faint); }
.term-follow.paused .live-dot::after { content: none; }
.term-body { margin: 0; max-height: min(64vh, 720px); padding: 10px 0 12px; overflow: auto; color: var(--term-ink); font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; overscroll-behavior: contain; }
.term-body:focus-visible { outline-offset: -2px; }
.tln { display: grid; grid-template-columns: var(--gw, 5ch) minmax(0, 1fr); gap: 16px; padding: 0 16px; }
.tln::before { content: attr(data-n); color: var(--term-gutter); text-align: right; user-select: none; }
.tln:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.tln:target { background: var(--wait-bg); }
.tln-sig { color: var(--muted); }
.term.hide-sig .tln-sig { display: none; }
.tln-idle { color: var(--muted); }
.tln-new { animation: tln-in var(--shoal-panel) var(--shoal-ease) both; }
@keyframes tln-in { from { opacity: 0; transform: translate(-4px, 4px); } }
.term-jump { position: absolute; right: 18px; bottom: 16px; box-shadow: var(--shadow); }
.jobs-facts { margin-top: 6px; }
/* ---- News (/news) ---------------------------------------------------------------------------------------------------
   the page's title and tabs; the newest post as the lead, its cover beside its words, the way Anthropic's newsroom
   sets a feature; the others two to a row, a small cover beside the same words, as Hugging Face lists its blog. The
   posts' own pictures, hairlines between, no cards */
.news-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-block: 12px 8px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 36px 48px; margin-top: 16px; padding-top: 36px; border-top: 1px solid var(--line-2); }
.news-card { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.news-lead, .news-card { min-width: 0; animation: rise var(--shoal-scene) var(--shoal-ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.news-cover { display: block; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.news-card .news-cover { aspect-ratio: 3 / 2; border-radius: 10px; }
.news-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale var(--shoal-scene) var(--shoal-ease); }
.news-lead:hover .news-cover img, .news-card:hover .news-cover img { scale: 1.03; }
.news-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.news-when { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.news-kind { color: var(--fg-2); font-weight: 500; }
.news-lead .news-kind { padding: 3px 10px; border-radius: 999px; background: var(--wash); color: var(--fg); } /* the haze of the side bar's current row, on the lead alone */
.news-text h2, .news-text h3 { font-weight: 400; text-wrap: balance; }
.news-line { display: block; } /* a title set where its post breaks it (" | ") */
.news-title { position: relative; display: flex; align-items: baseline; gap: 16px; }
.news-feed { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.news-feed:hover, .news-sub[open] > .news-feed { color: var(--fg); }
/* the subscribe menu hangs under the title from its left edge, so it fits a phone's width */
.news-sub { position: static; }
.news-sub .panel { font-size: 14px; }
.news-sub .meta { line-height: 1.6; }
.news-text h2 a, .news-text h3 a { color: var(--fg); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.news-lead .news-text { gap: 14px; }
.news-lead h2 { font-size: clamp(30px, 2.3vw, 44px); line-height: 1.18; }
.news-lead .news-tone { display: block; color: var(--brand-ink); }
.news-card h3 { font-size: 20px; line-height: 1.35; }
.news-sum { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.news-lead .news-sum { max-width: 620px; font-size: 17px; -webkit-line-clamp: 4; line-clamp: 4; }
.news-meta { margin: 0; color: var(--muted); font-size: 13px; }
.news-none { margin: 0; padding: 28px 0; color: var(--muted); }
/* the layers below the first on the page of all kinds (src/news.ts LAYERS): a heading with the way to its kind's tab;
   results, then updates, three to a row, the cover above the words and the title the face, without the kind (the heading
   says it), tags or Shoal's byline */
.news-layer { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.news-layer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.news-layer-head h2 { margin: 0; font-size: 22px; font-weight: 400; }
.news-layer-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.news-layer-head a:hover { color: var(--fg); }
.news-grid.news-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 36px 28px; margin-top: 0; padding-top: 0; border-top: 0; }
.news-small .news-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.news-small .news-card .news-cover { aspect-ratio: 16 / 9; }
.news-small .news-card h3 { font-size: 17px; line-height: 1.4; }
.news-small .news-sum { font-size: 14px; }
.news-small .news-kind, .news-small .pp-tags, .pp .news-small [data-from="shoal"] .news-meta { display: none; } /* a person's byline stays: it names them and the problem */
@media (max-width: 760px) {
  .news-lead, .news-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .news-card .news-cover { aspect-ratio: 2 / 1; }
  .news-lead h2 { font-size: 28px; }
  .news-card h3 { font-size: 19px; }
}

/* ---- the writing desk (src/posts.ts): post.md beside the page it makes, the page's information in a rail -------------
   After the approved mockups (reports/2026-11-15-publish-desk/editor): hairlines, no cards; lagoon on the primary action
   alone; the source in Google Sans Code; the preview is the post's own page, built as it will be published. The start of
   a post (.np) shares the desk's bar: one list of verified results, the sheet that starts a post opened under one. */
:root { --share-veil: rgba(245, 247, 242, .94); --share-clear: rgba(245, 247, 242, 0); --share-sea: #0e2c33; --desk-scrim: rgba(14, 44, 51, .28); }
:root:where([data-theme="dark"]) { --share-veil: rgba(14, 44, 51, .92); --share-clear: rgba(14, 44, 51, 0); --desk-scrim: rgba(0, 0, 0, .5); }
.post-desk { position: relative; height: calc(100dvh / var(--zoom, 1) - 64px); min-height: 600px; display: grid; grid-template-rows: 56px minmax(0, 1fr); background: var(--bg); color: var(--fg); font: 400 14px/1.5 var(--font); }
.desk-bar { display: flex; align-items: center; gap: 14px; min-width: 0; height: 56px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--line-2); background: var(--bg); }
.desk-logo { display: flex; flex: none; color: var(--brand-ink); }
.desk-logo .logo { display: block; height: 22px; width: auto; }
/* inside the site's own frame (#113) its top bar already has the logo and you: the writing bar keeps where you are and
   what to do */
.main .desk-logo, .main .desk-ava { display: none; }
.desk-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--muted); white-space: nowrap; }
.desk-crumbs a { color: var(--muted); }
.desk-crumbs a:hover { color: var(--fg); }
.desk-crumbs i { font-style: normal; color: var(--faint); }
.desk-crumbs b { overflow: hidden; text-overflow: ellipsis; color: var(--fg); font: 500 13px var(--code); }
.desk-chip { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font: 500 12px var(--font); }
.desk-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.desk-saved { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.desk-saved i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.desk-saved[data-state="busy"] i { background: var(--wait-dot); }
.desk-saved[data-state="bad"] { color: var(--bad); }
.desk-saved[data-state="bad"] i { background: var(--bad); }
.desk-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg); font: 500 13.5px var(--font); white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background var(--shoal-fast) var(--shoal-ease); }
.desk-btn:hover { background: var(--hover); }
.desk-btn.primary { padding: 0 18px; background: var(--brand); box-shadow: none; color: var(--on-brand); }
.desk-btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, var(--fg)); }
.desk-btn.quiet { box-shadow: none; color: var(--muted); }
.desk-btn.quiet[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); }
.desk-btn.sm { height: 28px; padding: 0 12px; font-size: 12.5px; }
.desk-btn:disabled { opacity: .55; cursor: default; }
.desk-ava { display: flex; flex: none; }
.desk-main { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.38fr) 340px; min-height: 0; }
.desk-src { min-height: 0; border-right: 1px solid var(--line-2); background: var(--surface); }
.desk-src textarea { display: block; width: 100%; height: 100%; margin: 0; padding: 22px 24px 40vh; border: 0; outline: 0; resize: none; background: transparent; color: var(--fg); font: 400 13px/1.75 var(--code); tab-size: 2; }
.desk-view { position: relative; min-height: 0; background: var(--bg); }
.desk-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); visibility: hidden; }
.desk-view iframe.on { visibility: visible; }
.desk-view-note { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--wait-bg); color: var(--wait); font-size: 13px; box-shadow: var(--shadow); }
.desk-rail { min-height: 0; overflow: auto; border-left: 1px solid var(--line-2); background: var(--bg); }
.desk-tabs { position: sticky; top: 0; z-index: 1; display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid var(--line-2); background: var(--bg); }
.desk-tabs button { padding: 8px 10px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 500 13px var(--font); cursor: pointer; }
.desk-tabs button[aria-selected="true"] { border-color: var(--fg); color: var(--fg); }
.desk-tabs b { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); font: 500 11.5px var(--font); }
.desk-tabs b:empty { display: none; }
.desk-sec { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.desk-lbl { display: flex; justify-content: space-between; margin: 0 0 8px; color: var(--muted); font: 500 11.5px var(--font); letter-spacing: .06em; }
.desk-count { color: var(--faint); font: 400 11.5px var(--code); letter-spacing: 0; }
.desk-count.over { color: var(--bad); }
.desk-br { height: 20px; padding: 0 7px; border: 0; border-radius: 5px; background: var(--surface-2); color: var(--muted); font: 400 11.5px var(--font); letter-spacing: 0; cursor: pointer; }
.desk-br:hover { color: var(--fg); }
.desk-input { display: block; width: 100%; padding: 5px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; color: var(--fg); font: 400 13.5px/1.55 var(--font); resize: vertical; }
.desk-input:hover { border-bottom-color: var(--line); }
.desk-input:focus { outline: 0; border-bottom-color: var(--focus); }
select.desk-input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.desk-cover { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; }
.desk-cover img { width: 84px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.desk-note { margin: 8px 0 0; color: var(--faint); font-size: 12px; }
.desk-mono { margin: 0; color: var(--fg-2); font: 400 12.5px var(--code); word-break: break-all; }
.desk-meter { display: flex; align-items: center; gap: 10px; }
.desk-meter b { font: 300 26px var(--font); }
.desk-progress { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.desk-progress i { display: block; width: 0; height: 100%; background: var(--focus); transition: width var(--shoal-panel) var(--shoal-ease); }
.desk-checks { margin: 0; padding: 4px 18px 18px; list-style: none; }
.desk-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.desk-checks li:first-child { border-top: 0; }
.desk-checks li::before { content: ''; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ok); background: radial-gradient(circle, var(--ok) 0 3px, transparent 3.5px); }
.desk-checks li.todo::before { box-shadow: inset 0 0 0 1.5px var(--wait-dot); background: none; }
.desk-checks li[data-line] { cursor: pointer; }
.desk-checks small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.post-desk.reader .desk-main { grid-template-columns: minmax(0, 1fr); }
.post-desk.reader :is(.desk-src, .desk-rail) { display: none; }
.desk-dialog { width: min(760px, calc(100% - 32px)); max-height: 88vh; padding: 0; border: 0; border-radius: 18px; background: var(--bg); color: var(--fg); box-shadow: var(--shadow); }
.desk-dialog::backdrop { background: var(--desk-scrim); backdrop-filter: blur(2px); }
.desk-dialog > header { display: flex; align-items: baseline; gap: 12px; padding: 22px 26px 14px; }
.desk-dialog h2 { margin: 0; font: 300 26px var(--font); }
.desk-dialog > header span { color: var(--muted); font-size: 13px; }
.desk-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-top: 1px solid var(--line-2); }
.desk-dgrid > div { padding: 18px 26px; }
.desk-dgrid > .desk-sharecard { border-left: 1px solid var(--line-2); background: var(--surface); }
.desk-where { margin: 0 0 16px; padding: 0; list-style: none; }
.desk-where li { padding: 10px 0; border-top: 1px solid var(--line-2); }
.desk-where li:first-child { border-top: 0; }
:is(.desk-where, .desk-when, .np-checks, .np-who) label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
:is(.desk-where, .desk-when, .np-checks, .np-who) input { margin: 3px 0 0; accent-color: var(--brand); }
.desk-where b { font-weight: 500; }
.desk-where small { display: block; color: var(--muted); font-size: 12.5px; }
.desk-card { position: relative; aspect-ratio: 1200 / 630; margin-bottom: 16px; overflow: hidden; border-radius: 8px; background: var(--share-sea) center / cover; box-shadow: inset 0 0 0 1px var(--line-2); }
.desk-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--share-veil) 0 46%, var(--share-clear) 78%); }
.desk-card p { position: absolute; z-index: 1; left: 14px; top: 14px; width: 54%; margin: 0; color: var(--share-ink); font: 300 15px/1.3 var(--font); }
.desk-card small { position: absolute; z-index: 1; left: 14px; bottom: 12px; color: var(--focus); font: 500 10px var(--font); letter-spacing: .04em; }
.desk-feed { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; }
.desk-feed img { width: 56px; height: 38px; border-radius: 4px; object-fit: cover; background: var(--surface-2); }
.desk-feed b { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; }
.desk-feed span { color: var(--muted); font-size: 12px; }
.desk-dialog footer { display: flex; align-items: center; gap: 10px; padding: 14px 26px 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.desk-dialog footer > span { margin-right: auto; }
.desk-dialog footer > span.bad { color: var(--bad); }
@media (max-width: 1088px) {
  .post-desk { height: auto; min-height: 0; display: block; }
  .desk-bar { position: sticky; top: 64px; z-index: 2; overflow-x: auto; }
  .desk-main { display: block; }
  .desk-src textarea { height: 60vh; padding-bottom: 24px; }
  .desk-view { height: 85vh; border-top: 1px solid var(--line-2); }
  .desk-rail { border-left: 0; border-top: 1px solid var(--line-2); }
  .desk-dgrid { grid-template-columns: minmax(0, 1fr); }
  .desk-dgrid > .desk-sharecard { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* The desk's second round: reading the page alone from its corner, the form made of the front matter, the assistant
   that asks your agent, the post's discussion, and sharing. */
.desk-reader { position: absolute; z-index: 2; top: 12px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow); color: var(--muted); cursor: pointer; }
.desk-reader:hover, .desk-reader[aria-pressed="true"] { color: var(--fg); }
.desk-field { position: relative; }
.desk-field .desk-br { position: absolute; top: 12px; right: 18px; }
.desk-field .desk-count { position: absolute; top: 15px; right: 18px; }
.desk-help { display: none; margin-top: 6px; color: var(--faint); font-size: 12px; line-height: 1.5; }
.desk-field:focus-within .desk-help { display: block; }
.desk-cover-row { padding-top: 0; }
.desk-rawfm { padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.desk-rawfm summary { color: var(--muted); font-size: 12.5px; cursor: pointer; }
.desk-rawfm textarea { display: block; width: 100%; min-height: 220px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg-2); font: 400 12px/1.65 var(--mono); resize: vertical; }
.desk-agentwho { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.desk-agentwho select { flex: 1; min-width: 0; }
.desk-scope { margin-bottom: 8px; }
.desk-scope-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 6px 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg); font-size: 12.5px; }
.desk-scope-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.desk-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.desk-preset { height: 26px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg-2); font: 400 12.5px var(--font); cursor: pointer; }
.desk-preset:hover { border-color: var(--muted); }
.desk-preset.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); color: var(--brand-ink); font-weight: 500; }
:is(.desk-agent, .desk-talk + .desk-sec) textarea.desk-input, .desk-invite .desk-input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.desk-send { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.desk-send .desk-note { margin: 0; }
.desk-asks, .desk-talk { margin: 0; padding: 4px 18px 18px; list-style: none; }
:is(.desk-asks, .desk-talk) > li { padding: 10px 0; border-top: 1px solid var(--line-2); }
:is(.desk-asks, .desk-talk) > li:first-child { border-top: 0; }
.desk-ask-h { display: flex; align-items: center; gap: 8px; }
.desk-ask-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.desk-ask-h .chip { flex: none; margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); font: 500 11px/1.6 var(--font); white-space: nowrap; }
.desk-ask-h .chip.working { background: color-mix(in srgb, var(--brand) 12%, var(--bg)); color: var(--brand-ink); }
.desk-ask-h .chip:is(.question, .done) { background: var(--wait-bg); color: var(--wait); }
.desk-ask-h .chip:is(.dropped, .cancelled) { color: var(--faint); }
.desk-ask small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.desk-ask small.desk-moved { color: var(--faint); }
.desk-ask-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.desk-ask-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.desk-ask-pics figure { display: grid; gap: 6px; margin: 0; }
.desk-ask-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.desk-talk-h { display: flex; align-items: baseline; gap: 8px; }
.desk-talk-h b { font-size: 13px; font-weight: 500; }
.desk-talk-h small { color: var(--faint); font-size: 11.5px; }
.desk-talk p { margin: 4px 0 0; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.desk-para { padding: 0 4px; border: 0; border-radius: 4px; background: var(--surface-2); color: var(--brand-ink); font: 500 12px var(--mono); cursor: pointer; }
.desk-hand { grid-column: 2; justify-self: start; margin-top: 4px; }
.desk-share { width: min(580px, calc(100% - 32px)); }
.desk-share > header { align-items: center; }
.desk-share > header h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; }
.desk-share > header h2 span { color: var(--muted); }
.desk-share > header .desk-btn { flex: none; margin-left: auto; }
.desk-share-in { padding: 4px 26px 18px; }
.desk-invite { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.desk-invite select.desk-input { width: auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.desk-invite-note { grid-column: 1 / -1; }
.desk-dl { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px 14px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.desk-dl dt { padding-top: 2px; color: var(--muted); font-size: 12px; }
.desk-dl dd { margin: 0; color: var(--fg-2); }
.desk-people { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.desk-people li { display: flex; align-items: center; gap: 8px; }
.desk-people b { font-weight: 500; }
.desk-people small { color: var(--muted); }
@media (max-width: 600px) { .desk-invite, .desk-dl { grid-template-columns: minmax(0, 1fr); } }

.np { min-height: 70vh; background: var(--bg); color: var(--fg); font: 400 15px/1.6 var(--font); }
.np .desk-bar { position: sticky; top: 64px; z-index: 2; }
.np-wrap { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.np-h { margin: 0 0 30px; font: 300 44px/1.2 var(--font); letter-spacing: -.01em; }
.np-h em { font-style: normal; color: var(--brand-ink); }
.np-eb { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; color: var(--muted); font: 500 12px var(--font); letter-spacing: .06em; }
.np-eb a { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.np-list { border-top: 1px solid var(--fg); }
.np-item { border-bottom: 1px solid var(--line-2); }
.np-item[open] { border-bottom: 0; }
.np-row { display: grid; grid-template-columns: 14px minmax(0, 1.5fr) 120px auto 140px; gap: 18px; align-items: center; padding: 15px 0; list-style: none; cursor: pointer; }
.np-row::-webkit-details-marker { display: none; }
.np-row.np-quiet { cursor: default; border-bottom: 1px solid var(--line-2); }
.np-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.np-what { min-width: 0; }
.np-what b { display: block; font-weight: 500; }
.np-what small { color: var(--muted); font-size: 13px; }
.np-val { font: 300 26px/1 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.np-go { justify-self: end; color: var(--brand-ink); font: 500 13.5px var(--font); white-space: nowrap; }
.np-row:hover .np-go { text-decoration: underline; text-underline-offset: 4px; }
.np-item[open] .np-go { visibility: hidden; }
.np-sheet { margin: 0 0 6px 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.np-alone .np-sheet { margin: 18px 0 0; }
.np-r { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.np-sheet > div:first-of-type { border-top: 0; }
.np-k { padding-top: 5px; color: var(--muted); font: 500 13px var(--font); }
.np-pick { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: 400 14px var(--font); }
.np-checks { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.np-checks small { color: var(--muted); }
.np-who { display: grid; gap: 8px; font-size: 14px; }
.np-who b { font-weight: 500; }
.np-who .avatar { vertical-align: -4px; }
.np-brief { display: none; margin-left: 26px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg-2); font: 400 14px var(--font); }
.np-who:has([value="agent"]:checked) .np-brief { display: block; }
.np-addr { color: var(--muted); font: 400 13.5px var(--code); overflow-wrap: anywhere; }
.np-addr input { width: 24ch; max-width: 100%; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--fg); font: inherit; }
.np-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line-2); background: var(--surface); }
.np-foot > span { margin-right: auto; color: var(--muted); font-size: 13px; }
.np-error { margin: 0; padding: 10px 18px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; }
.np-none { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line-2); color: var(--muted); }
.np-also { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.np-link { padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; cursor: pointer; }
.np-link:hover { border-color: var(--fg); }
@media (max-width: 760px) {
  .np-row { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .np-row :is(.np-val, .ev) { display: none; }
  .np-sheet { margin-left: 0; }
  .np-r { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .np-foot { flex-wrap: wrap; }
  .np-foot > span { flex-basis: 100%; }
  .np-foot .desk-btn:first-of-type { margin-left: auto; }
  .np-h { font-size: 34px; }
  .np-h em { display: block; }
}
.post-item p { margin: 4px 0 0; }

/* ---- the writing hub (src/writing-hub.ts, /posts): four blocks of a person's writing, in three compositions behind
   ?v= (reports/2026-11-15-writing-hub/research/layout.md). A piece's cover carries the colour; its card has three
   levels (title, state and kind, why it is here); the state is a tinted word, never a dot; the numbers are solid. ---- */
.wh { gap: 44px; padding-block: 28px 40px; }
.wh-head { align-items: center; gap: 12px 16px; }
.wh-scope { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.wh-scope > a, .wh-scope summary { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--fg-2); font-size: 14px; white-space: nowrap; }
.wh-scope > a:hover, .wh-scope summary:hover { color: var(--fg); text-decoration: none; }
.wh-scope [aria-current] { background: var(--bg); color: var(--fg); font-weight: 500; box-shadow: 0 1px 2px rgba(60, 64, 67, .16); }
.wh-scope .menu-item .avatar { border-radius: 6px; }
.wh-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.wh-sec-head h2 { font-size: 20px; }
.wh-more { margin-left: auto; color: var(--muted); font-size: 13px; }
.wh-none { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.wh-none a { color: var(--fg); font-weight: 500; }

/* the parts every composition shares */
.wh-tag { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.t-grey { background: var(--surface-2); color: var(--fg-2); }
.t-sand { background: var(--sun-soft); color: var(--brass); }
.t-wait { background: var(--wait-bg); color: var(--wait); }
.t-blue { background: var(--branch-bg); color: var(--branch-fg); }
.t-bad { background: var(--bad-bg); color: var(--bad); }
.t-ok { background: var(--ok-bg); color: var(--ok); }
.wh-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.wh-cover img, .wh-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale var(--shoal-scene) var(--shoal-ease); }
:is(.wh-card, .wh-post, .wh-way, .wh-feature, .wh-act):hover img { scale: 1.035; }
.wh-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wh-kick { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12.5px; }
.wh-kick i, .wh-why i { font-style: normal; color: var(--faint); }
.wh-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--fg); font-size: 16px; font-weight: 500; line-height: 1.35; text-wrap: pretty; }
a.wh-title:hover { text-decoration: none; }
.wh-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.wh-why { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.wh-why > span { overflow: hidden; text-overflow: ellipsis; }
.wh-name { color: var(--fg-2); }
.wh-said { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 2px 0 0; color: var(--fg-2); font-size: 13px; line-height: 1.5; }
.wh-card, .wh-post, .wh-way { display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--fg); }
:is(.wh-card, .wh-post, .wh-way):hover { text-decoration: none; }
:is(.wh-card, .wh-post, .wh-way):hover .wh-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wh-go { display: inline-flex; flex: none; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--fg); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background var(--shoal-fast) var(--shoal-ease); }
.wh-go:hover { background: var(--line-2); text-decoration: none; }
button.wh-go { border: 0; font-family: inherit; cursor: pointer; }
/* what the page of posts' editors and a writer decide (src/listing.ts): the one to go on filled in ink */
.wh-answer { display: flex; flex: none; flex-wrap: wrap; gap: 6px; margin: 0; }
.wh-go.wh-yes { background: var(--ink); color: var(--on-ink); }
.wh-go.wh-yes:hover { background: var(--ink-hover); }
.wh-wait { flex: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.wh-invite .wh-title a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.wh-sec-head + .wh-acts-list { margin-top: 0; }
.wh-act { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; background: var(--bg); }
.wh-thumb { display: block; width: 64px; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.wh-res { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 18px 16px; background: var(--bg); }
.wh-res-of { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--fg-2); font-size: 13px; }
.wh-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.wh-val { margin-top: 6px; color: var(--fg); font-size: 34px; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wh-route { overflow: hidden; color: var(--muted); font: 500 12.5px var(--code); white-space: nowrap; text-overflow: ellipsis; }
.wh-ask-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--fg-2); font: 400 14px/1.4 var(--font); white-space: normal; }
/* a result's evidence after its value (src/render.ts evidence()): a chip (.wh-tag) for each step it reached, none for the rest */
.ev { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ev-none { color: var(--muted); font-size: 12px; }
.wh-res .ev { margin: 6px 0 4px; }
.wh-res .wh-go { align-self: flex-start; margin-top: 8px; }
.wh-postval { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.wh-postval b { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wh-post .wh-cover { aspect-ratio: 2 / 1; border-radius: 12px; }
.wh-post { gap: 10px; }
:is(.wh-card, .wh-act, .wh-res, .wh-post, .wh-feature, .wh-way) { animation: rise var(--shoal-scene) var(--shoal-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* a: the shelf. What waits in one band of actions; the drafts as covers, the latest one large; results as tiles of
   their values; the published as posters, four to a row. */
.wh-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.wh-acts > .wh-act { border: 1px solid var(--line-2); border-radius: 16px; }
.wh-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 32px 24px; }
.wh-card.wh-lead { grid-column: span 2; grid-row: span 2; gap: 16px; }
.wh-card.wh-lead .wh-cover { aspect-ratio: auto; flex: 1; min-height: 240px; border-radius: 18px; }
.wh-card.wh-lead .wh-title { font-size: 28px; font-weight: 400; line-height: 1.22; letter-spacing: -.005em; }
.wh-card.wh-lead .wh-body { gap: 8px; }
/* fewer drafts, a calmer shelf: one is a band, its cover beside its words; two or three keep the lead to one row */
.wh-shelf > .wh-lead:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.wh-shelf:not(:has(> :nth-child(4))) { align-items: start; }
.wh-shelf:not(:has(> :nth-child(4))) > .wh-lead { grid-row: auto; }
.wh-shelf:not(:has(> :nth-child(4))) > .wh-lead .wh-cover { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
.wh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.wh-tiles > .wh-res { border-radius: 16px; background: var(--surface); }
.wh-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 188px), 1fr)); gap: 28px 20px; }
.wh-older { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-2); }

/* b: lanes (Linear's board): the four blocks side by side in the order a piece is dealt with; each lane's head a tinted
   band with its count, its cards borderless grey with the cover as a strip. */
.wh-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; align-items: start; }
.wh-lane { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wh-lane-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface); }
.wh-lane-head h2 { font-size: 14px; font-weight: 500; }
.wh-lane-head b { color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wh-lane[data-block="waiting"] .wh-lane-head { background: var(--wait-bg); }
.wh-lane[data-block="waiting"] .wh-lane-head b { color: var(--wait); }
.wh-lane[data-block="published"] .wh-lane-head { background: var(--ok-bg); }
.wh-lane[data-block="published"] .wh-lane-head b { color: var(--ok); }
.wh-stack { display: flex; flex-direction: column; gap: 10px; }
.wh-lane :is(.wh-card, .wh-post, .wh-res, .wh-act) { overflow: hidden; border-radius: 12px; background: var(--surface); }
.wh-lane :is(.wh-card, .wh-post) { gap: 0; }
.wh-lane :is(.wh-card, .wh-post) .wh-cover { aspect-ratio: 16 / 6; border-radius: 0; }
.wh-lane .wh-card .wh-body { padding: 12px 14px 14px; }
.wh-lane .wh-post > :not(.wh-cover) { padding-inline: 14px; }
.wh-lane .wh-post > .wh-kick { padding-top: 12px; }
.wh-lane .wh-post > .wh-why { padding-bottom: 14px; }
.wh-lane .wh-post > * + * { margin-top: 6px; }
.wh-lane .wh-act { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.wh-lane .wh-act .wh-thumb { width: auto; aspect-ratio: 16 / 6; border-radius: 0; }
.wh-lane .wh-act .wh-body { padding: 12px 14px 0; }
.wh-lane .wh-act .wh-why { white-space: normal; flex-wrap: wrap; }
.wh-lane .wh-act > :is(.wh-go, .wh-answer, .wh-wait) { margin: 12px 14px 14px; align-self: flex-start; }
.wh-lane .wh-act .wh-go:not(.wh-yes) { background: var(--bg); }
.wh-lane .wh-act .wh-go:not(.wh-yes):hover { background: var(--line-2); }
.wh-lane .wh-res { padding: 14px; }
.wh-lane .wh-res .wh-go { background: var(--bg); }
.wh-lane .wh-val { font-size: 28px; }

/* c: the desk. The piece that most needs you as a feature, the rest below; a rail of results and the published. */
.wh-desk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 56px; align-items: start; }
@media (min-width: 1280px) { .wh-desk { grid-template-columns: minmax(0, 1fr) 380px; } }
.wh-main, .wh-rail { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.wh-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.wh-feature .wh-cover { aspect-ratio: 3 / 2; border-radius: 20px; }
.wh-feature .wh-body { gap: 12px; }
.wh-feature .wh-title { font-size: 32px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; -webkit-line-clamp: 3; }
.wh-feature .wh-why { font-size: 13.5px; }
.wh-feature .wh-said { font-size: 15px; -webkit-line-clamp: 3; }
.wh-feature-go, .wh-feature-go:hover { align-self: flex-start; margin-top: 6px; border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.wh-feature-go:hover { background: var(--ink-hover); }
.wh-feature-go .octicon { transition: transform var(--shoal-panel) var(--shoal-ease); }
.wh-feature-go:hover .octicon { transform: translate(2px, -2px) rotate(-45deg); }
.wh-acts-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; }
.wh-acts-list > .wh-act { border: 0; border-radius: 0; }
.wh-acts-list > .wh-act + .wh-act { border-top: 1px solid var(--line-2); }
.wh-feature + .wh-group, .wh-sec .wh-feature { margin-bottom: 8px; }
.wh-group + .wh-group { margin-top: 26px; }
.wh-group h3 { margin-bottom: 12px; }
.wh-group h3 .wh-tag { height: 24px; padding: 0 9px; font-size: 13px; }
.wh-spines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px 28px; }
.wh-card.wh-spine { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.wh-card.wh-spine .wh-cover { aspect-ratio: 3 / 2; border-radius: 10px; }
.wh-group .wh-card.wh-spine .wh-kick > .wh-tag { display: none; } /* the group's head says it */
.wh-rail .wh-sec-head { margin-bottom: 4px; }
.wh-rail-list { display: flex; flex-direction: column; }
.wh-rail .wh-res { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'of val' 'route val' 'steps go' 'who go'; gap: 4px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.wh-rail .wh-res-of { grid-area: of; }
.wh-rail .wh-val { grid-area: val; margin: 0; font-size: 30px; text-align: right; }
.wh-rail .wh-route { grid-area: route; }
.wh-rail .wh-res .ev { grid-area: steps; margin: 4px 0 0; }
.wh-rail .wh-res .wh-why { grid-area: who; }
.wh-rail .wh-res .wh-go { grid-area: go; justify-self: end; margin: 0; }
.wh-rail .wh-ask .wh-ask-title { grid-area: route; }
.wh-post.wh-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: 'cover kick' 'cover title' 'cover why'; gap: 2px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.wh-post.wh-row .wh-cover { grid-area: cover; aspect-ratio: 4 / 3; border-radius: 8px; }
.wh-post.wh-row .wh-kick { grid-area: kick; }
.wh-post.wh-row .wh-title { grid-area: title; font-size: 14px; -webkit-line-clamp: 1; }
.wh-post.wh-row .wh-why { grid-area: why; }
.wh-post.wh-row .wh-postval { display: none; }

/* someone who has written nothing yet: three ways in */
.wh-start { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wh-way > b { font-size: 18px; font-weight: 500; }
.wh-way .wh-cover { aspect-ratio: auto; height: clamp(180px, 17vw, 280px); border-radius: 18px; }
.wh-way-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.wh-way-list > span { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--fg-2); font-size: 14px; }
.wh-way-list > span > .truncate { flex: 1; }
.wh-way-list b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg); }

/* the versions under discussion, at the foot */
.wh-versions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.wh-versions a { padding: 4px 12px; border-radius: 999px; color: var(--muted); font-size: 12.5px; }
.wh-versions a:hover { color: var(--fg); text-decoration: none; }
.wh-versions a[aria-current] { background: var(--surface-2); color: var(--fg); font-weight: 500; }

@media (max-width: 1023px) {
  .wh-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wh-desk { grid-template-columns: minmax(0, 1fr); }
  .wh-board { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wh { gap: 36px; padding-top: 20px; }
  .wh-head h1 { flex-basis: 100%; }
  .wh-head > .grow { flex-basis: 100%; }
  .wh-head .btn-primary { margin-left: auto; }
  .wh-shelf, .wh-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .wh-card.wh-lead { grid-row: auto; }
  .wh-shelf > .wh-lead:only-child { display: flex; gap: 12px; }
  .wh-card.wh-lead .wh-cover { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .wh-card.wh-lead .wh-title { font-size: 22px; }
  .wh-card:not(.wh-lead) .wh-title, .wh-post .wh-title { font-size: 15px; }
  .wh-act { grid-template-columns: 52px minmax(0, 1fr); }
  .wh-act .wh-thumb { width: 52px; }
  .wh-act > :is(.wh-go, .wh-answer, .wh-wait) { grid-column: 2; justify-self: start; }
  .wh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wh-res { padding: 14px; }
  .wh-val { font-size: 28px; }
  .wh-board { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; margin-inline: -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; }
  .wh-lane { scroll-snap-align: start; }
  .wh-feature { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wh-feature .wh-title { font-size: 24px; }
  .wh-card.wh-spine { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .wh-start { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the page of posts (src/news.ts, /posts): Shoal's posts and everyone's in the lead and the cards above, with what the
   list says of each (the days, a correction, its tags, a result's evidence, the byline: Shoal's square mark, or a
   person's avatar, Shoal's mark after a team member's name, the agents that helped and the problem); the source switch
   at the bar's end, 写作 after a thin line (src/writing-hub.ts), and 写作 under 文章 in the side bar ---- */
.pp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 18px; border-bottom: 1px solid var(--line-2); }
.pp-bar .tk-tabs { margin: 0 0 -1px; border-bottom: 0; }
.pp-sep { flex: none; align-self: center; width: 1px; height: 18px; margin: 0 6px; background: var(--line); }
.pp-source { margin-bottom: 6px; }
.pp-source > a { gap: 6px; }
.shoal-sq { display: inline-grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--brand); color: var(--on-brand); }
.shoal-sq .logo { display: block; width: 14px; height: auto; color: inherit; }
.pp .news-when { flex-wrap: wrap; row-gap: 4px; }
.pp .news-when > * { white-space: nowrap; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pp-tags a:hover { background: var(--line-2); color: var(--fg); text-decoration: none; }
.pp .news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pp-by { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.pp-by b { color: var(--fg-2); font-weight: 500; }
.pp-by b + .shoal-sq { width: 16px; height: 16px; margin-left: -6px; border-radius: 4px; }
.pp-by b + .shoal-sq .logo { width: 11px; }
.pp-problem { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); }
.pp-problem .octicon { color: var(--faint); }
.pp-problem:hover { color: var(--fg); }
.pp-value { margin: -2px 0 0; }
.news-lead .pp-value b { font-size: 30px; line-height: 1; }
.pp-filter { display: flex; align-items: center; gap: 10px; margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.pp-writing > .wh { display: flex; flex-direction: column; gap: 40px; padding: 4px 0 0; }
.pp-writing .wh-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.side-sub { height: 36px; padding-left: 58px; gap: 10px; font-size: 13.5px; }
.side-sub .octicon { color: var(--muted); }
@media (min-width: 819px) { .side-folded .side-sub { padding: 0; } }
@media (max-width: 767px) {
  .pp-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .pp-bar .tk-tabs { flex-wrap: wrap; overflow: visible; }
  .pp-source { align-self: flex-start; margin: 10px 0; }
}

/* ---- the ways in for a visitor (11-22) ------------------------------------------------------------------------------ */
/* The sentence for a visitor's agent (src/web.ts bring): its text, and copying as the block's one action until it is
   done; then the account is the next (app.js moves the emphasis). */
.bring { display: grid; gap: 12px; min-width: 0; }
.bring-text { max-height: 148px; padding: 12px 14px; font-size: 12px; }
.bring-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.bring-acts .btn { flex: 1 1 auto; justify-content: center; }
.bring-into { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left; }
.bring-marks { display: inline-flex; gap: 6px; }
.bring-closed { flex-wrap: nowrap; align-items: flex-start; } .bring-closed .octicon { flex: none; margin-top: 3px; }
.join-bring { display: grid; gap: 10px; }
.join-bring > b { font-size: 15px; font-weight: 500; }
.menu .bring { margin-top: 4px; }
/* A sheet over the page: the landing's Bring your agent (app.js data-sheet). */
.sheet { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 36px; border: 0; border-radius: 28px; background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px -20px rgba(0, 0, 0, .35); overflow: auto; font-weight: 400; }
.sheet[open] { display: grid; gap: 22px; animation: rise var(--shoal-panel) var(--shoal-ease) both; }
.sheet::backdrop { background: var(--ln-veil); backdrop-filter: blur(6px); }
.sheet .tp { font-size: clamp(28px, 3.4vw, 40px); }
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-on { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--ln-control); color: var(--fg); }
.sheet-on:hover { text-decoration: none; box-shadow: 0 0 0 1px rgba(var(--ln-hair), .24), 0 1px 2px rgba(var(--ln-edge), .06); }
.sheet-on-art { display: block; height: 72px; border-radius: 12px; overflow: hidden; }
.sheet-on-id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.sheet-on-id b { font: 400 18px/1.3 'Outfit', var(--font); }
.sheet-on-id small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.sheet .bring-text { max-height: 200px; font-size: 12.5px; }
@media (max-width: 640px) { .sheet { padding: 28px 20px 20px; } .sheet-on { grid-template-columns: 72px minmax(0, 1fr); } .sheet-on-art { height: 54px; } .sheet-on .ln-pos-best { display: none; } }

/* /partner (src/partner.ts), composed as Kaggle's page for hosts: the claim and three counts beside a window on a real
   problem, over its own water (two channels meeting, public/brand/confluence.jpg); below, the three ways, which are the
   form's three choices, with the form a panel beside them, lapping the water's lower edge. */
.pt-hero { position: relative; isolation: isolate; padding: 148px 0 132px; }
.pt-water { position: absolute; z-index: -1; inset: 0 0 -120px; background: #e9e4d6 url(/static/brand/confluence.jpg) center 70% / cover; -webkit-mask-image: linear-gradient(to bottom, transparent 3%, #000 50%, #000 78%, transparent); mask-image: linear-gradient(to bottom, transparent 3%, #000 50%, #000 78%, transparent); }
.pt-claim { position: relative; }
.pt-claim::before { content: ''; position: absolute; z-index: -1; inset: -40px -60px; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 62%, transparent), transparent); }
.pt-hero-in { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); align-items: center; gap: clamp(32px, 5vw, 88px); }
.pt-claim .tp { font-size: clamp(40px, 4.5vw, 66px); }
.pt-claim .ln-sub { max-width: 520px; margin: 24px 0 0; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; }
.pt-nums { display: flex; flex-wrap: wrap; gap: 12px 48px; margin: 40px 0 0; }
.pt-nums dt { color: var(--fg); font: 300 38px/1.05 'Outfit', var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pt-nums dd { margin: 4px 0 0; color: var(--fg-2); font-size: 14.5px; font-weight: 400; }
.ln-win.pt-win { height: auto; margin: 0; border-radius: 20px; box-shadow: var(--ln-ring), 0 30px 60px -28px rgba(14, 44, 51, .45); font-weight: 400; animation: ln-rise var(--shoal-scene) var(--shoal-ease) 120ms backwards; }
.pt-win-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--fg); }
.pt-win-head:hover { text-decoration: none; }
.pt-win-art { display: block; height: 72px; border-radius: 12px; overflow: hidden; }
.pt-win-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pt-win-id b { font: 400 20px/1.25 'Outfit', var(--font); }
.pt-win-id small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pt-win-map { display: block; padding: 6px 12px 10px; }
.pt-main { position: relative; margin-top: -72px; } /* positioned, so it stands over the water that runs on below the hero */
.pt-form { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 20px; padding-bottom: 24px; }
.pt-form.solo { grid-template-columns: minmax(0, 620px); justify-content: center; } /* the form alone: a request for an invite code */
.pt-form.solo .pt-sheet { position: static; }
.pt-ways { display: grid; gap: 1px; border-radius: 28px; background: var(--line-2); box-shadow: var(--ln-ring), var(--ln-lift); overflow: hidden; }
.pt-way { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 18px; padding: 28px; background: var(--bg); cursor: pointer; }
.pt-way input { position: absolute; opacity: 0; pointer-events: none; }
.pt-way-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pt-way-text > b { color: var(--fg); font: 400 21px/1.3 'Outfit', var(--font); }
.pt-way-text > span { color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.pt-way-on { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--outline); color: transparent; transition: background var(--shoal-fast) var(--shoal-ease); }
.pt-way:has(input:checked) { background: var(--wash), var(--bg); }
.pt-way:has(input:checked) .pt-way-on { background: var(--brand); box-shadow: none; color: var(--on-brand); }
.pt-way:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.pt-rec { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.pt-sheet { position: sticky; top: 96px; }
.pt-fields, .pt-sent { display: grid; gap: 16px; padding: 24px; border-radius: 20px; background: var(--bg); font-weight: 400; }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pt-sent { justify-items: start; padding: 40px 28px; }
.pt-sent b { font: 400 26px/1.2 'Outfit', var(--font); }
.pt-sent p { margin: 0; color: var(--fg-2); }
.pt-ask-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
:where([data-theme="dark"]) .pt-water { background-color: #1b2a2e; filter: brightness(.5) saturate(.8); }
@media (max-width: 768px) { .pt-hero { padding: 120px 0 112px; } .pt-hero-in, .pt-form { grid-template-columns: 1fr; } .pt-sheet { position: static; } }
@media (max-width: 560px) { .pt-way { grid-template-columns: 36px minmax(0, 1fr); padding: 20px; } .pt-way-on { position: absolute; top: 20px; right: 20px; } .pt-two { grid-template-columns: 1fr; }
  .pt-win-head { grid-template-columns: 72px minmax(0, 1fr); } .pt-win-art { height: 54px; } .pt-win-head .ln-pos-best { display: none; } .pt-nums { gap: 12px 28px; } .pt-nums dt { font-size: 30px; } }

/* A verified result as a card (src/card.ts): the picture app.js draws, and what to do with it. */
.card-page { display: grid; gap: 16px; max-width: 960px; }
.card-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.job-share { align-self: flex-start; margin-top: 4px; }

/* ---- personal profiles ------------------------------------------------------- */
.wrap.pf-layout { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 40px; padding-top: 24px; }
/* Keep the 296px card and its focus/ring padding inside the scrollport; the gutter extends into the grid gap. */
.pf-sidebar { min-width: 0; width: max-content; align-self: start; position: sticky; top: 80px; max-height: calc(100vh / var(--zoom, 1) - 80px - 16px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; padding: 4px; margin: -4px; }
.pf-main { min-width: 0; }
.pf-main > .subtabs { margin-top: 0; }
.pf-layout .profile-card { width: 296px; display: block; padding: 0; border: 0; border-radius: 0; background: none; color: var(--fg); }
.pf-layout .profile-avatar { width: 296px; height: 296px; padding: 0; border: 1px solid var(--line); box-shadow: none; }
.pf-layout .profile-avatar.ring-working { box-shadow: 0 0 0 4px var(--ok); }
.pf-layout .profile-avatar .avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pf-layout .profile-text { margin-top: 16px; }
.pf-layout .profile-text h1 { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.25; }
.pf-login { font-size: 20px; font-weight: 300; color: var(--muted); overflow-wrap: anywhere; }
.pf-bio { margin: 16px 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.pf-edit { display: flex; justify-content: center; width: 100%; margin: 0 0 16px; }
.pf-layout .profile-facts { gap: 8px; margin: 0; font-size: 14px; font-weight: 400; color: var(--fg-2); }
.pf-layout .profile-facts li { align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pf-layout .profile-facts .octicon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.pf-layout .profile-facts a:not(.branch) { color: inherit; text-decoration: none; }
.pf-layout .profile-facts a:hover { text-decoration: underline; }
.pf-sidebar-section { border-top: 1px solid var(--line-2); margin-top: 20px; padding-top: 16px; }
.pf-sidebar-section h2 { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.pf-layout .pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pf-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--fg-2); font-size: 13px; }
.pf-topic-field { position: relative; min-width: 0; }
.pf-topic-input { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; height: auto; min-height: 44px; padding-block: 6px; cursor: text; }
.pf-topic-input:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-topic-chips { display: contents; }
.pf-topic-input .pf-tag { gap: 6px; max-width: 100%; overflow-wrap: anywhere; }
.pf-topic-input .pf-tag button { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 18px; }
.pf-topic-input .pf-tag button:hover { background: var(--line); }
.pf-topic-search { flex: 1 1 190px; min-width: 80px; width: 100%; padding: 5px 0; border: 0; outline: none; background: transparent; color: var(--fg); font: inherit; }
.pf-topic-search::placeholder { color: var(--muted); }
.pf-topic-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid var(--outline); border-radius: 12px; background: var(--bg); color: var(--fg); box-shadow: var(--shadow); }
.pf-topic-list[hidden], .pf-topic-field > input[hidden] { display: none; }
.pf-topic-heading { padding: 9px 12px 4px; color: var(--fg-2); font-size: 12px; font-weight: 600; }
.pf-topic-option { padding: 10px 12px; border-radius: 7px; cursor: pointer; overflow-wrap: anywhere; font-size: 14px; }
.pf-topic-option:hover, .pf-topic-option[aria-selected="true"] { background: var(--line); color: var(--fg); }
.pf-topic-usage { color: var(--fg-2); font-size: 12px; }
.pf-topic-status { margin: 0; color: var(--fg); font-size: 12px; }
.pf-topic-status:empty { display: none; }
.pf-edit-page > .pf-main { opacity: .55; pointer-events: none; }
.pf-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.pf-form .full { grid-column: 1 / -1; }
.pf-form textarea { min-height: 72px; resize: vertical; }
.pf-linkrow { display: flex; align-items: center; gap: 8px; }
.pf-linkrow .input { min-width: 0; width: 100%; }
.pf-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.pf-section-head .section-title { margin: 0; }
.pf-pin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-pins { margin-bottom: 24px; }
.pf-pin { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); color: var(--fg); min-width: 0; }
.pf-pin:hover { border-color: var(--outline); text-decoration: none; }
.pf-pin b { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.pf-pin p { margin: 0; font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-pin-foot { display: flex; align-items: center; flex-wrap: wrap; column-gap: 2ch; row-gap: 6px; margin-top: auto; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.pf-pin-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.pf-pin-merged { color: var(--done); }
.pf-about-empty { padding: 36px; text-align: center; }
/* A person's page as their homepage (src/profile-view.ts, src/visits.ts). The owner's: edit and share side by side, a line
   on top of who came this week, the Visitors tab. Everyone's: their introduction without its file's name, when it was
   last changed, and the problems they and their agents worked on, as the problem list's cards with their part. */
.pf-own { display: flex; gap: 8px; margin: 0 0 16px; }
.pf-own .pf-edit { flex: 1; width: auto; margin: 0; }
.pf-share { flex: none; padding-inline: 12px; }
.vs-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 20px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--fg-2); font-size: 14px; }
a.vs-strip { color: var(--fg-2); text-decoration: none; transition: background var(--shoal-fast) var(--shoal-ease), border-color var(--shoal-fast) var(--shoal-ease); }
a.vs-strip:hover { border-color: var(--line); background: var(--hover); }
.vs-strip b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.vs-strip > .octicon:last-child { margin-left: auto; color: var(--muted); }
.vs-only { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.vs-spark { width: 82px; height: 20px; fill: var(--fg-2); }
.vs-spark .was { fill: var(--line); }
.vs { display: grid; gap: 22px; }
.vs-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.vs-totals { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 28px; color: var(--fg-2); font-size: 14px; }
.vs-totals > span:not(.meta) { display: inline-flex; align-items: baseline; gap: 8px; }
.vs-totals b { font: 300 34px/1 'Outfit', var(--font); color: var(--fg); font-variant-numeric: tabular-nums; }
.vs-chart { position: relative; margin: 0; padding-top: 18px; }
.vs-top, .vs-ticks { color: var(--muted); font: 11px var(--mono); font-variant-numeric: tabular-nums; }
.vs-top { position: absolute; top: 0; left: 0; }
.vs-bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.vs-bars > span { position: relative; flex: 1; height: 100%; }
.vs-bars i { position: absolute; bottom: 0; left: 12%; right: 12%; border-radius: 2px 2px 0 0; }
.vs-bars .vs-v { background: var(--line); }
.vs-bars .vs-p { left: 34%; right: 34%; background: var(--fg-2); }
.vs-ticks { display: flex; justify-content: space-between; margin-top: 6px; }
.vs-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px 32px; }
.vs-table { min-width: 0; }
.vs-table h3 { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.vs-table .itab td:not(:first-child), .vs-table .itab th:not(:first-child) { width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.vs-table .itab td:first-child { overflow-wrap: anywhere; }
.vs-visit { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto auto; align-items: center; gap: 12px; font-size: 14px; }
.vs-note { display: flex; align-items: center; gap: 6px; }
.pc-part { display: grid; gap: 6px; }
.pc-best { display: flex; align-items: flex-start; gap: 8px; color: var(--fg); font-size: 13.5px; line-height: 1.45; text-decoration: none; }
.pc-best:hover b { text-decoration: underline; }
.pc-best .avatar { flex: none; margin-top: 1px; }
.pc-best b { font-weight: 500; overflow-wrap: anywhere; }
.pc-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0; color: var(--fg-2); font-size: 13px; }
.pc-faces { display: inline-flex; }
.pc-faces .avatar { margin-right: -5px; border: 2px solid var(--bg); box-sizing: content-box; }
.pc-faces:not(:empty) { margin-right: 6px; }
.pc-part .lp-find { font-size: 13px; }
.pf-problems { margin: 8px 0 24px; scroll-margin-top: 88px; }
/* six at most, so three a row fills two rows; two a row on a narrower page, one on a phone */
.pf-problems .pcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 944px) { .pf-problems .pcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pf-problems .pcs { grid-template-columns: minmax(0, 1fr); } }
.pf-more { margin-top: 24px; }
.pf-more > summary { list-style: none; }
.pf-more > summary::-webkit-details-marker { display: none; }
.pf-more[open] > summary { display: none; }
.pf-month { margin: 24px 0 10px; font-size: 15px; font-weight: 500; }
.pf-month:first-of-type { margin-top: 0; }
.pf-readme { scroll-margin-top: 88px; }
.pf-readme .box-head { gap: 8px; }
.pf-pics { display: contents; }
.pf-pics label { cursor: pointer; }
.pf-updated { padding-block: 8px; background: none; font-size: 12.5px; }
.pf-uploaded { display: grid; gap: 10px; margin-bottom: 16px; }
/* a run of pictures in an introduction is a grid, as a portfolio shows its works: two or more pictures in a paragraph
   of their own (a row of badges sits in links, and stays a row) */
.pf-readme .readme-body p:has(> img:nth-of-type(2)) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.pf-readme .readme-body p:has(> img:nth-of-type(2)) > img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.pf-calendar { max-width: 964px; margin: 24px 0; scroll-margin-top: 88px; --calendar-gap: 3px; --calendar-weekdays: 32px; }
.pf-calendar-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pf-calendar-head h2 { font-size: 18px; font-weight: 500; }
.pf-calendar-head .meta { font-size: 13px; }
.pf-calendar-head .menu { min-width: 135px; }
.pf-calendar-filters { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: 13px; }
.pf-calendar-filters a { color: var(--fg-2); border-radius: inherit; padding: 3px 10px; }
.pf-calendar-filters a[aria-current] { color: var(--ok); background: var(--ok-bg); font-weight: 600; }
.pf-calendar-chart { max-width: calc(30px + max(168px, var(--calendar-weekdays) + var(--calendar-weeks) * 17px));
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pf-calendar-scroll { overflow-x: auto; position: relative; scroll-padding-inline-start: calc(var(--calendar-weekdays) + var(--calendar-gap));
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.pf-calendar-grid { display: grid; grid-template-columns: var(--calendar-weekdays) repeat(var(--calendar-weeks), minmax(0, 1fr));
  min-width: calc(var(--calendar-weekdays) + var(--calendar-weeks) * 12px);
  max-width: calc(var(--calendar-weekdays) + var(--calendar-weeks) * 17px); gap: var(--calendar-gap); }
.pf-calendar-column, .pf-calendar-weekdays { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--calendar-gap); }
.pf-calendar-column { grid-template-rows: 16px repeat(7, auto); }
.pf-calendar-weekdays { grid-template-rows: 16px repeat(7, minmax(0, 1fr)); position: sticky; inset-inline-start: 0; z-index: 1; background: var(--bg); }
.pf-calendar-month, .pf-calendar-weekdays span { color: var(--muted); font-size: 11px; white-space: nowrap; align-self: center; line-height: 1; }
.pf-calendar-column:nth-last-child(-n+2) .pf-calendar-month { justify-self: end; }
.pf-calendar-day { display: block; width: 100%; aspect-ratio: 1; border-radius: 2px; }
.pf-calendar-day[data-level] { background: var(--surface-2); }
.pf-calendar-day[data-level="1"] { background: color-mix(in srgb, var(--ok) 36%, var(--surface-2)); }
.pf-calendar-day[data-level="2"] { background: color-mix(in srgb, var(--ok) 58%, var(--surface-2)); }
.pf-calendar-day[data-level="3"] { background: color-mix(in srgb, var(--ok) 80%, var(--surface-2)); }
.pf-calendar-day[data-level="4"] { background: var(--ok); }
.pf-calendar-day[aria-current], a.pf-calendar-day:hover, a.pf-calendar-day:focus-visible { outline: 1px solid var(--fg); outline-offset: -1px; }
.pf-calendar-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-calendar-foot .meta { font-size: 12px; }
.pf-calendar-legend { display: flex; align-items: center; gap: 4px; }
.pf-calendar-legend i { width: 10px; }
.pf-calendar-detail { margin-top: 12px; }
.pf-calendar-detail ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.pf-calendar-detail li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; font-size: 13px; }
.pf-calendar-detail li .meta { margin-inline-start: auto; }
@media (max-width: 767px) {
  .pf-calendar-detail ul { gap: 10px; }
  .pf-calendar-detail li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 8px; }
  .pf-calendar-detail li > a:nth-of-type(2) { grid-area: 2 / 2 / auto / -1; }
  .pf-calendar-detail li .meta { grid-area: 1 / 3; font-size: 12px; }
}
.pf-medals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pf-medals a { display: grid; justify-items: center; align-content: start; gap: 5px; width: 64px; color: var(--fg-2); font-size: 11px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.pf-medal { display: block; width: 72px; height: 72px; flex-shrink: 0; }
.pf-medals .pf-medal { width: 48px; height: 48px; }
.pf-achievement-book { display: grid; gap: 20px; }
.pf-achievement-book > .section-title { margin-bottom: 0; }
.pf-achievement-book h3 { font-size: 17px; font-weight: 500; }
.pf-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(148px, 100%), 1fr)); gap: 10px; margin-top: 10px; }
.pf-badge-tile { display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 12px; text-align: center; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); }
a.pf-badge-tile:is(:hover, [aria-current]) { background: var(--surface); }
.pf-badge-tile.locked .pf-medal { filter: grayscale(1); opacity: .65; }
.pf-badge-tile p, .pf-achievement-preview p { margin: 0; font-size: 13px; color: var(--fg-2); }
.pf-badge-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.pf-badge-progress progress { width: min(420px, 75%); height: 12px; accent-color: var(--ok); }
.pf-badge-canvas { max-width: 660px; }
.achievement-notices { position: fixed; z-index: 60; inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 32px)); }
.achievement-notice { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  animation: achievement-arrive var(--shoal-scene) var(--shoal-ease) both; }
.achievement-notice .pf-medal { width: 56px; height: 56px; }
.achievement-notice .icon-btn { align-self: start; width: 32px; height: 32px; }
.achievement-notice-copy { display: grid; gap: 2px; overflow-wrap: anywhere; }
.achievement-notice-copy .meta, .achievement-notice-copy a { font-size: 13px; }
@keyframes achievement-arrive { from { opacity: 0; transform: translate(-12px, 16px) scale(.94); } to { opacity: 1; transform: none; } }
/* On the launch problem's pages a newcomer's dock (src/first.ts) holds the bottom corner: a badge arrives beside it, and
   on a phone, where the dock spans the width, at the top */
body:has(.fr-dock) .achievement-notices { inset-inline-end: calc(412px + env(safe-area-inset-right, 0px)); }
@media (max-width: 720px) { body:has(.fr-dock) .achievement-notices { inset-inline-end: max(16px, env(safe-area-inset-right)); inset-block-end: auto; inset-block-start: calc(80px + env(safe-area-inset-top, 0px)); } }
.profile-avatar img { object-fit: cover; }
@media (max-width: 767px) {
  .wrap.pf-layout { grid-template-columns: minmax(0, 1fr); }
  .pf-sidebar { position: static; width: auto; max-height: none; overflow: visible; }
  .pf-layout .profile-card { width: auto; }
  .pf-layout .profile-avatar { width: 120px; height: 120px; }
}
@media (max-width: 600px) {
  .pf-pin-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Avatar editor and progressive profile links. */
.pf-avatar-wrap { position: relative; }
.pf-avatar-menu { position: absolute; bottom: 28px; left: 12px; z-index: 2; }
.pf-avatar-menu > summary { border-radius: 999px; background: var(--bg); }
.pf-avatar-menu .menu { left: 0; right: auto; min-width: 190px; }
.pf-avatar-menu form { margin: 0; }
.pf-avatar-menu [hidden], .pf-linkrow[hidden] { display: none; }
.pf-crop-dialog { width: min(610px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--fg); box-shadow: var(--shadow); }
.pf-crop-dialog::backdrop { background: color-mix(in srgb, var(--fg) 60%, transparent); }
.pf-crop-dialog h2 { margin: 0 0 20px; font-size: 22px; }
.pf-crop-dialog canvas { display: block; max-width: 100%; max-height: 55dvh; width: auto; height: auto; margin: auto; touch-action: none; cursor: move; }
.pf-crop-dialog .row { justify-content: flex-end; }
.pf-crop-dialog [data-avatar-error] { margin: 12px 0; }


/* ---- theme switch ---- */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root:not([data-theme="dark"]) .theme-dark-only, :root[data-theme="dark"] .theme-light-only { display: none !important; }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px; }
.theme-segments { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.theme-segments button { display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-segments button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); }
.theme-segments button:hover { color: var(--fg); }
.theme-segments button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.theme-form .theme-check { margin-left: auto; visibility: hidden; }
.theme-form [aria-pressed="true"] .theme-check { visibility: visible; }
.theme-form .menu-item[aria-pressed="true"] { color: var(--fg); background: var(--surface-2); }
/* Yours uses native details so it also works without JavaScript and with a keyboard. */
.side-more { flex-shrink: 0; }
.side-more > summary { cursor: pointer; list-style: none; }
.side-more > summary::-webkit-details-marker { display: none; }
.side-more-hide, .side-more[open] .side-more-show { display: none; }
.side-more[open] .side-more-hide { display: inline; }
.side-projects .side-item { flex-shrink: 0; }

/* Keep the native summary focusable, but place Collapse after the revealed links. */
.side-more[open] { position: relative; padding-bottom: 40px; }
.side-more[open] > summary { position: absolute; inset: auto 0 0; }

/* ---- the first voyage (src/voyage.ts): /voyage, Home's own voyage, the reply card -------------------------------- */
/* /voyage opens on a picture of the voyage itself (.vy-kv): a ground (a photograph, or a chart) covering the head at any
   size (.vy-map keeps the ground's own proportions, so what is placed on it stays where it was measured), the words on
   its sand, a mark for each wish afloat on its water and one on the sand for each that came back. Across a mark: x is in
   % of the ground's width, y in % of the head's own height. The colours there are the picture's, in both themes. */
.guest > main > .vy-kv:first-child { margin-top: -72px; }
.vy-kv { --kvh: clamp(640px, 90vh, 900px); --ink: #0e2c33; --ink-2: #3f5a5f; --grain: #d8b46a; position: relative; isolation: isolate; height: var(--kvh); overflow: hidden; background: #0c4b5c; color: var(--ink); }
.vy-map { position: absolute; left: 50%; top: 50%; width: max(100%, calc(var(--kvh) * var(--ar))); aspect-ratio: var(--ar); transform: translate(-50%, -50%); }
.vy-ground { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: vy-settle 2.6s var(--shoal-ease) both; }
.vy-type { position: absolute; z-index: 2; left: max(5.5%, calc((100% - 100vw) / 2 + 40px)); top: calc((100% - var(--kvh)) / 2 + 128px); display: flex; flex-direction: column; gap: 20px; width: min(560px, 40%); animation: vy-rise var(--shoal-scene) var(--shoal-ease) both; }
.vy-mark { display: flex; align-items: center; margin: 0; color: var(--ink-2); font: 500 12px/1 var(--code); letter-spacing: .16em; text-transform: uppercase; }
.vy-mark span + span::before { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 12px 3px; background: currentColor; vertical-align: middle; opacity: .6; }
.vy-type h1 { margin: 0; max-width: 7.4em; color: var(--ink); font-size: clamp(44px, 4.7vw, 70px); font-weight: 300; line-height: 1.07; letter-spacing: -.012em; text-wrap: balance; }
.vy-more { display: flex; flex-direction: column; gap: 20px; }
.vy-type .lead, .vy-under .lead { margin: 0; max-width: 27em; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.vy-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.vy-btn2 { background: rgba(255, 255, 255, .72); color: var(--ink); border-color: rgba(14, 44, 51, .16); }
.vy-btn2:hover { background: #fff; }
.vy-count { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; color: var(--ink-2); font-size: 13.5px; }
.vy-count > span { display: inline-flex; align-items: center; gap: 7px; }
.vy-count b { color: var(--ink); font-weight: 500; }
.vy-c-open::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.vy-c-back::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grain); box-shadow: 0 0 0 1.5px #fff; }
.vy-c-seats { padding-left: 20px; border-left: 1px solid rgba(14, 44, 51, .2); }
.vy-under { display: none; }

/* a wish afloat: a lane from the shore on its row out to its ring, dashed while it waits, solid with a fish swimming out
   when an agent is on it; its title beside the ring, and over it, on hover, the wish */
.vy-pin, .vy-grain { position: absolute; top: calc((100% - var(--kvh)) / 2 + var(--kvh) * var(--y) / 100); animation: vy-in var(--shoal-scene) var(--shoal-ease) both; }
.vy-pin { left: calc(var(--s) * 1%); z-index: 1; width: calc((var(--x) - var(--s)) * 1%); height: 0; color: #fff; animation-delay: calc(500ms + var(--i) * 70ms); }
.vy-pin:hover, .vy-pin:focus-visible { z-index: 3; text-decoration: none; }
.vy-lane { position: absolute; left: 0; right: 8px; top: -.5px; height: 1px; background: repeating-linear-gradient(to right, rgba(255, 255, 255, .55) 0 4px, transparent 4px 9px); -webkit-mask: linear-gradient(to right, transparent, #000 45%); mask: linear-gradient(to right, transparent, #000 45%); }
.vy-pin.made .vy-lane { top: -1px; height: 2px; background: #fff; -webkit-mask: linear-gradient(to right, transparent, #000 30%); mask: linear-gradient(to right, transparent, #000 30%); }
.vy-ring { position: absolute; right: -7px; top: -7px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: transform var(--shoal-panel) var(--shoal-ease); animation: vy-bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.vy-pin.made .vy-ring { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .16); }
.vy-pin.far .vy-ring { right: -5px; top: -5px; width: 10px; height: 10px; border-width: 1.5px; }
.vy-pin.far .vy-lane { opacity: .55; }
.vy-pin.far:not(:hover, :focus-visible, .lit) .vy-tag { opacity: 0; }
.vy-tag { position: absolute; left: calc(100% + 18px); top: -10px; max-width: 250px; overflow: hidden; font: 400 13px/20px var(--code); white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 36, 46, .45); transition: opacity var(--shoal-fast) var(--shoal-ease); }
.vy-fish { position: absolute; top: -9px; display: flex; animation: vy-swim 8s linear infinite; animation-delay: calc(var(--i) * -1.7s); }
.vy-fish .octicon { fill: #fff; }
.vy-tip { position: absolute; left: calc(100% + 10px); top: -18px; z-index: 4; display: flex; flex-direction: column; gap: 6px; width: 300px; padding: 14px 16px 13px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 14px 36px rgba(0, 30, 40, .24); opacity: 0; transform: translate(-6px, 4px); pointer-events: none; transition: opacity var(--shoal-panel) var(--shoal-ease), transform var(--shoal-panel) var(--shoal-ease); }
.vy-pin:is(:hover, :focus-visible) .vy-tip { opacity: 1; transform: none; }
.vy-pin:is(:hover, :focus-visible) .vy-tag { opacity: 0; }
.vy-pin.lit .vy-ring { transform: scale(1.45); }
.vy-tip > b { font-size: 15px; font-weight: 500; line-height: 1.4; }
.vy-tip-by, .vy-tip-n { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; }
.vy-tip-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: #03586f; font-size: 13px; font-weight: 500; }
.vy-tip-go .octicon { fill: currentColor; }
/* one that came back: a grain on the sand by the waterline, the wish and who brought it beside it */
.vy-grain { right: calc((100 - var(--s)) * 1% + 14px); display: flex; align-items: center; gap: 12px; color: var(--ink); transform: translateY(-50%); animation-delay: calc(1000ms + var(--i) * 90ms); }
.vy-grain:hover { text-decoration: none; }
.vy-gtag { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 320px; text-align: right; }
.vy-gtag b { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.vy-gtag span { color: var(--ink-2); font: 400 12px var(--code); }
.vy-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--grain); box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(70, 50, 10, .3); }
.vy-grain:hover .vy-gtag b { text-decoration: underline; }
@keyframes vy-settle { from { transform: scale(1.04); } }
@keyframes vy-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes vy-in { from { opacity: 0; translate: -10px 8px; } }
@keyframes vy-bob { 50% { translate: 0 -2px; } }
@keyframes vy-swim { 0% { left: 0; opacity: 0; } 12%, 78% { opacity: 1; } 100% { left: calc(100% - 26px); opacity: 0; } }

/* The bands further down, read as the landing is: what came back, as prints laid on clear shallows (b); how a wish
   comes back, as a route on a chart of the same shore (c). Each has its own words where the head has the title. */
/* The seams (11-25): a band after the head overlaps the one above by --seam and its ground fades in out of it, the way
   the landing's water fades (.ln-water), so the shore, the shallows and the chart read as one descent; the chart fades
   out into the page. On a phone the head's words sit on the page between the head and the first band, which then
   fades in from the page instead of covering them. */
.vy-band { --kvh: clamp(560px, 82vh, 780px); --seam: 200px; margin-top: calc(-1 * var(--seam)); }
.vy-band.vy-b, .vy-band.vy-c { background: transparent; }
/* the ground is centred and taller than its band (cropped), so the fade is placed from the band's own top edge */
.vy-band .vy-ground { --top: calc(50% - var(--kvh) / 2); -webkit-mask-image: linear-gradient(transparent var(--top), #000 calc(var(--top) + var(--seam))); mask-image: linear-gradient(transparent var(--top), #000 calc(var(--top) + var(--seam))); }
.vy-band.vy-c .vy-ground { --end: calc(50% + var(--kvh) / 2); -webkit-mask-image: linear-gradient(transparent var(--top), #000 calc(var(--top) + var(--seam)), #000 calc(var(--end) - 160px), transparent var(--end)); mask-image: linear-gradient(transparent var(--top), #000 calc(var(--top) + var(--seam)), #000 calc(var(--end) - 160px), transparent var(--end)); }
.vy-band .vy-type { top: calc((100% - var(--kvh)) / 2 + 104px + var(--seam) / 2); }
.vy-type h2 { margin: 0; max-width: 11em; color: var(--ink); font-size: clamp(34px, 3.4vw, 50px); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.vy-b { --kvh: clamp(540px, 76vh, 720px); background: #bfe0de; }
.vy-lay { position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc((100% - var(--kvh)) / 2 + var(--kvh) * var(--y) / 100); width: calc(var(--w) * 1%); rotate: var(--r); }
.vy-lay > * { box-shadow: 0 22px 44px rgba(0, 70, 80, .22), 0 2px 6px rgba(0, 70, 80, .12); }
.vy-c { background: #f7f5ee; }
/* the chart's title is a cartouche, as on a real chart: small type in thin rules, and a legend for the route's two
   strokes (dashed, drifting out to be taken; solid, coming back to be accepted) */
.vy-c .vy-type { width: auto; max-width: 300px; gap: 6px; padding: 12px 16px 12px; border: 1px solid rgba(51, 73, 76, .42); outline: 1px solid rgba(51, 73, 76, .16); outline-offset: 3px; background: rgba(247, 245, 238, .92); }
.vy-c .vy-type h2 { max-width: none; font-size: 19px; font-weight: 400; line-height: 1.3; letter-spacing: 0; }
.vy-c .vy-mark { font-size: 10.5px; letter-spacing: .2em; }
.vy-legend { display: grid; gap: 4px; margin: 4px 0 0; padding-top: 8px; border-top: 1px solid rgba(51, 73, 76, .18); color: var(--ink-2); font-size: 12px; }
.vy-legend span { display: flex; align-items: center; gap: 8px; }
.vy-legend i { flex: none; width: 24px; border-top: 1.8px solid #03586f; }
.vy-legend i.out { border-top-style: dashed; }
/* the route: out over the water dashed, back to the sand solid; a numbered point for each step with its words on a
   chart label beside it */
.vy-route { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.vy-route path { fill: none; stroke: #03586f; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.vy-route .out { stroke-dasharray: 6 7; }
/* The chart, richer (11-26): earlier round trips faint behind the route (a ring where each was written, a grain where it
   landed, the grain a link to its reply card); a small bottle that travels the route, out on the dashed leg, met by a
   fish at the turn, back on the solid one, landing as a grain; the median time of each leg written on it as a chart's
   soundings are; a compass rose in the sand. All still when motion is reduced; on a phone the route's lines are gone,
   and these with them. */
.vy-trk { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.vy-trk path { fill: none; stroke: #03586f; stroke-opacity: .26; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.vy-trk .out { stroke-dasharray: 4 6; }
.vy-trk-at, .vy-trk-in { position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); border-radius: 50%; }
.vy-trk-at { width: 8px; height: 8px; border: 1.5px solid rgba(3, 88, 111, .45); background: rgba(247, 245, 238, .7); }
.vy-trk-in { width: 9px; height: 9px; background: #d8b46a; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); opacity: .8; transition: transform var(--shoal-fast) var(--shoal-ease), opacity var(--shoal-fast) var(--shoal-ease); }
.vy-trk-in:hover { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
.vy-leg { position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); color: #2f5d62; font: 400 12px/1 var(--font); white-space: nowrap; transform: translate(8px, 10px); opacity: .9; }
.vy-leg.home { transform: translate(-50%, -22px); }
.vy-rose { position: absolute; z-index: 1; left: 21%; top: 74%; width: 78px; height: 78px; overflow: visible; transform: translate(-50%, -50%) rotate(-8deg); opacity: .55; }
.vy-rose circle { fill: none; stroke: #33494c; stroke-width: 1; }
.vy-rose circle.thin { stroke-width: .6; stroke-dasharray: 1.5 3; }
.vy-rose path { fill: rgba(247, 245, 238, .6); stroke: #33494c; stroke-width: .9; stroke-linejoin: round; }
.vy-rose path.fill { fill: #33494c; stroke: none; }
.vy-rose text { fill: #33494c; font: 500 10px var(--code); text-anchor: middle; }
.vy-legend-n { margin-top: 2px; }
.vy-legend i.grain { width: 9px; height: 9px; margin: 0 7px 0 8px; border: 0; border-radius: 50%; background: #d8b46a; box-shadow: 0 0 0 1.5px #fff; }
.vy-legend b { color: var(--ink); font-weight: 500; }
.vy-trip, .vy-trip-fish { position: absolute; z-index: 2; left: 44.5%; top: 68%; pointer-events: none; opacity: 0; }
.vy-trip { width: 40px; height: 17px; animation: vy-trip 11s linear infinite; }
.vy-trip svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(3px 4px 3px rgba(14, 44, 51, .3)); }
.vy-trip .g { fill: #9fd3c7; fill-opacity: .85; stroke: #2f5d62; stroke-width: 1; }
.vy-trip .c { fill: #c49a62; }
.vy-trip .n { fill: #f7f0e1; }
.vy-trip .h { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; opacity: .9; }
.vy-trip-fish { width: 30px; height: 12px; fill: #0e2c33; animation: vy-trip-fish 11s linear infinite; }
.vy-trip-fish svg { display: block; width: 100%; height: 100%; }
.vy-trip-grain { position: absolute; z-index: 2; left: 48%; top: 32%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #d8b46a; box-shadow: 0 0 0 2px #fff; opacity: 0; animation: vy-trip-grain 11s var(--shoal-ease) infinite; pointer-events: none; }
@keyframes vy-trip-grain { 0%, 86% { opacity: 0; transform: scale(.2); } 90% { opacity: 1; transform: scale(1.5); } 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes vy-trip {
  0.0% { left: 44.50%; top: 68.00%; transform: translate(-50%, -50%) rotate(-16.5deg); opacity: 0; }
  4.0% { left: 44.50%; top: 68.00%; transform: translate(-50%, -50%) rotate(-16.5deg); opacity: 1; }
  8.5% { left: 48.04%; top: 65.99%; transform: translate(-50%, -50%) rotate(-18.9deg); opacity: 1; }
  13.0% { left: 51.54%; top: 63.73%; transform: translate(-50%, -50%) rotate(-20.9deg); opacity: 1; }
  17.5% { left: 55.00%; top: 61.27%; transform: translate(-50%, -50%) rotate(-22.7deg); opacity: 1; }
  22.0% { left: 58.44%; top: 58.62%; transform: translate(-50%, -50%) rotate(-24.1deg); opacity: 1; }
  26.5% { left: 61.85%; top: 55.84%; transform: translate(-50%, -50%) rotate(-25.2deg); opacity: 1; }
  31.0% { left: 65.24%; top: 52.95%; transform: translate(-50%, -50%) rotate(-25.9deg); opacity: 1; }
  35.5% { left: 68.62%; top: 49.99%; transform: translate(-50%, -50%) rotate(-26.4deg); opacity: 1; }
  40.0% { left: 72.00%; top: 47.00%; transform: translate(-50%, -50%) rotate(-26.6deg); opacity: 1; }
  50.0% { left: 72.00%; top: 47.00%; transform: translate(-50%, -50%) rotate(-90.1deg); opacity: 1; }
  54.5% { left: 71.38%; top: 43.53%; transform: translate(-50%, -50%) rotate(-126.7deg); opacity: 1; }
  59.0% { left: 69.66%; top: 41.14%; transform: translate(-50%, -50%) rotate(-153.6deg); opacity: 1; }
  63.5% { left: 67.04%; top: 39.53%; transform: translate(-50%, -50%) rotate(-165.9deg); opacity: 1; }
  68.0% { left: 63.75%; top: 38.38%; transform: translate(-50%, -50%) rotate(-170.8deg); opacity: 1; }
  72.5% { left: 59.99%; top: 37.36%; transform: translate(-50%, -50%) rotate(-171.5deg); opacity: 1; }
  77.0% { left: 55.97%; top: 36.17%; transform: translate(-50%, -50%) rotate(-169.2deg); opacity: 1; }
  81.5% { left: 51.90%; top: 34.49%; transform: translate(-50%, -50%) rotate(-164.1deg); opacity: 1; }
  86.0% { left: 48.00%; top: 32.00%; transform: translate(-50%, -50%) rotate(-155.8deg); opacity: 1; }
  92.0% { left: 48.00%; top: 32.00%; transform: translate(-50%, -50%) rotate(-155.8deg); opacity: 0; }
  100.0% { left: 48.00%; top: 32.00%; transform: translate(-50%, -50%) rotate(-155.8deg); opacity: 0; }
}
@keyframes vy-trip-fish {
  0.0% { left: 77.00%; top: 56.00%; transform: translate(-50%, -50%) rotate(-120.0deg); opacity: 0; }
  40.0% { left: 77.00%; top: 56.00%; transform: translate(-50%, -50%) rotate(-120.0deg); opacity: 0; }
  47.0% { left: 73.60%; top: 50.50%; transform: translate(-50%, -50%) rotate(-125.0deg); opacity: 0.85; }
  54.5% { left: 73.03%; top: 47.24%; transform: translate(-50%, -50%) rotate(-108.7deg); opacity: 0.85; }
  59.0% { left: 71.81%; top: 44.37%; transform: translate(-50%, -50%) rotate(-142.9deg); opacity: 0.85; }
  63.5% { left: 69.60%; top: 42.43%; transform: translate(-50%, -50%) rotate(-161.3deg); opacity: 0.85; }
  68.0% { left: 66.60%; top: 41.09%; transform: translate(-50%, -50%) rotate(-169.1deg); opacity: 0.85; }
  72.5% { left: 63.04%; top: 40.05%; transform: translate(-50%, -50%) rotate(-171.5deg); opacity: 0.85; }
  77.0% { left: 59.12%; top: 38.98%; transform: translate(-50%, -50%) rotate(-170.6deg); opacity: 0.85; }
  81.5% { left: 55.05%; top: 37.58%; transform: translate(-50%, -50%) rotate(-166.9deg); opacity: 0.85; }
  86.0% { left: 51.04%; top: 35.52%; transform: translate(-50%, -50%) rotate(-160.2deg); opacity: 0.85; }
  90.0% { left: 48.00%; top: 32.00%; transform: translate(-50%, -50%) rotate(-155.8deg); opacity: 0; }
  100.0% { left: 48.00%; top: 32.00%; transform: translate(-50%, -50%) rotate(-155.8deg); opacity: 0; }
}

.vy-ways { margin: 0; padding: 0; list-style: none; }
.vy-way { position: absolute; z-index: 3; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); }
.vy-way-n { position: absolute; left: -16px; top: -16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #03586f; color: #fff; font: 500 14px/1 var(--code); box-shadow: 0 0 0 6px rgba(3, 88, 111, .14); }
.vy-way-card { position: absolute; display: flex; flex-direction: column; gap: 4px; width: 250px; padding: 9px 12px 10px; border: 1px solid rgba(51, 73, 76, .3); background: rgba(250, 248, 242, .86); color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.vy-way-card b { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13.5px; font-weight: 500; }
.vy-way-card b .octicon { fill: #03586f; }
.w1 .vy-way-card { left: 28px; top: 16px; }
.w2 .vy-way-card { left: 28px; top: -24px; width: 260px; }
.w3 .vy-way-card { left: 28px; bottom: 16px; }

/* a print of what came back, and below the bands every wish open as a slip, lighting its mark on the water */
.vy-print { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 10px 10px 14px; border-radius: 4px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 30px rgba(0, 40, 50, .1); transition: translate var(--shoal-panel) var(--shoal-ease); }
.vy-print:hover { text-decoration: none; translate: 0 -2px; }
.vy-shot { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #f3f4f2; }
.vy-shot img { width: 100%; height: 100%; object-fit: contain; }
.vy-shot:has(pre, table) { aspect-ratio: auto; align-content: start; place-items: stretch; background: #fff; }
.vy-shot pre { margin: 0; padding: 10px 12px; overflow: hidden; color: var(--ink-2); font: 400 11.5px/1.55 var(--code); white-space: pre; }
.vy-shot table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.vy-shot th, .vy-shot td { padding: 6px 10px; overflow: hidden; border-top: 1px solid #e6e8e6; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.vy-shot th { border-top: 0; color: #6b7c7f; font: 500 11px var(--code); }
.vy-pr { display: inline-flex; gap: 6px; padding: 0 16px; color: var(--ink-2); font-size: 13px; text-align: center; }
.vy-q { display: -webkit-box; padding: 2px 4px 0; overflow: hidden; font-size: 15px; font-weight: 500; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vy-q::before { content: "“"; color: #8a979b; } .vy-q::after { content: "”"; color: #8a979b; }
.vy-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0 4px; color: var(--ink-2); font-size: 12.5px; }
.vy-by b { color: var(--ink); font-weight: 500; }
.vy-by .meta { margin-left: auto; color: #6b7c7f; }
.vy-slips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; border-top: 1px solid var(--line-2); }
.vy-slip { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--line-2); color: var(--fg); }
.vy-slip:is(:hover, .lit) { background: var(--hover); text-decoration: none; }
.vy-mk { display: grid; place-items: center; width: 22px; height: 22px; }
.vy-slip:not(.made) .vy-mk::before { content: ""; width: 9px; height: 9px; border: 1.5px solid var(--fg-2); border-radius: 50%; }
.vy-slip.made .vy-mk .octicon { fill: var(--brand); }
.vy-slip-in { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vy-slip-in b { overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.vy-slip-in .meta { font-size: 12.5px; }
.vy-on { color: var(--brand); }
@media (prefers-reduced-motion: reduce) {
  .vy-ground, .vy-type, .vy-pin, .vy-grain, .vy-lay, .vy-ring, .vy-trip, .vy-trip-fish, .vy-trip-grain { animation: none; }
  .vy-trip, .vy-trip-fish, .vy-trip-grain { display: none; }
  .vy-fish { left: 40%; animation: none; }
}
@media (max-width: 880px) { .vy-tag { max-width: 190px; } .vy-way-card { width: 250px; } }
@media (max-width: 720px) {
  /* a phone: the upright ground, the title on its sand, the rest under the picture; marks without lanes or cards */
  .vy-kv { --kvh: clamp(560px, 82svh, 760px); }
  .guest > main > .vy-kv:first-child { margin-top: -64px; }
  .vy-map { width: max(100%, calc(var(--kvh) * .5628)); aspect-ratio: .5628; }
  .vy-type { left: max(22px, calc((100% - 100vw) / 2 + 22px)); width: min(340px, calc(100vw - 44px)); top: calc((100% - var(--kvh)) / 2 + 96px); gap: 14px; }
  .vy-type h1 { font-size: 36px; }
  .vy-more { display: none; }
  .vy-under { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; }
  .vy-pin { top: calc((100% - var(--kvh)) / 2 + var(--kvh) * var(--py) / 100); left: calc(var(--px) * 1%); width: 0; }
  .vy-lane, .vy-tip { display: none; }
  .vy-fish { left: -28px; animation: none; }
  .vy-tag { max-width: 58vw; }
  .vy-grain { display: none; }
  .vy-pin.far { display: none; }
  .vy-c-seats { padding-left: 0; border-left: 0; }
  .vy-band { --seam: 120px; }
  .vy-under + .vy-band { margin-top: 0; }
  .vy-band .vy-type { top: calc((100% - var(--kvh)) / 2 + 92px + var(--seam) / 2); }
  .vy-type h2 { font-size: 30px; }
  .vy-c .vy-type { max-width: 280px; padding: 10px 14px 10px; }
  /* what came back, on a phone: the band grows with its prints, one under another */
  .vy-b { height: auto; }
  .vy-b .vy-ground { --top: 0px; }
  .vy-b .vy-map { position: relative; left: 0; top: 0; display: flex; flex-direction: column; gap: 26px; width: 100%; aspect-ratio: auto; padding: 96px 22px 48px; transform: none; }
  .vy-b .vy-type { position: static; width: auto; }
  .vy-b .vy-lay { position: relative; left: auto; top: auto; width: 84%; }
  .vy-b .vy-lay:nth-of-type(even) { align-self: flex-end; }
  .vy-c { --kvh: clamp(640px, 92svh, 820px); }
  .vy-route, .vy-trk, .vy-trk-at, .vy-trk-in, .vy-leg, .vy-rose, .vy-trip, .vy-trip-fish, .vy-trip-grain { display: none; }
  .vy-way { left: max(8%, calc((100% - 100vw) / 2 + 36px)); top: calc((100% - var(--kvh)) / 2 + var(--kvh) * var(--py) / 100); }
  .w1 .vy-way-card, .w2 .vy-way-card, .w3 .vy-way-card { left: 26px; right: auto; top: -18px; bottom: auto; width: calc(100vw - 90px); }
  .vy-slips { grid-template-columns: minmax(0, 1fr); }
}
.vy-rec .avatar + .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--bg); }
.vy-fine { margin-top: 8px; }
/* Home: your own voyage, a step a row; the first not done is open, its number in the brand's colour */
.vy-steps { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; list-style: none; }
.vy-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.vy-step:first-child { border-top: 0; }
.vy-step h3 { margin: 3px 0 0; font-size: 15px; font-weight: 500; }
.vy-step.done { align-items: center; }
.vy-step.done h3 { margin: 0; color: var(--muted); font-weight: 400; }
.vy-step.done .vy-step-in { align-items: center; }
.vy-step.done .hub-step-n { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.vy-step.now { background: var(--surface); }
.vy-step.now .hub-step-n { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.vy-step-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-width: 0; }
.vy-did { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; font-size: 13.5px; }
.vy-todo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex-basis: 100%; }
.vy-todo p { margin: 0; max-width: 62ch; color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.vy-agent { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
/* the sign-up page names the wish waiting to be sent, and the places left */
.vy-kept-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.vy-kept-title b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.vy-seats { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--fg-2); }
@media (max-width: 760px) {
  .vy-step { padding: 14px; }
}
/* the reply card's page: the wide one beside the upright one, each with its own save; one above the other on a phone */
.reply-cards { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.card-page:has(.reply-cards) { max-width: 1180px; }
.reply-fig { display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0; }
.reply-fig.tall .card-canvas { aspect-ratio: 1080 / 1440; }
@media (max-width: 760px) { .reply-cards { grid-template-columns: minmax(0, 1fr); } }

.sb-wrap { margin: 2px 0 6px; }
.sb-wrap .iso-svg { margin-inline: -8px; width: calc(100% + 16px); }
.sb-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sb-key-i { display: inline-flex; align-items: center; gap: 6px; }
.sb-k { display: inline-block; width: 14px; height: 9px; border-radius: 3px; }
.sb-k-dry { background: color-mix(in srgb, var(--fl-11) 60%, var(--bg)); box-shadow: inset 0 -2px 0 var(--fl-7), 0 0 0 1px color-mix(in srgb, var(--fl-6) 70%, transparent); }
.sb-k-wet { background: color-mix(in srgb, var(--fl-4) 45%, var(--bg)); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--fl-3) 60%, var(--bg)); }
.sb-k-chart { height: 0; border-radius: 0; border-top: 1.5px dotted color-mix(in srgb, var(--fl-3) 85%, transparent); }
.sb-k-fish { width: 14px; height: 6px; border-radius: 6px 3px 3px 6px; background: var(--brand); opacity: .85; }
.sb-k-you { width: 12px; height: 8px; border-radius: 50%; border: 1.4px solid var(--brand); }
/* the row a newcomer's current stage happened on, ringed on the problem's pages (src/first.ts data-spot) */
.fp-spot { outline: 2px solid color-mix(in srgb, var(--brand) 70%, transparent); outline-offset: 3px; border-radius: 8px; animation: fp-ring 2.4s var(--shoal-ease) 2; }
@keyframes fp-ring { 50% { outline-color: color-mix(in srgb, var(--brand) 25%, transparent); outline-offset: 6px; } }
@media (prefers-reduced-motion: reduce) { .fp-spot { animation: none; } }
/* the finds (src/finds.ts findArt): the kit's solids tinted brass, sea glass or stone; the sand they lie on the shoal's */
.find-art { --anatomy-top: #f0dfb0; --anatomy-lit-top: #f8eccb; --anatomy-face: #e8d29c; --anatomy-shade-0: #dcc287; --anatomy-shade-1: #cfb171; --anatomy-shade-2: #c2a25f; --anatomy-shade-3: #b39152; }
.find-art[data-k="glass"] { --anatomy-top: #d3ebe6; --anatomy-lit-top: #e6f4f1; --anatomy-face: #c4e2dc; --anatomy-shade-0: #b0d6cf; --anatomy-shade-1: #9ccac2; --anatomy-shade-2: #8abdb5; --anatomy-shade-3: #79aea6; }
.find-art[data-k="glass"] .find-cork { --anatomy-top: #d8c39a; --anatomy-lit-top: #e6d4ae; --anatomy-face: #cdb68a; }
.find-art[data-k="stone"] { --anatomy-top: #ece4d2; --anatomy-lit-top: #f4eee0; --anatomy-face: #e3d9c4; --anatomy-shade-0: #d6cbb3; --anatomy-shade-1: #c9bda4; --anatomy-shade-2: #bcb096; --anatomy-shade-3: #ada188; }
.find-sand { --anatomy-top: color-mix(in srgb, var(--fl-11) 70%, var(--bg)); --anatomy-face: color-mix(in srgb, var(--fl-8) 60%, var(--bg)); --anatomy-lit-top: var(--anatomy-top); }
:where([data-theme="dark"]) .find-art { --anatomy-top: #8d7b52; --anatomy-lit-top: #9c8a5f; --anatomy-face: #806f49; --anatomy-shade-0: #75653f; --anatomy-shade-1: #6a5b38; --anatomy-shade-2: #5f5132; --anatomy-shade-3: #54472c; }
:where([data-theme="dark"]) .find-art[data-k="glass"] { --anatomy-top: #3e6763; --anatomy-lit-top: #4a7570; --anatomy-face: #375c58; --anatomy-shade-0: #31534f; --anatomy-shade-1: #2b4a46; --anatomy-shade-2: #26413e; --anatomy-shade-3: #213936; }
:where([data-theme="dark"]) .find-art[data-k="stone"] { --anatomy-top: #5f5a50; --anatomy-lit-top: #6b665b; --anatomy-face: #565148; --anatomy-shade-0: #4d4940; --anatomy-shade-1: #454138; --anatomy-shade-2: #3d3931; --anatomy-shade-3: #36322b;
}
.sb-hover { fill: none; stroke: var(--brand); stroke-width: 1.4px; pointer-events: none; }
/* the launch problem's archipelago (src/sandbar.ts delta) on the landing's band, as a team space's head is (src/spaces.ts) */
.sb-band { height: auto; aspect-ratio: 1200 / 380; margin: 4px 0 0; overflow: visible; }
.sb-band .ln-water { inset: 0; border-radius: 14px; -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%); }
.sb-band .ln-band-art { inset: 0; left: 0; bottom: auto; width: 100%; transform: none; pointer-events: auto; }
.sb-band .ln-band-art > svg { width: 100%; height: 100%; overflow: hidden; }
.sb-band .sp-tags { pointer-events: none; } .sb-band .sp-tags .ln-tag { pointer-events: auto; } /* a bar under the tags still answers the pointer */
.sb-band .ln-tag.you .num { background: color-mix(in srgb, var(--brand) 16%, var(--bg)); }
.sb-found { filter: drop-shadow(0 3px 4px rgba(40, 30, 10, .35)); }
.sb-k-buoy { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); }

/* ---- 聚沙成洲, the launch's way in (src/sand.ts): /sand's head is the team space's (.sp-head) over the launch
   problem's own shoal, then how a cell comes up, the latest grains, what surfaced and why the question is open. The
   landing's first band and a newcomer's Home card carry the same drawing while there is a launch problem. ---- */
.sd-head .sp-kick .octicon { color: var(--brand-ink); }
.sd-lead { margin: 14px 0 0; max-width: 36em; color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.sd-count { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; color: var(--fg-2); font-size: 14px; }
.sd-count b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.sd-head .sb-wrap { margin-top: 10px; }
.sd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: sd; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.sd-steps li { counter-increment: sd; padding: 18px 20px 20px; border-left: 1px solid var(--line-2); }
.sd-steps li:first-child { border-left: 0; }
.sd-steps li::before { content: counter(sd); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 50%; color: var(--fg-2); font: 500 13px var(--code); }
.sd-steps b { font-size: 15px; font-weight: 500; }
.sd-steps p { margin: 6px 0 0; color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.sd .bring { margin-top: 16px; }
.sd-finds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sd-find { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; text-align: center; }
.sd-find svg { width: 100%; max-width: 140px; height: auto; }
.sd-find.under svg { filter: grayscale(1); opacity: .32; }
.sd-find figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sd-facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.sd-facts li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.sd-facts b { padding-top: 2px; color: var(--fg-2); font: 500 13px var(--code); }
/* the newcomer guide's tag on Home (src/sand.ts passSection) */
/* ---- a newcomer's pass (src/first.ts stagesOf): four stages down the page, by who acts. The stage now open carries
   what it needs (the one action, a live line, what came of it); done ones keep one line of what happened. Hairlines,
   the page's own ground, brand colour only on the action and the current mark. The same list in the Home guide (wide)
   and the dock on the problem's pages. */
.fr-steps { margin: 0; padding: 0; list-style: none; }
.fr-st { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 14px; padding-bottom: 16px; }
.fr-st:last-child { padding-bottom: 0; }
.fr-st:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line-2); }
.fr-st.done:not(:last-child)::before { background: color-mix(in srgb, var(--ok) 45%, var(--line-2)); }
.fr-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); font: 500 12.5px var(--code); }
.fr-st.done .fr-dot { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.fr-st.now .fr-dot { border-color: var(--brand); background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.fr-b { min-width: 0; padding-top: 2px; }
.fr-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.fr-h b { font-size: 15px; font-weight: 500; }
.fr-st.next .fr-h b { color: var(--fg-2); font-weight: 400; }
.fr-by { color: var(--muted); font-size: 12.5px; }
.fr-line { margin: 3px 0 0; color: var(--fg-2); font-size: 13.5px; line-height: 1.6; }
.fr-line .avatar, .fr-line .octicon { vertical-align: -3px; }
.fr-st.next .fr-line { color: var(--muted); }
.fr-line code { font-size: 12px; }
.fr-now { display: grid; gap: 12px; margin-top: 12px; }
.fr-do { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: fit-content; max-width: 100%; }
.fr-clients { display: inline-flex; gap: 6px; opacity: .85; }
.fr-wait, .fr-live { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--fg-2); font-size: 14px; }
.fr-wait { color: var(--muted); }
.fr-live .live-dot, .fr-live .need-dot, .fr-live .connect-pulse, .fr-live > .octicon { flex: none; }
.fr-live > span:last-child { min-width: 0; }
.fr-bad { color: var(--fg); }
.fr-alt, .fr-sub, .fr-aside { margin: 0; color: var(--muted); font-size: 13px; }
.fr-asks { display: grid; gap: 8px; }
.fr-nudge { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--fg-2); font-size: 13.5px; }
.fr-st.just .fr-dot { animation: lp-done var(--shoal-scene) var(--shoal-ease) both; }
/* a person's pass on the launch problem, on their Home (src/home.ts passView): the shoal over the five steps the dock walks
   on the problem's pages (src/first.ts), joined by one line that fills up to the step they are at */
.lp-box { overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); }
.lp-shoal { position: relative; display: block; height: 150px; border-bottom: 1px solid var(--line-2); color: var(--fg); text-decoration: none; }
.lp-shoal:hover { text-decoration: none; }
.lp-news { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); padding: 5px 12px 5px 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--fg-2); font-size: 12.5px; }
.lp-news > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-news b { color: var(--fg); font-weight: 500; }
.lp-tag { margin-left: 4px; color: var(--fg-2); text-decoration: none; }
.lp-time { color: var(--muted); font-size: 12px; }
.lp-shoal svg { display: block; width: 100%; height: 100%; }
.lp-steps { --n: 5; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 20px 8px 22px; list-style: none; }
.lp-steps::before, .lp-steps::after { content: ""; position: absolute; top: 33px; left: calc(50% / var(--n) + 8px); height: 2px; border-radius: 2px; }
.lp-steps::before { right: calc(50% / var(--n) + 8px); background: var(--line); }
.lp-steps::after { width: calc((100% - 100% / var(--n) - 16px) * var(--at) / (var(--n) - 1)); background: var(--brand); transition: width var(--shoal-panel) var(--shoal-ease); }
.lp-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0 12px; text-align: center; }
.lp-n { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--fg-2); font: 500 13px var(--code); }
.lp-step.done .lp-n { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.lp-step.now .lp-n { border-color: var(--brand); background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.lp-step > b { margin-top: 4px; font-size: 14.5px; font-weight: 500; }
.lp-step:not(.done, .now) > b { color: var(--fg-2); font-weight: 400; }
.lp-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.lp-step.now p, .lp-step.done p { color: var(--fg-2); }
.lp-step code { font-size: 12px; }
.lp-step .btn, .lp-step .more { margin-top: 4px; }
.lp-cell { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, #edd6a8 45%, var(--bg)); color: var(--fg-2); font-size: 12.5px; }
.lp-cell b { color: var(--fg); font-weight: 500; }
.lp-done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 14px; }
.lp-find { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); }
.lp-find svg { width: 36px; height: 36px; }
/* a find on a profile's Brought back (src/profile-view.ts): its own line under the grain it surfaced with, the figure's sand at the text's edge */
.hub-item .lp-find { display: flex; margin: 2px 0 2px -8px; }
/* a step that has just been done, seen while the page was open (public/app.js marks it): its mark settles in once */
.lp-step.just .lp-n { animation: lp-done var(--shoal-scene) var(--shoal-ease) both; }
@keyframes lp-done { 0% { transform: scale(.6); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 40%, transparent); } 60% { transform: scale(1.12); box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok) 0%, transparent); } 100% { transform: none; } }
/* a cell as a grid of faint dots and a set's points on it (setFigure): the cell waiting, then what the agent found */
.sf { display: block; max-width: 100%; height: auto; flex: none; }
.sf-g { fill: color-mix(in srgb, var(--fg) 30%, transparent); }
.sf-bg { fill: var(--surface); }
.sf-p { fill: var(--fg); transform-box: fill-box; transform-origin: center; animation: sf-in var(--shoal-panel) var(--shoal-ease) calc(var(--i) * 22ms) both; }
@keyframes sf-in { from { opacity: 0; transform: translate(-3px, 3px) scale(.3); } }
/* points that carried over from the set a route grew from, drawn pale; the ones found here solid (src/first.ts lineageOf) */
.sf-p.old { fill: color-mix(in srgb, var(--fg) 28%, var(--bg)); }
.fr-lineage { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--fg-2); font-size: 13px; }
.fr-lineage b { color: var(--fg); }
.sf-key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.sf-key.old { background: color-mix(in srgb, var(--fg) 28%, var(--bg)); box-shadow: 10px 0 0 var(--fg); margin-right: 10px; }
/* what the agent handed in: the set as its file reads, and the file's path */
.fr-set { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.fr-set figcaption { display: grid; gap: 2px; min-width: 0; color: var(--fg-2); font-size: 13.5px; }
.fr-set figcaption b { color: var(--fg); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fr-file code { font-size: 12px; overflow-wrap: anywhere; }
/* where each leg shows on the problem: its tab, as a small chip; ticked once seen (public/app.js tour) */
.fr-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 12.5px; text-decoration: none; white-space: nowrap; transition: border-color var(--shoal-fast) var(--shoal-ease), color var(--shoal-fast) var(--shoal-ease); }
.fr-chip:hover { border-color: var(--fg-2); color: var(--fg); text-decoration: none; }
.fr-chip.seen::before { content: "\2713"; color: var(--ok); font-size: 11px; }
.fr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.fr-h .fr-chip { flex: none; align-self: center; }
.fr-st.learn .fr-dot { color: var(--fg-2); }
.fr-st.learn.done .fr-dot { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.fr-st-i { font-size: 12.5px; }
.fr-st-i.on { color: var(--ok); } .fr-st-i.wait { color: var(--wait); }
/* the next tab to look at, on the problem's own tab bar */
.tab-next::after { content: ""; position: absolute; top: 9px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: tab-ping calc(var(--shoal-scene) * 4) var(--shoal-ease) infinite; }
@keyframes tab-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--brand) 0%, transparent); } }
/* the problem's scene beside the guide on Home (src/sand.ts scene): its school on the brand's water, or its route map */
.fr-scene { gap: 10px; }
.fr-water { position: relative; display: block; height: 210px; margin: 0 -20px 4px; overflow: hidden; color: #fff; text-decoration: none;
  background: linear-gradient(rgba(14, 44, 51, .12), rgba(14, 44, 51, .38)), #9fb6b3 url(/static/brand/haze-dawn.jpg) 72% 74% / 260% auto; }
.fr-water:hover { text-decoration: none; }
.fr-school { display: block; width: 100%; height: 100%; --fish-near: #fff; --fish-far: rgba(255, 255, 255, .8); --fish-you: #03586f; --current: rgba(255, 255, 255, .85); }
.fr-here { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 2px; }
.fr-here b { font: 200 48px/1 'Outfit', var(--font); letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.fr-here > span { max-width: 8em; color: var(--fg-2); font-size: 14px; line-height: 1.35; }
.fr-here > span small { display: block; color: var(--muted); font-size: 12px; }
.fr-here .fr-faces { margin-left: auto; }
.fr-map { display: block; margin: 0 -20px 4px; padding: 14px 12px 6px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.fr-map svg { display: block; width: 100%; height: auto; }
.fr-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--fg-2); font-size: 13.5px; }
.fr-facts a { color: inherit; }
.fr-feed { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.fr-feed li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2); }
.fr-feed li .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-feed li .fr-who { flex: none; }
.fr-feed li code { font-size: 12px; }
.fr-feed li.yours b { color: var(--brand-ink); }
/* a person or agent named in the pass: their face and name, a link to their page; a row of faces overlapping a little */
.fr-who { display: inline-flex; align-items: center; gap: 5px; color: var(--fg); text-decoration: none; vertical-align: -3px; white-space: nowrap; }
.fr-who b { font-weight: 500; }
.fr-who:hover b { text-decoration: underline; text-underline-offset: 3px; }
.fr-faces { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.fr-faces a { position: relative; display: block; line-height: 0; border-radius: 50%; transition: translate var(--shoal-fast) var(--shoal-ease); }
.fr-badge { position: absolute; right: -4px; bottom: -4px; display: block; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--bg); background: var(--bg); line-height: 0; }
.fr-faces a:hover { translate: 0 -2px; }
.fr-before { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--fg-2); font-size: 13px; }
.fr-set > a { display: block; flex: none; }
.fr-set .fr-k { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12.5px; }
/* the end: the grain, how many came before, and where to go on */
.fr-grain { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); }
.fr-grain-b { display: grid; gap: 4px; min-width: 0; flex: 1 1 220px; color: var(--fg-2); font-size: 13.5px; }
.fr-k { color: var(--muted); font: 500 11.5px var(--code); letter-spacing: .04em; text-transform: uppercase; }
.fr-grain-v { color: var(--fg); font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.fr-grain-n b { color: var(--fg); font-weight: 500; }
.fr-find { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.fr-find svg { width: 40px; height: 40px; }
.fr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.fr-next { display: grid; margin-top: 16px; }
.fr-next > .fr-k { padding-bottom: 6px; }
.fr-next-i { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.fr-next-i > .grow { display: grid; gap: 1px; min-width: 0; }
.fr-next-t { font-size: 14px; color: var(--fg-2); }
.fr-next-t b { color: var(--fg); font-weight: 500; }
.fr-next-i.first .fr-next-t { color: var(--fg); font-size: 15px; }
.fr-set, [data-celebrate] { position: relative; }
/* on Home: the stages left, the shoal with your cell and how far everyone has brought it right */
.fr-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); }
.fr-main { min-width: 0; padding: 22px 24px; }
.fr-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 20px 20px; border-left: 1px solid var(--line-2); }
.fr-sub b { color: var(--fg); font-weight: 500; }
@media (max-width: 767px) {
  .fr-box { grid-template-columns: minmax(0, 1fr); }
  .fr-side { padding-top: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .fr-main { padding: 18px 16px; }
}
/* the dock: a pill in the corner of the problem's pages that opens into the stages, over the page's own ground */
.fr-dock { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: max-content; max-width: min(380px, calc(100vw / var(--zoom, 1) - 24px)); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 12px 32px -14px rgba(14, 44, 51, .32); font-size: 13.5px; line-height: 1.5; animation: fr-in var(--shoal-scene) var(--shoal-ease) both; }
.fr-dock[open] { width: 380px; }
@keyframes fr-in { from { opacity: 0; transform: translate(-8px, 10px); } }
.fr-pill { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.fr-pill::-webkit-details-marker { display: none; }
.fr-pill-i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--brand-ink); }
.fr-pill-t { display: grid; min-width: 0; line-height: 1.3; }
.fr-pill-t b { font-size: 14px; font-weight: 500; }
.fr-pill-t span { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.fr-dock[open] .fr-pill-t span { display: none; }
.fr-pips { display: inline-flex; gap: 4px; margin-left: auto; }
.fr-pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.fr-pips i.on { background: var(--ok); }
.fr-pips i.now { background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.fr-chev { flex: none; color: var(--muted); transition: transform var(--shoal-panel) var(--shoal-ease); }
.fr-dock[open] .fr-chev { transform: rotate(180deg); }
.fr-panel { max-height: calc(100vh / var(--zoom, 1) - 160px); overflow: auto; padding: 4px 16px 10px; border-top: 1px solid var(--line-2); }
.fr-panel > .fr-steps { padding-top: 12px; }
.fr-dock .fr-h b { font-size: 14px; }
.fr-dock .fr-line { font-size: 13px; }
.fr-dock .fr-grain { padding: 12px; }
.fr-dock .fr-grain-v { font-size: 18px; }
.fr-foot { display: flex; justify-content: flex-end; margin: 10px 0 0; }
.fr-foot .btn-link { color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .fr-dock { left: 10px; right: 10px; bottom: 10px; max-width: none; width: auto; }
  .fr-dock[open] { width: auto; }
  .fr-panel { max-height: 62vh; }
}
/* a moment lit once (public/app.js coach): the page dims around it and one line says what it is */
.coach { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.coach-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(14, 44, 51, .5); transition: left var(--shoal-panel) var(--shoal-ease), top var(--shoal-panel) var(--shoal-ease), width var(--shoal-panel) var(--shoal-ease), height var(--shoal-panel) var(--shoal-ease); }
.coach-tip { position: fixed; display: grid; justify-items: end; gap: 10px; width: max-content; max-width: min(340px, calc(100vw / var(--zoom, 1) - 24px)); padding: 14px 16px 12px; border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .35); pointer-events: auto; animation: rise var(--shoal-panel) var(--shoal-ease) both; }
.coach-tip p { justify-self: stretch; margin: 0; font-size: 14.5px; line-height: 1.55; }
:where([data-theme="dark"]) .coach-hole { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .62); }
.coach.soft .coach-hole, :where([data-theme="dark"]) .coach.soft .coach-hole { box-shadow: none; border-radius: 12px; outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: 0; }
.coach.soft .coach-tip { box-shadow: 0 10px 30px -10px rgba(14, 44, 51, .35); border: 1px solid var(--line); }
/* grains rising past a moment that came true (public/app.js celebrate) */
.cheered { outline: 2px solid color-mix(in srgb, var(--ok) 55%, transparent); outline-offset: 4px; animation: cheer-ring calc(var(--shoal-scene) * 3) var(--shoal-ease) 2; }
@keyframes cheer-ring { 50% { outline-color: color-mix(in srgb, var(--ok) 15%, transparent); outline-offset: 8px; } }
/* the keeper's review, quoted in the guide while the pull request stays open (src/first.ts legsOf) */
.fr-said { margin: 6px 0 0; padding: 2px 0 2px 10px; border-left: 2px solid var(--line); color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.fr-dock.cheered { border-radius: 16px; } .fr-set.cheered, .fr-grain.cheered { border-radius: 14px; }
.cheer { position: absolute; inset: 0; z-index: 2; overflow: visible; pointer-events: none; }
.cheer i { position: absolute; left: var(--x); bottom: 10%; width: var(--s); height: var(--s); border-radius: 50%; background: var(--grain); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--grain-rim) 60%, transparent); opacity: 0; animation: cheer calc(var(--shoal-scene) * 3) var(--shoal-ease) var(--d) both; }
@keyframes cheer { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
@media (prefers-reduced-motion: reduce) { .fr-dock, .fr-st.just .fr-dot, .sf-p, .coach-tip, .coach-hole, .tab-next::after { animation: none; transition: none; } }
.lp-tag { margin-left: 4px; color: var(--fg-2); text-decoration: none; }
@media (max-width: 760px) {
  .sd-steps { grid-template-columns: minmax(0, 1fr); }
  .sd-steps li { border-top: 1px solid var(--line-2); border-left: 0; }
  .sd-steps li:first-child { border-top: 0; }
  .sd-finds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- the talk about a problem or an issue, framed from the channels (src/web.ts talkFrame): one conversation, there and here */
.dz { display: flex; flex-direction: column; gap: 8px; }
.dz-frame { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color-scheme: normal; }
.dz-tab { padding-block: 16px 32px; }
.dz-tab .dz-frame { height: max(480px, calc(100vh - 340px)); height: max(480px, calc(100dvh - 340px)); }
.dz-side .dz-frame { height: 460px; }
.dz-out { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
@media (max-width: 720px) { .dz-tab .dz-frame { height: 72vh; height: 72dvh; } .dz-side .dz-frame { height: 420px; } }
/* 关注、找人和关注动态：复用站点的颜色与按钮。 */
.follow-form { display: inline-flex; margin: 0; flex-shrink: 0; }
.follow-form .btn { gap: 6px; }
.unfollow-label { display: none; }
.follow-on:hover .follow-label, .follow-on:focus-visible .follow-label { display: none; }
.follow-on:hover .unfollow-label, .follow-on:focus-visible .unfollow-label { display: inline; }
.pf-follow, .follow-counts { margin-top: 16px; }
.pf-follow .follow-form, .pf-follow .btn { width: 100%; }
.follow-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); }
.follow-counts b { color: var(--fg); }
.follow-counts a { color: var(--fg-2); }
.follow-counts a:hover { color: var(--brand); }
.box > .box-foot.more { display: flex; justify-content: center; color: var(--fg-2); font-size: 13px; }
.follow-person, .follow-notice, .following-event { display: flex; gap: 14px; align-items: center; }
.follow-person .grow, .follow-notice .grow, .following-event .grow { min-width: 0; overflow-wrap: anywhere; }
.follow-person p { margin: 3px 0 0; }
.follow-person > a, .follow-notice > a, .following-event > a { flex-shrink: 0; }
.people-card-head a, .follow-person b, .following-event b { color: var(--fg); }
.subtabs.big.pf-tabs a { padding-inline: 8px; font-size: 14px; }
.ag-follow { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; }
.ag-follow .follow-counts { margin: 0; }
.people-filters { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 20px; }
.people-filters > .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.people-filters select { width: auto; }
.people-topics { max-height: 320px; overflow-y: auto; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.people-card { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.people-card-head { display: flex; align-items: center; gap: 12px; }
.people-card-head .grow { min-width: 0; }
.people-card-head .follow-form .btn, .people-card-head > .btn { padding-inline: 10px; }
.people-card-head .follow-form .icon { display: none; }
.people-bio { margin: 16px 0 12px; }
.people-meta { margin: auto 0 0; padding-top: 18px; }
.people-pages { margin-top: 20px; }
.following-event { align-items: flex-start; }
.following-event .tag { gap: 4px; font-size: 11px; }
.following-event .row { gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.following-time { white-space: nowrap; margin-left: auto; }
@media (max-width: 880px) { .people-card-head { flex-wrap: wrap; } .people-card-head .follow-form { margin-left: auto; } }
@media (max-width: 768px) {
  .subtabs.big.pf-tabs a { padding-inline: 0; }
  .people-grid { grid-template-columns: minmax(0, 1fr); }
  .people-filters { flex-direction: column; }
  .following-event { flex-wrap: wrap; gap: 10px; }
  .following-event .grow { flex-basis: calc(100% - 50px); }
  .following-time { margin-left: 46px; }
  .follow-person { gap: 10px; }
  .follow-person .btn { padding-inline: 10px; }
}

/* Offscreen first image for sharing crawlers; it must remain rendered. */
/* 主站社区：复用中性表面、胶囊和系统配色。 */
.disc-pins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.disc-pins .card { padding: 20px; color: var(--fg); }
.disc-pins h3 { font-size: 16px; margin: 16px 0 8px; }
.disc-layout { display: grid; grid-template-columns: 164px minmax(0, 1fr) 180px; gap: 24px; align-items: start; }
.disc-detail { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: start; }
.disc-main { min-width: 0; }
.disc-categories { display: flex; flex-direction: column; gap: 4px; }
.disc-categories h3, .disc-aside h3 { color: var(--muted); font-size: 13px; font-weight: 500; margin: 12px 0; }
.disc-categories h3:not(:first-child) { margin-top: 24px; }
.disc-filter { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--fg-2); font-size: 14px; }
.disc-filter.on, .disc-filter:hover { background: var(--surface-2); color: var(--fg); }
.disc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.disc-toolbar .input { width: auto; min-width: 0; font-size: 13px; }
.disc-toolbar input.grow { flex: 1 1 160px; }
.disc-toolbar .btn { font-size: 13px; }
.disc-row { display: flex; align-items: flex-start; gap: 14px; padding: 20px 16px; }
.disc-row .grow { min-width: 0; }
.disc-row h3 { font-size: 16px; line-height: 1.5; margin: 0 0 8px; overflow-wrap: anywhere; }
.disc-row h3 a { color: var(--fg); }
.disc-votes {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid var(--line); border-radius: 10px; min-width: 40px; height: 48px; color: var(--muted); font-size: 13px;
}
.disc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; line-height: 1.7; }
.disc-aside { min-width: 0; font-size: 13px; }
.disc-aside section { margin-bottom: 28px; }
.disc-aside a { color: var(--fg-2); overflow-wrap: anywhere; }
.disc-aside .row { gap: 8px; }
.disc-solved { color: var(--ok); }
.disc-accepted { border: 2px solid var(--ok); }
.disc-answer { margin-bottom: 22px; }
.disc-answer header, .disc-detail article > header { border-bottom: 1px solid var(--line-2); }
.disc-detail h1 { overflow-wrap: anywhere; }
.disc-detail .item { display: block; padding: 20px; min-width: 0; }
.disc-detail header.item { display: flex; flex-wrap: wrap; }
.disc-detail header.item .meta { min-width: max-content; }
.disc-detail form.item.stack { display: flex; align-items: stretch; }
.disc-detail form.item.stack > button { align-self: flex-end; border-radius: 999px; }
.disc-detail .item > form { display: inline-block; margin: 4px 6px 4px 0; }
.disc-detail .item:hover { background: var(--bg); }
.disc-detail .md { overflow-wrap: anywhere; }
.disc-actions { margin: 20px 0 10px; flex-wrap: wrap; }
.disc-actions .btn { min-width: 40px; }
.disc-reference {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--fg-2); font-size: 13px; overflow-wrap: anywhere;
}
.disc-reply { margin: 18px 0 0 16px; border-left: 2px solid var(--line-2); }
.disc-reply > .item, .disc-reply > header.item { padding: 8px 14px; border-bottom: 0; }
.disc-reply-form { margin-top: 18px; }
.disc-reply-form summary { color: var(--muted); cursor: pointer; }
.discussions .writer textarea { min-height: 150px; padding: 16px; }
.discussions .writer-preview { padding: 16px; }
.people-tabs { margin-bottom: 24px; }
.people-filters form { min-width: 0; flex-wrap: wrap; }
.people-filters form .input { width: auto; min-width: 0; }
.people-recommended { margin: 28px 0 36px; }
.people-recommended h2 { font-size: 18px; margin-bottom: 16px; }
.people-card { position: relative; min-width: 0; }
.people-card-link { position: absolute; inset: 0; border-radius: inherit; }
.people-card-head a, .people-card-head form, .people-card .pf-tag { position: relative; z-index: 1; }
.people-card:focus-within { outline: 2px solid var(--line); }
.people-card-head .grow { min-width: 0; overflow-wrap: anywhere; }
.people-relation { margin-top: 16px; white-space: normal; align-self: flex-start; width: fit-content; }
.pf-follow { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 920px) {
  .disc-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
  .disc-layout > .disc-aside { grid-column: 2; display: flex; gap: 28px; }
}
@media (max-width: 700px) {
  .disc-layout, .disc-detail { display: flex; flex-direction: column; gap: 20px; }
  .disc-layout > *, .disc-detail > * { width: 100%; }
  .disc-categories { flex-direction: row; overflow-x: auto; max-width: 100%; padding-bottom: 8px; }
  .disc-categories h3 { display: none; }
  .disc-filter { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; flex-shrink: 0; }
  .disc-pins { grid-template-columns: 1fr; }
  .disc-row { gap: 10px; padding: 16px 12px; }
  .disc-row > a:has(.avatar) { display: none; }
  .disc-row h3 { font-size: 15px; }
  .disc-detail .item { padding: 14px; }
  .disc-detail .disc-reply .item { padding: 8px; }
  .disc-reference { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; }
  .disc-reference b { min-width: 0; overflow-wrap: anywhere; }
  .disc-reference .grow { grid-column: 2 / -1; grid-row: 2; }
  .disc-reply { margin-left: 4px; }
  .disc-toolbar input.grow { flex-basis: 100%; }
  .disc-toolbar .input { flex: 1; }
  .people-tabs { overflow-x: auto; white-space: nowrap; }
  .people-filters form { width: 100%; }
  .people-filters form input[name=q] { width: 100%; }
}
