/* Omniscient Master Suite - the suite's design tokens (omni_kit/theme.py) as
   CSS variables, so the site reads as the same product as the desktop app.
   Light is the default, like the suite; dark follows the OS (or the toggle).

   Cards: surface + 1px border + 12px radius.  Section titles: the suite's
   PanelHeader - 11px, bold, uppercase, letter-spaced.  Accent #0E9AA7 light,
   #4EE2EC dark. */
:root {
  --bg: #F2F4F8;
  --bg-alt: #E9EDF3;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --border: #D9E0EA;
  --border-strong: #BFC9D6;
  --text: #141A22;
  --text-dim: #5A6675;
  --text-faint: #8794A5;
  --accent: #0E9AA7;
  --accent-dim: #7FD4DB;
  --accent-ink: #FFFFFF;
  --violet: #6A5AE0;
  --ok: #1E9E5A;
  --warn: #B5761A;
  --err: #D23B4A;
  --shadow: rgba(0,0,0,0.08);
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "SFMono-Regular", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1016;
    --bg-alt: #11151C;
    --surface: #161B23;
    --surface-2: #1C222C;
    --border: #242B36;
    --border-strong: #333C4A;
    --text: #E7ECF4;
    --text-dim: #9AA5B6;
    --text-faint: #67707F;
    --accent: #4EE2EC;
    --accent-dim: #2C8F97;
    --accent-ink: #04222A;
    --violet: #8C7BFF;
    --ok: #4ADE80;
    --warn: #FBBF5C;
    --err: #FF6B7A;
    --shadow: rgba(0,0,0,0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #0D1016; --bg-alt: #11151C; --surface: #161B23; --surface-2: #1C222C;
  --border: #242B36; --border-strong: #333C4A; --text: #E7ECF4; --text-dim: #9AA5B6;
  --text-faint: #67707F; --accent: #4EE2EC; --accent-dim: #2C8F97; --accent-ink: #04222A;
  --violet: #8C7BFF; --ok: #4ADE80; --warn: #FBBF5C; --err: #FF6B7A; --shadow: rgba(0,0,0,0.45);
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}
code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { margin: 0; }
h1 { font-size: 26px; letter-spacing: -0.3px; line-height: 1.2; }
h3 { font-size: 15px; }
h4 {
  margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-faint);
}
p { margin: 0 0 10px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 6px 12px; border-radius: 8px; }
.skip:focus { left: 8px; text-decoration: none; }
.dim { color: var(--text-faint); }
.mono { font-family: var(--mono); }

/* ------------------------------------------------------------- top bar */
.devbar {
  background: color-mix(in srgb, var(--warn) 18%, var(--bg));
  color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  padding: 6px 16px; font-size: 12.5px; text-align: center;
}
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--shell); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap;
}
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--text); }
.wordmark:hover { text-decoration: none; }
.chip {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: inline-block;
}
.wm-text { display: flex; flex-direction: column; line-height: 1.15; }
.title { font-weight: 700; font-size: 15px; letter-spacing: 0.3px; }
.sub { font-size: 10px; letter-spacing: 1.6px; color: var(--text-faint); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  color: var(--text-dim); padding: 6px 12px; border-radius: 8px; font-weight: 600;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.session { display: flex; align-items: center; gap: 10px; }
.who { color: var(--text); font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn .short { display: none; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-dim); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* -------------------------------------------------------------- layout */
:root { --shell: 1360px; --gutter: clamp(16px, 3vw, 40px); }
.page { flex: 1; width: 100%; max-width: var(--shell); margin: 0 auto; padding: 28px var(--gutter) 48px; }
.section { margin-top: 36px; }
.section-title, .card h2 {
  margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-faint);
}
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-row .section-title { margin-bottom: 12px; }
.eyebrow {
  margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent);
}
.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 8px; }
.lead { font-size: 15.5px; color: var(--text-dim); max-width: 64ch; margin: 0 0 14px; }
.hint { color: var(--text-dim); margin: 6px 0; }
.hint.small { font-size: 12.5px; color: var(--text-faint); }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card.wide { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 1px 2px var(--shadow);
  min-width: 0;
}
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.feature p { color: var(--text-dim); }
.linkcard { display: block; color: var(--text); }
.linkcard:hover { text-decoration: none; border-color: var(--accent); }
.linkcard p { color: var(--text-dim); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--text-dim); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--text-faint); margin-bottom: 14px; font-size: 12.5px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain.spaced li { margin: 6px 0; }
ol.steps { margin: 8px 0; padding-left: 20px; }
ol.steps li { margin: 5px 0; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.empty { text-align: center; padding: 36px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--text-dim); }
.empty h1, .empty h2 { margin-bottom: 8px; color: var(--text); }
.empty.big { padding: 64px 16px; border-style: solid; background: var(--surface); }
.empty.big .lead { margin-left: auto; margin-right: auto; }
.empty .btnrow { justify-content: center; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-block; cursor: pointer; border-radius: 9px; padding: 8px 16px;
  font: inherit; font-weight: 600; border: 1px solid transparent; text-decoration: none; text-align: center;
}
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); text-decoration: none; }
.linklike { background: none; border: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------ pills and badges */
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px;
}
.pill.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.off { background: var(--surface-2); color: var(--text-faint); border: 1px solid var(--border); }
.pill.err { background: color-mix(in srgb, var(--err) 18%, transparent); color: var(--err); }
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
}
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge.req { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.banner {
  margin: 0 0 16px; padding: 9px 12px; border-radius: 8px; font-size: 13px;
  background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
}
.banner.err { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.banner code { color: inherit; }
.catchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: var(--text-dim);
  background: color-mix(in srgb, var(--cat, var(--text-faint)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat, var(--text-faint)) 35%, transparent);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--text-faint)); display: inline-block; flex: none; }
.chiplink:hover { text-decoration: none; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 20px 0 8px; }
.hero-grid { display: grid; gap: 28px 56px; grid-template-columns: minmax(0, 1fr); }
.display { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -1px; margin: 4px 0 16px; max-width: 18ch; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px;
  display: flex; align-items: baseline; gap: 8px; box-shadow: 0 1px 2px var(--shadow);
}
.stat b { font-size: 22px; letter-spacing: -0.4px; color: var(--accent); }
.stat span { color: var(--text-dim); font-weight: 600; }

/* ------------------------------------------------------------ app tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  box-shadow: 0 1px 2px var(--shadow); color: var(--text);
  transition: border-color .12s, transform .12s;
}
.tile:hover { text-decoration: none; border-color: var(--cat, var(--accent)); transform: translateY(-1px); }
.tile-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tile-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-meta { display: flex; }
.tile-desc {
  color: var(--text-dim); font-size: 13px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-foot { color: var(--text-faint); font-size: 12px; }
.app-icon {
  --sz: 40px;
  width: var(--sz); height: var(--sz); border-radius: calc(var(--sz) * .26); flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--cat, var(--accent)) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 38%, transparent);
  color: var(--cat, var(--accent)); font-weight: 700; font-size: calc(var(--sz) * .42);
}
.app-icon img { display: block; }

/* ------------------------------------------------------ search + filters */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.search { flex: 1 1 280px; max-width: 520px; }
.search input {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 9px; padding: 9px 12px;
}
.search input::placeholder { color: var(--text-faint); }
#app-count { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; cursor: pointer; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border-strong);
}
.filter small { color: var(--text-faint); font-weight: 600; }
.filter:hover { border-color: var(--cat, var(--accent)); }
.filter[aria-pressed="true"] {
  color: var(--text); background: color-mix(in srgb, var(--cat, var(--accent)) 16%, var(--surface));
  border-color: var(--cat, var(--accent));
}

/* ------------------------------------------------------------ app page */
.app-head { display: flex; gap: 18px; align-items: flex-start; }
.app-head-body { min-width: 0; flex: 1; }
.app-head h1 { margin-bottom: 8px; }
.ver { font-size: 14px; font-weight: 600; color: var(--text-faint); letter-spacing: 0; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.jump { color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 12px; }
.jump a code { color: var(--accent); }
.action-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.action-head h3 { margin: 0; font-size: 16px; }
.type { font-family: var(--mono); font-size: 12px; color: var(--violet); }
.choices { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-right: 6px; }
.prompts { margin: 0; padding-left: 20px; }
.prompts li { margin: 6px 0; color: var(--text); }
.snip-title { margin: 0 0 8px; }
.snip + .snip { margin-top: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab {
  font: inherit; font-family: var(--mono); font-size: 12.5px; cursor: pointer; padding: 5px 12px; border-radius: 8px;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border-strong);
}
.tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------- tables, code */
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--border-strong); white-space: nowrap;
}
.tbl td { padding: 8px 10px; border-top: 1px solid var(--border); vertical-align: top; }
.tbl tr:first-child td { border-top: none; }
.codeblock { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); overflow: hidden; margin: 8px 0 10px; }
.cb-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 0 12px; min-height: 26px; }
.cb-lang { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-faint); }
.copy {
  display: none; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; color: var(--accent);
  background: transparent; border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 9px;
}
.js .copy { display: inline-block; }
.copy:hover { background: var(--surface); }
.codeblock pre { margin: 0; padding: 4px 14px 12px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
.codeblock code { background: none; border: none; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.card .codeblock { background: var(--surface-2); }

/* ------------------------------------------------------- workflow graph */
.graph-card { overflow: hidden; }
.graph { display: flex; justify-content: center; padding: 6px 0 10px; }
.graph-v { display: none; width: 100%; max-width: 260px; }
.graph-h { width: 100%; max-width: 1100px; }
svg.wf { width: 100%; height: auto; display: block; font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif; }
.wf-node { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.2; }
.wf-app { fill: var(--text); font-size: 13px; font-weight: 700; }
.wf-act { fill: var(--accent); font-size: 12px; font-family: var(--mono); }
.wf-id { fill: var(--text-faint); font-size: 10px; font-family: var(--mono); }
.wf-edge { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.wf-arrow { fill: var(--accent); }
.wf-label { fill: var(--text-dim); font-size: 10.5px; font-family: var(--mono); }

/* ----------------------------------------------------------------- docs */
.doc-layout { display: block; }
.doc-layout.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 8px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 3px 0; color: var(--text-dim); font-size: 13px; }
.toc a:hover { color: var(--accent); }
.toc li.l3 a { padding-left: 14px; font-size: 12.5px; }
.prose { max-width: 100ch; min-width: 0; }
.prose h1 { margin: 0 0 14px; font-size: 30px; }
.prose h2 { margin: 32px 0 10px; font-size: 20px; letter-spacing: -0.2px; padding-top: 6px; border-top: 1px solid var(--border); }
.prose h3 { margin: 24px 0 8px; font-size: 16px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose li { margin: 3px 0; }
.prose blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--accent); color: var(--text-dim); background: var(--surface); border-radius: 0 8px 8px 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.prose .tablewrap { margin: 10px 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ref { display: grid; gap: 14px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ref-group { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ref-group h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.ref-group h3 small { color: var(--text-faint); font-weight: 600; }
.ref-group li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }

/* ------------------------------------------------------------ dashboard */
.device { border-top: 1px solid var(--border); padding: 10px 0; }
.device:first-of-type { border-top: none; }
.device-head { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.device .name { font-weight: 700; }
.device .meta { color: var(--text-faint); font-size: 12.5px; }
.apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.appchip {
  font-size: 12.5px; padding: 2px 9px; border-radius: 6px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
}
a.appchip { color: var(--accent); }
a.appchip:hover { text-decoration: none; border-color: var(--accent); }
.appchip small { color: var(--text-faint); }
.signin-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

/* --------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--text-faint); font-size: 12.5px; }
.footer-inner {
  max-width: var(--shell); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center;
}
.footer-inner nav { margin-left: auto; display: flex; gap: 14px; }

/* -------------------------------------------------------------- phones */
@media (max-width: 1199px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid.cols-2, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .doc-layout.has-toc { grid-template-columns: 1fr; gap: 12px; }
  .toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 10px 14px; }
  .toc ul { columns: 2; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 8px 10px; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
  .nav { order: 3; width: 100%; margin-right: 0; justify-content: space-between; }
  .nav a { flex: 1; text-align: center; padding: 6px 4px; }
  .session { margin-left: auto; }
  .who { display: none; }
  .graph-h { display: none; }
  .graph-v { display: block; }
  .app-head { flex-direction: column; gap: 12px; }
  .footer-inner nav { margin-left: 0; width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; font-size: 12px; }
  html { scroll-padding-top: 112px; }
  .tbl.rtable thead { display: none; }
  .tbl.rtable td:empty { display: none; }
  .tbl.rtable tr { display: block; border-top: 1px solid var(--border); padding: 8px 0; }
  .tbl.rtable tr:first-child { border-top: none; }
  .tbl.rtable td { display: flex; gap: 10px; border: none; padding: 2px 10px; }
  .tbl.rtable td::before {
    content: attr(data-label); flex: none; min-width: 74px; color: var(--text-faint);
    font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding-top: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover { transform: none; }
}

ul.bullets { margin: 12px 0 0; padding-left: 20px; }
ul.bullets li { margin: 6px 0; color: var(--text-dim); }
.tbl td:first-child { white-space: nowrap; }
.tbl td:first-child code { overflow-wrap: normal; }

/* ------------------------------------------------- wide screens: fill the space */
.hero-panel { padding: 18px 20px 14px; }
.hero-panel h2 { margin-bottom: 10px; }
.catlist { list-style: none; margin: 0; padding: 0; }
.catlist li + li { border-top: 1px solid var(--border); }
.catlist a {
  position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px;
  padding: 11px 6px; color: var(--text); border-radius: 8px; overflow: hidden;
}
.catlist a:hover { text-decoration: none; background: color-mix(in srgb, var(--cat) 8%, transparent); }
.catlist .cl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catlist .cl-count { color: var(--text-faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.catlist .cl-go { color: var(--text-faint); transition: transform .12s, color .12s; }
.catlist a:hover .cl-go { color: var(--cat); transform: translateX(2px); }
.catlist .cl-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w);
  background: color-mix(in srgb, var(--cat) 55%, transparent); border-radius: 2px;
}
.panel-foot { display: block; margin-top: 8px; padding: 8px 6px 2px; font-weight: 600; border-top: 1px solid var(--border); }

.app-layout { display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); }
.app-side { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.app-head .lead { max-width: 90ch; }

.signin-card .lead { max-width: 56ch; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 10px 0; border-top: 1px solid var(--border); color: var(--text-dim); }
.checklist li:first-child { border-top: none; padding-top: 0; }
.checklist b { display: block; color: var(--text); margin-bottom: 2px; }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
  .signin-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1100px) {
  .app-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .app-side { position: sticky; top: 84px; }
}
@media (min-width: 1280px) {
  .lead { font-size: 17px; max-width: 68ch; }
  .section { margin-top: 44px; }
  .tile { padding: 16px; }
}
