/* Candor Payments — site styles
   Layout concept: an itemized statement. Copy sits in a left column, figures align right,
   hairline rules separate line items, and receipts carry a perforated edge. One security-paper
   guilloche sits behind the hero receipt; everything else stays quiet. */
:root {
  /* Color: security-paper neutrals with a green bias, stamp-ink accent, semantic status hues */
  --paper: #f5f8f6;
  --paper-2: #eaf0ed;
  --surface: #ffffff;
  --ink: #0e1c18;
  --ink-2: #364843;
  --ink-3: #586b64;
  --line: #d6e0dc;
  --line-strong: #a9bab3;
  --accent: #3a3fd4;
  --accent-ink: #ffffff;
  --accent-soft: #e9eafc;
  --accent-line: #b9bcf3;
  --guilloche: #7fae9d;
  --good: #12704a;
  --good-soft: #e3f3ea;
  --warn: #8a5800;
  --warn-soft: #fbf0db;
  --bad: #b2251d;
  --bad-soft: #fbe6e4;
  --shadow: 0 1px 2px rgba(14, 28, 24, .06), 0 10px 30px rgba(14, 28, 24, .07);
  --deep: #0e1c18;
  --on-deep: #f5f8f6;
  --deep-accent: #b9bcf3;
  --deep-good: #8fd1b4;
  /* Type: a Clarendon-style slab for display (bank-cheque heritage), a plain public sans for reading,
     a mono for every figure that is money */
  --font-display: Besley, "Besley Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Public Sans Fallback", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Plex Mono", "Plex Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + .9vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.5rem + 2.7vw, 3.4rem);
  --step-5: clamp(2.6rem, 1.55rem + 4.3vw, 4.6rem);
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --gutter: 16px;
  --wrap: 1200px;
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1311;
    --paper-2: #101a17;
    --surface: #121d1a;
    --ink: #e5eeea;
    --ink-2: #b3c3bd;
    --ink-3: #8ea19a;
    --line: #22322d;
    --line-strong: #3a4d47;
    --accent: #9095ff;
    --accent-ink: #0b1311;
    --accent-soft: #1c1f45;
    --accent-line: #3d4290;
    --guilloche: #2e5246;
    --good: #4cc58a;
    --good-soft: #10291e;
    --warn: #e3a63b;
    --warn-soft: #2c2210;
    --bad: #ff7b72;
    --bad-soft: #321614;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3);
    --deep: #15231f;
    --on-deep: #e5eeea;
    --deep-accent: #aeb2ff;
    --deep-good: #6fd3a3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1311;
  --paper-2: #101a17;
  --surface: #121d1a;
  --ink: #e5eeea;
  --ink-2: #b3c3bd;
  --ink-3: #8ea19a;
  --line: #22322d;
  --line-strong: #3a4d47;
  --accent: #9095ff;
  --accent-ink: #0b1311;
  --accent-soft: #1c1f45;
  --accent-line: #3d4290;
  --guilloche: #2e5246;
  --good: #4cc58a;
  --good-soft: #10291e;
  --warn: #e3a63b;
  --warn-soft: #2c2210;
  --bad: #ff7b72;
  --bad-soft: #321614;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3);
  --deep: #15231f;
  --on-deep: #e5eeea;
  --deep-accent: #aeb2ff;
  --deep-good: #6fd3a3;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.012em; }
h1 { font-size: var(--step-4); line-height: 1.06; }
h2 { font-size: var(--step-3); line-height: 1.12; }
h3 { font-family: var(--font-body); font-size: var(--step-1); line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
h4 { font-size: var(--step-0); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.num, .mono, table.data td.n, .ledger-value { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); overflow-wrap: anywhere; }
.muted { color: var(--ink-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* Status bar: the honest launch line */
.status-bar { background: var(--deep); color: var(--on-deep); font-size: var(--step--1); line-height: 1.45; }
.status-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: center; padding-block: 8px; text-align: center; }
.status-bar a { color: inherit; font-weight: 600; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--deep-good); margin-right: 6px; vertical-align: 1px; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.32rem; letter-spacing: -.01em; line-height: 1; }
.brand-name span { font-family: var(--font-body); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-left: 2px; vertical-align: 2px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav li + li { margin-top: 0; }
.site-nav ul a { display: block; padding: 8px 10px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550; }
.site-nav ul a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav ul a[aria-current="page"] { color: var(--ink); background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 8px;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  padding: 8px 12px; font: 600 .95rem/1 var(--font-body); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 359px) {
  .header-row { gap: 10px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1.18rem; }
  .brand-name span { font-size: .7rem; letter-spacing: .08em; }
  .nav-toggle { flex-shrink: 0; padding-inline: 10px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px));
    flex-direction: column; align-items: stretch; gap: 8px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header[data-nav-open="true"] .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .header-cta { padding-top: 8px; }
  .header-cta .btn { flex: 1; justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  font: 650 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-small { min-height: 36px; padding: 7px 12px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 650; }

/* Generic sections */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.band-ink { background: var(--deep); color: var(--on-deep); }
.band-ink h2, .band-ink h3 { color: var(--on-deep); }
.band-ink .eyebrow { color: var(--deep-accent); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.1rem; }
.band-ink .section-head > p:not(.eyebrow) { color: color-mix(in srgb, var(--on-deep) 84%, transparent); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-l { display: grid; gap: 28px; align-content: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split-wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px); overflow-x: clip; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.hero h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -.018em; max-width: 13ch; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.facts li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; background: var(--good-soft); box-shadow: inset 0 0 0 1.5px var(--good); -webkit-mask: none; }
.hero-figure { position: relative; min-width: 0; padding: clamp(18px, 3vw, 36px) 0; }
.guilloche { position: absolute; top: -8%; left: -4%; width: 108%; height: 112%; pointer-events: none; color: var(--guilloche); max-width: none; }
@media (min-width: 980px) { .guilloche { width: 118%; } }
.hero-figure .receipt { position: relative; margin-inline: auto; }

/* Receipt (the fee math object) */
.receipt {
  --perf: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  max-width: 440px;
  padding: 22px 22px 26px;
  font-family: var(--font-mono);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink);
  -webkit-mask: radial-gradient(circle var(--perf) at 50% calc(100% + var(--perf) * .45), #0000 98%, #000) 50% / calc(var(--perf) * 2.2) 100% repeat-x;
  mask: radial-gradient(circle var(--perf) at 50% calc(100% + var(--perf) * .45), #0000 98%, #000) 50% / calc(var(--perf) * 2.2) 100% repeat-x;
  padding-bottom: calc(26px + var(--perf));
}
.receipt-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); margin-bottom: 10px; }
.receipt-title { font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.receipt-meta { color: var(--ink-3); font-size: .78rem; }
.receipt-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; font-family: var(--font-body); }
.receipt-controls .select { width: 100%; }
.receipt-controls label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.receipt-row span:first-child { min-width: 0; }
.receipt-row .why { display: block; color: var(--ink-3); font-size: .76rem; line-height: 1.35; }
.receipt-row .amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt-total { border-top: 1px dashed var(--line-strong); margin-top: 8px; padding-top: 12px; font-weight: 500; font-size: 1.02rem; }
.receipt-total .amt { font-weight: 600; }
.receipt-foot { margin-top: 12px; color: var(--ink-3); font-family: var(--font-body); font-size: .8rem; line-height: 1.45; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 2px; background: var(--paper); flex-wrap: wrap; }
.seg button {
  font: 650 .86rem/1 var(--font-body); color: var(--ink-2); background: transparent; border: 0; border-radius: 4px;
  padding: 8px 12px; cursor: pointer; min-height: 34px;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.money-input { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--paper); padding: 0 10px; max-width: 180px; }
.money-input:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.money-input span { color: var(--ink-3); font-family: var(--font-mono); }
.money-input input { border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 1rem/1 var(--font-mono); padding: 9px 0; width: 100%; min-width: 0; }
.controls-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.control { display: grid; gap: 6px; min-width: 0; }
.select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--paper);
  color: var(--ink); font: 500 .92rem/1.2 var(--font-body); padding: 9px 34px 9px 10px; min-height: 38px; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Ledger: a fee schedule with leader dots */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { margin: 0; display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ledger-label { min-width: 0; }
.ledger-label small { display: block; color: var(--ink-3); font-size: .86rem; line-height: 1.4; margin-top: 2px; }
.ledger-dots { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--line-strong); transform: translateY(-5px); }
.ledger-value { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; text-align: right; }
.ledger-value.zero { color: var(--good); }
.band-ink .ledger, .band-ink .ledger li { border-color: color-mix(in srgb, var(--on-deep) 18%, transparent); }
.band-ink .ledger-dots { border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); }
.band-ink .ledger-label small { color: color-mix(in srgb, var(--on-deep) 72%, transparent); }
.band-ink .ledger-value.zero { color: var(--deep-good); }

/* Features: rule-separated, not boxed */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); } }
@media (min-width: 1100px) { .features-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { display: grid; gap: 8px; align-content: start; padding: 24px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.feature h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.feature .tag { font: 600 .74rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.feature p { color: var(--ink-2); }
.feature .cost { font-family: var(--font-mono); font-size: .86rem; color: var(--ink); }

/* Cards: only for things that are genuinely separate objects (plans, dashboard tiles) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 28px); min-width: 0; }
.plan { display: grid; gap: 16px; align-content: start; }
.plan-name { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; }
.plan-price { font-family: var(--font-mono); font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.plan-price small { display: block; font-family: var(--font-body); font-size: .9rem; color: var(--ink-3); font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.plan-best { color: var(--ink-2); }
.plan ul { padding-left: 1.1em; color: var(--ink-2); }
.plan-featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.plan-flag { justify-self: start; font: 700 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 8px; border-radius: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.45; }
table.data caption { text-align: left; padding: 14px 16px 0; color: var(--ink-3); font-size: .86rem; }
table.data th, table.data td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; background: var(--paper-2); white-space: nowrap; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody th { font-weight: 700; color: var(--ink); }
table.data td.n, table.data th.n { text-align: right; white-space: nowrap; font-family: var(--font-mono); }
table.data thead th.n { font-family: var(--font-body); }
table.data .us { background: var(--accent-soft); }
.wide-table { min-width: 860px; }
.vs-table { min-width: 640px; }
.vs-table thead th { white-space: normal; vertical-align: bottom; }
.vs-table .vs-plan { text-transform: none; letter-spacing: 0; font-weight: 500; }
.vs-table td { font-variant-numeric: tabular-nums; }
.vs-table td.us { font-weight: 650; color: var(--ink); }
.mid-table { min-width: 620px; }
.table-note { color: var(--ink-3); font-size: .86rem; margin-top: 10px; }

/* Status chips: color always paired with words */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 650 .8rem/1.4 var(--font-body); white-space: nowrap; background: var(--paper-2); color: var(--ink-2); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip-good { background: var(--good-soft); color: var(--good); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-info { background: var(--accent-soft); color: var(--accent); }

/* Network health meter */
.meter { display: grid; gap: 10px; }
.meter-track { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--good-soft) 0 33.3%, var(--warn-soft) 33.3% 80%, var(--bad-soft) 80% 100%); border: 1px solid var(--line); }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--good); min-width: 6px; }
.meter-fill.is-warn { background: var(--warn); }
.meter-fill.is-bad { background: var(--bad); }
.meter-marks { position: relative; height: 40px; font-size: .74rem; line-height: 1.2; color: var(--ink-3); }
.meter-mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; white-space: nowrap; padding-top: 8px; }
.meter-mark::before { content: ""; position: absolute; top: -8px; left: 50%; width: 1px; height: 14px; background: var(--line-strong); }
.meter-mark.end { transform: translateX(-100%); text-align: right; }
.meter-mark.end::before { left: auto; right: 0; }
.meter-mark b { color: var(--ink); font-weight: 650; }
.meter-compact .meter-marks { height: 22px; }
.meter-compact .meter-mark span { display: none; }
.meter-legend { font-size: .76rem; color: var(--ink-3); line-height: 1.35; }

/* Notes and callouts */
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink); }
.callout p + p { margin-top: 8px; }
.callout-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-good { border-left-color: var(--good); background: var(--good-soft); }
.note { font-size: .9rem; color: var(--ink-3); }

/* Inner page header */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { max-width: 64ch; }
.breadcrumbs { font-size: .86rem; color: var(--ink-3); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: .9rem; }

/* Long-form reading (guides, legal, rules) */
.article-grid { display: grid; gap: clamp(28px, 5vw, 64px); padding-block: clamp(32px, 5vw, 64px); }
@media (min-width: 1040px) { .article-grid { grid-template-columns: minmax(0, 1fr) 260px; } }
.prose { max-width: 70ch; min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: var(--step-2); line-height: 1.2; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose li + li { margin-top: .45em; }
.prose .table-wrap, .prose .callout, .prose figure, .prose .receipt { margin-top: 1.4em; margin-bottom: 1.4em; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .86rem; color: var(--ink-3); margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding-left: 16px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.key-points { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.key-points h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.key-points ul { padding-left: 1.1em; }
.toc { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 20px); align-self: start; font-size: .92rem; display: none; }
@media (min-width: 1040px) { .toc { display: block; } }
.toc h2 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.sources { font-size: .9rem; }
.sources ol { padding-left: 1.3em; }
.sources li { color: var(--ink-3); overflow-wrap: anywhere; }
.updated { font-size: .88rem; color: var(--ink-3); }

/* Lists of rules */
.rule-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rule-list > li { margin: 0; display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .rule-list > li { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; } .rule-list.stacked > li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rule-list h3 { font-size: 1.05rem; }
.rule-list p { color: var(--ink-2); }
.accept-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.accept-list li { margin: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 760px) { .accept-list li { grid-template-columns: 210px minmax(0, 1fr); align-items: baseline; } }
.accept-list .chip { justify-self: start; }
.accept-list p { color: var(--ink-2); }

/* Steps: only where the order is real */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps > li { counter-increment: step; margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step); font: 600 1.05rem/1 var(--font-mono); color: var(--accent); width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent-line); display: grid; place-items: center; }
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); }

/* Q&A: questions and answers people can see; build.py makes the FAQPage markup from these */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--font-mono); color: var(--ink-3); }
.qa details[open] summary::after { content: "\2212"; }
.qa .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; display: grid; gap: 10px; }

/* Calculators */
.calc { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-inputs { display: grid; gap: 18px; padding: clamp(20px, 3vw, 28px); align-content: start; }
.calc-results { display: grid; gap: 16px; padding: clamp(20px, 3vw, 28px); background: var(--paper-2); border-top: 1px solid var(--line); align-content: start; min-width: 0; }
@media (min-width: 900px) { .calc-results { border-top: 0; border-left: 1px solid var(--line); } }
.calc h3 { font-size: 1.1rem; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field .label { font-weight: 650; font-size: .95rem; color: var(--ink); }
.field .hint, .form .hint { font-size: .85rem; color: var(--ink-3); line-height: 1.4; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field input[type="password"], .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); padding: 10px 12px; min-height: 44px;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 14px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.unit-input { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); }
.unit-input:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.unit-input input { border: 0 !important; outline: 0 !important; min-width: 0; font-family: var(--font-mono) !important; }
.field .unit-input input, .unit-input .input { min-height: 42px; }   /* with the box's border, the same 44px as other fields */
.unit-input .unit { display: grid; place-items: center; padding: 0 12px; color: var(--ink-3); font-family: var(--font-mono); background: var(--paper-2); border-left: 1px solid var(--line); }
.unit-input .unit.pre { border-left: 0; border-right: 1px solid var(--line); }
.result-big { font-family: var(--font-mono); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.result-label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.result-pair { display: grid; gap: 4px; }
.compare-bars { display: grid; gap: 12px; }
.compare-bar { display: grid; gap: 6px; }
.compare-bar .top { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.compare-bar .top b { font-family: var(--font-mono); font-weight: 500; }
.compare-bar .bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.compare-bar .bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink-3); }
.compare-bar.is-us .bar i { background: var(--accent); }
.formula { font-family: var(--font-mono); font-size: .86rem; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-s); padding: 10px 12px; overflow-x: auto; }

/* Forms */
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form legend { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; padding: 0; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.req { color: var(--bad); font-weight: 700; }
.form-status { display: none; }
.form-status[data-show="true"] { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.never-list { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--good); background: var(--good-soft); border-radius: var(--radius); color: var(--ink); }
.never-list ul { padding-left: 1.1em; }

/* Call-to-action band */
.cta-band .wrap { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--ink-2); max-width: 60ch; margin-top: 10px; }
.band-ink.cta-band p { color: color-mix(in srgb, var(--on-deep) 82%, transparent); }
.band-ink .btn-primary { background: var(--on-deep); color: var(--deep); }
.band-ink .btn-primary:hover { background: color-mix(in srgb, var(--on-deep) 86%, var(--deep-accent)); }
.band-ink .btn-secondary { color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 40%, transparent); }
.band-ink a:not(.btn) { color: var(--on-deep); }

/* Guides index cards */
.guide-list { display: grid; gap: 0; border-top: 1px solid var(--line); list-style: none; padding: 0; margin: 0; }
.guide-list li { margin: 0; border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; gap: 6px; padding: 22px 0; text-decoration: none; color: inherit; }
@media (min-width: 760px) { .guide-list a { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 32px; } }
.guide-list h2, .guide-list h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.3; letter-spacing: -.005em; color: var(--ink); }
.guide-list a:hover h2, .guide-list a:hover h3 { color: var(--accent); }
.guide-list p { color: var(--ink-2); grid-column: 1; }
.guide-list .meta { color: var(--ink-3); font-size: .86rem; white-space: nowrap; grid-row: 1; grid-column: 2; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: .94rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } }
.footer-grid h2 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid li { margin: 0; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-about { display: grid; gap: 12px; color: var(--ink-2); max-width: 36ch; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--ink-3); font-size: .84rem; line-height: 1.55; }
.copy-btn { font: 600 .8rem/1 var(--font-body); color: var(--ink-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; padding: 5px 8px; cursor: pointer; margin-left: 6px; }

/* Dashboard teaser and dashboard preview */
.dash-banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: var(--radius); padding: 12px 16px; font-size: .95rem; }
.dash-banner strong { color: var(--warn); }
.dash { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 980px) { .dash { grid-template-columns: 220px minmax(0, 1fr); } }
.dash-side { border-bottom: 1px solid var(--line); background: var(--paper); padding: 14px; display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 980px) { .dash-side { border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 14px; } }
.dash-biz { display: grid; gap: 2px; padding: 4px 8px 10px; }
.dash-biz b { font-size: .98rem; }
.dash-biz span { font-size: .8rem; color: var(--ink-3); }
.dash-tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dash-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 979px) { .dash-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 32px; } }
@media (min-width: 980px) { .dash-tabs { flex-direction: column; overflow: visible; } }
.dash-tab { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; white-space: nowrap; background: transparent; border: 0; border-radius: var(--radius-s); padding: 10px 12px; font: 600 .94rem/1.2 var(--font-body); color: var(--ink-2); cursor: pointer; text-align: left; min-height: 40px; }
.dash-tab:hover { background: var(--paper-2); color: var(--ink); }
.dash-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.dash-tab .count { font: 600 .74rem/1 var(--font-mono); background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 4px 7px; }
.dash-tab[aria-selected="true"] .count { background: var(--paper); color: var(--ink); }
.dash-main { padding: clamp(16px, 3vw, 28px); min-width: 0; display: grid; gap: 24px; align-content: start; }
.dash-panel { display: grid; gap: 20px; min-width: 0; }
.dash-panel[hidden] { display: none !important; }
.dash-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.dash-h h2 { font-size: var(--step-2); }
.dash-h p { color: var(--ink-3); font-size: .92rem; }
.kpis { display: grid; gap: 14px; align-items: start; }
@media (min-width: 620px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; background: var(--surface); min-width: 0; }
.kpi-q { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kpi-a { font-family: var(--font-mono); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.kpi-sub { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.kpi .btn-link { font-size: .88rem; font-weight: 650; }
.spark { width: 100%; height: 44px; display: block; }
.todo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.todo-list li { margin: 0; display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--warn); font-size: .9rem; line-height: 1.4; }
.todo-list li.ok { border-left-color: var(--good); }
.todo-list small { color: var(--ink-3); }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-align: left; }
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row > summary, .list-row > .row-main { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 16px; align-items: center; }
.list-row > summary::-webkit-details-marker { display: none; }
.list-row > summary:hover { background: var(--paper); }
.row-title { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.row-sub { font-size: .86rem; color: var(--ink-3); grid-column: 1; }
.row-amt { font-family: var(--font-mono); font-weight: 500; text-align: right; grid-row: 1; grid-column: 2; white-space: nowrap; }
.row-status { grid-column: 2; justify-self: end; }
.row-detail { padding: 4px 16px 18px; display: grid; gap: 14px; background: var(--paper); border-top: 1px dashed var(--line); }
.row-detail .receipt { box-shadow: none; max-width: 520px; }
.row-detail p { color: var(--ink-2); font-size: .94rem; }
.countdown { font-family: var(--font-mono); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--line-strong); flex-shrink: 0; margin-top: 2px; }
.checklist li.done::before { background: var(--good); border-color: var(--good); box-shadow: inset 0 0 0 3px var(--surface); }
.glossary { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
@media (min-width: 760px) { .glossary { grid-template-columns: 200px minmax(0, 1fr); } }
.glossary dt { font-weight: 700; padding: 14px 0 0; }
.glossary dd { margin: 0; padding: 4px 0 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .glossary dt { padding: 14px 0; border-bottom: 1px solid var(--line); } .glossary dd { padding: 14px 0; } }
.trend { width: 100%; height: auto; display: block; }
.mini-dash { display: grid; gap: 24px; align-items: start; }
@media (min-width: 620px) { .mini-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 404 */
.not-found { padding-block: clamp(64px, 10vw, 140px); }
.not-found .wrap { display: grid; gap: 18px; max-width: 760px; }

/* Chat assistant: a launcher at the bottom right, a panel that is a sheet on phones */
html.has-chat .site-footer { padding-bottom: 104px; }
.chat-root { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100vw - 32px); }
.chat-root [hidden] { display: none !important; }
.chat-launcher { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 18px 12px 15px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 650 .98rem/1 var(--font-body); cursor: pointer;
  box-shadow: 0 2px 6px rgba(14, 28, 24, .16), 0 12px 32px rgba(14, 28, 24, .18); }
.chat-launcher:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.chat-launcher svg { flex-shrink: 0; }
.chat-dot { position: absolute; top: 7px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--ink); }
.chat-teaser { display: flex; align-items: flex-start; max-width: min(300px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow); padding: 4px; }
.chat-teaser-text { flex: 1; min-width: 0; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 4px 9px 10px;
  font: 600 .95rem/1.4 var(--font-body); color: var(--ink); cursor: pointer; }
.chat-teaser-text:hover { color: var(--accent); }
.chat-teaser-close { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; }
.chat-teaser-close:hover { background: var(--paper-2); color: var(--ink); }

.chat-panel { position: fixed; z-index: 71; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 32px)); height: min(700px, calc(100vh - 32px)); height: min(700px, calc(100dvh - 32px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 2px 8px rgba(14, 28, 24, .10), 0 24px 64px rgba(14, 28, 24, .24); overflow: hidden; text-align: left; }
@media (max-width: 639px) {
  .chat-panel { top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  html.chat-locked, html.chat-locked body { overflow: hidden; }
}
.chat-head { display: grid; gap: 6px; flex-shrink: 0; padding: max(10px, env(safe-area-inset-top, 0px)) 8px 12px 16px; background: var(--deep); color: var(--on-deep); }
.chat-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.chat-head-sub { padding-left: 40px; padding-right: 8px; flex-wrap: wrap; row-gap: 6px; }
.chat-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-mark { width: 30px; height: 30px; flex-shrink: 0; }
.chat-title { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 1.14rem; line-height: 1.15; color: var(--on-deep); white-space: nowrap; }
.chat-title:focus { outline: none; }
.chat-title:focus-visible { outline: 3px solid var(--deep-accent); outline-offset: 2px; }
.chat-sub { font-size: .8rem; line-height: 1.3; color: color-mix(in srgb, var(--on-deep) 80%, transparent); }
.chat-head-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.chat-person { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--on-deep) 45%, transparent); background: transparent; color: var(--on-deep);
  font: 600 .82rem/1 var(--font-body); white-space: nowrap; cursor: pointer; }
.chat-person svg { flex-shrink: 0; }
.chat-person:hover, .chat-icon-btn:hover { background: color-mix(in srgb, var(--on-deep) 14%, transparent); }
.chat-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--on-deep); cursor: pointer; }
.chat-head :focus-visible { outline-color: var(--deep-accent); }

.chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.chat-log:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 0; }
.chat-msg { display: grid; gap: 10px; min-width: 0; }
.chat-msg-you { justify-items: end; }
.chat-bubble { min-width: 0; overflow-wrap: anywhere; font-size: .96rem; line-height: 1.55; }
.chat-msg-bot .chat-bubble { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 11px 14px; }
.chat-msg-you .chat-bubble { max-width: 86%; background: var(--accent); color: var(--accent-ink); border-radius: 16px 16px 4px 16px; padding: 9px 13px; white-space: pre-wrap; }
.chat-msg-you.is-excluded .chat-bubble { opacity: .55; }
.chat-bubble > * + * { margin-top: .6em; }
.chat-bubble ul, .chat-bubble ol { padding-left: 1.2em; }
.chat-bubble li + li { margin-top: .3em; }
.chat-bubble strong { font-weight: 700; }
.chat-bubble a { color: var(--accent); font-weight: 600; }
.chat-bubble code { background: var(--paper-2); border-radius: 4px; padding: 0 4px; }
.chat-status { display: inline-flex; align-items: center; gap: 10px; padding: 4px 2px; color: var(--ink-3); font-size: .9rem; }
.chat-status-text::after { content: "\2026"; }
.chat-dots { display: inline-flex; gap: 4px; }
.chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: .15s; }
.chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.chat-card { min-width: 0; }
.chat-receipt { max-width: 100%; box-shadow: none; --perf: 8px; font-size: .84rem; padding: 14px 14px calc(16px + var(--perf)); }
.chat-receipt .receipt-head { padding-bottom: 9px; margin-bottom: 6px; }
.chat-receipt .receipt-title { font-size: .9rem; }
.chat-sec-head { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: var(--ink-2); margin: 2px 0 2px; }
.chat-sec-next { border-top: 1px dashed var(--line-strong); margin-top: 10px; padding-top: 10px; }
.chat-sec-foot { color: var(--ink-3); font-size: .76rem; text-align: right; }
.chat-receipt .receipt-total { margin-top: 4px; padding-top: 8px; font-size: .92rem; }
.chat-receipt .receipt-foot { margin-top: 10px; font-size: .74rem; }
.chat-bars { display: grid; gap: 12px; font-family: var(--font-body); }
.chat-bar { display: grid; gap: 5px; }
.chat-bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.chat-bar-top b { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.chat-bar-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.chat-bar-track i { display: block; height: 100%; border-radius: 999px; background: var(--ink-3); }
.chat-bar.is-us .chat-bar-track i { background: var(--accent); }
.chat-bar.is-muted .chat-bar-track i { background: var(--line-strong); }
.chat-bar-sub { font-size: .76rem; color: var(--ink-3); }
.chat-verdict { margin-top: 12px; font-family: var(--font-body); font-weight: 700; font-size: .9rem; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 4px; }
.chat-chip { min-height: 36px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--surface); color: var(--accent);
  font: 600 .88rem/1.25 var(--font-body); text-align: left; cursor: pointer; }
.chat-chip:hover { background: var(--accent-soft); }
.chat-chip.is-action { border-color: var(--line-strong); color: var(--ink); }
.chat-note-row { display: grid; gap: 8px; justify-items: start; }
.chat-note { font-size: .86rem; line-height: 1.45; color: var(--ink-3); }
.chat-offline .chat-note:first-child { color: var(--ink-2); }

.chat-compose { position: relative; display: flex; align-items: flex-end; gap: 8px; flex-shrink: 0; padding: 10px 12px 6px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input { flex: 1; min-width: 0; min-height: 44px; max-height: 150px; resize: none; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--font-body); padding: 10px 12px; }
.chat-input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.chat-input:disabled { opacity: .6; cursor: not-allowed; }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.chat-send:disabled { opacity: .45; cursor: not-allowed; }
.chat-send.is-stop { background: var(--ink); color: var(--paper); }
.chat-count { position: absolute; right: 64px; top: -24px; padding: 1px 6px; border-radius: 4px; background: var(--surface); color: var(--ink-3); font-size: .74rem; }
.chat-fine { flex-shrink: 0; padding: 0 14px max(10px, env(safe-area-inset-bottom, 0px)); background: var(--surface); color: var(--ink-3); font-size: .72rem; line-height: 1.4; }
.chat-fine a { color: var(--ink-2); }
.chat-handoff { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 16px max(18px, env(safe-area-inset-bottom, 0px)); background: var(--paper); }
.chat-handoff-form { gap: 14px; }
.chat-handoff-title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.chat-handoff-lede { color: var(--ink-2); font-size: .94rem; }
.chat-handoff .btn-row .btn { flex: 1 1 auto; }
.chat-field-error { color: var(--bad); font-size: .86rem; font-weight: 600; }
.chat-check-wrap { display: grid; gap: 6px; }
.chat-handoff [aria-invalid="true"] { border-color: var(--bad); }
.chat-handoff-status { color: var(--ink-2); font-size: .9rem; }
.chat-handoff-status:empty { display: none; }
.chat-handoff-status:focus { outline: none; }

/* Merchant portal and staff page (/merchants/) */
.portal { display: grid; gap: 28px; padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.portal [hidden] { display: none !important; }
.portal-msg:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.portal-h3 { font-size: var(--step-1); }
.portal-points { padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
.portal-loading { padding-block: 24px; }
.portal-narrow { max-width: 520px; }
.portal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.portal-id { display: grid; gap: 4px; min-width: 0; }
.portal-id h2 { font-size: var(--step-3); overflow-wrap: anywhere; }
.portal-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.portal-mode { justify-self: start; font: 650 .8rem/1.4 var(--font-body); color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 3px 10px; }
.portal-steps { list-style: none; padding: 0; margin: 0; counter-reset: pstep; display: grid; gap: 16px; }
.portal-step { counter-increment: pstep; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px) clamp(62px, 7vw, 76px); position: relative; }
.portal-step::before { content: counter(pstep); position: absolute; left: clamp(16px, 2.4vw, 24px); top: clamp(16px, 2.6vw, 24px); font: 600 1rem/1 var(--font-mono); color: var(--accent); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent-line); display: grid; place-items: center; }
.portal-step p { color: var(--ink-2); }
.portal-step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.portal-step-head h3, .portal-step-head h2 { font-size: var(--step-1); }
.portal-step-head :focus { outline: none; }
.portal-error { color: var(--bad); font-weight: 600; font-size: .92rem; }
.portal-error:empty { display: none; }
.portal-fee { font-family: var(--font-mono); font-size: .92rem; color: var(--ink-2); background: var(--paper-2); border-radius: var(--radius-s); padding: 10px 12px; }
.portal-fee:empty { display: none; }
.portal-choice { display: grid; gap: 10px; }
.portal-choice legend { font: 650 .95rem/1.4 var(--font-body); color: var(--ink); margin-bottom: 4px; }
.portal-custom .hint { grid-column: 1 / -1; margin: 0; }
.portal-new:focus, [data-f="result"]:focus, [data-f="account"]:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.portal-copy { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.portal-copy .input { flex: 1 1 auto; min-width: 0; font-size: .86rem; }
.portal-copy textarea.input { min-height: 0; resize: vertical; line-height: 1.5; }
.portal-copy .copy-btn { margin: 0; min-height: 40px; padding-inline: 12px; flex-shrink: 0; }
.portal-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.portal-list { list-style: none; padding: 0; margin: 0; background: var(--surface); }
.portal-row > .row-main { cursor: default; }
.portal-row-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 0 16px 14px; font-size: .9rem; }
.portal-url { color: var(--ink-2); font-size: .82rem; overflow-wrap: anywhere; min-width: 0; }
.portal-row-tools .copy-btn { margin: 0; }
.portal-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.manage { max-width: 46rem; }
.portal-inline .field { flex: 1 1 260px; }
/* the ways to get paid, one tab each */
.portal-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.portal-tab { flex: 0 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 14px 9px; min-height: 44px;
              font: 650 .95rem/1.3 var(--font-body); color: var(--ink-2); cursor: pointer; }
.portal-tab:hover { color: var(--ink); }
.portal-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.portal-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px 6px 0 0; }
@media (max-width: 640px) {
  .portal-tabs { gap: 8px; border-bottom: 0; }
  .portal-tab { border: 1px solid var(--line-strong); border-radius: 999px; margin: 0; padding: 8px 14px; }
  .portal-tab[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); }
  .portal-tab:focus-visible { border-radius: 999px; outline-offset: 2px; }
}
.portal-lede { color: var(--ink-2); max-width: 760px; }
/* the Candor dashboard: Stripe's own screens (Connect embedded components), each in a box on the page */
.embed { display: grid; gap: 12px; min-height: 7rem; align-content: start; }
.embed.embed-on { min-height: 0; }
.embed.embed-on > .embed-loading { display: none; }
.embed-loading { margin: 0; padding-block: 12px; }
.embed > :not(p):not(.embed-problem) { display: block; width: 100%; min-width: 0; }
.embed-problem { display: grid; gap: 10px; }
.portal-money .embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(12px, 2.4vw, 22px); }
.money-glance .kpis { align-items: stretch; }
.money-glance .kpi-a { overflow-wrap: anywhere; }
.kpi-sub.is-bad { color: var(--bad); font-weight: 600; }
.money-glance-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 24px; }
.money-glance-mail { display: grid; gap: 4px; flex: 1 1 320px; min-width: 0; }
.money-glance-mail .hint { font-size: .85rem; color: var(--ink-3); line-height: 1.4; margin: 0 0 0 30px; }
.money-glance-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .9rem; }
.portal-step .embed { border-top: 1px solid var(--line); padding-top: 16px; }
/* what Stripe needs from the business takes no room until there's something to show */
.portal-notices:not(.has-notices) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.portal-lines { display: grid; gap: 12px; }
.portal-lines-list { display: grid; gap: 14px; }
.portal-line { display: grid; grid-template-columns: minmax(0, 1fr) 96px 160px auto; gap: 10px 12px; align-items: end; }
.portal-line-remove { padding-bottom: 12px; }
@media (max-width: 640px) {
  .portal-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .portal-line-desc { grid-column: 1 / -1; }
  .portal-line-remove { justify-self: start; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .status-bar, .site-footer, .cta-band, .nav-toggle, .chat-root { display: none !important; }
  body { background: #fff; color: #000; }
}

/* API docs: a code sample scrolls inside its box on a phone, never the page */
.code { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); overflow-x: auto; max-width: 100%; }
.code:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.code pre { margin: 0; padding: 14px 16px; font: 400 .84rem/1.6 var(--font-mono); color: var(--ink); white-space: pre; tab-size: 2; }
.code code { font-size: inherit; }
.prose .code { margin-top: 1.2em; margin-bottom: 1.2em; }
.prose :not(pre) > code { background: var(--paper-2); border-radius: 4px; padding: .05em .3em; overflow-wrap: anywhere; color: var(--ink); }
.api-fields { border-top: 1px solid var(--line); }
.prose .api-fields { margin-top: 1.2em; margin-bottom: 1.2em; }
.api-fields > div { display: grid; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .api-fields > div { grid-template-columns: 200px minmax(0, 1fr); } }
.api-fields dt { margin: 0; color: var(--ink); }
.api-fields dt code { white-space: nowrap; }
.api-fields .req { font-size: .82rem; font-weight: 650; color: var(--ink-3); margin-left: 4px; }
.api-fields dd { margin: 0; color: var(--ink-2); }
table.api-table th[scope="row"] code { overflow-wrap: normal; }
table.api-table th, table.api-table td { vertical-align: top; }
table.api-table td { min-width: 16ch; }
table.api-table td .muted { display: block; margin-top: 2px; }

/* Sign in or open an account (/merchants/): one card, one question at a time */
.signin-card { max-width: 34rem; }
.signin-card h2 { margin: 0; }
.input-big { font-size: 1.125rem; min-height: 52px; }
.input-code { font-family: var(--font-mono); font-size: 1.75rem; letter-spacing: .45em; text-align: center; min-height: 60px; max-width: 16rem; }
.btn-wide { width: 100%; justify-content: center; min-height: 50px; font-size: 1.0625rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.link-btn:disabled { color: var(--ink-3); cursor: default; }
.signin-steps { margin: 0; padding-left: 1.4em; display: grid; gap: .6rem; }
.signin-steps li::marker { color: var(--accent); font-weight: 700; }
[data-f="choose-list"] .btn { text-align: left; }
.apply-start { max-width: 34rem; }
.apply-start .btn-row { margin-top: .25rem; }

/* Visually hidden, still read by screen readers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Signing in: "or", then the passkey button */
.signin-or { gap: 10px; }
.signin-or-line { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .9rem; margin: 2px 0; }
.signin-or-line::before, .signin-or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pk-glyph { width: 20px; height: 20px; flex-shrink: 0; }

/* One-tap sign-up */
.signup-price { margin: 0; padding: 14px 16px; list-style: none; display: grid; gap: 6px; background: var(--paper-2); border-radius: var(--radius); }
.signup-price li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 8px; }
.signup-terms { font-size: .9rem; color: var(--ink-2); }

/* The nudge to add a passkey */
.pk-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-left-color: var(--good); background: var(--good-soft); }
.pk-nudge .btn-row { align-items: center; }

/* Settings */
.settings-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.settings-grid h3 { margin: 0; font-size: var(--step-1); }
.choice-list { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.choice > span { display: grid; gap: 2px; }
.toggle-list { list-style: none; margin: 0; padding: 0; display: grid; }
.toggle-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle-list li:first-child { border-top: 0; padding-top: 0; }
.toggle-list li > span, .toggle-list li > label { display: grid; gap: 2px; cursor: pointer; }
.toggle-list li.is-off { opacity: .7; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; flex-shrink: 0; margin: 0; transition: background-color .15s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.switch:disabled { cursor: not-allowed; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }
.brand-color-row { display: flex; align-items: center; gap: 12px; }
.brand-color-row input[type="color"] { width: 52px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; }
.brand-color-row output { font-family: var(--font-mono); color: var(--ink-2); }
.brand-logo { gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.file-btn { width: fit-content; cursor: pointer; }
.file-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
#b-logo:focus-visible + .hint, .brand-logo:focus-within .file-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
