/* DylrDev base: tokens, reset, type, shared components. No third-party anything.
   Design direction v2 + Amendment (docs/DESIGN-DIRECTION.md): monochrome near-black and white, quiet type,
   hairline borders, bordered grid cells, one signal green for live states only, blur-in as the one motion.
   Light is the default (first visit); dark is a faithful inversion, only when chosen in our toggle. No purple, no gradients,
   no glow, no glass. */

/* Display face alias. Same system or local glyphs, tighter vertical metrics (ascent 92%, descent 22%), so the
   selection highlight of one headline line never covers the line above (Segoe UI's own metrics are 1.33 em tall,
   taller than our 1.16 headline line height). local() only: nothing is downloaded. */
@font-face { font-family: "Dylr Display"; src: local("Inter Display"), local("Inter"), local("Segoe UI Variable Display"), local("Segoe UI Variable"), local("SF Pro Display"); font-weight: 100 900; ascent-override: 92%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Dylr Display"; src: local("Segoe UI Semibold"), local("SegoeUI-Semibold"); font-weight: 500 650; ascent-override: 92%; descent-override: 22%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Dylr Display", "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", "Cascadia Code", Consolas, Menlo, monospace;
  --r-s: 6px;
  --r-m: 8px;
  --r-l: 12px;
  --r-xl: 16px;
  --gutter: 16px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --spring: cubic-bezier(0.2, 0, 0, 1);

  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --surface-solid: #ffffff;
  --sunken: rgba(0, 0, 0, 0.035);
  --text: #0a0a0a;
  --text-2: #525252;
  --text-3: #6b6b6b;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.17);
  --grid: rgba(0, 0, 0, 0.04);
  --shadow-2: 0 24px 48px -16px rgba(0, 0, 0, 0.18);
  --accent: #0a0a0a;
  --accent-hover: #262626;
  --accent-ink: #ffffff;
  --accent-text: #0a0a0a;
  --accent-soft: rgba(0, 0, 0, 0.05);
  --accent-2: #525252;
  --logo-accent: #0a0a0a;
  --signal: #0a6f39;
  --signal-soft: rgba(11, 122, 62, 0.09);
  --signal-line: rgba(11, 122, 62, 0.4);
  --read: #404040;
  --read-bg: rgba(0, 0, 0, 0.04);
  --read-line: rgba(0, 0, 0, 0.2);
  --write: #8a4f00;
  --write-bg: rgba(214, 140, 0, 0.1);
  --write-line: rgba(176, 106, 0, 0.42);
  --danger: #b0241a;
  --danger-bg: rgba(200, 40, 30, 0.07);
  --danger-line: rgba(176, 36, 26, 0.4);
  --ok: #0b7a3e;
  --sel-bg: rgba(122, 122, 104, 0.18);  /* reads as #e7e7e3 on the paper; translucent so tight headline lines never hide each other's descenders */
  --sel-fg: #0a0a0a;
  --sel-inv-bg: rgba(255, 255, 255, 0.3);
  --sel-inv-fg: #ffffff;

  --shadow-1: none;
  --highlight: 0 0 0 0 transparent;
  --glow-a: transparent;
  --glow-b: transparent;
  --glow-c: transparent;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a0a0a;
  --bg-2: #0e0e0e;
  --surface: #0e0e0e;
  --surface-2: #141414;
  --surface-solid: #111111;
  --sunken: rgba(255, 255, 255, 0.04);
  --text: #ededed;
  --text-2: #a3a3a3;
  --text-3: #959595;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --grid: rgba(255, 255, 255, 0.04);
  --shadow-1: none;
  --shadow-2: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  --highlight: 0 0 0 0 transparent;

  --accent: #ededed;
  --accent-hover: #ffffff;
  --accent-ink: #0a0a0a;
  --accent-text: #ededed;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-2: #a3a3a3;
  --logo-accent: #ededed;
  --signal: #3ecf7c;        /* call connected: armed, live, approved */
  --signal-soft: rgba(62, 207, 124, 0.12);
  --signal-line: rgba(62, 207, 124, 0.4);
  --glow-a: transparent;
  --glow-b: transparent;
  --glow-c: transparent;

  --read: #c4c4c4;
  --read-bg: rgba(255, 255, 255, 0.05);
  --read-line: rgba(255, 255, 255, 0.2);
  --write: #f0b54a;
  --write-bg: rgba(240, 181, 74, 0.1);
  --write-line: rgba(240, 181, 74, 0.4);
  --danger: #ff8c7f;
  --danger-bg: rgba(255, 120, 105, 0.1);
  --danger-line: rgba(255, 120, 105, 0.42);
  --ok: #3ecf7c;
  --sel-bg: rgba(255, 255, 255, 0.2);   /* reads as #3b3b3b on the charcoal */
  --sel-fg: #f5f5f5;
  --sel-inv-bg: rgba(0, 0, 0, 0.2);
  --sel-inv-fg: #0a0a0a;


}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
code, kbd, pre { font-family: var(--mono); }
/* the gray highlighter: one selection style everywhere; the text color is forced so muted grey,
   two-tone headlines, links and code all stay readable while selected */
::selection { background: var(--sel-bg); color: var(--sel-fg); }
::-moz-selection { background: var(--sel-bg); color: var(--sel-fg); }
input::selection, textarea::selection { background: var(--sel-bg); color: var(--sel-fg); }
/* inverted surfaces (ink buttons, dark chat bubbles, toasts): the same highlighter, flipped, so text stays readable */
:is(.btn-primary, .sk-me, .toast, .chip[aria-pressed="true"], .chip[aria-current="true"], .skip-link)::selection,
:is(.btn-primary, .sk-me, .toast, .chip[aria-pressed="true"], .chip[aria-current="true"], .skip-link) ::selection { background: var(--sel-inv-bg); color: var(--sel-inv-fg); }
.dg-tag text::selection { fill: var(--bg); background: var(--sel-inv-bg); }
.lp-clip-toggle ::selection, .lp-clip-toggle::selection { background: rgba(255, 255, 255, 0.3); color: #fff; }

/* ---------- focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 1000;
  padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- ambient background: retired in design v2 (no glow blobs) ---------- */
.ambient { display: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--stack, 16px); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw + 1rem, 3.75rem);
  line-height: 1.16;
  letter-spacing: -0.032em;
  font-weight: 560;
  text-wrap: balance;
}
.h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem); line-height: 1.16; letter-spacing: -0.028em; font-weight: 560; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.6vw + 1rem, 2.15rem); line-height: 1.16; letter-spacing: -0.024em; font-weight: 560; text-wrap: balance; }
/* two-tone headline: first line ink, second line muted grey */
.tone-2 { color: var(--text-3); }
.tl { display: block; }
.h3 { font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem); line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; }
.lede { font-size: clamp(1.02rem, 0.3vw + 0.95rem, 1.15rem); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.eyebrow {
  /* design v2: no kicker pills, no dots, no uppercase tracking. A plain small label where one is still needed. */
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3);
}
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 0.92em; }
/* design v2: gradient text is banned; the class stays harmless for old markup */
.grad-text { color: inherit; }
.eyebrow .dot { display: none; }
code:not(pre code) {
  font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 4px;
  background: var(--sunken); border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

/* ---------- icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 1.6em; height: 1.6em; }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--surface-solid); --_fg: var(--text); --_bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  font-weight: 550; font-size: 0.94rem; line-height: 1; white-space: nowrap;
  color: var(--_fg); background: var(--_bg);
  border: 1px solid var(--_bd); border-radius: var(--r-m);
  text-decoration: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  --_bg: var(--accent); --_fg: var(--accent-ink); --_bd: var(--accent);
}
.btn-primary:hover { --_bg: var(--accent-hover); --_bd: var(--accent-hover); }
.btn-ghost { --_bg: transparent; --_bd: var(--line-strong); }
.btn-ghost:hover { --_bg: var(--sunken); }
.btn-quiet { --_bg: transparent; --_bd: transparent; color: var(--text-2); }
.btn-quiet:hover { --_bg: var(--sunken); --_fg: var(--text); }
.btn-danger { --_bg: transparent; --_fg: var(--danger); --_bd: var(--danger-line); }
.btn-danger:hover { --_bg: var(--danger-bg); }
.btn-danger-solid { --_bg: #b42318; --_fg: #fff; --_bd: transparent; }
.btn-danger-solid:hover { --_bg: #9a1c12; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.88rem; }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: 0.98rem; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm.btn-icon { width: 36px; }
.btn-block { width: 100%; }
@media (pointer: coarse) { .btn-sm { min-height: 40px; } }

/* ---------- glass ---------- */
/* design v2: no glassmorphism. .glass is now a flat panel with a hairline border. */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.card { padding: clamp(18px, 3vw, 28px); }

/* ---------- tier badges (icon + label, never color alone) ---------- */
.tier {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 2px 6px; border-radius: var(--r-s);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
  border: 1px solid; white-space: nowrap; line-height: 1.5;
}
.tier .icon { width: 14px; height: 14px; }
.tier-read { color: var(--read); background: var(--read-bg); border-color: var(--read-line); }
.tier-write { color: var(--write); background: var(--write-bg); border-color: var(--write-line); }
.tier-dangerous { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-s);
  font-size: 0.78rem; font-weight: 600; color: var(--text-2); background: var(--sunken); border: 1px solid var(--line);
  white-space: nowrap;
}
.pill-ok { color: var(--signal); background: var(--signal-soft); border-color: var(--signal-line); }
.pill-warn { color: var(--write); background: var(--write-bg); border-color: var(--write-line); }
.pill-bad { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.85rem; color: var(--text-3); }
.field .err { font-size: 0.85rem; color: var(--danger); font-weight: 550; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--surface-solid); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-m);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: var(--text-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  border-color: var(--text); outline: 3px solid var(--accent-soft); outline-offset: 0; box-shadow: 0 0 0 1px var(--text);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 52px; }
.input-group .btn { position: absolute; right: 4px; top: 4px; min-height: 38px; width: 40px; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--text); flex: none; }

/* ---------- chips (filters) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  font-size: 0.88rem; font-weight: 600; color: var(--text-2);
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-m);
  transition: background-color 0.15s, color 0.15s;
}
.chip:hover { background: var(--sunken); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip:active { transform: none; }

/* ---------- toasts ---------- */
.toast-region {
  position: fixed; z-index: 900; left: 0; right: 0; bottom: 18px;
  display: grid; gap: 10px; justify-items: center; padding-inline: var(--gutter); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  max-width: min(520px, 100%); padding: 11px 16px; border-radius: var(--r-m);
  background: var(--text); color: var(--bg); font-weight: 550; font-size: 0.95rem;
  box-shadow: var(--shadow-2);
  animation: toast-in 0.2s var(--ease) both;
}
.toast.error { background: #b42318; color: #fff; }
.toast.out { animation: toast-out 0.25s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; filter: blur(4px); } }
@keyframes toast-out { to { opacity: 0; filter: blur(4px); } }

/* ---------- spinner ---------- */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--text);
  animation: spin 0.8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- code blocks ---------- */
.codeblock { position: relative; border-radius: var(--r-l); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.codeblock pre { margin: 0; padding: 16px 56px 16px 18px; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; tab-size: 2; }
.codeblock pre code { font-family: var(--mono); background: none; border: 0; padding: 0; }
.codeblock .copy { position: absolute; top: 8px; right: 8px; }
.codeblock .cap { padding: 8px 18px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }

/* ---------- prose (docs, legal) ---------- */
.prose { color: var(--text-2); font-size: 1.04rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); letter-spacing: -0.02em; line-height: 1.2; scroll-margin-top: 90px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin-top: 2.2em; padding-top: 0.3em; }
.prose h3 { font-size: 1.2rem; font-weight: 650; margin-top: 1.8em; }
.prose h4 { font-size: 1.02rem; font-weight: 650; margin-top: 1.5em; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--text-3); }
.prose blockquote { padding: 2px 0 2px 16px; border-left: 2px solid var(--line-strong); color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 480px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; background: var(--sunken); }
.prose tr:last-child td { border-bottom: 0; }

/* phones: a table with a header row stacks into one block per row, each value under its column name
   (tools/build-pages.mjs and js/md.js add data-label), so nothing scrolls sideways or gets cut off */
@media (max-width: 640px) {
  table.stack-table { min-width: 0 !important; }
  table.stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.stack-table tbody, table.stack-table tr, table.stack-table tbody th, table.stack-table td { display: block; }
  table.stack-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.stack-table tbody tr:last-child { border-bottom: 0; }
  table.stack-table tbody th, table.stack-table td { padding: 0; border: 0; background: none; white-space: normal; }
  table.stack-table td + td, table.stack-table th + td { margin-top: 10px; }
  table.stack-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.8rem; font-weight: 500; color: var(--text-3); }
  table.stack-table code { overflow-wrap: anywhere; }
}

/* ---------- site header / footer (shared by marketing pages) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; border-radius: 10px; margin-right: auto; }
.brand svg { width: 112px; height: 24px; }
.brand:hover { text-decoration: none; }
.nav-links { display: none; align-items: center; align-self: stretch; gap: 2px; position: relative; }
.nav-links a {
  display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.92rem;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links a:focus-visible { outline-offset: -8px; }
.nav-links .tab-ink { bottom: -1px; height: 1.5px; border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: inline-flex; }
.site-header > .container { position: relative; }
.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; gap: 2px; padding: 8px var(--gutter) 18px;
  background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.25);
  --pop-origin: top center;
}
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--r-m);
  color: var(--text); font-weight: 600; font-size: 1.05rem; text-decoration: none;
}
.mobile-nav a { transition: background-color 0.15s var(--ease); }
.mobile-nav a:hover, .mobile-nav a:focus-visible, .mobile-nav a[aria-current="page"] { background: var(--sunken); }
.mobile-nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--text); border-radius: 0 var(--r-m) var(--r-m) 0; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}
.theme-toggle .icon { width: 20px; height: 20px; }

.site-footer { margin-top: clamp(64px, 10vw, 140px); border-top: 1px solid var(--line); padding-block: 48px 40px; color: var(--text-2); font-size: 0.93rem; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand { display: grid; gap: 14px; max-width: 360px; }
.footer-brand svg { width: 120px; height: 26px; color: var(--text); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.footer-cols h2 { font-size: 0.86rem; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { color: var(--text-2); text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-3); font-size: 0.85rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.1fr 1.6fr; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- page head for secondary pages ---------- */
.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-head .lede { margin-top: 16px; max-width: 640px; }

/* ---------- reveal on scroll ---------- */
/* the site's one motion: a gentle blur-in, once, when an element enters view (js/site.js adds .in) */
.js .reveal { opacity: 0; filter: blur(10px); }
.js .reveal.in { opacity: 1; filter: none; transition: opacity 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; filter: none; }
  .ambient::before, .ambient::after, .ambient i { animation: none; }
}

@media (forced-colors: active) {
  .btn, .chip, .input, .select, .glass, .card { border: 1px solid CanvasText; }
  .tier, .pill { border: 1px solid CanvasText; }
}

/* ---------- reveal stagger helpers (no inline styles allowed under strict CSP) ---------- */
.d1 { --d: 0.08s; } .d2 { --d: 0.16s; } .d3 { --d: 0.24s; } .d4 { --d: 0.32s; } .d5 { --d: 0.4s; } .d6 { --d: 0.48s; } .d7 { --d: 0.56s; } .d8 { --d: 0.64s; }

/* ---------- segmented radio control ---------- */
.seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-m); }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--r-s); font-weight: 550; font-size: 0.92rem; color: var(--text-2); transition: background-color 0.2s, color 0.2s, box-shadow 0.3s; white-space: nowrap; }
.seg input:checked + span { background: var(--surface-solid); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.seg input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.seg input:disabled + span { opacity: 0.5; }

/* ---------- platform tiles (typographic, monochrome) ---------- */
.ptiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 800px) { .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.ptile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 112px; padding: 18px; border-radius: var(--r-l); }
.ptile-name { font-size: clamp(1.25rem, 2.4vw + 0.4rem, 1.9rem); line-height: 1.1; color: var(--text); overflow-wrap: anywhere; }
.ptile-sub { font-size: 0.82rem; color: var(--text-3); letter-spacing: 0.02em; }
.pn-five9 { font-weight: 800; letter-spacing: -0.045em; }
.pn-genesys { font-weight: 500; letter-spacing: -0.015em; }
.pn-cxone { font-weight: 700; letter-spacing: 0.01em; }
.pn-ringcx { font-weight: 300; letter-spacing: -0.02em; }
.pn-ringcx::first-letter { font-weight: 700; }
.pn-twilio { font-weight: 600; letter-spacing: -0.02em; }
.pn-connect { font-weight: 450; letter-spacing: -0.02em; }
.ptile-soon .ptile-name { color: var(--text-2); }
.ptile .soon-pill { position: absolute; top: 14px; right: 14px; }

/* ---------- modal (native <dialog>) ---------- */
.modal { width: min(480px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-2); }
.modal::backdrop { background: rgba(0, 0, 0, 0.45); }
.modal[open] { animation: modal-in 0.22s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; filter: blur(6px); } }
.modal-body { display: grid; gap: 18px; padding: clamp(22px, 5vw, 32px); }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.modal h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.modal-icon { width: 40px; height: 40px; border-radius: var(--r-m); display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-2); }
.modal-icon .icon { width: 24px; height: 24px; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* ---------- command palette ---------- */
.palette { width: min(560px, calc(100vw - 2 * var(--gutter))); margin-top: 12vh; }
.palette-body { display: grid; }
.palette-input { width: 100%; min-height: 60px; padding: 0 22px; font-size: 1.1rem; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); }
.palette-input:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.palette-list { max-height: 320px; overflow: auto; padding: 8px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); cursor: pointer; flex-wrap: wrap; }
.palette-item.active { background: var(--accent-soft); }
.pal-user { font-weight: 650; }
.pal-mail { font-size: 0.9rem; overflow-wrap: anywhere; }
.palette-foot { padding: 12px 22px 16px; font-size: 0.82rem; border-top: 1px solid var(--line); }

/* Cloudflare Turnstile slot (sign up, forgot password, resend code, invites). Invisible unless Cloudflare
   asks for a click; the note is calm on purpose: it is almost always a network hiccup, not the person. */
.ts-slot { display: grid; gap: 8px; }
.ts-slot:has(.ts-box[hidden]):has(.ts-note[hidden]) { display: none; }
.ts-box { display: flex; justify-content: center; min-height: 0; }
.ts-box:empty { display: none; }
.ts-note { margin: 0; padding: 8px 12px; border-radius: var(--r-m); font-size: 0.88rem; line-height: 1.45; color: var(--text-2); background: var(--sunken); border: 1px solid var(--line); }

/* ---------- design v3: hairline grid (hero only), micro motion ---------- */
:root { --gridline: rgba(10, 10, 10, 0.06); --grid-cell: 72px; }
:root[data-theme="dark"] { --gridline: rgba(255, 255, 255, 0.065); }
/* A faint hairline grid behind heroes and section headers, fading out toward the edges.
   Decoration only: it sits under the content, ignores the pointer and never takes part in selection. */
.grid-bg { position: relative; isolation: isolate; }
/* the grid layer may reach past the content column; main clips it so the page never scrolls sideways */
main { overflow-x: clip; }
.grid-bg::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; user-select: none;
  inset: -96px -12vw -40px;
  background-image: linear-gradient(var(--gridline) 1px, transparent 1px), linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell); background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 58% 72% at 50% 38%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 58% 72% at 50% 38%, #000 18%, transparent 76%);
}
@media (max-width: 719px) { .grid-bg::before { --grid-cell: 56px; inset: -64px calc(-1 * var(--gutter)) -24px; } }

/* popovers, menus and dropdowns: 180 ms fade, slight scale and slide, blur-in (js/motion.js toggles the classes) */
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); filter: blur(4px); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-4px) scale(0.985); filter: blur(3px); } }
.is-entering { animation: pop-in 0.18s var(--ease) both; transform-origin: var(--pop-origin, top left); }
.is-leaving { animation: pop-out 0.15s var(--ease) both; transform-origin: var(--pop-origin, top left); pointer-events: none; }

/* accordions: grid-template-rows 0fr to 1fr (js/motion.js wraps the body and toggles .is-open) */
details > .acc-body { display: grid; grid-template-rows: 0fr; opacity: 0; filter: blur(3px); transition: grid-template-rows 0.22s var(--ease), opacity 0.2s var(--ease), filter 0.2s var(--ease); }
details > .acc-body > .acc-inner { min-height: 0; overflow: hidden; }
details.is-open > .acc-body { grid-template-rows: 1fr; opacity: 1; filter: none; }
.chev { display: inline-block; flex: none; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s var(--ease); }
details.is-open > summary .chev, details[open]:not(.acc-ready) > summary .chev, [aria-expanded="true"] > .chev, [aria-expanded="true"] .chev-r { transform: translateY(2px) rotate(-135deg); }
svg.icon.chev-r { transition: transform 0.2s var(--ease); }
[aria-expanded="true"] svg.icon.chev-r { transform: rotate(180deg); }

/* One accordion indicator, everywhere: never the browser's marker, always a single chevron that rotates.
   Rows that place their own right-aligned .chev get nothing extra; small inline toggles (app) get one after the label. */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary:not(:has(.chev))::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 2px 2px 10px; vertical-align: middle;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform 0.2s var(--ease); opacity: 0.7;
}
details.is-open > summary:not(:has(.chev))::after, details[open]:not(.acc-ready) > summary:not(:has(.chev))::after { transform: translateY(3px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { summary:not(:has(.chev))::after { transition: none; } }

/* tab ink: a 2px line that slides between tabs */
.has-ink { position: relative; }
.tab-ink { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w, 0); transform: translateX(var(--x, 0)); background: var(--text); border-radius: 2px; pointer-events: none; transition: transform 0.22s var(--ease), width 0.22s var(--ease); }
.tab-ink.no-anim { transition: none; }

/* copy button morph to a check */
@keyframes morph { 0% { transform: scale(0.55) rotate(-12deg); opacity: 0; filter: blur(2px); } 100% { transform: none; opacity: 1; filter: none; } }
.is-morph .icon { animation: morph 0.22s var(--ease) both; }
.is-copied { color: var(--signal) !important; }

/* links and hover states: crisp, fast, no bounce */
a { transition: text-decoration-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .is-entering, .is-leaving, .is-morph .icon { animation: none; }
  details > .acc-body, .chev, svg.icon.chev-r, .tab-ink { transition: none; }
}

/* second factor field (sign in, password reset, step-up): app code, or one link away a recovery code */
.sf-field { display: grid; gap: 8px; }
.sf-field .sf-toggle { justify-self: start; }
.sf-box { display: grid; gap: 8px; }
.sf-box[hidden] { display: none; }

/* ---------- terms acceptance card (js/terms-gate.js): full screen, calm, one decision ---------- */
.tg { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); background: var(--bg); }
.tg-card { width: min(100%, 520px); display: grid; gap: 14px; padding: clamp(24px, 5vw, 36px); border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--surface-solid); }
.tg-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-l); color: var(--text-2); }
.tg-icon .icon { width: 22px; height: 22px; }
.tg-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw + 0.9rem, 1.75rem); line-height: 1.16; letter-spacing: -0.02em; font-weight: 600; }
.tg-title:focus { outline: none; }
.tg-docs { display: grid; gap: 6px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); }
.tg-docs a { color: var(--text); font-weight: 550; }
.tg-check { margin-top: 4px; }
.tg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tg-actions .btn-primary { flex: 1 1 220px; }
body.tg-on .app-foot, body.tg-on .st-shell { display: none; }

/* terms checkbox on sign up */
.terms-agree { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); }
.terms-agree .fineprint { margin: 0 0 0 30px; }
.terms-agree .err { margin: 0 0 0 30px; }

/* =====================================================================================================
   Overlay system (js/overlay.js). One look for every focused task and every side sheet.
   ===================================================================================================== */
html.ov-lock, html.ov-lock body { overflow: hidden; }
/* focused overlays: centered card, page dimmed with a light blur behind */
dialog.modal::backdrop, dialog.ov-center::backdrop, dialog.ov-full::backdrop {
  background: rgba(10, 10, 10, 0.28); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
:root[data-theme="dark"] dialog.modal::backdrop { background: rgba(0, 0, 0, 0.55); }
dialog.modal[open] { animation: ov-in 0.2s var(--ease) both; }
dialog.modal[open]::backdrop { animation: ov-fade 0.2s var(--ease) both; }
@keyframes ov-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes ov-fade { from { opacity: 0; } }
dialog.modal { position: fixed; }
.ov-grab { display: none; }
.ov-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.ov-head { display: grid; gap: 14px; padding: clamp(22px, 5vw, 30px) clamp(22px, 5vw, 32px) 0; }
.ov-titles { display: grid; gap: 6px; padding-right: 28px; }
.ov-titles h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.ov-titles h2:focus, .sheet-title:focus { outline: none; }
.ov-body { display: grid; gap: 16px; padding: 18px clamp(22px, 5vw, 32px) clamp(22px, 5vw, 30px); }
.modal-md { width: min(560px, calc(100vw - 2 * var(--gutter))); }
.modal-lg { width: min(720px, calc(100vw - 2 * var(--gutter))); }
/* the connect wizard and other multi-step tasks: a large overlay on desktop */
dialog.ov-full { width: min(980px, calc(100vw - 48px)); height: min(860px, calc(100vh - 48px)); max-height: calc(100vh - 48px); height: min(860px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); }
dialog.ov-full .ov-body { padding-top: 8px; }

/* side sheets: slide in from the right, the list behind stays readable */
dialog.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh; width: min(520px, 100vw);
  padding: 0; border: 0; border-left: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--text);
  box-shadow: -24px 0 48px -32px rgba(0, 0, 0, 0.35); overflow: auto;
}
dialog.sheet::backdrop { background: rgba(10, 10, 10, 0.12); }
:root[data-theme="dark"] dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.35); }
dialog.sheet[open] { animation: sheet-in 0.22s var(--ease) both; }
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } }
.sheet-head { position: sticky; top: 0; z-index: 1; padding: 18px 56px 14px 24px; background: var(--surface-solid); border-bottom: 1px solid var(--line); }
.sheet-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.sheet-sub { margin-top: 2px; font-size: 0.86rem; }
.sheet-body { display: grid; gap: 18px; padding: 20px 24px 32px; }

/* phones: overlays become bottom sheets with a grab handle, side sheets go full screen */
/* toasts never cover an overlay's own buttons: while one is open on a phone they show at the top */
@media (max-width: 640px) { html.ov-lock body .toast-region[popover] { inset: max(12px, calc(env(safe-area-inset-top, 0px) + 8px)) 0 auto 0; } }
@media (max-width: 640px) {
  dialog.modal, dialog.ov-full {
    inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; height: auto; max-height: 92vh; max-height: 92dvh;
    border-radius: 18px 18px 0 0; border-bottom: 0;
    /* the last button never sits under the iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  dialog.modal[open], dialog.ov-full[open] { animation: ov-up 0.24s var(--ease) both; }
  @keyframes ov-up { from { transform: translateY(40px); opacity: 0.4; } }
  .ov-grab { display: block; width: 38px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--line-strong); }
  /* the UA dialog max-width (100% minus 2em) would leave a strip of the page showing: truly full screen */
  dialog.sheet { width: 100vw; max-width: 100%; border-left: 0; }
  /* full screen: keep the title and close button below the status bar, the end of the content above the home indicator */
  dialog.sheet .sheet-head { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  dialog.sheet .sheet-body { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  dialog.sheet .ov-x { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .sheet .ov-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.modal[open], dialog.modal[open]::backdrop, dialog.sheet[open], dialog.ov-full[open] { animation: none; }
}

/* passkey sign in: an "or" rule, then the passkey button */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--text-3); font-size: 0.82rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pk-btn .icon { width: 18px; height: 18px; }
/* bare overlays (route overlays render their own heading) */
.ov-bare .ov-body { padding-top: clamp(22px, 5vw, 30px); }
.ov-h1 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; padding-right: 32px; }
.ov-h1:focus { outline: none; }
.ov-bare .page-head h1, .ov-bare .page-title { padding-right: 40px; }
.sheet-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.sheet-kv dt { color: var(--text-3); font-size: 0.86rem; }
.sheet-kv dd { margin: 0; overflow-wrap: anywhere; }
.sheet-h3 { margin-bottom: 8px; }
.sheet pre.args { max-height: 50vh; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); font-size: 0.8rem; }
.toast .toast-undo { margin-left: 8px; padding: 2px 8px; border: 1px solid currentColor; border-radius: var(--r-s); background: none; color: inherit; font: 600 0.82rem/1.4 var(--font); cursor: pointer; opacity: 0.9; }
.toast .toast-undo:hover { opacity: 1; }
/* the toast region doubles as a manual popover so toasts show above overlays; undo the popover UA box */
.toast-region[popover] { inset: auto 0 max(18px, calc(env(safe-area-inset-bottom, 0px) + 8px)) 0; margin: 0; border: 0; padding: 0; background: none; overflow: visible; color: inherit; width: auto; height: auto; }

/* =====================================================================================================
   Touch and phone floor (visual audit 10/12): every control is at least 44 px on a touch screen and body text is
   at least 14 px on a phone. :root raises specificity so these win over the page sheets loaded after base.css.
   ===================================================================================================== */
@media (pointer: coarse) {
  :root .btn, :root .btn-sm { min-height: 44px; }
  :root .btn-icon, :root .btn-sm.btn-icon { width: 44px; min-width: 44px; }
  :root .brand { min-height: 44px; }
  :root .link-btn { min-height: 44px; }
  :root .input-group .btn { top: 1px; right: 1px; min-height: 44px; width: 44px; }
  /* standalone text links and small footer links: a full-height row, not a 20 px strip */
  :root :is(.lp-cta, .lp-more, .pg-hero-actions, .pg-more, .docs-cta, .cookie-actions, .pf-links, .auth-links, .pg-jump, .guide-top) > a,
  :root :is(.footer-cols, .footer-privacy, .auth-foot, .auth-alt, .auth-links, .pg-crumb) a, :root .cc-more {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  :root .footer-cols li + li { margin-top: 0; }
  :root .footer-cols h2 { margin-bottom: 4px; }
  :root .footer-privacy, :root .auth-foot nav { gap: 0 20px; }
  :root .lp-clip-toggle, :root .lp-copy, :root .codefile .cf-copy, :root .kit-avatar { min-width: 44px; min-height: 44px; }
  :root .lp-copy, :root .codefile .cf-copy { width: 44px; height: 44px; }
  :root :is(.kit-ct-bar, .ctab-bar) button, :root .guide-full > summary { min-height: 44px; }
}
@media (max-width: 640px) {
  :root :is(.lp-fine, .pg-fine, .docs-fine, .footer-tm, .ctab-src, .lp-press-note, .rl-dr-count, .cc-note),
  :root .pg-card .pg-meta, :root .field .hint, :root .rl-legend, :root .pg-report-cta p, :root .terms-agree .fineprint { font-size: 0.875rem; }
  :root .tier, :root .pg-default, :root .rl-corner, :root .pf-lp-title, :root .rl-state, :root .cc-detail dt { font-size: 0.75rem; }
  :root .dg-svg .dg-edge, :root .dg-chip-t, :root .dg-tag text { font-size: 12px; }
}
/* legal pages load their text after first paint: hold the space so the footer does not jump up and back (layout shift) */
#legal-root[aria-busy="true"] { min-height: 100vh; }
/* touch floor, app and staff console controls (visual audit 10/12) */
@media (pointer: coarse) {
  :root .chip, :root .back-link, :root .subnav a, :root .st-tab, :root .org-switch.compact, :root .top-brand { min-height: 44px; }
  :root .subnav a, :root .st-tab, :root .top-brand { display: inline-flex; align-items: center; }
  :root [role="tablist"] > button[role="tab"] { min-height: 44px; }
  :root .ap-select { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
  :root :is(.why, .ev-details) > summary { display: flex; align-items: center; min-height: 44px; }
  :root .toast .toast-undo { min-height: 44px; padding-inline: 14px; }
  :root .home-conn-link { display: block; padding-block: 10px; margin-block: -10px; }
}
