/* Stubbur Hjálp v4: light, tight, Spotify Support's structure (founder screenshots 2026-09-28).
 * Light is the product and ignores the OS setting. Dark exists only for an embedding host that
 * asks for it (?theme=dark / data-theme="dark"). Tokens first, then layout, then components. */

:root {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --surface: #f5f5f7;
  --fill: #f1f1f2;
  --fill-press: #e7e7ea;
  --border: #e1e1e5;
  --border-strong: #c9c9cf;
  --hairline: #ebebee;
  --ink: #111113;
  --ink-2: #5f6368;
  --ink-3: #6b6f76;
  /* Stubbur blue. #377EF6 is for icons and rings (3.8:1); text and filled buttons use the deeper
     shade of the same hue so small text passes AA (5.3:1 on white, 4.9:1 on --surface). */
  --accent: #377ef6;
  --accent-fill: #2265dc;
  --accent-hover: #1b56bf;
  --accent-soft: #edf3fe;
  --accent-ring: rgba(55, 126, 246, .3);
  --link: #2265dc;
  --on-accent: #ffffff;
  --success: #166534;
  --success-soft: #effaf2;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --warn: #8a4b0f;
  --warn-soft: #fff8eb;
  --scrim: rgba(17, 17, 19, .36);
  --shadow-field: 0 1px 2px rgba(17, 17, 19, .04), 0 2px 8px rgba(17, 17, 19, .04);
  --shadow-pop: 0 12px 32px rgba(17, 17, 19, .12), 0 2px 6px rgba(17, 17, 19, .06);
  --shadow-sheet: 0 -8px 40px rgba(17, 17, 19, .12);
  --shadow-dialog: 0 24px 64px rgba(17, 17, 19, .18), 0 0 0 1px rgba(17, 17, 19, .04);
  --nav-bg: rgba(255, 255, 255, .98);

  --nav-h: 60px;
  --gutter: 16px;
  --col: 720px;
  --home: 800px;
  --wide: 1100px;
  --r-card: 12px;
  --r-field: 14px;
  --r-sheet: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 240ms;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* Dark: only on an explicit host request. */
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-elev: #19191b;
  --surface: #161618;
  --fill: #222225;
  --fill-press: #2e2e32;
  --border: #2f2f33;
  --border-strong: #45454b;
  --hairline: #26262a;
  --ink: #f2f2f4;
  --ink-2: #a8a8ae;
  --ink-3: #95959c;
  --accent: #6aa5ff;
  --accent-fill: #2f6fe0;
  --accent-hover: #3a79ea;
  --accent-soft: rgba(106, 165, 255, .12);
  --accent-ring: rgba(106, 165, 255, .35);
  --link: #7db1ff;
  --success: #5bd38a;
  --success-soft: rgba(91, 211, 138, .12);
  --danger: #ff8a80;
  --danger-soft: rgba(255, 138, 128, .12);
  --warn: #f5c05a;
  --warn-soft: rgba(245, 192, 90, .12);
  --scrim: rgba(0, 0, 0, .6);
  --shadow-field: none;
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, .5);
  --shadow-dialog: 0 24px 64px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  --nav-bg: rgba(11, 11, 12, .98);
  color-scheme: dark;
}

@media (prefers-contrast: more) {
  :root:not([data-theme="dark"]) {
    --ink-2: #3d3f43;
    --ink-3: #4a4d52;
    --border: #8a8a90;
    --border-strong: #6b6b72;
    --hairline: #9a9aa0;
    --link: #174fb0;
    --accent-fill: #174fb0;
  }
  :root[data-theme="dark"] {
    --ink-2: #d4d4d8;
    --ink-3: #c4c4ca;
    --border: #7a7a80;
    --hairline: #5a5a60;
    --link: #a3c8ff;
  }
  .prose a, .bot-text a { text-decoration-color: currentColor; }
}

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

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

html.theme-anim body, html.theme-anim .nav {
  transition: background-color 200ms linear, color 200ms linear;
}

button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
svg { display: block; flex: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ico { width: 22px; height: 22px; }
.ico-sm { width: 18px; height: 18px; }
.ico-xs { width: 16px; height: 16px; }

/* Pointer-down feedback: instant scale, quick release. */
.press { transition: transform 100ms var(--ease), background-color 150ms linear, border-color 150ms linear, color 150ms linear, opacity 150ms linear; }
.press:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(.98); }

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

#app {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: var(--nav-bg);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--hairline);
  opacity: 0;
  transition: opacity 160ms linear;
}
.nav.scrolled::after { opacity: 1; }
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .nav {
    padding-left: max(var(--gutter), env(safe-area-inset-left), calc((100% - var(--wide)) / 2));
    padding-right: max(var(--gutter), env(safe-area-inset-right), calc((100% - var(--wide)) / 2));
  }
}

.nav-left, .nav-right { display: flex; align-items: center; min-width: 0; gap: 4px; }
.nav-right { justify-content: flex-end; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-right: 6px;
  color: var(--ink);
  white-space: nowrap;
  border-radius: 8px;
}
.wordmark:hover { text-decoration: none; }
.wm-img { display: block; width: auto; height: 23px; }
.wm-on-dark { display: none; }
:root[data-theme="dark"] .wm-on-light { display: none; }
:root[data-theme="dark"] .wm-on-dark { display: block; }
.wm-sub {
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
  font-size: 1rem;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--ink);
}
.icon-btn:hover { background: var(--fill); }
.icon-btn:active { background: var(--fill-press); }

/* IS | EN: a quiet text toggle, 44px hit area. */
.seg { display: inline-flex; align-items: center; gap: 2px; }
.seg button {
  position: relative;
  min-width: 40px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.seg button + button::before {
  content: "";
  position: absolute;
  left: -2px; top: 9px; bottom: 9px;
  width: 1px;
  background: var(--border);
}
.seg button::after { content: ""; position: absolute; inset: -6px 0; }
.seg button:hover { color: var(--ink); background: var(--fill); }
.seg button[aria-pressed="true"] { color: var(--ink); }

.banner {
  position: absolute;
  top: calc(var(--nav-h) + env(safe-area-inset-top));
  left: 0; right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--warn);
  background: var(--warn-soft);
  text-align: center;
}

/* ---------- views ---------- */

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top));
}

/* Every page starts at the header's left edge (the --wide frame) and reads at --col. */
.col {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.col > * { max-width: var(--col); }

.page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.page.enter { animation: page-in 220ms var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.notice {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.notice p { margin-bottom: 12px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { opacity: .45; cursor: default; }
.btn-secondary { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-secondary:hover { background: var(--surface); }
.btn-plain { color: var(--link); padding: 0 12px; }
.btn-plain:hover { background: var(--accent-soft); }
.btn-block { width: 100%; min-height: 50px; }
.btn .spinner { width: 18px; height: 18px; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- the ask box (home, compact on topic/article, follow-up) ----------
 * Spotify Support (founder screenshots 2026-09-28): a roomy rounded box, the question as the
 * placeholder, an "Ask" pill inside at the bottom right. */

.ask { width: 100%; }
.ask-wrap { position: relative; }
.ask-box {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 128px;
  padding: 10px 12px 12px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--bg);
  box-shadow: var(--shadow-field);
  cursor: text;
  transition: border-color 150ms linear, box-shadow 150ms linear;
}
.ask-box:hover { border-color: var(--ink-3); }
.ask-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.ask-box input, .ask-box textarea {
  flex: none;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 1.125rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.ask-box input { height: 44px; }
.ask-box input::placeholder, .ask-box textarea::placeholder { color: var(--ink-3); opacity: 1; }
.ask-box input:focus-visible, .ask-box textarea:focus-visible { outline: none; }
.ask-actions { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 10px; }
.ask-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: .9375rem;
  font-weight: 650;
  letter-spacing: -.005em;
  cursor: pointer;
}
.ask-pill:hover:not(:disabled) { background: var(--accent-hover); }
.ask-pill:disabled { background: var(--fill); color: var(--ink-3); cursor: default; }

/* Compact: one row, pill at the right end. */
.ask-compact .ask-box {
  flex-direction: row;
  align-items: center;
  min-height: 58px;
  padding: 6px 6px 6px 20px;
  border-radius: 16px;
}
.ask-compact .ask-box input { flex: 1; height: 44px; font-size: 1.0625rem; }
.ask-compact .ask-actions { margin: 0; padding: 0 0 0 8px; }

.ai-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-left: 4px;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-3);
}
.ai-note .ico-xs { width: 14px; height: 14px; color: var(--accent); }

/* Instant article matches (combobox listbox). */
.ask-dd {
  position: absolute;
  z-index: 10;
  left: 0; right: 0;
  top: calc(100% + 6px);
  max-height: min(420px, 60vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-field);
  background: var(--bg-elev);
  box-shadow: var(--shadow-pop);
  text-align: left;
  animation: pop-in 140ms var(--ease) both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-head {
  padding: 10px 12px 4px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-3);
}
.dd-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.dd-opt:hover, .dd-opt[aria-selected="true"] { background: var(--surface); }
.dd-opt[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--border); }
.dd-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--ink-2);
}
.dd-spark { background: var(--accent-soft); color: var(--accent); }
.dd-body { flex: 1; min-width: 0; }
.dd-title {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd-title q { quotes: "„" "“"; }
html[lang="en"] .dd-title q { quotes: "“" "”"; }
.dd-sub { display: block; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }

/* ---------- home ----------
 * Spotify Support (founder screenshots 2026-09-28): brand title, ask box, "Quick help" rows on a
 * gray panel, "Browse help articles" accordion. Left-aligned in one reading column. */

.hero, .home-body {
  width: 100%;
  max-width: calc(var(--home) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.hero { padding-top: 40px; }
.brand-title {
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.036em;
  margin: 0 0 20px -2px;
}

/* Find my tickets: a quiet one-line row, not a second hero. */
.find-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 8px 14px 8px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  text-align: left;
  color: var(--ink);
}
.find-row:hover { background: var(--surface); }
.find-ico { flex: none; color: var(--accent); }
.find-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.find-title { font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.find-sub { font-size: .875rem; line-height: 1.35; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.find-chev { flex: none; color: var(--ink-3); }
.find-row.verified .find-ico { color: var(--success); }

.home-sec { margin-top: 40px; }
.sec-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.022em;
  margin-bottom: 12px;
}

.quick-list { list-style: none; padding: 4px 0; border-radius: 18px; background: var(--surface); }
.quick-list li { margin: 0 20px; }
.quick-list li + li { border-top: 1px solid var(--border); }
.quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 0;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.quick-row:hover { text-decoration: none; }
.quick-chev { color: var(--ink-3); transition: transform 150ms var(--ease); }
@media (hover: hover) {
  .quick-row:hover .quick-title { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .quick-row:hover .quick-chev { transform: translateX(2px); color: var(--link); }
}

/* Topic accordion (home and sidebar). One open at a time. */
.acc { border-top: 1px solid var(--hairline); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-h { font: inherit; }
.acc-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 10px 4px 10px 2px;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ink);
  border-radius: 8px;
}
.acc-ico { flex: none; display: grid; place-items: center; width: 24px; color: var(--accent); }
.acc-ico .ico-sm { width: 21px; height: 21px; }
.acc-title { flex: 1; min-width: 0; }
.acc-btn:hover .acc-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.acc-chev { flex: none; color: var(--ink-3); transition: transform 200ms var(--ease); }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); color: var(--ink); }
.acc-panel { padding: 0 0 12px 40px; animation: fade-in 180ms linear both; }
.acc-links { list-style: none; }
.acc-links a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--link);
}
.acc-links a::after { content: ""; position: absolute; inset: -5px 0; }
.acc-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.acc-links a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -14px; top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

@media (max-width: 599px) {
  .hero { padding-top: 28px; }
  .brand-title { font-size: 2.375rem; letter-spacing: -.04em; margin-bottom: 16px; }
  .ask-box { min-height: 116px; padding: 8px 10px 10px 18px; border-radius: 20px; }
  .find-body { flex-direction: column; }
  .find-sub { text-wrap: pretty; }
  .home-sec { margin-top: 32px; }
  .sec-title { font-size: 1.25rem; }
  .quick-list li { margin: 0 16px; }
  .acc-panel { padding-left: 40px; }
}

.site-foot {
  margin-top: 48px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--hairline);
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-3);
}
.site-foot p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }

/* ---------- topic + article shell ----------
 * Spotify Support article layout (founder screenshots 2026-09-28): breadcrumb, compact ask box,
 * content cards left, sticky topic accordion right. */

.shell {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 4px max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; font-size: .875rem; color: var(--ink-2); }
.crumbs li + li::before, .crumbs.trail li:last-child::after { content: "›"; margin: 0 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.crumbs a:hover { color: var(--link); }
.shell-ask { margin: 2px 0 8px; }
.shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.shell-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 760px; }
.shell-side {
  position: sticky;
  top: 16px; /* from the scroller's content edge, already below the header */
  max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.side-h { font-size: .8125rem; line-height: 1.3; font-weight: 600; color: var(--ink-2); margin: 0 0 4px; }
.side-h ~ .side-h { margin-top: 24px; }
.side .acc-btn { min-height: 48px; gap: 12px; font-size: .9375rem; }
.side .acc-ico .ico-sm { width: 19px; height: 19px; }
.side .acc-ico { width: 20px; }
.side .acc-panel { padding: 0 0 10px 32px; }
.side .acc-links a { font-size: .9375rem; line-height: 1.35; padding: 10px 0; }
.side .acc-links a::after { inset: -2px 0; }
.side .acc-links a[aria-current="page"]::before { left: -12px; top: 8px; bottom: 8px; }

.card { border-radius: 20px; background: var(--surface); }
.doc-card { padding: 36px 40px 40px; }
.doc-title {
  font-family: var(--font-display);
  font-size: 2.125rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.doc-lede { margin-top: 10px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.doc-meta { margin-top: 8px; font-size: .875rem; color: var(--ink-2); }

.art-list { list-style: none; margin-top: 20px; }
.art-list li + li { border-top: 1px solid var(--border); }
.art-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; color: var(--ink); }
.art-item:hover { text-decoration: none; }
.art-item:hover .art-title { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-body { flex: 1; min-width: 0; }
.art-title { display: block; font-weight: 600; line-height: 1.35; }
.art-sum { display: block; margin-top: 3px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.art-chev { flex: none; color: var(--ink-3); }

.prose { margin-top: 24px; font-size: 1.0625rem; line-height: 1.6; max-width: 68ch; overflow-wrap: anywhere; }
.prose > * + * { margin-top: .8em; }
.prose h2, .prose h3, .prose h4 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.016em;
  margin-top: 1.5em;
}
.prose h4 { font-size: 1.0625rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ink-3); }
.prose ol > li::marker { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prose strong { font-weight: 600; }
.prose a, .bot-text a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover, .bot-text a:hover { text-decoration-color: currentColor; }
.prose code, .bot-text code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fill); padding: 1px 5px; border-radius: 5px; }
.card .prose code { background: var(--bg); }

.rel-card { padding: 24px 40px 12px; }
.card-h { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.014em; margin-bottom: 4px; }
.rel-list { list-style: none; }
.rel-list li + li { border-top: 1px solid var(--border); }
.rel-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; font-weight: 500; line-height: 1.35; }
.rel-list a .ico-xs { flex: none; color: var(--ink-3); }

.fb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 16px 14px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.fb-q { font-weight: 600; }
.fb-btns { display: flex; gap: 8px; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}
.pill-btn:hover { background: var(--surface); border-color: var(--ink-3); }
.pill-btn .ico-sm { color: var(--ink-2); }
.fb-bar .res-done { padding: 10px 0; }
.fb-follow { padding: 4px 0; }
.fb-follow p { margin-bottom: 12px; color: var(--ink-2); }

@media (max-width: 899px) {
  .shell-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shell-main { max-width: none; }
  .shell-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 599px) {
  .doc-card { padding: 24px 20px 28px; border-radius: 18px; }
  .rel-card { padding: 20px 20px 8px; border-radius: 18px; }
  .doc-title { font-size: 1.75rem; letter-spacing: -.022em; }
  .fb-bar { padding: 14px 16px; }
}

/* Yes / No on answers. */
.res-btns { display: flex; gap: 8px; }
.res-btn {
  min-width: 72px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}
.res-btn:hover { background: var(--surface); }
.res-done { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.res-done .ico-sm { color: var(--success); margin-top: 2px; }

.collapse-in { animation: rise var(--dur) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- answer page ---------- */

.view-chat { padding-top: 0; overflow: hidden; }
.thread {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top));
}
.answer-doc { padding-top: 4px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.ans-q {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.ans-q:focus-visible { outline-offset: 4px; }
@media (max-width: 599px) { .ans-q { font-size: 1.625rem; letter-spacing: -.018em; } }

.ans-sec, .ans-label {
  font-size: .9375rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}
.ans-results { margin-top: 28px; }
.ans-results .ans-sec { margin-bottom: 12px; }
.res-list { list-style: none; display: grid; gap: 8px; }
.res-card {
  display: block;
  padding: 12px 18px 13px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  transition: background-color 150ms linear;
}
.res-card:hover { text-decoration: none; background: var(--fill); }
.res-card:hover .res-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.res-card:active { background: var(--fill-press); }
.res-title { display: block; font-weight: 600; line-height: 1.35; color: var(--link); }
.res-sum {
  display: -webkit-box;
  margin-top: 3px;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--ink-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.res-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--ink-3);
}
.res-sep { color: var(--ink-3); }
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 4px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--link);
}
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chev-down { transform: rotate(90deg); width: 14px; height: 14px; stroke-width: 2.2; }

.ans-answer { margin-top: 28px; }
.ans-results:not([hidden]) + .ans-answer { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.ans-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ans-label .ico-sm { color: var(--accent); }

.thread-inner { display: flex; flex-direction: column; }
.t-item { animation: rise var(--dur) var(--ease) both; }
.t-item + .t-item { margin-top: 16px; }
.user-row.is-lead { margin: 0; }
.user-row.is-lead + .t-item { margin-top: 0; }
.user-row:not(.is-lead) {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--nav-h) + env(safe-area-inset-top) + 16px);
}
.q-line {
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.014em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.user-row.queued .q-line { opacity: .6; }
.msg-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: .875rem;
  color: var(--ink-2);
}
.user-row.failed .msg-foot { color: var(--danger); }
.msg-foot button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--link);
  font-weight: 600;
}
.msg-foot button::after { content: ""; position: absolute; inset: -4px 0; }

.bot-text { font-size: 1.0625rem; line-height: 1.6; max-width: 68ch; overflow-wrap: anywhere; }
.bot-text > * + * { margin-top: .75em; }
.bot-text h2, .bot-text h3, .bot-text h4 { font-size: 1.0625rem; font-weight: 600; }
.bot-text ul, .bot-text ol { padding-left: 1.35em; }
.bot-text li + li { margin-top: .3em; }
.bot-text li::marker { color: var(--ink-3); }
.bot-text strong { font-weight: 600; }
.bot-turn.streaming .bot-text > :last-child::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 5px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: middle;
  animation: pulse 1.1s ease-in-out infinite;
}
.bot-turn.is-error .bot-text { color: var(--ink-2); }
@keyframes pulse { 0%, 100% { opacity: .25; } 45% { opacity: 1; } }

/* "Searching help articles…": legible text, not three anonymous dots. */
.thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
}
.thinking .spinner { width: 14px; height: 14px; border-width: 1.75px; color: var(--accent); }

.cites {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 18px;
  font-size: .875rem;
  line-height: 1.4;
}
.cites-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 600; align-self: center; }
.cites-label .ico-xs { width: 14px; height: 14px; }
.cite-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0 14px; }
.cite { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; font-weight: 500; }

.suggest { margin-top: 18px; }
.suggest.out { animation: fade-out 160ms linear both; }
@keyframes fade-out { to { opacity: 0; } }
.ans-mini { font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.sugg-list { list-style: none; }
.sugg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 2px 0;
  text-align: left;
  font-size: .9375rem;
  color: var(--link);
}
.sugg .ico-xs { width: 14px; height: 14px; color: var(--ink-3); }
.sugg:hover span { text-decoration: underline; text-underline-offset: 3px; }
.sugg { position: relative; }
.sugg::after { content: ""; position: absolute; inset: -2px 0; }

.resolution {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  padding: 12px 12px 12px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 68ch;
}
.resolution .res-q { flex: 1 1 auto; font-size: .9375rem; font-weight: 600; }
.resolution .res-btn { min-width: 64px; }
.resolution.answered { background: none; border: 0; padding: 0; }

.status-slot { display: flex; }
.status-slot:empty { display: none; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
}
.status-pill.warn { background: var(--warn-soft); color: var(--warn); }

/* Follow-up field: the same field as the home page, a size smaller. */
.follow { margin-top: 36px; }
.follow-box { flex-direction: row; align-items: flex-end; min-height: 58px; padding: 6px; border-radius: 16px; }
.follow-box textarea {
  flex: 1;
  width: auto;
  resize: none;
  padding: 11px 8px 11px 14px;
  font-size: 1.0625rem;
  min-height: 46px;
  max-height: 160px;
  line-height: 24px;
  display: block;
}
.follow-box .ask-pill { margin-left: 8px; }
.ans-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: 10px;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-3);
}
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .8125rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.foot-link:hover { color: var(--ink); }

/* ---------- in-answer cards (verification, tickets, results) ---------- */

.tcard-shell {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  overflow: hidden;
  max-width: 560px;
}
.card-pad { padding: 18px; }
.card-title { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.card-text { margin-top: 4px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.card-text strong { color: var(--ink); font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.field-label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin: 16px 0 6px; }
.field {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 1.0625rem;
  transition: border-color 150ms linear, box-shadow 150ms linear;
  -webkit-appearance: none;
  appearance: none;
}
.field::placeholder { color: var(--ink-3); opacity: 1; }
.field:hover { border-color: var(--ink-3); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.field[aria-invalid="true"] { border-color: var(--danger); }
.field[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.field-hint { margin-top: 6px; font-size: .8125rem; color: var(--ink-2); }
.form-err {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--danger);
  font-weight: 500;
}
.form-err .ico-xs { margin-top: 1px; }
.form-err a, .form-err button { color: var(--link); font-weight: 600; }

.link-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin-top: 10px; }
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--link);
  font-size: .9375rem;
  font-weight: 500;
}
.link-btn:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--ink-3); cursor: default; font-variant-numeric: tabular-nums; }

/* OTP */
.otp-cells {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  max-width: 360px;
}
.otp-cells.split { grid-template-columns: repeat(3, minmax(0, 1fr)) 10px repeat(3, minmax(0, 1fr)); }
.otp-cell {
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 120ms linear, box-shadow 120ms linear, opacity 150ms linear;
}
.otp-sep { align-self: center; height: 2px; background: var(--border-strong); border-radius: 2px; }
.otp-cells.focused .otp-cell.active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.otp-cells.focused .otp-cell.active:empty::after {
  content: "";
  width: 2px; height: 24px;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.otp-cells.busy .otp-cell { opacity: .5; }
.otp-cells.bad .otp-cell { border-color: var(--danger); }
.otp-cells.shake { animation: shake 320ms var(--ease); }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.otp-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  font-size: 17px;
  color: transparent;
  caret-color: transparent;
  background: transparent;
  letter-spacing: 1em;
  z-index: 1;
}
.otp-status:empty { display: none; }
.otp-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9375rem; color: var(--ink-2); min-height: 22px; }

.verified-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* tickets */
.tickets { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.bot-text + .tickets { margin-top: 16px; }
.tcard {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  overflow: hidden;
}
.tcard-main { display: flex; gap: 14px; padding: 14px 16px 12px; align-items: flex-start; }
.tdate {
  flex: none;
  width: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
  padding: 6px 0 7px;
  line-height: 1;
}
.tdate-m { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.tdate-d { display: block; margin-top: 4px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tcard.dim .tdate-m { color: var(--ink-3); }
.tinfo { flex: 1; min-width: 0; }
.tname {
  font-size: 1rem;
  line-height: 1.33;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tmeta { margin-top: 2px; font-size: .875rem; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tmeta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.pill-ok { color: var(--success); background: var(--success-soft); }
.pill-muted { color: var(--ink-2); background: var(--fill); }
.pill-bad { color: var(--danger); background: var(--danger-soft); }
.pill-info { color: var(--link); background: var(--accent-soft); }
.tactions { display: flex; border-top: 1px solid var(--border); }
.tact {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none !important;
  white-space: nowrap;
}
.tact span { overflow: hidden; text-overflow: ellipsis; }
.tact + .tact { border-left: 1px solid var(--border); }
.tact:hover { background: var(--accent-soft); }
.tact[aria-disabled="true"] { color: var(--ink-3); }
.tact[aria-disabled="true"]:hover { background: var(--surface); }
.tickets .see-all {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--ink);
}
.tickets .see-all:hover { background: var(--surface); }
.tickets .see-all .ico-sm { color: var(--ink-3); }

/* success / result */
.result-card { display: flex; gap: 14px; align-items: flex-start; }
.check-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
}
.check-badge.bad { background: var(--danger-soft); color: var(--danger); }
.check-badge.accent { background: var(--accent-soft); color: var(--accent); }
.check-badge svg { width: 22px; height: 22px; }
.check-badge .draw { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 300ms var(--ease) 80ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.rq-summary { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface); }
.rq-summary .eyebrow { color: var(--ink-2); }
.rq-summary p:last-child { font-size: .9375rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-card .card-actions .ico-sm { margin-right: -4px; }
.case-line {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.case-line .ico-xs { color: var(--success); }

/* ---------- sheets ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--dur) linear;
}
.scrim.open { opacity: 1; }

.sheet {
  position: fixed;
  z-index: 51;
  left: 0; right: 0; bottom: 0;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform 320ms var(--ease);
  will-change: transform;
}
.sheet.open { transform: none; }
.sheet.dragging { transition: none; }
.sheet-grab {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
  touch-action: none;
  cursor: grab;
}
.sheet-grab i { width: 36px; height: 5px; border-radius: 3px; background: var(--border-strong); }
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 20px;
  min-height: 52px;
  touch-action: none;
}
.sheet-title {
  flex: 1;
  min-width: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.014em;
}
.sheet-close { color: var(--ink-2); background: var(--fill); width: 32px; height: 32px; position: relative; }
.sheet-close::after { content: ""; position: absolute; inset: -6px; }
.sheet-close .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px calc(20px + env(safe-area-inset-bottom));
}
.sheet-body .prose { margin-top: 4px; }
.sheet-foot {
  flex: none;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 600px) {
  .sheet {
    inset: 0;
    margin: auto;
    width: min(440px, calc(100% - 32px));
    height: fit-content;
    max-height: min(720px, calc(100dvh - 64px));
    border-radius: var(--r-sheet);
    box-shadow: var(--shadow-dialog);
    transform: scale(.97);
    opacity: 0;
    transition: transform var(--dur) var(--ease), opacity 180ms linear;
  }
  .sheet.wide { width: min(600px, calc(100% - 32px)); }
  .sheet.open { transform: none; opacity: 1; }
  .sheet-grab { display: none; }
  .sheet-head { padding-top: 12px; }
  .sheet-body, .sheet-foot { padding-bottom: 20px; }
}
html.is-embed .sheet.wide { width: calc(100% - 24px); }

.sum-rows { margin-top: 16px; border-radius: var(--r-card); border: 1px solid var(--border); }
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  font-size: .9375rem;
  line-height: 1.35;
}
.sum-row + .sum-row { border-top: 1px solid var(--hairline); }
.sum-row dt { color: var(--ink-2); flex: none; }
.sum-row dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.sum-row.stack { flex-direction: column; gap: 4px; }
.sum-row.stack dd { text-align: left; font-weight: 400; white-space: pre-wrap; }
.consequence {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--ink);
}
.consequence .ico-sm { color: var(--accent); margin-top: 2px; }

/* toast */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 180ms linear, transform var(--dur) var(--ease);
  pointer-events: none;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- lists used by the request page and sheets ---------- */

.group {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  overflow: hidden;
}
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  text-align: left;
  color: var(--ink);
  transition: background-color 150ms linear;
}
.row:hover { text-decoration: none; background: var(--surface); }
.row:active { background: var(--fill); }
.row + .row { border-top: 1px solid var(--hairline); }
.row-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--ink-2);
  flex: none;
}
.row-icon .ico { width: 19px; height: 19px; }
.row-body { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 1rem; line-height: 1.35; font-weight: 500; }
.row-sub { display: block; margin-top: 1px; font-size: .9375rem; line-height: 1.35; color: var(--ink-2); }
.row-chev { color: var(--ink-3); width: 18px; height: 18px; }
.sheet .group { margin-top: 20px; }

/* ---------- request page ---------- */

.req-page { padding-top: 20px; }
.req-page .large-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.req-page .page-lede { margin-top: 10px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 599px) { .req-page .large-title { font-size: 1.75rem; } }
.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 16px;
  padding: 0 0 0 12px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
}
.attach-chip .ico-sm { color: var(--accent); }
.attach-chip span { min-width: 0; }
.attach-x { width: 44px; height: 40px; color: var(--ink-2); }

.req-step { margin: 32px 0 0; padding: 0; border: 0; min-width: 0; }
.step-title {
  display: block;
  padding: 0;
  margin-bottom: 12px;
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.014em;
}
.req-details { margin-top: 36px; }
.radio-row { cursor: pointer; }
.radio-row:has(.radio:checked) { background: var(--accent-soft); }
.radio-row:has(.radio:checked) .row-title { font-weight: 600; }
.radio-row:has(.radio:checked) .row-icon { background: var(--bg); color: var(--accent); }
.radio {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg) center / 12px 12px no-repeat;
  transition: background-color 120ms linear, border-color 120ms linear;
  cursor: pointer;
}
.radio:checked {
  border-color: var(--accent-fill);
  background-color: var(--accent-fill);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.radio:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.req-sub { margin-top: 4px; }
.select-wrap { position: relative; }
.select { padding-right: 44px; text-overflow: ellipsis; cursor: pointer; }
.select-chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(90deg); color: var(--ink-2); pointer-events: none; }

.req-suggest:empty { display: none; }
.suggest-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-card);
  background: var(--bg);
}
.eyebrow {
  margin-bottom: 4px;
  font-size: .8125rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--accent);
}
.suggest-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.suggest-actions .btn { font-size: .9375rem; padding: 0 14px; }
.suggest-actions .avatar { width: 20px; height: 20px; }
@media (max-width: 599px) {
  .suggest-actions { flex-direction: column; align-items: stretch; }
}
.avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  flex: none;
}
.avatar .ico { width: 14px; height: 14px; stroke-width: 2.6; }

.req-field .field-label { display: flex; justify-content: space-between; gap: 12px; }
.optional { font-weight: 500; color: var(--ink-3); }
.textarea {
  height: auto;
  min-height: 132px;
  padding: 12px 14px;
  line-height: 1.45;
  resize: vertical;
  display: block;
}
.req-matches:empty { display: none; }
.matches-inner { margin-top: 14px; animation: fade-in 180ms linear both; }
.matches-title { margin: 0 0 8px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.req-matches .row { min-height: 48px; }
.req-matches .row-title { font-size: .9375rem; }

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 16px;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.privacy .ico-xs { margin-top: 1px; color: var(--success); }
.req-form-err { margin: 0 0 12px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.done-hero { text-align: center; padding: 48px 0 4px; }
.check-badge.lg { width: 64px; height: 64px; margin: 0 auto; }
.check-badge.lg svg { width: 34px; height: 34px; }
.done-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.done-title:focus-visible { outline-offset: 6px; }
.case-row { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; }
.case-ref { font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--link);
}
.copy-btn:hover { background: var(--accent-soft); }
.done-text { margin: 4px auto 0; max-width: 34ch; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.done-text strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.section { margin-top: 32px; }
.section-head { margin-bottom: 10px; }
.section-title { font-size: .9375rem; font-weight: 600; }
.done-actions { margin-top: 24px; }

/* ---------- motion & material preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    scroll-behavior: auto !important;
  }
  .t-item, .collapse-in, .page.enter, .ask-dd { animation-name: fade-in !important; }
  .otp-cells.shake { animation: none !important; }
  .check-badge .draw { animation: none !important; stroke-dashoffset: 0; }
  .bot-turn.streaming .bot-text > :last-child::after { animation: none !important; opacity: .6; }
  .spinner { animation: spin 1s linear infinite !important; animation-iteration-count: infinite !important; animation-duration: 1s !important; }
  .press:active:not(:disabled) { transform: none; }
  .sheet { transform: none !important; opacity: 0; transition: opacity 150ms linear !important; }
  .sheet.open { opacity: 1; }
  .toast { transform: translate(-50%, 0) !important; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .tact svg { display: none; }
}
