/*
 * ILTTU styles: the design tokens, the components and the layout of every page.
 * All colors are OKLCH.
 *
 * Served under style-src 'self': this file is the only place styling may live.
 * A style="…" attribute in a template is blocked by the CSP.
 */

/* Webfonts, vendored and self-hosted — see ../fonts/VENDORED.md.
 * Variable fonts, so one file per family covers every weight these styles use. */
@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/gabarito-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Color: mostly paper and ink. */
  --air: oklch(0.99 0.005 150);
  --surface: oklch(1 0 0);
  --ink: oklch(0.23 0.02 165);
  --ink-hover: oklch(0.32 0.025 165);
  --pine: oklch(0.20 0.015 165);
  --muted: oklch(0.46 0.02 165);
  --body-text: oklch(0.40 0.02 165);
  --line: oklch(0.92 0.01 150);
  --line-soft: oklch(0.94 0.008 150);
  --control-line: oklch(0.88 0.01 150);
  --mint: oklch(0.86 0.14 165);
  --mint-text: oklch(0.48 0.10 165);
  --lemon: oklch(0.91 0.17 95);
  --lemon-soft: oklch(0.95 0.11 95);
  --mark-dot: oklch(0.72 0.17 80);
  --stripe-a: oklch(0.975 0.004 150);
  --stripe-b: oklch(0.955 0.006 150);

  /* Type: three families, one job each. */
  --font-display: "Gabarito", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape and motion. */
  --radius-control: 12px;
  --radius-panel: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --slow: 320ms;
  --fast: 120ms;

  /* Layout: marketing grid, 1200px max, 32px outer margin (20px on mobile). */
  --wrap-max: 1200px;
  --gutter: 32px;
  /* The signed-in app: its content column's cap. */
  --content-max: 1180px;
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--air);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--ink); text-decoration: none; }

:focus-visible { outline: 2px solid var(--mint-text); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* The short mark: the name in a mint pill with a full stop. */
.mark { font-family: var(--font-display); font-weight: 800; display: inline-flex; align-items: center; }
.mark-pill { background: var(--mint); color: var(--pine); padding: 1px 10px; border-radius: 999px; }
.mark-dot { color: var(--mark-dot); font-size: 1.35em; line-height: .5; }
.mark-pill-sm { font-family: var(--font-display); font-weight: 800; font-size: 14px; padding: 1px 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--air) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.mark-link { font-size: 21px; }
.site-nav { display: flex; gap: 24px; align-items: center; font-size: 15px; }
.nav-link { font-weight: 600; }
.nav-link:hover { color: var(--ink-hover); }

/* Buttons. Sentence case, 12px radius; primary is ink on light surfaces. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-control);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:disabled, .btn:disabled:hover { color: oklch(0.6 0.01 150); background: oklch(0.95 0.006 150); border-color: oklch(0.95 0.006 150); cursor: not-allowed; box-shadow: none; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--ink-hover); box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.btn-xs { padding: 6px 12px; border-radius: 9px; font-size: 13px; }

/* The highlighter. One per view: here, the payoff of the hero headline. */
.hl {
  background: var(--lemon);
  color: var(--pine);
  padding: 0 .14em;
  border-radius: .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* The one signature animation: the lemon sweeps in left to right. Shown static
 * when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hl {
    background: linear-gradient(var(--lemon), var(--lemon)) no-repeat 0 0 / 100% 100%;
    animation: hl-sweep var(--slow) var(--ease) both;
  }
  @keyframes hl-sweep {
    from { background-size: 0 100%; }
    to { background-size: 100% 100%; }
  }
}

/* Hero */
.hero {
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; min-width: 0; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-lede {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--body-text);
  max-width: 540px;
  text-wrap: pretty;
}

/* The report-viewer preview beside the hero copy. */
.preview { position: relative; padding-bottom: 28px; min-width: 0; }
.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: 0 32px 64px -36px oklch(0.3 0.04 165 / .4);
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.preview-bar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.preview-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The drawn Copy link is part of the picture, so it takes no pointer or hover. */
.preview .btn { pointer-events: none; }
.preview-body {
  height: 300px;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px);
}

/* Toast: ink surface, the accent on the container, the link in the highlighter. */
.toast {
  position: absolute;
  left: -16px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--surface);
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 20px 40px -16px oklch(0.23 0.02 165 / .55);
  max-width: calc(100% - 16px);
  font-size: 14px;
  line-height: 1.4;
}
.toast-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-link { font-family: var(--font-mono); background: var(--lemon); color: var(--pine); padding: 0 4px; border-radius: 4px; }

@media (max-width: 640px) {
  .toast { left: 0; max-width: 100%; }
}

/* Not found */
.notfound { padding-block: clamp(48px, 8vw, 104px); display: flex; flex-direction: column; gap: 24px; }
.notfound-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 760px;
  text-wrap: balance;
}
.notfound p { margin: 0; }

/* Text link: the underline marker for running text. */
.text-link { font-weight: 600; background: linear-gradient(transparent 60%, var(--lemon-soft) 60%); }
.text-link:hover { background: var(--lemon); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 28px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .mark { font-size: 18px; color: var(--ink); }

/* Quiet small button: sign out, and actions beside a row. */
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--control-line); }
.btn-quiet:hover { border-color: var(--ink); background: oklch(0.95 0.006 150); }
.btn-quiet:disabled, .btn-quiet:disabled:hover { background: transparent; border-color: var(--line); }
.btn-sm { min-height: 32px; padding: 7px 12px; border-radius: 9px; font-size: 13px; }
.btn-quiet.btn-sm { padding: 5.5px 10.5px; }

/* Ghost small button: an action repeated on every row, its icon before its word, with no border and a raised ground on hover. */
.btn-ghost { gap: 6px; background: transparent; color: var(--ink); }
.btn-ghost:hover { background: oklch(0.95 0.006 150); }
.btn-ghost-destructive { color: oklch(0.5 0.16 340); }
.btn-ghost-destructive:hover { background: oklch(0.97 0.03 340); }
.btn .icon { width: 18px; height: 18px; }

/* The signed-in app: the top bar over a fluid column. */
.app { display: flex; flex-direction: column; min-height: 100vh; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lemon);
  color: var(--pine);
  font-size: 13px;
  font-weight: 700;
}
.app-main { min-width: 0; max-width: var(--content-max); width: 100%; margin: 0 auto; padding: 32px clamp(20px, 3vw, 40px) 80px; display: flex; flex-direction: column; gap: 24px; }
.app-head { display: flex; flex-direction: column; gap: 4px; }
.app-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.025em; }
.app-sub { margin: 0; font-size: 15px; color: var(--muted); }
.empty { margin: 0; padding: 48px 24px; text-align: center; border: 1px dashed var(--control-line); border-radius: 16px; color: var(--body-text); }

/* The narrow menu, the app's top bar's and the console rail's: a <details> whose summary is the button at the bar's right, three lines while closed and an X while open.
 * It holds only the summary; while it is closed, the bar's or the rail's sections and account are hidden, and open they show in its flow, pushing the page down.
 * A browser without :has() shows no button, and the sections and account stay stacked under the bar. */
.rail-menu { display: none; }
.rail-menu > summary { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; list-style: none; }
.rail-menu > summary::-webkit-details-marker { display: none; }
.rail-menu > summary:focus-visible { outline: none; box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.rail-menu[open] .rail-menu-lines, .rail-menu:not([open]) .rail-menu-x { display: none; }
.rail-menu-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: oklch(0.86 0.14 340); box-shadow: 0 0 0 2px var(--pine); }
.rail-menu[open] .rail-menu-dot, .rail-menu[open] .rail-menu-closed, .rail-menu:not([open]) .rail-menu-opened { display: none; }

/* The app's top bar: the mark, the tabs, and the account menu at the right.
 * The account menu is a <details> whose panel floats under its button; the person's things are drawn twice, there and in the narrow menu, as a closed <details> hides its panel whatever the CSS. */
.app-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; height: 64px; box-sizing: border-box; padding: 0 clamp(16px, 3vw, 40px); background: var(--surface); border-bottom: 1px solid var(--line); }
.app-bar-mark { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; font-size: 18px; }
.app-tabs { display: flex; align-self: stretch; gap: 4px; flex: 1; min-width: 0; }
.app-tab { display: flex; align-items: center; gap: 12px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.app-tab:hover { color: var(--ink); }
.app-tab[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.app-tab .icon { display: none; }
.app-account > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; list-style: none; }
.app-account > summary::-webkit-details-marker { display: none; }
.app-account > summary:focus-visible { outline: none; box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.app-account[open] > summary { border-color: var(--ink); }
.app-account-chevron { width: 16px; height: 16px; transition: transform var(--fast) var(--ease); }
.app-account[open] .app-account-chevron { transform: rotate(180deg); }
.app-account-panel { position: absolute; top: 60px; right: clamp(16px, 3vw, 40px); width: 280px; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px oklch(0.2 0.015 165 / .14); }
.app-person-who { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px; min-width: 0; }
.app-person-email { min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-person-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; box-sizing: border-box; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.app-person-item:hover, .app-person-item[aria-current="page"] { background: var(--stripe-a); }
.app-person-out { margin: 4px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.app-bar-person { display: none; }

@media (max-width: 640px) {
  @supports selector(:has(a)) { .rail-menu { display: block; } }
  .app-bar { flex-wrap: wrap; height: auto; gap: 0; padding: 0; }
  .app-bar-mark { height: 56px; box-sizing: border-box; padding: 0 64px 0 16px; }
  .app-account { display: none; }
  .app-tabs { flex-basis: 100%; flex-direction: column; gap: 2px; padding: 8px 12px 0; border-top: 1px solid var(--line); }
  .app-tab { min-height: 44px; padding: 12px 10px; border-radius: 10px; font-size: 14px; }
  .app-tab .icon { display: block; }
  .app-tab[aria-current="page"] { box-shadow: none; background: var(--stripe-a); }
  .app-bar-person { display: flex; flex-direction: column; gap: 2px; flex-basis: 100%; margin: 12px 12px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
  .app-bar-person .app-person-who { padding: 4px 10px 8px; }
  .app-bar-person a.app-person-item { color: var(--muted); }
  .app-bar-person a.app-person-item[aria-current="page"] { color: var(--ink); }
  .app-bar-person .app-person-out { margin: 0; padding: 0; border: 0; }
  .app-bar-person .app-person-out .app-person-item { justify-content: center; border: 1.5px solid var(--control-line); border-radius: var(--radius-control); }
  .app-bar-person .app-person-out .icon { display: none; }
  .app-bar:has(> .rail-menu:not([open])) > :is(.app-tabs, .app-bar-person) { display: none; }
}

/* Error pages: an illustration, a plain headline, one line, one action. */
.error { padding-block: clamp(48px, 8vw, 104px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.error-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.03em; max-width: 760px; text-wrap: balance; }
.error-body { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body-text); max-width: 560px; text-wrap: pretty; }
.error-ref { margin: 0; font-size: 14px; color: var(--muted); }
.error-ref code { font-family: var(--font-mono); font-size: 14px; color: var(--ink); background: oklch(0.95 0.006 150); padding: 4px 10px; border-radius: 9px; user-select: all; }
.btn-lg { min-height: 52px; padding: 15px 24px; font-size: 16px; line-height: 1.2; }
.btn-quiet.btn-lg { padding: 13.5px 22.5px; }
.error .text-link { font-size: 16px; padding: 0 2px; }
.error-who { margin: 0; font-size: 15px; color: var(--muted); }
.error-who strong { font-weight: 600; color: var(--ink); }
.error-who .text-link { font-size: 15px; border: 0; color: var(--ink); font-family: inherit; cursor: pointer; }

/* Illustrations: 160px, a pale round ground, 3px ink outlines, lemon and mint accents. */
.ill { display: block; width: 160px; height: 160px; color: var(--ink); overflow: visible; }
.ill-ground { fill: oklch(0.96 0.008 150); }
.ill-ink { stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill-faint { stroke: oklch(0.8 0.01 150); }
.ill-dash { stroke-dasharray: 4 6; }
.ill-none { fill: none; }
.ill-paper { fill: var(--surface); }
.ill-lemon { fill: var(--lemon); }
.ill-mint { fill: var(--mint); }
.ill-dot { fill: var(--mark-dot); }
.ill-marker { fill: none; stroke: var(--lemon); stroke-width: 10; stroke-linecap: round; }
.ill-word { font-family: var(--font-display); font-weight: 800; font-size: 19px; fill: var(--pine); }

/* The 404's highlight over nothing plays the highlight sweep; static under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .ill-sweep { transform-box: fill-box; transform-origin: left center; animation: ill-sweep var(--slow) var(--ease) both; }
  @keyframes ill-sweep {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}
/* An error inside the app: the app's column, with the error page's breathing room above and below. */
.app-main.error { padding-block: clamp(48px, 8vw, 104px); align-items: flex-start; }

/* The console: a dark pine rail beside a column that grows with the viewport, with no max-width, for the operator's tables.
 * The badge's color, production pink, also tops the column. */
.console { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.console-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 14px;
  background: var(--pine);
  color: oklch(0.96 0.006 150);
}
.console-rail-head { display: flex; flex-direction: column; gap: 10px; padding-inline: 4px; }
.console-rail .mark-link { font-size: 18px; }
.console-rail-meta { display: flex; align-items: center; gap: 8px; }
.console-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: oklch(0.76 0.01 150); }
.env-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: oklch(0.86 0.14 340); color: var(--pine); }
.console-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.console-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: oklch(0.76 0.01 150); }
.console-nav-item:hover { color: oklch(0.97 0.006 150); }
.console-nav-item[aria-current="page"] { background: oklch(0.28 0.018 165); color: oklch(0.97 0.006 150); }
.console-nav-label { flex: 1; }
.badge-soon { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: oklch(0.3 0.015 165); color: oklch(0.76 0.01 150); }
.console-account { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid oklch(0.28 0.015 165); }
.console-account-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.console-account-email { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-account-role { font-size: 12px; color: oklch(0.76 0.01 150); }
.console-account form { flex-basis: 100%; }
.console-account .btn { width: 100%; justify-content: center; color: inherit; border-color: oklch(0.36 0.015 165); }
.console-account .btn:hover { border-color: oklch(0.76 0.01 150); background: oklch(0.27 0.018 165); }
.console-main { min-width: 0; padding: 32px clamp(20px, 3vw, 40px) 80px; display: flex; flex-direction: column; gap: 24px; border-top: 3px solid oklch(0.86 0.14 340); }
.console-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 22px; }
.console-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.console-row:last-child { border-bottom: 0; }
.console-person { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.console-role { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: oklch(0.95 0.006 150); white-space: nowrap; flex-shrink: 0; }
.console-soon { padding-block: clamp(48px, 8vw, 104px) 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.console-soon .text-link { font-size: 16px; padding: 0 2px; }
@media (max-width: 640px) {
  .console { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .console-rail { position: relative; height: auto; gap: 0; padding: 0; }
  .console-rail-head { height: 56px; flex-direction: row; align-items: center; gap: 12px; padding: 0 64px 0 16px; }
  .console-rail .mark-link { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
  .console-rail:has(> .rail-menu:not([open])) > :is(.console-nav, .console-account) { display: none; }
  .console-nav { padding: 8px 12px 0; border-top: 1px solid oklch(0.28 0.015 165); }
  .console-nav-item { min-height: 44px; padding: 12px 10px; }
  .console-account { margin: 16px 12px; }
  .console-account .btn { min-height: 44px; padding: 10px 12px; border-radius: var(--radius-control); }
}

/* The not-an-admin page: the console's pine bar, with no rail, over the error page. */
.console-bar { background: var(--pine); color: oklch(0.96 0.006 150); }
.console-bar-inner { max-width: var(--wrap-max); margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 12px; }
.console-bar .mark { font-size: 18px; }
.console-email { color: var(--ink); overflow-wrap: anywhere; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* People: the invite form, the notice a form's outcome leaves, and the lists. */
.invite-form { margin: 0; display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
/* With sharing, the invitation's address and the owner of a workspace to share are fields one above the other, with Invite below them. */
.invite-share { gap: 16px; }
.invite-field { display: flex; flex-direction: column; gap: 6px; }
.invite-field .input { flex: none; }
.field-optional { font-weight: 400; color: var(--muted); }
.field-label { font-size: 13px; font-weight: 600; }
.invite-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--surface); border: 1.5px solid var(--control-line); border-radius: var(--radius-control); padding: 11px 14px; outline: none; }
.input:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.input-error, .input-error:focus-visible { border-color: oklch(0.5 0.16 340); box-shadow: 0 0 0 4px oklch(0.92 0.07 340); }
.field-error { margin: 0; font-size: 13px; font-weight: 500; color: oklch(0.5 0.16 340); }
.btn-input { font-size: 15px; padding: 11px 20px; }
.notice { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--surface); padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.notice-mark { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--mint); color: var(--pine); }
.notice-info .notice-mark { background: oklch(0.36 0.015 165); color: oklch(0.96 0.006 150); }
.notice-error .notice-mark { background: oklch(0.86 0.14 340); }
/* The check in a filled circle, a notice's or a toast's: smaller than an icon beside a label, and heavier, to match the circle's bold "i" and "!". */
.icon-mark { width: 16px; height: 16px; stroke-width: 2.5; }
/* A notice runs its column's width while its text keeps the 640px measure, so its action takes the space between them and sits at the right edge. */
.notice-text { flex: 1; max-width: 640px; overflow-wrap: anywhere; }
.notice-text strong { font-weight: 600; }
.notice form { margin: 0; display: flex; }
.notice > form, .notice > .notice-action { margin-left: auto; }
.notice-action { font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--surface); border: 0; padding: 0 2px; cursor: pointer; background: linear-gradient(transparent 60%, oklch(0.52 0.11 80) 60%); }
.notice-action:hover { background: oklch(0.52 0.11 80); }
.console-section { display: flex; flex-direction: column; gap: 12px; }
.console-h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.console-row form { margin: 0; }
.console-row .btn-sm { padding: 8.5px 13.5px; }
.console-row .btn-quiet.btn-sm { padding: 7px 12px; }
.console-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.console-meta { font-size: 13px; font-weight: 400; color: var(--muted); }
.console-joined { white-space: nowrap; }
.avatar-invited { background: transparent; border: 1.5px dashed oklch(0.8 0.01 150); color: var(--muted); }
.console-empty { margin: 0; padding: 14px 0; font-size: 14px; color: var(--muted); }
.console-actions { display: flex; gap: 8px; }
.console-actions:has(.console-joined) { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.console-meta-deleting, .console-meta-expired { color: oklch(0.45 0.15 340); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; padding: 0 2px; }
.pager .text-link { padding: 0 2px; }
.pager-older { margin-left: auto; }
@media (max-width: 640px) {
  /* An account's join date moves under its address, which then has the row's width. */
  .console-row:has(.console-joined) { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .console-joined { padding-left: 44px; }
  /* A pending invitation's buttons move under the person. */
  .console-row:has(.console-actions) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* An account's join date and Reset authenticator move under its address together. */
  .console-actions:has(.console-joined) { padding-left: 44px; }
  .console-actions .console-joined { padding-left: 0; }
}

/* Email: a row is its word, then what's known of the event, which wraps under the word on a narrow screen, then when. */
.email-list, .email-pager { max-width: 880px; box-sizing: border-box; }
.email-pager { flex-wrap: wrap; justify-content: flex-start; }
.email-pager form { margin: 0; }
.email-pager button { font: inherit; font-weight: 600; color: var(--ink); border: 0; padding: 0 2px; cursor: pointer; }
.email-found-title { overflow-wrap: anywhere; }
.email-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 16px; padding: 14px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.email-row:last-child { border-bottom: 0; }
.email-row-word { flex: 0 0 96px; }
.email-row-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.email-row-body form { margin: 0; }
.email-row-when { flex: 0 0 auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.email-kind, .email-said { font-family: var(--font-mono); font-size: 12.5px; overflow-wrap: anywhere; }
.email-said { color: var(--muted); }
.email-address { font: inherit; font-weight: 600; line-height: 1.4; color: var(--ink); background: transparent; border: 0; padding: 0; cursor: pointer; text-align: left; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: oklch(0.88 0.01 150); text-underline-offset: 3px; }
.task-pill.email-word-good { background: oklch(0.96 0.04 165); color: oklch(0.4 0.1 165); }
.task-pill.email-word-bad { background: oklch(0.97 0.03 340); color: oklch(0.45 0.15 340); }
.email-none { margin: 0; padding: 14px 0; font-size: 15px; }

/* System: the rail's count of tasks to run, in pop, and Maintenance's task rows.
 * Pop pink marks only what the count stands for: the count, the border of each row it counts, and the Stalled and Failed pills.
 * A counted row's border, a deeper pink for 3:1 contrast against the card, sits 8px in from the card's edge, its text stays in line with the other rows', and a hidden "To run" names it to screen readers. */
.rail-count { font-size: 12px; font-weight: 600; line-height: 1.4; padding: 3px 9px; border-radius: 999px; background: oklch(0.86 0.14 340); color: var(--pine); white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.console-main > .console-section { gap: 20px; }
.task-group { display: flex; flex-direction: column; gap: 10px; }
.task-group-head { display: flex; flex-direction: column; gap: 2px; }
.task-group-head .console-meta { margin: 0; }
.console-h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.task-row { font-size: 14px; }
.console-row.task-row-to-run, .console-row.task-row-to-run:last-child { border: 1.5px solid oklch(0.65 0.16 340); border-radius: 12px; padding: 14px 12.5px; margin: 6px -14px; }
.task-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.task-title { font-weight: 600; overflow-wrap: anywhere; }
.task-what { color: var(--body-text); }
.task-meta { overflow-wrap: anywhere; }
.task-error { font-size: 13px; font-weight: 500; color: oklch(0.5 0.16 340); }
.task-hint { font-size: 13px; color: var(--muted); }
.task-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.task-pill { font-size: 12px; font-weight: 600; line-height: 1.4; padding: 3px 9px; border-radius: 999px; background: oklch(0.95 0.006 150); color: var(--ink); white-space: nowrap; }
.task-pill-pop { background: oklch(0.92 0.07 340); color: oklch(0.4 0.14 340); }

/* New features: each feature's row, its state as the segmented control, and who has it with the give form.
 * Every control here is quiet: the view's one primary button stays Maintenance's. */
.console-main > .features { gap: 10px; }
.features .task-group-head { gap: 4px; }
.feature-row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 0; font-size: 14px; }
.feature-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.feature-info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feature-title { font-weight: 600; overflow-wrap: anywhere; }
.feature-what { color: var(--body-text); }
.feature-meta { overflow-wrap: anywhere; }
.segmented { flex: 0 1 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: oklch(0.95 0.006 150); border-radius: 12px; padding: 4px; font-size: 14px; font-weight: 600; text-align: center; }
.segmented form { display: flex; }
.segmented-item { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; font: inherit; line-height: 1.55; padding: 9px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.segmented-item:hover { color: var(--ink); background: oklch(0.92 0.008 150); }
.segmented-item:focus-visible { outline: none; box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.segmented-item.is-selected { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px oklch(0.3 0.02 165 / .14); cursor: default; }
.feature-people { display: flex; flex-direction: column; gap: 12px; background: oklch(0.975 0.007 150); border-radius: 12px; padding: 14px 18px; }
.feature-people-head { display: flex; flex-direction: column; gap: 2px; }
.feature-people-head .console-meta { margin: 0; }
.feature-people-title { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.feature-people .console-empty { padding: 0; }
.feature-holders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feature-holders li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.feature-holders li:last-child { border-bottom: 0; }
.give-form { margin: 0; display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.give-form .input { flex-basis: 240px; }
.btn-give, .limits-save .btn { font-size: 15px; padding: 9.5px 16.5px; border-radius: var(--radius-control); }
.field-hint { margin: 0; font-size: 13px; color: var(--muted); }

/* People's Versions: who has the versions permission, drawn as a feature's Who has it, where a person's line wraps and their Take back drops under them when narrow, someone it is still being taken back from wears a white pill, and Take back confirms in place of the row with its words above its buttons. */
.people-versions { max-width: 680px; }
.versions-holders li { flex-wrap: wrap; gap: 8px 12px; }
.versions-person { flex-wrap: wrap; gap: 6px 10px; }
.task-pill-white { background: var(--surface); }
.versions-confirm { flex: 1 1 100%; margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 14px 0 6px; }
.versions-confirm p { margin: 0; font-size: 14px; line-height: 1.5; }
.versions-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .versions-holders .btn-sm { min-height: 44px; }
  .versions-confirm-actions .btn { flex: 1; min-height: 44px; }
}

/* A workspace's Versions: Keep versions' row with its switch, whose hit area reaches 44px around the 40 by 24 track, and Turn off's confirmation on the neutral tint in place of the row, its buttons sharing the width when narrow.
 * The section's container is always on the page, for htmx to swap, and draws no box of its own, so an empty one adds no gap. */
.ws-versions { display: contents; }
.versions { max-width: 640px; }
.versions-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.versions-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.versions-row-name { font-size: 15px; font-weight: 600; }
.versions-switch { margin: 0; display: flex; flex-shrink: 0; }
.switch { position: relative; width: 40px; height: 24px; border: 0; border-radius: 999px; background: oklch(0.88 0.01 150); display: flex; align-items: center; padding: 3px; box-sizing: border-box; cursor: pointer; flex-shrink: 0; }
.switch::before { content: ""; position: absolute; inset: -10px -2px; }
.switch::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px oklch(0.2 0.015 165 / .25); }
.switch.is-on { background: oklch(0.45 0.1 165); justify-content: flex-end; }
.switch:focus-visible { outline: 2px solid oklch(0.45 0.1 165); outline-offset: 2px; }
.versions-off { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 12px; background: oklch(0.95 0.006 150); }
.versions-off p { margin: 0; font-size: 14px; line-height: 1.5; }
.versions-line { margin: 0; font-size: 15px; line-height: 1.5; }
.versions .console-meta { margin: 0; }
@media (max-width: 640px) {
  .versions-row { padding: 10px 8px 10px 16px; }
}

/* The console's Answers: Find, the answer found on its card with Take down or Put back, and the Down list, where a put back confirms in place on the neutral panel, as Leave does. */
.find-form, .takedown-form { margin: 0; display: flex; flex-direction: column; gap: 6px; max-width: 680px; }
.input-mono { font-family: var(--font-mono); font-size: 14px; line-height: 1.7; }
.find-form .input { flex-basis: 320px; }
.found { display: flex; flex-direction: column; gap: 18px; max-width: 680px; padding: 22px; box-sizing: border-box; }
.found-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.found-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 320px; }
.found-name .console-h2 { overflow-wrap: anywhere; }
.found-link, .down-link { font-family: var(--font-mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.down-link { font-size: 12px; }
.found-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; font-size: 14px; }
.found-facts dt { color: var(--muted); }
.found-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.found-facts .found-reason { font-weight: 400; }
.takedown-form, .found-actions { padding-top: 18px; border-top: 1px solid var(--line-soft); }
.found-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.textarea { flex: none; width: 100%; box-sizing: border-box; resize: vertical; }
.takedown-actions { display: flex; padding-top: 6px; }
.down-row { font-size: 14px; }
.down-reason { color: oklch(0.4 0.02 165); overflow-wrap: anywhere; }
.putback-confirm { margin: 8px -12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--stripe-a); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.found .putback-confirm { margin: 0; }
.putback-confirm-text { margin: 0; min-width: 0; flex: 1 1 320px; font-weight: 600; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }

/* Settings: Who can see it, a heading with its line, the give form and the people with view access; then Name. */
.settings-head { display: flex; flex-direction: column; gap: 4px; }
.settings-head .console-meta { margin: 0; }
.settings-form { max-width: 560px; }

/* Account: the email, how the person signs in, their passkeys and Sign out everywhere; a passkey's Remove confirms in place on the pop tint, as an answer's Delete does. */
.account .console-row { font-size: 14px; }
.account-email { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.account-head { display: flex; flex-direction: column; gap: 4px; }
.account-head .console-meta { margin: 0; }
.account-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-row-name { font-weight: 600; overflow-wrap: anywhere; }
.account-again { align-self: flex-start; }
.account-out { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.remove-confirm { margin: 6px -14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: oklch(0.97 0.03 340); border-radius: 12px; padding: 12px 14px; }
.remove-confirm-text { margin: 0; flex: 1 1 280px; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.remove-confirm-actions { display: flex; flex-shrink: 0; gap: 10px; }
.settings-form .input { flex-basis: 260px; }
.account-row-actions { display: flex; gap: 8px; }
a.notice-action { text-decoration: none; white-space: nowrap; }

/* The prompt after a first sign-in: two choices side by side, wrapping below each other when narrow, then Skip for now. */
.stronger-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 720px; }
.stronger-choice { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.stronger-choice p { margin: 0; }
.stronger-body { font-size: 14px; line-height: 1.45; flex: 1; }
.stronger-skip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.stronger-skip .text-link { font-size: 15px; }
.stronger-skip .console-meta { margin: 0; }

/* Onboarding on Answers after a first sign-in: a panel with its highlighted heading, the trail of its two steps side by side, one above the other when narrow, the open step's parts, then Not now. */
.welcome { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 880px; box-sizing: border-box; }
.welcome-head { display: flex; flex-direction: column; gap: 4px; }
.welcome-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.welcome-body { margin: 0; font-size: 15px; line-height: 1.5; max-width: 640px; text-wrap: pretty; }
.welcome-skip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.welcome .text-link { font-size: 15px; border: 0; padding: 0; color: var(--ink); font-family: inherit; cursor: pointer; min-height: 24px; }
.welcome-skip .console-meta { margin: 0; }
.trail { list-style: none; margin: 0; padding: 0; align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.trail li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; min-width: 0; }
.trail li + li { border-left: 1px solid var(--line); }
.trail .trail-now { background: var(--air); box-shadow: inset 0 -3px 0 var(--ink); }
.trail-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; box-sizing: border-box; }
.trail-n-now { border: 2px solid var(--ink); }
.trail-n-next { border: 1.5px solid oklch(0.82 0.01 150); color: var(--muted); }
.trail-n-done { background: var(--mint); color: var(--pine); }
.trail-n-done .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.trail-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trail-name { font-weight: 600; font-size: 15px; }
.trail-next .trail-name { color: var(--muted); }
.trail-what { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail-what a { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 60%, var(--lemon) 60%); }
.welcome-part { display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.howto { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: howto; max-width: 720px; }
.howto > li { counter-increment: howto; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; font-size: 15px; line-height: 1.5; }
.howto > li::before { content: counter(howto); font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--muted); text-align: right; }
.howto > li > * { grid-column: 2; }
.howto > li > p { margin: 0; }
.howto .agents-copy { margin-top: 6px; }
.connect-uploads { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-width: 720px; }
.connect-uploads-h { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; }
.connect-uploads-p { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.connect-uploads .console-meta { margin: 0; }
/* Check it works: the prompt's code kept on one line, and its line: a grey dot before the test, the pulse while it waits, a mint panel once it arrives, and a card with claude.ai's steps when none has. */
.upload-test-code { white-space: nowrap; }
.upload-test-idle { width: 10px; height: 10px; flex: none; border-radius: 50%; background: oklch(0.88 0.01 150); }
.upload-test-ok { display: flex; gap: 12px; align-items: flex-start; background: oklch(0.96 0.04 165); border-radius: 16px; padding: 14px 16px; }
.upload-test-ok p { margin: 0; font-size: 15px; line-height: 1.5; }
.upload-test-mark { width: 24px; height: 24px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--pine); }
.upload-test-mark .icon { width: 14px; height: 14px; stroke-width: 3; }
.upload-test-none { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); }
.upload-test-none .howto { align-self: stretch; }
.upload-test-none .console-meta { margin: 0; }
.ui { font-weight: 600; }
.welcome .mono { font-family: var(--font-mono); font-size: 12.5px; }
.welcome .welcome-body .mono { font-size: 13px; }
.welcome-prompt { flex: 1 1 280px; margin: 0; font-size: 15px; line-height: 1.55; background: var(--stripe-a); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 14px 16px; max-width: 640px; box-sizing: border-box; }
.welcome-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 4px; }
.welcome-wait .console-meta { margin: 0; }
.welcome-wait .text-link { font-size: 14px; }
.welcome-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px oklch(0.95 0.05 165); }
@media (max-width: 640px) {
  .welcome { padding: 20px; }
  .welcome-title { font-size: 22px; }
  .trail { grid-template-columns: minmax(0, 1fr); }
  .trail li + li { border-left: 0; border-top: 1px solid var(--line); }
  .welcome .btn { min-height: 44px; }
  .welcome .text-link { padding: 10px 0; background-clip: content-box; }
  .howto > li { grid-template-columns: 18px minmax(0, 1fr); gap: 4px 8px; }
}

/* Setting up an authenticator app: the QR code beside the key and its link, then the code; below 640px the link leads as a button, then the QR code and the key. */
.authenticator-step { margin: 0; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.authenticator-scan { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.authenticator-scan p { margin: 0; }
.authenticator-scan-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; }
.authenticator-qr { width: 168px; height: 168px; flex-shrink: 0; }
.authenticator-qr svg { display: block; width: 100%; height: 100%; }
.authenticator-key { box-sizing: border-box; align-self: stretch; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; background: oklch(0.975 0.004 150); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; user-select: all; }
.authenticator-narrow { display: none; }
.authenticator-field { display: flex; flex-direction: column; gap: 6px; }
.authenticator-code { flex: none; box-sizing: border-box; width: 100%; max-width: 240px; font-family: var(--font-mono); font-size: 18px; letter-spacing: .16em; }
.authenticator-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 639px) {
  .authenticator-scan { flex-direction: column; align-items: stretch; gap: 12px; }
  .authenticator-narrow { display: block; }
  a.authenticator-narrow { display: inline-flex; align-self: flex-start; }
  .authenticator-wide { display: none; }
  .authenticator-scan-text { flex: 0 0 auto; }
}

/* Setting or changing a password: the code and the new password in one card, then Send a new code below it. */
.password-step { margin: 0; max-width: 720px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.password-field { display: flex; flex-direction: column; gap: 6px; }
.password-field .input { flex: none; box-sizing: border-box; width: 100%; max-width: 360px; }
.password-field .password-code { max-width: 240px; font-family: var(--font-mono); font-size: 18px; letter-spacing: .16em; }
.password-field .field-hint, .password-field .field-error { max-width: 520px; }
.password-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.password-resend { margin: 0; max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.password-resend .console-meta { margin: 0; }

/* A confirmation's quiet button with an ink border. */
.btn-ink { background: var(--surface); border-color: var(--ink); }

/* Limits: three number fields, each with its unit inside the field's border and its hint below, then Save, quiet like New features', and who last changed them.
 * The border and focus ring sit on the field's wrapper, so they take in the unit; a field's error takes the error border and ring there too. */
.console-main > .limits { gap: 10px; }
.limits .task-group-head { gap: 4px; }
.limits-form { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 16px 0; font-size: 14px; }
.limits-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 20px; }
.limit-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.input-unit { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--control-line); border-radius: var(--radius-control); padding: 0 14px; }
.input-unit:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.input-unit.input-error, .input-unit.input-error:focus-within { border-color: oklch(0.5 0.16 340); box-shadow: 0 0 0 4px oklch(0.92 0.07 340); }
.input-unit .input { flex: 1; line-height: 1.2; background: transparent; border: 0; border-radius: 0; padding: 11px 0; }
.input-unit .input:focus-visible { box-shadow: none; }
.input-unit-label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.limits-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.limits-save .console-meta { overflow-wrap: anywhere; }

/* Logs: the level as the same segmented control, quiet like New features', and each level explained below it on New features' pale ground. */
.console-main > .logs { gap: 10px; }
.logs .task-group-head { gap: 4px; }
.level-row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 0; font-size: 14px; }
.level-guide { display: flex; flex-direction: column; gap: 12px; background: oklch(0.975 0.007 150); border-radius: 12px; padding: 14px 18px; }
.level-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; font-size: 14px; line-height: 1.45; }
.level-list dt { font-weight: 600; }
.level-list dd { margin: 0; color: var(--body-text); }
.level-guide .console-meta { margin: 0; max-width: 640px; text-wrap: pretty; }

/* Tables in a card, as an answer's page and Workspaces draw them: each row's quiet actions, Copy link's fallback under its row, and the pager inside the card.
Below 640px each row stacks, with its actions at touch height. */
.answers-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
/* A page about one workspace or one answer: the link back above its head, and the person's role beside its name. */
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.back-link .icon { width: 16px; height: 16px; }
.answers-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-head, .btn-dialog, .btn-row { font-size: 15px; padding: 11px 18px; }
.btn-quiet.btn-head, .btn-quiet.btn-dialog, .btn-quiet.btn-row { padding: 9.5px 16.5px; }
.btn-secondary { background: var(--mint); color: var(--ink); }
.btn-secondary:hover { background: oklch(0.82 0.15 165); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-destructive { background: oklch(0.86 0.14 340); color: var(--ink); }
.btn-destructive:hover { background: oklch(0.82 0.16 340); box-shadow: inset 0 0 0 1.5px var(--ink); }
.answers-table { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.answers-table .answer-pager { border-top: 1px solid var(--line-soft); }
.answers { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.answers th { padding: 12px 20px; text-align: left; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.answers td { padding: 13px 20px; vertical-align: middle; }
.answers tbody tr + tr > td { border-top: 1px solid var(--line-soft); }
.answers th:first-child { width: 100%; }
.answers-out { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 3px 9px; border-radius: 999px; color: var(--ink); white-space: nowrap; }
.badge-person { background: var(--lemon); }
.badge-agent { background: var(--mint); }
.answers-by-via { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.answers-end { text-align: right; white-space: nowrap; }
.answers-end .btn + .btn { margin-left: 4px; }
.answers-copy[hidden] { display: none; }
.answers-copy-failed-in { display: flex; flex-direction: column; gap: 10px; padding: 0 0 5px; }
.answers-copy-failed td { padding-top: 4px; }
.answers-copy-failed[hidden] { display: none; }
.answers-copy-failed-text { margin: 0; font-size: 14px; font-weight: 600; color: oklch(0.4 0.14 340); }
.copy-fallback { flex: none; width: 100%; max-width: 560px; box-sizing: border-box; font-family: var(--font-mono); font-size: 14px; background: oklch(0.975 0.05 95); padding: 10px 14px; }
.toast-page.toast-copied { left: 50%; }
@media (max-width: 640px) {
  .answers-table { overflow: hidden; }
  .answers, .answers tbody, .answers tr, .answers td { display: block; min-width: 0; }
  .answers thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .answers tbody tr + tr > td { border-top: 0; }
  .answers tbody tr + tr { border-top: 1px solid var(--line-soft); }
  .answers tbody .answers-copy-failed { border-top: 0; }
  .answers .answers-end { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px -10px; text-align: left; }
  .answers-end .btn { min-height: 44px; }
  .answers-end .btn + .btn { margin-left: 0; }
  .answers .answers-copy-failed td { padding: 0 16px 12px; }
  .answers-copy-failed-in { gap: 8px; padding: 0; }
  .upload-copy-failed { gap: 8px; }
  .copy-fallback { font-size: 13px; padding: 11px 12px; }
  .toast-page.toast-copied { left: 16px; right: 16px; bottom: 24px; transform: none; max-width: none; }
}

/* Who can open an answer as a quiet badge with its icon, a control drawn as the outlined pill, and the line saying who can open it in Share it and the upload dialog. */
.badge-vis { gap: 6px; height: 30px; box-sizing: border-box; padding: 0 10px; font-size: 13px; line-height: 1.2; }
.badge .icon { width: 16px; height: 16px; }
.badge-control { background: var(--surface); border: 1.5px solid var(--control-line); padding: 0 8px 0 10px; cursor: pointer; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.badge-control:hover { border-color: var(--ink); background: oklch(0.95 0.006 150); }
.badge-control .icon:last-child { width: 14px; height: 14px; color: var(--muted); }
.share-who, .upload-who { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; }
.share-who { color: oklch(0.4 0.02 165); }
.upload-who-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  /* A person and their channel break only between the two. */
  .answers-by-via { display: inline; white-space: normal; }
  .badge-control { height: 44px; padding: 0 12px; }
}

/* Leave's confirmation, and the others that confirm in place as it does, on a neutral ground. */
.leave-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0; background: var(--stripe-a); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.badge-quiet { background: oklch(0.95 0.006 150); }
.leave-confirm-text { margin: 0; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.leave-confirm-actions { display: flex; flex-shrink: 0; gap: 10px; }

/* Admins: Make admin turns quiet while a revoke confirms in place, on Leave's panel, set into the list; the line under an only admin sits close to the list. */
.btn-quiet.btn-input { padding: 9.5px 18.5px; }
.revoke-confirm { margin: 8px -12px; }
.revoke-confirm .leave-confirm-text { flex: 1 1 320px; }
.admins-only-you { margin: -12px 0 0; }

/* The upload dialog: a panel over a scrim, its head with the title and Close, then one state's body at a time.
Below 640px Close and the head's buttons are the 44px touch height. */
.upload { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; padding: 0; border: 0; border-radius: var(--radius-panel); background: var(--surface); color: var(--ink); box-shadow: 0 24px 48px -20px oklch(0.3 0.04 165 / .4); overflow: auto; }
.upload::backdrop { background: oklch(0.2 0.015 165 / .3); }
.upload-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.upload-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.upload-close { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.upload-close:hover { background: oklch(0.95 0.006 150); }
@media (max-width: 639px) { .upload-close { width: 44px; height: 44px; } .upload-head .btn-dialog { min-height: 44px; } }
.upload-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.upload-body[hidden], .upload-who[hidden] { display: none; }
.upload-form { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.upload-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 20px; border: 1.5px dashed oklch(0.82 0.01 150); border-radius: 16px; background: oklch(0.975 0.007 150); }
.upload-drop.is-over { border-color: var(--ink); }
.upload-drop-text { margin: 0; font-weight: 600; font-size: 15px; }
.upload-drop .icon-24, .upload-status .icon-24 { color: var(--muted); }
.upload-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-drop .btn { font-size: 15px; padding: 10px 16px; }
.upload-file:focus-visible + .btn { outline: 2px solid var(--mint-text); outline-offset: 2px; }
.upload-hints { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.upload-hints p { margin: 0; }
.icon-24 { width: 24px; height: 24px; }
.upload-status { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.upload-status-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.upload-status-title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.upload-status-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.upload-note { margin: 0; font-size: 13px; color: var(--muted); }
.upload-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.upload-ready { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.copy-field { display: flex; align-items: center; gap: 8px; background: oklch(0.975 0.05 95); border-radius: var(--radius-control); padding: 6px 6px 6px 14px; }
.copy-field-value { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-field .btn { font-size: 14px; padding: 9px 14px; border-radius: 9px; }
.upload-copy-failed { display: flex; flex-direction: column; gap: 10px; }
.upload-copy-failed[hidden] { display: none; }
.upload-ready-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-ready-actions .btn { flex: 1; }
.upload-failed { display: flex; align-items: flex-start; gap: 12px; background: oklch(0.97 0.03 340); border-radius: 16px; padding: 16px 18px; }
.upload-failed-mark { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: oklch(0.86 0.14 340); color: var(--pine); font-size: 14px; font-weight: 700; }
.upload-failed-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upload-reason { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.4; color: oklch(0.4 0.14 340); overflow-wrap: anywhere; }
.upload-failed-sub { margin: 0; font-size: 13px; color: var(--muted); }
.toast-page { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100vw - 32px); z-index: 1; }
.toast-page[hidden] { display: none; }

/* Workspaces: the list as a table of each workspace's tile and name, the person's role, its answers and Settings or Details; a workspace's page with its tile beside its name, an owner's contents list in a sticky column beside the sections, Leave and Delete workspace under a rule, Add's role choices as bordered radios, each person's role chip and actions, and Change role's choices under a person on the neutral ground.
At 900px and below the contents list is a row of chips above the sections, each with its shorter name where it has one.
Below 640px each list row is its name, with its role and answers under it, beside Settings or Details as a word and a chevron, the whole row a link, a person's actions wrap under them, and Leave is 44px tall. */
.ws-tile { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: oklch(0.95 0.006 150); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 12px; }
.ws-tile-big { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; background: var(--ink); color: var(--surface); }
.ws-tile-head { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; background: var(--ink); color: var(--surface); }
.ws-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.ws-table th { padding: 12px 20px; text-align: left; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.ws-table td { padding: 14px 20px; vertical-align: middle; }
.ws-table tbody tr + tr > td { border-top: 1px solid var(--line-soft); }
.ws-table th:first-child { width: 100%; }
.ws-table-row { cursor: default; }
.ws-table-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ws-table-text { display: flex; flex-direction: column; min-width: 0; }
.ws-table-link { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ws-table-link:hover { background: linear-gradient(transparent 60%, var(--lemon-soft) 60%); }
.ws-table-meta { font-size: 13px; color: var(--muted); }
.ws-table-count { color: var(--muted); white-space: nowrap; }
.ws-table-end { text-align: right; white-space: nowrap; }
.ws-table-go { gap: 6px; }
.ws-table-go .icon { width: 16px; height: 16px; }
.ws-table-phone, .ws-table-chevron { display: none; }
.ws-only { font-size: 14px; }
.ws-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ws-head .app-head { flex: 1; min-width: 0; }
.ws-head-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ws-head-meta .text-link { font-size: 14px; }
.ws-add { margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.ws-add-field { display: flex; flex-direction: column; gap: 6px; }
.ws-add-field .input { flex: none; }
.ws-add-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ws-add-end .console-meta { margin: 0; }
.ws-roles { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ws-roles legend { padding: 0; margin-bottom: 6px; }
.ws-role { flex: 1 1 200px; display: flex; align-items: flex-start; gap: 10px; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--control-line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.ws-role:has(input:checked) { border-color: var(--ink); }
.ws-role input { margin: 3px 0 0; accent-color: var(--ink); }
.ws-role-text { display: flex; flex-direction: column; gap: 1px; }
.ws-role-name { font-size: 14px; font-weight: 600; }
.ws-role-line { font-size: 13px; color: var(--muted); }
.new-answers { display: flex; flex-direction: column; gap: 12px; }
.new-answers-options { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.new-answers-option { flex: none; padding: 14px 16px; align-items: flex-start; gap: 12px; }
.new-answers-option .ws-role-name { font-size: 15px; }
.new-answers-icon { margin-top: 1px; }
.ws-person { border-bottom: 1px solid var(--line-soft); }
.ws-person:last-child { border-bottom: 0; }
.ws-person .console-row { border-bottom: 0; }
.ws-person-end { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ws-person-end .badge { margin-right: 8px; }
.ws-person-end form { margin: 0; }
.ws-live { display: contents; }
.ws-role-menu { position: relative; }
.ws-role-pill { height: 30px; box-sizing: border-box; gap: 6px; font-size: 13px; line-height: 1.2; list-style: none; }
.ws-role-pill::-webkit-details-marker { display: none; }
.ws-role-pill .icon { transition: transform var(--fast) var(--ease); }
.ws-role-menu[open] > .ws-role-pill { border-color: var(--ink); }
.ws-role-menu[open] > .ws-role-pill .icon { transform: rotate(180deg); }
.ws-role-list { position: absolute; z-index: 10; top: calc(100% + 6px); right: 0; width: 320px; box-sizing: border-box; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -16px oklch(0.3 0.04 165 / .35); }
.ws-role-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
.ws-role-item:hover { background: oklch(0.95 0.006 150); }
.ws-role-item:focus-visible { outline-offset: -2px; }
.ws-role-item.is-current { cursor: default; }
.ws-role-item.is-current:hover { background: transparent; }
.ws-role-tick { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.ws-remove .icon { width: 18px; height: 18px; }
.ws-step-down { margin: 0 0 14px; }
.ws-notices { display: contents; }
.ws-layout, .ws-body { display: flex; flex-direction: column; gap: 48px; min-width: 0; max-width: 720px; }
.ws-layout.has-contents { display: grid; grid-template-columns: 208px minmax(0, 720px); gap: 56px; align-items: start; max-width: none; }
.ws-contents { position: sticky; top: 24px; }
.ws-contents-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ws-contents-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ws-contents-item:hover { background: oklch(0.95 0.006 150); }
.ws-contents-state { font-size: 13px; font-weight: 500; color: var(--muted); }
.ws-contents-end { margin-top: 14px; }
.ws-contents-short { display: none; }
.ws-end { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .ws-layout.has-contents { display: flex; gap: 32px; max-width: 720px; }
  .ws-contents { position: static; }
  .ws-contents-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .ws-contents-item { justify-content: center; min-height: 44px; box-sizing: border-box; padding: 0 14px; border: 1.5px solid var(--control-line); border-radius: 999px; background: var(--surface); }
  .ws-contents-state { display: none; }
  .ws-contents-end { margin-top: 0; }
  .ws-contents-long { display: none; }
  .ws-contents-short { display: inline; }
}
@media (max-width: 640px) {
  .ws-table { min-width: 0; }
  .ws-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ws-table, .ws-table tbody { display: block; }
  .ws-table-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name go"; align-items: center; column-gap: 12px; padding: 14px 8px 14px 16px; min-height: 44px; }
  .ws-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
  .ws-table tbody tr + tr > td { border-top: 0; }
  .ws-table td { padding: 0; }
  .ws-table-row td:first-child { grid-area: name; }
  .ws-table-role { display: none; }
  .ws-table-end { grid-area: go; }
  .ws-table-phone { display: block; font-size: 13px; color: var(--muted); }
  .ws-table .ws-table-go { position: relative; z-index: 1; min-height: 44px; gap: 2px; padding: 0 8px; border: 0; color: var(--muted); font-size: 14px; }
  .ws-table .ws-table-go:hover { background: transparent; color: var(--ink); }
  .ws-table-gear { display: none; }
  .ws-table-chevron { display: block; }
  .ws-table-count { display: none; }
  .ws-table-meta { display: none; }
  .ws-table-link::after { content: ""; position: absolute; inset: 0; }
  .ws-person .console-row { grid-template-columns: minmax(0, 1fr); }
  .ws-person-end { justify-content: space-between; padding-left: 44px; }
  .ws-role-pill { height: 44px; padding: 0 12px; }
  .ws-remove { min-height: 44px; }
  .ws-role-list { left: 0; right: auto; width: min(320px, calc(100vw - 108px)); }
  .ws-leave { min-height: 44px; }
}

/* Upload to, a select above the drop zone, with the workspace it names under a ready answer's link. */
.upload-to { display: flex; flex-direction: column; gap: 6px; }
.select { position: relative; display: flex; align-items: center; }
.select select { appearance: none; width: 100%; padding-right: 40px; cursor: pointer; }
.select-icon { position: absolute; right: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.upload-in { margin: 0; font-size: 14px; color: var(--muted); }

/* Delete workspace's confirmation: a dialog over a dimmed page, drawn open by the server; Delete is dimmed while the name typed does not match the field's pattern. */
.ws-scrim { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; background: oklch(0.23 0.02 165 / .45); padding: 96px 16px 16px; }
.ws-dialog { position: static; width: 100%; max-width: 520px; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: var(--radius-panel); background: var(--surface); color: var(--ink); box-shadow: 0 24px 48px -12px oklch(0.2 0.015 165 / .35); }
.ws-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.ws-dialog-head .console-h2 { overflow-wrap: anywhere; }
.ws-dialog-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-control); color: var(--muted); }
.ws-dialog-close:hover { color: var(--ink); background: oklch(0.95 0.006 150); }
.ws-delete-form { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 20px 24px 24px; }
.ws-delete-warn { display: flex; flex-direction: column; gap: 10px; background: oklch(0.97 0.03 340); border-radius: 14px; padding: 16px 18px; }
.ws-delete-warn-title { margin: 0; font-weight: 700; font-size: 15px; }
.ws-delete-warn ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.ws-delete-warn .mono { font-family: var(--font-mono); font-size: 13px; }
.ws-delete-field { display: flex; flex-direction: column; gap: 6px; }
.ws-delete-field .field-label { font-size: 14px; overflow-wrap: anywhere; }
.ws-delete-field .input { flex: none; width: 100%; box-sizing: border-box; }
.ws-delete-field .input-unit { flex: none; }
.ws-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ws-delete-form:invalid .btn-destructive { opacity: .45; }
@media (max-width: 640px) {
  .ws-scrim { padding: 72px 12px 12px; }
  .ws-delete-form { padding: 16px; }
}
/* Add: the tabs, Upload a file and Write, atop the dialog's body; Write fills the window, with Close, the title, the tabs and Publish in its head, Add to, Style and who can open it on one row, and the Markdown taking the rest. Below 640px the tabs stay under the head. */
.upload-tabs { width: 100%; }
.upload-tabs .segmented-item { gap: 8px; }
.upload-tabs .icon { width: 18px; height: 18px; }
.upload-tabs-head, .upload-publish[hidden] { display: none; }
.upload.is-full { width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; inset: 0; border-radius: 0; box-shadow: none; }
.upload.is-full[open] { display: flex; flex-direction: column; }
.upload.is-full .upload-head { justify-content: flex-start; flex-wrap: wrap; padding: 12px 20px; }
.upload.is-full .upload-close { order: -1; color: var(--ink); }
.upload.is-full .upload-title { flex: 1 1 auto; font-size: 20px; font-weight: 700; }
.upload-write { flex: 1; min-height: 0; padding: 24px 32px 28px; }
.upload-write-form { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.upload-write-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 4px; }
.upload-write-fields .upload-to { flex: 1 1 180px; max-width: 260px; }
.upload-write-fields .upload-style { flex: 1 1 140px; max-width: 200px; }
.upload-write-fields .upload-who { flex: 1 1 260px; justify-content: flex-end; margin-bottom: 12px; }
.upload-markdown { flex: 1 1 auto; width: 100%; min-height: 200px; box-sizing: border-box; resize: none; }
.upload-write-hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (min-width: 640px) { .upload.is-full .upload-tabs-head { display: grid; flex: 0 0 320px; } .upload.is-full .upload-write > .upload-tabs-body { display: none; } }
@media (max-width: 639px) { .upload-write { padding: 16px 16px 20px; } .upload-write-fields .upload-who { justify-content: flex-start; margin-bottom: 0; } .upload-write-fields .upload-to, .upload-write-fields .upload-style { max-width: none; } }
/* Edit: an answer's Edit in its Details, drawn once answers.js runs, and its dialog, the upload dialog's with "Edit <title>" on one line, and over the Markdown the line that says Publishing keeps its link, which drops the link and its icon on a narrow screen.
Below 640px Edit's title, but not Replace's, wraps in full, and Write's head puts Close and the title on one row and Upload a file instead and Publish on the row under them, at the right; the title's basis leaves room only for Close and the gap, 44px and 12px, which pushes the buttons onto that row. */
.edit [hidden] { display: none; }
.edit .upload-title { min-width: 0; font-size: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload.is-full.edit .upload-head { flex-wrap: nowrap; }
.upload.is-full.edit .upload-title { flex: 1 1 0; }
.edit .upload-write-form { gap: 16px; }
.edit .upload-write-form .field-label { margin-bottom: -8px; }
.edit-keeps { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.edit-keeps-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.edit-link { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.edit .upload-ready-actions { justify-content: flex-end; }
.edit .upload-ready-actions .btn { flex: none; }
@media (max-width: 639px) { .edit-keeps-link, .edit-keeps-icon { display: none; } .edit .upload-write-form { gap: 14px; } .edit .upload-write-form .field-label { margin-bottom: -6px; } .edit-text .upload-title { white-space: normal; overflow-wrap: anywhere; } .upload.is-full.edit .upload-head { flex-wrap: wrap; justify-content: flex-end; } .upload.is-full.edit .upload-title { flex-basis: calc(100% - 56px); } }

/* Agents, on a workspace's page: Connect's tabs as the segmented control, what each agent needs in a code block or a field with Copy, and Keys: the key just made in an inked panel, the make form, and each key's row with its tile, dimmed once revoked. */
.agents-sub { display: flex; flex-direction: column; gap: 12px; }
.agents-h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3; }
.agents-tabs { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 4px; }
.agents-tabs .segmented-item { flex: none; white-space: nowrap; text-decoration: none; }
.agents [data-copy-from] { gap: 8px; }
.agents .console-meta { margin: 0; }
.agents .mono { font-family: var(--font-mono); font-size: 12.5px; }
.agents-code { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--stripe-a); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 14px 16px; }
.agents-field { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.agents-copy { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.agents-copy code { flex: 1 1 320px; min-width: 0; box-sizing: border-box; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; background: var(--stripe-a); border: 1.5px solid var(--control-line); border-radius: var(--radius-control); padding: 10px 14px; overflow-wrap: anywhere; }
.agents-once { display: flex; flex-direction: column; gap: 12px; max-width: 880px; box-sizing: border-box; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; padding: 18px 20px; }
.agents-once-title { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.agents-form { max-width: 560px; }
.agents-full { margin: 0; font-size: 14px; color: var(--ink); }
.agents-keys { padding-top: 0; padding-bottom: 0; }
.agents-empty { margin: 0; padding: 14px 0; font-size: 14px; }
.agents-key-tile { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: oklch(0.95 0.05 165); color: var(--pine); }
.agents-key-tile.is-off { background: oklch(0.95 0.006 150); color: var(--muted); }
.agents-key-tile .icon { width: 18px; height: 18px; }
.agents-key-name { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.agents-key-used { margin-right: 8px; }
.agents-revoke { margin: 0 0 14px; }
@media (max-width: 640px) {
  .agents-key { grid-template-columns: minmax(0, 1fr); }
}

/* An answer's names in its Details: Remove's warning in place, the panel's actions, and the hosts in mono, in the panel and its notice. */
.names-confirm { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 6px 8px 0; }
.names-warn { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; max-width: 600px; overflow-wrap: anywhere; }
.names-warn-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.names-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.link-host { font-family: var(--font-mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.notice-link { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
/* A name's pin form in place under its line: the latest or one version as radios, the version's list, the hint and Cancel and Save; a pinned name that opens as not found says why above Show the latest.
Below 640px each choice and action is at touch height. */
.names-pin { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 6px 8px 0; }
.names-pin-choice { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.names-pin-legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.names-pin-option { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; min-height: 40px; cursor: pointer; }
.names-pin-option input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.names-pin-text { display: flex; flex-direction: column; gap: 2px; }
.names-pin-text small { font-size: 13px; color: var(--muted); }
.names-pin-version { display: flex; flex-direction: column; gap: 6px; padding-left: 30px; }
.names-pin-version .select { align-self: flex-start; }
.names-problem { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.45; color: oklch(0.5 0.16 340); }
@media (max-width: 640px) {
  .names-actions .btn-row { min-height: 44px; }
  .names-pin-option { min-height: 44px; }
  .names-pin-version { padding-left: 0; }
  .names-pin-version .select { align-self: stretch; }
  .names-pin .names-actions .btn-row { flex: 1; }
}
/* An answer's page: back to its workspace, its title, link, who can open it and who published it, then its files as a table of Path, Type and Size with the pager under them.
Below 640px each file stacks its path over its type and size, and the pager's buttons are at touch height. */
.answer-head { gap: 10px; margin-top: -12px; }
.answer-head .app-title { overflow-wrap: anywhere; }
.answer-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.answer-link:hover { background: linear-gradient(transparent 60%, var(--lemon-soft) 60%); }
.answer-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.answer-by { font-size: 14px; color: var(--muted); }
.answer-files-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 8px; }
.answer-files-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.answer-files-sum { font-size: 14px; color: var(--muted); }
.answer-files { width: 100%; border-collapse: collapse; font-size: 14px; }
.answer-files th { padding: 12px 20px; text-align: left; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.answer-files th:first-child { width: 100%; }
.answer-files td { padding: 11px 20px; vertical-align: middle; }
.answer-files tbody tr + tr > td { border-top: 1px solid var(--line-soft); }
.answer-file { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.answer-file:hover { background: linear-gradient(transparent 60%, var(--lemon-soft) 60%); }
.answer-file .answers-out { width: 13px; height: 13px; }
.answer-file-type { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.answer-file-size { color: var(--muted); white-space: nowrap; }
.answer-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.answer-pager-range { font-size: 14px; color: var(--muted); }
.answer-pager-buttons { display: flex; gap: 10px; }
.answer-pager form { margin: 0; }
.answer-pager .btn .icon { width: 16px; height: 16px; }
.answer-files-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.answer-files-empty-title { margin: 0; font-size: 15px; font-weight: 600; }
.answer-files-empty .btn { margin-top: 10px; }
.answer-files-failed .upload-failed-text { gap: 10px; }
.answer-files-again { align-self: flex-start; background: var(--surface); }
@media (max-width: 640px) {
  .answer-link { min-height: 44px; font-size: 12px; }
  .answer-files thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .answer-files, .answer-files tbody, .answer-files tr { display: block; }
  .answer-files tr { padding: 10px 16px; }
  .answer-files tbody tr + tr { border-top: 1px solid var(--line-soft); }
  .answer-files td { display: inline; padding: 0; border: 0; font-size: 12px; }
  .answer-files tbody tr + tr > td { border-top: 0; }
  .answer-files td:first-child { display: flex; min-height: 28px; align-items: center; }
  .answer-file-size { margin-left: 4px; }
  .answer-file-size::before { content: "· "; }
  .answer-pager { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .answer-pager .btn { min-height: 44px; }
}
/* An answer's two tabs, Files and Versions, as the segmented control, and Versions: a table of Version, Published, By, Size and Its link with Copy link, the latest marked, the names pinned to a version under its link, and the line under the list.
Below 640px the tabs fill the width and each version stacks its number, who and when with its size, then its link and Copy link at touch height. */
.answer-tabs { align-self: flex-start; }
.answer-tabs .segmented-item { min-width: 120px; box-sizing: border-box; text-decoration: none; }
.answer-versions-line { max-width: 640px; margin-top: -8px; }
.answer-versions-head { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.answer-versions-head .answer-versions-line { margin-top: 0; }
.answer-versions { width: 100%; border-collapse: collapse; font-size: 14px; }
.answer-versions th { padding: 12px 20px; text-align: left; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.answer-versions td { padding: 11px 20px; vertical-align: middle; }
.answer-versions tbody tr.answer-version ~ tr.answer-version > td { border-top: 1px solid var(--line-soft); }
.answer-version-num { white-space: nowrap; font-weight: 600; }
.answer-version-num .badge { margin-left: 8px; }
.answer-version-when, .answer-version-size { color: var(--muted); white-space: nowrap; }
.answer-version-at { width: 100%; }
.answer-version-at .answer-file { display: inline-flex; }
.answer-version-pinned { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.answer-version-pin { font-family: var(--font-mono); }
.answer-versions-foot { margin: 0; padding: 12px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); }
@media (max-width: 640px) {
  .answer-tabs { align-self: stretch; }
  .answer-tabs .segmented-item { min-width: 0; }
  .answer-versions thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .answer-versions, .answer-versions tbody, .answer-versions tr { display: block; }
  .answer-versions tr.answer-version { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 16px 4px; }
  .answer-versions tbody tr.answer-version ~ tr.answer-version { border-top: 1px solid var(--line-soft); }
  .answer-versions tbody tr.answer-version ~ tr.answer-version > td { border-top: 0; }
  .answer-versions td { display: block; padding: 0; font-size: 13px; }
  .answer-version-num { flex: 0 0 100%; }
  .answer-version-when { order: 2; }
  .answer-version-size { order: 3; }
  .answer-version-size::before { content: "· "; }
  .answer-version-by { order: 1; }
  .answer-version-at { order: 4; flex: 0 0 100%; }
  .answer-version-at .answer-file { min-height: 44px; align-items: center; font-size: 12px; }
  .answer-versions .answers-end { order: 5; margin-left: -10px; }
  .answer-versions .answers-copy { min-height: 44px; }
  .answer-versions-foot { padding: 12px 16px; }
}

/* Overview: the cost this month on a card of its own, then the totals as tiles; a number that couldn't be read says what and why in muted ink. */
.overview-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 880px; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
.overview-money { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.overview-forecast { margin: 0; font-size: 15px; }
.overview-forecast strong { font-weight: 600; }
.overview-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 640px; }
.overview-code { font-family: var(--font-mono); font-size: 12.5px; }
.overview-totals { display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.overview-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.overview-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.overview-value { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.overview-note { margin: 0; font-size: 13px; color: var(--muted); }
.overview-missing { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--muted); }
.overview-why { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 640px; }
.overview-link { font-size: 13px; white-space: nowrap; }
@media (max-width: 640px) {
  .overview-money { font-size: 40px; }
}

/* Answers as one stream: the search field as the headline, with its "in" menu and Find, its status and Search tips; every answer newest change first, by day, each a tile hung from the time spine by its workspace's mark, a dot for a person in one workspace; the link to older ones; the answers given to the person among them, their tiles dashed; and, with nothing yet, the welcome's steps on the spine.
 * Without script the link is a field to select, Find submits the search, and times read in UTC; stream.js marks the page .js, which shows the link pill that copies and the keys, and hides Find, and as the person types it hides what doesn't match, underlines what does, and outlines the answer Enter copies. */
.finder { --surface-raised: oklch(0.95 0.006 150); --subtle: oklch(0.975 0.007 150); --placeholder: oklch(0.55 0.015 165); --lemon-50: oklch(0.975 0.05 95); --lemon-ink: oklch(0.46 0.1 80); --pop-50: oklch(0.97 0.03 340); --pop-200: oklch(0.92 0.07 340); --pop-ink: oklch(0.4 0.14 340); --pop-700: oklch(0.5 0.16 340); }
.app-main.finder { display: block; padding-top: 48px; }
.finder-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.finder-top .crumb { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.finder-top .btn { min-height: 40px; }
.finder .page-notice, .finder > .notice { margin-top: 24px; }
.ask { display: flex; align-items: center; gap: 16px; padding: 0 0 14px; border-bottom: 3px solid var(--ink); transition: box-shadow var(--fast) var(--ease); }
.ask:focus-within { box-shadow: 0 5px 0 0 var(--mint); }
.ask > .icon { width: 32px; height: 32px; stroke-width: 2.25; color: var(--ink); }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 6px 0; font: 800 40px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.ask input::placeholder { color: var(--placeholder); opacity: 1; }
.ask input::-webkit-search-cancel-button { display: none; }
.ask .clear { display: none; text-decoration: none; }
.has-q .ask .clear { display: inline-flex; }
.ask.is-error { border-bottom-color: var(--pop-700); }
.ask.is-error:focus-within { box-shadow: 0 5px 0 0 var(--pop-200); }
.scope { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 16px; border: 1.5px solid var(--control-line); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; white-space: nowrap; }
.scope:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.scope-in { color: var(--muted); font-weight: 500; }
.scope select { appearance: none; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 0 22px 0 0; cursor: pointer; outline: none; }
.scope .icon { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; }
.find-go { min-height: 48px; }
.finder.js .find-go { display: none; }
.finder.js .row-more[hx-get] .older { visibility: hidden; }
.status { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 15px; color: var(--body-text); }
.status p { margin: 0; }
.status strong { color: var(--ink); font-weight: 600; }
.status .error { display: inline; padding: 0; color: var(--pop-700); font-weight: 600; }
.keys { display: flex; align-items: center; gap: 16px; margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.keys-js { display: none; }
.finder.js .keys-js { display: inline; }
.keys kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin: 0 2px; border: 1px solid var(--control-line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font: 600 12px var(--font-body); color: var(--ink); }
.tips-toggle { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--control-line); text-underline-offset: 3px; }
.tips-toggle:hover { text-decoration-color: currentColor; }
.tips { margin-top: 16px; padding: 16px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; font-size: 14px; color: var(--body-text); max-width: 760px; }
.tips p { margin: 0; }
.tips table { border-collapse: collapse; width: auto; }
.tips td { padding: 5px 24px 5px 0; vertical-align: top; }
.tips td:first-child { width: 13rem; white-space: nowrap; }
.tips code { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.tips-note { color: var(--muted); font-size: 13px; }
.tips[hidden], .stream .row[hidden] { display: none; }
.page-notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-control); background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.page-notice .notice-mark { width: 22px; height: 22px; }
.stream { --spine: 40px; --gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.stream .row { display: grid; grid-template-columns: var(--spine) minmax(0, 1fr); column-gap: var(--gap); }
.spine { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 21px; }
.spine::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); border-left: 2px solid var(--ink); }
.node { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1; }
.k-own { background: var(--ink); color: var(--air); }
.k-team, .k-step { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.k-shared { background: var(--surface); color: var(--ink); border: 2px dashed var(--muted); }
.spine .node { position: relative; z-index: 2; width: 30px; height: 30px; font-size: 12px; letter-spacing: -.02em; }
.spine.on::after { content: ""; position: absolute; z-index: 1; top: 35px; left: 50%; height: 2px; width: calc(50% + var(--gap)); background: var(--ink); }
.one .spine .node { width: 12px; height: 12px; margin-top: 9px; font-size: 0; }
.one .ans-kick .node, .one .ans-ws { display: none; }
.row-day .spine { padding-top: 0; min-height: 80px; }
.row-day:first-child .spine { min-height: 44px; }
.row-day .spine::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 19px; height: 2px; background: var(--ink); border-radius: 2px; }
.row-day:first-child .spine::before { top: 44px; }
.day { align-self: end; margin: 0; padding: 40px 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.015em; }
.day small { margin-left: 10px; font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--muted); }
.row-day:first-child .day { padding-top: 0; }
.row-more .spine::before { bottom: auto; height: 28px; }
.stream .row-gone { align-items: center; }
.row-gone .spine { min-height: 72px; }
.row-gone:first-child .spine::before { top: 50%; }
.finder .row-gone .page-notice { margin: 0; }
.ans { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; margin-bottom: 10px; padding: 14px 14px 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ans-main { display: grid; gap: 4px; min-width: 0; }
.ans-kick { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ans-kick .node { display: none; width: 22px; height: 22px; font-size: 11px; }
/* A workspace is named on the first tile of each run of its answers; the tiles after it keep the name for screen readers alone. */
.stream .row:not(.run) .ans-kick { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.t-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.012em; overflow-wrap: anywhere; }
.t-title a { color: inherit; text-decoration: none; }
.t-title a:hover { background: linear-gradient(transparent 62%, var(--lemon-soft) 62%); }
.t-title .icon { width: 16px; height: 16px; margin-left: 5px; vertical-align: -1px; color: var(--muted); }
.t-title .nw { white-space: nowrap; }
.t-title mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--mint); text-underline-offset: 3px; }
/* A search marks what it matched in a workspace's name or a link as it marks a title's word; an answer matched by a host its tile doesn't show shows that host while it matches. */
.ans-ws mark, .lp-host mark, .nm-host mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--mint); text-underline-offset: 3px; }
.nm-host.is-hit { display: block; margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A search that finds nothing leaves an empty ring on the spine, with no line through it, beside the way on. */
.stream-none:not([hidden]) + .stream { margin-top: 0; }
.row-none .spine::before { display: none; }
.ring { position: relative; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--air); box-shadow: inset 0 0 0 2px var(--ink); }
.none { display: grid; justify-items: start; gap: 6px; margin-bottom: 10px; padding: 18px 20px 20px; border-radius: 16px; background: var(--surface-raised); }
.none[hidden] { display: none; }
.none-head { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.none-body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body-text); max-width: 60ch; text-wrap: pretty; }
.none-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.none-acts .btn { text-decoration: none; min-height: 40px; }
.none-acts .icon { width: 16px; height: 16px; }
.ans.is-current { border: 1px solid var(--ink); box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.ans.is-current .linkpill, .ans.is-current .copylink { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ans.is-current .lp-copy { border-left-color: color-mix(in oklch, var(--surface) 35%, transparent); background: none; }
.say { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body-text); }
.say b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; margin: 0 5px 1px 1px; border-radius: 50%; vertical-align: middle; }
.dot-person { background: var(--lemon); box-shadow: inset 0 0 0 1px oklch(0.52 0.11 80); }
.dot-agent { background: var(--mint); box-shadow: inset 0 0 0 1px var(--mint-text); }
.say time { font-variant-numeric: tabular-nums; }
.badge-down { gap: 5px; margin-right: 4px; vertical-align: 1px; background: var(--pop-200); color: var(--pop-ink); }
.badge-down .icon { width: 14px; height: 14px; }
.flags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; vertical-align: 1px; }
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--surface-raised); font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.flag .icon { width: 14px; height: 14px; }
.flag-any { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ans-acts { display: flex; align-items: center; gap: 4px; }
/* Details keeps a column of its own, empty on a given or taken-down tile, so every link ends on one edge. */
.ans:not(.step) > .ans-acts { display: grid; grid-template-columns: auto 104px; justify-items: end; }
.ans-acts .unfold { width: 104px; justify-content: center; gap: 6px; }
.link-slot { display: flex; justify-content: flex-end; min-width: 0; max-width: 100%; }
.nm-host { display: none; }
.copylink { display: none; gap: 8px; min-height: 40px; }
.finder.js .copylink { display: inline-flex; }
.copylink .icon { width: 16px; height: 16px; }
.ans-acts .btn { text-decoration: none; }
.linkpill { display: none; align-items: stretch; min-height: 40px; padding: 0; border: 1.5px solid var(--control-line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; max-width: 100%; transition: border-color var(--fast) var(--ease); }
.finder.js .linkpill { display: inline-flex; }
.linkpill:hover { border-color: var(--ink); }
.linkpill:focus-visible { outline: 2px solid var(--mint-text); outline-offset: 2px; }
.lp-host { display: block; min-width: 0; padding: 0 12px 0 14px; line-height: 37px; font-family: var(--font-mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-copy { display: flex; align-items: center; gap: 6px; padding: 0 14px 0 12px; border-left: 1.5px solid var(--control-line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.lp-copy .icon { width: 16px; height: 16px; }
.linkpill:hover .lp-copy { background: var(--surface-raised); }
.linkfield { display: block; }
.finder.js .linkfield { display: none; }
.finder.js .linkfield.is-failed { display: block; }
.lf-input { width: 290px; max-width: 100%; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--control-line); border-radius: var(--radius-control); background: var(--subtle); font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.ans.is-down { background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px); }
.ans.is-down .t-title { color: var(--muted); }
.ans.is-shared { border-style: dashed; }
.older { display: flex; align-items: center; gap: 16px; padding-top: 6px; }
.older .btn { text-decoration: none; }
.fact { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--body-text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--control-line); text-underline-offset: 3px; cursor: pointer; }
.fact:hover { color: var(--ink); text-decoration-color: currentColor; }
.stream-welcome { padding-top: 16px; }
.stream-welcome-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 1.05; letter-spacing: -.03em; max-width: 16ch; }
.stream-welcome-lede { margin: 16px 0 0; font-size: 17px; color: var(--body-text); max-width: 56ch; }
.welcome-steps { margin-top: 48px; }
.ans.step { padding: 18px 18px 18px 22px; }
.ans.step .t-title { font-size: 20px; }
.ans.step .btn { text-decoration: none; min-height: 44px; }
.welcome-not { margin: 0; padding: 8px 0 0; font-size: 14px; color: var(--muted); }
.welcome-not .fact { margin-right: 8px; color: var(--ink); font-weight: 600; }
.finder .empty { margin-top: 24px; }
/* An answer's Details, open in its tile: the tile outlined in ink, and under its head a ledger of who can open it, its versions, files, names and workspace beside Share it, then its actions; each confirmation in place on its tint, the names panel in place of the ledger and Share it, and whom to ask for someone who may change nothing. */
.stream .row { scroll-margin-top: 120px; }
.unfold .icon { transition: rotate 200ms var(--ease); }
.ans.is-open .unfold .icon { rotate: 180deg; }
.ans.is-open { border: 2px solid var(--ink); padding: 13px 13px 13px 19px; }
.more { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px 32px; padding: 16px 0 2px; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.ledger { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px 16px; align-items: center; align-content: start; margin: 0; }
.ledger dt { font-size: 14px; color: var(--muted); }
.ledger dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; min-width: 0; }
.ledger .ledger-wide { grid-column: 1 / -1; display: block; }
.ledger .node { width: 22px; height: 22px; font-size: 11px; margin-right: -6px; }
.ledger .when { font-size: 13px; color: var(--muted); }
.ledger .fact { font-size: 14px; }
.ledger .fact .icon { width: 15px; height: 15px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-raised); border-radius: var(--radius-control); }
.seg form { display: contents; }
.seg-item { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; }
.seg-item:hover { color: var(--ink); }
.seg-item.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px oklch(0.3 0.02 165 / .14); cursor: default; }
.seg-item .icon, .static .icon { width: 15px; height: 15px; }
.static { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.d-versions { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.d-versions a { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 8px; border: 1.5px solid var(--control-line); font-size: 13px; font-weight: 600; color: var(--muted); }
.d-versions a:hover { border-color: var(--ink); color: var(--ink); }
.d-versions a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--air); }
.d-share { display: grid; gap: 16px; align-content: start; padding: 16px; border-radius: var(--radius-control); background: var(--subtle); border: 1px solid var(--line-soft); }
.d-share h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.d-share .share-who { display: block; margin: 0; font-size: 14px; color: var(--body-text); }
.d-notice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: var(--radius-control); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.d-notice .notice-mark { width: 22px; height: 22px; }
.notice-mark-info { background: oklch(0.36 0.015 165); color: oklch(0.96 0.006 150); }
.people { display: grid; margin: 0; padding: 0; list-style: none; }
.people li { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.people form { margin: 0; }
.p-who { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.p-how { margin-right: auto; font-size: 13px; color: var(--muted); }
.give { display: grid; gap: 6px; margin: 0; }
.give-row { display: flex; gap: 8px; }
.give-row .input { flex: 1; min-width: 0; }
.more-acts { grid-column: 1 / -1; display: flex; gap: 2px; margin-left: -12px; }
.more-acts .btn { text-decoration: none; }
.more-acts .push { margin-left: auto; }
.more-note { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.conf { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0; padding: 16px; border-radius: var(--radius-control); }
.conf p { flex: 1 1 320px; margin: 0; font-size: 14px; color: var(--ink); }
.conf b { font-weight: 700; }
.conf-acts { display: flex; gap: 8px; }
.conf-acts .btn { text-decoration: none; }
.conf-anyone { display: block; background: var(--lemon-50); border: 1px solid oklch(0.95 0.11 95); }
.conf-anyone .conf-acts { margin-top: 12px; }
.conf-delete { background: var(--pop-50); }
.d-names { grid-column: 1 / -1; display: grid; gap: 16px; }
.names-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.names-head h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.names-head .btn, .d-name .btn { text-decoration: none; }
.d-names-list { display: grid; margin: 0; padding: 0; list-style: none; }
.d-names-list > li { display: grid; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.d-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 48px; }
.d-name .host { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.d-name .when { margin-right: auto; font-size: 13px; color: var(--muted); }
.d-its-link { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--line); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.names-note { margin: 0; font-size: 14px; color: var(--body-text); }
.names-note .host { font-family: var(--font-mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.d-names-add { display: grid; grid-template-columns: minmax(0, 420px) max-content; justify-content: start; align-items: end; gap: 6px 12px; margin: 0; }
.d-names-add .field-label { grid-area: 1 / 1; }
.d-names-add .input-unit { grid-area: 2 / 1; min-height: 44px; gap: 2px; }
.d-names-add .input-unit .input, .d-names-add .input-unit-label { font-family: var(--font-mono); font-size: 14px; }
.d-names-add > .btn { grid-area: 2 / 2; }
.d-names-add .field-error { grid-area: 3 / 1; }
.d-names-add .field-hint { grid-column: 1; }
.d-names .names-pin, .d-names .names-confirm { padding-bottom: 12px; }
@media (max-width: 900px) {
  .ask input { font-size: 34px; }
  .more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .app-main.finder { padding-top: 24px; }
  .ask { flex-wrap: wrap; gap: 12px; padding-bottom: 10px; }
  .ask > .icon { width: 24px; height: 24px; }
  .ask input { font-size: 28px; flex: 1 1 0; }
  .ask .clear { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .clear-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .scope { order: 3; width: 100%; justify-content: flex-start; }
  .scope select { flex: 1; }
  .find-go { order: 4; }
  .spine { display: none; }
  .stream .row { display: block; }
  .finder .row-gone .page-notice { margin-bottom: 10px; }
  .day { font-size: 24px; padding-top: 28px; }
  .row-day:first-child .day { padding-top: 0; }
  .none { padding: 16px; }
  .none-head { font-size: 18px; }
  .none-acts .btn { min-height: 44px; }
  .ans { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .ans.is-open { padding: 13px; }
  .ans .t-title { font-size: 18px; }
  /* With script, a tile copies from an icon beside its title, Details beside it, and its sentence runs the tile's width under them; the title's row, flexible, takes what the icons need beyond the workspace's name, so a short title sits level with them. */
  .finder.js .ans:not(.step) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kick acts" "title acts" "say say" "host host" "more more"; grid-template-rows: auto 1fr auto auto auto; align-items: start; gap: 0 8px; margin-bottom: 8px; padding: 10px 8px 12px 14px; }
  .finder.js .ans.is-open:not(.step) { padding: 9px 7px 11px 13px; }
  .finder.js .ans:not(.step) > .ans-main { display: contents; }
  .finder.js .ans:not(.step) .ans-kick { grid-area: kick; margin-bottom: 2px; }
  .finder.js .ans:not(.step) .t-title { grid-area: title; align-self: center; }
  .finder.js .ans:not(.step) .say { grid-area: say; margin-top: 2px; padding-right: 6px; }
  .finder.js .ans:not(.step) .nm-host { grid-area: host; display: block; margin: 2px 0 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .finder.js .ans:not(.step) > .ans-acts { grid-area: acts; display: flex; gap: 0; }
  .finder.js .ans:not(.step) .more { grid-area: more; }
  .finder.js .ans-acts .linkpill, .finder.js .copylink { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .finder.js .linkpill .lp-host, .cl-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .finder.js .linkpill .lp-copy { width: 100%; padding: 0; border-left: 0; justify-content: center; }
  .unfold-slot { width: 44px; }
  .ledger { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ledger dd { margin-bottom: 10px; }
  .seg { width: 100%; }
  .seg-item { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 0 6px; white-space: nowrap; }
  .d-versions a { min-width: 44px; height: 44px; }
  .give-row { flex-direction: column; }
  .give-row .btn, .more-acts .btn, .names-head .btn, .d-name .btn { min-height: 44px; }
  .conf-acts { width: 100%; }
  .conf-acts .btn { flex: 1; min-height: 44px; }
  .d-names-add { grid-template-columns: minmax(0, 1fr); }
  .d-names-add > .btn { grid-area: auto; justify-self: start; min-height: 44px; }
  .d-names-add .field-error, .d-names-add .field-hint { grid-area: auto; }
  .d-names-list > li { padding: 10px 0; }
  .d-name .when { flex: 1 1 100%; order: 1; }
  .d-name .btn { order: 2; padding-left: 0; padding-right: 16px; }
  .finder.js .keys-js { display: none; }
  .ans-kick .node { display: inline-flex; }
  .ans:not(.step) > .ans-acts { grid-template-columns: minmax(0, 1fr) 44px; }
  .link-slot { width: 100%; justify-content: flex-start; }
  .lp-word { display: none; }
  .ans-acts .unfold { width: 44px; min-height: 44px; justify-content: center; }
  .unfold-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .flags { margin-left: 4px; }
  .fact, .tips-toggle { min-height: 44px; }
  .lf-input { width: 100%; }
  .linkfield { flex: 1; }
  .stream-welcome-title { font-size: 36px; }
  .ans.step .ans-acts .btn { flex: 1; }
  .tips td:first-child { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ask, .linkpill, .unfold .icon { transition: none; }
}
