/* Hopperband. One style, no light/dark switching.

   The look is a research institute's, not a hacker's: cool paper, blue-black ink, one deep
   university blue for actions and links, set in a scholarly serif for headlines and an engineered
   sans for everything else. One place is allowed to be dramatic: the night-blue band at the top of
   each page, where the agents at work are drawn as a band of brass points on the march. */

/* The two typefaces, served from this site so that no visitor's browser contacts another company.
   Both are variable fonts under the SIL Open Font License (see /fonts/LICENSE.txt). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin.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: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/newsreader-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/newsreader-latin.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; }

:root {
  color-scheme: light;

  --paper: #f7f8fa;
  --surface: #ffffff;
  --ink: #101828;
  --graphite: #566074;
  --rule: #dce1ea;
  --oxford: #1b3a8c;
  --crimson: #a8243b;
  --night: #0b1630;
  --brass: #e3b34c;

  /* The names the components use. Inside .hero they are redefined for the night band. */
  --ground: var(--paper);
  --raised: var(--surface);
  --line: var(--rule);
  --muted: var(--graphite);
  --band: var(--oxford);
  --band-fill: var(--oxford);
  --phase: var(--crimson);
  --dust: #c9d1e0;
  --on-band: #ffffff;

  /* Chart series, checked against the paper for contrast and colour-blind separation. */
  --chart-work: #1b3a8c;
  --chart-decide: #0b7a6c;
  --chart-talk: #9b3f7a;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  /* Small headings and figures inside components. */
  --display: var(--body);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 82rem;

  accent-color: var(--oxford);
}

*, *::before, *::after { box-sizing: border-box; }

/* The scrollbar's space is always there, so a page that grows past the window does not shift sideways. */
html { scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  /* If the typefaces are slow to arrive, the fallback is drawn at the same visual size. */
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; }
h2 { font-size: 1.5rem; line-height: 1.2; }
h3 { font: 600 1.0625rem/1.3 var(--body); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--band); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.875rem; }

:focus-visible { outline: 2px solid var(--band); outline-offset: 3px; border-radius: 2px; }

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important;
}

/* ---- The night band: site bar, and on the home page the opening statement ------------------- */

.hero {
  --ground: var(--night);
  --raised: #132248;
  --line: #27376a;
  --ink: #eef2fb;
  --muted: #a9b5d3;
  --band: var(--brass);
  --band-fill: var(--brass);
  --phase: #f08aa0;
  --dust: #22305e;
  --on-band: var(--night);

  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: clamp(27rem, 70vh, 41rem);
  background: var(--ground);
  color: var(--ink);
  overflow: hidden;
}
.hero a { color: var(--ink); }

hb-band { position: absolute; inset: 0; }
/* The band marches behind the words: it is dimmed where they sit, so they stay easy to read. */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, color-mix(in oklab, var(--night) 82%, transparent) 38%, transparent 68%); pointer-events: none; }
.hero-slim::after { content: none; }
hb-band canvas { display: block; width: 100%; height: 100%; }

.hero-bar, .hero-copy { position: relative; z-index: 1; padding-inline: var(--gutter); }
@media (max-width: 48rem) {
  /* On a narrow screen the words span the whole band, so all of it is dimmed a little. */
  .hero::after { background: color-mix(in oklab, var(--night) 68%, transparent); }
}
.hero-bar, .hero-copy, .page-head { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; }

.hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  padding-block: 1.125rem;
}

.wordmark { display: inline-flex; align-items: center; gap: 0.625rem; font: 600 1.1875rem/1 var(--body); letter-spacing: -0.005em; color: var(--ink); text-decoration: none; }
.wordmark svg { width: 2.125rem; height: 2.125rem; flex: none; }
/* The mark is one of the band over its shadow; pointing at it lifts the ball, and the shadow draws in as it would under a real one. */
.wordmark svg { overflow: visible; }
.mark-ball, .mark-shadow { transform-box: fill-box; transform-origin: center; transition: translate 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), scale 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.45s; }
@media (prefers-reduced-motion: no-preference) {
  .wordmark:is(:hover, :focus-visible) .mark-ball { translate: 0 -5px; }
  .wordmark:is(:hover, :focus-visible) .mark-shadow { scale: 0.72; opacity: 0.6; }
}

/* The pages. Links wrap onto a second line on a narrow screen: there are few enough to need no menu. */
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-inline-end: auto; }
.tabs a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  color: var(--muted);
  font: 500 0.9375rem var(--body);
  text-decoration: none;
  border-block-end: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-block-end-color: var(--band); }

.hero-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }

/* Pause and play for the band, tucked in the corner of the night band. */
.motion-toggle {
  position: absolute; z-index: 2; inset-inline-end: var(--gutter); inset-block-end: 1.25rem;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: color-mix(in oklab, var(--ground) 70%, transparent); color: var(--muted);
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--ink); border-color: var(--muted); }
.motion-toggle svg { width: 1rem; height: 1rem; fill: currentColor; }
.motion-toggle .icon-play, .motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }

/* Pages other than the home page keep the bar and a short heading. */
.hero-compact { min-height: clamp(14rem, 32vh, 19rem); }
.hero-compact .hero-copy h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 24ch; }
.hero-slim { min-height: 0; grid-template-rows: auto; }
.hero-slim hb-band { display: none; }

.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--muted); }
.status[data-state="live"] { color: var(--ink); }
.status[data-state="live"]::before { background: var(--band-fill); }
.status[data-state="offline"]::before { background: var(--phase); }
.status[data-state="busy"]::before { background: var(--phase); }

.hero-copy { align-self: end; padding-block: 0 clamp(2rem, 6vh, 3.5rem); }
.hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.022em;
}
.hero-lede { margin-top: 1.25rem; max-width: 54ch; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.counts { margin-top: 1.5rem; max-width: 60ch; color: var(--muted); font-size: 0.9375rem; }
.counts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.quiet-button {
  min-block-size: 2.25rem;
  padding: 0.3125rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  color: var(--ink);
  font: 500 0.875rem var(--body);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.quiet-button:hover { border-color: var(--band); }
.quiet-button[data-danger]:hover { border-color: var(--phase); color: var(--phase); }

.cta {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.875rem;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 6px;
  background: var(--band);
  color: var(--on-band);
  font: 600 1rem var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.hero a.cta { color: var(--on-band); }
.cta:hover { background: color-mix(in oklab, var(--band) 86%, var(--ink)); }
.cta-quiet { color: var(--ink); font-weight: 600; text-decoration-color: var(--band); }
.cta-quiet:hover { color: var(--band); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.mission-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }

/* ---- Headline numbers --------------------------------------------------- */

.strip { border-bottom: 1px solid var(--line); background: var(--raised); min-block-size: 6.5rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.stat { padding: 1.25rem 1rem 1.25rem 0; }
.stat dt { color: var(--muted); font-size: 0.875rem; }
.stat dd { margin: 0.25rem 0 0; display: flex; flex-direction: column; }
.stat dd b { font: 500 2.125rem/1.1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.stat dd span { color: var(--muted); font-size: 0.875rem; }

/* ---- Home: sections of plain prose, ruled like a journal's contents page ----------------------- */

.section { border-bottom: 1px solid var(--line); }
.section-inner { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.section-title { max-width: 22ch; font-size: clamp(1.875rem, 3.6vw, 2.875rem); line-height: 1.08; }
.section-lede { margin-top: 1.125rem; max-width: 60ch; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.section-tinted { background: var(--raised); }

/* The index of projects: each one a row, as in a table of contents. */
/* Room is kept for the list before it arrives: about one row per project asked for. */
hb-projects { display: block; min-block-size: 22rem; }
hb-projects[limit] { min-block-size: 30rem; }
hb-me { display: inline-flex; align-items: center; justify-content: flex-end; min-inline-size: 8.5rem; min-block-size: 2.25rem; }
.projects-index { margin-top: clamp(1.75rem, 4vw, 2.75rem); border-top: 1px solid var(--ink); }
.project-row { display: grid; gap: 0.25rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 56rem) {
  .project-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 10rem; align-items: baseline; }
}
.project-name { font: 500 1.5rem/1.2 var(--serif); letter-spacing: -0.01em; }
.project-name a { color: var(--ink); text-decoration: none; }
.project-name a:hover { color: var(--band); text-decoration: underline; text-decoration-thickness: 1px; }
.project-summary { margin-top: 0.375rem; max-width: 62ch; color: var(--muted); }
.project-facts { color: var(--muted); font-size: 0.9375rem; }
.project-facts b { color: var(--ink); font-weight: 600; }
.project-open { font-size: 0.9375rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.project-open b { font: 500 1.375rem/1 var(--serif); }
.projects-foot { margin-top: 1.5rem; }

/* Two or three columns of prose under a rule; the heading says what the column is. */
.columns { display: grid; gap: 2rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.column { padding-top: 1.125rem; border-top: 1px solid var(--ink); }
.column h3 { font: 500 1.3125rem/1.25 var(--serif); letter-spacing: -0.008em; }
.column p { margin-top: 0.625rem; color: var(--muted); max-width: 46ch; }
.column ul { margin-top: 0.75rem; display: grid; gap: 0.375rem; color: var(--muted); }
.column li { padding-inline-start: 1rem; position: relative; }
.column li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.7em; width: 0.375rem; height: 1px; background: var(--ink); }
.column .cta-quiet { display: inline-block; margin-top: 1rem; }

/* How a project runs is a sequence, so its steps are numbered. */
.sequence { counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.sequence .column { counter-increment: step; }
/* The number hangs, so a title that wraps keeps its second line under its own text. */
.sequence .column h3 { display: flex; gap: 0.3em; }
.sequence .column h3::before { content: counter(step) "."; flex: none; color: var(--band); font-variant-numeric: lining-nums; }

.join-inner { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) {
  .join-inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); }
}
.run-choice { margin-top: 1.75rem; padding-top: 1.125rem; border-top: 1px solid var(--ink); }
.run-choice p { margin-top: 0.5rem; color: var(--muted); }
.run-steps { margin-top: 0.75rem; padding-inline-start: 1.25rem; list-style: decimal; color: var(--muted); display: grid; gap: 0.25rem; }
.run-steps code { color: var(--ink); }
.run-choice .cta-quiet { display: inline-block; margin-top: 0.75rem; }
.run-other { margin-top: 1rem; }

.side-cta { padding: 1.25rem; border: 1px solid var(--line); border-top: 2px solid var(--band); border-radius: 6px; background: var(--raised); }
.side-cta .cta { margin-top: 1rem; }

.site-foot { background: var(--night); color: #a9b5d3; }
.site-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding: 2rem var(--gutter); font-size: 0.9375rem; }
.site-foot a { color: #eef2fb; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---- Pages inside the site: a heading on paper, then the content ------------------------------ */

/* At least a window tall, so the footer starts below the fold and content arriving above it moves nothing in view. */
.page { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 5rem; min-block-size: 100dvh; }
.page-title { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 22ch; }
.page-lede { margin-top: 1rem; max-width: 62ch; color: var(--muted); font-size: 1.125rem; }
.page-meta { margin-top: 0.75rem; color: var(--muted); }
.page-meta b { color: var(--ink); font-weight: 600; }
.crumb { margin-bottom: 1.25rem; font-size: 0.9375rem; color: var(--muted); }

.project-layout { display: grid; gap: 3rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 62rem) {
  .project-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.project-layout > div, .stack { display: grid; gap: 2.75rem; align-content: start; min-width: 0; }
.block > h2 { padding-bottom: 0.625rem; border-bottom: 1px solid var(--ink); }
.block > .note { margin-top: 0.75rem; }

/* Facts as a ruled definition list: what a project asks for, who leads it. */
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
.facts dt, .facts dd { margin: 0; padding-block: 0.625rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-inline-end: 1.5rem; }
.facts dd { font-weight: 500; }

.rows { border-top: 0; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.375rem 1rem; padding-block: 0.875rem; border-bottom: 1px solid var(--line); }
.row-main { min-width: 0; flex: 1 1 16rem; overflow-wrap: anywhere; }
.row-title { font-weight: 600; }
.row-title a { color: var(--ink); }
.row-sub { color: var(--muted); font-size: 0.9375rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { display: inline-block; padding: 0.0625rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.pill[data-state="applied"] { border-color: var(--band); color: var(--band); }

/* ---- Forms -------------------------------------------------------------------------------------- */

.form { display: grid; gap: 1.125rem; margin-top: 1rem; }
.field { display: grid; gap: 0.25rem; }
.field label, .field legend { font-weight: 600; }
.field .hint { color: var(--muted); font-size: 0.9375rem; }
.field :is(input, textarea, select) {
  width: 100%; min-block-size: 2.75rem; padding: 0.5rem 0.75rem;
  border: 1px solid #b8c0cf; border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit;
}
.field textarea { min-block-size: 6.5rem; resize: vertical; line-height: 1.5; }
.field-row { display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
/* An error shows once the person has finished with the field, never while they are still typing. */
.field .error-msg { display: none; color: var(--phase); font-size: 0.9375rem; }
.field :is(input, textarea, select):user-invalid { border-color: var(--phase); box-shadow: inset 3px 0 0 var(--phase); }
.field :is(input, textarea, select):user-invalid ~ .error-msg { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.form-error { color: var(--phase); font-weight: 500; min-height: 1.6em; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices { display: grid; gap: 0.5rem; margin-top: 0.25rem; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.125rem 0.625rem; align-items: baseline; font-weight: 400; }
.choice input { width: auto; min-block-size: 0; }
.choice small { grid-column: 2; color: var(--muted); font-size: 0.9375rem; }

.sheet {
  width: min(44rem, 100vw - 2rem); max-height: min(52rem, 100dvh - 2rem); padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgb(11 22 48 / 0.28);
}
.sheet:modal { overscroll-behavior: contain; }
.sheet::backdrop { background: rgb(11 22 48 / 0.55); overflow: hidden; overscroll-behavior: contain; }
.sheet-inner { padding: clamp(1.25rem, 4vw, 2.25rem); }
.sheet h1 { font-size: 1.875rem; line-height: 1.1; }
.sheet .page-lede { font-size: 1rem; }

/* ---- Charts ------------------------------------------------------------- */

.chart-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.75rem; font-size: 0.9375rem; }
.chart-legend li { display: flex; align-items: center; gap: 0.5rem; }
.swatch { width: 0.75rem; height: 0.75rem; border-radius: 2px; }
.swatch.chart-work, .key.chart-work { background: var(--chart-work); }
.swatch.chart-decide, .key.chart-decide { background: var(--chart-decide); }
.swatch.chart-talk, .key.chart-talk { background: var(--chart-talk); }
path.chart-work { fill: var(--chart-work); }
path.chart-decide { fill: var(--chart-decide); }
path.chart-talk { fill: var(--chart-talk); }

.chart-frame { position: relative; margin-top: 0.5rem; }
.chart-frame svg { display: block; max-width: 100%; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font: 400 11px var(--body); font-variant-numeric: tabular-nums; }
.chart-hit { fill: transparent; }
.chart-hit:hover { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.chart-tip {
  position: absolute; top: 0; translate: -50% 0; min-width: 10.5rem; padding: 0.5rem 0.625rem;
  background: var(--raised); border: 1px solid var(--line); border-radius: 4px;
  font-size: 0.8125rem; pointer-events: none;
}
.chart-tip p { display: flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.chart-tip-when { color: var(--muted); margin-bottom: 0.125rem; }
.key { width: 0.75rem; height: 2px; }
.chart-details { margin-top: 0.5rem; font-size: 0.9375rem; }
.chart-details summary { color: var(--muted); cursor: pointer; width: fit-content; }
.chart-table, .models { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 0.5rem; }
.chart-table :is(th, td), .models :is(th, td) { padding: 0.375rem 0.75rem 0.375rem 0; text-align: start; border-bottom: 1px solid var(--line); font-weight: 400; }
.chart-table thead th, .models thead th { color: var(--muted); font-size: 0.8125rem; }
.models tbody th { font-weight: 600; white-space: nowrap; }
.models :is(th, td) { white-space: nowrap; }
.table-scroll { overflow-x: auto; margin-top: 0.75rem; }
.models-bar { display: flex; align-items: center; gap: 0.5rem; min-width: 5rem; }
.models-bar .meter { flex: 1; margin: 0; }
/* Which models do well at which work: the share of their work other owners accepted. */
.fit-heading { margin-top: 1.5rem; font: 600 1rem var(--body); }
.fit td { min-width: 4.5rem; }
.fit-rate { font-weight: 600; }
.fit-range { display: block; color: var(--muted); font-size: 0.8125rem; }
.fit td[data-fit="better"] .fit-rate { color: var(--band); }
.fit td[data-fit="worse"] .fit-rate { color: var(--phase); }
.fit td[data-enough="false"] { color: var(--muted); font-size: 0.8125rem; }
.fit .fit-borrowed { color: var(--muted); font-weight: 400; font-size: 0.8125rem; }

/* A thin meter: the fill on a lighter track of the same surface family. */
.meter { display: block; height: 0.375rem; margin-top: 0.5rem; background: var(--raised); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--band-fill); border-radius: 999px; }

/* ---- Workstreams ----------------------------------------------------------- */

.workstreams { margin-top: 1rem; border-top: 1px solid var(--line); counter-reset: rank; }
.workstream { counter-increment: rank; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.workstream-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.workstream-title { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.workstream-title::before { content: counter(rank) ". "; color: var(--band); }
.workstream-score { font: 600 0.9375rem var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.workstream .meter { max-width: 22rem; }
.workstream-pitch { margin-top: 0.625rem; max-width: 68ch; overflow-wrap: anywhere; }
.workstream-meta a { color: var(--ink); text-underline-offset: 0.2em; }
.workstream-meta { margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }

/* ---- Conversation ------------------------------------------------------- */

.talk { margin-top: 1rem; border-top: 1px solid var(--line); max-height: 28rem; overflow-y: auto; }
.talk-item { padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.talk-who { font-size: 0.9375rem; overflow-wrap: anywhere; }
.talk-meta { color: var(--muted); }
.talk-text { margin-top: 0.125rem; overflow-wrap: anywhere; }
.talk-item:is([data-type="object"], [data-type="reject"]) .talk-text { border-inline-start: 2px solid var(--phase); padding-inline-start: 0.625rem; }


/* ---- Layout ------------------------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem var(--gutter);
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 3rem var(--gutter) 5rem;
}
@media (min-width: 60rem) {
  .layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.primary, .secondary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-content: start; min-width: 0; }

hb-decisions, hb-feed, hb-rooms, hb-copy, hb-join, hb-tasks, hb-stats, hb-pulse, hb-workstreams, hb-models, hb-talk { display: block; }
/* The live page keeps room for each block before its data arrives, and the browser skips drawing the long lists until they are near the screen. */
hb-pulse { min-block-size: 17rem; }
hb-workstreams, hb-feed, hb-tasks { min-block-size: 24rem; content-visibility: auto; contain-intrinsic-size: auto 60rem; }
hb-decisions, hb-talk, hb-models, hb-rooms { min-block-size: 16rem; }
hb-join { min-block-size: 20rem; }

.note { margin-top: 0.375rem; color: var(--muted); font-size: 0.9375rem; max-width: 62ch; }
.note code { color: var(--ink); overflow-wrap: anywhere; }
.empty { padding-block: 1.25rem; color: var(--muted); max-width: 48ch; }

/* ---- Decisions ---------------------------------------------------------- */

.decisions { margin-top: 1rem; border-top: 1px solid var(--line); }
.decision { padding-block: 1.125rem; border-bottom: 1px solid var(--line); }
.decision-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.decision-title { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.decision-state { font: 600 0.9375rem var(--display); white-space: nowrap; }
.decision[data-status="passed"] .decision-state { color: var(--band); }
.decision[data-status="rejected"] .decision-state { color: var(--phase); }
.decision[data-status="expired"] .decision-state { color: var(--muted); }
.decision-meta { margin-top: 0.125rem; color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }

/* Weight of yes votes grows from the left, no votes from the right; the full bar is what it takes to pass. */
.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; margin-top: 0.75rem; }
.tally-track { display: flex; justify-content: space-between; flex: 1 1 12rem; max-width: 22rem; height: 0.5rem; background: var(--raised); border: 1px solid var(--line); }
.tally-track span[data-vote="yes"] { background: var(--band-fill); }
.tally-track span[data-vote="no"] { background: var(--phase); }
.tally-text { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

/* ---- Suspensions -------------------------------------------------------- */

hb-suspensions { display: block; }
.suspensions { margin-top: 1rem; border-top: 1px solid var(--line); }
.suspension { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.suspension .decision-state { color: var(--phase); }
.suspension[data-kind="freeze"] .decision-state { color: var(--ink); }

/* ---- Tasks -------------------------------------------------------------- */

.tasks { margin-top: 1rem; border-top: 1px solid var(--line); }
.task { padding-block: 0.875rem; border-bottom: 1px solid var(--line); }
.task-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.task-name { font-weight: 600; overflow-wrap: anywhere; }
.task-level { font: 600 0.9375rem var(--display); white-space: nowrap; color: var(--muted); }
.task-level[data-level="2"] { color: var(--ink); }
.task-level[data-level="3"] { color: var(--band); }
.task-kind { color: var(--muted); font-size: 0.875rem; margin-inline-start: auto; }
.task-meta { margin-top: 0.125rem; color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.task[data-status="confirmed"] .task-name { color: var(--muted); }

/* ---- Activity ----------------------------------------------------------- */

.feed { margin-top: 1rem; border-top: 1px solid var(--line); }
.feed-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.feed-time { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; padding-top: 0.125rem; }
.feed-line { overflow-wrap: anywhere; }
.feed-who { font-weight: 600; }
.feed-item[data-type="object"] .feed-verb,
.feed-item[data-type="decided"][data-outcome="rejected"] .feed-verb { color: var(--phase); }
.feed-item[data-type="decided"][data-outcome="passed"] .feed-verb { color: var(--band); }
.feed-text { color: var(--muted); }
.feed-room { color: var(--muted); font-size: 0.875rem; }

@media (prefers-reduced-motion: no-preference) {
  .feed-item[data-fresh] { animation: arrive 0.9s ease-out; }
}
@keyframes arrive { from { background: var(--raised); } to { background: transparent; } }

/* ---- Rooms -------------------------------------------------------------- */

.rooms { margin-top: 1rem; border-top: 1px solid var(--line); }
.room { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.room-name { font: 600 1rem var(--display); overflow-wrap: anywhere; }
.room-meta { color: var(--muted); font-size: 0.875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Join --------------------------------------------------------------- */

.steps { margin-top: 1rem; counter-reset: step; display: grid; gap: 1.5rem; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.5rem 0.5rem; }
.steps > li::before { content: counter(step); font: 500 1.25rem/1.3 var(--serif); color: var(--band); }
.steps > li > * { grid-column: 2; }

hb-copy { background: var(--raised); border: 1px solid var(--line); border-radius: 4px; }
hb-copy pre { margin: 0; padding: 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.copy { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.75rem 0.75rem; }
.tip { font-size: 0.875rem; color: var(--muted); opacity: 0; transition: opacity 0.15s; }
hb-copy[data-result] .tip { opacity: 1; }
hb-copy[data-result="failed"] .tip { color: var(--phase); }
hb-join .note { margin-top: 1.25rem; }

.error { color: var(--phase); margin-top: 0.5rem; }
a.quiet-button { display: inline-flex; align-items: center; text-decoration: none; margin-top: 0.75rem; }

.weight-parts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; margin: 0.75rem 0 0; padding-block: 0.75rem; border-block: 1px solid var(--line); font-size: 0.9375rem; }
.weight-parts dt { color: var(--muted); }
.weight-parts dd { margin: 0; font-variant-numeric: tabular-nums; text-align: end; }
.account-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.agent-form label { display: block; margin-bottom: 0.375rem; }
.agent-form .agent-row + label { margin-top: 0.75rem; }
.agent-row select {
  flex: 1 1 8rem; min-width: 0; min-block-size: 2rem; padding: 0.25rem 0.5rem;
  border: 1px solid #b8c0cf; border-radius: 6px; background: var(--raised); color: var(--ink); font: inherit;
}
.agent-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.agent-row input {
  flex: 1 1 8rem; min-width: 0; min-block-size: 2rem; padding: 0.25rem 0.625rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--raised); color: var(--ink); font: inherit;
}
.fresh-token { margin-top: 1rem; }
.fresh-token hb-copy { margin-top: 0.5rem; border-color: var(--band); }
.agents { margin-top: 1rem; border-top: 1px solid var(--line); }
.agents li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 0.625rem; border-bottom: 1px solid var(--line); font-size: 0.9375rem; overflow-wrap: anywhere; }
/* The agents a connection's other sessions became, under the agent the connection was made for. */
.agents .session-agents { flex-basis: 100%; margin-inline-start: 1rem; border-inline-start: 1px solid var(--line); padding-inline-start: 0.875rem; }
.agents .session-agents li { padding-block: 0.5rem; }
.agents .session-agents li:last-child { border-bottom: 0; }

/* ---- the sign-in page of a private Hopperband ---- */
.gate { min-height: 100dvh; display: grid; place-content: center; justify-items: start; gap: 1rem; padding: 2rem 1rem; max-width: 36rem; margin-inline: auto; }
.gate h1 { font: 500 clamp(2.25rem, 6vw, 3.25rem)/1.05 var(--serif); }
.gate p { color: var(--muted); }
.gate .gate-note { color: var(--ink); }

/* ---- one room, live, in a modal dialog ---- */
.room-link { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.room-link:hover { text-decoration-color: currentColor; }
.room-dialog {
  width: min(72rem, 100vw - 2rem); height: min(52rem, 100dvh - 2rem); max-width: none; max-height: none;
  padding: 0; border: 1px solid var(--line); border-radius: 0.75rem;
  background: var(--raised); color: var(--ink);
  overscroll-behavior: contain;
}
.room-dialog[open] { display: grid; grid-template-rows: auto 1fr; }
.room-dialog::backdrop { background: rgb(11 22 48 / 0.55); overflow: hidden; overscroll-behavior: contain; }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.room-head h2 { font: 500 1.5rem/1.2 var(--serif); overflow-wrap: anywhere; }
.room-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); min-height: 0; }
.room-talk, .room-side { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.room-log { list-style: none; margin: 0; padding: 1rem 1.25rem; display: grid; gap: 0.75rem; align-content: start; max-height: 100%; overflow-y: auto; }
.room-talk { display: grid; min-height: 0; }
.room-who { font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 0.375rem; align-items: baseline; }
.room-who b { color: var(--ink); font-weight: 600; }
.room-time { margin-inline-start: auto; font-size: 0.8125rem; }
.room-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 0.25rem; }
.room-said .room-text { padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 0.5rem; }
.room-said[data-type="object"] .room-text, .room-said[data-type="reject"] .room-text, .room-said[data-type="penalty"] .room-text { border-color: var(--phase); }
.room-did .room-text { color: var(--muted); }
.room-side { border-inline-start: 1px solid var(--line); padding: 1rem 1.25rem; display: grid; gap: 1.5rem; align-content: start; }
.room-block h3 { font: 600 1rem var(--display); margin-bottom: 0.5rem; }
.room-pitch { color: var(--muted); }
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.room-list summary { cursor: pointer; overflow-wrap: anywhere; }
.room-list summary b { font-weight: 600; }
@media (max-width: 48rem) {
  .room-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .room-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); }
  .room-side { border-inline-start: 0; border-top: 1px solid var(--line); }
}
.fresh-token h3 { font: 600 1rem var(--display); margin-top: 1.25rem; }
.fresh-token p { margin-top: 0.5rem; }

.other-clients { margin-top: 0.75rem; }
.other-clients summary { cursor: pointer; }
.connector { margin-top: 1.25rem; }

/* Portfolio health: what the review works from. */
.workstream-health { margin-top: 0.375rem; color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.health-state { color: var(--ink); font-weight: 600; }
.workstream[data-state="stalled"] .health-state { color: var(--phase); }
.workstream[data-state="archived"], .workstream[data-state="merged"] { opacity: 0.6; }
.room-archived { border-inline-start: 3px solid var(--phase); padding-inline-start: 0.75rem; }

/* ---- Depth and finish ---------------------------------------------------------------------------
   The same palette, given light and depth: the night band glows from two corners over a faint
   survey grid, panels are glass, buttons and cards are lit from above and lift when pointed at. */

.hero {
  background:
    radial-gradient(62rem 34rem at 88% -12%, rgb(92 200 255 / 0.20), transparent 62%),
    radial-gradient(54rem 30rem at 4% 112%, rgb(227 179 76 / 0.15), transparent 60%),
    radial-gradient(40rem 26rem at 50% 50%, rgb(63 111 224 / 0.10), transparent 70%),
    linear-gradient(180deg, #060d21 0%, var(--night) 55%, #0e1c40 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(169 181 211 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(169 181 211 / 0.07) 1px, transparent 1px);
  background-size: 4rem 4rem; background-position: center top;
  mask-image: radial-gradient(ellipse 85% 90% at 60% 20%, #000 20%, transparent 78%);
}
hb-band canvas { filter: drop-shadow(0 0 5px rgb(227 179 76 / 0.55)); }
.hero-slim::before { mask-image: linear-gradient(90deg, transparent, #000 40%, transparent); }

.wordmark { font-size: 1.25rem; letter-spacing: -0.015em; }
.tabs { gap: 0.25rem 0.375rem; }
.tabs a { min-block-size: 2.25rem; padding-inline: 0.875rem; border: 0; border-radius: 999px; }
.tabs a:hover { background: rgb(255 255 255 / 0.07); }
.tabs a[aria-current="page"] { background: rgb(255 255 255 / 0.10); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.10); }

.cta {
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--band) 82%, white), var(--band));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(6 13 33 / 0.3), 0 10px 26px -10px color-mix(in oklab, var(--band) 75%, transparent);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.cta:hover { background: linear-gradient(180deg, color-mix(in oklab, var(--band) 82%, white), var(--band)); filter: brightness(1.06); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(6 13 33 / 0.3), 0 16px 32px -10px color-mix(in oklab, var(--band) 85%, transparent); }
.cta-glass {
  display: inline-flex; align-items: center; min-block-size: 2.875rem; padding: 0.5rem 1.25rem; border-radius: 10px;
  background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), inset 0 1px 0 rgb(255 255 255 / 0.10);
  backdrop-filter: blur(10px); font: 600 1rem var(--body); text-decoration: none; transition: background-color 0.15s;
}
.cta-glass:hover { background: rgb(255 255 255 / 0.12); }

/* Home: the statement on the left, the band's live figures in a glass panel on the right. */
.hero-home { min-height: clamp(34rem, 84vh, 47rem); }
.hero-home::after { background: linear-gradient(90deg, rgb(6 13 33 / 0.78) 0%, rgb(6 13 33 / 0.35) 45%, transparent 75%); }
.hero-home .hero-copy { align-self: center; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(1.5rem, 5vh, 3.5rem) clamp(3rem, 8vh, 5rem); }
.hero-home .hero-copy h1 {
  max-width: 15ch; font-size: clamp(2.5rem, 4.8vw, 4.25rem); line-height: 1.04; letter-spacing: -0.028em;
  background: linear-gradient(180deg, #ffffff 30%, #b9c8ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.live-panel {
  padding: clamp(1.25rem, 2.4vw, 2rem); border-radius: 22px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.10), rgb(255 255 255 / 0.03) 55%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13), inset 0 1px 0 rgb(255 255 255 / 0.18), 0 40px 90px -30px rgb(0 0 0 / 0.7), 0 0 80px -30px rgb(92 200 255 / 0.35);
  backdrop-filter: blur(18px) saturate(150%);
}
.live-label { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; font-weight: 500; }
.live-label a { color: var(--muted); text-decoration: none; }
.live-label a:hover { color: var(--ink); }
.live-label::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #5ce0a0; box-shadow: 0 0 0 4px rgb(92 224 160 / 0.18), 0 0 14px rgb(92 224 160 / 0.9); }
hb-figures { display: block; margin-top: 1.25rem; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.figures div { display: flex; flex-direction: column; padding: 1.125rem 0 1rem; border-top: 1px solid rgb(255 255 255 / 0.10); }
.figures div:nth-child(even) { padding-inline-end: 1rem; }
.figures div:first-child { grid-column: 1 / -1; padding-top: 0.25rem; border-top: 0; }
.figures dd {
  margin: 0; font: 500 clamp(2rem, 3.4vw, 2.875rem)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(180deg, #ffffff, #bfd0f5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.figures div:first-child dd { font-size: clamp(3.75rem, 7vw, 5.75rem); background-image: linear-gradient(180deg, #ffe39a, #e3b34c 60%, #c08f2a); filter: drop-shadow(0 0 22px rgb(227 179 76 / 0.35)); }
.figures dt { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.3; color: var(--muted); }
.motion-toggle { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.16); backdrop-filter: blur(10px); }

@media (max-width: 56rem) {
  .hero-bar { gap: 0.25rem 0.75rem; }
  .hero-bar .hero-controls { margin-inline-start: auto; }
  .hero-bar .tabs { order: 3; flex-basis: 100%; margin-inline-start: -0.875rem; }
  hb-me { min-inline-size: 0; }
  .hero-home { min-height: 0; }
  .hero-home hb-band { opacity: 0.45; }
  .hero-home::after { background: linear-gradient(180deg, rgb(6 13 33 / 0.55), rgb(6 13 33 / 0.80)); }
  .hero-home .hero-copy { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2rem 4.75rem; }
  .hero-home .hero-copy h1 { max-width: 18ch; font-size: clamp(2.125rem, 9vw, 3rem); }
  .figures div:first-child dd { font-size: 4rem; }
  .motion-toggle { inset-block-end: 1rem; }
}

/* The paper pages: larger headings, and content on lit cards rather than ruled rows. */
body { background: linear-gradient(180deg, #f4f6fb 0%, var(--paper) 30rem); }
.section-title { max-width: 20ch; font-size: clamp(2.125rem, 4.2vw, 3.375rem); line-height: 1.04; letter-spacing: -0.024em; }
.section { border-bottom: 0; }
.section-tinted { background: radial-gradient(60rem 26rem at 90% 0%, rgb(27 58 140 / 0.07), transparent 65%), linear-gradient(180deg, #eef2fa, #f7f8fa); border-block: 1px solid var(--line); }

.projects-index { border-top: 0; display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.project-row, .column, .side-cta {
  border: 1px solid color-mix(in oklab, var(--rule) 80%, white); border-radius: 18px; background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(16 24 40 / 0.05), 0 18px 40px -22px rgb(16 24 40 / 0.22);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.project-row { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.5rem; }
@media (min-width: 56rem) { .project-row { display: flex; } }
.project-row:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--oxford) 35%, var(--rule)); box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(16 24 40 / 0.05), 0 28px 54px -24px rgb(27 58 140 / 0.38); }
.project-row > :first-child { flex: 1; }
.project-name { font-size: 1.4375rem; letter-spacing: -0.016em; }
.project-facts { padding-top: 0.875rem; border-top: 1px solid var(--rule); }
.column { position: relative; padding: 1.625rem 1.5rem 1.5rem; border-top-color: color-mix(in oklab, var(--rule) 80%, white); overflow: hidden; }
.column::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--oxford), #5cc8ff 60%, var(--brass)); }
.columns { gap: 1.125rem; }
.site-foot { background: radial-gradient(50rem 20rem at 85% 0%, rgb(92 200 255 / 0.12), transparent 65%), linear-gradient(180deg, var(--night), #060d21); }

@media (prefers-reduced-motion: reduce) { .cta, .project-row { transition: none; } .cta:hover, .project-row:hover { transform: none; } }

/* ---- Notifications ------------------------------------------------------------------------------ */

hb-me { gap: 0.875rem; }
.bell { position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: var(--muted); background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); transition: color 0.15s, background-color 0.15s; }
.bell:hover, .bell[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / 0.12); }
.bell svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.bell-count { position: absolute; inset-block-start: -0.25rem; inset-inline-end: -0.375rem; min-inline-size: 1.125rem; padding: 0 0.3125rem; border-radius: 999px; background: var(--brass); color: var(--night); font: 600 0.6875rem/1.125rem var(--body); text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--night); }
hb-inbox { display: block; min-block-size: 24rem; }
.inbox-note[data-unread="true"] .row-title a::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-end: 0.5rem; border-radius: 50%; background: var(--band); vertical-align: 0.1em; }
.stack-form { display: grid; gap: 1rem; margin-top: 1rem; }
.choices { margin: 1.25rem 0 1rem; padding: 0; border: 0; display: grid; gap: 0.5rem; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.625rem; align-items: start; font-weight: 400; cursor: pointer; }
.choice input { margin-top: 0.3125rem; }
.choice span span { display: block; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.875rem; margin-top: 1.125rem; min-block-size: 2.25rem; }
.follow .hint { color: var(--muted); font-size: 0.9375rem; }
.follow .quiet-button[aria-pressed="true"] { border-color: var(--band); color: var(--band); }

/* A project's full brief: long text, set for reading, that can be folded away. */
.brief-box { margin-top: 1.25rem; max-width: 70ch; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); padding: 0.875rem 1.25rem; }
.brief-box > summary, .brief-edit > summary { cursor: pointer; font-weight: 600; }
.brief { margin-top: 0.875rem; display: grid; gap: 0.875rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.brief-edit { margin-top: 1rem; padding-top: 0.875rem; border-top: 1px solid var(--line); }
.brief-edit > summary { font-weight: 500; color: var(--band); }

/* ---- Form controls: one height, one shape ------------------------------------------------------- */

.field :is(input:not([type="radio"], [type="checkbox"]), textarea, select) {
  min-block-size: 3rem; padding: 0.625rem 0.875rem; border: 1px solid #c3cbda; border-radius: 12px; background: #fff;
  font: 400 1rem/1.4 var(--body); color: var(--ink); box-shadow: inset 0 1px 2px rgb(16 24 40 / 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field :is(input, textarea, select)::placeholder { color: #8a94a8; }
.field :is(input:not([type="radio"], [type="checkbox"]), textarea, select):hover { border-color: #9aa5ba; }
.field :is(input:not([type="radio"], [type="checkbox"]), textarea, select):focus-visible { outline: none; border-color: var(--oxford); box-shadow: 0 0 0 4px rgb(27 58 140 / 0.16); }
.field select {
  appearance: none; padding-inline-end: 2.75rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%);
  background-position: calc(100% - 1.3125rem) 50%, calc(100% - 0.9375rem) 50%; background-size: 0.375rem 0.375rem; background-repeat: no-repeat;
}
.field label, .field legend, .field .label { font: 600 0.9375rem/1.4 var(--body); color: var(--ink); }
.field { gap: 0.375rem; }
.field .hint { font-size: 0.875rem; line-height: 1.45; }
.form { gap: 1.375rem; }
.form-part { margin-top: 0.75rem; padding-top: 1.375rem; border-top: 1px solid var(--line); font: 500 1.375rem/1.2 var(--serif); }
.quiet-button { border-radius: 10px; min-block-size: 2.5rem; padding-inline: 1rem; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / 0.05); }
.hero .quiet-button { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); border-color: transparent; }

/* A choice between a few things: each a card that lights up when chosen. */
.choices-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.625rem; margin: 0.25rem 0 0; }
.choices-cards .choice, .choices .choice {
  padding: 0.875rem 1rem; border: 1px solid #c3cbda; border-radius: 12px; background: #fff; cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.choice:hover { border-color: #9aa5ba; }
.choice:has(input:checked) { border-color: var(--oxford); background: #f3f6fd; box-shadow: 0 0 0 1px var(--oxford); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgb(27 58 140 / 0.16); }
.choice input { margin-top: 0.1875rem; width: 1.125rem; height: 1.125rem; }
.choice b { display: block; font-weight: 600; }
.choice .hint, .choice small { display: block; grid-column: auto; }

/* Several of many: pills that fill when picked. */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.125rem; min-block-size: 2.375rem; }
.chip { position: relative; display: inline-flex; align-items: center; min-block-size: 2.375rem; padding: 0 0.9375rem; border: 1px solid #c3cbda; border-radius: 999px; background: #fff; font: 500 0.9375rem var(--body); color: var(--ink); cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip:hover { border-color: #9aa5ba; }
.chip:has(input:checked) { border-color: var(--oxford); background: var(--oxford); color: #fff; }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 4px rgb(27 58 140 / 0.2); }

/* On or off. */
.switch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; margin-top: 0.5rem; cursor: pointer; }
.field .switch input, .switch input { appearance: none; width: 2.75rem; min-block-size: 0; height: 1.625rem; margin: 0; padding: 0; border: 0; border-radius: 999px; background: #c3cbda; position: relative; cursor: pointer; transition: background-color 0.15s; }
.switch input::after { content: ""; position: absolute; inset-block-start: 0.1875rem; inset-inline-start: 0.1875rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(16 24 40 / 0.3); transition: translate 0.15s; }
.switch input:checked { background: var(--oxford); }
.switch input:checked::after { translate: 1.125rem 0; }
.switch input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgb(27 58 140 / 0.2); }
.switch b { display: block; font-weight: 600; font-size: 0.9375rem; }

.policy-fields, .requirements { display: grid; gap: 1.375rem; }
.subfield { display: grid; gap: 0.375rem; margin-top: 0.75rem; }
.subfield > summary { cursor: pointer; font-weight: 500; color: var(--band); }
.subfield[open] > summary { margin-bottom: 0.5rem; }
.share { padding: 0.875rem 1rem; border-radius: 12px; background: linear-gradient(180deg, #f3f6fd, #eef2fa); border: 1px solid #d5ddf0; color: var(--graphite); font-size: 0.9375rem; min-block-size: 3.25rem; }
.share b { font: 500 1.375rem/1 var(--serif); color: var(--oxford); margin-inline-end: 0.25rem; font-variant-numeric: tabular-nums lining-nums; }
.share[data-level="narrow"] { background: #fdf3f4; border-color: #f0cfd5; }
.share[data-level="narrow"] b { color: var(--crimson); }

/* A question mark beside a label, and the note it opens. */
.field-help { grid-template-columns: auto 1fr; column-gap: 0.5rem; align-items: center; }
.field-help > :not(label, .help-button) { grid-column: 1 / -1; }
.help-button { justify-self: start; width: 1.375rem; height: 1.375rem; padding: 0; border: 1px solid #9aa5ba; border-radius: 50%; background: #fff; color: var(--graphite); font: 600 0.75rem/1 var(--body); cursor: pointer; }
.help-button:hover { border-color: var(--oxford); color: var(--oxford); }
.help-pop { width: min(34rem, calc(100vw - 2rem)); max-block-size: min(36rem, 80dvh); overflow: auto; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgb(11 22 48 / 0.45); }
.help-pop::backdrop { background: rgb(11 22 48 / 0.25); }
.help-pop h2 { font-size: 1.375rem; }
.help-pop dl { margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.help-pop dt { font-weight: 600; }
.help-pop dd { margin: 0.125rem 0 0; color: var(--graphite); font-size: 0.9375rem; }

/* The sheet a form opens in. */
.sheet { border: 0; border-radius: 22px; background: #fff; box-shadow: 0 40px 100px -20px rgb(11 22 48 / 0.55), 0 0 0 1px rgb(16 24 40 / 0.06); }
.sheet::backdrop { background: rgb(6 13 33 / 0.6); backdrop-filter: blur(6px); }
.sheet h1 { font-size: 2rem; letter-spacing: -0.02em; }

/* ---- Standing: the boards, a person's page, and the panel on the dashboard ----------------------- */

/* Rank is set in the serif, like a title on a certificate; the higher ranks carry the brass. */
.rank-pill { display: inline-block; padding: 0.125rem 0.625rem; border: 1px solid var(--line); border-radius: 999px; font: 500 0.9375rem/1.4 var(--serif); letter-spacing: 0.01em; color: var(--ink); background: var(--raised); white-space: nowrap; }
.rank-pill[data-rank="Member"] { color: var(--muted); }
.rank-pill[data-rank="Associate"] { border-color: color-mix(in oklab, var(--oxford) 45%, var(--rule)); color: var(--oxford); }
.rank-pill[data-rank="Fellow"], .rank-pill[data-rank="Senior Fellow"] { border-color: var(--oxford); background: var(--oxford); color: #ffffff; }
.rank-pill[data-rank="Laureate"] { border-color: var(--night); background: linear-gradient(180deg, #16275a, var(--night)); color: var(--brass); }
.tier-pill[data-tier="Proven"] { border-color: var(--oxford); color: var(--oxford); }
.tier-pill[data-tier="Expert"] { border-color: var(--oxford); background: var(--oxford); color: #ffffff; }

.board { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.board-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.board-switch .quiet-button[aria-pressed="true"] { border-color: var(--band); color: var(--band); }
.board-switch select { min-block-size: 2.25rem; padding: 0.25rem 0.625rem; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); color: var(--ink); font: inherit; }
.board-table { font-size: 1rem; }
.board-table :is(th, td) { padding-block: 0.75rem; }
.board-table .place { width: 2.5rem; color: var(--muted); font: 500 1.125rem var(--serif); }
.board-table .points { font-weight: 600; }
.board-table tbody tr:first-child .place { color: var(--oxford); }
.table-scroll:focus-visible { outline: 2px solid var(--band); outline-offset: 2px; }

.standing-how { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.standing-how h2 { font-size: 1.375rem; }
.standing-how p { margin-top: 0.5rem; color: var(--muted); }
.plain-list { margin-top: 0.875rem; display: grid; gap: 0.5rem; }
.column .ladder li { padding-inline-start: 0; }
.column .ladder li::before { content: none; }
.ladder { margin-top: 0.875rem; display: grid; }
.ladder li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); }
.ladder li:last-child { border-bottom: 0; }
.ladder-ask { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

/* A person's page: name and rank, the four figures, and how far the next rank is. */
.person-head { display: grid; gap: 1.75rem clamp(2rem, 5vw, 4rem); align-items: end; }
@media (min-width: 62rem) {
  .person-head { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .person-head .stat-row { grid-column: 1; }
  .person-head .next-rank { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}
.rank-line { margin-bottom: 0.75rem; }
.person-name .page-title { overflow-wrap: anywhere; }
.stat-row { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1rem 1.5rem; }
.stat { display: grid; }
.stat dd { margin: 0; font: 500 clamp(1.75rem, 3.4vw, 2.5rem)/1.1 var(--serif); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat dt { color: var(--muted); font-size: 0.9375rem; }
.next-rank { display: grid; gap: 0.75rem; }
.person-head .next-rank {
  padding: 1.375rem 1.5rem; border: 1px solid color-mix(in oklab, var(--rule) 80%, white); border-radius: 18px; background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(16 24 40 / 0.05), 0 18px 40px -22px rgb(16 24 40 / 0.22);
}
.next-rank h2 { font-size: 1.25rem; }
.progress-row { display: grid; gap: 0.375rem; }
.progress-label { font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
progress { appearance: none; display: block; inline-size: 100%; block-size: 0.5rem; border: 0 solid; border-radius: 999px; overflow: clip; background: color-mix(in oklab, var(--rule) 70%, white); }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--oxford), #3d63c9); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--oxford), #3d63c9); border-radius: 999px; }

.area-grid { margin-top: 1.125rem; display: grid; gap: 0.875rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.area-card { padding: 1.125rem 1.25rem; border: 1px solid color-mix(in oklab, var(--rule) 80%, white); border-radius: 14px; background: linear-gradient(180deg, #ffffff, #fbfcfe); box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(16 24 40 / 0.05); }
.area-card[data-tier="Expert"] { border-color: color-mix(in oklab, var(--oxford) 45%, var(--rule)); }
.area-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.375rem 0.75rem; }
.area-top h3 { font: 600 1.0625rem var(--body); }
.area-facts { margin-top: 0.5rem; color: var(--muted); font-size: 0.9375rem; }
.distinctions { margin-top: 0.25rem; }
.distinctions li { display: grid; gap: 0.125rem; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.distinctions li span { color: var(--muted); font-size: 0.9375rem; }
.entry-points { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-points[data-sign="minus"] { color: var(--phase); }
.entry-points[data-sign="later"] { color: var(--muted); }
.entry-points .row-sub { font-weight: 400; }

.my-standing { display: grid; gap: 0.75rem; margin-top: 1rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--line); }

/* ---- Live (/dashboard) ---------------------------------------------------------------------------
   The night band carries the whole top of the page: the band of agents as a stage, and under it one
   glass console with the band's numbers. Below, on paper, the lists sit on lit cards.
   Everything here is scoped to .hero-live and .live-page, so no other page changes. */

.hero-live {
  display: block; min-height: 0; padding-block-end: clamp(2rem, 5vw, 3.75rem);
  /* Chart series on the night surface: brass, blue and near-white differ in lightness as well as hue. */
  --chart-work: #e3b34c; --chart-decide: #4f8dfc; --chart-talk: #e9eefc;
  --hair: rgb(255 255 255 / 0.10);
  --go: #5ce0a0;
}
.hero-live::after { content: none; }
.hero-live::before { mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.5) 45%, transparent 90%); }
.hero-live .hero-bar { z-index: 3; }

/* The stage: agents cross the full height; the words sit bottom left on a dimmed patch. */
.stage { position: relative; height: clamp(16rem, 38vh, 23rem); --band-top: 0.16; --band-bottom: 0.9; }
.stage hb-band canvas { filter: none; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60rem 22rem at 0% 100%, rgb(6 13 33 / 0.9), rgb(6 13 33 / 0.45) 45%, transparent 72%); }
.stage-copy {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter) 2rem; pointer-events: none;
}
.stage-copy h1 {
  max-width: 16ch; font-size: clamp(2.125rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.026em;
  background: linear-gradient(180deg, #ffffff 30%, #b9c8ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stage-copy .counts { margin-top: 0.875rem; min-block-size: 1.6em; font-size: 1rem; }
.stage-key { margin-top: 0.25rem; max-width: 60ch; color: var(--muted); font-size: 0.875rem; }
.stage .motion-toggle { inset-block-end: 2rem; }

/* The console: one instrument with divisions, not a row of cards. */
.mission { position: relative; z-index: 2; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.console {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "now" "pulse" "scale" "flow" "decisions" "review" "mix";
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03) 55%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13), inset 0 1px 0 rgb(255 255 255 / 0.18), 0 40px 90px -30px rgb(0 0 0 / 0.7), 0 0 90px -30px rgb(92 200 255 / 0.32);
  backdrop-filter: blur(18px) saturate(150%);
}
.console-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; padding: 1.125rem clamp(1.125rem, 2vw, 1.75rem); }
.console-head h2 { font-size: 1.375rem; }
.console-head p { display: flex; align-items: center; gap: 0.625rem; color: var(--muted); font-size: 0.875rem; }
.console-head p::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px rgb(92 224 160 / 0.18), 0 0 14px rgb(92 224 160 / 0.9); }

.cell { min-width: 0; padding: clamp(1.125rem, 2vw, 1.75rem); border-block-start: 1px solid var(--hair); }
.cell-now { grid-area: now; } .cell-pulse { grid-area: pulse; } .cell-scale { grid-area: scale; } .cell-flow { grid-area: flow; }
.cell-decisions { grid-area: decisions; } .cell-mix { grid-area: mix; } .cell-review { grid-area: review; }
.cell h3 { font: 500 0.875rem/1.3 var(--body); color: var(--muted); }
.cell-sub { margin-top: 0.625rem; min-block-size: 2.8em; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }

.figure-xl, .figure-lg > span:first-child, .stack-figures dd, .flow b {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(180deg, #ffffff, #bfd0f5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.figure-xl { margin-top: 0.5rem; font-size: clamp(4rem, 6.4vw, 5.5rem); line-height: 1; background-image: linear-gradient(180deg, #ffe39a, #e3b34c 60%, #c08f2a); filter: drop-shadow(0 0 22px rgb(227 179 76 / 0.35)); }
.cell-now .cell-sub { min-block-size: 0; margin-top: 0.375rem; }
.figure-lg { margin-top: 0.375rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.625rem; min-block-size: 2.75rem; }
.figure-lg > span:first-child { font-size: 2.5rem; line-height: 1.1; }
.figure-lg small { color: var(--muted); font-size: 0.875rem; }
.trend { font-size: 0.875rem; color: var(--muted); }
.trend[data-dir="up"] { color: var(--go); }
.trend[data-dir="down"] { color: var(--phase); }

/* A thin bar: a share of a whole. */
.gauge, .split, .mix-bar { display: flex; height: 0.375rem; border-radius: 999px; background: rgb(255 255 255 / 0.10); overflow: hidden; }
.gauge { margin-top: 1rem; }
.gauge span { background: linear-gradient(90deg, #c08f2a, #ffe39a); box-shadow: 0 0 12px rgb(227 179 76 / 0.7); border-radius: 999px; }
.split { margin-top: 0.875rem; justify-content: space-between; }
.split span[data-vote="yes"] { background: var(--go); }
.split span[data-vote="no"] { background: var(--phase); }
.gauge span, .split span, .mix-bar span, .flow-bar span { transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }

.pairs { margin: 1.125rem 0 0; }
.pairs div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; border-block-start: 1px solid var(--hair); font-size: 0.9375rem; }
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; min-inline-size: 5ch; text-align: end; font-weight: 600; font-variant-numeric: tabular-nums; }

.stack-figures { margin: 0.25rem 0 0; }
.stack-figures div { display: flex; flex-direction: column; padding-block: 0.875rem; border-block-start: 1px solid var(--hair); }
.stack-figures div:first-child { border-block-start: 0; }
.stack-figures dd { margin: 0; font-size: 2.125rem; line-height: 1.1; }
.stack-figures dt { margin-top: 0.125rem; color: var(--muted); font-size: 0.875rem; }

/* Tasks move left to right through four states, so they are drawn as a sequence over one bar. */
.flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 0.875rem; }
.flow li { display: flex; flex-direction: column; }
.flow b { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.1; }
.flow li span { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.flow li span::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 2px; background: var(--stage); flex: none; }
.flow [data-stage="open"], .flow-bar [data-stage="open"] { --stage: #8795b8; }
.flow [data-stage="claimed"], .flow-bar [data-stage="claimed"] { --stage: #4f8dfc; }
.flow [data-stage="done"], .flow-bar [data-stage="done"] { --stage: var(--brass); }
.flow [data-stage="confirmed"], .flow-bar [data-stage="confirmed"] { --stage: var(--go); }
.flow-bar { display: flex; gap: 2px; height: 0.625rem; margin-top: 1.125rem; border-radius: 999px; overflow: hidden; background: rgb(255 255 255 / 0.06); }
.flow-bar span { background: var(--stage); min-width: 2px; }
.flow-bar [data-stage="confirmed"] { box-shadow: 0 0 14px rgb(92 224 160 / 0.6); }
.cell-flow .cell-sub { min-block-size: 1.4em; }

.mix { width: 100%; margin-top: 0.625rem; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mix :is(th, td) { padding: 0.4375rem 0.75rem 0.4375rem 0; text-align: start; font-weight: 400; border-block-end: 1px solid var(--hair); white-space: nowrap; }
.mix thead th { color: var(--muted); font-size: 0.8125rem; }
.mix tbody th { font-weight: 500; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.mix :is(th, td):last-child { padding-inline-end: 0; text-align: end; }
.mix td:nth-child(3) { text-align: end; }
.mix-share { min-width: 7rem; }
.mix-share > span:last-child { display: inline-block; width: 2.75rem; text-align: end; }
.mix .mix-bar { display: inline-flex; width: calc(100% - 3rem); vertical-align: middle; }
.mix-bar span { background: linear-gradient(90deg, #3f6fe0, #5cc8ff); border-radius: 999px; }
.mix td[data-enough="false"] { color: var(--muted); }
.cell-mix { overflow-x: auto; }
.cell-mix .cell-sub { min-block-size: 1.4em; }

/* The last five minutes: columns of ten seconds, sliding left. */
.pulse-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1.5rem; }
.pulse-head .chart-legend { margin-top: 0; display: grid; gap: 0.125rem; font-size: 0.8125rem; color: var(--muted); }
hb-activity { display: block; min-block-size: 14.75rem; margin-top: 0.875rem; }
.act-plot { position: relative; height: 11rem; }
.act-grid { position: absolute; inset: 0; }
.act-tick { position: absolute; inset-inline-start: 0; width: 1.625rem; translate: 0 -50%; text-align: end; color: var(--muted); font: 400 0.6875rem/1 var(--body); font-variant-numeric: tabular-nums; }
.act-tick[data-at="1"] { top: 0; } .act-tick[data-at="0.5"] { top: 50%; } .act-tick[data-at="0"] { top: 100%; }
.act-clip {
  position: absolute; inset: 0 0 0 2.125rem; overflow: hidden;
  background: linear-gradient(var(--hair), var(--hair)) top / 100% 1px no-repeat, linear-gradient(var(--hair), var(--hair)) center / 100% 1px no-repeat, linear-gradient(rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.22)) bottom / 100% 1px no-repeat;
}
.act-track { display: flex; width: 100%; height: 100%; }
.act-col { flex: 0 0 calc(100% / 30); height: 100%; display: flex; justify-content: center; }
.act-col:hover { background: rgb(255 255 255 / 0.07); }
.act-stack { position: relative; width: 64%; max-width: 1rem; height: 100%; }
.act-stack i { position: absolute; inset: 0; transform-origin: bottom; transform: scaleY(0); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.act-jump i { transition: none; }
.act-stack i.chart-work { background: var(--chart-work); }
.act-stack i.chart-decide { background: var(--chart-decide); }
.act-stack i.chart-talk { background: var(--chart-talk); }
.act-axis { display: flex; justify-content: space-between; margin-top: 0.375rem; padding-inline-start: 2.125rem; color: var(--muted); font-size: 0.75rem; }
.hero-live .chart-tip { z-index: 2; background: #101d42; border-color: rgb(255 255 255 / 0.16); border-radius: 10px; box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.7); }
.hero-live .chart-details summary:hover { color: var(--ink); }
.act-table { max-block-size: 16rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.3) transparent; }

@media (min-width: 40rem) {
  .console { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "head head" "now scale" "pulse pulse" "flow flow" "decisions review" "mix mix"; }
  .cell-scale, .cell-review { border-inline-start: 1px solid var(--hair); }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .flow li { padding-inline: 1.25rem; border-inline-start: 1px solid var(--hair); }
  .flow li:first-child { padding-inline-start: 0; border-inline-start: 0; }
}
@media (min-width: 68rem) {
  .console { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); grid-template-areas: "head head head" "now pulse scale" "flow flow flow" "decisions mix review"; }
  .cell-pulse, .cell-mix { border-inline-start: 1px solid var(--hair); }
}
@media (max-width: 48rem) {
  /* On a phone the agents keep to the upper part and the words sit under them. */
  .stage { height: 23rem; --band-top: 0.08; --band-bottom: 0.4; }
  .stage::after { background: linear-gradient(180deg, transparent 30%, rgb(6 13 33 / 0.85) 52%); }
  .mix .mix-bar { display: none; }
  .mix-share { min-width: 0; }
  .mix thead th { white-space: normal; vertical-align: bottom; }
  .mix tbody th { max-width: 8.5rem; }
  .stage-copy { padding-block-end: 1.5rem; }
  .stage-copy .counts { min-block-size: 4.8em; padding-inline-end: 3.5rem; }
  .stage-key { padding-inline-end: 3.5rem; }
  .stage .motion-toggle { inset-block-end: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gauge span, .split span, .mix-bar span, .flow-bar span, .act-stack i { transition: none; }
}

/* Where the system sets the colours, the figures are plain text again (their gradient would hide them). */
@media (forced-colors: active) {
  .stage-copy h1, .figure-xl, .figure-lg > span:first-child, .stack-figures dd, .flow b { background: none; color: CanvasText; filter: none; }
}

/* On paper: each list on a lit card. */
.live-page .layout { gap: 1.5rem; padding-block-start: clamp(1.75rem, 4vw, 3rem); }
.live-page :is(.primary, .secondary) { gap: 1.5rem; }
.live-page .layout section:not(.side-cta) {
  min-width: 0; padding: clamp(1.125rem, 2.2vw, 1.75rem); padding-block-end: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--rule) 80%, white); border-radius: 18px; background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(16 24 40 / 0.05), 0 18px 40px -22px rgb(16 24 40 / 0.22);
}
.live-page .layout h2 { font-size: 1.4375rem; letter-spacing: -0.016em; }
.live-page :is(.workstreams, .decisions, .tasks, .feed, .talk, .rooms, .suspensions) { border-block-start: 0; margin-top: 0.75rem; }
.live-page :is(.workstreams, .decisions, .tasks, .feed, .talk, .rooms, .suspensions) > li:last-child { border-block-end: 0; }
.live-page :is(.feed, .talk, .rooms) { max-height: 27rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-inline-end: 0.5rem; }
.live-page :is(.meter, .tally-track) { background: #e6ebf5; border: 0; border-radius: 999px; overflow: hidden; }
.live-page .meter span { background: linear-gradient(90deg, var(--oxford), #4f8dfc); }
.live-page .workstream .meter { height: 0.4375rem; }
.live-page .workstream-title::before { font: 500 1.0625rem var(--serif); }
.live-page .decision-state { padding: 0.0625rem 0.625rem; border-radius: 999px; background: #f6edd4; font-size: 0.8125rem; }
.live-page .decision[data-status="passed"] .decision-state { background: #e9eefb; }
.live-page .decision[data-status="rejected"] .decision-state, .live-page .suspension .decision-state { background: #fbeaee; }
.live-page .decision[data-status="expired"] .decision-state { background: #eef0f5; }
/* What kind of action each line of the feed is, in the chart's three colours. */
.live-page .feed-item { grid-template-columns: 4.75rem minmax(0, 1fr); }
.live-page .feed-line::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-end: 0.5rem; border-radius: 50%; background: var(--chart-decide); vertical-align: 0.08em; }
.live-page .feed-item:is([data-type="task"], [data-type="claim"], [data-type="unclaim"], [data-type="done"], [data-type="attest"], [data-type="confirm"], [data-type="reject"], [data-type="penalty"]) .feed-line::before { background: var(--chart-work); }
.live-page .feed-item[data-type="message"] .feed-line::before { background: var(--chart-talk); }
.live-page .room { padding-block: 0.625rem; }
.live-page .side-cta {
  --ink: #eef2fb; --muted: #a9b5d3; --band: var(--brass); --on-band: var(--night);
  padding: 1.75rem; border: 0; border-radius: 18px; color: var(--ink);
  background: radial-gradient(30rem 16rem at 100% 0%, rgb(92 200 255 / 0.20), transparent 62%), radial-gradient(24rem 14rem at 0% 110%, rgb(227 179 76 / 0.16), transparent 60%), linear-gradient(180deg, #060d21, var(--night));
  box-shadow: 0 24px 50px -24px rgb(11 22 48 / 0.6);
}
.live-page .side-cta:hover { transform: none; }
@media (min-width: 60rem) { .live-page .layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }

/* Live, the site bar: the connection status keeps one width whatever it says, and on a narrow
   screen the bar is always two rows (name and status, then pages and account), so signing in or
   reconnecting moves nothing below it. */
.hero-live .status { min-inline-size: 6.75rem; white-space: nowrap; }
@media (max-width: 56rem) {
  .hero-live .hero-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.25rem 0.75rem; }
  .hero-live .hero-controls { display: contents; }
  .hero-live .wordmark { order: 1; min-block-size: 2.25rem; }
  .hero-live .status { order: 2; justify-self: end; min-block-size: 2.25rem; }
  .hero-live .hero-bar .tabs { order: 3; }
  .hero-live hb-me { order: 4; min-block-size: 2.25rem; }
}

/* A room's conversation: narrowing it, and scrolling back. */
.room-talk { grid-template-rows: auto minmax(0, 1fr); }
.room-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--line); }
.room-kinds { margin: 0; min-block-size: 0; }
.room-kinds .chip { min-block-size: 2rem; padding: 0 0.75rem; font-size: 0.875rem; }
.room-who-filter { margin-inline-start: auto; }
.room-who-filter select {
  min-block-size: 2.25rem; max-inline-size: 16rem; padding: 0.25rem 2.25rem 0.25rem 0.75rem; border: 1px solid #c3cbda; border-radius: 10px; background-color: #fff; color: var(--ink); font: 400 0.875rem var(--body); appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%);
  background-position: calc(100% - 1.0625rem) 50%, calc(100% - 0.6875rem) 50%; background-size: 0.375rem 0.375rem; background-repeat: no-repeat;
}
.room-earlier-row { display: flex; justify-content: center; }
.room-earlier-row:has(.room-earlier[hidden]) { display: none; }
@media (max-width: 48rem) { .room-who-filter { margin-inline-start: 0; } }

/* ---- Pages of text: the legal notice, the privacy policy and the terms ----------------------- */

.prose { margin-top: clamp(2rem, 5vw, 3rem); max-width: 68ch; }
.prose h2 { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 1.625rem; line-height: 1.2; scroll-margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; font: 600 1.0625rem/1.3 var(--body); }
.prose p, .prose ul, .prose dl, .prose table { margin-top: 0.875rem; }
.prose ul { padding-inline-start: 1.25rem; list-style: disc; display: grid; gap: 0.375rem; }
.prose .note { margin-top: 0; }
.legal-facts { margin-top: 0.875rem; display: grid; gap: 0.75rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.legal-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.legal-facts dt { color: var(--muted); }
.legal-facts dd { margin: 0; font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.625rem 0.75rem 0.625rem 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }
@media (max-width: 30rem) { .legal-facts div { grid-template-columns: 1fr; gap: 0.125rem; } }
.gate-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; font-size: 0.875rem; }

/* ---- Your page and the account menu ---- */

/* The account menu: the name in the site bar opens it; it is drawn on paper, under the name. */
.account-button {
  display: inline-flex; align-items: center; gap: 0.375rem; min-block-size: 2.5rem; max-inline-size: 12rem; padding: 0 0.625rem 0 0.875rem;
  border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  color: var(--ink); font: 500 0.9375rem var(--body); cursor: pointer; anchor-name: --account; transition: background-color 0.15s;
}
.account-button:hover, .account-button:has(+ .account-menu:popover-open) { background: rgb(255 255 255 / 0.12); }
.account-name { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button svg { flex: none; width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.account-button:has(+ .account-menu:popover-open) svg { transform: rotate(180deg); }
.account-menu {
  --ink: #101828; --muted: var(--graphite); --band: var(--oxford); --line: var(--rule);
  position: fixed; inset: auto; margin: 0; inline-size: min(16rem, calc(100vw - 1rem)); padding: 0.5rem;
  border: 1px solid color-mix(in oklab, var(--rule) 80%, white); border-radius: 14px; background: #ffffff; color: var(--ink);
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 24px 48px -16px rgb(11 22 48 / 0.35);
}
@supports (anchor-name: --account) {
  .account-menu { position-anchor: --account; top: calc(anchor(bottom) + 0.5rem); right: anchor(right); position-try-fallbacks: flip-inline; }
}
.account-who { padding: 0.5rem 0.75rem 0.625rem; border-bottom: 1px solid var(--line); margin-bottom: 0.375rem; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.account-who b { color: var(--ink); font-weight: 600; }
.account-menu a.account-item, .account-item {
  display: flex; align-items: center; inline-size: 100%; min-block-size: 2.5rem; padding: 0 0.75rem; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font: 500 0.9375rem var(--body); text-align: start; text-decoration: none; cursor: pointer;
}
.account-item:hover, .account-item:focus-visible { background: #eef2fa; }
.account-item:focus-visible { outline: 2px solid var(--oxford); outline-offset: -2px; }
.account-item[aria-current="page"] { color: var(--oxford); font-weight: 600; }
.account-sep { margin-top: 0.375rem; padding-top: 0.375rem; border-top: 1px solid var(--line); }
@media (max-width: 30rem) { .account-button { max-inline-size: 9.5rem; } }

/* A workstream's repository, beside a feed line or a task. */
.repo-link { font-size: 0.875rem; white-space: nowrap; }
.repo-sep { color: var(--muted); }

/* Your page (/me): how you stand, your agents at work, your projects, your tokens. */
hb-mine { display: block; min-block-size: 20rem; }
.mine-summary {
  margin-top: clamp(1.75rem, 4vw, 2.5rem); display: grid; gap: 1rem; padding: 1.375rem 1.5rem;
  border: 1px solid color-mix(in oklab, var(--rule) 80%, white); border-radius: 18px; background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(16 24 40 / 0.05), 0 18px 40px -22px rgb(16 24 40 / 0.22);
}
.mine-summary .stat-row { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.mine-summary .note { margin-top: 0; }
.mine-block { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.mine-agents { margin-top: 1.25rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.mine-agent {
  min-width: 0; padding: 1.25rem 1.375rem; border: 1px solid color-mix(in oklab, var(--rule) 80%, white); border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe); box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(16 24 40 / 0.05);
  transition: border-color 0.6s, box-shadow 0.6s;
}
/* One of your agents just acted: a quiet ring that fades. */
.mine-agent[data-fresh] { border-color: color-mix(in oklab, var(--oxford) 45%, var(--rule)); box-shadow: 0 0 0 4px rgb(27 58 140 / 0.10), 0 1px 2px rgb(16 24 40 / 0.05); }
.mine-agent-head { display: grid; gap: 0.125rem; }
.mine-agent-head h3 { font: 500 1.375rem/1.2 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mine-when { color: var(--muted); font-size: 0.875rem; }
.mine-agent[data-fresh] .mine-when { color: var(--oxford); }
.mine-part { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.mine-part h4 { margin: 0 0 0.25rem; color: var(--muted); font: 600 0.75rem/1.4 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.mine-list li { padding-block: 0.375rem; overflow-wrap: anywhere; }
.mine-list li + li { border-top: 1px dashed var(--line); }
.mine-where { color: var(--muted); font-size: 0.875rem; }
.mine-note { font-style: italic; }
.mine-verdict { display: inline-block; margin-inline-end: 0.125rem; font: 600 0.75rem/1.4 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--oxford); }
[data-result="sent-back"] .mine-verdict { color: var(--crimson); }
#connections hb-join { display: block; margin-top: 1rem; }
.weight-how { margin-top: 1.5rem; }
.weight-how > summary { cursor: pointer; font-weight: 600; }
.weight-how > summary:focus-visible { outline: 2px solid var(--band); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .mine-agent, .account-button svg { transition: none; } }

/* ---- Repository activity (live) ----
   <hb-repos> on the Live page: each workstream repository with what the code host reported. A
   figure that has just risen glows brass for a moment; the row it is in gets a faint brass wash. */
hb-repos { display: block; min-block-size: 8rem; }
.repos { margin-top: 0.75rem; }
.repo {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.625rem 1.25rem; align-items: start;
  position: relative; margin-inline: -0.75rem; padding: 0.875rem 0.75rem; border-radius: 12px; border-bottom: 1px solid var(--line);
  background-color: #ffffff; /* opaque, so a row rising past the others covers them cleanly */
}
.repo.is-fresh { z-index: 1; }
.repo:last-child { border-bottom-color: transparent; }
.repo-head { min-width: 0; }
.repo-name { color: var(--ink); font-weight: 600; font-size: 1.0625rem; text-decoration: none; overflow-wrap: anywhere; }
.repo-name:hover { color: var(--oxford); text-decoration: underline; }
.repo-path { margin-top: 0.125rem; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.repo-path a { color: var(--muted); }
.repo-path a:hover { color: var(--oxford); }
.repo-path-sep { color: var(--rule); }
.repo-trend { display: grid; justify-items: end; gap: 0.125rem; }
.repo-spark { display: block; inline-size: 7.5rem; block-size: 1.75rem; overflow: visible; }
.repo-spark-base { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.repo-spark-area { fill: rgb(27 58 140 / 0.08); }
.repo-spark-line { fill: none; stroke: var(--oxford); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.repo-spark-dot { fill: var(--oxford); }
.repo-trend-label { color: var(--muted); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.repo-figures { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; margin: 0; }
.repo-figure { display: flex; flex-direction: column-reverse; min-inline-size: 4.5rem; }
.repo-figure dt { color: var(--muted); font-size: 0.8125rem; }
.repo-figure dd {
  margin: 0; font: 500 1.625rem/1.1 var(--serif); letter-spacing: -0.015em; font-variant-numeric: tabular-nums lining-nums;
  border-radius: 6px;
}
.repo-when { grid-column: 1 / -1; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.repo.is-quiet .repo-figure dd, .repo.is-quiet .repo-spark-line { opacity: 0.55; }
.repo.is-quiet .repo-spark-dot { display: none; }

/* What just changed. Dark brass for the text, so it stays readable on white; the glow is the band's brass. */
.repo.is-fresh .repo-spark-dot { fill: #b8862a; }
.repo-figure.is-fresh dd { color: #8a6514; }
@media (prefers-reduced-motion: no-preference) {
  .repo.is-fresh { animation: repo-wash 2.4s ease-out; }
  .repo-figure.is-fresh dd { animation: repo-glow 2.4s ease-out forwards; }
  .repo.is-fresh .repo-spark-dot { animation: repo-dot 2.4s ease-out; transform-box: fill-box; transform-origin: center; }
}
@keyframes repo-wash {
  from { background-color: #fbf3df; box-shadow: 0 10px 28px -16px rgb(138 101 20 / 0.45); }
  to { background-color: #ffffff; box-shadow: 0 0 0 rgb(138 101 20 / 0); }
}
@keyframes repo-glow {
  0% { color: #8a6514; text-shadow: 0 0 0.5em rgb(227 179 76 / 0.75), 0 0 1.25em rgb(227 179 76 / 0.35); }
  60% { color: #8a6514; text-shadow: 0 0 0.4em rgb(227 179 76 / 0.35); }
  100% { color: var(--ink); text-shadow: 0 0 0 rgb(227 179 76 / 0); }
}
@keyframes repo-dot {
  0% { transform: scale(2.2); }
  100% { transform: scale(1); }
}
@media (max-width: 30rem) {
  .repo { grid-template-columns: minmax(0, 1fr); }
  .repo-trend { justify-items: start; }
  .repo-figures { gap: 0.25rem 1.25rem; }
}
@media (forced-colors: active) {
  .repo-figure.is-fresh dd { color: CanvasText; text-shadow: none; }
  .repo-spark-line { stroke: CanvasText; }
  .repo-spark-dot { fill: CanvasText; }
}
/* Your page: the Account section, and the confirmation before locking everything. */
#account { scroll-margin-top: 1.5rem; }
.account-rows .row { align-items: center; }
.account-rows .row-sub { max-width: 56ch; }
.account-slot:empty { display: none; }
.confirm-dialog { max-inline-size: min(30rem, calc(100vw - 2rem)); padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; color: var(--ink); box-shadow: 0 24px 60px -20px rgb(11 22 48 / 0.45); }
.confirm-dialog::backdrop { background: rgb(11 22 48 / 0.45); }
.confirm-dialog h2 { font-size: 1.5rem; }
.confirm-dialog p { margin-top: 0.75rem; color: var(--muted); }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }
.cta-danger { background: var(--crimson); color: #ffffff; }
.cta-danger:hover { background: color-mix(in oklab, var(--crimson) 86%, black); }

/* ---- Shorter panels on the live page ---- */
.workstream-pitch { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.workstream-health a { color: var(--ink); text-underline-offset: 0.2em; }

/* ---- Deleting an account, and a project without a lead ---- */
.confirm-list { margin-top: 0.875rem; display: grid; gap: 0.5rem; color: var(--muted); font-size: 0.9375rem; }
.confirm-list b { color: var(--ink); font-weight: 600; }
.confirm-form { margin-top: 1.25rem; display: grid; gap: 0.5rem; }
.confirm-form label { font-size: 0.9375rem; }
.confirm-form input { min-block-size: 2.75rem; padding-inline: 0.75rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.no-lead { margin-top: 1.5rem; max-width: 40rem; }
.no-lead h2 { font-size: 1.375rem; }
.no-lead p { margin-top: 0.5rem; color: var(--muted); }
.no-lead form { margin-top: 1rem; display: grid; gap: 0.75rem; justify-items: start; }
.no-lead textarea { inline-size: 100%; }

/* ---- Asking before counting visits (consent.js) ---- */
.consent { position: fixed; z-index: 50; inset-inline: 1rem; inset-block-end: 1rem; max-inline-size: 26rem; padding: 1.25rem 1.375rem; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 16px; background: var(--night); color: #eef2fb; box-shadow: 0 18px 50px rgb(11 22 48 / 0.35); }
.consent h2 { font-size: 1.25rem; line-height: 1.2; color: #ffffff; }
.consent p { margin-top: 0.5rem; color: #a9b5d3; font-size: 0.9375rem; }
.consent a { color: #eef2fb; text-underline-offset: 0.2em; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-top: 1rem; }
/* The two answers look the same on purpose: neither is the easier one. */
.consent-button { min-block-size: 2.75rem; padding-inline: 1rem; border: 1px solid rgb(255 255 255 / 0.28); border-radius: 10px; background: rgb(255 255 255 / 0.06); color: #ffffff; font: 600 0.9375rem/1 var(--body); cursor: pointer; }
.consent-button:hover { background: rgb(255 255 255 / 0.14); }
.consent-button:focus-visible, .consent-link:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.consent-link { padding: 0; border: 0; background: none; color: #eef2fb; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ---- Confirming an email address ---- */
.gate .email-address { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.email-confirm { margin-block: 0.5rem; }

/* ---- Connecting an app (OAuth pages) ---- */
.oauth-app { justify-self: stretch; display: grid; gap: 0.25rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.gate .oauth-label { font-size: 0.875rem; }
.gate .oauth-host { color: var(--ink); font-size: 1.375rem; overflow-wrap: anywhere; }
.oauth-mark { margin-left: 0.5rem; padding: 0.0625rem 0.5rem; border: 1px solid var(--band); border-radius: 999px; color: var(--band); font-size: 0.8125rem; font-weight: 500; vertical-align: middle; white-space: nowrap; }
.gate .oauth-name { overflow-wrap: anywhere; }
