/* InsightsHQ Client Portal — standalone stylesheet (no CDN, no build step)
   Brand: the Exquitech brand kit 1.0, served from /static/brand/ (see base.html).
   /static/brand/css/exquitech.css loads first and brings the Inter font (bundled,
   with its OFL licence), every --exq- token and the kit's components. This file
   maps the portal's own variables onto those tokens, so every page, including the
   product pages that only use var(--accent), var(--good) and so on, follows the
   kit. Build new rules from the --exq- tokens, not from copied colour values.

   Brand choices (the kit's "To confirm" list leaves them open):
   - Blue: Exquitech Blue (--exq-blue, the website and reversed-logo blue) for
     fills, rules, icons and large text; --exq-blue-ink for small text and behind
     small white text (white on --exq-blue is 3.15:1, short of AA for small text).
   - Navy: --exq-navy for the top bar and dark surfaces; --exq-ink for text. */

:root {
  --bg: var(--exq-bg);
  --card: var(--exq-card);
  --ink: var(--exq-ink);
  --muted: var(--exq-mute);
  --line: var(--exq-line);
  --accent: var(--exq-blue);            /* fills, rules, large text */
  --accent-deep: var(--exq-blue-ink);   /* small text on white; behind small white text */
  --accent-soft: var(--exq-soft-blue);
  --cyan: var(--exq-cyan);
  --purple: var(--exq-purple);
  --navy: var(--exq-navy);
  --navy-2: var(--exq-navy-2);
  --good: var(--exq-green-dark);        /* positive figures as text */
  --good-bar: var(--exq-green);         /* green as a shape only */
  --good-soft: var(--exq-soft-green);
  --warn: var(--exq-on-soft-amber);     /* amber is never text in the kit */
  --warn-soft: var(--exq-soft-amber);
  --risk: var(--exq-red);
  --risk-soft: var(--exq-soft-red);
  --risk-ink: var(--exq-on-soft-red);   /* small red text on a pale ground */
  --on-navy: #c9d6e8;                   /* text on navy: the kit's menu text (.exq-nav), which has no token */
  --radius: var(--exq-radius-lg);
  --shadow: var(--exq-shadow);
  font-size: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* body carries class="exq" (the kit's switch). The portal keeps its 15px root and
   its own heading sizes; the classed rules further down size every heading. */
body, body.exq {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--exq-font);
  font-size: 1rem;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}
a, :where(.exq) a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2em; } h2 { font-size: 1.5em; } h3 { font-size: 1.17em; }
p { margin: 0; }
small { color: var(--muted); }

/* ------------------------------------------------------------- design scale
   One type scale, one spacing scale, one radius family. New components use
   these; older product components keep their own sizes and inherit the colours. */
:root {
  --fs-xs: .75rem; --fs-sm: .85rem; --fs-md: 1rem; --fs-lg: 1.2rem;
  --fs-xl: 1.6rem; --fs-2xl: 2.15rem; --fs-3xl: var(--exq-text-display);
  --sp-1: var(--exq-gap-1); --sp-2: var(--exq-gap-2); --sp-3: var(--exq-gap-3); --sp-4: var(--exq-gap-4);
  --sp-5: var(--exq-gap-6); --sp-6: 32px; --sp-7: var(--exq-gap-9); --sp-8: 72px;
  --radius-lg: var(--exq-radius-xl);
  --ease: var(--exq-ease);
  --shadow-lift: 0 1px 2px rgb(0 18 43 / .06), 0 18px 40px -22px rgb(0 18 43 / .28);
  --ink-2: var(--exq-label);
  --surface-2: var(--exq-soft-neutral);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Focus: the kit's ring is the brand blue at 30%, which is faint on white; the portal
   keeps a solid 2px ring in blue ink plus the kit halo, and white on navy surfaces. */
:focus-visible { outline: 2px solid var(--exq-blue-ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--exq-focus); border-radius: 6px; }
.topbar :focus-visible, .productbar :focus-visible, .hero :focus-visible, .cta-band :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgb(95 216 255 / .45); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------------------------------------------------------------- topbar
   Navy with the kit's menu backdrop (blue light top left, purple bottom right).
   Text on navy follows the kit's menu colours: #c9d6e8 (12.7:1), labels in cyan. */
.topbar { background: var(--exq-navy); background-image: var(--exq-backdrop-chrome); color: #fff; position: relative; z-index: 20; }
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 28px;
  display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.topbar .brand { color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--exq-radius-sm); background: var(--exq-card);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.brand-mark img { width: 27px; height: 27px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; letter-spacing: -.01em; }
.brand-text small { color: var(--exq-cyan); font-size: var(--exq-text-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }

.sitenav { display: flex; gap: 4px; }
.sitenav a { color: var(--on-navy); font-size: var(--fs-sm); font-weight: 500; padding: 8px 12px; border-radius: var(--exq-radius-md); transition: background var(--exq-fast) var(--ease), color var(--exq-fast) var(--ease); }
.sitenav a:hover { color: #fff; background: rgb(255 255 255 / .07); text-decoration: none; }
/* The kit's active menu item: its blue gradient and glow, white semibold text. The
   gradient starts at blue ink, so the words sit on a ground that clears 4.5:1. */
.sitenav a.on { color: #fff; font-weight: 600; background: linear-gradient(90deg, var(--exq-blue-ink), var(--exq-blue)); box-shadow: var(--exq-shadow-glow); }

.product-switch { display: flex; align-items: center; gap: 8px; }
.product-switch select {
  background: var(--exq-navy-2); color: var(--exq-ice-text); border: 1px solid rgb(95 216 255 / .28); border-radius: var(--exq-radius-md);
  padding: 7px 10px; font: inherit; font-size: var(--fs-sm); min-width: 200px; cursor: pointer;
}
.product-switch select:hover { border-color: var(--exq-ice); }

.topbar-meta { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.demo-chip {
  font-size: var(--exq-text-xs); font-weight: 600; padding: 4px 10px; border-radius: var(--exq-radius-pill); white-space: nowrap;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--exq-cyan); border: 1px solid rgb(0 224 244 / .35); background: rgb(0 224 244 / .06); cursor: help;
}

/* ------------------------------------------------------------- productbar */
.productbar { background: var(--exq-navy); background-image: linear-gradient(180deg, transparent, rgb(10 33 64 / .9)), var(--exq-backdrop-chrome); color: #fff; }
.productbar-inner { max-width: 1240px; margin: 0 auto; padding: 14px 28px 0; }
.crumbs { font-size: var(--fs-xs); color: var(--exq-mute-dark); display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.crumbs a { color: var(--on-navy); }
.product-title h1 { font-size: var(--fs-xl); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
/* The product's own colour (config accent) marks it as the dot on the landing page does;
   everything else on a product page takes the brand tokens. */
.product-title h1::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--product-accent, var(--exq-blue)); flex: none; }
.product-title p { color: var(--on-navy); margin-top: 4px; font-size: .95rem; max-width: 72ch; }
/* Business-domain caption + sibling strip in the product bar. Both sit on the dark
   navy header, so they invert the light-theme .analyst-details styling. */
.product-domain { color: var(--exq-soft-text) !important; font-size: .82rem !important; margin-top: 8px !important; }
.product-domain em { color: var(--exq-mute-dark); font-style: italic; }
.domain-siblings { margin-top: 6px; border: 0; padding: 0; background: none; }
.domain-siblings summary { color: var(--exq-mute-dark); font-size: .8rem; padding: 0; }
.domain-siblings summary:hover { color: var(--exq-ice-text); }
.domain-siblings-body { padding: 6px 0 2px 14px; }
.domain-siblings-body p { color: var(--exq-mute-dark) !important; font-size: .8rem !important; }
.domain-sibling-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.domain-sibling-list li { font-size: .82rem; color: var(--exq-mute-dark); }
.domain-sibling-list a { color: var(--exq-ice-text); font-weight: 600; text-decoration: none; }
.domain-sibling-list a:hover { text-decoration: underline; }
.domain-sibling-list .subtle { color: var(--exq-mute-dark); }

/* Product tabs on navy. The current tab opens onto the page (page background)
   with the brand blue rule along its top, the kit's tab marker turned for a dark bar. */
.tabs { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; align-items: flex-end; }
.tabs > a, .tab-more > summary {
  color: var(--on-navy); padding: 10px 16px; border-radius: var(--exq-radius-md) var(--exq-radius-md) 0 0; font-size: .9rem; font-weight: 600;
  transition: background var(--exq-fast) var(--ease), color var(--exq-fast) var(--ease);
}
.tabs > a:hover, .tab-more > summary:hover { color: #fff; text-decoration: none; background: rgb(255 255 255 / .07); }
.tabs > a.on, .tab-more.on > summary { background: var(--bg); color: var(--ink); box-shadow: inset 0 3px 0 var(--exq-blue); }
.tab-more { position: relative; }
.tab-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tab-more > summary::-webkit-details-marker { display: none; }
.tab-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.tab-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px; z-index: 30;
  background: var(--exq-card); border: 1px solid var(--line); border-radius: var(--exq-radius-lg); box-shadow: var(--shadow-lift);
  padding: 8px; display: grid; gap: 2px; animation: pop .16s var(--ease);
}
.tab-menu-h { font-size: var(--exq-text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 6px 10px 4px; }
.tab-menu a { color: var(--ink); padding: 8px 10px; border-radius: var(--exq-radius-sm); font-size: .9rem; font-weight: 500; }
.tab-menu a:hover { background: var(--exq-hover); color: var(--accent-deep); text-decoration: none; }
.tab-menu a.on { background: var(--accent-soft); color: var(--exq-on-soft-blue); font-weight: 600; }
.tabs > a.tab-quiet { margin-left: auto; font-size: .82rem; font-weight: 500; color: var(--exq-mute-dark); }
.tabs > a.tab-quiet:hover { color: #fff; }
.tabs > a.tab-quiet.on { color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ page */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 28px 48px; display: grid; gap: 18px; }
.footer { border-top: 1px solid var(--line); background: var(--exq-card); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 22px 28px 30px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: flex-end; }
.footer-copy { display: grid; gap: 6px; max-width: 760px; }
.footer p { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.footer p strong { color: var(--ink-2); }

.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1000px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.02rem; }
.card-head p { color: var(--muted); font-size: .82rem; }
.card-link { font-size: .84rem; font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------------- kpis */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .label { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi .value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--muted); font-size: .8rem; }

/* Small status labels: the kit's badge (pill, 600, soft ground + "on soft" text). */
.chip {
  display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 9px; border-radius: var(--exq-radius-pill);
  vertical-align: middle; letter-spacing: .01em; white-space: nowrap;
}
.chip-model { background: var(--exq-soft-blue); color: var(--exq-on-soft-blue); }
.chip-live { background: var(--exq-soft-green); color: var(--exq-on-soft-green); }
.chip-muted { background: var(--exq-soft-neutral); color: var(--exq-on-soft-neutral); }

.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: var(--exq-radius-pill); white-space: nowrap; background: var(--exq-soft-neutral); color: var(--exq-on-soft-neutral); }
.badge-HIGH, .badge-High { background: var(--exq-soft-red); color: var(--exq-on-soft-red); }
.badge-MEDIUM, .badge-Medium { background: var(--exq-soft-amber); color: var(--exq-on-soft-amber); }
.badge-LOW, .badge-Low { background: var(--exq-soft-green); color: var(--exq-on-soft-green); }

.play { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.play i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.play-save i { background: var(--accent); }
.play-nodisc i { background: var(--good); }
.play-convert i { background: var(--exq-cyan); }
.play-lowroi i { background: var(--exq-amber); }
.play-dnd i { background: var(--exq-data-7); }

/* ----------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th {
  text-align: left; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--exq-subtle);
}
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--exq-hover); }
td.r, th.r { text-align: right; }
.rowlink { font-weight: 700; }
.mono, td.r { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- bars */
.bar { background: var(--exq-soft-neutral); border-radius: 6px; height: 10px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.bar-risk > i { background: var(--risk); }
.bar-good > i { background: var(--good-bar); }
.bar-row { display: grid; grid-template-columns: 130px 1fr 84px; gap: 12px; align-items: center; padding: 7px 0; font-size: .86rem; }
.bar-row .lbl { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ chart */
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; }

/* --------------------------------------------- per-product demand ranges */
/* A labeled horizontal range per product: quiet-week → busy-week band with the
   expected week marked. Bars share one x-scale so they're comparable. */
.range-list { margin-top: 4px; }
.range-row {
  display: grid;
  grid-template-columns: 90px 1fr 168px auto;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.range-row:first-child { border-top: 0; }
.rr-name { font-weight: 600; font-variant-numeric: tabular-nums; font-size: .9rem; }
.rr-track {
  position: relative;
  height: 12px;
  background: var(--exq-soft-neutral);
  border-radius: 6px;
}
.rr-band {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--good-soft);
  border: 1px solid color-mix(in srgb, var(--exq-green-dark) 30%, transparent);
  border-radius: 6px;
  min-width: 6px;
}
.rr-mid, .rr-hi { position: absolute; top: -2px; width: 3px; height: 16px; border-radius: 2px; transform: translateX(-1px); }
.rr-mid { background: var(--good); }
.rr-hi { background: var(--exq-amber); }
.rr-nums { font-size: .82rem; font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.rr-mid-num { color: var(--good); font-weight: 600; }
.rr-arrow { color: var(--muted); }
.rr-hi-num { color: var(--warn); font-weight: 700; }
.rr-swing { color: var(--muted); font-size: .76rem; }
.rr-cover { text-align: right; }
.range-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .8rem; color: var(--muted); align-items: center; }
.range-key span { display: inline-flex; align-items: center; gap: 6px; }
.range-key i { width: 14px; height: 12px; border-radius: 3px; display: inline-block; }
.range-key .rk-band { background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--exq-green-dark) 30%, transparent); }
.range-key .rk-mid { width: 3px; background: var(--good); }
.range-key .rk-hi { width: 3px; background: var(--exq-amber); }
.range-key .rk-note { color: var(--muted); font-style: italic; }
@media (max-width: 640px) {
  .range-row { grid-template-columns: 1fr; gap: 6px; }
  .rr-nums, .rr-cover { justify-content: flex-start; text-align: left; }
}

/* -------------------------------------- per-node demand fan + node picker */
.node-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.node-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--exq-radius-pill); border: 1px solid var(--line);
  background: var(--exq-card); font-size: .82rem; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.node-chip:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }
.node-chip.on { background: var(--exq-navy); border-color: var(--exq-navy); color: #fff; }
.node-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.node-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600;
}
.node-form select {
  min-width: 130px; padding: 8px 10px; border: 1px solid var(--exq-field-line); border-radius: var(--exq-radius-md);
  background: var(--exq-field); color: var(--ink); font: inherit; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.node-form button {
  padding: 9px 16px; border: 1px solid var(--exq-blue-ink); border-radius: var(--exq-radius-md); background: var(--exq-blue-ink); color: #fff;
  font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
}
.node-form button:hover { background: var(--exq-on-soft-blue); border-color: var(--exq-on-soft-blue); }

.fan-wrap { margin-top: 4px; }
.fan-chart { width: 100%; height: auto; display: block; }
.fan-grid { stroke: var(--line); stroke-width: 1; }
.fan-ylab { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.fan-xaxis {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.chart-legend i.fk-band { width: 14px; height: 12px; border-radius: 3px; background: var(--accent); opacity: .28; }
.chart-legend i.fk-mid { width: 14px; height: 3px; border-radius: 2px; background: var(--accent); }

/* ------------------------------------------------ lost-sales spread (risk) */
.loss-hist-wrap { margin-top: 4px; }
.loss-hist { width: 100%; height: auto; display: block; }

/* -------------------------------------------------- per-warehouse risk map */
/* Each warehouse is one labeled strip (label rides with its row, so DCs read as
   rows — not a misleading bottom legend). */
.dc-map { margin-top: 8px; }
.dc-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas: "name strip count";
  gap: 4px 14px;
  align-items: center;
  padding: 5px 0;
}
.dc-name { grid-area: name; font-weight: 600; font-size: .86rem; font-variant-numeric: tabular-nums; }
.dc-strip { grid-area: strip; min-width: 0; }
.dc-strip svg { width: 100%; height: auto; display: block; }
.dc-count { grid-area: count; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.dc-count.ok { color: var(--good); font-weight: 600; }
.dc-count.risk { color: var(--warn); font-weight: 600; }
/* On phones the 100-square strip would shrink to a hairline in a shared 1fr
   track — stack so it gets the full card width and the label/count stay legible. */
@media (max-width: 640px) {
  .dc-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name count" "strip strip";
  }
  .dc-count { text-align: right; }
}

.head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.intro-card h2 { margin-bottom: 4px; }
.beforeafter-note { margin-top: 12px; font-size: .92rem; line-height: 1.55; }

/* ------------------------------------------- Midas response / spend curves */
.curve-list { margin-top: 6px; }
.curve-row { padding: 16px 0; border-top: 1px solid var(--line); }
.curve-row:first-child { border-top: 0; }
.curve-head { display: flex; align-items: center; gap: 10px; }
.curve-head h3 { font-size: .95rem; margin: 0; }
.curve-body { display: grid; grid-template-columns: minmax(0, 1.15fr) 1fr; gap: 24px; align-items: center; margin-top: 8px; }
.curve-chart svg { width: 100%; height: auto; display: block; }
.curve-chart .rc-lab { font-size: 9.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.curve-chart .rc-axis { font-size: 9px; }
.curve-takeaway { font-size: .86rem; margin-top: 2px; line-height: 1.5; }
.chart .ci-lab { font-size: 10px; font-variant-numeric: tabular-nums; }
.chip[title] { cursor: help; }
@media (max-width: 640px) { .curve-body { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters .f { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--exq-label); font-weight: 600; }
.filters select, .filters input {
  border: 1px solid var(--exq-field-line); border-radius: var(--exq-radius-md); padding: 8px 10px; font: inherit; font-size: .86rem;
  background: var(--exq-field); color: var(--ink); min-width: 150px;
}
.filters select:focus, .filters input:focus, .node-form select:focus { border-color: var(--exq-blue); }
/* Buttons: the kit's .exq-btn. The primary button sits on blue ink rather than
   Exquitech Blue: its label is small text, and white on --exq-blue is 3.15:1
   (the kit's own note); white on --exq-blue-ink is 4.53:1. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--exq-blue-ink); color: #fff; border: 1px solid var(--exq-blue-ink); border-radius: var(--exq-radius-md);
  padding: 9px 16px; font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--exq-on-soft-blue); border-color: var(--exq-on-soft-blue); color: #fff; text-decoration: none; }
.btn-ghost { background: var(--exq-card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--exq-card); border-color: var(--exq-blue); color: var(--exq-blue-ink); }
.btn-sm { padding: 5px 10px; font-size: .78rem; border-radius: var(--exq-radius-sm); }

.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-size: .84rem; color: var(--muted); margin-top: 12px; }

/* ------------------------------------------------------------ value matrix */
.matrix { display: grid; grid-template-columns: 90px repeat(5, 1fr); gap: 6px; font-size: .8rem; }
.matrix .mh { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.matrix .cell { background: var(--exq-subtle); border: 1px solid var(--line); border-radius: var(--exq-radius-sm); padding: 10px; text-align: center; }
.matrix .cell strong { display: block; font-size: .95rem; }
.matrix .cell small { font-size: .72rem; }

/* ------------------------------------------------------------------ misc  */
.hero-note { color: var(--muted); font-size: .84rem; }
.divide { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.stack { display: grid; gap: 10px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
.subtle { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.big { font-size: 1.3rem; font-weight: 700; }

.budget-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.budget-picker a {
  border: 1px solid var(--line); border-radius: var(--exq-radius-pill); padding: 8px 16px; font-weight: 600; font-size: .86rem; color: var(--ink); background: var(--exq-card);
}
.budget-picker a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-deep); }
.budget-picker a.on { background: var(--exq-navy); border-color: var(--exq-navy); color: #fff; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--exq-navy); color: #fff; padding: 11px 18px; border-radius: var(--exq-radius-md); font-size: .86rem;
  box-shadow: var(--exq-shadow-pop); z-index: 50;
}

.empty { color: var(--muted); font-size: .88rem; padding: 18px 0; }

.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.fact { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.fact:last-child { border-bottom: 0; }
.fact span { color: var(--muted); }
.fact strong { font-variant-numeric: tabular-nums; }

.coming { text-align: center; padding: 70px 20px; }
.coming h2 { font-size: 1.5rem; margin-bottom: 8px; }
.coming p { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* -------------------------------------------------------------- branding */
/* The Exquitech logo, from the kit's SVGs: reversed on the navy bar, full colour on
   the white footer; never recoloured, shadowed or faded. Smallest size 120 px wide;
   clear space of half the logo's height on every side (the padding below), which
   the "by" label and its neighbours stay outside of. 128 px wide = 17.9 px high. */
.powered-by { display: inline-flex; align-items: center; gap: 0; color: var(--on-navy); }
.powered-by:hover { text-decoration: none; }
.powered-by span { font-size: var(--exq-text-xs); color: var(--exq-mute-dark); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.powered-by img, .footer-brand .exq-logo { width: 128px; height: auto; aspect-ratio: 216 / 30.2; display: block; padding: 9px; box-sizing: content-box; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.footer-brand .ihq-logo { height: 20px; width: auto; }
.footer-brand small { flex-basis: 100%; }

/* ------------------------------------------------------- analyst details */
.analyst-details summary {
  cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--accent-deep);
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.analyst-details summary::-webkit-details-marker { display: none; }
.analyst-details summary::before { content: "▸"; font-size: .8rem; transition: transform .15s; }
.analyst-details[open] summary::before { transform: rotate(90deg); }
.analyst-details[open] summary { margin-bottom: 8px; }


/* ---- "What we need from you" discovery panel --------------------------- */
.needs-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.needs-item { border: 1px solid var(--line); border-radius: var(--exq-radius-md); padding: 12px; background: var(--exq-subtle); }
.needs-item h4 { font-size: .9rem; }
.needs-item .cols { color: var(--muted); font-size: .78rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.needs-item .why { font-size: .82rem; margin-top: 6px; line-height: 1.4; }
.needs-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; margin-top: 4px; }
.needs-meta strong { color: var(--ink); }

/* ---- Chart palette + SVG support (server-rendered, no JS) --------------- */
/* The kit's data colours. Each slot keeps the meaning the pages give it (the
   services say "green = the plan", "red = risk"), so slot 2 is the kit's green
   as text (green dark: the bright series green is decoration only, and these
   series also label their points in their own colour) and slot 5 is the kit's red. */
:root {
  --chart-1: var(--exq-data-1); --chart-2: var(--exq-green-dark); --chart-3: var(--exq-data-4);
  --chart-4: var(--exq-data-2); --chart-5: var(--exq-red); --chart-6: var(--exq-data-7);
  --chart-7: var(--exq-data-5); --chart-8: var(--exq-data-8);
}
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { font-size: 10px; fill: var(--muted); }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
/* Plutus queue: collector grouping + toggle */
.qtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--exq-radius-md); overflow: hidden; background: var(--exq-card); }
.qtoggle a { padding: 6px 14px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.qtoggle a.on { background: var(--exq-navy); color: #fff; }
.qtoggle a:hover { text-decoration: none; color: var(--accent-deep); }
.qtoggle a.on:hover { color: #fff; }
.collector-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.collector-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.collector-head h3 { font-size: .98rem; }
.seg-pill { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: var(--exq-radius-pill); background: var(--exq-soft-blue); color: var(--exq-on-soft-blue); }
.seg-pill.harm { background: var(--exq-soft-red); color: var(--exq-on-soft-red); }
.ihq-wrap-cell { overflow-wrap: anywhere; word-break: break-word; }

/* ---- Tables (queue / policy comparison) -------------------------------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--exq-subtle); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num, .tbl th.num { text-align: right; }

/* ---- Decision Hub: cards, urgency, basket, plan review ----------------- */
.decision-opener { background: linear-gradient(180deg, var(--accent-soft), transparent); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.decision-opener h1 { font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.3; }
.decision-opener .sub { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.decision-opener .counts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.decision-opener .counts b { font-size: 1.3rem; }
.decision-opener .counts span { color: var(--muted); font-size: .82rem; display: block; }

.dc-group-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 18px 0 10px; }
/* Per-line stat row on the Helios decisions page (line-by-line, not one wall of situations). */
.line-summary { display: flex; gap: 22px; flex-wrap: wrap; margin: -4px 0 8px; }
.line-summary b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.line-summary span { color: var(--muted); font-size: .78rem; display: block; }
.decision-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.decision-card { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--exq-radius-lg); padding: 16px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.decision-card.is-approved { border-left-color: var(--good); background: var(--good-soft); }
.dc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dc-when { font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: var(--exq-radius-pill); }
.dc-act-now { background: var(--exq-soft-red); color: var(--exq-on-soft-red); }
.dc-soon { background: var(--exq-soft-amber); color: var(--exq-on-soft-amber); }
.dc-later { background: var(--exq-soft-neutral); color: var(--exq-on-soft-neutral); }
.dc-action { font-size: 1.02rem; letter-spacing: -.01em; }
.dc-why { color: var(--muted); font-size: .86rem; line-height: 1.45; display: grid; gap: 3px; }
.dc-consequence { font-size: .86rem; background: var(--exq-subtle); border: 1px dashed var(--line); border-radius: var(--exq-radius-sm); padding: 8px 10px; }
.dc-if { font-weight: 700; color: var(--risk-ink); }
.dc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.dc-evidence { font-size: .82rem; font-weight: 600; }
.dc-approved-flag { display: none; font-size: .8rem; font-weight: 700; color: var(--good); }
.decision-card.is-approved .dc-approved-flag { display: inline; }
.decision-card.is-approved .dc-approve { display: none; }

abbr.term { text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }

.tabs a .basket-badge { display: inline-flex; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 5px; border-radius: 999px; background: var(--exq-purple); color: #fff; font-size: .68rem; font-weight: 700; align-items: center; justify-content: center; vertical-align: middle; }

.review-totals { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 14px; }
.review-totals .kpi .value { font-size: 1.6rem; }
.tabs a .basket-badge[hidden] { display: none !important; }

/* ---- Under the hood: the "kitchen line" method tab ------------------------ */
.uth-flow { display: flex; align-items: stretch; gap: 8px; }
.uth-band { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.uth-band-wide { flex: 1.4 1 0; }
.uth-band-head { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 7px 10px; border-radius: 8px 8px 0 0; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.uth-in { background: var(--exq-blue-ink); }
.uth-mid { background: var(--exq-navy); }
.uth-out { background: var(--exq-on-soft-green); }
.uth-lock { font-size: .6rem; font-weight: 700; background: rgba(255,255,255,.2); padding: 2px 7px; border-radius: 999px; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: help; }
.uth-stack { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-top: none; border-radius: 0 0 8px 8px; flex: 1; }
.uth-tile { border: 1px solid var(--line); border-left-width: 3px; border-radius: 6px; padding: 7px 9px; line-height: 1.25; }
.uth-tile b { display: block; font-size: .82rem; color: var(--ink); font-weight: 700; }
.uth-tile > span { display: block; font-size: .74rem; color: var(--muted); margin-top: 1px; }
.uth-t-in { background: var(--accent-soft); border-left-color: var(--accent); }
.uth-t-mid { background: var(--exq-soft-neutral); border-left-color: var(--exq-navy); }
.uth-t-out { background: var(--good-soft); border-left-color: var(--good); }
.uth-fields { display: block; font-size: .64rem; color: var(--accent-deep); margin-top: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.uth-opt { font-size: .6rem; font-weight: 700; color: var(--exq-on-soft-neutral); background: var(--exq-soft-neutral); padding: 1px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.uth-arrow { flex: 0 0 auto; align-self: center; font-size: 1.9rem; color: var(--line); font-weight: 700; line-height: 1; }
.uth-rail { margin-top: 10px; font-size: .76rem; color: var(--muted); background: var(--card);
  border: 1px dashed var(--line); border-radius: 8px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.uth-rail-tag { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--exq-on-soft-blue); background: var(--exq-soft-blue); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
/* unlock ladder */
.uth-ladder { display: flex; flex-direction: column; gap: 8px; }
.uth-rung { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--card); }
.uth-rung-head { font-size: .84rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.uth-rung-n { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 999px; background: var(--exq-gradient-brand); color: #fff; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; }
.uth-rung-body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.uth-rung-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.uth-rung-cap { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-right: 2px; }
.uth-rung-mid { font-size: 1.1rem; color: var(--muted); font-weight: 700; }
.uth-chip { font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.uth-chip-in { background: var(--exq-soft-blue); color: var(--exq-on-soft-blue); }
.uth-chip-mid { background: var(--exq-soft-neutral); color: var(--ink); border: 1px solid var(--line); }
.uth-refine { font-size: .74rem; color: var(--muted); line-height: 1.4; }
.uth-poc { margin-top: 12px; }
@media (max-width: 720px) {
  .uth-flow { flex-direction: column; }
  .uth-arrow { transform: rotate(90deg); align-self: center; margin: -2px 0; }
  .uth-band-wide { flex: 1; }
  .uth-rung-mid { display: none; }
}

/* ---- Aegis lifecycle band: churn-timeline view of the same risk mix --------- */
.lifecycle-band { margin-top: 18px; }
.lc-track { position: relative; margin: 26px 0 4px; }
.lc-band { display: flex; height: 42px; border-radius: 8px; overflow: hidden; }
.lc-seg { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden;
  border-right: 2px solid var(--card); }
.lc-seg:last-child { border-right: none; }
.lc-seg-n { color: #fff; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0,0,0,.28); white-space: nowrap; }
.lc-good { background: var(--good); }
.lc-warn { background: var(--chart-3); }
.lc-risk { background: var(--risk); }
.lc-window { position: absolute; top: -7px; bottom: -7px; border: 2px dashed var(--accent-deep);
  border-radius: 10px; pointer-events: none; }
.lc-window-lbl { position: absolute; top: -19px; left: 8px; font-size: .68rem; font-weight: 700;
  color: var(--accent-deep); background: var(--card); padding: 0 6px; white-space: nowrap; }
.lc-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 13px; }
.lc-axis-mid { font-weight: 600; }
.lc-phases { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.lc-phase { display: flex; gap: 8px; align-items: flex-start; }
.lc-dot { width: 12px; height: 12px; border-radius: 3px; margin-top: 4px; flex: 0 0 auto; }
.lc-phase-txt { display: flex; flex-direction: column; line-height: 1.32; }
.lc-phase-txt b { font-size: .9rem; }
.lc-count { font-size: .8rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lc-val { font-size: .78rem; color: var(--risk-ink); font-weight: 600; }
.lc-foot { margin-top: 14px; }

/* ---- Kairos price-sensitivity: raw-up-vs-corrected-down diverging mini-bar --- */
.ps-bar { position: relative; height: 14px; min-width: 130px; background: var(--exq-soft-neutral); border-radius: 4px; }
.ps-bar .ps-zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.ps-bar i { position: absolute; top: 0; bottom: 0; }
.ps-raw { background: var(--good); left: 50%; border-radius: 0 4px 4px 0; opacity: .55; }
.ps-corr { background: var(--risk); right: 50%; border-radius: 4px 0 0 4px; }

/* ---- Compass — offer engine (gate cards + expected-margin heatmap) --------- */
.chip-risk { background: var(--exq-soft-red); color: var(--exq-on-soft-red); }
.gate-card { border: 1px solid var(--line); border-radius: var(--exq-radius-md); padding: 14px 16px; background: var(--exq-card); }
.gate-card p { margin: 8px 0 0; font-size: .9rem; }
.gate-pass { border-left: 4px solid var(--good); }
.gate-block { border-left: 4px solid var(--risk); }
.gate-head { display: flex; align-items: center; gap: 10px; }
.gate-head b { font-size: .98rem; }
.heat-tbl td, .heat-tbl th { text-align: center; }
.heat-tbl td:first-child, .heat-tbl th:first-child { text-align: left; }
.heat-cell { font-variant-numeric: tabular-nums; border-radius: 4px; }
.heat-best { outline: 2px solid var(--good); outline-offset: -2px; font-weight: 700; }
.heat-tick { color: var(--good); font-size: .7rem; }

/* ---- Chronos: plain-language explainer (steps, status, share bars, example) -- */
.cx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cx-step { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cx-step b { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.cx-step .n { width: 20px; height: 20px; border-radius: 999px; background: var(--exq-gradient-brand); color: #fff; font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cx-step p { color: var(--muted); font-size: .82rem; margin-top: 5px; line-height: 1.4; }
.cx-status { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--card);
  padding: 14px 16px; margin-bottom: 6px; display: grid; gap: 6px; font-size: .88rem; line-height: 1.5; }
.cx-status .chip { justify-self: start; }
.cx-share { display: grid; grid-template-columns: auto 1fr auto; gap: 5px 10px; align-items: center; font-size: .8rem; margin: 2px 0; }
.cx-share-h { grid-column: 1 / -1; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cx-share b { font-variant-numeric: tabular-nums; text-align: right; }
.cx-share-f { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.cx-track { background: var(--exq-soft-neutral); height: 10px; border-radius: 6px; overflow: hidden; min-width: 60px; }
.cx-track i { display: block; height: 100%; border-radius: 6px; }
.cx-bad { background: var(--risk); opacity: .8; }
.cx-good { background: var(--good); }
.cx-example { font-size: .84rem; line-height: 1.45; background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; }
.cx-example-h { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--exq-on-soft-blue); margin-bottom: 2px; }
.cx-table th { white-space: normal; vertical-align: bottom; }
td.cx-wrap { white-space: normal; min-width: 190px; line-height: 1.4; }
.cx-neighbours { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 720px) { .cx-steps { grid-template-columns: 1fr; } }

/* =====================================================================
   Showcase layer (landing, decision brief, Your systems, print)
   ===================================================================== */

/* ---- motion: one gentle entrance, nothing that loops -------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s var(--ease) both; }
  .reveal:nth-child(2) { animation-delay: .06s; }
  .reveal:nth-child(3) { animation-delay: .12s; }
  .reveal:nth-child(4) { animation-delay: .18s; }
  .reveal:nth-child(5) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- buttons ------------------------------------------------------------ */
.btn { transition: background var(--exq-fast) var(--ease), border-color var(--exq-fast) var(--ease), color var(--exq-fast) var(--ease), transform var(--exq-fast) var(--ease), box-shadow var(--exq-fast) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 13px 22px; font-size: .98rem; border-radius: var(--exq-radius-lg); }
.btn-light { background: #fff; border-color: #fff; color: var(--exq-navy); }
.btn-light:hover { background: var(--exq-soft-text); border-color: var(--exq-soft-text); color: var(--exq-navy); }

.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }

/* ---- landing ------------------------------------------------------------ */
.page-home .page, .page-systems .page { gap: var(--sp-6); }
/* The landing hero is the kit's Data and AI stage (static/brand/css/exquitech-hero.css,
   js/exquitech-hero.js): night blue, the moving data network and the tile mosaic,
   words on the left and artwork on the right as the kit asks. The page's own words
   are unchanged; none of the stage's sample copy (quotes, typed questions) is used.
   Movement is decoration only: with reduced motion the kit draws one still frame and
   stops every animation; printing drops the network. */
.hero {
  position: relative; overflow: hidden; border-radius: var(--exq-radius-xl);
  padding: clamp(32px, 5vw, 60px) clamp(24px, 5vw, 56px);
  color: #fff;
}
.hero:not(.exq-hero) { background: var(--exq-night); background-image: var(--exq-backdrop-hero); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px 44px; align-items: center; }
.hero-copy { min-width: 0; }
.hero .eyebrow.exq-eyebrow { font-size: var(--exq-text-xs); color: var(--exq-ice); letter-spacing: .2em; font-weight: 700; }
.hero-h { font-size: var(--fs-3xl); line-height: 1.06; letter-spacing: -.035em; max-width: 20ch; margin-top: var(--sp-4); }
.hero .hero-h { color: #fff; }
.hero-sub { font-size: clamp(1rem, .9rem + .4vw, 1.18rem); line-height: 1.6; color: var(--exq-soft-text); max-width: 62ch; margin-top: var(--sp-4); }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
/* The main action on the dark stage is white, as the kit's stage CTA. */
.hero .btn:not(.btn-ghost) { background: #fff; border-color: #fff; color: var(--exq-navy); }
.hero .btn:not(.btn-ghost):hover { background: var(--exq-soft-text); border-color: var(--exq-soft-text); color: var(--exq-navy); box-shadow: 0 10px 34px rgb(58 160 255 / .45); }
.hero .btn-ghost { background: transparent; color: var(--exq-soft-text); border-color: rgb(95 216 255 / .3); }
.hero .btn-ghost:hover { background: rgb(95 216 255 / .07); border-color: var(--exq-ice); color: var(--exq-ice); }
.hero-note { color: var(--exq-mute-dark); font-size: var(--fs-sm); margin-top: var(--sp-5); }
.hero-art { align-self: center; }
.hero-art .exq-mosaic { width: min(100%, 320px); }
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.step h3 { font-size: 1.02rem; margin-top: 10px; }
.step p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-top: 6px; }
.step-n { width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--exq-gradient-brand); color: #fff; }

.section-head { max-width: 70ch; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: var(--fs-2xl); letter-spacing: -.03em; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin-top: var(--sp-2); }

.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.solution-card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-4);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 22px; box-shadow: var(--shadow); scroll-margin-top: 20px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.solution-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--card-accent, var(--accent)); }
.solution-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.solution-card-wide { grid-column: 1 / -1; }
.solution-owner { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.solution-head h3 { font-size: var(--fs-xl); letter-spacing: -.025em; margin-top: 6px; }
.solution-q { font-size: 1.02rem; color: var(--ink-2); margin-top: 6px; font-style: italic; }
.solution-promise { font-size: 1.05rem; font-weight: 600; line-height: 1.5; margin-top: var(--sp-3); }
.solution-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.solution-card-wide .solution-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-link {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start;
  padding: 12px 14px; border-radius: var(--exq-radius-lg); border: 1px solid var(--line); background: var(--exq-subtle); color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.sp-link:hover { text-decoration: none; border-color: var(--dot, var(--accent)); background: var(--exq-hover); }
.sp-name { font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-name::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--dot, var(--accent)); flex: none; }
.sp-tag { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--exq-on-soft-blue); background: var(--exq-soft-blue); padding: 2px 7px; border-radius: var(--exq-radius-pill); }
.sp-q { grid-column: 1; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.sp-status { grid-column: 2; grid-row: 1; font-size: .72rem; font-weight: 700; color: var(--good); display: inline-flex; align-items: center; gap: 5px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--exq-green); box-shadow: 0 0 0 3px var(--exq-soft-green); }
.solution-proof { font-size: .84rem; color: var(--muted); line-height: 1.5; border-top: 1px dashed var(--line); padding-top: var(--sp-3); }
.solution-proof strong { color: var(--ink-2); }
.solution-cta { font-weight: 700; font-size: .92rem; margin-top: auto; }

.cta-band {
  display: flex; gap: var(--sp-5); align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-radius: var(--radius-lg); padding: 32px clamp(24px, 4vw, 48px); color: #fff;
  /* the kit's in-page banner: navy with the two brand glows */
  background: var(--exq-navy); background-image: var(--exq-backdrop-banner);
}
.cta-band h2 { font-size: var(--fs-xl); letter-spacing: -.02em; color: #fff; }
.cta-band p { color: var(--on-navy); margin-top: 6px; max-width: 64ch; line-height: 1.55; }

/* ---- decision opener + brief ------------------------------------------- */
.decision-opener {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-bottom: 0; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.decision-opener::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--exq-gradient-brand); }
.decision-opener .opener-q { color: var(--accent-deep); margin-bottom: 8px; letter-spacing: .06em; text-transform: none; font-size: .9rem; }
.decision-opener h1 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); letter-spacing: -.025em; line-height: 1.2; max-width: 46ch; }
.decision-opener .sub { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin-top: 10px; max-width: 86ch; }
.decision-opener .counts { gap: 12px; margin-top: 18px; align-items: stretch; }
.decision-opener .counts > div { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; min-width: 150px; display: flex; flex-direction: column; justify-content: center; }
.decision-opener .counts > div:last-child { background: none; padding: 0; min-width: 0; }
.decision-opener .counts b { font-size: 1.4rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.brief { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.brief-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.brief-start { border-color: color-mix(in srgb, var(--exq-blue) 35%, var(--line)); background: var(--exq-hover); box-shadow: inset 4px 0 0 var(--exq-blue); }
.brief-k { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.brief-v { font-size: .95rem; line-height: 1.45; font-weight: 600; color: var(--ink); }
.brief-when { font-size: .78rem; color: var(--accent-deep); font-weight: 600; }

.decision-card { border-radius: var(--exq-radius-lg); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.decision-card:hover { box-shadow: var(--shadow-lift); }

.fold { padding: 0; }
.fold > summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "+"; width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--exq-soft-blue); color: var(--exq-on-soft-blue); font-weight: 700; flex: none; }
.fold[open] > summary::before { content: "–"; }
.fold > summary span { color: var(--muted); font-weight: 500; font-size: .9rem; }
.fold > :not(summary) { margin-left: 20px; margin-right: 20px; }
.fold[open] { padding-bottom: 18px; }

/* ---- Your systems ------------------------------------------------------- */
.sys-hero { padding: 8px 0 0; }
.sys-hero .hero-h { color: var(--ink); max-width: 24ch; font-size: clamp(1.9rem, 1.2rem + 2vw, 2.7rem); }
.sys-hero .hero-sub { color: var(--ink-2); }
.sys-line { margin-top: var(--sp-4); display: inline-block; background: var(--exq-soft-blue); color: var(--exq-on-soft-blue); border-radius: var(--exq-radius-pill); padding: 7px 14px; font-size: .9rem; }

.sys-picker { padding: 24px 26px; display: grid; gap: 18px; }
.sys-picker-head h2 { font-size: var(--fs-lg); }
.sys-family { border: 0; margin: 0; padding: 0; min-width: 0; }
.sys-family legend { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0; margin-bottom: 8px; }
.sys-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sys-chip { position: relative; cursor: pointer; }
.sys-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sys-chip span {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--exq-radius-pill);
  border: 1px solid var(--line); background: var(--exq-card); font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.sys-chip span::before { content: ""; width: 14px; height: 14px; border-radius: 999px; border: 1.5px solid var(--exq-field-line); transition: all .18s var(--ease); }
.sys-chip:hover span { border-color: var(--exq-blue); color: var(--exq-blue-ink); }
.sys-chip input:focus-visible + span { outline: 2px solid var(--exq-blue-ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--exq-focus); }
.sys-chip input:checked + span { background: var(--exq-navy); border-color: var(--exq-navy); color: #fff; }
.sys-chip input:checked + span::before { border-color: var(--exq-blue); background: #fff; box-shadow: inset 0 0 0 3px var(--exq-blue); }
.sys-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sys-empty { text-align: center; padding: 34px 24px; display: grid; gap: 8px; }
.sys-empty p:first-child { font-size: 1.05rem; font-weight: 600; }
.sys-results { display: grid; gap: var(--sp-5); }
.sys-results[hidden], .sys-empty[hidden], [data-uc][hidden], [data-sys-group][hidden], .sys-q[hidden] { display: none; }

.sys-summary { display: grid; gap: 12px; }
.sys-for { font-size: 1rem; color: var(--ink-2); }
.sys-tiles { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 10px; }
.sys-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.sys-tile b { font-size: 1.7rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sys-tile span { font-size: .8rem; color: var(--muted); line-height: 1.35; display: flex; gap: 6px; align-items: baseline; }
.sys-tile-main { background: var(--exq-navy); background-image: var(--exq-backdrop-banner); border-color: var(--exq-navy); color: #fff; }
.sys-tile-main b { font-size: 2.2rem; }
.sys-tile-main span { color: var(--on-navy); font-size: .9rem; }
.sys-summary-foot { font-size: .88rem; }

.sys-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sys-group-head h2 { font-size: var(--fs-lg); letter-spacing: -.015em; }
.sys-group-head p { color: var(--muted); font-style: italic; }
.uc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.uc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); animation: pop .22s var(--ease);
}
.uc h3 { font-size: 1.08rem; letter-spacing: -.01em; }
.uc h3 a { color: var(--ink); }
.uc h3 a:hover { color: var(--accent-deep); }
.uc-tag { font-size: .74rem; color: var(--muted); font-weight: 500; }
.uc-tag-live { color: var(--good); }
.uc-roadmap { background: var(--exq-subtle); border-style: dashed; box-shadow: none; }
.uc-does { font-size: .92rem; line-height: 1.5; }
.uc-meta { font-size: .84rem; color: var(--ink-2); display: flex; gap: 8px; line-height: 1.45; }
.uc-meta > span { flex: 0 0 70px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.uc-meta em { font-style: normal; }
.uc-needs { background: var(--exq-subtle); border: 1px solid var(--line); border-radius: var(--exq-radius-md); padding: 10px 12px; }
.uc-needs-h { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.uc-needs ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: .86rem; line-height: 1.4; }
.uc-needs li[hidden], .uc-tech li[hidden] { display: none; }
.uc-tech summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--accent-deep); }
.uc-tech ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.uc-tech p { font-size: .78rem; color: var(--muted); line-height: 1.45; margin-top: 6px; }

.lvl { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: var(--exq-radius-pill); line-height: 1.25; }
.lvl::before, .lvl-dot { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; display: inline-block; }
.lvl-demonstrated { background: var(--exq-soft-green); color: var(--exq-on-soft-green); }
.lvl-prepared { background: var(--exq-soft-blue); color: var(--exq-on-soft-blue); }
.lvl-partial { background: var(--exq-soft-amber); color: var(--exq-on-soft-amber); }
.lvl-assess { background: var(--exq-soft-neutral); color: var(--exq-on-soft-neutral); }
.lvl-roadmap { background: var(--exq-soft-purple); color: var(--exq-on-soft-purple); }
.lvl-none { display: none; }
.lvl-dot.lvl-demonstrated { background: var(--exq-green); } .lvl-dot.lvl-prepared { background: var(--exq-blue); }
.lvl-dot.lvl-partial { background: var(--exq-amber); } .lvl-dot.lvl-assess { background: var(--exq-mute); }

.sys-questions h2, .sys-key h2 { font-size: var(--fs-lg); margin-bottom: 4px; }
.sys-q-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 14px; }
.sys-q { border: 1px solid var(--line); border-radius: var(--exq-radius-lg); padding: 14px 16px; background: var(--exq-subtle); }
.sys-q h3 { font-size: 1rem; }
.sys-q h3 small { font-weight: 500; font-size: .76rem; margin-left: 4px; }
.sys-q ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: .88rem; line-height: 1.45; }
.lvl-key { display: grid; gap: 10px; margin: 12px 0; }
.lvl-key > div { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 12px; align-items: start; }
.lvl-key dt { margin: 0; } .lvl-key dd { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }

.print-only { display: none; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card-wide .solution-products { grid-template-columns: 1fr; }
  .sys-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-tile-main { grid-column: 1 / -1; }
  .brief { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .topbar-inner { gap: var(--sp-3); }
  .product-switch select { min-width: 0; max-width: 60vw; }
  .tabs > a.tab-quiet { margin-left: 0; }
  .lvl-key > div { grid-template-columns: 1fr; }
}

/* ---- print: a one-page summary of the visitor's selection ----------------
   Compact on purpose: each use case prints as its evidence label, name, one
   line on what it does and the tables it needs; the screen-only detail (who
   acts, the data-team notes) stays on screen. */
@media print {
  @page { size: A4; margin: 10mm 11mm; }
  :root { font-size: 9px; }
  * { animation: none !important; transition: none !important; box-shadow: none !important; }
  body { background: #fff; }
  .topbar, .footer, .skip-link, .toast, .sys-picker, .sys-hero, .sys-empty, .uc-tech,
  .uc-meta, .uc-tag, .uc-needs-h, .sys-questions > .subtle { display: none !important; }
  .page { padding: 0; max-width: none; display: block; }
  .print-only { display: flex; }
  .print-head { gap: 8pt; align-items: center; border-bottom: 1.2pt solid var(--exq-navy); padding-bottom: 4pt; }
  .print-head img { width: 20pt; height: 20pt; }
  .print-head strong { display: block; font-size: 12pt; }
  .print-head .subtle { font-size: 7.5pt; }
  .sys-results { display: block; }
  .sys-results > * + * { margin-top: 5pt; }
  .sys-summary { gap: 3pt; }
  .sys-for { font-size: 8.5pt; }
  .sys-tiles { grid-template-columns: repeat(5, 1fr); gap: 3pt; }
  .sys-tile { padding: 3pt 5pt; border-radius: 4pt; gap: 0; }
  .sys-tile b { font-size: 11pt; }
  .sys-tile-main { grid-column: auto; background: #fff; background-image: none; color: var(--exq-navy); border: 1pt solid var(--exq-navy); }
  .sys-tile-main b { font-size: 12pt; }
  .sys-tile-main span, .sys-tile span { color: var(--exq-label); font-size: 6.5pt; }
  .sys-summary-foot { font-size: 7pt; }
  .sys-group-head { margin-bottom: 2pt; gap: 6pt; break-after: avoid; page-break-after: avoid; }
  .sys-group-head h2 { font-size: 9pt; }
  .sys-group-head p { font-size: 7pt; }
  .uc-grid { display: flex; flex-wrap: wrap; gap: 3pt; }
  .uc-grid > .uc { width: calc(25% - 2.25pt); }
  .uc { padding: 3pt 5pt; gap: 1pt; border-radius: 3pt; break-inside: avoid; background: #fff; }
  .uc h3 { font-size: 8pt; }
  .uc-does { font-size: 6.8pt; line-height: 1.3; }
  .uc-needs { background: none; padding: 0; border-radius: 0; }
  .uc-needs ul { display: block; margin: 0; padding: 0; list-style: none; font-size: 6.5pt; color: var(--exq-on-soft-neutral); line-height: 1.3; }
  .uc-needs li { display: inline; }
  .uc-needs li:not([hidden]) ~ li:not([hidden])::before { content: " · "; }
  .lvl { font-size: 6pt; padding: 0 4pt; }
  .uc-top { line-height: 1; }
  .sys-questions, .sys-key { padding: 4pt 6pt; border: .8pt solid var(--exq-line); border-radius: 4pt; break-inside: avoid; }
  .sys-questions h2, .sys-key h2 { font-size: 8.5pt; margin: 0; }
  .sys-q-grid { grid-template-columns: repeat(4, 1fr); gap: 3pt; margin-top: 2pt; }
  .sys-q { padding: 2pt 4pt; background: none; border: 0; }
  .sys-q h3 { font-size: 7.5pt; }
  .sys-q ul { font-size: 6.5pt; gap: 0; margin-top: 1pt; padding-left: 9pt; line-height: 1.3; }
  .sys-key .lvl-key { grid-template-columns: repeat(2, 1fr); gap: 1pt 8pt; margin: 2pt 0; }
  .lvl-key > div { grid-template-columns: 1fr; gap: 0; }
  .lvl-key dd { font-size: 6.3pt; line-height: 1.25; }
  .sys-key > .subtle { font-size: 6.5pt; }
  a { color: inherit; text-decoration: none; }
}
