/* Alterra Labs — Official Portal & Failure Analysis Design System.
 * Matches Alterra Labs editorial HTML reports:
 *   Spline Sans Mono · Sandstone Cream · Saline White · Peat Brown · Signal Green · Canopy Green · Lab Blue
 * Strict CSP: zero inline scripts or styles anywhere in templates.
 */

@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/spline-sans-mono.4ebf124f4aa2.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  /* Official Alterra Labs tokens */
  --sandstone-cream: #F0F2EB;
  --saline-white: #F8FDF2;
  --saline-white-85: rgba(248, 253, 242, 0.88);
  --index-gray: #8C887F;
  --light-gray: #D3CEC4;
  --stone-gray: #D4D1CC;
  --peat-brown: #39352F;
  --signal-green: #D9F78F;
  --signal-green-tint: #ECF7D3;
  --canopy-green: #405A41;
  --dilute-blue: #9DB8FF;
  --lab-blue: #5C85FB;
  --alert-pink: #FF8FA3;
  --fig-purple: #803453;

  --bg: var(--sandstone-cream);
  --surface: var(--saline-white);
  --surface-2: #E7EAE0;
  --surface-3: var(--stone-gray);
  --hair: 0.5px solid var(--index-gray);
  --border: var(--light-gray);
  --border-strong: var(--index-gray);
  --text: var(--peat-brown);
  --text-muted: #56524B;
  --text-faint: var(--index-gray);

  --peat: var(--peat-brown);
  --canopy: var(--canopy-green);
  --signal: var(--signal-green);
  --fig: var(--fig-purple);
  --brand-blue: var(--canopy-green);
  --brand-gradient: linear-gradient(90deg, #405A41 0%, #5C85FB 100%);
  --button-gradient: #39352F;

  --link: var(--peat-brown);
  --focus: var(--lab-blue);

  --own-bg: var(--signal-green-tint);
  --own-fg: var(--canopy-green);
  --secret-bg: color-mix(in srgb, var(--alert-pink) 34%, var(--saline-white));
  --secret-fg: var(--fig-purple);
  --neutral-bg: var(--stone-gray);
  --neutral-fg: var(--peat-brown);
  --danger-bg: color-mix(in srgb, var(--alert-pink) 38%, var(--saline-white));
  --danger-fg: var(--fig-purple);
  --success-bg: var(--signal-green);
  --success-fg: var(--peat-brown);
  --warn-bg: #F3E6BD;
  --warn-fg: #5B4308;
  --info-bg: color-mix(in srgb, var(--dilute-blue) 45%, var(--saline-white));
  --info-fg: #243C85;

  --shadow: none;
  --shadow-lg: 0 18px 46px rgba(57, 53, 47, 0.10);
  --bg-glow-a: rgba(217, 247, 143, 0.34);
  --bg-glow-b: rgba(157, 184, 255, 0.22);
  --radius: 5px;
  --radius-sm: 5px;
  --radius-pill: 10px;
  --font: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171613;
    --surface: #211F1B;
    --saline-white-85: rgba(33, 31, 27, 0.90);
    --surface-2: #2A2722;
    --surface-3: #38342E;
    --border: rgba(248, 253, 242, 0.14);
    --border-strong: rgba(248, 253, 242, 0.28);
    --text: #F0F2EB;
    --text-muted: #BEB9AF;
    --text-faint: #8C887F;
    --link: #D9F78F;
    --focus: #D9F78F;
    --button-gradient: #405A41;
    --own-bg: rgba(217, 247, 143, 0.16);
    --own-fg: #D9F78F;
    --secret-bg: rgba(255, 143, 163, 0.20);
    --secret-fg: #FFA7B7;
    --neutral-bg: rgba(248, 253, 242, 0.10);
    --neutral-fg: #E2DFD6;
    --danger-bg: rgba(255, 143, 163, 0.20);
    --danger-fg: #FFA7B7;
    --success-bg: rgba(217, 247, 143, 0.22);
    --success-fg: #D9F78F;
    --warn-bg: rgba(250, 204, 21, 0.18);
    --warn-fg: #FDE047;
    --info-bg: rgba(157, 184, 255, 0.18);
    --info-fg: #B8CBFF;
  }
}

:root[data-theme="dark"] {
  --bg: #171613;
  --surface: #211F1B;
  --saline-white-85: rgba(33, 31, 27, 0.90);
  --surface-2: #2A2722;
  --surface-3: #38342E;
  --border: rgba(248, 253, 242, 0.14);
  --border-strong: rgba(248, 253, 242, 0.28);
  --text: #F0F2EB;
  --text-muted: #BEB9AF;
  --text-faint: #8C887F;
  --link: #D9F78F;
  --focus: #D9F78F;
  --button-gradient: #405A41;
  --own-bg: rgba(217, 247, 143, 0.16);
  --own-fg: #D9F78F;
  --secret-bg: rgba(255, 143, 163, 0.20);
  --secret-fg: #FFA7B7;
  --neutral-bg: rgba(248, 253, 242, 0.10);
  --neutral-fg: #E2DFD6;
  --danger-bg: rgba(255, 143, 163, 0.20);
  --danger-fg: #FFA7B7;
  --success-bg: rgba(217, 247, 143, 0.22);
  --success-fg: #D9F78F;
  --warn-bg: rgba(250, 204, 21, 0.18);
  --warn-fg: #FDE047;
  --info-bg: rgba(157, 184, 255, 0.18);
  --info-fg: #B8CBFF;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: -0.02em;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--lab-blue); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(26px, 3.2vw, 38px); }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
p { margin: 0; }
p + p { margin-top: 12px; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--signal-green);
  color: var(--peat-brown);
  padding: 1px 5px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Floating Alterra topbar (matches Alterra HTML reports) ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 10px 20px 0;
  background: none;
}
.topbar-inner {
  max-width: 1212px;
  margin: 0 auto;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--saline-white-85);
  border: 0.5px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  flex: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand .brand-lockup { height: 20px; width: auto; }
.brand-sep { color: var(--text-faint); font-weight: 400; font-size: 13px; }
.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: -0.02em;
}
.nav { display: flex; gap: 6px; margin-left: 6px; }
.nav a {
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.nav a:hover { color: var(--lab-blue); text-decoration: none; background: var(--bg); }
.nav a[aria-current="page"] { background: var(--signal-green); color: var(--peat-brown); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.org-chip {
  font-size: 11px;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 0.5px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  white-space: nowrap;
}
.org-chip strong { color: var(--text); font-weight: 700; }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 5px; border: 0.5px solid var(--border); background: var(--bg);
  color: var(--text-muted); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---- Editorial Hero (matches Alterra_Labs_*_HTML) ---- */
.al-hero {
  padding: 44px 0 28px;
}
.al-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
}
@media (max-width: 900px) {
  .al-hero-grid { grid-template-columns: 1fr; }
}
.al-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.al-hero-copy h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}
.al-hero-copy p {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.al-collage {
  position: relative;
  aspect-ratio: 1 / 0.72;
  border-radius: 5px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  background-color: color-mix(in srgb, var(--signal-green) 14%, var(--bg));
  background-image:
    linear-gradient(var(--dilute-blue) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--index-gray) 0.5px, transparent 0.5px);
  background-size: 38px 38px;
}
.al-collage .al-curve {
  position: absolute;
  left: 10%;
  top: 16%;
  width: 80%;
  opacity: 0.9;
}
.al-collage .al-rock {
  position: absolute;
  right: -5%;
  bottom: -6%;
  width: 44%;
  transform: rotate(-35deg);
}
.hero-results-bar {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.hero-results-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 760px) {
  .hero-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hs-v {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hs-l {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- Layout ---- */
.page { max-width: 1212px; margin: 0 auto; padding: 28px 20px 64px; }
.page-wide { max-width: 1380px; }
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: var(--hair);
  flex-wrap: wrap;
}
.page-header p { color: var(--text-muted); margin-top: 8px; max-width: 720px; font-size: 13.5px; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.section { margin-top: 38px; padding-top: 28px; border-top: var(--hair); }
.section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head .count { color: var(--text-faint); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.breadcrumbs { font-size: 11.5px; color: var(--text-faint); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span[aria-hidden] { opacity: 0.6; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 14px; }

/* ---- Cards (crisp Alterra 5px hairline cards) ---- */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.16s ease,
              background 0.16s ease,
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--peat-brown);
  background: color-mix(in srgb, var(--surface) 92%, var(--signal-green));
  box-shadow: 0 8px 24px -14px rgba(57, 53, 47, 0.28);
}
.card-link:active { transform: translateY(0); }
.card-link h3 { color: var(--text); font-size: 16px; }
.card-link .summary { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--text-faint);
  margin-top: auto; padding-top: 10px; border-top: var(--hair);
}
.card-meta strong { color: var(--text); font-weight: 700; }
.card-accent { position: relative; overflow: hidden; border-top: 2px solid var(--canopy-green); }
.card-signal { background: var(--signal-green); border-color: rgba(57, 53, 47, 0.25); color: var(--peat-brown); }
.card-signal h2, .card-signal h3, .card-signal p { color: var(--peat-brown); }
.card h2 + p, .card h3 + p { margin-top: 6px; color: var(--text-muted); }

.env-icon {
  width: 34px; height: 34px; border-radius: 5px; display: grid; place-items: center;
  background: var(--signal-green); color: var(--peat-brown);
}
.env-icon svg { width: 18px; height: 18px; }

/* ---- Alterra bracket/pill badges ---- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: -0.01em;
  padding: 3px 7px; border-radius: 4px;
  background: var(--neutral-bg); color: var(--neutral-fg);
  white-space: nowrap;
}
.badge-secret { background: var(--secret-bg); color: var(--secret-fg); }
.badge-own { background: var(--own-bg); color: var(--own-fg); }
.badge-ok { background: var(--success-bg); color: var(--success-fg); }
.badge-off { background: var(--danger-bg); color: var(--danger-fg); }
.badge-warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge-info { background: var(--info-bg); color: var(--info-fg); }
.badge svg { width: 12px; height: 12px; }

/* ---- Stats (Alterra metric blocks) ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}
.stat {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.stat-accent { background: var(--signal-green); border-color: transparent; color: var(--peat-brown); }
.stat-accent .stat-label, .stat-accent .stat-value { color: var(--peat-brown); }
.stat-blue { background: var(--dilute-blue); border-color: transparent; color: var(--peat-brown); }
.stat-blue .stat-label, .stat-blue .stat-value { color: var(--peat-brown); }
.stat-value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 10.5px;
  color: var(--text-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prose { color: var(--text-muted); white-space: pre-line; font-size: 13.5px; }

/* ---- Tables (Alterra hairline editorial tables) ---- */
.table-wrap {
  overflow-x: auto;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
}
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: var(--hair); vertical-align: middle; }
th {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  background: transparent;
}
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.own td { background: var(--own-bg); }
tr.own td:first-child { box-shadow: inset 3px 0 0 var(--canopy-green); }
tr.own .badge-own { background: var(--signal-green); color: var(--peat-brown); }
.model-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.model-cell .masked { color: var(--text-muted); font-weight: 500; }
.score { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
progress.bar {
  appearance: none; -webkit-appearance: none;
  width: 96px; height: 8px; border: 0; border-radius: 4px;
  background: var(--stone-gray); overflow: hidden;
}
progress.bar::-webkit-progress-bar { background: var(--stone-gray); border-radius: 4px; }
progress.bar::-webkit-progress-value { background: var(--canopy-green); border-radius: 4px; }
progress.bar::-moz-progress-bar { background: var(--canopy-green); border-radius: 4px; }
progress.bar-wide { width: 100%; height: 8px; }
.table-note { font-size: 11.5px; color: var(--text-faint); margin-top: 10px; }
.muted { color: var(--text-faint); font-size: 11.5px; }

/* ---- Buttons & forms ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 700; font-size: 12px; line-height: 1;
  height: 36px; padding: 0 14px; border-radius: 5px; border: 0.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:hover { text-decoration: none; }
.btn-primary { color: #F8FDF2; background: var(--button-gradient); }
.btn-primary:hover { filter: brightness(1.12); color: #F8FDF2; }
.btn-signal { color: var(--peat-brown); background: var(--signal-green); border-color: rgba(57, 53, 47, 0.16); }
.btn-signal:hover { filter: brightness(0.95); color: var(--peat-brown); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); height: 32px; padding: 0 10px; font-size: 11.5px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-small { height: 28px; padding: 0 9px; font-size: 11px; border-radius: 4px; }
.btn-block {
  width: 100%;
  height: auto;
  min-height: 38px;
  padding: 10px 14px;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
}
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: color-mix(in srgb, var(--danger-fg) 26%, transparent);
}
.btn-danger:hover {
  filter: brightness(0.95);
  color: var(--danger-fg);
}
.danger-zone {
  padding: 14px;
  border: 0.5px solid color-mix(in srgb, var(--danger-fg) 38%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--danger-bg) 45%, var(--surface));
}
.danger-zone h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--danger-fg);
  margin-bottom: 6px;
}
.danger-zone p {
  font-size: 11.5px;
  margin-bottom: 10px;
}
.rev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.btn svg { width: 14px; height: 14px; }
.inline-form { display: inline; margin: 0; }

label, .label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 6px; }
input[type="email"], input[type="text"], input[type="number"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 13px; color: var(--text); background: var(--surface);
  border: 0.5px solid var(--border-strong); border-radius: 5px; padding: 9px 11px; min-height: 38px;
}
input[type="file"] { font: inherit; font-size: 12px; color: var(--text-muted); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 25%, transparent); }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--canopy-green); vertical-align: middle; }
.helptext { display: block; font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger-fg); font-size: 12px; }
.form-stack > div { margin-bottom: 16px; }
.form-stack > div:has(> input[type="checkbox"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-stack > div:has(> input[type="checkbox"]) label { margin: 0; order: 2; text-transform: none; letter-spacing: -0.02em; font-size: 13px; color: var(--text); }
.form-stack > div:has(> input[type="checkbox"]) .helptext { order: 3; width: 100%; margin-top: 0; }
.form-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.form-row > * { flex: 1; }
.form-row > .btn { flex: 0 0 auto; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: var(--hair); font-size: 13px; }
.checklist li:last-child { border-bottom: 0; }
.checklist label { margin: 0; font-weight: 600; text-transform: none; letter-spacing: -0.02em; color: var(--text); display: flex; gap: 10px; align-items: center; flex: 1; cursor: pointer; }

.alert { border-radius: 5px; padding: 11px 14px; font-size: 13px; margin-bottom: 16px; background: var(--info-bg); color: var(--info-fg); border-left: 3px solid var(--lab-blue); }
.alert-error { background: var(--danger-bg); color: var(--danger-fg); border-left-color: var(--fig-purple); }
.alert-success { background: var(--success-bg); color: var(--success-fg); border-left-color: var(--canopy-green); }
.messages { list-style: none; padding: 0; margin: 0 0 18px; }

.empty { text-align: center; padding: 40px 24px; color: var(--text-muted); border: 0.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }

/* ---- Download card ---- */
.download-card h2 { display: flex; align-items: center; gap: 10px; }
.include-list { list-style: none; padding: 0; margin: 14px 0 18px; font-size: 12.5px; }
.include-list li { display: flex; gap: 10px; padding: 7px 0; color: var(--text-muted); }
.include-list li svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }
.include-list .yes svg { color: var(--canopy-green); }
.include-list .no svg { color: var(--text-faint); }
.include-list strong { color: var(--text); font-weight: 700; }

/* ---- Auth ---- */
body.auth { display: grid; place-items: center; padding: 24px; }
body.auth::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 380px at 50% 28%, var(--bg-glow-a), transparent 72%),
    radial-gradient(460px 320px at 66% 66%, var(--bg-glow-b), transparent 72%);
}
.auth-corner { position: fixed; top: 18px; right: 18px; }
.auth-card {
  position: relative; width: 100%; max-width: 440px; padding: 38px 34px 30px;
  background: var(--surface); border: 0.5px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-lg);
}
.auth-logo-wrap { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-logo { height: 22px; width: auto; max-width: 100%; }
.brand-img-dark { display: none; }
:root[data-theme="dark"] .brand-img-light { display: none; }
:root[data-theme="dark"] .brand-img-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-img-light { display: none; }
  :root:not([data-theme="light"]) .brand-img-dark { display: block; }
}
.auth-card h1 { text-align: center; font-size: 22px; }
.auth-card h1 .gradient-text { color: var(--canopy-green); }
:root[data-theme="dark"] .auth-card h1 .gradient-text { color: var(--signal-green); }
.auth-sub { text-align: center; color: var(--text-muted); margin: 10px 0 24px; font-size: 13px; }
.auth-card form > * + * { margin-top: 14px; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 11.5px; color: var(--text-faint); }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.code-input { text-align: center; font-family: var(--mono); font-size: 22px !important; letter-spacing: 0.4em; padding-left: calc(12px + 0.4em) !important; }
.dev-note { border: 0.5px dashed var(--border-strong); background: var(--bg); color: var(--text-muted); border-radius: 5px; padding: 9px 12px; font-size: 12px; text-align: center; }

/* ---- Admin ---- */
.admin-nav { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-nav a {
  font-size: 11.5px; font-weight: 700; color: var(--text-muted);
  padding: 6px 11px; border-radius: 5px; border: 0.5px solid var(--border); background: var(--surface);
}
.admin-nav a[aria-current="page"], .admin-nav a:hover {
  color: var(--peat-brown); background: var(--signal-green); border-color: transparent; text-decoration: none;
}
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--text-faint); }
.kv dd { margin: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.filters > div { min-width: 170px; }
.pagination { display: flex; gap: 12px; align-items: center; margin-top: 16px; font-size: 12px; color: var(--text-muted); }

/* ---- Embedded Customer Report Viewer ---- */
body.viewer-mode .page { max-width: none; padding: 0; }
body.viewer-mode .site-foot { display: none; }
body.viewer-mode .topbar { padding: 8px 16px 0; transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease; }
body.viewer-mode .topbar-inner { max-width: none; }
body.viewer-focus .topbar { display: none; }
body.viewer-focus .report-frame { height: calc(100vh - 60px); }
.report-toolbar-wrap {
  margin: 8px 16px 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.report-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px;
}
.report-toolbar-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-toolbar-title h1 { font-size: 14px; letter-spacing: -0.03em; }
.report-toolbar-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-muted); }
progress.viewer-progress {
  display: block; width: 100%; height: 3px; border: 0; appearance: none; -webkit-appearance: none;
  background: var(--surface-2);
}
progress.viewer-progress::-webkit-progress-bar { background: var(--surface-2); }
progress.viewer-progress::-webkit-progress-value { background: var(--canopy-green); transition: width 0.16s ease-out; }
progress.viewer-progress::-moz-progress-bar { background: var(--canopy-green); }
.viewer-drawer {
  padding: 14px 16px; border-top: var(--hair); background: var(--bg); font-size: 12px;
}
.viewer-drawer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.report-frame {
  display: block; width: 100%; height: calc(100vh - 118px); min-height: 640px;
  border: 0; margin-top: 8px; background: var(--sandstone-cream);
}

/* ---- Report Hub & Matrix ---- */
.todo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.todo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 5px; border: 0.5px solid var(--border); background: var(--surface);
  font-size: 12.5px;
}
.matrix-table th, .matrix-table td { padding: 10px 8px; font-size: 11.5px; }
.matrix-col-head { display: flex; flex-direction: column; gap: 6px; min-width: 126px; }
.matrix-cell {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; border-radius: 5px;
  border: 0.5px solid var(--border); background: var(--bg); min-height: 64px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.matrix-cell:hover { transform: translateY(-1px); border-color: var(--peat-brown); }
.matrix-cell-live { background: var(--signal-green); border-color: rgba(57, 53, 47, 0.25); color: var(--peat-brown); }
.matrix-cell-live .matrix-cell-badge, .matrix-cell-live .matrix-cell-sub, .matrix-cell-live .matrix-cell-due { color: var(--peat-brown); }
.matrix-cell-check { background: var(--secret-bg); border-color: rgba(128, 52, 83, 0.35); }
.matrix-cell-unopened { background: var(--info-bg); border-color: rgba(92, 133, 251, 0.35); }
.matrix-cell-review { background: var(--warn-bg); border-color: rgba(133, 77, 14, 0.30); }
.matrix-cell-paused { background: var(--surface-2); opacity: 0.72; }
.matrix-cell-overdue { border-color: var(--fig-purple); box-shadow: inset 3px 0 0 var(--fig-purple); }
.matrix-cell-badge { font-weight: 700; font-size: 11px; color: var(--text); }
.matrix-cell-sub { font-size: 10.5px; color: var(--text-muted); line-height: 1.3; }
.matrix-cell-due { font-size: 10px; color: var(--text-faint); }
.due-inline { display: flex; gap: 4px; margin-top: 4px; }
.due-inline input[type="date"] { min-height: 24px; padding: 2px 5px; font-size: 10.5px; border-radius: 4px; }

/* ---- Sweep Studio (Resizable Split Pane) ---- */
.studio-shell {
  --studio-rail-w: 420px;
  display: grid; grid-template-columns: minmax(0, 1fr) 8px var(--studio-rail-w); gap: 6px; align-items: start;
}
.studio-shell.is-resizing { user-select: none; cursor: col-resize; }
.studio-shell.is-resizing iframe { pointer-events: none; }
.studio-resizer {
  height: 78vh; min-height: 620px; border-radius: 4px; cursor: col-resize; position: relative;
  display: grid; place-items: center;
}
.studio-resizer::before {
  content: ""; width: 3px; height: 48px; border-radius: 2px; background: var(--border-strong);
  transition: background 0.15s ease, height 0.15s ease;
}
.studio-resizer:hover::before, .studio-shell.is-resizing .studio-resizer::before {
  background: var(--canopy-green); height: 84px;
}
@media (max-width: 1120px) {
  .studio-shell { grid-template-columns: 1fr; }
  .studio-resizer { display: none; }
}
.studio-frame-wrap {
  border: 0.5px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--sandstone-cream);
}
.studio-frame { display: block; width: 100%; height: 78vh; min-height: 620px; border: 0; }
.studio-rail {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius);
  padding: 16px; max-height: 78vh; overflow-y: auto;
}
.studio-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px;
  background: var(--bg); padding: 4px; border-radius: 5px; border: 0.5px solid var(--border);
}
.studio-tab {
  border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 11px; font-weight: 700;
  padding: 7px 4px; border-radius: 4px; cursor: pointer; transition: background 0.14s ease, color 0.14s ease;
}
.studio-tab[aria-selected="true"] { background: var(--signal-green); color: var(--peat-brown); }
.studio-panel[hidden] { display: none; }
.studio-shortcuts-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: var(--hair);
}
.sug-card {
  border: 0.5px solid var(--border); border-radius: 5px; padding: 12px; background: var(--bg);
  margin-bottom: 10px; transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.sug-card.is-focused {
  border-color: var(--canopy-green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--signal-green) 70%, transparent);
}
.sug-card-accepted { opacity: 0.72; border-color: var(--canopy-green); }
.sug-card-dismissed { opacity: 0.55; }
.sug-quote {
  font-size: 11.5px; padding: 7px 9px; border-radius: 4px; background: var(--danger-bg);
  color: var(--text); margin: 8px 0 6px; word-break: break-word;
}
.sug-replace {
  font-size: 11.5px; padding: 7px 9px; border-radius: 4px; background: var(--success-bg);
  color: var(--peat-brown); margin: 0 0 8px; word-break: break-word;
}
.sug-reason { font-size: 11.5px; color: var(--text-muted); margin-bottom: 10px; }
.sug-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.signoff-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: var(--hair); font-size: 12px;
}
.signoff-row:last-child { border-bottom: 0; }
.signoff-done { text-decoration: line-through; color: var(--text-faint); }

/* ---- Analytics & 14-Day SVG Sparkline ---- */
.bar-list { display: grid; gap: 12px; }
.bar-row-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 4px; }
.trail-details summary { cursor: pointer; font-weight: 700; color: var(--canopy-green); font-size: 11.5px; }
.trail-list { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 5px; font-size: 11.5px; color: var(--text-muted); }
.sparkline-card { margin-top: 18px; }
.sparkline-wrap { width: 100%; overflow-x: auto; padding-top: 6px; }
.sparkline-svg { width: 100%; height: 128px; display: block; }
.sparkline-axis { stroke: var(--border); stroke-width: 1; }
.sparkline-bar {
  fill: var(--stone-gray);
  transition: fill 0.14s ease, opacity 0.14s ease;
}
.sparkline-bar-group.has-data .sparkline-bar { fill: var(--canopy-green); }
.sparkline-bar-group { cursor: pointer; outline: none; }
.sparkline-bar-group:hover .sparkline-bar,
.sparkline-bar-group:focus .sparkline-bar { fill: var(--lab-blue); }
.sparkline-label { fill: var(--text-faint); font-family: var(--font-sans); font-size: 9.5px; font-weight: 700; }

/* ---- Command Palette (⌘K) ---- */
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px;
  border-radius: 5px; border: 0.5px solid var(--border); background: var(--bg);
  color: var(--text-muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.cmdk-trigger:hover { border-color: var(--peat-brown); color: var(--text); background: var(--surface); }
.cmdk-trigger svg { width: 13px; height: 13px; opacity: 0.75; }
.cmdk-trigger kbd, .kbd-inline, .cmdk-hints kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1px 5px; border-radius: 3px; border: 0.5px solid var(--border);
  background: var(--surface); color: var(--text-faint); font: 700 10px/1.3 var(--font-sans);
}
.cmdk-backdrop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center;
  padding: min(12vh, 96px) 16px 24px;
  background: rgba(24, 22, 19, 0.42); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity 0.15s ease;
}
.cmdk-backdrop[hidden] { display: none; }
.cmdk-backdrop.is-open { opacity: 1; }
.cmdk-panel {
  width: min(620px, 100%); background: var(--surface); border: 0.5px solid var(--border-strong);
  border-radius: 10px; box-shadow: 0 24px 64px -18px rgba(24, 22, 19, 0.45); overflow: hidden;
  transform: translateY(-8px) scale(0.985);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmdk-backdrop.is-open .cmdk-panel { transform: translateY(0) scale(1); }
.cmdk-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: var(--hair);
}
.cmdk-head svg { width: 16px; height: 16px; color: var(--text-faint); flex: none; }
.cmdk-head input[type="search"] {
  flex: 1; border: 0; background: transparent; padding: 4px 0; font-size: 13.5px; color: var(--text);
  box-shadow: none; outline: none;
}
.cmdk-head input[type="search"]:focus { border: 0; box-shadow: none; outline: none; }
.cmdk-esc {
  border: 0.5px solid var(--border); background: var(--bg); color: var(--text-faint);
  border-radius: 4px; padding: 3px 7px; font: 700 10px/1 var(--font-sans); cursor: pointer;
}
.cmdk-results { max-height: 54vh; overflow-y: auto; padding: 8px; }
.cmdk-group {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-faint); padding: 8px 10px 4px;
}
.cmdk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border-radius: 5px; color: var(--text); text-decoration: none;
  transition: background 0.1s ease;
}
.cmdk-item:hover { text-decoration: none; }
.cmdk-item.is-active { background: var(--signal-green); color: var(--peat-brown); }
.cmdk-item.is-active .cmdk-item-sub { color: var(--canopy-green); }
.cmdk-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmdk-item-title { font-size: 12.5px; font-weight: 700; }
.cmdk-item-sub { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-empty { padding: 24px 12px; text-align: center; font-size: 12.5px; color: var(--text-faint); }
.cmdk-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 14px; border-top: var(--hair); background: var(--bg); font-size: 11px; color: var(--text-faint);
}

/* ---- Live Filter Pills & Benchmark Explorer ---- */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-btn {
  border: 0.5px solid var(--border); background: var(--surface); color: var(--text-muted);
  font: inherit; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 5px;
  cursor: pointer; transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.pill-btn:hover { color: var(--text); border-color: var(--peat-brown); }
.pill-btn[aria-pressed="true"] { background: var(--signal-green); color: var(--peat-brown); border-color: rgba(57, 53, 47, 0.25); }
.pill-btn-xs { padding: 4px 8px; font-size: 10.5px; }
.filter-search-wrap { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 360px; min-width: 200px; }
.filter-search { width: 100%; height: 34px; font-size: 12px; }

.bench-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg-group {
  display: inline-flex; padding: 2px; border-radius: 5px;
  border: 0.5px solid var(--border); background: var(--bg);
}
.seg-btn {
  border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 4px; cursor: pointer;
}
.seg-btn[aria-pressed="true"] { background: var(--signal-green); color: var(--peat-brown); }
.sort-btn {
  border: 0; background: transparent; padding: 0; color: inherit; font: inherit;
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.sort-btn:hover { color: var(--text); }
.sort-btn-num { justify-content: flex-end; }
.sort-ind { opacity: 0.45; font-size: 10px; }
th[aria-sort="ascending"] .sort-ind, th[aria-sort="descending"] .sort-ind { opacity: 1; color: var(--canopy-green); }
.bench-chart-list { display: grid; gap: 14px; }
.bench-bar-row { display: grid; gap: 6px; padding: 10px 12px; border-radius: 5px; border: 0.5px solid var(--border); background: var(--bg); }
.bench-bar-own { background: var(--own-bg); border-color: var(--canopy-green); }
.bench-bar-own .badge-own { background: var(--signal-green); color: var(--peat-brown); }
.bench-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bench-bar-vals { display: flex; align-items: center; gap: 6px; }
progress.bar-peer::-webkit-progress-value { background: var(--lab-blue); }
progress.bar-peer::-moz-progress-bar { background: var(--lab-blue); }

/* ---- Drag-and-Drop Upload Dropzone ---- */
.dropzone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .dropzone-grid { grid-template-columns: 1fr; } }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 26px 20px; border-radius: 6px;
  border: 1.5px dashed var(--border-strong); background: var(--bg); cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--canopy-green);
  background: color-mix(in srgb, var(--signal-green) 24%, var(--surface));
  transform: translateY(-1px);
}
.dropzone.has-file {
  border-style: solid; border-color: var(--canopy-green);
  background: color-mix(in srgb, var(--signal-green) 18%, var(--surface));
}
.dropzone-icon {
  width: 34px; height: 34px; border-radius: 5px; display: grid; place-items: center;
  background: var(--signal-green); color: var(--peat-brown); font-weight: 700; font-size: 14px;
}
.dropzone-input-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

/* ---- Floating Toast Stack ---- */
.toast-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px));
}
.toast {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 6px; border: 0.5px solid var(--border-strong);
  background: var(--peat-brown); color: var(--saline-white);
  font-size: 12px; font-weight: 600; box-shadow: 0 14px 36px -12px rgba(24, 22, 19, 0.45);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.is-open { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--canopy-green); color: var(--saline-white); border-color: transparent; }
.toast-error { background: var(--fig-purple); color: var(--saline-white); border-color: transparent; }
.toast-close {
  border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1;
  cursor: pointer; opacity: 0.75; padding: 0 2px;
}
.toast-close:hover { opacity: 1; }

/* ---- Staggered Scroll Reveals & Hero Polish ---- */
[data-reveal] {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.al-collage .al-curve, .al-collage .al-rock {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.al-collage:hover .al-curve { transform: translateY(-2px); }
.al-collage:hover .al-rock { transform: translate(-3px, -3px) rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card-link, .btn, .toast, .cmdk-panel, .cmdk-backdrop, .matrix-cell, .al-collage .al-curve, .al-collage .al-rock { transition: none; }
}

.deliver-band {
  background: var(--al-signal-tint, var(--surface));
  border: var(--hair); border-radius: var(--radius);
  padding: 22px 24px;
}
:root[data-theme="dark"] .deliver-band {
  background: color-mix(in srgb, var(--al-signal) 8%, var(--surface));
}
.deliver-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: var(--hair);
}
.deliver-head .eyebrow { margin: 0; color: var(--text); }
.deliver-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; padding-top: 16px;
}
@media (max-width: 900px) { .deliver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .deliver-grid { grid-template-columns: 1fr; } }
.deliver-item { display: flex; flex-direction: column; gap: 6px; }
.deliver-k {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text);
}
.deliver-v { font-size: 12.5px; line-height: 1.48; color: var(--text-muted); font-weight: 500; }

.site-foot {
  max-width: 1212px; margin: 24px auto 0; padding: 18px 20px 36px;
  border-top: var(--hair); font-size: 11.5px; color: var(--text-faint);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 720px) {
  .topbar { padding: 8px 10px 0; }
  .topbar-inner { gap: 10px; padding: 10px 12px; }
  .org-chip, .brand-sub, .brand-sep, .cmdk-trigger span, .cmdk-trigger kbd { display: none; }
  .page { padding: 20px 14px 48px; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

.mt { margin-top: 14px; }
.mt-lg { margin-top: 26px; }
.mb { margin-bottom: 14px; }
