/* ClickCaravan: one stylesheet for the public site, partner portal and back office.
   B-30 (Jason 2026-11-24, "yes new colors in back office"): the Caravan family palette from caravan-ecosystem/SPEC.md, the same
   as B-29's public site (public/site.css): navy #152742, rust #B65C3B, gold #C9A055, cream #F7F4EE. Contrast (WCAG, computed):
   light: navy text on cream 13.7:1; --ink-2 8.2:1; --muted 5.5:1 on cream, 5.0:1 on --surface-2; white on rust buttons 4.58:1;
   rust on cream is 4.17:1, so rust is never small text: links and small rust-toned text use --accent-text #994b2f (5.6:1 on
   cream, 5.1:1 on --surface-2); --teal is a slate blue (the family has no teal) #3a6582, 5.7:1 on cream (eyebrows, focus).
   dark: cream text #f2ede4 on #0d1626 15.5:1; buttons stay rust with white labels (4.58:1; rust vs the page 3.95:1);
   links #eb9a76 8.1:1; slate #7fa8c2 7.1:1. Sidebar (--side-*): navy, #d6dde7 items 11:1, gold marker 6.2:1, links #e2895f 5.7:1.
   A client's colors (src/branding.js /brand.css) and the platform's Appearance colors (src/appearance.js) set --accent,
   --accent-text, --accent-ink and --teal after this file, so they still win. Before B-30: sand / ink / terracotta #c8553d / teal. */
:root {
  --bg: #f7f4ee; --surface: #ffffff; --surface-2: #efe9de; --ink: #152742; --ink-2: #3a4a60; --muted: #586477;
  --line: #e1d9ca; --accent: #b65c3b; --accent-ink: #fff; --accent-text: #994b2f; --teal: #3a6582; --gold: #c9a055;
  --good: #1f7a55; --good-bg: #e2f2ea; --warn: #8a5a00; --warn-bg: #fbefd6; --bad: #a63a2a; --bad-bg: #f8e2dd; --mute-bg: #ebe5da;
  --navy: #152742; --side-bg: #152742; --side-ink: #d6dde7; --side-muted: #9fb0c6; --side-line: rgba(214, 221, 231, .14);
  --side-hover: rgba(255, 255, 255, .07); --side-on: rgba(255, 255, 255, .11); --side-mark: #c9a055; --side-link: #e2895f;
  --radius: 12px; --shadow: 0 1px 2px rgba(21, 39, 66, .06), 0 8px 24px rgba(21, 39, 66, .07);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Dark: follows the computer, unless the page says otherwise. The back office writes <html data-theme="light|dark|system">
   from each operator's choice (B-11; PORTED from Generation Chest admin.css). The site and partner portal have no data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1626; --surface: #142038; --surface-2: #1a2943; --ink: #f2ede4; --ink-2: #c9d1dc; --muted: #9aa7b8;
    --line: #283a58; --accent: #b65c3b; --accent-text: #eb9a76; --teal: #7fa8c2; --gold: #d6b06a;
    --good: #6fd3a4; --good-bg: #173a30; --warn: #f3c46a; --warn-bg: #3a2f17; --bad: #f19a88; --bad-bg: #42231f; --mute-bg: #233350;
    --side-bg: #0a1220; --side-line: rgba(214, 221, 231, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1626; --surface: #142038; --surface-2: #1a2943; --ink: #f2ede4; --ink-2: #c9d1dc; --muted: #9aa7b8;
  --line: #283a58; --accent: #b65c3b; --accent-text: #eb9a76; --teal: #7fa8c2; --gold: #d6b06a;
  --good: #6fd3a4; --good-bg: #173a30; --warn: #f3c46a; --warn-bg: #3a2f17; --bad: #f19a88; --bad-bg: #42231f; --mute-bg: #233350;
  --side-bg: #0a1220; --side-line: rgba(214, 221, 231, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--accent-text); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center-text { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--teal); margin-bottom: .6em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.note { background: var(--warn-bg); color: var(--ink); border-left: 3px solid var(--gold); padding: .75em 1em; border-radius: 8px; }
.note.bad { background: var(--bad-bg); border-left-color: var(--bad); }
.empty { color: var(--muted); padding: 1em 0; margin: 0; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand em { font-style: normal; color: var(--teal); font-family: var(--sans); font-size: .8em; font-weight: 600; }
/* B-29 (caravan-ecosystem/SPEC.md): the new mark (navy / rust / gold written on the shapes) and the HTML wordmark,
   "Click" navy + "Caravan" rust, extra-bold sans; on dark, "Click" white and "Caravan" a lighter rust (4.5:1 on navy). */
.mark { flex: none; }
.wm { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.wm-a { color: #152742; } .wm-b { color: #b65c3b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark circle.mk-n { stroke: #f7f4ee; } :root:not([data-theme="light"]) .mark polygon.mk-n { fill: #f7f4ee; }
  :root:not([data-theme="light"]) .wm-a { color: #fff; } :root:not([data-theme="light"]) .wm-b { color: #e2895f; }
}
:root[data-theme="dark"] .mark circle.mk-n { stroke: #f7f4ee; } :root[data-theme="dark"] .mark polygon.mk-n { fill: #f7f4ee; }
:root[data-theme="dark"] .wm-a { color: #fff; } :root[data-theme="dark"] .wm-b { color: #e2895f; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(.9); }
.btn.small { padding: .4em .9em; min-height: 34px; font-size: .85rem; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .6; cursor: wait; }
button.link { background: none; border: 0; color: var(--accent-text); cursor: pointer; padding: 0 .3em; font: inherit; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.actions.center { justify-content: center; }
label { display: block; font-size: .9rem; font-weight: 600; margin: 0 0 .9rem; color: var(--ink-2); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .65em .75em; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: 400 1rem var(--sans); min-height: 44px; }
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
label.check input { width: auto; min-height: 0; margin-top: .25rem; }
.msg { color: var(--bad); font-size: .9rem; min-height: 1.2em; margin: .6rem 0 0; }
.msg.ok { color: var(--good); }
.row2, .row3, .row4 { display: grid; gap: 0 1rem; }
@media (min-width: 720px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: repeat(3, 1fr); } .row4 { grid-template-columns: repeat(4, 1fr); } }
form.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-top: 1rem; }
form.inline label { flex: 1 1 180px; margin: 0; }
pre.code, pre.secret, pre[data-field] { background: var(--ink); color: #f3ead9; padding: 1rem 1.1rem; border-radius: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* Cards, tables, pills */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.25rem; box-shadow: var(--shadow); }
.card h2 { font-size: 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.card { overflow-x: auto; }
th, td { text-align: left; padding: .6rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink-2); }
.actions-cell { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 0; }
.actions-cell form { margin: 0; }
.pill { display: inline-block; padding: .12em .6em; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: capitalize; background: var(--mute-bg); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; margin: 0 0 1.25rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.kpi span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kpi strong { display: block; font: 600 1.45rem var(--serif); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .6rem; }
.tab { padding: .35em .85em; border-radius: 999px; text-decoration: none; color: var(--ink-2); text-transform: capitalize; font-size: .9rem; border: 1px solid transparent; }
.tab.on { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 600; }
.todo { display: flex; gap: .5rem; flex-wrap: wrap; margin: -.4rem 0 1rem; }
.page-head { margin-bottom: 1.25rem; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.crumbs { margin: 0 0 .3rem; font-size: .9rem; }
input.copy { display: inline-block; width: min(320px, 100%); font-family: var(--mono); font-size: .85rem; min-height: 34px; padding: .3em .5em; }
details summary { cursor: pointer; font-weight: 600; margin: .5rem 0; }

/* Public site */
.site-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-top .row { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; padding: .4rem 0; }
.site-nav { display: flex; gap: 1.2rem; flex: 1; flex-wrap: wrap; }
.site-nav a, .site-cta a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.site-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) { .site-nav { order: 3; flex-basis: 100%; gap: .9rem; font-size: .9rem; } .site-cta a:not(.btn) { display: none; } }
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); background:
  radial-gradient(60rem 26rem at 85% -10%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%),
  radial-gradient(40rem 20rem at -10% 110%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow); font-size: .92rem; }
.hc-cap { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 0 0 .6rem; }
.hc-row { display: flex; gap: .8rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.hc-step { min-width: 3.6rem; font-weight: 700; color: var(--teal); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hc-ledger { margin: .7rem 0; padding: .75rem .9rem; background: var(--surface-2); border-radius: 10px; font-family: var(--mono); font-size: .82rem; }
.hc-ledger div { display: flex; gap: .6rem; } .hc-ledger strong { margin-left: auto; } .hc-ledger span { color: var(--accent-text); font-weight: 700; width: 1.6rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band.alt { background: var(--surface-2); }
.band h2, .section > h2 { text-align: center; margin-bottom: 1.6rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.grid3, .grid4, .packs, .progs { display: grid; gap: 1rem; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid4, .packs, .progs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid4 { grid-template-columns: repeat(4, 1fr); } .progs, .packs { grid-template-columns: repeat(3, 1fr); } }
.mode, .feat, .packs article, .prog { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.band .mode { background: var(--bg); }
.section .feat, .packs article, .prog { background: var(--surface); }
.prog { display: flex; flex-direction: column; } .prog .actions { margin-top: auto; padding-top: .4rem; }
.prog-logo { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: .7rem; }
.prog-pay { margin: .2rem 0 .6rem; color: var(--ink); }
div.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.3rem; } div.empty h2 { margin-top: 0; font-size: 1.2rem; }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.split { display: grid; gap: 2rem; align-items: center; }
.split h2 { text-align: left; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding-left: 1.6rem; position: relative; margin: .45rem 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; overflow-x: auto; }
.compare td { text-align: center; color: var(--muted); } .compare td:last-child { color: var(--good); font-weight: 700; } .compare th:last-child { color: var(--accent-text); }
.cta-band { text-align: center; } .cta-band .actions { justify-content: center; }
.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.steps .n { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; }
.lifecycle { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; align-items: center; margin: 2rem 0 .8rem; }
.lifecycle .st { padding: .5em 1em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.lifecycle .st.on { background: var(--teal); color: #fff; border-color: var(--teal); } .lifecycle .ar { color: var(--muted); }
.plans { display: grid; gap: 1rem; margin: 2rem 0 1.25rem; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .price { font: 600 2.2rem var(--serif); margin: .2rem 0; } .plan .price span { font-size: 1rem; color: var(--muted); }
.plan .checks { flex: 1; font-size: .93rem; }
.enterprise { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 1.4rem 1.6rem; margin-bottom: 1rem; }
.enterprise p { margin: 0; opacity: .85; max-width: 70ch; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; } .tags span { font-size: .78rem; background: var(--surface-2); padding: .15em .6em; border-radius: 999px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1.5rem 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.facts span { display: block; color: var(--muted); font-size: .8rem; } .facts strong { font-size: 1.05rem; }
.terms pre { white-space: pre-wrap; font-family: var(--sans); font-size: .92rem; background: var(--surface); border: 1px solid var(--line); padding: 1rem; border-radius: 10px; }
.join { margin-top: 1.5rem; }
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; margin-top: 2rem; }
.foot-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.foot-grid h4 { margin: 0 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.foot-grid a:not(.brand) { display: block; color: var(--ink-2); text-decoration: none; margin: .3rem 0; font-size: .93rem; }

/* Auth cards */
body.center { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 16px; }
.card.auth { width: min(440px, 100%); padding: 2rem; }
.card.auth .brand { margin-bottom: 1.2rem; } .card.auth h1 { font-size: 1.6rem; }
.key { font-family: var(--mono); font-size: 1.05rem; letter-spacing: .08em; background: var(--surface-2); padding: .6em .8em; border-radius: 8px; word-break: break-all; }

/* Partner portal */
.app .top { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: .7rem 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.app .top nav { display: flex; gap: .3rem; flex: 1; flex-wrap: wrap; }
.app .top nav a { color: var(--ink-2); text-decoration: none; padding: .45em .8em; border-radius: 8px; font-size: .95rem; }
.app .top nav a.on { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.who { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin: 0; }
.partner main { padding: 1.75rem 0 3rem; }
.checklist ol { margin: 0; padding-left: 1.2rem; } .checklist li { margin: .35rem 0; } .checklist li.done, .checklist li.done a { color: var(--good); }
form.tax { max-width: 560px; }

/* Back office (B-11): sidebar in groups with icons, top bar with the colour-scheme switch, drawer on phones */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin { display: grid; min-height: 100vh; }
@media (min-width: 900px) { .admin { grid-template-columns: 264px minmax(0, 1fr); background: linear-gradient(to right, var(--side-bg) 264px, var(--bg) 264px); } }
.admin .nav-cb { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
/* B-30: the sidebar is navy (--side-*) in light and dark, with the white wordmark; the page you are on has a gold marker. */
.admin .side { background: var(--side-bg); color: var(--side-ink); border-right: 1px solid var(--side-line); padding: 1rem .75rem; display: flex; flex-direction: column; gap: .8rem; color-scheme: dark; }
@media (min-width: 900px) { .admin .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; } }
.admin .side-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .15rem .35rem .2rem; }
.admin .side .brand { color: #fff; }
.admin .side .wm-a { color: #fff; } .admin .side .wm-b { color: var(--side-link); }
.admin .side .mark circle.mk-n { stroke: #f7f4ee; } .admin .side .mark polygon.mk-n { fill: #f7f4ee; }
.admin .side a:focus-visible, .admin .side summary:focus-visible, .admin .side button:focus-visible, .admin .side label:focus-visible { outline: 2px solid var(--side-mark); outline-offset: 1px; }
.admin .nav-close { display: none; }
.admin .who-net { margin: 0; padding: .55rem .7rem; border-radius: 10px; background: var(--side-hover); border: 1px solid var(--side-line); color: #fff; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.admin .who-net span { display: block; font-weight: 400; color: var(--side-muted); font-size: .85rem; text-transform: capitalize; }
.admin .side-nav { display: flex; flex-direction: column; gap: .15rem; }
.admin .nav-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin .side-nav a, .admin .nav-group summary { display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-size: .97rem; min-height: 40px; }
.admin .side-nav a:hover, .admin .nav-group summary:hover { background: var(--side-hover); color: #fff; }
.admin .side-nav a.on { background: var(--side-on); color: #fff; font-weight: 650; box-shadow: inset 3px 0 0 var(--side-mark); }
.admin .side-nav a.on .nav-ico { color: var(--side-mark); }
.admin .nav-group summary { list-style: none; cursor: pointer; font-weight: 650; color: #fff; font-size: 1rem; margin: 0; }
.admin .nav-group summary::-webkit-details-marker { display: none; }
.admin .nav-group summary .nav-ico { color: var(--side-muted); }
.admin .nav-group[data-here] > summary .nav-ico { color: var(--side-mark); }
.admin .nav-chev { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--side-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.admin .nav-group[open] > summary .nav-chev { transform: rotate(90deg); }
.admin .nav-items { display: flex; flex-direction: column; gap: .1rem; margin: .1rem 0 .4rem 1.05rem; padding-left: .45rem; border-left: 1px solid var(--side-line); }
.admin .nav-items a { font-size: .94rem; min-height: 36px; padding: .4rem .6rem; }
.admin .nav-items a .nav-ico { width: 18px; height: 18px; }
.admin .side .who { margin-top: auto; flex-wrap: wrap; padding: .6rem .5rem 0; border-top: 1px solid var(--side-line); overflow-wrap: anywhere; color: var(--side-muted); }
.admin .side .who a { color: var(--side-ink); } .admin .side .who button.link { color: var(--side-link); }
.admin .main-col { min-width: 0; display: flex; flex-direction: column; }
.admin .topbar { display: flex; align-items: center; gap: .75rem; padding: .55rem clamp(16px, 3vw, 2.5rem); border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; min-height: 56px; }
.admin .top-crumb { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin .top-crumb a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); text-decoration: none; }
.admin .top-crumb .nav-ico { color: var(--teal); }
.admin .top-tools { display: flex; align-items: center; gap: .6rem; }
.admin .top-account { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); text-decoration: none; font-size: .92rem; padding: .35rem .55rem; border-radius: 8px; min-height: 36px; }
.admin .top-account:hover, .admin .top-account[aria-current] { background: var(--surface-2); color: var(--ink); }
.admin .theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--bg); gap: 2px; }
.admin .theme-switch form { margin: 0; display: flex; }
.admin .ts-btn { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--ink-2); border-radius: 999px; min-height: 32px; min-width: 34px; padding: 0 .55rem; cursor: pointer; font: 500 .88rem var(--sans); justify-content: center; }
.admin .ts-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.admin .ts-btn[aria-pressed="true"] .nav-ico { color: var(--accent); }
.admin .theme-switch.with-labels .ts-btn { min-height: 40px; padding: 0 .9rem; }
.admin .theme-switch .msg { display: none; }
.admin .nav-btn, .admin .nav-scrim { display: none; }
.content { padding: 1.75rem clamp(16px, 3vw, 2.5rem) 3rem; min-width: 0; }
@media (max-width: 899px) {
  .admin .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 50; transform: translateX(-105%); transition: transform .2s ease; overflow-y: auto; box-shadow: var(--shadow); }
  .admin .nav-cb:checked ~ .side { transform: none; }
  .admin .nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 38%); display: none; }
  .admin .nav-cb:checked ~ .nav-scrim { display: block; }
  .admin .nav-close { display: inline-flex; padding: .45rem; border-radius: 8px; cursor: pointer; color: var(--side-ink); }
  .admin .nav-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .92rem; min-height: 40px; }
  .admin .topbar { padding-inline: 16px; gap: .5rem; }
  .admin .top-crumb { display: none; }
  .admin .top-tools { margin-left: auto; }
  .admin .top-account span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .admin .side, .admin .nav-chev { transition: none; } }

/* Group landing pages and the dashboard */
.hub-head { display: flex; align-items: center; gap: 1rem; }
.hub-head h1 { margin-bottom: .2rem; }
.hub-ico { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hub-ico.big { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); stroke: var(--teal); }
.hub-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.hub-card { display: grid; gap: .35rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.hub-card:hover { border-color: var(--accent); }
.hub-t { font-weight: 650; font-size: 1.05rem; }
.hub-l { color: var(--ink-2); font-size: .93rem; }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0 0 1rem; }
@media (max-width: 599px) { .tiles { grid-template-columns: 1fr 1fr; gap: .7rem; } .tile { grid-template-columns: 1fr; padding: .8rem .9rem; } .tile-ico { grid-row: auto; width: 32px; height: 32px; padding: 6px; } .tile strong { font-size: 1.3rem; } }
.tile { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
a.tile:hover { border-color: var(--accent); }
.tile-ico { grid-row: span 3; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--teal) 14%, var(--surface)); fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-l { color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.tile strong { font: 600 1.6rem var(--serif); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile small { color: var(--muted); }
.dash-split { display: grid; gap: 0 1.25rem; align-items: start; }
@media (min-width: 1100px) { .dash-split { grid-template-columns: 1fr 1fr; } }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.setup-list li:last-child { border-bottom: 0; }
.setup-list li div { display: grid; min-width: 0; overflow-wrap: anywhere; }
.setup-list a { font-weight: 600; }
.setup-ico { width: 22px; height: 22px; flex: none; margin-top: .1rem; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; border-radius: 50%; padding: 3px; border: 1px solid var(--line); }
.setup-list li.done .setup-ico { stroke: var(--good); background: var(--good-bg); border-color: transparent; }
.setup-list li.done a { color: var(--good); }
.facts-list dd.cap { text-transform: capitalize; }

/* Settings: a left sub-nav of tabs; one section at a time (the one the address points at, else Company) */
.settings-layout { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1100px) { .settings-layout { grid-template-columns: 220px minmax(0, 1fr); } .set-nav { position: sticky; top: 72px; } }
.set-nav { display: flex; flex-direction: column; gap: .15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; }
@media (max-width: 1099px) { .set-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); } }
.set-nav a { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .94rem; min-height: 40px; }
.set-nav a:hover { background: var(--surface-2); color: var(--ink); }
.set-nav a.on { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--ink); font-weight: 650; }
.set-nav .dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; background: var(--line); flex: none; }
.set-nav .dot.good { background: var(--good); } .set-nav .dot.warn { background: var(--gold); }
.set-pane { display: none; min-width: 0; }
.set-pane:has(:target), .set-panes:not(:has(:target)) .set-pane:first-child { display: block; }
.set-pane > .card { scroll-margin-top: 72px; overflow-x: visible; }
.set-pane h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.35rem; }
.set-pane h2 small { font: 400 .88rem var(--sans); }
.set-pane h2 .pill, .setup .pill { text-transform: none; font-family: var(--sans); }
.set-pane .what { display: flex; gap: .5rem; align-items: flex-start; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: .6rem .75rem; }
.set-pane .what .nav-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: .1rem; }
.set-pane form > label, .set-pane .secret-field { max-width: 760px; }
.secret-field { margin: 0 0 .9rem; }
.secret-field > label { margin: 0 0 .3rem; }
.secret-field > label small { display: inline-block; font-family: var(--mono); font-size: .82rem; color: var(--ink-2); background: var(--surface-2); padding: .05em .45em; border-radius: 5px; overflow-wrap: anywhere; }
.secret-row { display: flex; gap: .5rem; align-items: center; }
.secret-row input { margin: 0; flex: 1; min-width: 0; font-family: var(--mono); }
.secret-row .btn { flex: none; min-height: 44px; }
.secret-field > p { margin: .35rem 0 0; overflow-wrap: anywhere; }
.set-pane pre[data-field] { max-width: 760px; }
.set-pane form.inline p { margin: 0; flex: 1 1 260px; }

/* Settings → Appearance */
.ap-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1200px) { .ap-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.ap-field { margin-bottom: .9rem; }
.ap-field label { margin-bottom: .3rem; }
.ap-row { display: flex; gap: .5rem; align-items: center; }
.ap-row input { margin: 0; }
.ap-row input[data-ap] { font-family: var(--mono); max-width: 12rem; }
.ap-swatch { width: 52px; min-width: 52px; height: 44px; padding: 3px; cursor: pointer; }
.ap-field p { margin: .3rem 0 0; }
.ap-preview { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-bottom: 1rem; }
.ap-mock { --p-bg: #f7f4ee; --p-surface: #ffffff; --p-ink: #152742; --p-muted: #586477; --p-line: #e1d9ca; --p-brand: #b65c3b; --p-label: #fff; --p-accent: #3a6582; --p-side: #152742;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--p-bg); color: var(--p-ink); font-size: .85rem; }
.ap-mock.ap-dark { --p-bg: #0d1626; --p-surface: #142038; --p-ink: #f2ede4; --p-muted: #9aa7b8; --p-line: #283a58; --p-brand: #b65c3b; --p-label: #fff; --p-accent: #7fa8c2; --p-side: #0a1220; }
.ap-cap { margin: 0; padding: .3rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); border-bottom: 1px solid var(--p-line); }
.ap-mock-in { display: grid; grid-template-columns: 80px 1fr; min-height: 150px; }
.ap-side { background: var(--p-side); border-right: 1px solid var(--p-line); padding: .5rem .35rem; display: grid; gap: .2rem; align-content: start; }
.ap-side span { padding: .25rem .35rem; border-radius: 6px; color: #d6dde7; }
.ap-side .ap-on { color: #fff; font-weight: 700; box-shadow: inset 2px 0 0 #c9a055; background: rgba(255, 255, 255, .11); }
.ap-main { padding: .6rem; min-width: 0; }
.ap-eyebrow { margin: 0 0 .35rem; color: var(--p-accent); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ap-card { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 8px; padding: .55rem .6rem; }
.ap-card p { margin: .25rem 0 .5rem; }
.ap-card a { color: var(--p-brand); }
.ap-btn { display: inline-block; background: var(--p-brand); color: var(--p-label); border-radius: 999px; padding: .25em .8em; font-weight: 600; }
.ap-checks { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.ap-checks li { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.ap-checks strong { font-variant-numeric: tabular-nums; }
form.rule { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* ── Growth: back office ── */
.kpis.compact { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.split-2 { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1100px) { .split-2 { grid-template-columns: 1.1fr .9fr; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 .9rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline p { margin: .15rem 0 0; overflow-wrap: anywhere; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; }
.facts-list dt { color: var(--muted); } .facts-list dd { margin: 0; overflow-wrap: anywhere; }
.funnel-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.funnel-mini { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.funnel-mini ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.funnel-mini li { display: flex; justify-content: space-between; gap: .5rem; font-size: .92rem; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.block-head h3 { margin: 0; }
.block-edit textarea { font-family: var(--sans); }

/* ── Growth: public landing pages ── */
.lp-hero .narrow-hero { max-width: 860px; text-align: center; }
.lp-hero .lede { margin-inline: auto; }
.lp-hero .actions { justify-content: center; }
.lp-compare { display: grid; gap: 1rem; }
@media (min-width: 760px) { .lp-compare { grid-template-columns: 1fr 1fr; } }
.lp-compare article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.lp-compare article.on { border-color: var(--teal); box-shadow: var(--shadow); }
.crosses { list-style: none; padding: 0; margin: 0; }
.crosses li { padding-left: 1.6rem; position: relative; margin: .45rem 0; color: var(--ink-2); }
.crosses li::before { content: "×"; position: absolute; left: .1rem; top: -.05em; color: var(--bad); font-weight: 700; }
details.faq { border-bottom: 1px solid var(--line); padding: .6rem 0; }
details.faq p { margin: .4rem 0 .2rem; color: var(--ink-2); }
.lp-form { scroll-margin-top: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.preview-banner { background: var(--warn-bg); color: var(--ink); text-align: center; padding: .6rem 1rem; margin: 0; border-bottom: 1px solid var(--gold); }

/* ── Content: site pages + blog ── */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.8rem; } .prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; } .prose li { margin: .3rem 0; }
.prose blockquote { margin: 0 0 1.2rem; padding: .7rem 1rem; border-left: 3px solid var(--gold); background: var(--warn-bg); border-radius: 8px; }
.prose blockquote p { margin: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose .hero-img { width: 100%; margin: .5rem 0 1.5rem; }
.post-grid { display: grid; gap: 1.2rem; margin: 1.5rem 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card > div { padding: 1rem 1.1rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem 0; }
.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.media-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: .5rem; }
.media-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.media-grid input { width: 100%; font-family: var(--mono); font-size: .75rem; margin: .3rem 0; }
textarea.mono { font-family: var(--mono); font-size: .9rem; line-height: 1.5; }

/* ── B-1: illustrations, diagrams, product shots (public site + landing pages) ── */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.a-sun { fill: var(--gold); opacity: .2; }
.a-dune2 { fill: var(--surface-2); }
.a-dune1 { fill: color-mix(in srgb, var(--gold) 16%, var(--surface-2)); }
.a-route { fill: none; stroke: var(--ink); opacity: .45; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.a-gold { fill: var(--gold); } .a-accent { fill: var(--accent); } .a-teal { fill: var(--teal); }
.a-ring { opacity: .2; }
.a-card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.a-panel { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.a-fill { fill: var(--line); }
.a-thin { fill: none; stroke: var(--line); stroke-width: 2.4; stroke-linecap: round; }
.a-check { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.a-k { font: 700 12px var(--sans); letter-spacing: .12em; fill: var(--teal); }
.a-v { font: 600 17px var(--sans); fill: var(--ink); }
.a-mono { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.a-coin { font: 700 19px var(--sans); fill: #fff; text-anchor: middle; }
/* B-28: industry partner networks and the /use-cases showcase */
.a-lbl { font: 600 18px var(--sans); fill: var(--ink); }
.a-mid { text-anchor: middle; }
.a-glyph path { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a-glyph-ink path { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a-gold-s path { stroke: color-mix(in srgb, var(--gold) 70%, var(--ink)); } .a-teal-s path { stroke: var(--teal); } .a-accent-s path { stroke: var(--accent); }
.a-tick { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Hero with art */
.hero-art { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.hero .proof-line { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-2); }
.hero .proof-line li { display: inline-flex; align-items: center; gap: .4rem; }
.hero .proof-line li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal); }
.lp-hero.with-art .lede { margin-inline: 0; }
.lp-hero.with-art .actions { justify-content: flex-start; }

/* Section heads */
.sec-head { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.sec-head h2 { margin-bottom: .4rem; }
.sec-head p { color: var(--ink-2); margin: 0; }
.band .sec-head h2, .section .sec-head h2 { margin-bottom: .4rem; }

/* Modes with illustrations */
.mode .art { max-width: 210px; margin: 0 0 1rem; }
.mode { display: flex; flex-direction: column; }
.mode p:last-child { margin-bottom: 0; }

/* Flow diagram: click → conversion → ledger → payout */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: flow; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.1rem; }
.flow li p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.flow h3 { margin: .2rem 0 .35rem; }
.flow .ico { width: 34px; height: 34px; margin: 0; }
.flow-n { position: absolute; top: 1rem; right: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2); }
.flow li:nth-child(1) .ico { stroke: var(--gold); } .flow li:nth-child(2) .ico { stroke: var(--accent); } .flow li:nth-child(3) .ico { stroke: var(--ink-2); } .flow li:nth-child(4) .ico { stroke: var(--teal); }
@media (max-width: 899px) {
  .flow li:not(:last-child)::after { content: ""; position: absolute; left: 1.9rem; bottom: -1rem; height: 1rem; border-left: 2px dashed var(--line); }
}
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; top: 2.3rem; right: -1.45rem; width: 1.3rem; border-top: 2px dashed var(--line); }
}
.flow-wrap { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .flow-wrap.two { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* Ledger card */
.ledger-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.lc-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .65rem 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.lc-when { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); font-weight: 700; }
.lc-lines { display: grid; font-family: var(--mono); font-size: .82rem; color: var(--ink-2); }
.lc-row strong { align-self: end; font-family: var(--mono); font-size: .88rem; }
.ledger-note { font-size: .9rem; color: var(--muted); margin: .8rem 0 0; }

/* Product screenshots in a browser frame */
.shots { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.shot-bar { display: flex; gap: .35rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shot-bar span { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: .7rem .9rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Built today vs coming */
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15em .6em; border-radius: 999px; vertical-align: middle; }
.tag.now { background: var(--good-bg); color: var(--good); }
.tag.soon { background: var(--warn-bg); color: var(--warn); }
.roadmap { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 0; padding: 0; list-style: none; }
.roadmap li { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.roadmap li strong { display: block; margin: .35rem 0 .15rem; }
.roadmap li span.muted { font-size: .9rem; }
.plan .soon-list { list-style: none; padding: .7rem 0 0; margin: 0 0 1rem; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.plan .soon-list li { margin: .3rem 0; }
.plan .limits { font-size: .85rem; color: var(--ink-2); margin: 0 0 .6rem; }
.pack-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pack-head h3 { margin: 0; }
.packs article ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .95rem; }
.packs article li { margin: .25rem 0; }
.page-hero { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .page-hero { grid-template-columns: 1.4fr .6fr; } }
.page-hero .art { max-width: 280px; margin-inline: auto; }

/* Landing-page image block */
.lp-image figure { margin: 0; }
.lp-img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-image figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: .7rem; }
.hero-art .lp-img { border-radius: 16px; }

/* Partner sign-in / sign-up: art panel beside the card */
.auth-split { width: min(980px, 100%); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .auth-split { grid-template-columns: 1fr 440px; } }
.auth-aside { padding: 1rem .5rem; }
.auth-aside .art { max-width: 380px; margin-bottom: 1.2rem; }
.auth-aside h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.auth-split .card.auth { width: 100%; margin: 0; }
@media (max-width: 859px) { .auth-aside .art { max-width: 260px; } .auth-split { justify-items: center; } .auth-aside { order: 2; text-align: left; width: min(440px, 100%); } }

/* Studio */
.gen-wait { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface-2); border-radius: 6px; color: var(--muted); font-size: .9rem; }
.media-grid figcaption p { margin: .3rem 0; overflow-wrap: anywhere; }
.cta-art { max-width: 320px; margin: 0 auto 1rem; }
.art-hero { border-radius: 0 0 28px 28px; overflow: hidden; }
.soon-list, .packs article ul.soon-list { list-style: none; padding-left: 0; }
.packs { margin-bottom: 1.5rem; }
.plan .planned { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); margin: 0 0 .5rem; }

/* Branded domains (B-4): a customer's logo, footer and the Branding & domains page */
.brand img.logo { height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.auth .brand img.logo { height: 44px; }
.tenant-foot p { margin: .3rem 0; }
.logo-preview img { max-height: 64px; max-width: 100%; }
form.inline-mini { display: inline; margin: 0; }
.steps-list { padding-left: 1.2rem; } .steps-list li { margin: .35rem 0; overflow-wrap: anywhere; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { display: flex; gap: .75rem; align-items: center; padding: .35rem 0; overflow-wrap: anywhere; }
.brand-page > * { min-width: 0; }
.host-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.host-list li { border-bottom: 1px solid var(--line); padding: .6rem 0; overflow-wrap: anywhere; }
.host-list p { margin: .25rem 0; }
.host-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.steps-list code, .host-list code { overflow-wrap: anywhere; word-break: break-all; }

/* B-6: payout method details, payout rail settings */
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1rem .2rem; margin: 0 0 1rem; min-width: 0; }
legend { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 .35rem; }
.rail { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.rail h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
/* "Powered by ClickCaravan" badge (B-7, src/ui/kit.js badge()) */
.cc-badge { margin: 1.25rem 0 .5rem; text-align: center; }
.cc-badge a { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: .8rem; text-decoration: none; min-height: 32px; }
.cc-badge a:hover { color: var(--ink); border-color: var(--ink-2); }
.cc-badge strong { color: var(--ink-2); font-weight: 600; }
.cc-badge span { text-transform: none; font-size: inherit; color: inherit; font-weight: 400; }   /* kept: inherit the badge's own type */
.tenant-foot .cc-badge { text-align: left; margin: .5rem 0 0; }
.auth .cc-badge { margin-bottom: 0; }

/* B-13 set-up wizard (/admin/welcome), back-office tour, Help, partner "Get started" */
.wz-steps { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: none; }
.wz-steps a { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .92rem; min-height: 48px; }
.wz-steps a:hover { border-color: var(--ink-2); color: var(--ink); }
.wz-steps .on a { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink); font-weight: 650; }
.wz-n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .85rem; }
.wz-steps .done .wz-n { background: var(--good-bg); color: var(--good); }
.wz-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wz-l { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.wz-l small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 899px) { .wz-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; } .wz-steps a { justify-content: center; padding: .45rem .3rem; }
  .wz-steps .wz-l { display: none; } .wz-steps .on .wz-l { display: none; } }
.wz-step { overflow-x: visible; }
.wz-count { margin: 0 0 .2rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.wz-step h3 { font-size: 1.05rem; margin: 0 0 .7rem; }
.wz-step h3 small { font: 400 .85rem var(--sans); color: var(--muted); }
.wz-form { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.wz-step pre.code { margin: 0 0 1rem; }
.wz-step .setup-list { margin: 0 0 .5rem; }
.wz-foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.wz-foot form { margin: 0; }
.wz-later { margin-left: auto; }
.wz-links { list-style: none; padding: 0; margin: 0 0 .5rem; }
.wz-links li { display: grid; gap: .3rem; padding: .6rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.wz-links li:last-child { border-bottom: 0; }
.copy-row { display: flex; gap: .4rem; align-items: center; min-width: 0; }
.copy-row input.copy { width: 100%; max-width: 520px; min-width: 0; }
.wz-next { padding-left: 1.2rem; } .wz-next li { margin: .4rem 0; }
.note.good-note { background: var(--good-bg); border-left-color: var(--good); }
.wz-resume { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; justify-content: space-between; }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { display: grid; gap: .1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.help-list li:last-child { border-bottom: 0; }
.help-list a { font-weight: 600; }
.tour { position: fixed; z-index: 60; width: min(360px, calc(100vw - 32px)); right: 24px; bottom: 24px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
.tour[style*="top"] { right: auto; bottom: auto; }
.tour h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.tour h2:focus { outline: none; }
.tour p { margin: 0 0 .8rem; font-size: .95rem; }
.tour-count { font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: .3rem !important; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tour-nav { display: flex; gap: .4rem; }
.tour-on { outline: 3px solid var(--accent) !important; outline-offset: 3px; border-radius: 10px; scroll-margin: 90px; }
@media (max-width: 599px) { .tour { left: 16px; right: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .tour, .tour-on { transition: none; animation: none; } }
.get-started .setup-list a { font-weight: 600; }

/* Fraud review cases (B-15) */
.cases { display: grid; gap: .9rem; }
.case { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.case header { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; }
.case header .r { text-align: right; white-space: nowrap; }
.case .score { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--mute-bg); }
.case .score.shi { background: var(--bad-bg); color: var(--bad); } .case .score.smid { background: var(--warn-bg); color: var(--warn); }
.case .reasons { margin: .6rem 0; padding-left: 1.1rem; } .case .reasons li { margin: .2rem 0; }
.case .actions-cell form { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.case .actions-cell { align-items: center; }
.case .actions-cell form:last-child { flex: 1 1 18rem; }
.case .actions-cell input { min-width: 0; flex: 1 1 12rem; width: auto; margin: 0; }
.case code { word-break: break-all; }
@media (max-width: 520px) { .case header { grid-template-columns: auto 1fr; } .case header .r { grid-column: 2; text-align: left; } }

/* B-16: date range + Export CSV bar above list pages (src/ui/admin.js rangeBar). */
.range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .8rem; margin: 0 0 .4rem; }
.range label { margin: 0; font-size: .85rem; }
.range input[type=date] { min-height: 34px; padding: .25em .45em; }
.range .btn.primary { margin-left: auto; }
/* B-16 (C19): tables marked .stack become one block per row on a phone, each cell labelled with its column name. */
@media (max-width: 599px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
  table.stack td { border: 0; padding: .2rem 0; overflow-wrap: anywhere; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
  table.stack td.r { display: inline-block; width: 50%; text-align: left; }
  table.stack td.none { display: none; }
  table.stack td.actions-cell { display: flex; padding-top: .4rem; }
  table.stack input.copy { width: calc(100% - 4.5rem); }
  .range .btn.primary { margin-left: 0; }
}

/* B-19 embeddable widgets (/w/<network>/…): inside an iframe on the client's own page, so compact, no page chrome. */
body.widget { background: transparent; display: flow-root; }
.w-wrap { padding: 12px 16px 4px; max-width: 760px; margin: 0 auto; }
.w-brand { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-weight: 700; color: var(--ink-2); }
.w-brand img.logo { height: 28px; width: auto; }
.w-title { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.w-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 .9rem; }
.w-card h2 { font-size: 1.05rem; }
.w-link { display: flex; gap: .5rem; align-items: center; margin: 0 0 .5rem; }
.w-link input.copy { flex: 1 1 auto; width: auto; min-width: 0; }
.w-prog { margin: .6rem 0 .25rem; font-weight: 600; font-size: .9rem; }
.w-problem { margin: 0 0 .3rem; font-weight: 600; }
.w-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.w-kpis .kpi { padding: .6rem .7rem; min-width: 0; }
.w-kpis .kpi strong { font-size: clamp(1rem, 4.4vw, 1.3rem); overflow-wrap: anywhere; }
.w-scroll { overflow-x: auto; }
.w-table { width: 100%; font-size: .88rem; }
.w-table th, .w-table td { padding: .35rem .4rem; white-space: nowrap; }
.w-table td:nth-child(2) { white-space: normal; }
@media (max-width: 420px) { .w-table th:nth-child(2), .w-table td:nth-child(2) { display: none; } .w-table th, .w-table td { padding: .35rem .25rem; } }
.widget .cc-badge { margin: .4rem 0 .6rem; }

/* B-18: multi-line notes and contract terms keep their line breaks */
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* B-21: smart-link rule checkboxes side by side */
fieldset.opts { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
fieldset.opts label.check { margin: .2rem 0; }

/* B-23: Partner CRM pipeline strip, "Help me write", small inline forms */
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin: 0 0 1.25rem; }
.stage-count { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; color: var(--ink); text-decoration: none; }
.stage-count span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stage-count strong { font-size: 1.3rem; }
.stage-count.on { border-color: var(--ink-2); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
form.inline-mini { display: inline; margin: 0; }
.ai-help { margin: -.4rem 0 1rem; }
.ai-help > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--teal); width: max-content; }
.ai-panel { border: 1px dashed var(--line); border-radius: 10px; padding: .75rem .9rem .25rem; margin-top: .4rem; }
.ai-panel .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .6rem; }
.crm-split { display: grid; gap: 0 1.25rem; align-items: start; }
.crm-split > div { min-width: 0; }
@media (min-width: 1500px) { .crm-split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.table-scroll { overflow-x: auto; }
.crm-kpis .kpi strong, .crm-kpis .kpi small { overflow-wrap: anywhere; }
@media (min-width: 1100px) { .crm-split.detail { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.a-sm { font-size: 17px; }
.art-tall { display: none; }
@media (max-width: 639px) { .art-wide { display: none; } .art-tall { display: block; max-width: 420px; margin-inline: auto; } }
.a-xs { font-size: 10px; letter-spacing: .08em; }
