/*
 * 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; }
.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; }
}

/* 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; }

/* Answers: Upload in the page's head, the list as a table of Title, Published by and Updated, each title opening its answer, each row's quiet Copy link and Delete, Copy link's fallback under its row, Delete's inline confirmation on the pop tint, and the pager.
Below 640px each row stacks: the title, the path, who and when as one run of text that wraps whole, then Copy link and Delete at touch height. */
.answers-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
/* A workspace the URL names: Answers above the head, the role beside its name, and its answers' host under the line. */
.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; }
/* Search titles and Clear search on the left, the range on the right; a search that finds nothing is a card of its own, and the pager sits inside the list's card under its rows. */
.answers-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.answers-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.search-form { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; }
.search-field { display: flex; align-items: center; gap: 8px; width: 340px; max-width: 100%; min-width: 0; box-sizing: border-box; height: 40px; padding: 0 12px; background: var(--surface); border: 1.5px solid var(--control-line); border-radius: var(--radius-control); }
.search-field .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.search-field-on, .search-field:focus-within { border-color: var(--ink); }
.search-field:focus-within { box-shadow: 0 0 0 4px oklch(0.92 0.08 165); }
.search-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.search-input::placeholder { color: var(--muted); }
.search-input::-webkit-search-cancel-button { display: none; }
.btn-quiet.btn-search { font-size: 15px; padding: 8.5px 16px; min-height: 40px; }
.answers-clear { font-size: 14px; display: inline-flex; align-items: center; min-height: 40px; background: none; text-decoration: underline; text-decoration-color: var(--mint-text); text-underline-offset: 3px; }
.search-field.input-error { border-color: oklch(0.5 0.16 340); box-shadow: 0 0 0 4px oklch(0.92 0.07 340); }
.answers-q-error { flex-basis: 100%; max-width: 640px; }
/* Search suggestions: a list under the field, over the page, which suggest.js opens as htmx draws it. */
.search-combo { position: relative; display: flex; min-width: 0; max-width: 100%; }
.suggest { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; width: 480px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px oklch(0.2 0.015 165 / .14); }
.suggest-list, .suggest-group { display: flex; flex-direction: column; gap: 2px; }
.suggest-option { display: flex; align-items: center; gap: 12px; min-height: 40px; box-sizing: border-box; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); text-decoration: none; cursor: pointer; }
.suggest-option:hover { background: var(--stripe-b); }
.suggest-option[aria-selected="true"] { background: var(--stripe-b); box-shadow: inset 0 0 0 1.5px var(--ink); }
.suggest-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.suggest-title b { font-weight: 700; }
.suggest-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.suggest-out { width: 14px; height: 14px; color: var(--muted); }
.suggest-syntax { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.suggest-head { margin: 0; padding: 6px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.suggest-group + .suggest-group { margin-top: 4px; border-top: 1px solid var(--line-soft); }
.suggest-group + .suggest-group .suggest-head { padding-top: 10px; }
.suggest-none { margin: 0; padding: 10px 12px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.suggest-none strong { color: var(--ink); font-weight: 600; }
.answers-tips { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; background: none; text-decoration: underline; text-decoration-color: var(--mint-text); text-underline-offset: 3px; }
.answers-tips .icon { width: 14px; height: 14px; }
.answers-tips-open .icon { transform: rotate(180deg); }
.search-tips { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; box-sizing: border-box; overflow-x: auto; }
.search-tips p { margin: 0; font-size: 14px; line-height: 1.55; }
.search-tips table { align-self: flex-start; border-collapse: collapse; font-size: 14px; }
.search-tips td { padding: 6px 24px 6px 0; vertical-align: top; }
.search-tips code { font-family: var(--font-mono); font-size: 13px; }
.answers-range { margin: 0; font-size: 14px; color: var(--muted); }
.answers-range strong { color: var(--ink); font-weight: 600; }
.answers-none { padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.answers-none-title { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.answers-none .app-sub { margin: 0; font-size: 14px; }
.answers-none .btn { margin-top: 10px; }
.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%; }
/* The arrow over a row's text, where the browser would show an I-beam; its links and controls keep their pointer. */
.answers-row { cursor: default; }
.answers-title { display: block; font-weight: 600; overflow-wrap: anywhere; }
a.answers-title { display: inline-flex; align-items: center; gap: 6px; padding: 0 1px; }
a.answers-title:hover { background: linear-gradient(transparent 60%, var(--lemon-soft) 60%); }
.answers-out { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.answers-id { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.answers-down-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.answers-down-head .answers-title { display: inline; }
.answers-down-text { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.answers-down-reason { display: block; font-size: 13px; line-height: 1.45; color: oklch(0.4 0.02 165); overflow-wrap: anywhere; }
.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-updated { color: var(--muted); white-space: nowrap; }
.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%; }
.answers-share[aria-expanded="true"] { background: oklch(0.95 0.006 150); }
.answers .is-sharing, .is-sharing + .answers-copy-failed td, .answers-share-row td { background: oklch(0.975 0.007 150); }
.answers tbody .answers-share-row > td, .answers tbody .is-sharing + .answers-copy-failed > td { border-top: 0; }
.answers tbody .answers-share-row > td { padding: 0 20px 18px; }
.share-panel { display: flex; flex-direction: column; gap: 16px; max-width: 720px; box-sizing: border-box; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.share-panel [hidden] { display: none; }
.share-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.share-panel-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.share-close { width: 32px; height: 32px; flex-shrink: 0; margin: -6px -8px 0 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.share-close:hover { background: oklch(0.95 0.006 150); color: var(--ink); }
.share-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-panel .copy-field { flex: 1 1 360px; min-width: 0; }
.share-panel .copy-field-value { font-size: 13px; }
.share-panel .copy-field .btn-quiet { background: var(--surface); padding: 7px 14px; }
.share-email { gap: 8px; font-size: 14px; padding: 9.5px 14px; }
.share-email-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .answers-table { overflow: hidden; }
  .answers-group-foot { padding: 10px 16px; }
  /* A 44px target round the link, without its highlight growing with it. */
  .answers-group-foot .text-link { position: relative; }
  .answers-group-foot .text-link::after { content: ""; position: absolute; inset: -12px -8px; }
  .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, .answers tbody .answers-share-row { border-top: 0; }
  .answers tbody .answers-share-row > td { padding: 4px 16px 16px; }
  .share-panel { padding: 16px 14px; gap: 14px; }
  .share-panel .copy-field .btn-quiet { min-height: 36px; }
  .share-email { flex: 1 1 100%; min-height: 44px; }
  .answers .answers-row { padding: 14px 16px 0; }
  .answers .answers-row td { padding: 0; }
  .answers-row td:first-child { margin-bottom: 4px; }
  .answers-search, .search-form { width: 100%; }
  /* The search's own group gives way, so its field, the error under it, its links and the range wrap as one row of the tools: the field, then the error, then the links with the range at their right. */
  .answers-tools { gap: 8px 16px; justify-content: flex-start; }
  .answers-search { display: contents; }
  .answers-q-error { order: 1; }
  .answers-clear, .answers-tips { order: 2; }
  .answers-range { order: 3; margin-left: auto; }
  .search-field { flex: 1; width: auto; height: 44px; }
  /* The list hangs from the form, so it spans the field and Search, and shows at most five, so it stays above the on-screen keyboard: three answers when two dates follow them. */
  .search-form { position: relative; }
  .search-combo { flex: 1; position: static; }
  .search-combo .search-field { width: 100%; }
  .suggest { width: 100%; max-width: none; }
  .suggest-option { min-height: 44px; }
  .suggest-out { display: none; }
  .suggest-list > .suggest-option:nth-of-type(n+6), .suggest-both .suggest-group:first-child .suggest-option:nth-of-type(n+4) { display: none; }
  .btn-quiet.btn-search, .answers-clear, .answers-tips, .answers-none .btn { min-height: 44px; }
  .search-tips { padding: 16px; }
  .answers-row .answers-title { font-size: 15px; }
  /* Inline cells with no space between them make who and when one unbreakable run, which wraps under who can open it only as a whole. */
  .answers-row .answers-by, .answers-row .answers-updated { display: inline; white-space: nowrap; }
  .answers-by .badge { display: inline; padding: 0; background: none; font-size: 13px; font-weight: 400; color: var(--muted); }
  .answers-row .answers-updated { margin-left: 4px; font-size: 13px; }
  .answers-row .answers-updated::before { content: "· "; }
  .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; }
  .answers .answers-confirm td { padding: 12px 16px; }
  .toast-page.toast-copied { left: 16px; right: 16px; bottom: 24px; transform: none; max-width: none; }
}
.answers-confirm td { padding: 12px 20px; background: oklch(0.97 0.03 340); }
.answers-confirm-in { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.answers-confirm-text { margin: 0; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.answers-confirm-actions { display: flex; flex-shrink: 0; gap: 10px; }

/* Restricted answers: who can open each answer as a quiet badge with its icon, which for its owner is the outlined control that opens Change's confirmation, the confirmation on the neutral ground, and the line that says who can open it in Share's panel and the upload dialog. */
.answers-vis-cell { white-space: nowrap; }
.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); }
.answers .vis-confirm td { background: var(--stripe-a); }
.vis-confirm .answers-confirm-text { flex: 1 1 420px; }
.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); }
.share-who-icon, .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; }
.share-panel .give-form { max-width: none; }
.share-sheet { font-size: 14px; padding: 9.5px 14px; }
@media (max-width: 640px) {
  .answers-row .answers-vis-cell { display: inline-block; margin-right: 10px; }
  .answers-row .answers-vis-cell:empty { display: none; }
  /* A person and their channel can be wider than the row, so who can open it takes its own line and they break only between the two. */
  .answers-row-via .answers-vis-cell { display: block; margin: 0 0 6px; }
  .answers-by-via { display: inline; white-space: normal; }
  .badge-control { height: 44px; padding: 0 12px; }
  .share-sheet { flex: 1 1 100%; min-height: 44px; }
  .share-panel .invite-row .btn-input { flex: 1 1 100%; min-height: 44px; }
}

/* 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. */
.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); }
.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; }
}

/* The overview: one group per workspace, its name linking to its own answers and the person's role, its newest answers in a card, ended by a foot saying how many its list holds when that is more, or "No answers yet." in it, and the line under the groups when more workspaces than it shows; and Upload to, a select above the drop zone, with the workspace it names under a ready answer's link. */
.answers-group { display: flex; flex-direction: column; gap: 10px; }
.answers-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.answers-group-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.answers-group-name a { color: var(--ink); text-decoration: none; }
.answers-group-name a:hover { background: linear-gradient(transparent 60%, var(--lemon-soft) 60%); }
/* The foot stays at the card's left while a wide table scrolls under it. */
.answers-group-foot { position: sticky; left: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; box-sizing: border-box; padding: 10px 20px; border-top: 1px solid var(--line); background: oklch(0.985 0.004 150); font-size: 14px; color: var(--muted); }
.answers-group-foot .text-link { color: var(--ink); }
.answers-group-empty { padding: 16px 20px; border: 0; text-align: left; font-size: 14px; color: var(--muted); }
.answers-more { font-size: 14px; }
.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: a row's Edit, 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. */
.answers-edit[hidden], .answers-replace[hidden], .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; } }

/* 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 host under its title, with what follows it on the same line. */
.answers-path { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
/* An answer's names: Name the link, or how many names it has, a small ink link after the row's path; the panel in place of the row on the neutral tint, its names in a white list, the link's marked on a mint chip, each with Remove in pop, a Remove's warning in place, Add a name with the names domain in mono inside the field's border, and the notice's hosts in mono.
Below 640px the control and each Remove are at touch height, and a name wraps above its Remove. */
.answers-names { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink); border-radius: 6px; padding: 2px 0; }
.answers-names:hover { text-decoration: underline; text-underline-offset: 3px; }
.answers-names .icon { width: 13px; height: 13px; }
.answers-names-row td { padding: 0; background: oklch(0.975 0.004 150); }
.names-panel { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; }
.names-title { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.names-list { list-style: none; margin: 0; padding: 0; max-width: 640px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.names-item { display: flex; flex-direction: column; gap: 12px; padding: 8px 8px 8px 14px; border-bottom: 1px solid oklch(0.94 0.008 150); }
.names-item:last-child { border-bottom: 0; }
.names-line { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.names-host { font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
.names-its-link { background: oklch(0.96 0.04 165); color: oklch(0.42 0.1 165); padding: 2px 9px; }
.names-end { margin: 0 0 0 auto; }
.names-remove { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: oklch(0.5 0.16 340); background: transparent; border: 0; padding: 10px 8px; min-height: 40px; cursor: pointer; }
.names-remove:hover { text-decoration: underline; text-underline-offset: 3px; }
.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-add { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.input-unit.names-field { max-width: 640px; gap: 2px; }
.names-field .input, .names-field .input-unit-label { font-family: var(--font-mono); font-size: 14px; }
.names-panel .field-hint, .names-panel .field-error { margin: 0; max-width: 640px; }
.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; }
/* What a name shows, as a control before Remove, and its 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. */
.names-line { flex-wrap: wrap; }
.names-shows { height: 30px; box-sizing: border-box; gap: 6px; font-size: 13px; line-height: 1; white-space: nowrap; }
.names-shows .icon { width: 14px; height: 14px; color: var(--muted); }
.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) {
  .answers-names { min-height: 44px; }
  .names-panel { padding: 16px; }
  .names-item { padding: 4px 4px 4px 12px; }
  .names-line { flex-wrap: wrap; gap: 2px 10px; }
  .names-host { font-size: 13px; }
  .names-remove { min-height: 44px; }
  .names-actions .btn-row { min-height: 44px; }
  .names-shows { height: 44px; padding: 0 12px; }
  .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; }
}
/* A row's files link after its path, and 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. */
.answers-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.answers-meta .answers-id { display: inline; }
.answers-dot { font-size: 12px; color: var(--muted); }
.answers-files { font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--mint-text); text-underline-offset: 3px; }
.answers-files:hover { text-decoration-thickness: 2px; }
.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) {
  .answers-files { display: inline-flex; align-items: center; min-height: 44px; }
  .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; }
}
