/* Fluid console, the Flow language. A run is a line through machines, and that line (built from the run's own hops
   and moves) is the only thing on a screen that wears a hue. Everything else is ink on paper: hairline rules instead
   of boxes, hierarchy by type, figures set in the text face with tabular digits.

   Colour has two families and they never meet. Providers are cool (teal for AWS, a deep blue for Modal, forest for
   Lambda, olive for Azure), drawn only as lines, meters' keys and chart marks, never as text; attention is warm (red
   for what failed, umber for what needs a look) and always sits beside its word. Any two providers can meet on one
   path, so the four hues were chosen with the dataviz palette validator as all pairs: in light (on #ffffff) the
   closest pair is 18.4 apart (OKLab, x100) to normal vision and 17.4 under simulated colour blindness, in dark (on
   #0f1012) 16.1 and 15.4; each is inside its theme's lightness band, holds 3:1 on --paper and --paper-2, and stands
   15 or more from --bad and --warn. None is a cloud's brand colour (no AWS orange, no Azure blue), and none lies
   between blue and red. This machine is ink, solid.
   A run that ended draws its path in the quiet colours (--pq-*): the same hues mixed toward --edge, less chroma at
   3:1 or more, never paler than the page's hairlines.
   Text tokens hold 4.5:1 on every surface they sit on (--paper, --paper-2, --paper-3, --raised); --edge, a field's
   line and a button's outline, holds 3:1.

   Type has a job per face. Instrument Sans sets every word and every figure (money, durations, percentages, with
   tabular digits where they line up); its condensed cut (--label-stretch) labels: column heads, keys of a list,
   machine names on a path, lanes. Red Hat Mono is only for what a person copies or types: ids, commands, secret
   names, code and logs. Pages add their rules in pages/<name>.css, scoped under .page[data-page="<name>"], and use
   these tokens only. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-standard-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("fonts/red-hat-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* The company's type: the 404 page's footer is the landing's and sets in both (not-found.html), and the sign-in
   page's title is Funnel Display. A face is fetched only where text uses it, so a console last seen signed in loads
   neither; theme.js asks for Funnel Display before the first paint of the sign-in page's form. */
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("fonts/funnel-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #f6f6f5;
  --paper-3: #ededeb;
  --raised: #ffffff;
  --rule: #e6e6e3;
  --rule-2: #d3d3cf;
  --edge: #858580;
  --ink: #141414;
  --ink-2: #4b4b48;
  --ink-3: #64645f;
  --ink-4: #b6b6b1;
  --bad: #b3261e;
  --warn: #8a5100;
  --p-aws: #2a9cae;
  --p-modal: #025a8d;
  --p-lambda: #146115;
  --p-azure: #8f9407;
  --p-gcp: #e05c80;
  --wash: rgb(20 20 20 / .055);
  --select: rgb(20 20 20 / .1);
  --scrim: rgb(20 20 20 / .26);
  --shadow: 0 1px 0 rgb(0 0 0 / .03), 0 18px 44px -16px rgb(0 0 0 / .24);
  --shadow-side: 1px 0 0 rgb(0 0 0 / .02), 14px 0 36px -18px rgb(0 0 0 / .26);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1012;
    --paper-2: #17181b;
    --paper-3: #202125;
    --raised: #18191c;
    --rule: #26272b;
    --rule-2: #36373c;
    --edge: #74757b;
    --ink: #ecebe7;
    --ink-2: #b7b6b1;
    --ink-3: #8f8e8a;
    --ink-4: #46474c;
    --bad: #ff7b6e;
    --warn: #e2a440;
    --p-aws: #1aa8b4;
    --p-modal: #2c709f;
    --p-lambda: #34792e;
    --p-azure: #7ba602;
    --p-gcp: #c81480;
    --wash: rgb(236 235 231 / .07);
    --select: rgb(236 235 231 / .16);
    --scrim: rgb(0 0 0 / .55);
    --shadow: 0 0 0 1px rgb(255 255 255 / .03), 0 18px 44px -16px rgb(0 0 0 / .75);
    --shadow-side: 14px 0 36px -14px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0f1012;
  --paper-2: #17181b;
  --paper-3: #202125;
  --raised: #18191c;
  --rule: #26272b;
  --rule-2: #36373c;
  --edge: #74757b;
  --ink: #ecebe7;
  --ink-2: #b7b6b1;
  --ink-3: #8f8e8a;
  --ink-4: #46474c;
  --bad: #ff7b6e;
  --warn: #e2a440;
  --p-aws: #1aa8b4;
  --p-modal: #2c709f;
  --p-lambda: #34792e;
  --p-azure: #7ba602;
  --p-gcp: #c81480;
  --wash: rgb(236 235 231 / .07);
  --select: rgb(236 235 231 / .16);
  --scrim: rgb(0 0 0 / .55);
  --shadow: 0 0 0 1px rgb(255 255 255 / .03), 0 18px 44px -16px rgb(0 0 0 / .75);
  --shadow-side: 14px 0 36px -14px rgb(0 0 0 / .7);
  color-scheme: dark;
}

:root {
  /* This machine is ink, as are the person's own machines, an unknown provider a grey */
  --p-local: var(--ink-2);
  --p-machine: var(--ink-2);
  --p-other: var(--edge);
  /* the quiet colours a run that ended draws its path in: each hue mixed toward the control outline, so less chroma
     and never under 3:1 (light 3.2 to 5.3:1 on --paper-2, dark 3.5 to 5.2:1); the lines still tell the providers apart
     (11.2 to normal vision in light, 9.6 in dark) */
  --pq-aws: color-mix(in oklab, var(--p-aws) 60%, var(--edge));
  --pq-modal: color-mix(in oklab, var(--p-modal) 60%, var(--edge));
  --pq-lambda: color-mix(in oklab, var(--p-lambda) 60%, var(--edge));
  --pq-azure: color-mix(in oklab, var(--p-azure) 60%, var(--edge));
  --pq-gcp: color-mix(in oklab, var(--p-gcp) 60%, var(--edge));
  /* Fluid Compute is the product's own line: ink, where every cloud wears its hue */
  --p-fluid: var(--ink);
  --pq-fluid: var(--ink-2);
  --pq-local: var(--edge);
  --pq-machine: var(--edge);
  --pq-other: var(--edge);
  /* the names the pages and charts used before the language: the same roles in its tokens */
  --bg: var(--paper);
  --bg-raised: var(--raised);
  --bg-subtle: var(--paper-2);
  --bg-muted: var(--paper-3);
  --border: var(--rule);
  --border-strong: var(--edge);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --accent: var(--ink);
  --accent-hover: var(--ink-2);
  --accent-soft: var(--select);
  --accent-fill: var(--ink);
  --accent-fill-hover: var(--ink-2);
  --on-accent: var(--paper);
  --ok: var(--ink);
  --bad-soft: var(--paper-2);
  /* chart series given no colour (charts.js seriesColor): the four validated hues first, then two inks */
  --series-1: var(--p-aws);
  --series-2: var(--p-modal);
  --series-3: var(--p-lambda);
  --series-4: var(--p-azure);
  --series-5: var(--ink-2);
  --series-6: var(--ink-3);
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Red Hat Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --label-stretch: 87%;
  --topbar-h: 48px;
  --nav-w: 208px;
  --rail-w: 56px;
  --gutter: 32px;
  --control-h: 32px;
  /* Corners, one small scale: a control's (a button, a field with a box, a hover or focus wash), what floats over the
     page (a menu, a dialog, a tooltip, a toast, the save bar, the approval card), and a line's round end (a
     provider's key, as the path's caps are round). A circle is 50%; a section, a table, the nav and the sheet have
     no corners: they are not boxes. */
  --radius: 4px;
  --radius-float: 6px;
  --radius-cap: 99px;
  --radius-card: 24px;  /* the one card a page is, on a site where that card is the page's one surface (below) */
  --speed: 140ms;
  --nav-speed: 160ms;
  /* what opens (a details, the saving's lines): settles fast and long, never bounces; a chevron's turn overshoots a
     touch */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-turn: cubic-bezier(.34, 1.45, .55, 1);
}

/* Notebook palettes keep Fluid's typography and layout, with the shared preference's colour family. */
:root[data-palette="midnight"] {
  --paper: #000; --paper-2: #0d0f14; --paper-3: #171b22; --raised: #101319;
  --ink: #eefaf8; --ink-2: #bfcecc; --ink-3: #95aaa8; --rule: #242e30; --rule-2: #3c4b4e; --edge: #7d979a;
}
:root[data-palette="sepia"] {
  --paper: #f8f0df; --paper-2: #eee3cf; --paper-3: #e7d7bd; --raised: #fff8e9;
  --ink: #342a21; --ink-2: #635443; --ink-3: #75634e; --rule: #d8c9af; --rule-2: #bba888; --edge: #958064;
}
:root[data-palette="nord"] {
  --paper: #2e3440; --paper-2: #353d4b; --paper-3: #434c5e; --raised: #3b4252;
  --ink: #eceff4; --ink-2: #d8dee9; --ink-3: #b8c6db; --rule: #4c566a; --rule-2: #697a94; --edge: #9baec7;
}
:root[data-palette="contrast"], :root[data-high-contrast="true"][data-theme="dark"] {
  --paper: #000; --paper-2: #111; --paper-3: #222; --raised: #111;
  --ink: #fff; --ink-2: #fff; --ink-3: #eee; --rule: #777; --rule-2: #aaa; --edge: #ddd;
}
:root[data-high-contrast="true"]:not([data-theme="dark"]) {
  --paper: #fff; --paper-2: #f5f5f5; --paper-3: #eee; --raised: #fff;
  --ink: #000; --ink-2: #111; --ink-3: #222; --rule: #777; --rule-2: #555; --edge: #333;
}
@media (prefers-color-scheme: dark) {
  :root[data-high-contrast="true"]:not([data-theme="light"]) {
    --paper: #000; --paper-2: #111; --paper-3: #222; --raised: #111;
    --ink: #fff; --ink-2: #fff; --ink-3: #eee; --rule: #777; --rule-2: #aaa; --edge: #ddd;
  }
}
/* ---------------------------------------------------------------- base */

/* Zoom enlarges all text together, including labels and fixed-size chart captions. Responsive breakpoints follow. */
/* (--text-zoom says the zoom to what is sized by the window's height: 100vh is the window's own height whatever the
   zoom, so the shell and the nav take it less the zoom, and end at the window's foot at every text size) */
html[data-text-size="small"] { zoom: .93; --text-zoom: .93; }
html[data-text-size="large"] { zoom: 1.1; --text-zoom: 1.1; }
html[data-text-size="xlarge"] { zoom: 1.2; --text-zoom: 1.2; }
html[data-reduced-motion="true"] { --speed: 0ms; --nav-speed: 0ms; scroll-behavior: auto; }
html[data-reduced-motion="true"] *, html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-underline-links="true"] a { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-density="compact"] :is(td, th) { padding-top: 6px; padding-bottom: 6px; }
html[data-density="spacious"] :is(td, th) { padding-top: 16px; padding-bottom: 16px; }
html[data-density="compact"] .page[data-page="settings"] .setting { padding-top: 10px; padding-bottom: 10px; }
html[data-density="spacious"] .page[data-page="settings"] .setting { padding-top: 24px; padding-bottom: 24px; }

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: var(--topbar-h);
  scrollbar-gutter: stable;
  /* a scroll that goes past the page's end moves nothing: the bar and the nav, which stand by position: sticky,
     would be pulled along with the page by the browser's elastic scroll */
  overscroll-behavior: none;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--font-sans);
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; background: var(--paper); min-height: calc(100vh / var(--text-zoom, 1)); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: var(--ink); text-decoration-color: var(--ink); } }
/* What a person copies or types is set in mono; nothing else is. */
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0; }
/* the face marks it: no fill behind code, and a key is its character on a hairline */
code { background: none; padding: 0; }
code.code-word { white-space: nowrap; }  /* a name inside a sentence (ui.js withCode) */
kbd { display: inline-block; min-width: 14px; padding: 0 2px; border-bottom: 1px solid var(--edge); text-align: center; line-height: 18px; color: var(--ink); }
/* keys pressed together (the command key and K) are one cap, in the text face: the typing face has no command sign */
kbd.kbd-combo { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: .03em; white-space: nowrap; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { background: none; padding: 0; }
svg.icon { flex: none; display: inline-block; vertical-align: -3px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--radius); }
::selection { background: var(--select); }
/* Figures: the text face with tabular digits, so a column of money lines up. */
.fig, .num, .tabular, td.num, th.num, .tile-value, .kv dd, time { font-variant-numeric: tabular-nums; }
.num { text-align: right; }
.muted { color: var(--ink-3); }
.secondary { color: var(--ink-2); }
/* A label: the condensed cut, quieter than what it names. */
.label { font-stretch: var(--label-stretch); font-weight: 500; color: var(--ink-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
/* A section's title: sentence case, a step above the text it heads. */
.section-title { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.skip {
  position: absolute; left: 8px; top: -40px; z-index: 100; padding: 6px 10px; background: var(--paper);
  border: 1px solid var(--edge); border-radius: var(--radius); color: var(--ink);
}
.skip:focus { top: 8px; }

@media (prefers-reduced-motion: reduce) {
  :root { --speed: 0ms; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- the mark */

/* The Clusy mark: the logo's own artwork (clusy.io's mark, two dots joining a larger one, traced from its image into
   one filled outline in a 48-unit box), drawn in the ink, whatever the theme: black on the light theme, the light ink
   on the dark one, where a black mark would vanish. It is drawn in two places, kept the same by test_ui_dashboard.py:
   index.html's wordmark and mark.svg. */
svg.mark { display: block; flex: none; overflow: visible; }
svg.mark path { fill: currentColor; }

/* ---------------------------------------------------------------- shell */

.shell {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) auto minmax(0, 1fr);
  grid-template-areas: "top top" "nav notices" "nav main";
  min-height: calc(100vh / var(--text-zoom, 1));
}
.topbar {
  grid-area: top;
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-h); padding: 0 var(--gutter) 0 18px;  /* the mark over the nav's glyphs, the name over its words */
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 30;
}
.topbar .menu-btn { display: none; }
.wordmark {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
@media (hover: hover) { .wordmark:hover { text-decoration: none; color: var(--ink); } }
/* lifted a pixel: centred on its box, the mark sat on the text's line box, low against the cap height of Fluid */
.wordmark svg.mark { width: 20px; height: 20px; transform: translateY(-1px); }
/* Fluid, then who makes it, smaller and quieter, on the same baseline. */
.wordmark-words { white-space: nowrap; }
.wordmark-by { margin-left: 3px; font-size: 12px; font-weight: 450; letter-spacing: 0; color: var(--ink-3); }
.topbar-actions { display: flex; align-items: center; flex: none; margin-left: 10px; }
/* Connect and Feedback, the bar's two labelled controls, are one shape and one size at every width: a 30px pill,
   Connect's edge the darker, as the action. */
.topbar-actions .btn { height: 30px; padding: 0 12px; border-radius: var(--radius-cap); font-size: 13px; }
/* The breadcrumb continues the wordmark: Fluid by Clusy Inc. / Runs / train. Shown only below a top-level page.
   The first slash stands further off than the rest, so the byline reads with the name and not as the trail's
   first place. */
.crumbs { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; overflow: hidden; font-size: 14px; margin-left: 6px; }
.crumbs:empty { display: none; }
.crumbs ol { display: flex; align-items: center; gap: 9px; min-width: 0; }
.crumbs li { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink-2); }
/* only the page's own name gives way to a long one: the places before it keep their words whole */
.crumbs li:not(:last-child) { flex: none; }
.crumbs li::before { content: "/"; color: var(--ink-4); }
.crumbs a { color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.crumbs a:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); } }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-end { display: flex; align-items: center; gap: 18px; margin-left: auto; flex: none; }
.header-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 0 8px;
  border: 0; border-radius: var(--radius); background: none; color: var(--ink-2); font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
@media (hover: hover) { .header-control:hover { color: var(--ink); background: var(--paper-2); } }
.feedback-trigger { border: 1px solid var(--rule); border-radius: var(--radius-cap); padding: 0 12px; min-height: 30px; }
/* Search (the command menu, command.js): a quiet control, as the account's beside it. Its glyph, its word, and the
   keys that open the menu from anywhere, as one cap on a hairline. Under 1024px it is its glyph alone, so the bar
   keeps its room for where you are (the breadcrumb) and, on a phone, for Connect and Feedback (below). */
.command-trigger .icon { color: var(--ink-3); }
.command-trigger-keys { display: inline-flex; margin-left: 1px; }
.command-trigger-keys kbd { line-height: 17px; color: var(--ink-3); border-bottom-color: var(--rule-2); }
@media (hover: hover) { .command-trigger:hover .icon, .command-trigger:hover kbd { color: var(--ink-2); } }
@media (max-width: 1023px) {
  .command-trigger { min-width: 32px; padding: 0; }
  .command-trigger .header-control-label, .command-trigger-keys { display: none; }
  .command-trigger .icon { color: var(--ink-2); }
}
/* Fluid Compute's balance: words in the bar, quiet, its figure in ink. Never a pill: it is a fact, not an action. It
   is in the bar only where the bar has room for it beside everything that was there before it: from 900px, where
   the places are a column beside the page. Narrower, the bar is the bar it was, nothing in it gives way to the
   balance, and the balance is the first line of the drawer's foot, over the version (.nav-balance). */
.topbar-balance, .nav-balance { font-size: 13px; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.topbar-balance[hidden], .nav-balance { display: none; }
.topbar-balance .fig, .nav-balance .fig { color: var(--ink); font-weight: 550; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .topbar-balance:hover, .nav-balance:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 4px; }
}
/* What the balance covers at the rate of the jobs computing now, after the figure and quieter ("about 27 h at
   $0.72/h now"): in the bar from 1200px, where the bar has room for it beside a breadcrumb. Narrower it is the
   link's title alone, and in the drawer's foot it is a line of its own under the balance. */
.balance-covers { color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) { .topbar-balance .balance-covers { display: none; } }
.header-account { flex: none; }
.account-trigger-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.account-menu .menu-list { min-width: min(232px, calc(100vw - 24px)); max-width: min(280px, calc(100vw - 24px)); }
.account-menu .menu-head { gap: 4px; padding: 10px 14px 12px; }
.account-menu .menu-head-title { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.account-theme { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 14px; font-size: 13px; }
.account-theme .theme-word { min-width: 40px; }
.feedback-form { display: grid; gap: 16px; }
.feedback-form textarea { resize: vertical; min-height: 120px; }
.feedback-sent { font-weight: 600; }
/* Freshness says something only when it has to: the data is stale, or the console is reconnecting. */
.fresh { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.fresh[data-tone="warn"] { color: var(--warn); }
.fresh .glyph { fill: currentColor; stroke: currentColor; }
.fresh .glyph-ring circle { fill: none; }
.fresh:empty { display: none; }
/* the theme: its two words, a pair of buttons, the one in use pressed and in ink */
.theme-switch { display: inline-flex; align-items: center; gap: 2px; }
.theme-word {
  display: inline-flex; align-items: center; height: 26px; padding: 0 4px; border: 0; background: none;
  font-size: 13px; color: var(--ink-3); border-radius: var(--radius);
}
.theme-word[data-on] { color: var(--ink); font-weight: 600; cursor: default; }
@media (hover: hover) { .theme-word:not([data-on]):hover { color: var(--ink); } }

/* The nav: each place is its glyph (icons.js placeGlyph) and its name, on one column every row keeps (the glyphs
   under the mark, the names under the word Fluid). From 900px it is open (--nav-w) or a rail of the glyphs alone
   (--rail-w, :root[data-nav="collapsed"]), which opens over the page while the pointer rests on it or the keyboard is
   in it (data-peek, app.js): the same width as open, a shadow at its edge, the page under it never moving. The names
   fade; they are still there, so each link and button keeps its name. */
.nav {
  grid-area: nav;
  display: flex; flex-direction: column;
  width: var(--nav-w); min-width: 0;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  padding: 20px 8px 12px;
  position: sticky; top: var(--topbar-h); z-index: 20; height: calc(100vh / var(--text-zoom, 1) - var(--topbar-h));
  overflow: hidden auto;
}
/* The workspace, at the head of the nav, for everyone signed in (app.js renderSwitcher): a row of the nav's own
   measure, the workspace's mark (its initials in a square, ui.js workspaceMark) centred where a place has its glyph,
   then its name on the places' column, cut with an ellipsis (whole in its title), and a chevron; on the rail the mark
   alone. A hairline under it, as over the nav's foot. --ws-h is the row's height, which its menu hangs under. */
.nav-workspace { --ws-h: 36px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); min-width: 0; }
/* the row kept free before the shell knows the workspace (app.js holdSwitcher): as tall as the switcher, so the
   places under it never move */
.nav-workspace:empty::before { content: ""; display: block; height: var(--ws-h); }
.nav-workspace > .menu { display: flex; }
.nav-ws {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 12px; align-items: center; column-gap: 7px;
  width: 100%; height: var(--ws-h); padding: 0 10px 0 9px; overflow: hidden; border: 0; border-radius: var(--radius); background: none;
  color: var(--ink); font-size: 14.5px; font-weight: 600; text-align: left; white-space: nowrap;
}
@media (hover: hover) { .nav-ws:hover { background: var(--paper-2); } }
.nav-ws[aria-expanded="true"] { background: var(--paper-2); }
.nav-ws:focus-visible { outline-offset: -2px; }
.nav-ws-name { text-overflow: ellipsis; }
/* A workspace's mark (ui.js workspaceMark): its initials in a square, ink on paper. The one the console is in is
   filled. Three sizes: a menu's row and the nav (sm), a page's head (md), the workspace's own page (lg). */
.ws-mark {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--edge);
  border-radius: var(--radius); color: var(--ink); background: var(--paper); font-size: 10.5px; font-weight: 650;
  line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; user-select: none;
}
.ws-mark[data-current] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ws-mark[data-size="md"] { width: 32px; height: 32px; font-size: 13px; }
.ws-mark[data-size="lg"] { width: 48px; height: 48px; font-size: 18px; }

.nav-ws-chevron { color: var(--ink-3); transition: opacity var(--nav-speed) ease-out; }
/* Its menu is wider than the nav, so a name reads on one line, and never wider than the screen: while it is open the
   nav lets it out over the page (app.js sets data-menu-open; the foot keeps its own edge while the rail opens under
   it). On a short screen the menu scrolls as a whole, under its row. Under the quiet word Workspaces, each workspace
   is its mark, its whole name, wrapped where it is long, over the person's role in it; the one the console is in
   wears the tick and a filled mark. Under a hairline, what can be done here, in words on the marks' edge. */
.nav[data-menu-open] { overflow: visible; }
.nav[data-menu-open] .nav-foot { overflow: hidden; }
.nav-ws-menu .menu-list {
  left: 0; right: auto; width: min(288px, calc(100vw - 24px)); min-width: 0; max-width: none;
  max-height: calc(100vh - var(--topbar-h) - var(--ws-h) - 36px); max-height: calc(100dvh - var(--topbar-h) - var(--ws-h) - 36px);
  overflow-y: auto; overscroll-behavior: contain;
}
.nav-ws-menu .menu-list > .menu-head { padding: 8px 14px 6px; font-size: 12px; font-weight: 500; font-stretch: var(--label-stretch); }
.nav-ws-menu .menu-item[role="menuitemradio"] {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px; gap: 0 10px; align-items: center;
  height: auto; padding: 7px 14px; line-height: 1.35; white-space: normal;
}
.nav-ws-menu .menu-item-lead { grid-column: 1; grid-row: 1 / span 2; width: auto; }
/* a name is whole in its menu: a long one wraps, at a space where it can and anywhere where it must */
.nav-ws-menu .menu-item[role="menuitemradio"] > .menu-item-label { grid-column: 2; min-width: 0; overflow-wrap: anywhere; font-weight: 550; }
.nav-ws-menu .menu-item[role="menuitemradio"] > .menu-item-sub { grid-column: 2; grid-row: 2; font-size: 12.5px; }
.nav-ws-menu .menu-item[role="menuitemradio"] > .menu-item-check { grid-column: 3; grid-row: 1 / span 2; }
.nav-list { display: grid; gap: 2px; }
/* The places are two kinds, where the work is and what sets it up: one hairline between them, the nav's own (as under
   the workspace and over the foot), and no words. It is drawn over the first place of the second kind. */
.nav-list > .nav-break { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
/* A place: its glyph, then its name. The one shown is in ink and heavier, and a short rule of ink marks it on the
   nav's edge, open or a rail (the rule a chosen tab wears under its word, stood upright). */
.nav-item {
  position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; column-gap: 8px;
  height: 36px; padding: 0 10px; border-radius: var(--radius);
  color: var(--ink-3); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
@media (hover: hover) { .nav-item:hover { color: var(--ink); text-decoration: none; } }
.nav-item[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav-item[aria-current="page"]::before {
  content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 2px; background: var(--ink);
}
.nav-item:focus-visible { outline-offset: -2px; }
.nav-glyph { display: block; flex: none; width: 20px; height: 20px; }
.nav-word, .nav-account, .theme-switch, .nav-version { transition: opacity var(--nav-speed) ease-out; }
.nav-word { min-width: 0; overflow: hidden; }  /* clipped, never an ellipsis: the rail's names are wiped in as it opens */
/* The nav's foot holds its pin control and the gateway's version. Account and theme live in the top bar. */
.nav-foot {
  margin-top: auto; padding: 10px 0 0; border-top: 1px solid var(--rule);
  display: grid; gap: 2px; font-size: 13px; min-width: 0;
}
.nav-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; align-items: center; min-height: 32px; padding: 0 10px; min-width: 0; }
.nav-row > .nav-glyph { color: var(--ink-3); }
.nav-pin-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; }
.nav-pin {
  flex: none; display: grid; grid-template-columns: 20px auto; align-items: center; column-gap: 8px; height: 32px; padding: 0 6px 0 10px;
  border: 0; border-radius: var(--radius); background: none; color: var(--ink-3); font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
@media (hover: hover) { .nav-pin:hover { color: var(--ink); } }
.nav-pin:focus-visible { outline-offset: -2px; }
.nav-version { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-right: 10px; }
.scrim { position: fixed; inset: var(--topbar-h) 0 0 0; background: var(--scrim); z-index: 25; }

@media (min-width: 900px) {
  /* the page moves once, with the nav's edge, when the nav is pinned open or collapsed */
  .shell { transition: grid-template-columns var(--nav-speed) ease-out; }
  .nav { transition: width var(--nav-speed) ease-out, box-shadow var(--nav-speed) ease-out, background-color var(--nav-speed) ease-out; }
  :root[data-nav="collapsed"]:not([data-signed-out]) .shell { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  :root[data-nav="collapsed"] .nav:not([data-peek]) { width: var(--rail-w); }
  :root[data-nav="collapsed"] .nav[data-peek] { background: var(--raised); box-shadow: var(--shadow-side); }
  /* the rail's own control is the size of a place on it, so its focus ring is the glyph's */
  :root[data-nav="collapsed"] .nav:not([data-peek]) .nav-pin { width: 40px; overflow: hidden; }
  /* a place on the rail is 40px, the glyph in its middle and the same room on either side of it in the rail: the
     room of its name is closed (the name is still there for a reader). With that room open the place was wider than
     the rail, so whatever marks the one shown ran to the rail's edge on one side */
  :root[data-nav="collapsed"] .nav:not([data-peek]) .nav-item { width: 40px; column-gap: 0; }
  /* on the rail the names go first and fast, and nothing hidden takes a click; the version waits for the nav open */
  :root[data-nav="collapsed"] .nav:not([data-peek]) :is(.nav-word, .nav-account, .theme-switch, .nav-ws-chevron),
  :root[data-nav="collapsed"] .nav .nav-version {
    opacity: 0; pointer-events: none; transition-duration: 90ms;
  }
}

.content { grid-area: main; min-width: 0; padding: 32px var(--gutter) 72px; }
.content:focus { outline: none; }
/* What the shell says over every page (a frozen workspace, a sign-in step that could not start, the plan's limit):
   each a band of its own under the top bar, in the page's column and on its edges, so one never writes over another.
   A band is a notice whose rules are the top bar's above it and a hairline across the column under it; its action
   sits at its right end, under its sentence on a phone. With nothing to say the row has no height. */
.shell-notices { grid-area: notices; min-width: 0; }
.shell-notice { padding: 0 var(--gutter); border-bottom: 1px solid var(--rule); }
.shell-notice > .notice { border: 0; padding: 11px 0; align-items: baseline; gap: 10px; }
.shell-notice > .notice > .glyph { margin-top: 0; align-self: baseline; transform: translateY(1px); }
.shell-notice .notice-text { text-wrap: pretty; }
.shell-notice .notice-actions { align-self: baseline; margin-left: auto; padding-left: 14px; }
/* a band that wears no glyph starts its words where the bands that wear one start theirs */
.shell-notice > .notice[data-tone="info"] { padding-left: 20px; }
/* the plan's band: its glyph and its words are one item, the glyph on the first line; what acts stands beside them
   on the band's middle, the cross that puts a warning away as tall as the action and ending on the column's edge.
   The last of its sentences is kept whole where a line can hold it */
#plan-notice > .notice { align-items: center; }
#plan-notice .plan-says { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
#plan-notice .plan-says > .glyph { transform: translateY(1px); }
#plan-notice .notice-actions { align-items: center; align-self: center; }
#plan-notice .plan-dismiss { width: 26px; height: 26px; margin-right: -6px; }
@media (min-width: 600px) {
  .shell-notice .notice-keep { display: inline-block; max-width: 100%; }
  /* its lines fill as they come, so the sentence kept whole starts the next one: never a break inside "($6,440 of $7,000)" */
  #plan-notice .notice-text { text-wrap: wrap; }
}
@media (max-width: 599px) {
  .shell-notice > .notice { flex-wrap: wrap; }
  .shell-notice .notice-text { flex: 1 1 calc(100% - 20px); }
  .shell-notice .notice-actions { flex: 1 1 100%; margin-left: 0; padding-left: 20px; }
  /* the plan's band says it in a few words on a phone, with its action on the same row; under them only where the
     words would be left less than a short line beside it */
  #plan-notice > .notice { row-gap: 8px; }
  #plan-notice .plan-says { flex: 1 1 168px; }
  #plan-notice .notice-text { flex: 1; }
  #plan-notice .notice-actions { flex: none; margin-left: auto; padding-left: 0; gap: 2px; }
  #plan-notice .plan-dismiss { margin-right: -12px; }
}
/* The sign-in page's form of the shell: no nav, no menu button, no account, no breadcrumb. On the root, where
   theme.js sets it before the first paint (#/signin, and a browser not last seen signed in) and app.js keeps it. */
:root[data-signed-out] .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "notices" "main"; }
/* Nothing of a session shows on it either, when someone opens #/signin while signed in: not Connect, the balance,
   Feedback or the freshness line. The bar is the mark and the theme, whoever is or is not signed in. */
:root[data-signed-out] .shell .nav, :root[data-signed-out] .shell .menu-btn, :root[data-signed-out] .shell #account,
:root[data-signed-out] .shell .crumbs, :root[data-signed-out] .shell .topbar-actions,
:root[data-signed-out] .shell .topbar-balance, :root[data-signed-out] .shell .feedback-trigger,
:root[data-signed-out] .shell .command-trigger,
:root[data-signed-out] .shell .fresh, :root[data-signed-out] .shell #plan-notice { display: none; }

@media (max-width: 899px) {
  :root { --gutter: 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "notices" "main"; }
  .topbar { padding: 0 12px 0 6px; gap: 6px; }
  .topbar .menu-btn { display: inline-flex; }
  /* Closed, the drawer is off screen and inert (app.js), so neither the keyboard nor a screen reader lands in it. */
  .nav {
    position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: min(var(--nav-w), 85vw); z-index: 26;
    transform: translateX(-100%); visibility: hidden; height: auto;
    transition: transform var(--speed) ease-out, visibility 0s linear var(--speed);
  }
  .shell[data-nav-open] .nav { transform: none; visibility: visible; box-shadow: var(--shadow-side); transition: transform var(--speed) ease-out; }
  /* Open, the drawer is in front of the page and of what the page said: a toast still up goes under its scrim (25),
     as under a dialog's backdrop, and is over the page again once it closes. On a phone the toasts are at the
     bottom, across the screen, where the drawer's foot would be under one. */
  .shell[data-nav-open] ~ .toasts { z-index: 24; }
  /* the drawer is the nav open: its own control is the menu button, so Collapse and Keep open are not in it */
  .nav-pin { display: none; }
  .nav-item, .nav-ws { height: auto; }
  .nav-workspace { --ws-h: 40px; }  /* the switcher is a 40px target here, and its menu hangs under that */
  .content { padding: 22px var(--gutter) 48px; }
  /* Every target is at least 40px: the controls, the sort buttons and group toggles of tables, switches and the
     choices of a form, and the links that stand alone (the breadcrumb, the wordmark, the drawer's foot, the skip
     link); a table's clickable row is 40px tall. */
  .btn, .icon-btn, .nav-item, .nav-ws, .tab, .segmented button, .menu-item, .th-btn, .group-toggle, .theme-word, .account-out,
  .copy-btn, .word-toggle, .header-control { min-height: 40px; }
  .copy-btn { min-width: 40px; }
  .nav-row { min-height: 40px; }
  .nav-row.nav-pin-row { min-height: 24px; padding-left: 38px; }  /* the version alone, under the names */
  .icon-btn { min-width: 40px; }
  .segmented button { height: auto; }
  .table th { height: 40px; }
  .table tr.row-go td { height: 40px; }
  .check { min-height: 40px; }
  .crumbs a, .wordmark, .skip { display: inline-flex; align-items: center; min-height: 40px; }
  :root[data-signed-out] .shell .topbar { padding-left: var(--gutter); }  /* no menu button: the mark on the content's edge */
  /* where the breadcrumb follows, who makes it gives way first: the word Fluid stays (on a tablet the byline left the
     page's own name one letter, "t") */
  .topbar:has(.crumbs li) .wordmark-by { display: none; }
  /* The bar's two pills keep their desktop size and take a 40px touch past their edges: drawn 40px tall they were two
     boxes as heavy as the bar. */
  .topbar-actions .btn, .feedback-trigger { position: relative; height: 30px; min-height: 30px; }
  .topbar-actions .btn::after, .feedback-trigger::after { content: ""; position: absolute; inset: -7px -1px; }  /* from inside the border */
  /* the balance leaves the bar before anything in it is squeezed: it is in the drawer, on the names' edge, a line
     tall enough to press */
  .topbar-balance { display: none; }
  .nav-balance:not([hidden]) { display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 0 5px; min-height: 40px; padding-left: 38px; }
  .nav-balance .balance-covers { flex-basis: 100%; padding-bottom: 6px; font-size: 12.5px; line-height: 1.35; white-space: normal; text-wrap: balance; }
  .nav-balance .balance-sep { display: none; }
  .command-trigger { min-width: 40px; }  /* its glyph alone, a target as large as the others */
}
/* A narrow tablet's bar holds the breadcrumb, Connect, Search and Feedback: the account is its glyph alone there, as
   on a phone, so a run's name keeps its room (its menu's head says the name). */
@media (max-width: 719px) {
  .account-trigger { min-width: 40px; padding: 0; }
  .account-trigger-name, .header-control .account-chevron { display: none; }
}
@media (max-width: 599px) {
  .topbar-end { gap: 4px; }
  .header-control { min-width: 40px; padding: 0; }
  .feedback-trigger { padding: 0 12px; }
  .header-control-label, .account-trigger-name, .header-control .account-chevron { display: none; }
  .fresh { position: absolute; top: var(--topbar-h); right: 12px; font-size: 12.5px; background: var(--paper); }
  .wordmark { font-size: 14.5px; }
  /* and on a phone it gives way to Connect too */
  :root:not([data-signed-out]) .topbar:has(.crumbs li, .topbar-actions:not([hidden])) .wordmark-by { display: none; }
  /* A phone's bar has no room for the breadcrumb (clipped, it read "Ru"), and the page's title right under the bar says
     where you are: it gives way, and Connect follows the wordmark as it does on a top-level page. */
  .crumbs { display: none; }
  .topbar-actions { margin-left: 4px; }
}
/* A phone's bar holds Connect, Search, Feedback and the account. Where all four stand in it and the window is under
   420px, the word gives way and the mark stays, as it does under 360px for Connect alone; under 360px Search
   gives way too (the command menu still opens from a keyboard). */
@media (max-width: 419px) {
  :root:not([data-signed-out]) .topbar:has(.topbar-actions:not([hidden])):has(.feedback-trigger:not([hidden])):has(.command-trigger:not([hidden])) .wordmark-words {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 359px) {
  :root:not([data-signed-out]) .topbar:has(.topbar-actions:not([hidden])) .wordmark-words {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .command-trigger { display: none; }
}

/* ---------------------------------------------------------------- page scaffolding */

/* One column that can shrink: a grid item's min-width is auto, so without minmax(0, 1fr) a wide table would widen
   the page, and the page, not the table's own region, would scroll sideways. */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; min-height: 32px; }
/* A calm title: the page's name, not a poster. */
.page-title { font-size: 24px; font-weight: 600; letter-spacing: -.012em; line-height: 1.2; }
.page-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.page-sub { color: var(--ink-2); margin-top: 2px; max-width: 80ch; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.toolbar .search { flex: 0 1 260px; }
.toolbar select { width: auto; min-width: 150px; max-width: 260px; }
/* A toolbar, the table it filters and the line under it read as one block. */
.list-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: grid; gap: 32px; align-content: start; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
@media (max-width: 899px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
/* No cards: a group is a section under a rule of ink, its title on the rule's line, its content on the grid. A
   table that is its content runs flush under the title. */
.panel { border-top: 1px solid var(--ink); background: none; min-width: 0; }
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap;
  min-height: 42px; padding: 12px 0 8px;
}
.panel > .table-wrap, .panel > .panel-flush > .table-wrap { border: 0; }
.panel-title { font-size: 15px; font-weight: 600; white-space: nowrap; line-height: 1.3; }
.panel-body { padding: 4px 0 6px; }
.panel-foot { padding: 10px 0 0; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.meta { font-size: 12.5px; color: var(--ink-3); }
.grid-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 36px 32px; }
.note { font-size: 12.5px; color: var(--ink-3); }
.stack-tight { display: grid; gap: 6px; }
.text-bad { color: var(--bad); overflow-wrap: anywhere; }

/* A page's figures are a line of text, never tiles: the figure, then what it is. ledger() in ui.js writes it; the
   older tile() writes the same line. */
.ledger, .tiles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 30px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.ledger-item, .tile { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.ledger-fig, .tile-value { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* a phone's line keeps its figures: an item's long words wait for a wider window (ledger-short), an item may be one
   width's only (ledger-wide, ledger-phone) */
.ledger-phone { display: none; }
@media (max-width: 599px) {
  .ledger-wide, .ledger-short .ledger-words { display: none; }
  .ledger-phone { display: inline-flex; }
}
.tile-value { order: 1; }
.tile-label { order: 2; }
.tile-sub { order: 3; color: var(--ink-3); }
.tile-short { display: none; }
/* ---------------------------------------------------------------- disclosures

   Every details opens the same way (ui.js swing): its summary is its words after a stroked chevron, never the
   browser's triangle, and the chevron turns down as it opens; the body grows to its height while its parts rise in
   one after another (--rise, set by swing), and fades as it folds back. A panel's own head (the Connections page's,
   with its caret) keeps its look. Reduced motion opens it at once (the base rules). Zero specificity, so a page's
   own summary rules (its colour, its padding) still win. */
details > summary::-webkit-details-marker { display: none; }
:where(details > summary:not(.panel-head, :has(.conn-caret))) {
  display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; list-style: none; cursor: pointer;
  border-radius: var(--radius); -webkit-tap-highlight-color: transparent; transition: color var(--speed) ease-out;
}
:where(details > summary:not(.panel-head, :has(.conn-caret)))::before {
  content: ""; flex: none; width: 5px; height: 5px; margin: 0 2px 0 1px; opacity: .7;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateX(-1px) rotate(-45deg);
  transition: transform 320ms var(--ease-turn), opacity var(--speed) ease-out;
}
:where(details[open]:not([data-motion="closing"]) > summary:not(.panel-head, :has(.conn-caret)))::before {
  opacity: 1; transform: translateY(-2px) rotate(45deg);
}
@media (hover: hover) {
  details > summary:not(.panel-head, :has(.conn-caret)):hover { color: var(--ink); }
  details > summary:not(.panel-head, :has(.conn-caret)):hover::before { opacity: 1; }
}
:where(details > summary:not(.panel-head)):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* a plain disclosure (no component of its own sets its spacing) keeps its body a breath under its summary */
:where(details:not([class])[open] > summary) { margin-bottom: 6px; }
:where(details[data-motion="opening"]) > :not(summary) {
  animation: disclose-rise 420ms var(--ease-out) both; animation-delay: calc(var(--rise, 0) * 45ms + 30ms);
}
:where(details[data-motion="opening"]) > :is(ol, ul, dl) > * {
  animation: disclose-rise 420ms var(--ease-out) both; animation-delay: calc(var(--rise, 0) * 40ms + 70ms);
}
:where(details[data-motion="closing"]) > :not(summary) { opacity: 0; transition: opacity 150ms ease-in; }
@keyframes disclose-rise { from { opacity: 0; transform: translateY(-5px); } }

/* The saving, once where totals are shown: one line, the figure and its share beside it, quieter; under it a closed
   "Details" that draws where the saving came from (ui.js reckoning): a waterfall of lines, each part stepping right
   from where the last one ended, the overhead stepping back (hatched: money paid, not saved), "Never below zero"
   forward (dashed: counted, not saved), landing on the saving in ink under a hairline; then what it is measured
   against with the saving's share of it as a meter. Lines with round ends, as a run's path is drawn; ink only, the
   path's hues are the providers'. Opening, the rows rise and the lines draw in one after another, each from its join
   with the last; on a page's head (data-float) it floats over the page as a card instead of pushing it down. */
.reckoning { display: inline-grid; gap: 4px; justify-items: start; font-size: 13px; color: var(--ink-2);
  font-variant-numeric: tabular-nums; }
.reckoning-caption { font-size: 12.5px; color: var(--ink-3); font-stretch: var(--label-stretch); font-weight: 500; }
.reckoning-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.reckoning-figure { color: var(--ink); font-weight: 600; font-size: 15px; }
.reckoning-share { color: var(--ink-3); }
.reckoning-details { justify-self: stretch; min-width: 0; color: var(--ink-3); font-size: 12.5px; }
.reckoning-details > summary { padding: 2px 0; color: var(--ink-2); }
.reckoning-details[open]:not([data-motion="closing"]) > summary { color: var(--ink); }
.reckoning-body { --row: 26px; --thick: 6px; display: grid; gap: 14px; min-width: min(320px, 100%); padding: 12px 0 2px; }
.reckoning-parts { display: grid; grid-template-columns: max-content minmax(96px, 1fr) max-content; column-gap: 14px; margin: 0; }
.reckoning-step { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; min-height: var(--row); }
.reckoning-step > dt { color: var(--ink-2); white-space: nowrap; }
.reckoning-step > dd { margin: 0; }
.reckoning-step > dd:not(.reckoning-line) { grid-column: 3; grid-row: 1; text-align: right; color: var(--ink-2); white-space: nowrap; }
.reckoning-overhead > dt, .reckoning-floor > dt, .reckoning-overhead > dd, .reckoning-floor > dd { color: var(--ink-3); }
.reckoning-line { grid-column: 2; grid-row: 1; position: relative; height: var(--thick); }
.reckoning-line > i {
  position: absolute; inset: 0 auto 0 var(--a); width: max(3px, calc(var(--b) - var(--a)));
  border-radius: var(--radius-cap); background: color-mix(in oklab, var(--ink) 52%, var(--paper));
}
.reckoning-overhead .reckoning-line > i {
  background: repeating-linear-gradient(-45deg, var(--ink-3) 0 1.25px, transparent 1.25px 3.5px);
  box-shadow: inset 0 0 0 1px var(--ink-3);
}
.reckoning-floor .reckoning-line > i { background: none; box-shadow: none; border: 1px dashed var(--ink-3); }
/* the join with the line above: where a part starts, where the overhead (or the saving) ends */
.reckoning-line::before {
  content: ""; position: absolute; left: var(--a); bottom: 100%; height: calc(var(--row) - var(--thick) + var(--lift, 0px));
  border-left: 1px dotted var(--ink-4);
}
:is(.reckoning-overhead, .reckoning-total) > .reckoning-line::before { left: calc(var(--b) - 1px); }
.reckoning-step:first-child > .reckoning-line::before { display: none; }
.reckoning-total { --lift: 9px; position: relative; margin-top: 9px; }
.reckoning-total::before { content: ""; position: absolute; inset: -5px 0 auto; border-top: 1px solid var(--rule); transform-origin: left; }
.reckoning-total > dt, .reckoning-total > dd:not(.reckoning-line) { color: var(--ink); font-weight: 600; }
.reckoning-total .reckoning-line > i { background: var(--ink); }
.reckoning-line > i.reckoning-zero { inset: -3px auto -3px calc(var(--a) - 1px); width: 2px; border-radius: 0; }
.reckoning-base { display: grid; gap: 7px; color: var(--ink-3); }
.reckoning-base > p { margin: 0; }
.reckoning-meter { position: relative; height: 4px; border-radius: var(--radius-cap); background: var(--paper-3); overflow: hidden; }
.reckoning-meter > i { position: absolute; inset: 0 auto 0 0; width: max(3px, calc(var(--share) * 100%)); border-radius: var(--radius-cap); background: var(--ink); }
/* a phone keeps the three columns, closer: a label that does not fit breaks onto a second line */
@media (max-width: 599px) {
  .reckoning-body { min-width: 0; }
  .reckoning-parts { grid-template-columns: minmax(0, max-content) minmax(72px, 1fr) max-content; column-gap: 10px; }
  .reckoning-step > dt { white-space: normal; }
}

/* opening: the rows rise one after another, each line draws from its join, the hairline and the meter last */
.reckoning-details[data-motion="opening"] .reckoning-step { animation: disclose-rise 420ms var(--ease-out) both; animation-delay: calc(var(--i) * 75ms + 40ms); }
.reckoning-details[data-motion="opening"] .reckoning-line > i { animation: reckon-draw 640ms var(--ease-out) both; animation-delay: calc(var(--i) * 75ms + 120ms); }
.reckoning-details[data-motion="opening"] :is(.reckoning-overhead, .reckoning-total) .reckoning-line > i { animation-name: reckon-draw-back; }
.reckoning-details[data-motion="opening"] .reckoning-line::before { animation: reckon-appear 240ms ease-out both; animation-delay: calc(var(--i) * 75ms + 80ms); }
.reckoning-details[data-motion="opening"] .reckoning-total::before { animation: reckon-rule 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 75ms); }
.reckoning-details[data-motion="opening"] .reckoning-total .reckoning-line > i { animation-name: reckon-draw; animation-duration: 760ms; }
.reckoning-details[data-motion="opening"] .reckoning-line > i.reckoning-zero { animation-name: reckon-appear; animation-duration: 300ms; }
.reckoning-details[data-motion="opening"] .reckoning-base { animation: disclose-rise 420ms var(--ease-out) both; animation-delay: calc(var(--i) * 75ms + 40ms); }
.reckoning-details[data-motion="opening"] .reckoning-meter > i { animation: reckon-draw 900ms var(--ease-out) both; animation-delay: calc(var(--i) * 75ms + 160ms); }
@keyframes reckon-draw { from { clip-path: inset(0 100% 0 0 round 99px); } to { clip-path: inset(0 0 0 0 round 99px); } }
@keyframes reckon-draw-back { from { clip-path: inset(0 0 0 100% round 99px); } to { clip-path: inset(0 0 0 0 round 99px); } }
@keyframes reckon-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes reckon-appear { from { opacity: 0; } }
@keyframes reckon-rule { from { transform: scaleX(0); } }

/* a page's head: the details float under their summary, right edges together, over what follows */
.reckoning-details[data-float] { position: relative; }
.reckoning-details[data-float] > .reckoning-body {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 420px; max-width: calc(100vw - 2 * var(--gutter));
  padding: 16px 20px 16px; border: 1px solid var(--rule); border-radius: var(--radius-float); background: var(--raised);
  box-shadow: var(--shadow); transform-origin: 100% 0;
}
.reckoning-details[data-float][data-motion="opening"] > .reckoning-body { animation: float-in 300ms var(--ease-out) both; }
.reckoning-details[data-float][data-motion="closing"] > .reckoning-body { opacity: 1; transition: none; animation: float-out 160ms ease-in both; }
@keyframes float-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes float-out { to { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (max-width: 599px) {
  .reckoning[data-float] { display: grid; }
  .reckoning-details[data-float] > .reckoning-body {
    position: static; width: auto; max-width: none; padding: 12px 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none;
  }
}

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

/* One control height: buttons, fields and segmented controls are --control-h tall (40px below 900px). A button is
   its word: no glyph rides beside it. The primary one is ink. Only a button inside a table row is smaller. */
.btn, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--control-h); padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--edge); background: var(--paper); color: var(--ink);
  font-size: 13.5px; font-weight: 550; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background var(--speed) ease-out, border-color var(--speed) ease-out, color var(--speed) ease-out;
}
.btn > svg.icon { display: none; }
@media (hover: hover) { .btn:hover:not(:disabled) { background: var(--paper-2); border-color: var(--ink-2); text-decoration: none; color: var(--ink); } }
.btn:disabled, .icon-btn:disabled { opacity: .45; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (hover: hover) { .btn-primary:hover:not(:disabled) { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); } }
.btn-danger { color: var(--bad); }
@media (hover: hover) { .btn-danger:hover:not(:disabled) { color: var(--bad); border-color: var(--bad); background: var(--paper); } }
.btn-ghost { border-color: transparent; background: transparent; }
@media (hover: hover) { .btn-ghost:hover:not(:disabled) { background: var(--paper-2); border-color: transparent; } }
.btn-sm { height: 26px; padding: 0 10px; font-size: 12.5px; }
.icon-btn { width: var(--control-h); padding: 0; border-color: transparent; background: transparent; color: var(--ink-2); }
@media (hover: hover) { .icon-btn:hover:not(:disabled) { background: var(--paper-2); color: var(--ink); } }
/* Copy is a word, and says Copied for a moment. */
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none; height: 26px; padding: 0 8px;
  border: 0; border-radius: var(--radius); background: none; color: var(--ink-3); font-size: 12.5px; font-weight: 550;
}
@media (hover: hover) { .copy-btn:hover { color: var(--ink); background: var(--paper-3); } }
.copy-btn[data-state="done"] { color: var(--ink); }
.copy-btn[data-state="failed"] { color: var(--bad); }
/* An ID to copy (ui.js copyId): the ID is the control, and reads as the ID did. The pointer on it underlines it,
   dotted, where a link's line is whole (always, where nothing hovers: a finger has to be told). Pressed, it reads
   Copied where the ID stands, on the ID's own lines, so nothing beside it moves. */
.copy-id {
  position: relative; display: inline-block; max-width: 100%; min-width: 0; padding: 0; border: 0; border-radius: var(--radius);
  background: none; color: inherit; font: inherit; text-align: left; vertical-align: baseline; overflow-wrap: anywhere;
  text-decoration: underline dotted transparent; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
@media (hover: hover) { .copy-id:hover { text-decoration-color: var(--ink-3); } }
@media (hover: none) {
  .copy-id { text-decoration-color: var(--ink-4); }
  .copy-id::after { content: ""; position: absolute; inset: -10px -4px; }  /* a finger's reach past its edges */
}
.copy-id-said {
  position: absolute; left: 0; top: 0; display: none; font-family: var(--font-sans); font-size: 12.5px; font-weight: 550;
  white-space: nowrap; color: var(--ink);
}
.copy-id[data-state] { text-decoration-color: transparent; }
.copy-id[data-state] > .copy-id-text { visibility: hidden; }
.copy-id[data-state] > .copy-id-said { display: block; }
.copy-id[data-state="failed"] > .copy-id-said { color: var(--bad); }
/* A word of Fluid's own (ui.js gloss): the word is the control and reads as the words around it, with a dotted line
   under it that says there is more to it. What it means stands in a small card under it (over it near the bottom
   edge) while the pointer or the keyboard is on it, and after a press: one sentence, in what floats' surface, as the
   chart's readout is. A heading that sorts (table(), a column's gloss) wears the same line under its word. */
.gloss {
  display: inline; padding: 0; border: 0; border-radius: var(--radius); background: none; color: inherit; font: inherit;
  font-stretch: inherit; text-align: inherit; vertical-align: baseline; cursor: help;
  text-decoration: underline dotted var(--ink-4); text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.th-btn[data-gloss] { cursor: help; }
.th-btn[data-gloss] > span { text-decoration: underline dotted var(--ink-4); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) {
  .gloss:hover, .th-btn[data-gloss]:hover > span { text-decoration-color: var(--ink-2); }
}
.gloss:focus-visible, .th-btn[data-gloss]:focus-visible > span { text-decoration-color: var(--ink-2); }
@media (hover: none) {
  .gloss { position: relative; }
  .gloss::after { content: ""; position: absolute; inset: -10px -4px; }  /* a finger's reach past its edges */
}
.gloss-tip {
  position: fixed; z-index: 70; left: 8px; top: 8px; width: max-content; max-width: min(300px, calc(100vw - 16px));
  padding: 8px 11px 9px; border: 1px solid var(--rule-2); border-radius: var(--radius-float); background: var(--raised);
  box-shadow: var(--shadow); color: var(--ink); font: 400 12.5px/1.5 var(--font-sans); font-stretch: normal;
  text-align: left; white-space: normal; overflow-wrap: break-word; pointer-events: none;
  animation: gloss-in 140ms var(--ease-out) both;
}
@keyframes gloss-in { from { opacity: 0; transform: translateY(-3px); } }
.btn-link { background: none; border: 0; padding: 0; height: auto; color: var(--ink); font-weight: 550; text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
@media (hover: hover) { .btn-link:hover { text-decoration-color: var(--ink); } }

/* A field is a line to write on: the line is --edge (3:1), ink and twice as thick while it has the keyboard. */
input[type="text"], input[type="password"], input[type="number"], input[type="search"], input[type="email"],
input[type="url"], select, .input {
  display: block; width: 100%; height: var(--control-h); padding: 0 2px;
  border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; background: transparent; color: var(--ink);
  font-size: 14px; box-shadow: none;
  transition: box-shadow var(--speed) ease-out, border-color var(--speed) ease-out;
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
/* a number is typed: no spinner buttons in the field */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
select { appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer; }
/* A select wears the stroked chevron a sorted column does (the console's pages wrap each in .pick with icons.js's
   chevron). In a form it sits on its line as a field does; in a toolbar (.pick-words) it is its words alone, no line
   under them, the chosen one in ink. */
.pick { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.pick > .icon { position: absolute; right: 2px; top: 50%; margin-top: -7px; pointer-events: none; color: var(--ink-2); }
.pick-words select { width: auto; min-width: 0; max-width: 240px; padding: 0 22px 0 0; border-bottom: 0; color: var(--ink); font-weight: 550; text-overflow: ellipsis; field-sizing: content; }
.pick-words select:focus { box-shadow: none; }
.pick-words select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--radius); }
textarea {
  display: block; width: 100%; min-height: 96px; padding: 8px 10px; resize: vertical; line-height: 1.5;
  border: 1px solid var(--edge); border-radius: var(--radius); background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: 12.5px;
}
@media (hover: hover) { input:hover:not(:disabled):not(:focus), select:hover:not(:disabled):not(:focus), textarea:hover:not(:disabled):not(:focus) { border-color: var(--ink-2); } }
input:focus, select:focus { border-color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); outline: none; }
textarea:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus { border-color: var(--bad); box-shadow: inset 0 -1px 0 var(--bad); }
textarea[aria-invalid="true"]:focus { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
/* a field that keeps what is stored says so in words, not in the face of the value it would take */
input.mono.stored::placeholder { font-family: var(--font-sans); }
input:disabled, select:disabled, textarea:disabled { color: var(--ink-3); border-bottom-style: dashed; border-color: var(--rule-2); cursor: default; }
input[type="checkbox"], input[type="radio"] { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); flex: none; }
/* a checkbox is a box of the outline's colour, the checked one ink with a tick of paper, in either theme; the keyboard
   that reaches it or a radio rings it in ink */
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; border: 1.5px solid var(--edge); border-radius: var(--radius); background: transparent;
  display: inline-grid; place-content: center; cursor: pointer;
}
input[type="checkbox"]::before {
  content: ""; width: 7px; height: 3.5px; margin-top: -2px; border: solid var(--paper); border-width: 0 0 2px 2px;
  transform: rotate(-45deg); visibility: hidden;
}
input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
input[type="checkbox"]:checked::before { visibility: visible; }
@media (hover: hover) { input[type="checkbox"]:hover:not(:disabled):not(:checked) { border-color: var(--ink-2); } }
input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (forced-colors: active) {
  input[type="checkbox"], input[type="radio"] { forced-color-adjust: none; border-color: CanvasText; }
  input[type="checkbox"]:checked { background: CanvasText; }
  input[type="checkbox"]::before { border-color: Canvas; }
  input[type="radio"]:checked { background: radial-gradient(circle, CanvasText 0 3.4px, transparent 3.9px); }
}
/* a radio is a ring of the outline's colour, the one chosen a ring of ink with an ink disc in it, in either theme */
input[type="radio"] {
  -webkit-appearance: none; appearance: none; border: 1.5px solid var(--edge); border-radius: 50%; background: transparent;
  display: inline-grid; place-content: center; cursor: pointer;
}
input[type="radio"]:checked { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 3.4px, transparent 3.9px); }
@media (hover: hover) { input[type="radio"]:hover:not(:disabled):not(:checked) { border-color: var(--ink-2); } }
input[type="radio"]:disabled { opacity: .45; cursor: default; }
.mono-input, input.mono { font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 899px) {
  /* 16px text in a field keeps a phone's browser from zooming the page when the field takes focus */
  input[type="text"], input[type="password"], input[type="number"], input[type="search"], input[type="email"],
  input[type="url"], select, textarea, .input, .mono-input, input.mono { font-size: 16px; }
  input[type="text"], input[type="password"], input[type="number"], input[type="search"], input[type="email"],
  input[type="url"], select, .input { height: 40px; }
}
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
/* Search is a field like any other: no box, no magnifying glass; / reaches it from anywhere on the page. */
.search-box { position: relative; }
.search-box > svg.icon { display: none; }
/* A number with its unit after it: [ 20 ] % */
.unit-input { display: inline-flex; align-items: baseline; gap: 6px; }
.unit-input input { width: 96px; }
.unit-input .unit { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }

/* A word that is on or off where it acts at once (a log's Follow): pressed, it is in ink with the short rule the
   chosen word of a segmented choice wears; not pressed, quiet. No track, no knob. */
.word-toggle {
  position: relative; display: inline-flex; align-items: center; height: var(--control-h); padding: 0 6px; border: 0;
  border-radius: var(--radius); background: none; color: var(--ink-3); font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.word-toggle::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 1px; height: 2px; background: transparent; }
@media (hover: hover) { .word-toggle:hover { color: var(--ink); } }
.word-toggle[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.word-toggle[aria-pressed="true"]::after { background: var(--ink); }
.word-toggle:focus-visible { outline-offset: -2px; }

/* fields: a label over its line; the row layout puts the label in a column on the left and the note in a margin on
   the right (the connect sheet), folding the note under the field where the form is narrow. */
.field { display: grid; gap: 4px; }
.field > label, .field-label { font-size: 13px; font-weight: 550; color: var(--ink); }
.field-control { display: grid; gap: 4px; min-width: 0; }
.field-control > .segmented { justify-self: start; }
.field-row { display: grid; gap: 4px; min-width: 0; }
.field[data-layout="row"] { grid-template-columns: 136px minmax(0, 1fr); align-items: start; gap: 6px 18px; container-type: inline-size; }
.field[data-layout="row"] > label, .field[data-layout="row"] > .field-label { padding-top: 7px; }
.field[data-layout="row"] .field-control { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); column-gap: 18px; align-items: start; }
.field[data-layout="row"] .field-control > :not(.help) { grid-column: 1; }
.field[data-layout="row"] .field-control > .help { grid-column: 2; grid-row: 1 / span 3; padding-top: 6px; }
@container (max-width: 520px) {
  .field[data-layout="row"] .field-control { grid-template-columns: minmax(0, 1fr); }
  .field[data-layout="row"] .field-control > .help { grid-column: 1; grid-row: auto; padding-top: 0; }
}
.help { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.field-error { font-size: 12.5px; color: var(--bad); }
.form { display: grid; gap: 18px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* State: the word, with the glyph a path's end uses for it (a disc live, a ring held or on its way, a square stopped, a
   cross failed). Live states in full ink, attention in its warm tone, the rest quiet. Never a pill. */
.glyph { flex: none; display: inline-block; overflow: visible; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink); white-space: nowrap; line-height: 1.2; }
.badge .glyph { fill: currentColor; stroke: currentColor; }
.badge[data-tone="ok"][data-glyph="disc"] { font-weight: 600; }
.badge[data-tone="accent"] { font-weight: 550; }
.badge[data-tone="neutral"] { color: var(--ink-3); }
.badge[data-tone="warn"] { color: var(--warn); font-weight: 550; }
.badge[data-tone="bad"] { color: var(--bad); font-weight: 550; }
.badge[data-glyph="disc"] .glyph circle, .badge[data-glyph="square"] .glyph rect { stroke: none; }
.badge[data-glyph="ring"] .glyph circle, .glyph[data-tone] circle.ring { fill: none; }
.glyph[data-tone] { fill: currentColor; stroke: currentColor; }
.glyph[data-tone="ok"] { color: var(--ink); }
.glyph[data-tone="accent"] { color: var(--ink-2); }
.glyph[data-tone="warn"] { color: var(--warn); }
.glyph[data-tone="bad"] { color: var(--bad); }
.dot { display: none; }

/* A plain, quiet meter for a share of something (a cap, a budget, a share of the spend, what the run would have
   cost): a hairline track and an ink part. It is not a run's path, so it has none of the path's ends. */
.meter, .bar {
  display: inline-block; position: relative; flex: none; width: 72px; height: 4px; vertical-align: middle;
  background: var(--rule-2);
}
.meter > i, .bar > i { position: absolute; left: 0; top: 0; bottom: 0; display: block; width: var(--w, 0%); background: var(--ink-2); }
.meter[data-tone="warn"] > i, .bar[data-tone="warn"] > i { background: var(--warn); }
.meter[data-tone="bad"] > i, .bar[data-tone="bad"] > i { background: var(--bad); }
.meter[data-tone="muted"] > i, .bar[data-tone="muted"] > i { background: var(--ink-4); }
.progress { display: inline-flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; }
.progress .mono { font-family: var(--font-sans); font-size: 13px; }

/* A notice is a sentence on the grid between two hairlines, its tone's glyph before it; no box, no fill. Over a
   group that opens on a rule of ink, that rule ends it: two rules with nothing between them would read as a row. */
.notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; position: relative;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink);
}
.notice:has(+ :is(.panel, .conn-list)) { border-bottom: 0; padding-bottom: 0; }
.notice > .glyph { margin-top: 5px; }
.notice-text { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.notice-actions { display: flex; gap: 8px; flex: none; align-self: center; }
.notice .notice-actions .btn-sm { height: 26px; }

/* A payment method before the first job (payment-method.js). The notice a page and the Connect dialog show while
   jobs wait for one is a notice as any, its action at its end; a refusal of the action is said in the sentence's
   place, after it. The control that opens the payment provider's page reads quieter while the page is asked for,
   and takes no press. Beside a command that would start a job: one line under it, its ring before it. */
.method-notice .notice-text { text-wrap: pretty; }
.method-notice .method-refused { color: var(--bad); }
.method-notice .method-refused[hidden] { display: none; }
.method-link[aria-busy="true"] { cursor: progress; }
.method-link[aria-busy="true"] > span:first-child { opacity: .6; }
.method-beside { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.method-beside > .glyph { flex: none; color: var(--warn); transform: translateY(1px); }
/* in the Connect dialog the notice has the dialog's width, and its action goes under the sentence where the two do
   not fit on a line */
dialog .method-notice { flex-wrap: wrap; row-gap: 8px; }
dialog .method-notice .notice-text { flex: 1 1 240px; }
@media (max-width: 599px) {
  .method-notice { flex-wrap: wrap; row-gap: 8px; }
  .method-notice .notice-text { flex: 1 1 calc(100% - 20px); }
  .method-notice .notice-actions { margin-left: 20px; }
}

/* An empty place: one sentence where the content would be, on the grid's left edge, its action after it. A place
   still waiting for its first answer says so, and, once the gateway cannot be reached, why it still waits. */
.empty { padding: 14px 0; color: var(--ink-2); }
.loading { display: flex; align-items: center; gap: 10px; min-height: 48px; }
/* A short piece of ink travels along a track, like the run's path. Its words remain still and readable. */
.loading-track { position: relative; display: inline-block; flex: none; width: 36px; height: 12px; color: var(--ink-2); }
.loading-track::before, .loading-track::after {
  content: ""; position: absolute; left: 0; top: 5px; height: 2px; border-radius: var(--radius-cap);
}
.loading-track::before { width: 36px; background: var(--rule-2); }
.loading-track::after { width: 12px; background: currentColor; animation: query-travel 1.2s ease-in-out infinite alternate; }
@keyframes query-travel { from { transform: translateX(0); } to { transform: translateX(24px); } }
.loading[hidden] .loading-track::after { animation: none; }
/* A wait that says nothing unless it lasts: no words, and the track only after a beat, so a wait over before anyone
   would notice shows nothing (the shell before it knows the session). Unreachable, it speaks at once (app.js). */
.loading[data-loading="quiet"] { opacity: 0; animation: quiet-wait .25s ease-out .6s both; }
@keyframes quiet-wait { from { opacity: 0; } to { opacity: 1; } }
.modal-working { padding: 0; min-height: 0; font-size: 12.5px; gap: 7px; }
.modal-working .loading-track { width: 24px; }
.modal-working .loading-track::before { width: 24px; }
.modal-working .loading-track::after { width: 8px; animation-name: action-travel; }
@keyframes action-travel { from { transform: translateX(0); } to { transform: translateX(16px); } }
.query-feedback { position: relative; }
.query-feedback::after {
  content: ""; position: absolute; inset: auto 0 -5px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ink-2), transparent); background-size: 35% 100%;
  background-repeat: no-repeat; animation: query-sweep 1.5s ease-in-out infinite;
}
@keyframes query-sweep { from { background-position: -55% 0; } to { background-position: 155% 0; } }
.query-caption { min-height: 20px; padding: 0; font-size: 12.5px; }
.loading[data-loading="unreachable"] { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.loading[data-loading="unreachable"] .glyph { color: var(--warn); fill: none; stroke: currentColor; }
.panel .empty { padding: 12px 0; }
.empty-action { margin-top: 10px; }
/* A read that failed with nothing yet to show (ui.js readFailed), where the content would be: what could not be
   read in ink, its cross before it; the gateway's own sentence under it, quiet; then Try again and the way back. */
.read-failed { display: grid; justify-items: start; gap: 3px; padding: 14px 0; }
.read-failed[hidden] { display: none; }
.read-failed-said { display: flex; align-items: baseline; gap: 10px; color: var(--ink); font-weight: 550; line-height: 1.5; text-wrap: pretty; }
.read-failed-said > .glyph { transform: translateY(-1px); }
.read-failed-why { padding-left: 20px; color: var(--ink-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.read-failed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; padding-left: 20px; }
.read-failed-back { font-weight: 550; }
.read-failed [aria-busy="true"] { cursor: progress; }
.read-failed [aria-busy="true"] > span { opacity: .6; }
.panel .read-failed { padding: 12px 0; }

/* A list of facts: its keys in the label cut, its values in the text face. */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); white-space: nowrap; font-stretch: var(--label-stretch); font-weight: 500; }
.kv dd { min-width: 0; overflow-wrap: anywhere; }

/* A command to copy is a line of mono set as a shell's: a quiet "$" before it (not copied; a wrapped line hangs
   after it), the line it sits on a hairline, as a field's is, and its Copy at that line's right end, so the commands
   of a page end on one edge. No box, no bar, no fill (a fill is only the log's). Word by word, so a narrow place
   wraps between words and never inside a flag; a path breaks only before one of its slashes. A value that is not a
   command (a link, a token) has no "$" and may break anywhere. */
.cmd-box {
  display: flex; width: 100%; align-items: baseline; gap: 4px 16px; min-width: 0;
  padding: 1px 0; border-bottom: 1px solid var(--rule-2); font-family: var(--font-mono); font-size: 12.5px;
}
.cmd-box code { flex: 1 1 auto; min-width: 0; background: none; border: 0; padding: 4px 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.cmd-box code[data-prompt] { padding-left: 1.3em; text-indent: -1.3em; }
.cmd-box code[data-prompt]::before { content: "$"; display: inline-block; width: 1.3em; text-indent: 0; color: var(--ink-3); }
.cmd-word, .cmd-part { white-space: nowrap; }
.cmd-word.cmd-path { white-space: normal; }
/* a code and the word after it (PORTAL_CODE=pi_... sh) travel as one box to the next line; only a box wider than the
   line breaks, between its atoms (never beside a hyphen, never before the word after it) */
.cmd-unit { display: inline-block; max-width: 100%; text-indent: 0; white-space: normal; overflow-wrap: normal; }
.cmd-atom { white-space: pre; }
/* a command that cannot run yet (a name still to be typed): quiet, its Copy off */
.cmd-box[data-off] code { color: var(--ink-3); }
.cmd-box[data-off] .copy-btn { opacity: .45; }
.cmd-box .copy-btn { flex: none; align-self: baseline; height: 24px; margin-right: -4px; padding: 0 4px; font-family: var(--font-sans); }
.run-agent-setup { display: grid; gap: 16px; min-width: 0; }
.agent-setup-prompt { display: grid; gap: 12px; }
.prompt-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.prompt-actions > .btn {
  min-width: 0; min-height: 44px; height: auto; margin: 0; padding: 8px; font-size: 13px;
  font-family: var(--font-sans); white-space: normal; line-height: 1.25;
}
.prompt-actions > .btn:only-child { grid-column: 1 / -1; }
.prompt-actions > .copy-btn {
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
}
.agent-setup-prompt code { white-space: pre-wrap; max-height: 300px; overflow-y: auto; }
.agent-setup-prompt .cmd-word { white-space: pre-wrap; }

/* tabs: words, the chosen one in ink with a short rule of ink under it */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
/* A strip wider than the screen fades at the edge it continues past (ui.js sets data-overflow). */
.tabs[data-overflow="end"] { -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent); mask-image: linear-gradient(to right, black calc(100% - 32px), transparent); }
.tabs[data-overflow="start"] { -webkit-mask-image: linear-gradient(to left, black calc(100% - 32px), transparent); mask-image: linear-gradient(to left, black calc(100% - 32px), transparent); }
.tabs[data-overflow="both"] { -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent); }
.tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; height: 40px; margin-bottom: -1px; position: relative;
  border: 0; background: none; color: var(--ink-3); font-size: 14.5px; font-weight: 500; text-decoration: none;
  white-space: nowrap; border-radius: 0; flex: none;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
@media (hover: hover) { .tab:hover { color: var(--ink); text-decoration: none; } }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-selected="true"]::after { background: var(--ink); }
.tab:focus-visible { outline-offset: -2px; }
.tab-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* segmented: a choice of one, as words; the chosen one in ink with the rule under it */
.segmented {
  display: inline-flex; gap: 4px; padding: 0; border: 0; background: none; max-width: 100%; overflow-x: auto;
  height: var(--control-h); scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented[data-overflow="end"] { -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent); mask-image: linear-gradient(to right, black calc(100% - 32px), transparent); }
.segmented[data-overflow="start"] { -webkit-mask-image: linear-gradient(to left, black calc(100% - 32px), transparent); mask-image: linear-gradient(to left, black calc(100% - 32px), transparent); }
.segmented[data-overflow="both"] { -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent); }
.segmented button {
  height: var(--control-h); padding: 0 8px; border: 0; border-radius: var(--radius); background: none; color: var(--ink-3);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.segmented button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 1px; height: 2px; background: transparent; }
@media (hover: hover) { .segmented button:hover { color: var(--ink); } }
.segmented button[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.segmented button[aria-checked="true"]::after { background: var(--ink); }
.segmented button:focus-visible { outline-offset: -2px; }  /* inside the control's own scroll box */
.seg-count { font-size: 12px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .segmented { height: auto; } }

/* ---------------------------------------------------------------- tables */

/* A ledger: the head (labels in the condensed cut) over a rule of ink, the rows on hairlines, no box. Figures are
   the text face's tabular digits, right-aligned. */
.table-wrap { border: 0; overflow: auto; background: none; min-width: 0; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table caption.caption { text-align: left; padding: 8px 0; color: var(--ink-2); caption-side: top; }
.table th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; font-weight: 500; font-size: 12.5px; font-stretch: var(--label-stretch); color: var(--ink-3);
  white-space: nowrap; padding: 0 12px 6px; height: 34px; line-height: 22px; background: var(--paper);
  border-bottom: 1px solid var(--ink); vertical-align: bottom;
}
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table th.num { text-align: right; }
.th-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; margin: 0 -4px; padding: 0 4px;
  border: 0; background: none; color: inherit; font: inherit; font-weight: 500; border-radius: var(--radius);
}
/* The sort glyph shows on the column sorted by, and on another one only under the pointer or the keyboard. It hangs
   outside its heading's words (before a figures' heading, after a words' one), so every heading ends where its
   column's figures do. */
.th-btn { position: relative; }
.th-btn .icon { position: absolute; top: 50%; margin-top: -6px; left: calc(100% + 1px); color: var(--ink-3); opacity: 0; transition: opacity var(--speed) ease-out; }
th.num .th-btn .icon { left: auto; right: calc(100% + 1px); }
.th-btn:focus-visible .icon { opacity: 1; }
@media (hover: hover) { .th-btn:hover .icon { opacity: 1; } }
@media (hover: hover) { .th-btn:hover { color: var(--ink); } }
th[aria-sort="ascending"] .th-btn, th[aria-sort="descending"] .th-btn { color: var(--ink); font-weight: 600; }
th[aria-sort="ascending"] .icon, th[aria-sort="descending"] .icon { color: var(--ink); opacity: 1; }
.table td {
  padding: 0 12px; height: 40px; border-bottom: 1px solid var(--rule); vertical-align: middle; white-space: nowrap;
}
/* A figure in a figures' column is the text face, even where a page wrapped it in .mono. */
.table td.num, .table td.num .mono { font-family: var(--font-sans); font-size: 13.5px; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
@media (hover: hover) { .table tbody tr:hover td { background: var(--paper-2); } }
.table tr.row-go { cursor: pointer; }
.table tr.row-go:focus-within td { background: var(--paper-2); }
.table td.wrap { white-space: normal; min-width: 240px; overflow-wrap: anywhere; }
.table td.mono { font-family: var(--font-mono); font-size: 12.5px; }
.table .row-link { color: var(--ink); font-weight: 550; text-decoration: none; }
@media (hover: hover) { .table .row-link:hover { text-decoration: underline; text-decoration-color: var(--ink-4); } }
/* The row the keyboard is on (j, k, Tab) lies between two rules of ink across its whole width, over its wash: never
   a box around its first cell, which would read as a field. */
.table tr:has(> td .row-link:focus-visible) > td { box-shadow: inset 0 2px 0 var(--ink), inset 0 -2px 0 var(--ink); }
.table tr:has(> td .row-link:focus-visible) .row-link:focus-visible { outline: none; }
.table tr.group-row th, .table tr.group-row td {
  background: var(--paper); font-weight: 600; color: var(--ink); height: 48px; position: static; font-stretch: 100%;
  font-size: 13.5px; border-bottom: 1px solid var(--edge); padding-top: 16px; vertical-align: middle; padding-bottom: 4px;
}
.table tr.group-row td { font-weight: 500; }
@media (hover: hover) { .table tr.group-row:hover td { background: var(--paper); } }
.group-toggle {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; margin-left: -4px; padding: 0 4px;
  border: 0; background: none; color: inherit; font: inherit; font-weight: 600; font-size: 14.5px; border-radius: var(--radius);
}
.group-toggle .icon { color: var(--ink-3); transition: transform var(--speed) ease-out; }
.group-toggle[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.group-count { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.table tr.in-group > td:first-child { padding-left: 22px; }
/* Keep collapsed groups in the table's column sizing without occupying any row height. */
.table tr[data-collapsed] { visibility: collapse; }
.table-empty { padding: 16px 0; color: var(--ink-2); border-top: 1px solid var(--ink); }
/* under a section's title, whose own rule of ink is above it, an empty table's sentence needs no rule of its own */
.panel > .panel-head + .table-wrap .table-empty, .panel > .panel-head + * > .table-wrap .table-empty { border-top: 0; padding-top: 4px; }
.table-empty .empty { padding: 0; }
.table.is-empty thead, .table.is-empty tbody { display: none; }
.table-foot { font-size: 12.5px; color: var(--ink-3); }
.cell-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.cell-stack { display: grid; line-height: 1.35; }
.table td:has(> .cell-stack) { padding-top: 6px; padding-bottom: 6px; }
.cell-fold { display: none; }
.zero { color: var(--ink-3); }
/* Row actions sit at the row's end, quiet until the row is pointed at or reached by the keyboard. */
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
/* Below 600px a table keeps its identifying column and its money; the rest folds under the first cell, each fact its
   label (the label cut) and its value, kept whole, the facts apart on a line that wraps between them. The line is
   the text face whatever cell carries it; an id or a path in it keeps its mono, and a path may break before a
   slash. */
.cell-fact { display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; white-space: nowrap; }
.facts { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 0; max-width: 100%; }
.cell-fact-label { color: var(--ink-3); font-stretch: var(--label-stretch); font-weight: 500; white-space: nowrap; }
.cell-fact .mono { font-size: 12px; }
.cell-fact:has(.cell-path) { white-space: normal; }
.cell-path { overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .table td.col-fold, .table th.col-fold { display: none; }
  .cell-fold {
    display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 1px; margin-top: 2px;
    font: 400 12.5px/1.45 var(--font-sans); color: var(--ink-2); white-space: normal;
  }
  .table td:has(.cell-fold) { padding-top: 7px; padding-bottom: 7px; height: auto; }
}

/* ---------------------------------------------------------------- the path (ui.js) */

/* A run's line: its machines' segments in their providers' colours with round ends, an interchange (a station: a
   ring on the line) where it moved, the head's glyph at how far it got, a dotted track for what is left. The same
   strokes at every size. A run that ended is drawn thin and quiet; the one that runs now is the strongest line. */
.path { display: block; overflow: visible; flex: none; }
.path-seg { stroke-width: 3; stroke-linecap: round; fill: none; }
.path-seg-unknown { stroke: var(--ink-4); }
.path-station { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.path-track { stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 0 4; stroke-linecap: round; fill: none; }
.path-disc { stroke: var(--paper); stroke-width: 2; paint-order: stroke; }
.path-ring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.75; }
.path-head-park .path-ring, .path-head-unseen .path-ring, .path-head-capacity .path-ring { stroke: var(--warn); }
.capacity-details { margin-top: 8px; }
.capacity-details summary { cursor: pointer; color: var(--ink-2); font-size: 12.5px; }
.capacity-details p { margin-top: 8px; font-size: 12px; overflow-wrap: anywhere; }
.path-head-wait .path-ring { stroke: var(--ink-3); }
.path-square { fill: var(--ink-2); }
.path-cross { stroke: var(--bad); stroke-width: 2; stroke-linecap: round; fill: none; }
.path[data-quiet] .path-seg { stroke-width: 1.75; }
.path[data-quiet] .path-station { stroke: var(--ink-3); stroke-width: 1.25; }
.path[data-quiet] .path-track { stroke-width: 1.25; }
/* a row whose machines are not known yet: the dotted track alone, never a line that would pass for a finished run's */
.path-pending { stroke-dasharray: 0 4; }
.path-row { display: inline-flex; align-items: center; min-height: 14px; vertical-align: middle; }
/* in a row under the pointer, the stations and rings are filled with the row's own colour (a disc keeps its own) */
tr.row-go:focus-within .path-station, tr.row-go:focus-within .path-ring { fill: var(--paper-2); }
@media (hover: hover) { tr:hover .path-station, tr:hover .path-ring { fill: var(--paper-2); } }
tr.row-go:focus-within .path-disc { stroke: var(--paper-2); }
@media (hover: hover) { tr:hover .path-disc { stroke: var(--paper-2); } }

/* The path under a run's title: each machine named under its segment with its price and its time there (the split
   of the line is time), how far the run got over its head (the length of the line is the share done). */
.path-view { position: relative; min-width: 0; padding-bottom: 24px; }
.path-full .path-seg { stroke-width: 4; }
.path-full .path-station { stroke-width: 2; }
.path-full .path-track { stroke-width: 2; stroke-dasharray: 0 5; }
.path-names { position: absolute; left: 0; right: 0; top: 24px; height: 18px; }
.path-name, .path-at {
  position: absolute; top: 0; font-size: 12.5px; line-height: 18px; color: var(--ink-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; font-stretch: var(--label-stretch); font-weight: 550;
}
.path-name { width: max-content; }
.path-name-sub { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.path-name-sub > span { margin-left: 8px; }  /* a machine's price and time after its name, apart by space, no dot */
/* over the line: how far the run got, over its head, and the name of a machine too short a stretch to carry it */
.path-over { top: -44px; overflow: visible; }
.path-at { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; font-stretch: 100%; }
/* nothing reported yet is said quietly: an absence, not a figure */
.path-at.is-quiet { color: var(--ink-3); font-weight: 450; }
.path-leader { stroke: var(--ink-4); stroke-width: 1; fill: none; }

/* Short machine stretches share a numbered range; their complete facts open below the path. */
/* machines too short a stretch to name, said as a link to the list, in the names' own type: not a box */
.path-cluster {
  position: absolute; top: -3px; min-height: 24px; padding: 0; border: 0; background: none;
  color: var(--ink-3); font: 550 12.5px/18px var(--font-sans); font-stretch: var(--label-stretch);
  font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer;
  text-decoration: underline dotted var(--ink-4); text-underline-offset: 3px;
}
.path-cluster:focus-visible, .path-details > summary:focus-visible, .path-detail-row:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
@media (hover: hover) {
  .path-cluster:hover { color: var(--ink); text-decoration-color: var(--ink-3); }
  .path-details > summary:hover { color: var(--ink); background: var(--paper-2); }
}
.path-view.is-crowded { padding-bottom: 0; }
.path-details { margin-top: 34px; color: var(--ink-3); font-size: 12.5px; }
.path-details > summary { width: fit-content; padding: 3px 0; cursor: pointer; }
.path-details[open]:not([data-motion="closing"]) > summary { color: var(--ink); }
.path-detail-list { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.path-detail-row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 3px 12px;
  padding: 9px 0; border-bottom: 1px solid var(--rule); line-height: 18px;
}
.path-detail-number { grid-row: 1 / 3; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.path-detail-machine { color: var(--ink-2); font-weight: 550; overflow-wrap: anywhere; }
.path-detail-figures { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.path-detail-time { grid-column: 2 / 4; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .path-detail-row { grid-template-columns: 20px minmax(0, 1fr); gap: 3px 8px; }
  .path-detail-number { grid-row: 1 / 4; }
  .path-detail-figures { grid-column: 2; justify-content: flex-start; }
  .path-detail-time { grid-column: 2; }
}

/* the map: a lane per provider, interchanges between them, the time axis under them */
.path-map { position: relative; min-width: 0; }
.path-mapsvg { position: absolute; left: 0; top: 0; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-labels > * { pointer-events: auto; }
.map-lane { stroke: var(--rule); stroke-width: 1; }
.map-seg { stroke-width: 6; }
.map-link { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
/* a break in a stretch's line, where the program did not compute: the paper through it, then a wait's dots */
.map-gap { stroke: var(--paper); stroke-width: 8; }
.map-pause { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 5; }
.map-carried { fill: var(--ink); stroke: var(--paper); stroke-width: 2; paint-order: stroke; }
/* a state of the stretch, under the pointer or lit from its row in the list */
.map-span { fill: var(--ink); fill-opacity: 0; transition: fill-opacity 120ms ease; }
.map-span:hover, .map-span[data-lit] { fill-opacity: 0.1; }
.map-station { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.map-station-small { stroke-width: 1.75; }
.map-spur { stroke: var(--bad); stroke-width: 1.75; stroke-dasharray: 3 3; }
.map-tick { stroke: var(--ink-4); stroke-width: 1; }
.map-move-rule { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 1 3; }
.map-lane-name { position: absolute; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 16px; white-space: nowrap; }
.map-seg-name {
  position: absolute; font-size: 12.5px; line-height: 16px; color: var(--ink-2); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-stretch: var(--label-stretch); font-weight: 550;
}
.map-time, .map-move, .map-head { position: absolute; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.map-move { color: var(--ink-2); font-stretch: var(--label-stretch); font-weight: 550; }
.map-move-off { color: var(--bad); }
.map-head { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

/* A provider's line, the key a name wears where its colour matters (a list of connections, a table of spend):
   solid once it is connected, dotted while it is only available. */
.pline { display: inline-block; flex: none; width: 18px; height: 3px; border-radius: var(--radius-cap); vertical-align: middle; background: var(--c, var(--ink-3)); }
.pline[data-off] { height: 3px; background: radial-gradient(circle, var(--c, var(--ink-3)) 1.1px, transparent 1.4px) 0 50% / 4px 3px repeat-x; }
/* The key to the paths, as a transit map has one: each provider's line by its name, then the interchange of a move. */
.path-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 12.5px; color: var(--ink-3); }
.path-key-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.path-key-station { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }

/* ---------------------------------------------------------------- menus */

.menu { position: relative; display: inline-flex; }
.menu-list {
  position: absolute; top: calc(100% + 4px); z-index: 40; min-width: 184px; max-width: 320px; padding: 5px 0;
  background: var(--raised); border: 1px solid var(--rule-2); border-radius: var(--radius-float); box-shadow: var(--shadow);
}
.menu-list[data-align="end"] { right: 0; }
.menu-list[data-align="start"] { left: 0; }
.menu-list[data-side="top"] { top: auto; bottom: calc(100% + 6px); }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 14px; height: 32px;
  border: 0; border-radius: 0; background: none; color: var(--ink); text-align: left; font-size: 13.5px;
  white-space: nowrap;
}
.menu-item > svg.icon { display: none; }
a.menu-item { text-decoration: none; }  /* an item that is a link to a page outside the console: an item like the others */
/* one of a choice of several (a menuitemradio): the one in use wears a check after its words */
.menu-item > svg.menu-item-check { display: block; flex: none; margin-left: auto; color: var(--ink); }
/* an item's mark before its words (a provider's line), and its quiet second part (what a provider runs), the parts
   of a menu in columns */
.menu-item-lead { flex: none; display: inline-flex; align-items: center; width: 18px; }
.menu-item[data-sub] > .menu-item-label { flex: none; min-width: 96px; }
.menu-item-sub { color: var(--ink-3); font-size: 13px; }
.menu-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: var(--radius); }
@media (hover: hover) { .menu-item:hover:not(:disabled, [aria-disabled="true"]) { background: var(--paper-3); outline: none; } }
.menu-item:disabled, .menu-item[aria-disabled="true"] { color: var(--ink-3); }
.menu-item[aria-disabled="true"] { cursor: default; }
.menu-item[data-danger]:not([aria-disabled="true"]) { color: var(--bad); }
/* why an item cannot be pressed, under it on its words' edge: a quiet sentence that belongs to the item above it */
.menu-item-note { padding: 0 14px 8px; max-width: 280px; margin-top: -3px; }
.menu-sep { height: 1px; margin: 5px 0; background: var(--rule); }
.menu-head { display: grid; gap: 2px; padding: 7px 14px 9px; min-width: 0; }
.menu-head-title { font-weight: 600; }
/* a note in a menu is a sentence and wraps inside the menu's width, also where the menu hangs from a table's cell,
   whose text does not wrap */
.menu-head-sub { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; white-space: normal; line-height: 1.4; }
.menu-error { padding: 4px 14px 6px; white-space: normal; max-width: 280px; }
/* A part of a menu that can be long (ui.js menu, a `filter`): its items in a region of their own, which scrolls where
   they are many, under a field that narrows them, drawn once they are enough to need one. The field has no line of
   its own: the hairline under it is the region's, and it is ink while the field has the keyboard, as every field's
   line is. When nothing is left, one quiet sentence says so. */
.menu-filter { margin-bottom: 4px; border-bottom: 1px solid var(--rule); transition: box-shadow var(--speed) ease-out, border-color var(--speed) ease-out; }
.menu-filter:focus-within { border-bottom-color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.menu-filter > input { height: 34px; padding: 0 14px; border: 0; font-size: 13.5px; }
.menu-filter > input:focus { border: 0; box-shadow: none; }
.menu-filtered { max-height: max(104px, min(324px, calc(100vh - 388px))); overflow-y: auto; overscroll-behavior: contain; }
.menu-filter-none { padding: 9px 14px 11px; }
/* (16px text and a 40px target, as every field has under 900px) */
@media (max-width: 899px) { .menu-filter > input { height: 40px; font-size: 16px; } }

/* ---------------------------------------------------------------- dialogs and sheets */

dialog { color: var(--ink); }
dialog::backdrop { background: var(--scrim); }
.dialog {
  width: min(500px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; margin: auto;
  border: 1px solid var(--rule-2); border-radius: var(--radius-float); background: var(--raised); box-shadow: var(--shadow);
  overflow: auto;
}
.dialog[data-size="lg"] { width: min(760px, calc(100vw - 32px)); }
.dialog[data-size="sm"] { width: min(400px, calc(100vw - 32px)); }
.dialog-head, .sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px;
}
.dialog-heading, .sheet-heading { display: grid; gap: 4px; min-width: 0; }
.dialog-title, .sheet-title { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.008em; }
.sheet-title { display: flex; align-items: center; gap: 10px; }
.dialog-title:focus, .sheet-title:focus { outline: none; }
.dialog-desc, .sheet-desc { color: var(--ink-2); }
.dialog-body, .sheet-body { padding: 0 20px 20px; display: grid; gap: 16px; }
.dialog-error, .sheet-error { padding: 0 20px 12px; }
.verification-dialog[data-size="sm"] { width: min(380px, calc(100vw - 32px)); }
.verification-dialog .dialog-head { padding: 24px 24px 16px; align-items: center; }
.verification-dialog .dialog-title { font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
.verification-dialog .dialog-head > .icon-btn { margin: -8px -10px -8px 0; color: var(--ink-3); }
.verification-dialog .dialog-body { padding: 0 24px 18px; }
.verification-content { display: grid; gap: 16px; min-width: 0; }
.verification-methods .segmented { display: flex; height: 26px; gap: 18px; padding: 0; border: 0; background: none; }
.verification-methods .segmented button { height: 26px; padding: 0; font-size: 12px; color: var(--ink-3); }
.verification-methods .segmented button::after { left: 0; right: 0; height: 1px; }
.verification-methods .segmented button[aria-checked="true"] { color: var(--ink); font-weight: 550; }
.verification-code-field { gap: 0; }
.verification-code-field .field-control { display: flex; flex-direction: column; gap: 12px; }
.verification-code-field .help { order: -1; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
/* The code: one field holding six places, three and three as the code is printed, a short rule between the groups,
   set in the typing face. Each place is a digit over a low line: still to come, the line at the field's 3:1; next, in
   ink and pulsing; filled, the digit risen into place and its line gone quiet. While the code is checked it stays
   shown and ink runs along the lines; a refused one shakes the field and its digits drop out, from the last. The same
   anatomy as the sign-in page's code (pages/signin.css), in the console's own field. */
.verification-code-entry { position: relative; height: 52px; min-width: 0; }
.verification-digits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 24px repeat(3, minmax(0, 1fr)); height: 100%; padding: 0 12px;
  border: 1px solid var(--edge); border-radius: var(--radius); background: var(--paper);
  font-family: var(--font-mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; color: var(--ink);
  transition: border-color var(--speed) ease-out;
}
.verification-digits::before {  /* the rule between the groups, darker once the first three are in */
  content: ""; grid-column: 4; grid-row: 1; align-self: center; justify-self: center; width: 8px; height: 2px;
  border-radius: var(--radius-cap); background: var(--rule-2); transition: background-color .2s ease-out, width .2s ease-out;
}
.verification-code-entry:is([data-count="3"], [data-count="4"], [data-count="5"], [data-count="6"], [data-count="7"], [data-count="8"]) .verification-digits::before { width: 10px; background: var(--ink-3); }
.verification-digit { position: relative; display: grid; place-items: center; min-width: 0; grid-row: 1; }
.verification-digit:nth-child(4) { grid-column: 5; }
/* an emailed code of eight digits: the last two places join the field with the seventh digit, and the eight are set four and four */
.verification-code-entry[data-long] .verification-digits { grid-template-columns: repeat(4, minmax(0, 1fr)) 24px repeat(4, minmax(0, 1fr)); }
.verification-code-entry[data-long] .verification-digits::before { grid-column: 5; }
.verification-code-entry[data-long] .verification-digit { grid-column: var(--c); }
.verification-digit-text { display: block; padding-bottom: 3px; }
.verification-digit::after {
  content: ""; position: absolute; left: 50%; bottom: 11px; width: 14px; height: 2px; border-radius: var(--radius-cap);
  background: var(--edge); transform: translateX(-50%);
  transition: width .2s cubic-bezier(.2, .8, .2, 1), background-color .2s ease-out, opacity .2s ease-out;
}
.verification-digit[data-filled]::after { width: 10px; background: var(--rule-2); }
.verification-digit[data-active]::after { width: 20px; background: var(--ink); animation: verification-caret 1.1s ease-in-out infinite; }
/* a selection: a soft rounded mark behind the digit, its line in ink, not a slab from border to border */
.verification-digit-text { position: relative; }
.verification-digit[data-selected]::before {
  content: ""; position: absolute; inset: 10px 4px; border-radius: var(--radius); background: var(--select);
}
.verification-digit[data-selected]::after { width: 20px; background: var(--ink); }
.verification-digit[data-new] .verification-digit-text { animation: verification-digit-in .24s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
.verification-code-entry:focus-within .verification-digits { border-color: var(--ink); }
.verification-code-entry[data-disabled] { opacity: .5; }
/* under check: the code stays shown, a shade quieter, and ink runs along the lines */
.verification-code-entry[data-checking] .verification-digit-text { color: var(--ink-2); }
.verification-code-entry[data-checking] .verification-digit::after {
  width: 10px; background: var(--rule-2); animation: verification-run 1.05s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms);
}
/* refused: one shake, the refusing colour on the field and its lines until the next digit */
.verification-code-entry[data-invalid] .verification-digits { border-color: var(--bad); animation: verification-shake .4s cubic-bezier(.36, .07, .19, .97) both; }
.verification-code-entry[data-invalid] .verification-digit::after, .verification-code-entry[data-invalid] .verification-digits::before { background: var(--bad); }
.verification-digit[data-leaving] .verification-digit-text { animation: verification-digit-out .26s ease-in both; animation-delay: calc((5 - var(--i)) * 30ms); }
@keyframes verification-digit-in { from { opacity: 0; transform: translateY(8px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes verification-digit-out { to { opacity: 0; transform: translateY(-7px) scale(.9); } }
@keyframes verification-run { 0%, 60%, 100% { width: 10px; background: var(--rule-2); } 25% { width: 20px; background: var(--ink); } }
@keyframes verification-shake { 15%, 85% { transform: translateX(-1px); } 30%, 70% { transform: translateX(3px); } 45%, 55% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
/* Forced colours paint backgrounds as the canvas and would show the invisible input's own text over the places: the
   lines are drawn in system colours, the input stays invisible, and the field shows focus and selection itself. */
@media (forced-colors: active) {
  .verification-digit::after, .verification-digits::before { forced-color-adjust: none; background: GrayText; }
  .verification-digit[data-active]::after, .verification-digit[data-selected]::after { background: Highlight; }
  .verification-digit[data-selected]::before { forced-color-adjust: none; background: Highlight; }
  .verification-dialog .verification-native-code, .verification-dialog .verification-native-code::selection {
    forced-color-adjust: none; color: transparent; -webkit-text-fill-color: transparent; background: transparent;
  }
  .verification-code-entry:focus-within .verification-digits { outline: 2px solid Highlight; outline-offset: 2px; }
}
.verification-dialog .verification-native-code {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent;
  color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 24px; cursor: text;
}
.verification-dialog .verification-native-code:focus { border: 0; outline: none; box-shadow: none; }
.verification-dialog .verification-native-code::selection { background: transparent; color: transparent; }
.verification-code-field .field-error { font-size: 12px; line-height: 1.4; }
.verification-send { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: -4px; }
.verification-send .btn { height: 28px; padding: 0; font-size: 12px; background: transparent; border-color: transparent; }
.verification-countdown { font-size: 12px; color: var(--ink-3); }
.verification-dialog .dialog-error { padding: 0 24px 16px; font-size: 12px; line-height: 1.4; }
.verification-dialog .dialog-foot { display: block; padding: 0 24px 24px; border: 0; }
.verification-dialog .dialog-actions { display: block; width: 100%; margin: 0; }
.verification-dialog .dialog-actions .btn-primary { display: flex; justify-content: center; width: 100%; height: 42px; font-size: 13px; }
.verification-dialog .modal-working { font-size: 12px; padding-bottom: 8px; }
@keyframes verification-caret { 50% { opacity: .35; } }
@media (max-width: 599px) {
  .verification-dialog .dialog-head { padding-left: 20px; padding-right: 20px; }
  .verification-dialog .dialog-body { padding-left: 20px; padding-right: 20px; }
  .verification-dialog .dialog-foot { padding-left: 20px; padding-right: 20px; }
  .verification-dialog .dialog-error { padding-left: 20px; padding-right: 20px; }
  .verification-methods .segmented { height: 32px; }
  .verification-methods .segmented button { height: 32px; }
  .verification-send .btn { height: 36px; }
  .verification-dialog .dialog-actions .btn-primary { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .verification-digit::after, .verification-digit .verification-digit-text, .verification-digits { animation: none !important; }
}
.dialog-foot, .sheet-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 20px;
  border-top: 1px solid var(--rule);
}
/* A dialog's foot holds the dialog's lower edge while a body longer than its screen passes under it, on the
   dialog's own surface, so the button that acts is never below the fold (a sheet's foot is outside what scrolls
   already). What takes the keyboard under it is scrolled clear of it. */
.dialog { scroll-padding-bottom: 76px; }
.dialog-foot { position: sticky; bottom: 0; z-index: 1; background: var(--raised); }
.dialog-actions, .sheet-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
/* Inside what floats, the fields and tables sit on the raised surface. */
.dialog .table-wrap, .sheet .table-wrap { background: transparent; }
.dialog .table th, .sheet .table th { background: var(--raised); }

.sheet {
  position: fixed; inset: 0 0 0 auto; width: 600px; max-width: 100vw; height: 100%; max-height: 100%; margin: 0;
  padding: 0; border: 0; border-left: 1px solid var(--rule-2); border-radius: 0; background: var(--raised);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.sheet[open] { display: flex; }
.sheet-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--rule); flex: none; }
.sheet-body { padding: 22px 24px; flex: 1; overflow: auto; align-content: start; gap: 28px; }
.sheet-foot { flex: none; background: var(--raised); padding: 14px 24px; }
.sheet-section { display: grid; gap: 12px; min-width: 0; }
.sheet-section > .section-title + * { margin-top: -4px; }
/* What a sheet shows about what is stored: the same label column as its form's rows. */
.sheet .kv { grid-template-columns: 136px minmax(0, 1fr); gap: 9px 18px; }
.sheet .kv dt { white-space: normal; }
@media (max-width: 699px) {
  .sheet { width: 100vw; border-left: 0; }
  .sheet-head { padding: 18px 16px 14px; }
  .sheet-body { padding: 18px 16px; }
  .sheet-foot { padding: 12px 16px; }
  .field[data-layout="row"] { grid-template-columns: minmax(0, 1fr); }
  .field[data-layout="row"] > label, .field[data-layout="row"] > .field-label { padding-top: 0; }
  .sheet .kv { grid-template-columns: max-content minmax(0, 1fr); }
}

/* the move dialog: the offers to choose from, the run's machine now above them. A row is chosen by a click anywhere
   on it; only the one chosen wears the fill, so the pointer over another never passes for the choice. */
.plan-now { color: var(--ink-2); }
.plan-summary strong, .plan-now strong { font-weight: 600; color: var(--ink); }
.plan-offers td { height: 42px; }
.plan-offers .table tbody tr { cursor: pointer; }
@media (hover: hover) { .plan-offers .table tbody tr:hover td { background: none; } }
@media (hover: hover) { .plan-offers .table tbody tr:hover input[type="radio"]:not(:checked) { border-color: var(--ink-2); } }
.plan-offers .table tbody tr[data-chosen] td { background: var(--paper-2); }
@media (hover: hover) { .plan-offers .table tbody tr[data-chosen]:hover td { background: var(--paper-2); } }
.plan-pick { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.plan-machine { display: grid; line-height: 1.3; }
.plan-sub { display: none; }
.plan-spec { display: grid; gap: 6px; padding: 4px 0 0; }
.plan-spec .field-control { padding-left: 24px; }
.plan-spec input[type="text"] { max-width: 420px; }
@media (max-width: 699px) {
  /* the offers fold GPU, region, market and boot under the machine, so the price stays in view */
  .plan-offers .col-fold { display: none; }
  .plan-sub { display: block; font-size: 12.5px; color: var(--ink-3); white-space: normal; }
  .plan-offers td { height: auto; padding-top: 7px; padding-bottom: 7px; }
}

/* The steps to set something up (ui.js steps): one list wherever the console gives them, under a rule (of ink on a
   page, a hairline inside a section, none in a dialog), each step's number hanging in a gutter on its title's line,
   its sentence and its commands beside, the steps apart on hairlines. */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); counter-reset: step; }
.step:not([hidden]) { counter-increment: step; }
.step-n::before { content: counter(step); }
.step[data-done] .step-n { color: var(--ink); }
.panel .steps { border-top-color: var(--rule); }
.dialog .steps { border-top: 0; }
.sheet .steps { border-top-color: var(--rule); }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); row-gap: 10px; padding: 18px 0 20px; min-width: 0; }
.step:not([hidden]) ~ .step { border-top: 1px solid var(--rule); }
.dialog .step:first-child, .dialog .step[hidden]:first-child + .step { padding-top: 2px; }
.dialog .step:last-child { padding-bottom: 4px; }
.step-n { grid-column: 1; grid-row: 1; font-size: 15px; font-weight: 600; line-height: 21px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step-title { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 600; line-height: 21px; color: var(--ink); }
.step-body { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.step-body > p { color: var(--ink-2); max-width: 80ch; margin-top: -4px; }
.step-body > .cmd-box + .cmd-box { margin-top: -6px; }
.step-body q { color: var(--ink); }
/* The way to a first run on Fluid Compute (start-guide.js): the console's steps under a head that holds the title
   and, at its end, the choice of way (Agent, CLI, API), the pill the landing's setup draws. A step's title may end
   with the agents' marks. What is given to a coding agent is the landing's dark bar; what is said to one is a
   sentence with Copy at its end. One quiet line under the steps is about a person's own cloud. */
.start-guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.start-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 30px; }
.start-head .start-title { margin: 0; }
.start-head .start-switch { margin-left: auto; }
.start-guide .step-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.start-guide .step-title .home-setup-agents { flex: none; }
.start-bar { container-type: inline-size; min-width: 0; }
.start-guide .step-body > .start-bar + p { margin-top: 0; }
.start-figure { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.start-act { display: flex; flex-wrap: wrap; gap: 10px; }
.start-act .btn { text-decoration: none; }
.start-ask { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule-2); }
.step-body > p.start-ask { max-width: none; margin-top: 0; }
.start-ask q { font-size: 14px; color: var(--ink); quotes: "\201C" "\201D"; }
.start-ask .copy-btn { flex: none; margin-right: -4px; padding: 0 4px; }
.start-foot { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.start-foot[hidden] { display: none; }
.dialog.start-dialog .start-head { justify-content: flex-start; }
.dialog.start-dialog .start-head .start-switch { margin-left: 0; }
.dialog.start-dialog .start-foot { padding-top: 12px; border-top: 1px solid var(--rule); }
/* the install command, shown once asked for (ui.js installCommand): a button, then the command in its place; as a
   link, the end of a sentence of help */
.install-cmd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; min-width: 0; }
.install-cmd > .cmd-box { justify-self: stretch; }
.install-ask { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.install-ask.help { display: block; }
.install-ask .btn-link { font-size: inherit; }
@media (max-width: 599px) {
  .step { grid-template-columns: 26px minmax(0, 1fr); }
}
/* where a connection's values come from, in its sheet: notes as the margin's are (one size, one ink), the command
   among them */
.how { display: grid; gap: 10px; padding: 0 0 2px; }
.danger-zone { padding-top: 18px; border-top: 1px solid var(--rule); }

/* a choice of one among a few, each with a line under it (the token dialog's scopes) */
.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 550; }
.choice { align-items: flex-start; line-height: 1.4; }
.choice input { margin-top: 3px; }
.choice-sub { display: block; font-size: 12.5px; color: var(--ink-3); text-wrap: pretty; }
.plain-list { display: grid; gap: 2px; font-family: var(--font-mono); font-size: 12.5px; }

/* The keys there are (?): a short list, each key in its cap. */
.keys-list { grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; align-items: baseline; }
.keys-list dt { white-space: nowrap; font-stretch: 100%; }
.keys-list dt kbd + kbd { margin-left: 6px; }
.keys-list dd { color: var(--ink-2); }

/* The command menu (command.js): a dialog near the top of the window, so its field stays where it is while the list
   under it changes length. The field is the dialog's first line, with no line of its own to write on: the hairline
   under it is the list's. Under it the runs, the places and what can be done here, each kind under its quiet name
   with a hairline between kinds; a line is words, the one the arrows or the pointer are on a shade darker with a
   rule of ink at its edge (as the nav marks the place shown). The dialog's own cross closes it; its title is for a
   screen reader. Its foot says the keys, where there is a keyboard. */
.dialog.command {
  width: min(620px, calc(100vw - 32px)); max-height: none; margin-top: min(13vh, 104px); overflow: hidden;
}
.command .dialog-head { position: absolute; top: 9px; right: 10px; z-index: 1; padding: 0; }
.command .dialog-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.command .dialog-body { display: block; padding: 0; }
.command-field { padding-right: 50px; border-bottom: 1px solid var(--rule); }
.command .command-input {
  height: 50px; padding: 0 18px; border: 0; font-size: 15px;
}
.command .command-input:focus { border: 0; box-shadow: none; }
.command-list { max-height: min(428px, calc(100vh - 250px)); overflow-y: auto; overscroll-behavior: contain; padding: 6px 0; }
.command-group + .command-group, .command-group + .command-none { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rule); }
.command-head { padding: 7px 18px 5px; font-size: 12px; font-weight: 500; font-stretch: var(--label-stretch); color: var(--ink-3); }
.command-option {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 36px; padding: 0 18px;
  font-size: 14px; cursor: pointer;
}
.command-option[data-active] { background: var(--paper-3); }
.command-option[data-active]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--ink); }
.command-main { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
/* The name has the room: what follows it gives way first (a run's id before its project), and the name is cut only
   where it alone is longer than the line. A run is found and told apart by its name; its id is on its page. */
.command-label { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.command-sub { display: flex; align-items: baseline; gap: 10px; flex: 0 10000 auto; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; color: var(--ink-3); }
.command-sub > * { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.command-sub > .command-id { flex-shrink: 10000; font-size: 12px; }
/* a run's state and when it was created are columns: the glyphs in line, as the Runs table's are */
.command-state { flex: none; width: 104px; }
.command-state .badge { font-size: 13px; }
.command-when { flex: none; width: 92px; text-align: right; font-size: 13px; color: var(--ink-3); }
.command-hint { flex: none; display: inline-flex; gap: 5px; }
.command-hint kbd, .command-keys kbd { font-size: 11.5px; color: var(--ink-3); border-bottom-color: var(--rule-2); }
.command-note { padding: 5px 18px 9px; font-size: 13px; color: var(--ink-3); }
/* nothing matches: what was typed, said back in the typing face, and what the search looks through */
.command-none { display: grid; gap: 4px; padding: 26px 18px 28px; }
.command-none-title { font-weight: 550; overflow-wrap: anywhere; }
.command-typed { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.command-none-sub { font-size: 13px; color: var(--ink-3); }
.command .dialog-foot { justify-content: flex-start; padding: 9px 18px; }
.command-keys { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; color: var(--ink-3); }
.command-keys kbd { margin-right: 1px; color: var(--ink-2); }
.command-keys kbd + kbd { margin-left: 3px; }
/* where the system draws every surface in its own colours, the line marked wears the system's ring */
@media (forced-colors: active) {
  .command-option[data-active] { outline: 2px solid Highlight; outline-offset: -2px; }
}
/* no keyboard to press them on: the keys are not said (a tap takes a line, a tap outside closes) */
@media (hover: none) and (pointer: coarse) {
  .command .dialog-foot, .command-hint { display: none; }
}
/* (16px text, as every field has under 900px: a phone's or a tablet's browser zooms the page for a smaller one) */
@media (max-width: 899px) { .command .command-input { font-size: 16px; } }
@media (max-width: 599px) {
  .dialog.command { margin-top: 12px; }
  .command-list { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .command-option { min-height: 44px; gap: 12px; }
  .command-option, .command-head, .command-note, .command-none { padding-left: 16px; padding-right: 16px; }
  .command .command-input { padding: 0 16px; }
  /* a run is two lines on a phone: its name over its project, its state over when it was created (runs of one name
     are told apart by that); its id is on its page */
  .command-run { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main state" "main when"; gap: 1px 12px; padding-top: 7px; padding-bottom: 7px; }
  .command-run .command-main { grid-area: main; flex-direction: column; align-items: stretch; gap: 1px; }
  .command-run .command-state { grid-area: state; justify-self: end; width: auto; }
  .command-run .command-when { grid-area: when; justify-self: end; width: auto; font-size: 12.5px; }
  .command-id { display: none; }
  /* and its name goes onto a second line before it is cut */
  .command-run .command-label {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere;
  }
}

/* toasts: bottom right, out of the way of the pointer. On a phone at the bottom too, across the screen and clear of
   the home bar: at the top one lay over the page's title, which is what a person reads to know where they are. It
   takes no press (pointer-events), so what is under it stays reachable for the moment it shows. */
.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px;
  max-width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  padding: 9px 14px; border-radius: var(--radius-float); background: var(--ink); color: var(--paper); font-size: 13.5px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;  /* a name or an address said in one may be one long word: it breaks rather than run off the screen */
}
@media (max-width: 599px) {
  .toasts { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: none; }
}

/* ---------------------------------------------------------------- logs and code */

.log {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; background: var(--paper-2);
  border-radius: var(--radius); overflow: auto; max-height: 70vh; padding: 10px 0;
}
.log-line { display: flex; gap: 14px; padding: 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.log-line .ln { flex: none; width: 5ch; text-align: right; color: var(--ink-3); user-select: none; }

/* ---------------------------------------------------------------- sign-in, and a card to approve */

/* A card that asks a person for one thing on a page of its own (to sign in; to approve or deny a terminal's
   sign-in; to accept an invitation): the only card the language has, because it is the only thing on its page. It is
   centred on the width at a fixed top, so its title holds still whatever the card shows (an outcome taking the
   choice's place, a page of another state). In its order: its title; why the page is here when that is news; what it
   is about when that is a thing to read, set large (a terminal's code); its sentence; its facts, on a hairline; its
   field or choices; its actions at its foot on the right, each the width of its word; another way in, a quiet line on
   a hairline under them. On a phone the card is the page: no box, the same order on the content's edge, its actions
   sharing the width. */
.approve { display: grid; justify-items: center; align-content: start; padding: clamp(32px, 10vh, 96px) 0 6vh; }
.approve-card {
  width: min(440px, 100%); display: grid; gap: 18px; padding: 28px 28px 24px; border: 1px solid var(--rule-2);
  border-radius: var(--radius-float); background: var(--raised);
}
.approve-title { font-size: 19px; font-weight: 600; line-height: 1.25; }
.approve-title:focus { outline: none; }  /* given the keyboard when the card's content is replaced, as a dialog's is */
.approve-lead { display: grid; gap: 6px; min-width: 0; }
/* the sentences only: a field's help and error, and a notice, keep their colours */
.approve-card > p, .approve-lead > p { color: var(--ink-2); }
.approve-card > .kv {
  grid-template-columns: max-content minmax(0, 1fr); column-gap: 28px; padding-top: 16px; border-top: 1px solid var(--rule);
}
.approve-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.approve-aside { padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.5; }
/* after a notice, whose own hairline closes it, the other way in needs none of its own; a notice the card ends on
   has no hairline under it, over the card's own edge; one right under the title opens on none */
.approve-card > .notice + .approve-aside { padding-top: 0; border-top: 0; }
.approve-card > .notice:last-child { border-bottom: 0; padding-bottom: 0; }
.approve-card > .approve-title + .notice { margin-top: -4px; }
/* a short command named in a sentence stays on one line */
.approve-card p code { white-space: nowrap; }
@media (max-width: 599px) {
  .approve { justify-items: stretch; padding: 2px 0 0; }
  .approve-card { width: 100%; padding: 0; border: 0; background: none; gap: 20px; }
  .approve-title { font-size: 22px; letter-spacing: -.008em; }
  .approve-card > .kv { column-gap: 20px; }
  .approve-actions .btn { flex: 1 1 0; }
}

/* A terminal's connection (pages/pairing.js: the browser sign-in's card and the device code's). What asks and where
   it signs in are the two ends of one connection, each a glyph and two lines, with the link between the glyphs:
   three points that pass the light along while the card waits, quicker while the answer is on its way, one line and
   a tick once the terminal is connected, and still where it was denied or ran out. What it may do is a row for each
   scope under it. The card's foot says how long the access lasts beside its two answers, and who is signed in is a
   quiet line under the card, on the page's ground. */
.approve-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 4px; }
.approve-foot > .approve-actions { padding-top: 0; margin-left: auto; }
.approve-beside { min-width: 0; }
.approve-card .approve-footnote { color: var(--ink-3); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
/* the card's options: what opens them is a quiet press at the foot's left; the fields open in place above the foot */
.approve-more-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-left: -4px; padding: 0 8px 0 4px; border: 0; border-radius: var(--radius); background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.approve-more-toggle svg { transition: transform .2s ease-out; }
.approve-more-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.approve-more-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .approve-more-toggle:hover { color: var(--ink); } }
.approve-what { min-width: 0; }
.approve-more { display: grid; grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows .26s cubic-bezier(.2, .8, .2, 1), margin-top .26s cubic-bezier(.2, .8, .2, 1); }
.approve-more[data-open] { grid-template-rows: 1fr; margin-top: 16px; }
.approve-more-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .18s ease-out; }
/* (the fields' sides are let out by 4px, so a field's focus ring is not cut; the hairline over them is the card's width) */
.approve-more[data-open] > .approve-more-in {
  opacity: 1; padding: 16px 4px 4px; margin: 0 -4px; background: linear-gradient(var(--rule), var(--rule)) 4px 0 / calc(100% - 8px) 1px no-repeat;
}

/* what it may do, in one sentence under the connection; the choices it follows are the first of the options */
.approve-card .approve-can { color: var(--ink-2); text-wrap: pretty; }
.approve-more-in > .choices > legend { float: left; width: 100%; margin: 0 0 2px; }
.approve-card .approve-note { margin-top: -10px; color: var(--ink-3); font-size: 13px; line-height: 1.5; text-wrap: pretty; }
/* a card that says a terminal is connected: a tick over its title, drawn as the card arrives */
.approve-done { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--raised); animation: done-in .36s cubic-bezier(.3, 1.4, .5, 1) .12s backwards; }
.approve-done svg { display: block; stroke-width: 2.2; stroke-dasharray: 24; animation: done-draw .32s ease-out .3s backwards; }
@keyframes done-in { from { transform: scale(.4); opacity: 0; } }
@keyframes done-draw { from { stroke-dashoffset: 24; } }
.approve-card[data-ended] .approve-desc b { color: var(--ink); font-weight: 550; overflow-wrap: anywhere; }
.approve-under { width: min(440px, 100%); margin-top: 16px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.approve-under b { color: var(--ink-2); font-weight: 550; }
.approve-under .btn-link { font-size: inherit; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
@media (pointer: coarse) {  /* under a thumb the way to another account is a 44px target, drawn as it was */
  .approve-under .btn-link { position: relative; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .approve-under .btn-link::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
}
.pair { display: grid; min-width: 0; --pair-glyph: 36px; }
.pair-end { display: grid; grid-template-columns: var(--pair-glyph) minmax(0, 1fr); align-items: center; column-gap: 12px; min-width: 0; }
.pair-glyph {
  width: var(--pair-glyph); height: var(--pair-glyph); display: grid; place-items: center; border: 1px solid var(--rule-2);
  border-radius: var(--radius); background: var(--raised); color: var(--ink);
  transition: border-color .3s ease-out, background-color .3s ease-out, color .3s ease-out;
}
.pair-glyph svg { display: block; }
.pair-mark path { fill: currentColor; }
.pair-words { display: grid; min-width: 0; }
.pair-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-sub { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-link { position: relative; width: var(--pair-glyph); height: 26px; display: grid; justify-items: center; align-content: center; gap: 4px; }
.pair-link > i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-2); opacity: .28; animation: pair-pass 1.8s ease-in-out infinite; transition: opacity .2s ease-out; }
.pair-link > i:nth-child(2) { animation-delay: .22s; }
.pair-link > i:nth-child(3) { animation-delay: .44s; }
@keyframes pair-pass { 0%, 55%, 100% { opacity: .28; } 22% { opacity: 1; } }
.pair[data-state="sending"] .pair-link > i { animation-duration: .7s; }
.pair[data-state="sending"] .pair-link > i:nth-child(2) { animation-delay: .1s; }
.pair[data-state="sending"] .pair-link > i:nth-child(3) { animation-delay: .2s; }
/* connected: the points are one line, the tick on it, and both ends are in ink */
.pair-link::before { content: ""; position: absolute; left: calc(50% - .75px); top: 0; bottom: 0; width: 1.5px; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.pair-tick { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--raised); transform: scale(0); opacity: 0; transition: transform .28s cubic-bezier(.3, 1.4, .5, 1) .22s, opacity .12s ease-out .22s; }
.pair-tick svg { display: block; stroke-width: 2.4; }
.pair[data-state="done"] .pair-link > i { animation: none; opacity: 0; }
.pair[data-state="done"] .pair-link::before { transform: scaleY(1); }
.pair[data-state="done"] .pair-tick { transform: scale(1); opacity: 1; }
.pair[data-state="done"] .pair-glyph { border-color: var(--ink); }
.pair[data-state="off"] .pair-link > i { animation: none; opacity: .28; }
.pair[data-state="off"] .pair-glyph { color: var(--ink-3); }
/* the choice of workspace reads as the workspace's name: a select with no box, its arrow after the name */
.pair-pick-field { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-width: 0; justify-self: start; color: var(--ink); }
.pair-pick-field select.pair-pick {
  appearance: none; -webkit-appearance: none; width: auto; max-width: 100%; min-width: 0; height: auto; margin: 0; padding: 0 22px 0 0; border: 0;
  border-radius: var(--radius); background: none; color: inherit; font: inherit; font-weight: 550; text-overflow: ellipsis; cursor: pointer; field-sizing: content;
}
.pair-pick-field > svg { position: absolute; right: 2px; top: 50%; margin-top: -7px; pointer-events: none; color: var(--ink-3); }
.pair-pick-field select.pair-pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* what it may do, a row for each scope, the one always given set quieter */
.approve-card .choices .check.choice { align-items: flex-start; }
.approve-card .choices .check.choice[data-locked] { cursor: default; }
.pair-meta { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.pair-meta .mono { font-size: inherit; }
@media (max-width: 599px) {
  .approve-foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .approve-foot > .approve-actions { margin-left: 0; }
  .approve-beside { align-self: flex-start; }
  .approve-under { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pair-link > i { animation: none; }
  .pair-link::before, .pair-tick, .pair-glyph, .approve-more, .approve-more-in, .approve-more-toggle svg { transition: none; }
  .approve-done, .approve-done svg { animation: none; }
}

/* ---------------------------------------------------------------- a site with a look of its own */

/* Fluid's site (theme.js says which site this is on the root, before the first paint). A page that is one card (the
   sign-in, a terminal's or a device's approval, an invitation, the 404) is one surface in the middle of its own
   ground: the ground is the console's faintest neutral and the card the page's colour; in the dark the ground is the
   page's own and the card a step lighter. One hairline, one generous corner, one very soft shadow. Signed out, the
   bar is the landing's: no rule under it, the mark and the name on the page's 1120px column, on the same ground.
   The sign-in card's own rules are pages/signin.css's. */
:root[data-site="fluid"] { --ground: var(--paper-2); --card-shadow: 0 28px 56px -32px rgb(20 20 20 / .18); }
:root[data-site="fluid"][data-theme="dark"] { --ground: var(--paper); --card-shadow: none; }
@media (prefers-color-scheme: dark) {
  :root[data-site="fluid"]:not([data-theme="light"]) { --ground: var(--paper); --card-shadow: none; }
}
:root[data-site="fluid"][data-signed-out] { --topbar-h: 80px; background: var(--ground); }
:root[data-site="fluid"][data-signed-out] body { background: var(--ground); }
/* every page of this shell is a card that places itself: the content has no top of its own, from the first paint, so
   nothing moves when the page is drawn */
:root[data-site="fluid"][data-signed-out] .shell .content { padding-top: 0; }
:root[data-site="fluid"][data-signed-out] .shell .topbar {
  padding: 0 max(24px, calc((100vw - 1120px) / 2)); border-bottom: 0; background: var(--ground);
}
:root[data-site="fluid"][data-signed-out] .shell .wordmark { gap: 9px; font-size: 17px; }
:root[data-site="fluid"][data-signed-out] .shell .wordmark svg.mark { width: 24px; height: 24px; }
:root[data-site="fluid"][data-signed-out] .shell .wordmark-by { margin-left: 4px; font-size: 13px; }
:root[data-site="fluid"][data-signed-out] .shell .topbar-end { gap: 18px; }
/* Heights are the small viewport's, so the page is exactly the screen while the browser's bar shows and nothing moves
   when it collapses. In a short window (a phone on its side) the bar is lower and scrolls away with the page. */
@supports (height: 100svh) { :root[data-site="fluid"][data-signed-out] :is(body, .shell) { min-height: 100svh; } }
@media (max-height: 480px) {
  :root[data-site="fluid"][data-signed-out] { --topbar-h: 56px; }
  :root[data-site="fluid"][data-signed-out] .shell .topbar { position: static; }
}
/* the bar under a thumb: the name and each of the theme's words are 44px targets, drawn as they were */
:root[data-site="fluid"][data-signed-out] .shell :is(.wordmark, .theme-word) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:root[data-site="fluid"][data-signed-out] .shell .theme-word { position: relative; -webkit-user-select: none; user-select: none; }
:root[data-site="fluid"][data-signed-out] .shell .theme-switch { gap: 10px; }
@media (pointer: coarse) {
  :root[data-site="fluid"][data-signed-out] .shell .wordmark { min-height: 44px; }
  :root[data-site="fluid"][data-signed-out] .shell .theme-word::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%);
  }
}
@media (max-width: 700px) {
  :root[data-site="fluid"][data-signed-out] { --topbar-h: 68px; }
  :root[data-site="fluid"][data-signed-out] .shell .topbar { padding-inline: 20px; }
  :root[data-site="fluid"][data-signed-out] .shell .wordmark { gap: 8px; font-size: 15px; }
  :root[data-site="fluid"][data-signed-out] .shell .wordmark svg.mark { width: 20px; height: 20px; }
  :root[data-site="fluid"][data-signed-out] .shell .wordmark-by { margin-left: 3px; font-size: 12px; }
}

/* The pages of one card (ui.js approval): the same card as the sign-in's, at the same place on the page. Its top
   is where the sign-in card's is, so a person going from one to the other sees one card change what it holds. The
   title is in the sign-in title's face; what the card asks is two pills at its foot, the press that goes on in ink.
   Signed in, the page's own ground is under it too. On a phone it stays a card, 16px of ground either side. */
:root[data-site="fluid"] .content:has(.approve) { padding-top: 0; }
/* Signed in, the whole shell is on the card's ground while the page is one card: the bar and the nav are their words
   and glyphs on that ground, between their hairlines, and the card is the one raised surface on the screen. From
   the first paint where the page opened on is one (theme.js data-card), until another page is drawn. */
:root[data-site="fluid"]:not([data-signed-out]) .shell:has(.approve) :is(.topbar, .nav, .content),
:root[data-site="fluid"][data-card]:not([data-signed-out]) .shell:not(:has(.page[data-page])) :is(.topbar, .nav, .content) { background: var(--ground); }
:root[data-site="fluid"]:not([data-signed-out]):has(.shell .approve),
:root[data-site="fluid"]:not([data-signed-out]):has(.shell .approve) body { background: var(--ground); }
:root[data-site="fluid"] .approve {
  --card-h: 404px;  /* the height the card is placed for: the sign-in card's, so an invitation stands where it does */
  padding: max(24px, calc((100vh - var(--card-h)) * .44 - var(--topbar-h))) 0 48px;
  padding: max(24px, calc((100svh - var(--card-h)) * .44 - var(--topbar-h))) 0 48px;
}
/* the two that hold the most start higher, so what they ask is on the first screen; each holds its own top still */
:root[data-site="fluid"] .page[data-page="cli"] .approve { --card-h: 640px; }
:root[data-site="fluid"] .page[data-page="device"] .approve { --card-h: 800px; }
:root[data-site="fluid"] .page .approve-card {
  width: min(448px, 100%); max-width: 448px; gap: 20px; padding: 36px 40px 40px; border: 1px solid var(--rule); border-radius: var(--radius-card);
  background: var(--raised); box-shadow: var(--card-shadow); animation: card-in .26s cubic-bezier(.2, .8, .2, 1) backwards;
}
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } }
:root[data-site="fluid"] .approve-title {
  font-family: "Funnel Display", var(--font-sans); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; text-wrap: balance;
}
:root[data-site="fluid"] .approve-card > .approve-title + p { margin-top: -10px; font-size: 15px; line-height: 22px; }
:root[data-site="fluid"] .approve-actions { gap: 10px; padding-top: 8px; }
:root[data-site="fluid"] .approve-actions .btn {
  height: 48px; padding: 0 22px; border-radius: var(--radius-cap); font-size: 15px; font-weight: 550; letter-spacing: -.003em;
  transition: border-color .14s ease-out, background-color .14s ease-out, color .14s ease-out, box-shadow .14s ease-out;
}
:root[data-site="fluid"] .approve-actions .btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ink); }
:root[data-site="fluid"] .approve-actions .btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
:root[data-site="fluid"] .approve-actions .btn:not(:disabled):active { background: var(--paper-3); border-color: var(--ink-2); transition-duration: 40ms; }
:root[data-site="fluid"] .approve-actions .btn-primary:not(:disabled):active { background: color-mix(in srgb, var(--ink) 76%, var(--paper)); border-color: transparent; }

/* What the card holds, in the card's own language. Its facts: 15px values on 22px lines, their keys quiet and in the
   text's own width. Its choices: each a row of at least 44px that is pressed anywhere, its box a round one that
   fills with ink, as the card's press is round and ink. Its fields: the pill the address is written in, at 16px,
   so no phone zooms to them. What opens (Options) is a 44px row. */
:root[data-site="fluid"] .approve-card > .kv { gap: 10px 24px; padding-top: 20px; font-size: 15px; line-height: 22px; }
:root[data-site="fluid"] .approve-card > .kv dt { font-size: 13.5px; font-stretch: 100%; font-weight: 450; }
:root[data-site="fluid"] .approve-card .cell-sub { font-size: 13px; line-height: 19px; }
:root[data-site="fluid"] .approve-card > .help, :root[data-site="fluid"] .approve-card .choices > .help { font-size: 13.5px; line-height: 20px; }
:root[data-site="fluid"] .approve-card .choices { gap: 2px; }
:root[data-site="fluid"] .approve-card .choices > legend { margin-bottom: 2px; font-size: 15px; font-weight: 600; }
:root[data-site="fluid"] .approve-card .choices > .help { margin-bottom: 6px; }
:root[data-site="fluid"] .approve-card .check.choice {
  display: flex; gap: 12px; min-height: 44px; padding: 6px 0; font-size: 15px; line-height: 22px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
:root[data-site="fluid"] .approve-card .check.choice > input { margin-top: 0; }
:root[data-site="fluid"] .approve-card .choice-sub { font-size: 13px; line-height: 19px; }
:root[data-site="fluid"] .approve-card input[type="checkbox"] {
  width: 22px; height: 22px; border-radius: 50%; transition: background-color .14s ease-out, border-color .14s ease-out, box-shadow .14s ease-out;
}
:root[data-site="fluid"] .approve-card input[type="checkbox"]::before { width: 9px; height: 4.5px; margin-top: -2px; }
:root[data-site="fluid"] .approve-card input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ink); }
:root[data-site="fluid"] .approve-card .check.choice:active > input:not(:disabled) { box-shadow: 0 0 0 4px var(--select); }
:root[data-site="fluid"] .approve-card :is(input[type="text"], input[type="number"], select) {
  height: 48px; padding: 0 20px; border: 1px solid var(--edge); border-radius: var(--radius-cap); background: var(--paper); font-size: 16px;
  transition: border-color .14s ease-out, box-shadow .14s ease-out;
}
:root[data-site="fluid"] .approve-card select { padding-right: 40px; }
:root[data-site="fluid"] .approve-card :is(input[type="text"], input[type="number"], select):focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--select); outline: none; }
:root[data-site="fluid"] .approve-card .field { gap: 8px; }
:root[data-site="fluid"] .approve-card .field > label { font-size: 13.5px; }
:root[data-site="fluid"] .page[data-page="device"] .device-input { height: 52px; padding: 0 22px; font-size: 22px; }
:root[data-site="fluid"] .approve-card details > summary {
  display: flex; align-items: center; min-height: 44px; margin: -11px 0; font-size: 15px; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
:root[data-site="fluid"] .approve-card details[open] > summary { margin-bottom: 5px; }
:root[data-site="fluid"] .approve-card a { -webkit-tap-highlight-color: transparent; }
@media (max-width: 599px) {
  /* a phone: the card stands a third of the way down the free height, as the sign-in's does, and a long one starts
     under the bar; the screen's own bottom edge is kept clear */
  :root[data-site="fluid"] .approve {
    --card-h: 410px; justify-items: center;
    padding: max(16px, calc((100vh - var(--card-h)) * .32 - var(--topbar-h))) 0 max(32px, calc(env(safe-area-inset-bottom) + 16px));
    padding-top: max(16px, calc((100svh - var(--card-h)) * .32 - var(--topbar-h)));
  }
  :root[data-site="fluid"] .approve-actions .btn { min-width: 0; }
  :root[data-site="fluid"] .page .approve-card { padding: 20px 24px 24px; }
  :root[data-site="fluid"] .approve-title { font-size: 26px; line-height: 32px; letter-spacing: -.02em; }
}
/* The card that connects a terminal is wider than the sign-in's: its two ends and its rows are one line each. Its
   glyphs are discs, as the card's boxes and presses are round; its foot keeps the two answers on the right, with how
   long the access lasts beside them. Short of height, the foot stays in reach at the screen's bottom edge while the
   card is read. */
:root[data-site="fluid"] .page:is([data-page="cli"], [data-page="device"]) .approve { --card-h: 430px; }
:root[data-site="fluid"] .page:is([data-page="cli"], [data-page="device"]) .approve-card { width: min(520px, 100%); max-width: 520px; gap: 24px; }
:root[data-site="fluid"] .approve-card .pair { --pair-glyph: 40px; font-size: 15px; line-height: 22px; }
:root[data-site="fluid"] .approve-card .pair-end { column-gap: 14px; }
:root[data-site="fluid"] .approve-card .pair-glyph { border-radius: 50%; border-color: var(--rule); background: var(--paper-2); }
:root[data-site="fluid"] .approve-card .pair[data-state="done"] .pair-glyph { border-color: var(--ink); background: var(--ink); color: var(--raised); }
:root[data-site="fluid"] .approve-card .pair-sub { font-size: 13px; line-height: 19px; }
:root[data-site="fluid"] .approve-card .pair-link { height: 22px; }
:root[data-site="fluid"] .approve-card .pair-tick { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
:root[data-site="fluid"] .approve-card .pair-pick-field select.pair-pick { height: auto; padding: 0 24px 0 0; border: 0; border-radius: var(--radius); background: none; font-size: inherit; box-shadow: none; }
:root[data-site="fluid"] .approve-card .pair-pick-field select.pair-pick:focus { box-shadow: none; }
:root[data-site="fluid"] .approve-card .pair-pick-field select.pair-pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
:root[data-site="fluid"] .approve-card .choices .check.choice { align-items: flex-start; min-height: 0; padding: 6px 0; }
:root[data-site="fluid"] .approve-card .choices .check.choice > input { margin-top: 1px; }
:root[data-site="fluid"] .approve-card .choices .check.choice[data-locked] > span { color: var(--ink-2); }
:root[data-site="fluid"] .approve-card .approve-can { font-size: 15px; line-height: 22px; }
:root[data-site="fluid"] .approve-card .approve-note { margin-top: -14px; font-size: 13.5px; line-height: 20px; }
:root[data-site="fluid"] .approve-card .approve-done { width: 44px; height: 44px; margin-bottom: -4px; }
:root[data-site="fluid"] .approve-card .approve-lead > .device-hint { font-size: 15px; line-height: 22px; }
:root[data-site="fluid"] .approve-card .approve-lead { gap: 10px; }
:root[data-site="fluid"] .page .approve-card[data-ended] { width: min(448px, 100%); max-width: 448px; }
:root[data-site="fluid"] .approve-card[data-ended] > .approve-actions { padding-top: 12px; }
:root[data-site="fluid"] .approve-card .approve-more-in > .choices { margin-bottom: 4px; }
:root[data-site="fluid"] .approve-card .approve-footnote { font-size: 13.5px; line-height: 20px; }
:root[data-site="fluid"] .approve-card .approve-more-toggle { min-height: 44px; font-size: 15px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:root[data-site="fluid"] .approve-card .approve-more[data-open] { margin-top: 20px; }
:root[data-site="fluid"] .approve-card .approve-more[data-open] > .approve-more-in { padding-top: 20px; }

/* the foot holds the card's bottom edge: where the window is shorter than the card, it stays at the screen's bottom
   and the card is read under it; the card's own colour rises a little above it, so nothing is cut at a line */
:root[data-site="fluid"] .approve-card > .approve-foot {
  position: sticky; bottom: 0; z-index: 1; margin: -6px -40px -40px; padding: 14px 40px 28px; border-bottom-left-radius: var(--radius-card); border-bottom-right-radius: var(--radius-card);
  background: var(--raised);
}
:root[data-site="fluid"] .approve-card > .approve-foot::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; pointer-events: none;
  background: linear-gradient(to top, var(--raised), transparent);
}
:root[data-site="fluid"] .approve-foot > .approve-actions { padding-top: 0; }
:root[data-site="fluid"] .approve-under { width: min(520px, 100%); margin-top: 18px; font-size: 13.5px; line-height: 20px; }
:root[data-site="fluid"] .approve-card .pair-meta { font-size: 13px; line-height: 19px; }
@media (max-width: 599px) {
  :root[data-site="fluid"] .approve-card > .approve-foot { margin: -6px -24px -24px; padding: 10px 24px 20px; flex-direction: column; align-items: stretch; gap: 6px; }
  :root[data-site="fluid"] .approve-card .approve-beside { align-self: flex-start; }
  :root[data-site="fluid"] .approve-card .pair-pick-field select.pair-pick { font-size: 16px; }  /* no phone zooms to it */
}
/* The confirmation that it is them, asked over one of these cards when the sign-in is an old one: the same surface
   as the card under it (its corner, its title's face, its field and its press as pills), so it reads as the card's
   next question and not as another product's dialog. */
:root[data-site="fluid"] .verification-dialog { border-color: var(--rule); border-radius: var(--radius-card); box-shadow: var(--card-shadow); }
:root[data-site="fluid"] .verification-dialog[data-size="sm"] { width: min(420px, calc(100vw - 32px)); }
:root[data-site="fluid"] .verification-dialog .dialog-head { padding: 30px 32px 14px; }
:root[data-site="fluid"] .verification-dialog .dialog-title { font-family: "Funnel Display", var(--font-sans); font-size: 24px; line-height: 30px; letter-spacing: -.02em; }
:root[data-site="fluid"] .verification-dialog .dialog-body { padding: 0 32px 20px; }
:root[data-site="fluid"] .verification-dialog .dialog-error { padding: 0 32px 20px; font-size: 13px; }
:root[data-site="fluid"] .verification-dialog .verification-methods .segmented button { font-size: 13.5px; }
:root[data-site="fluid"] .verification-dialog .verification-code-field .help { font-size: 15px; line-height: 22px; }
:root[data-site="fluid"] .verification-dialog .verification-code-entry { height: 56px; }
:root[data-site="fluid"] .verification-dialog .verification-digits { padding: 0 22px; border-radius: var(--radius-cap); }
:root[data-site="fluid"] .verification-dialog .verification-code-entry:focus-within .verification-digits { box-shadow: 0 0 0 4px var(--select); }
:root[data-site="fluid"] .verification-dialog .dialog-foot { padding: 0 32px 32px; border-bottom-left-radius: var(--radius-card); border-bottom-right-radius: var(--radius-card); }
:root[data-site="fluid"] .verification-dialog .dialog-actions .btn-primary,
:root[data-site="fluid"] .verification-dialog .verification-content > :is(.btn, a.btn) { height: 48px; border-radius: var(--radius-cap); font-size: 15px; font-weight: 550; }
:root[data-site="fluid"] .verification-dialog .verification-send .btn, :root[data-site="fluid"] .verification-dialog .verification-countdown { font-size: 13px; }
@media (max-width: 599px) {
  :root[data-site="fluid"] .verification-dialog .dialog-head { padding: 24px 24px 12px; }
  :root[data-site="fluid"] .verification-dialog .dialog-body { padding: 0 24px 18px; }
  :root[data-site="fluid"] .verification-dialog .dialog-foot { padding: 0 24px 24px; }
}
@media (prefers-reduced-motion: reduce) { :root[data-site="fluid"] .page .approve-card { animation: none; } }

/* The 404 (not-found.html): the same card on the same ground, in the first screen alone, the landing's footer under
   it. No picture: the words, and the way back as the card's one press, which says where it goes (the link's own
   name). The card is drawn behind the words and the press, which are two parts of the page. */
:root[data-site="fluid"] body.missing, :root[data-site="fluid"] .missing .topbar { background: var(--ground); }
:root[data-site="fluid"] .missing-body {
  display: grid; grid-template-columns: min(448px, 100%); grid-template-rows: auto auto; justify-content: center; align-content: start;
  align-items: stretch; gap: 0; box-sizing: border-box; width: auto; max-width: none; margin: 0; min-height: calc(100vh - var(--topbar-h));
  padding: max(24px, calc((100vh - 404px) * .44 - var(--topbar-h))) 16px 72px;
}
@supports (height: 100svh) {
  :root[data-site="fluid"] .missing-body {
    min-height: calc(100svh - var(--topbar-h)); padding-top: max(24px, calc((100svh - 404px) * .44 - var(--topbar-h)));
  }
}
:root[data-site="fluid"] .missing-body::before {
  content: ""; grid-area: 1 / 1 / 3 / 2; border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--raised);
  box-shadow: var(--card-shadow);
}
:root[data-site="fluid"] .missing-copy { grid-area: 1 / 1; position: relative; padding: 36px 40px 0; }
:root[data-site="fluid"] .missing-body h1 {
  font-family: "Funnel Display", var(--font-sans); font-size: 34px; line-height: 40px; font-weight: 600; letter-spacing: -.022em; text-wrap: balance;
}
:root[data-site="fluid"] .missing-body p { max-width: none; margin-top: 12px; font-size: 15px; line-height: 23px; }
:root[data-site="fluid"] .missing-copy a { white-space: nowrap; }  /* a link is one piece: it goes to the next line whole */
:root[data-site="fluid"] .missing-gate {
  grid-area: 2 / 1; justify-self: stretch; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: auto; max-width: none; height: 52px; margin: 28px 40px 40px; border-radius: var(--radius-cap);
  background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 550; letter-spacing: -.003em;
  transition: background-color .14s ease-out, box-shadow .14s ease-out;
}
:root[data-site="fluid"] .missing-gate canvas { display: none; }
:root[data-site="fluid"] .missing-gate::after { content: attr(aria-label); }
:root[data-site="fluid"] .missing-gate:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ink); }
@media (hover: hover) { :root[data-site="fluid"] .missing-gate:hover { background: color-mix(in srgb, var(--ink) 84%, var(--paper)); } }
:root[data-site="fluid"] .missing-gate { -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
:root[data-site="fluid"] .missing-gate:active { background: color-mix(in srgb, var(--ink) 76%, var(--paper)); transition-duration: 40ms; }
:root[data-site="fluid"] .missing :is(.wordmark, .theme-word, .btn) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (pointer: coarse) {
  /* a link in the sentence is a 44px target: a larger box drawn over it, in no line's flow */
  :root[data-site="fluid"] .missing-copy a { position: relative; -webkit-tap-highlight-color: transparent; }
  :root[data-site="fluid"] .missing-copy a::after { content: ""; position: absolute; inset: -14px -2px; }
  :root[data-site="fluid"] .missing .topbar :is(.wordmark, .btn) { position: relative; }
  :root[data-site="fluid"] .missing .topbar :is(.wordmark, .btn, .theme-word)::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%);
  }
  :root[data-site="fluid"] .missing .topbar .theme-word { position: relative; }
  :root[data-site="fluid"] .missing .theme-switch { gap: 10px; }
}
@media (max-width: 700px) {
  /* a phone: a third of the way down the free height, where the sign-in card stands */
  :root[data-site="fluid"] .missing-body { padding-top: max(16px, calc((100vh - 410px) * .32 - var(--topbar-h))); }
  @supports (height: 100svh) { :root[data-site="fluid"] .missing-body { padding-top: max(16px, calc((100svh - 410px) * .32 - var(--topbar-h))); } }
  :root[data-site="fluid"] .missing-copy { padding: 20px 24px 0; }
  :root[data-site="fluid"] .missing-body h1 { font-size: 30px; line-height: 36px; letter-spacing: -.022em; }
  :root[data-site="fluid"] .missing-gate { margin: 24px 24px 24px; }
}

/* ----------------------------------------------------------- coding-agent setup */
.portal-setup { min-width: 0; max-width: 760px; container-type: inline-size; }
.home-setup-lead { display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; gap: 10px 14px; min-height: 30px; margin-bottom: 12px; }
.home-setup-title { grid-column: 2; font-size: 15px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.home-setup-agents, .home-setup-os { grid-column: 3; }
.home-setup-agents { display: inline-flex; align-items: center; gap: 10px; }
.home-setup-agents[hidden], .home-setup-os[hidden], .home-setup-cli[hidden] { display: none; }
.home-setup-agent { display: block; width: 16px; height: 16px; object-fit: contain; opacity: .7; }
.home-setup-os { font-size: 12px; color: var(--ink-3); }
.home-setup-switch { grid-column: 4; justify-self: end; display: inline-flex; padding: 2px; border: 1px solid var(--rule-2); border-radius: var(--radius-cap); }
.home-setup-switch button { height: 24px; padding: 0 11px; border: 0; border-radius: var(--radius-cap); background: none; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.home-setup-switch button[data-on] { background: var(--ink); color: var(--paper); cursor: default; }
.home-setup-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .home-setup-switch button:not([data-on]):hover { color: var(--ink); } }
.home-setup-line { padding: 11px 11px 11px 18px; border-radius: var(--radius-float); background: var(--ink); color: var(--paper); }
.home-setup-line .cmd-box { align-items: center; gap: 14px; min-height: 34px; padding: 0; border: 0; background: none; }
.home-setup-line .cmd-box code { padding: 0 0 0 1.6em; text-indent: -1.6em; font-size: 14px; color: inherit; }
.home-setup-line .cmd-box code::before { content: attr(data-glyph); display: inline-block; width: 1.6em; text-indent: 0; color: var(--ink-3); }
.home-setup-line .copy-btn { display: inline-grid; place-items: center; align-self: center; width: 34px; height: 34px; padding: 0; margin: 0; border: 0; border-radius: var(--radius-float); background: var(--paper); color: var(--ink); }
.home-setup-line .copy-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.home-setup-line .copy-btn > span[aria-hidden="true"], .home-setup-line .copy-btn .home-setup-icon-check,
.home-setup-line .copy-btn[data-state="done"] .home-setup-icon-copy { display: none; }
.home-setup-line .copy-btn[data-state="done"] .home-setup-icon-check { display: block; }
.home-setup-line .cmd-part { white-space: normal; }
/* the agent's line is never cut: its address, too long for a phone's bar with a port, breaks where it must (the
   install command keeps its flags whole) */
.home-setup-line code[data-glyph=">"] .cmd-word { white-space: normal; }
.home-setup-cli { display: grid; gap: 10px; margin-top: 20px; }
.home-setup-cli > p { color: var(--ink-2); }
@container (max-width: 560px) {
  .home-setup-lead { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; }
  .home-setup-switch { grid-column: 1; grid-row: 1; justify-self: center; margin-bottom: 6px; }
  .home-setup-title { grid-column: 1; grid-row: 2; }
  .home-setup-agents, .home-setup-os { grid-column: 1; grid-row: 3; min-height: 16px; line-height: 16px; }
  .home-setup-line { padding: 10px 10px 10px 14px; }
  .home-setup-line .cmd-box { align-items: flex-start; gap: 10px; }
  .home-setup-line .cmd-box code { padding-top: 6px; font-size: 13px; }
}
:root[data-theme="dark"] .home-setup-agent { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home-setup-agent { filter: invert(1); }
}

/* ---------------------------------------------------------------- the 404 page */

/* not-found.html, what the console's origin answers a browser's page load that nothing serves (specifications/10_CONSOLE.md, "Public pages"). It wears
   the landing's top bar (portal.clusy.io/, the site's portal.css), not the console's: no rule under it, the wordmark
   larger and on the page's 1120px column, Sign in or Dashboard and the theme's two words at its end. The words below
   start on the same column, as the landing's opening lines do. */
.missing { --topbar-h: 80px; }
.missing .topbar { padding: 0 max(24px, calc((100vw - 1120px) / 2)); border-bottom: 0; }
.missing .wordmark { gap: 9px; font-size: 17px; }
.missing .wordmark svg.mark { width: 24px; height: 24px; }
.missing .wordmark-by { margin-left: 4px; font-size: 13px; }
/* the console's phone rules (40px targets, a tight bar) are its own: this bar keeps the landing's sizes at every width */
.missing .btn, .missing .theme-word { min-height: 0; }
.missing .topbar-end { gap: 18px; }
/* The words and the portal sit as the landing's opening lines and its Macintosh do: the words on the left, the portal
   (a link home, drawn in type by not-found.js) in the narrower column; below 700px the portal follows the words. */
.missing-body {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); align-items: center; gap: 36px;
  width: calc(100% - 48px); max-width: 1120px; margin: 0 auto; padding: 102px 0 96px;
}
.missing-gate { justify-self: center; width: 100%; max-width: 300px; color: var(--ink); text-decoration: none; }
.missing-gate canvas { display: block; width: 100%; aspect-ratio: 6 / 7; font-family: var(--font-mono); user-select: none; }
.missing-gate:focus-visible { outline-offset: 8px; }
.missing-warp { position: fixed; inset: 0; z-index: 50; width: 100vw; height: 100vh; pointer-events: none; font-family: var(--font-mono); }
.missing-body h1 { font-size: clamp(44px, 5.7vw, 72px); font-weight: 500; letter-spacing: -.06em; line-height: 1.04; text-wrap: balance; }
.missing-body p { max-width: 520px; margin-top: 26px; font-size: 17px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 900px) {
  .missing-body { grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; padding: 88px 0 72px; }
  .missing-body h1 { font-size: clamp(42px, 6.3vw, 61px); }
}
@media (max-width: 700px) {
  .missing { --topbar-h: 68px; }
  .missing .topbar { padding-inline: 20px; }
  .missing .wordmark { gap: 8px; font-size: 15px; }
  .missing .wordmark svg.mark { width: 20px; height: 20px; }
  .missing .wordmark-by { margin-left: 3px; font-size: 12px; }
  .missing-body { display: block; width: calc(100% - 40px); padding: 74px 0 72px; }
  .missing-gate { display: block; max-width: 240px; margin: 44px auto 0; }
  .missing-body h1 { font-size: clamp(34px, 10vw, 52px); letter-spacing: -.055em; }
  .missing-body p { max-width: 400px; margin-top: 20px; font-size: 15px; }
}
/* Its footer is the landing's (the site's portal.css .home-footer, rule for rule), in the company's type: Golos Text,
   and Funnel Display for the wordmark. The page is a column, so on a short page the footer sits at the bottom and the
   words and the portal take the room between. */
body.missing { display: flex; flex-direction: column; }
.missing-body { flex: 1 0 auto; }
.missing .home-footer { --footer-paper: var(--paper); --footer-ink: 160 6% 7%; --footer-mute: 160 3% 40%; --footer-faint: 160 3% 41%; --footer-hairline: hsl(var(--footer-ink) / .11); --footer-wordmark-alpha: .12; margin: 0; padding: 56px 20px 0; border-top: 1px solid var(--footer-hairline); color: hsl(var(--footer-ink)); background: var(--footer-paper); font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; }
.missing .home-footer-inner { position: relative; max-width: 1152px; margin: 0 auto; z-index: 1; }
.missing .home-footer-main { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.missing .home-footer-brand { display: inline-flex; color: hsl(var(--footer-ink)); text-decoration: none; border-radius: var(--radius-float); }
.missing .home-footer-brand:hover { text-decoration: none; }
.missing .home-footer-mark { display: block; width: 44px; height: 44px; flex: none; fill: currentColor; }
.missing .home-footer-thesis { margin-top: 16px; max-width: 336px; color: hsl(var(--footer-mute)); font-size: clamp(15px, calc(14.4px + .1vw), 16px); line-height: 1.6; }
.missing .home-footer-thesis a { color: inherit; text-decoration-color: hsl(var(--footer-mute) / .5); }
.missing .home-footer-thesis a:hover { color: hsl(var(--footer-ink)); text-decoration-color: currentColor; }
.missing .home-footer-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.missing .home-footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; font-size: clamp(15px, calc(14.4px + .1vw), 16px); }
.missing .home-footer-links a { display: inline-block; padding: 10px 0; line-height: 24px; color: hsl(var(--footer-mute)); text-decoration: none; text-underline-offset: 4px; }
.missing .home-footer-links a:hover { color: hsl(var(--footer-ink)); text-decoration: underline; }
.missing .home-footer-socials { display: grid; grid-template-columns: repeat(8, minmax(0, 44px)); gap: 0; width: 100%; margin-left: -10px; align-self: stretch; }
.missing .home-footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 44px; color: hsl(var(--footer-faint)); border-radius: var(--radius-float); text-decoration: none; }
.missing .home-footer-socials a:hover { color: hsl(var(--footer-ink)); background: hsl(var(--footer-ink) / .05); }
.missing .home-footer-social-icon { display: block; flex: none; }
.missing .home-footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--footer-hairline); color: hsl(var(--footer-faint)); font-size: 14px; line-height: 1.5; }
.missing .home-footer-wordmark { width: min(100%, 1480px); margin: clamp(40px, 5vw, 80px) auto 0; height: .48em; overflow: clip; color: hsl(var(--footer-ink) / var(--footer-wordmark-alpha)); user-select: none; pointer-events: none; font-family: "Funnel Display", "Golos Text", sans-serif; font-size: clamp(80px, 28vw, 420px); font-weight: 700; }
.missing .home-footer-wordmark span { display: block; text-align: center; letter-spacing: .08em; white-space: nowrap; line-height: .86; transform: translateY(-.04em); }
:root[data-theme="dark"] .missing .home-footer { --footer-ink: 150 8% 93%; --footer-mute: 150 4% 57%; --footer-faint: 150 4% 50%; --footer-hairline: hsl(var(--footer-ink) / .12); --footer-wordmark-alpha: .16; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .missing .home-footer { --footer-ink: 150 8% 93%; --footer-mute: 150 4% 57%; --footer-faint: 150 4% 50%; --footer-hairline: hsl(var(--footer-ink) / .12); --footer-wordmark-alpha: .16; }
}
@media (min-width: 640px) {
  .missing .home-footer { padding: 64px 24px 0; }
  .missing .home-footer-main { flex-direction: row; align-items: flex-end; }
  .missing .home-footer-menu { align-items: flex-end; }
  .missing .home-footer-links { display: block; text-align: right; text-wrap: balance; font-size: 16px; line-height: 1.5; }
  .missing .home-footer-links a { margin: 5px 0 5px 22px; padding: 0 0 2px; }
  .missing .home-footer-socials { display: flex; flex-wrap: wrap; gap: 4px; width: auto; margin-left: 0; align-self: auto; }
  .missing .home-footer-socials a { width: 36px; height: 36px; }
}
@media (min-width: 1024px) { .missing .home-footer { padding-inline: 32px; } }
/* Below 360px the bar holds the word Fluid, the button and the theme only: who makes it gives way first, as it does
   in the console's bar. Dashboard is the wider word, so for a signed-in visitor it gives way below 380px, as on the
   landing. */
@media (max-width: 359px) {
  .missing .wordmark-by { display: none; }
}
@media (max-width: 379px) {
  .missing .topbar[data-signed-in] .wordmark-by { display: none; }
}

/* ---------------------------------------------------------------- misc */

.not-found { justify-items: start; }
.not-found p { color: var(--ink-2); }
.load-error { max-width: 640px; }

/* The workspace a sign-in is for, for a person in several (the approval pages): a native select in the facts' value
   column, its label the fact's name, level with it. */
.approve-card > .kv > dt:has(> label) { align-self: center; }
.approve-card > .kv .workspace-pick-field { display: flex; width: 100%; }
.approve-card > .kv select.workspace-pick { width: 100%; max-width: 100%; }
