/* ipsterr SDK — partner portal
   Type: IBM Plex Sans (display/body) + IBM Plex Mono (data/labels)
   One bold accent: honey/amber (money + signal). Teal only for data viz. */

:root {
  /* light palette — the un-stamped default is resolved by prefers-color-scheme */
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --ink: #101722;
  --ink-2: #38424f;
  --muted: #5c6675;
  --line: #dce2ea;
  --line-2: #cbd3de;
  --accent: #a9660d;         /* deep honey — text/links/figures on light */
  --accent-fill: #e7a63a;    /* honey fill — buttons, slider track */
  --accent-ink: #2c1e05;     /* text on accent fill */
  --accent-soft: #f6ead2;    /* honey wash */
  --signal: #0b7680;         /* teal — charts only */
  --good: #1c8f5a;
  --warn: #b3701a;
  --crit: #c04434;
  --shadow: 0 1px 2px rgba(16,23,34,.06), 0 8px 24px rgba(16,23,34,.06);
  --shadow-lg: 0 2px 4px rgba(16,23,34,.08), 0 24px 60px rgba(16,23,34,.12);

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --maxw: 1140px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1320;
    --surface: #131c2b;
    --surface-2: #1a2436;
    --ink: #ecebe4;
    --ink-2: #c3cad6;
    --muted: #8f9cb1;
    --line: #253148;
    --line-2: #33405a;
    --accent: #f3b24a;
    --accent-fill: #f3b24a;
    --accent-ink: #231803;
    --accent-soft: #241d10;
    --signal: #63d2d8;
    --good: #48c78e;
    --warn: #e6a94b;
    --crit: #e2695c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 28px 70px rgba(0,0,0,.5);
  }
}

:root[data-theme="dark"] {
  --bg: #0c1320;
  --surface: #131c2b;
  --surface-2: #1a2436;
  --ink: #ecebe4;
  --ink-2: #c3cad6;
  --muted: #8f9cb1;
  --line: #253148;
  --line-2: #33405a;
  --accent: #f3b24a;
  --accent-fill: #f3b24a;
  --accent-ink: #231803;
  --accent-soft: #241d10;
  --signal: #63d2d8;
  --good: #48c78e;
  --warn: #e6a94b;
  --crit: #e2695c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 28px 70px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.btn-primary:hover { box-shadow: 0 6px 18px -6px var(--accent-fill); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 26px; height: 26px; display: block; }
.brand b { font-weight: 600; }
.brand span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-block: 72px 84px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); margin-top: 20px; max-width: 34ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.hero-stats .stat .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 80% 10%, color-mix(in srgb, var(--accent-fill) 10%, transparent), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-visual .badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(4px);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  display: flex; align-items: center; gap: 8px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 color-mix(in srgb,var(--good) 55%,transparent);} 70%{ box-shadow:0 0 0 9px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }

/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 10px 34px; padding-block: 18px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.trust-item svg { color: var(--accent); flex: none; }

/* ---------- section scaffolding ---------- */
section { padding-block: 84px; }
.sec-head { max-width: 60ch; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 12px; }
.sec-head p { color: var(--ink-2); margin-top: 14px; font-size: 17px; }

/* ---------- calculator ---------- */
#earnings { background: var(--surface-2); border-block: 1px solid var(--line); }
.calc {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.calc-controls { padding: 32px; border-right: 1px solid var(--line); }
.calc-out { padding: 32px; background: var(--surface-2); display: flex; flex-direction: column; }

.field { margin-bottom: 26px; }
.field:last-child { margin-bottom: 0; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .val { font-family: var(--mono); font-size: 15px; color: var(--accent); font-weight: 600; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line-2); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-fill); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-fill); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: pointer; }

.seg { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; }
.seg button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px; border: 0; background: transparent; border-radius: 6px;
  color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer;
  position: relative;
}
.seg button svg { color: currentColor; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.seg .soon { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; position: absolute; top: 4px; right: 6px; }

select.input, input.input, textarea.input {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 12px;
}
select.input:focus, input.input:focus, textarea.input:focus { border-color: var(--accent); outline: none; }

.calc-out .out-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calc-out .big {
  font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; color: var(--accent);
  font-size: clamp(40px, 6vw, 60px); line-height: 1; margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.calc-out .big small { font-size: 20px; color: var(--muted); font-weight: 500; }
.calc-out .sub { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.breakdown { margin-top: 26px; border-top: 1px dashed var(--line-2); padding-top: 20px; display: grid; gap: 12px; }
.brow { display: flex; justify-content: space-between; font-size: 13.5px; }
.brow span:first-child { color: var(--muted); }
.brow span:last-child { font-family: var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: auto; padding-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.chart-wrap { margin-top: 22px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }

/* ---------- platforms ---------- */
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plat { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: var(--surface); display: flex; flex-direction: column; }
.plat.feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plat .pi { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.plat h3 { font-size: 20px; }
.plat .tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-top: 6px; }
.plat p { color: var(--ink-2); font-size: 14.5px; margin-top: 12px; }
.plat.soon { opacity: .82; }
.plat.soon .pi { background: var(--surface-2); color: var(--muted); }
.plat.soon .tag { color: var(--muted); }
.plat ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.plat li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.plat li svg { color: var(--good); flex: none; margin-top: 3px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line-2); }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.step h3 { font-size: 18px; margin-top: 10px; }
.step p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
.step code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--accent); }

/* ---------- ethics ---------- */
#ethics { background: var(--surface-2); border-block: 1px solid var(--line); }
.ethics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.ethics-list { display: grid; gap: 22px; }
.ethic { display: flex; gap: 14px; }
.ethic .ei { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.ethic h4 { font-size: 15.5px; }
.ethic p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }

/* ---------- form ---------- */
.apply-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.apply-grid { display: grid; grid-template-columns: .8fr 1.2fr; }
.apply-aside { padding: 34px; background: linear-gradient(180deg, var(--accent-soft), transparent); border-right: 1px solid var(--line); }
.apply-aside h2 { font-size: 26px; }
.apply-aside p { color: var(--ink-2); margin-top: 14px; font-size: 15px; }
.apply-aside ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.apply-aside li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.apply-aside li svg { color: var(--accent); flex: none; margin-top: 3px; }
form.apply { padding: 34px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-field label .req { color: var(--crit); }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--accent-fill); }
.consent { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; font-size: 13px; color: var(--ink-2); }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent-fill); flex: none; }
.form-msg { font-size: 13.5px; padding: 12px 14px; border-radius: var(--r-sm); display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.form-msg.err { background: color-mix(in srgb, var(--crit) 12%, transparent); color: var(--crit); border: 1px solid color-mix(in srgb, var(--crit) 40%, transparent); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding-block: 44px; }
.foot-brand { max-width: 30ch; }
.foot-brand p { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.foot-bottom .mono { color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { padding-block: 60px 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.legal h2 { font-size: 20px; margin-top: 42px; }
.legal h3 { font-size: 16px; margin-top: 26px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; margin-top: 12px; line-height: 1.7; }
.legal ul { margin-top: 8px; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal .toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-top: 28px; }
.legal .toc h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.legal .toc a { font-size: 14px; }
.legal strong { color: var(--ink); }

/* ---------- logos ---------- */
.logo-img { width: 34px; height: 34px; display: block; object-fit: contain; }
.foot-logo { width: 168px; max-width: 60vw; height: auto; display: block; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-mark { flex: none; width: 18px; height: 18px; position: relative; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.faq-mark::before { top: 8px; left: 2px; right: 2px; height: 2px; }
.faq-mark::after { left: 8px; top: 2px; bottom: 2px; width: 2px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); opacity: 0; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 52px 60px; }
  .hero-visual { max-width: 420px; }
  .calc { grid-template-columns: 1fr; }
  .calc-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .ethics-grid { grid-template-columns: 1fr; gap: 28px; }
  .apply-grid { grid-template-columns: 1fr; }
  .apply-aside { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .plats, .steps { grid-template-columns: 1fr; }
  section { padding-block: 60px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- auth + dashboard (portal app) ---------- */
.nav-signin { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav-signin:hover { color: var(--accent); text-decoration: none; }
.who { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.auth-wrap { min-height: calc(100vh - 130px); display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 36px; }
.auth-card h1 { font-size: 26px; margin-top: 8px; }
.auth-sub { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.auth-alt { margin-top: 20px; font-size: 14px; color: var(--muted); }

.dash { padding-block: 34px 72px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.tile .tl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tile .tv { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; line-height: 1; }
.tile .ts { font-size: 12px; color: var(--muted); margin-top: 4px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.dash-card h3 { font-size: 17px; margin: 0; }
.dash-card h4 { font-size: 14px; margin: 0; }
.dash-card > p { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }

.pill { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.pill.ok { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.pill.off { background: color-mix(in srgb, var(--crit) 14%, transparent); color: var(--crit); }
.pill.pend { background: var(--surface-2); color: var(--muted); }

.keybox { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 14px 0; }
.keybox code { font-family: var(--mono); font-size: 13px; color: var(--accent); word-break: break-all; flex: 1; }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; margin-top: 14px; }
.bar-col { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.bar { width: 100%; min-height: 2px; background: var(--accent-fill); border-radius: 3px 3px 0 0; }
.bars-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--muted); font-family: var(--mono); }

.ptable { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.ptable th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 8px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 10px 8px; border-bottom: 1px solid var(--line); }

.inline-form { display: flex; gap: 10px; margin-top: 8px; }
.inline-form .input { flex: 1; }
.stack-form { display: grid; gap: 10px; margin-top: 8px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .inline-form { flex-direction: column; } .dash-head { flex-direction: column; align-items: flex-start; } }

/* ---------- consent kit (mock consent screen) ---------- */
.consent-kit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 56px; padding-top: 46px; border-top: 1px solid var(--line); }
.ck-copy h3 { font-size: 24px; margin-top: 12px; }
.ck-copy > p { color: var(--ink-2); margin-top: 14px; font-size: 16px; }
.ck-copy .btn { margin-top: 22px; }
.ck-screen { display: flex; justify-content: center; }
.ck-card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px 24px; }
.ck-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.ck-title { font-size: 19px; font-weight: 600; text-align: center; letter-spacing: -.01em; }
.ck-body { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; margin-top: 12px; text-align: center; }
.ck-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ck-switch { flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--accent-fill); position: relative; }
.ck-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ck-btn { text-align: center; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.ck-btn.primary { background: var(--accent-fill); color: var(--accent-ink); }
.ck-btn.ghost { border: 1px solid var(--line-2); color: var(--ink-2); }
.ck-foot { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 14px; }
@media (max-width: 820px) { .consent-kit { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- footer network credit (ipsterr x ipsterr) ---------- */
.foot-network { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.foot-network img { display: block; width: 20px; height: 20px; object-fit: contain; }
.foot-network b { color: var(--ink-2); font-weight: 600; }
