/* FinCo client portal styles (2026-10-06).
 * Same surface as fincopayments.com: canonical navy, ONE lit band at the top (Brand v2.0.2,
 * Drew 2026-09-24), gold accents, Playfair Display headings, DM Sans text. No tonal section
 * bands (Drew 2026-09-24). Colours come only from tokens.css; never hardcode hex here.
 * Sections: base · layout · header · buttons · cards · forms · store · learn · wealth · footer · print. */

:root {
  --page-base: var(--navy);
  --glow-band: 1100px;
  --logo-h: 56px;
  --header-h: 74px;
  --radius-xl: 22px;
  --img-surface: var(--paper);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
}
@media (max-width: 639px) { :root { --logo-h: 50px; --header-h: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page-base); -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul, ol { padding: 0; list-style: none; }
[tabindex="-1"]:focus { outline: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
body {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(60% 32% at 50% 0%, rgba(74,124,190,0.20) 0%, rgba(74,124,190,0) 72%),
    radial-gradient(64% 50% at 64% 34%, rgba(74,124,190,0.28) 0%, rgba(74,124,190,0) 70%),
    radial-gradient(100% 60% at 58% 38%, var(--navy4) 0%, var(--navy3) 36%, var(--page-base) 100%);
  background-color: var(--page-base);
  background-size: auto, 100% var(--glow-band), 100% var(--glow-band), 100% var(--glow-band);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }
/* Fine grid (UI standard): the top band only, 1px lines 48px apart at 3.5% white, faded out by a mask; static, never takes a click. */
body::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--ui-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--ui-grid-line) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 62% at 60% 28%, #000 8%, transparent 76%); mask-image: radial-gradient(70% 62% at 60% 28%, #000 8%, transparent 76%); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.01em; font-variant-numeric: lining-nums; color: var(--text-bright); }
h1 { font-size: clamp(2rem, 2.4vw + 1.2rem, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.2vw + 1rem, 2rem); }
h3 { font-size: 1.25rem; line-height: var(--lh-snug); }
p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }
::selection { background: rgba(201,168,76,0.35); color: var(--text-bright); }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; border-radius: var(--ui-radius-inline); }
a, button, .btn { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 600; }
.skip-link:focus { left: 12px; }
.skip-link { min-height: var(--ui-target); display: inline-flex; align-items: center; }
.muted { color: var(--text-dim); }
.gold { color: var(--gold); }
.eyebrow { font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: var(--eyebrow-tracking); font-size: 0.75rem; color: var(--gold); }
.lede { font-size: 1.08rem; color: var(--text-muted); max-width: 62ch; }
.num { text-align: right; font-variant-numeric: lining-nums; }
.figure { font-family: var(--font-display); font-variant-numeric: lining-nums; color: var(--gold); }
.pos { color: var(--positive); }
.neg { color: var(--negative); }
[hidden] { display: none !important; }
#fci-defs, #fci-defs svg { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-3); }
@media (min-width: 768px) { .container { padding-inline: var(--space-4); } }
.page { padding-block: var(--space-5) var(--space-10); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.page-head h1 { margin-top: 0.35rem; }
.page-head .lede { margin-top: 0.6rem; }
.section { margin-top: var(--space-7); }
.section-tight { margin-top: var(--space-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.grid { display: grid; gap: var(--space-3); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }
.stack > * + * { margin-top: var(--space-2); }
.row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- dev ribbon (localhost only, set by portal.js) ---------- */
.dev-ribbon { background: var(--golddim); border-bottom: 1px solid var(--goldborder); font-size: var(--fs-small); color: var(--text); text-align: center; padding: 6px var(--space-2); }
.dev-ribbon strong { color: var(--gold); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,0.06); transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.site-header::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.site-header.is-scrolled { background: rgba(13,27,42,0.88); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.site-header .container { display: flex; align-items: center; gap: var(--space-3); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.brand img { height: var(--logo-h); width: auto; }
.brand .portal-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--text-dim); padding-left: 0.85rem; border-left: 1px solid rgba(255,255,255,0.16); line-height: 1.2; }
@media (max-width: 1499px) { .brand .portal-tag { display: none; } }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav a.nav-link { display: inline-flex; align-items: center; min-height: var(--ui-target); padding: 0.5rem 0.75rem; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: color var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease); }
.nav a.nav-link:hover { color: var(--text-bright); background: rgba(255,255,255,0.05); border-color: var(--ui-hair); }
.nav a.nav-link[aria-current="page"] { color: var(--text-bright); background: var(--ui-tint-gold-hover); border-color: var(--ui-hair-gold-strong); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.4rem; }
.points-pill { display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--ui-target); padding: 0.4rem 0.95rem; border-radius: var(--radius-pill); border: 1px solid var(--ui-hair-gold); background: var(--ui-tint-gold); box-shadow: var(--ui-top-light); font-weight: 600; font-size: 0.88rem; color: var(--gold); white-space: nowrap; font-variant-numeric: lining-nums; transition: border-color var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease); }
.points-pill:hover { border-color: var(--ui-hair-gold-strong); background: var(--ui-tint-gold-hover); }
.menu-btn { display: none; width: var(--ui-target-touch); height: var(--ui-target-touch); border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.18); align-items: center; justify-content: center; margin-left: auto; }
.menu-btn > span:not(.sr-only), .menu-btn > span:not(.sr-only)::before, .menu-btn > span:not(.sr-only)::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ''; }
.menu-btn > span:not(.sr-only)::before { position: absolute; top: -6px; }
.menu-btn > span:not(.sr-only)::after { position: absolute; top: 6px; }
@media (max-width: 1199px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--space-3) var(--space-3); background: rgba(13,27,42,0.97); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: 0.85rem 0.6rem; border-radius: var(--radius); font-size: 1rem; }
  .header-actions { margin: var(--space-2) 0 0; justify-content: space-between; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: var(--ui-target-touch); padding: 0.7rem 1.2rem; border-radius: var(--ui-radius-control); font-weight: 600; font-size: 0.95rem; line-height: 1.2; transition: transform var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease); white-space: nowrap; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--navy); border: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--shadow-sm); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 26px rgba(201,168,76,0.28); }
.btn-ghost { color: var(--text-bright); border: 1px solid var(--ui-hair-gold); background: var(--ui-tint-gold); box-shadow: var(--ui-top-light); }
.btn-ghost:hover { border-color: var(--ui-hair-gold-strong); background: var(--ui-tint-gold-hover); color: var(--text-bright); }
.btn-quiet { color: var(--text-muted); border: 1px solid var(--ui-hair); background: rgba(255,255,255,0.03); }
.btn-quiet:hover { color: var(--text-bright); border-color: rgba(255,255,255,0.4); }
.btn-sm { min-height: var(--ui-target); padding: 0.45rem 0.95rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.8; }
.btn:focus-visible { border-radius: var(--ui-radius-control); outline-offset: 3px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--ui-target); height: var(--ui-target); border-radius: var(--ui-radius-control); border: 1px solid var(--ui-hair); color: var(--text-muted); transition: border-color var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease); }
.icon-btn:hover { color: var(--text-bright); border-color: var(--ui-hair-gold-strong); }

/* ---------- links: every link is a box (UI standard 2026-11-15) ---------- */
.link-box, .btn-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ui-target); padding: 8px 14px; border: 1px solid var(--ui-hair-gold); border-radius: var(--ui-radius-control); background: var(--ui-tint-gold); box-shadow: var(--ui-top-light); color: var(--text-bright); font-weight: 500; font-size: 15px; line-height: 1.25; text-decoration: none; transition: transform var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease); }
.link-box::after, .btn-link::after { content: "\2192"; color: var(--gold2); transition: transform var(--ui-fast) var(--ui-ease); }
.link-box[target="_blank"]::after, .link-box.is-external::after { content: "\2197"; }
.link-box[href^="mailto:"]::after, .link-box[href^="tel:"]::after, .link-box.no-arrow::after { content: none; }
.link-box:hover, .btn-link:hover { transform: translateY(-1px); border-color: var(--ui-hair-gold-strong); background: var(--ui-tint-gold-hover); box-shadow: var(--ui-top-light), 0 8px 20px rgba(0,0,0,0.28); color: var(--text-bright); }
.link-box:hover::after, .btn-link:hover::after { transform: translateX(3px); }
.link-box:active, .btn-link:active { transform: translateY(0); }
.link-box:focus-visible, .btn-link:focus-visible { border-radius: var(--ui-radius-control); }
.link-box.quiet { border-color: var(--ui-hair); background: rgba(255,255,255,0.03); }
.link-box.sm { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.link-box.block { display: flex; width: 100%; justify-content: space-between; }
.link-inline, .link, .prose a, main a:not([class]) { padding: 1px 6px; margin: 0 1px; border-radius: var(--ui-radius-inline); background: var(--ui-tint-gold); box-shadow: inset 0 0 0 1px var(--ui-hair-gold); color: var(--text-bright); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease); }
.link-inline:hover, .link:hover, .prose a:hover, main a:not([class]):hover { background: var(--ui-tint-gold-hover); box-shadow: inset 0 0 0 1px var(--ui-hair-gold-strong); color: var(--text-bright); }
a.link-box:visited, a.link-inline:visited { color: var(--text-bright); }
/* A short inline link inside a hint line stays in one piece: two half-boxes on two lines read as two links. */
.hint .link-inline, .muted .link-inline { white-space: nowrap; }
.nav-pill { display: inline-flex; align-items: center; min-height: var(--ui-target); padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; color: var(--text-muted); text-decoration: none; transition: color var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease); }
.nav-pill.points-pill { border-color: var(--ui-hair-gold); background: var(--ui-tint-gold); color: var(--gold); }
.nav-pill:hover { color: var(--text-bright); background: rgba(255,255,255,0.05); border-color: var(--ui-hair); }
.nav-pill[aria-current="page"] { color: var(--text-bright); background: var(--ui-tint-gold-hover); border-color: var(--ui-hair-gold-strong); }
@media (pointer: coarse) { .link-box, .btn-link, .nav-pill { min-height: var(--ui-target-touch); } }

/* ---------- cards and surfaces ---------- */
.card { background: var(--card-bg), var(--navy2); border: 1px solid var(--ui-hair); border-radius: var(--ui-radius-card); padding: var(--space-3); box-shadow: var(--ui-top-light), var(--shadow); }
@media (min-width: 640px) { .card { padding: var(--space-3) 1.5rem; } }
.card.is-action, a.card, .card-link, .quick, .reward, .resource, .feature-card, .kpi-link, .tool-card { border-color: var(--ui-hair-gold); }
.well, [data-depth="inset"] { background: var(--ui-well); border: 1px solid var(--line); box-shadow: inset 0 2px 5px rgba(0,0,0,0.3); border-radius: var(--ui-radius-control); }
.rule-gold { height: 1px; border: 0; background: linear-gradient(90deg, rgba(201,168,76,0.5), rgba(201,168,76,0) 70%); }
.card-tight { padding: var(--space-3); }
.card h3 + p, .card h2 + p { margin-top: 0.5rem; }
.card-link { display: block; transition: transform var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease); }
.reward .media.card-link:hover { transform: none; box-shadow: none; }
.news-list a.link-box::after { content: none; }
.card-link:hover, a.card:hover { transform: translateY(-2px); border-color: var(--ui-hair-gold-strong); box-shadow: var(--ui-top-light), var(--shadow-gold); }
.card-link::after { content: none; }
.card-link .open-cue { display: inline-flex; align-items: center; gap: 6px; margin-top: 0.75rem; font-weight: 500; color: var(--gold2); }
.card-link .open-cue::after { content: "\2192"; transition: transform var(--ui-fast) var(--ui-ease); }
.card-link:hover .open-cue::after { transform: translateX(3px); }
.divider { height: 1px; background: rgba(255,255,255,0.08); margin: var(--space-3) 0; border: 0; }
.icon-chip { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy4), var(--navy3)); border: 1px solid var(--goldborder); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); flex-shrink: 0; }
.icon-chip svg { width: 30px; height: 30px; }
.icon-chip.lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-chip.lg svg { width: 38px; height: 38px; }

/* Photo hero: a rounded photo with a navy veil so white and gold text read on it. */
.photo-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); min-height: 260px; display: flex; align-items: flex-end; isolation: isolate; }
.photo-hero picture, .photo-hero > img { position: absolute; inset: 0; z-index: -2; }
.photo-hero img { width: 100%; height: 100%; object-fit: cover; }
.photo-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,27,42,0.94) 0%, rgba(13,27,42,0.80) 38%, rgba(13,27,42,0.30) 75%, rgba(13,27,42,0.12) 100%), linear-gradient(0deg, rgba(13,27,42,0.55), rgba(13,27,42,0) 55%); }
.photo-hero .hero-body { padding: var(--space-5); max-width: 640px; }
.photo-hero h1, .photo-hero h2 { margin-top: 0.4rem; }
.photo-hero p { margin-top: 0.75rem; color: var(--text-muted); }
.photo-hero .row { margin-top: var(--space-3); }
@media (max-width: 639px) {
  .photo-hero { min-height: 300px; }
  .photo-hero::after { background: linear-gradient(0deg, rgba(13,27,42,0.96) 0%, rgba(13,27,42,0.84) 55%, rgba(13,27,42,0.66) 100%); }   /* 2026-10-22: eyebrow and title stay readable on bright photos */
  .photo-hero .hero-body { padding: var(--space-3); }
}

/* Balance hero on Home */
.balance { display: flex; flex-direction: column; gap: 0.25rem; }
.balance .figure { font-size: clamp(2.6rem, 4vw + 1rem, 3.8rem); line-height: 1; }
.balance .figure small { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dim); margin-left: 0.4rem; font-weight: 500; }
.stats { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-tile { background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: var(--space-2) var(--space-3); }
.stat-tile .k { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-tile .v { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-bright); margin-top: 0.2rem; font-variant-numeric: lining-nums; }

/* Quick links */
.quick { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); }
.quick h3 { font-size: 1.08rem; }
.quick p { font-size: 0.92rem; margin-top: 0.3rem; }

/* ---------- tables, badges, alerts ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th { text-align: left; font-weight: 500; color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--ui-hair); }
td { padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; color: var(--text-muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.badge { display: inline-block; white-space: nowrap; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; text-transform: capitalize; border: 1px solid; }
.badge.pending { color: var(--warn); border-color: rgba(255,178,125,0.4); }
.badge.approved { color: var(--gold); border-color: rgba(201,168,76,0.45); }
.badge.shipped { color: var(--positive); border-color: rgba(79,208,138,0.45); }
.badge.cancelled { color: var(--text-dim); border-color: rgba(255,255,255,0.2); }
.badge.draft { color: var(--warn); border-color: rgba(255,178,125,0.4); text-transform: none; }
.alert { display: none; padding: 0.8rem 1rem 0.8rem 2.6rem; position: relative; border-radius: var(--ui-radius-control); font-size: 0.93rem; margin-bottom: var(--space-2); }
.alert::before { position: absolute; left: 0.95rem; top: 0.8rem; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.72rem; font-weight: 700; line-height: 1; }
.alert.err::before { content: '!'; background: var(--negative); color: var(--navy); }
.alert.ok::before { content: '\2713'; background: var(--positive); color: var(--navy); }
.alert.info::before { content: 'i'; background: var(--gold); color: var(--navy); }
.alert.show { display: block; }
.alert.err { background: rgba(224,122,107,0.12); border: 1px solid rgba(224,122,107,0.4); color: var(--text); }
.alert.ok { background: rgba(79,208,138,0.10); border: 1px solid rgba(79,208,138,0.4); color: var(--text); }
.alert.info { display: block; background: var(--golddim); border: 1px solid var(--goldborder); color: var(--text); }
.empty { color: var(--text-dim); padding: var(--space-2) 0; }
.spinner { color: var(--text-dim); padding: var(--space-4) 0; text-align: center; }
/* Weekly QA 2026-10-29: the content area holds a full screen while a page loads, so the footer does not
   sit under the header and then jump down when the data arrives (layout shift was 0.67-0.96 on Home,
   Rewards and Web services; target is under 0.1). */
main#main { min-height: 100vh; }
.spinner::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 0.6rem; vertical-align: -3px; border: 2px solid rgba(201,168,76,0.3); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--space-2); }
.field { display: grid; gap: 0.4rem; align-content: start; }
label, .label { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.hint { font-size: 0.875rem; color: var(--text-muted); }
.field-error, .field .error { display: flex; gap: 0.4rem; align-items: flex-start; font-size: 0.875rem; color: var(--negative); }
.field-error::before, .field .error::before { content: '!'; flex-shrink: 0; width: 1rem; height: 1rem; margin-top: 0.15rem; display: grid; place-items: center; border-radius: 50%; background: var(--negative); color: var(--navy); font-size: 0.7rem; font-weight: 700; }
input, select, textarea, .input { font: inherit; font-size: 1rem; color: var(--text); background: var(--ui-well); border: 1px solid var(--control-border); border-radius: var(--ui-radius-control); padding: 0.75rem 0.9rem; min-height: var(--ui-field-h); width: 100%; box-shadow: var(--ui-inset); transition: border-color var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease); }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,0.5); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--gold2); box-shadow: var(--ui-inset), var(--ui-ring); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--negative); box-shadow: var(--ui-inset), var(--ui-ring-bad); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; }
input[readonly] { border-style: dashed; }
input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; accent-color: var(--gold); box-shadow: none; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible, input[type="range"]:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; box-shadow: none; }
.option:has(input:focus-visible), .pick:has(input:focus-visible) { border-color: var(--gold2); box-shadow: 0 0 0 1px var(--gold2); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--navy3) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold2) 50%), linear-gradient(135deg, var(--gold2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.form-row { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.money { position: relative; }
.money::before { content: '$'; position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.money input { padding-left: 1.75rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; color: var(--text-muted); }
.check input { margin-top: 0.25rem; }

/* ---------- sign-in ---------- */
.signin { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-items: stretch; padding-block: var(--space-5) var(--space-8); }
@media (min-width: 960px) { .signin { grid-template-columns: 1.15fr 1fr; } }
/* Phones and tablets: the sign-in form comes first; the welcome panel follows it (it has no controls, so tab order is unchanged). */
@media (max-width: 959px) { .signin .signin-card { order: -1; } .signin .photo-hero { min-height: 320px; } }
.signin .photo-hero { min-height: 420px; }
.signin-card { align-self: center; max-width: 460px; width: 100%; justify-self: center; }
.signin-card h1, .signin-card h2 { font-size: 2rem; }
.feature-list { display: grid; gap: 0.8rem; margin-top: var(--space-3); }
.feature-list li { display: flex; gap: 0.7rem; align-items: center; color: var(--text); font-weight: 500; }
.feature-list svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ---------- rewards store ---------- */
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--ui-target); padding: 0.45rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--ui-hair); background: rgba(255,255,255,0.03); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: border-color var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease); }
.chip:hover { border-color: var(--ui-hair-gold-strong); color: var(--text-bright); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ui-tint-gold-hover); border-color: var(--ui-hair-gold-strong); color: var(--text-bright); }
.chip[aria-pressed="true"]::before, .chip.is-on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold2); }
/* The count inside a selected chip follows the chip's navy text (it was 72% white on gold: 1.85:1). */
.chip[aria-pressed="true"] .muted { color: inherit; opacity: 0.8; }
.toolbar { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; margin: var(--space-4) 0 var(--space-3); }
.toolbar select { width: auto; min-width: 210px; }
.reward-grid.fit { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.reward-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.reward { display: flex; flex-direction: column; background: var(--navy2); border: 1px solid var(--ui-hair-gold); border-radius: var(--ui-radius-card); overflow: hidden; box-shadow: var(--ui-top-light), var(--shadow); transition: transform var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease); }
.reward:hover { transform: translateY(-3px); border-color: var(--ui-hair-gold-strong); box-shadow: var(--ui-top-light), var(--shadow-gold); }
.reward .media { position: relative; aspect-ratio: 4 / 3; background: var(--navy3); overflow: hidden; }
.reward .media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.reward:hover .media img { transform: scale(1.035); }
.reward .media .tag { position: absolute; left: 12px; top: 12px; padding: 0.3rem 0.65rem; border-radius: var(--radius-pill); background: rgba(13,27,42,0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--goldborder); }
.reward .media .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.reward .media .fallback svg { width: 72px; height: 72px; }
.reward .body { display: flex; flex-direction: column; flex: 1; padding: var(--space-3); gap: 0.4rem; }
.reward h3 { font-size: 1.12rem; }
.reward .desc { font-size: 0.9rem; flex: 1; }
.reward .foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; }
.reward .cost { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); font-variant-numeric: lining-nums; }
.reward .cost small { font-family: var(--font-body); font-size: 0.78rem; color: var(--text-dim); margin-left: 0.2rem; }
.progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.need { font-size: 0.82rem; color: var(--text-dim); }
.cat-banner { margin-bottom: var(--space-4); }
.cat-banner.photo-hero { min-height: 220px; }

/* Redeem detail */
.detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy3); border: 1px solid var(--border); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.summary-table td { padding: 0.55rem 0; }

/* Confirmation steps */
.steps { display: grid; gap: var(--space-2); text-align: left; }
.step { display: flex; gap: var(--space-2); align-items: flex-start; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--golddim); border: 1px solid rgba(201,168,76,0.45); color: var(--gold); display: grid; place-items: center; font-weight: 600; flex-shrink: 0; }

/* ---------- learn ---------- */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.article-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.article-card { display: flex; flex-direction: column; gap: 0.75rem; padding: var(--space-3); height: 100%; }
.article-card .meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.8rem; color: var(--text-dim); flex-wrap: wrap; }
.article-card h3 { font-size: 1.16rem; }
.article-card p { font-size: 0.92rem; flex: 1; }
.track-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.tip-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tip { padding: var(--space-3); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-left: 3px solid var(--gold); font-size: 0.94rem; color: var(--text-muted); }
.tip .track-label { display: block; margin-bottom: 0.35rem; }
.tip-feature { border-left: 3px solid var(--gold); }
.tip-feature blockquote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--text-bright); margin-top: 0.5rem; }
.resource-list { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.resource { display: block; padding: var(--space-3); border-radius: var(--ui-radius-control); background: var(--navy2); border: 1px solid var(--ui-hair-gold); box-shadow: var(--ui-top-light); transition: border-color var(--ui-fast) var(--ui-ease), transform var(--ui-fast) var(--ui-ease); }
.resource:hover { border-color: var(--ui-hair-gold-strong); transform: translateY(-2px); }
.resource .org { font-size: 0.78rem; color: var(--text-dim); }
.resource h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-top: 0.2rem; }
.resource p { font-size: 0.88rem; margin-top: 0.35rem; }
.resource .url { font-size: 0.85rem; color: var(--gold2); font-weight: 500; margin-top: 0.5rem; display: block; overflow-wrap: anywhere; }

/* Article page */
.article-head { max-width: 760px; }
.article-head .meta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; color: var(--text-dim); font-size: 0.88rem; margin-top: var(--space-2); }
.prose { max-width: 720px; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ''; position: absolute; left: 0.2rem; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45rem; }
.prose strong { color: var(--text-bright); }
.prose .takeaways { background: var(--navy2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); margin-top: 2.2rem; }
.prose .takeaways h2 { margin-top: 0; font-size: 1.25rem; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.sources { font-size: 0.85rem; }
.sources li { color: var(--text-dim); overflow-wrap: anywhere; }
.sources li + li { margin-top: 0.4rem; }
.review-note { margin-bottom: var(--space-3); }

/* ---------- financial wellness ---------- */
.disclaimer { font-size: 0.86rem; color: var(--text-dim); border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-2); margin-top: var(--space-4); }
.disclaimer strong { color: var(--text-muted); }
.disclaimer-box { background: var(--navy2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); font-size: 0.9rem; }
.disclaimer-box p { font-size: 0.9rem; }
.disclaimer-box p + p, .disclaimer-box h2 + p { margin-top: 0.6rem; }
.tool-card { display: flex; flex-direction: column; gap: 0.75rem; padding: var(--space-4); height: 100%; }
.tool-card p { flex: 1; font-size: 0.95rem; }
.tool-card .btn { align-self: flex-start; }
.tool-card.featured { border-color: rgba(201,168,76,0.45); box-shadow: var(--shadow-gold); }

/* Stepper */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-bottom: var(--space-4); counter-reset: step; }
.stepper li { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.stepper li::before { content: ''; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.stepper li.done::before { background: rgba(201,168,76,0.55); }
.stepper li.current::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.stepper li.current { color: var(--gold); }
@media (max-width: 639px) { .stepper li span { display: none; } .stepper li.current span { display: inline; } }
.q { padding: var(--space-3) 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.q:last-of-type { border-bottom: 0; }
.q legend, .q .q-title { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--text-bright); line-height: 1.45; padding: 0; }
.q .q-help { font-size: 0.86rem; color: var(--text-dim); margin-top: 0.35rem; }
.options { display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.option { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.02); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); color: var(--text-muted); font-size: 0.96rem; }
.option:hover { border-color: rgba(201,168,76,0.45); }
.option input { margin-top: 0.22rem; flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--gold); background: var(--golddim); color: var(--text-bright); }
.option-grid { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-top: 0.9rem; }
.q-error { color: var(--negative); font-size: 0.86rem; margin-top: 0.5rem; }
.q.has-error .options .option { border-color: rgba(224,122,107,0.45); }
.wizard-nav { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.goal-rows { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.goal-row { display: grid; gap: var(--space-2); grid-template-columns: 1.4fr 1fr 0.9fr 1fr auto; align-items: end; padding: var(--space-2); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 859px) { .goal-row { grid-template-columns: 1fr 1fr; } .goal-row .remove { grid-column: 1 / -1; justify-self: start; } }

/* Results */
.result-hero { text-align: left; }
.profile-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: var(--space-3); }
.profile-scale span { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.1); }
.profile-scale span.on { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.profile-scale-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 0.72rem; color: var(--text-dim); margin-top: 0.4rem; }
.profile-scale-labels span.on { color: var(--gold); font-weight: 600; }
.meter { margin-top: var(--space-2); }
.meter .row-between { font-size: 0.88rem; color: var(--text-muted); }
.meter .progress { height: 8px; margin-top: 0.35rem; }
.priority-list { display: grid; gap: var(--space-2); counter-reset: pri; }
.priority { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: start; padding: var(--space-3); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.priority .status { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.priority .status.ok { background: rgba(79,208,138,0.14); color: var(--positive); border: 1px solid rgba(79,208,138,0.45); }
.priority .status.work { background: var(--golddim); color: var(--gold); border: 1px solid rgba(201,168,76,0.45); }
.priority .status.na { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid rgba(255,255,255,0.15); }
.priority h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.priority p { font-size: 0.92rem; margin-top: 0.25rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.kv > div { background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 0.8rem 1rem; }
.kv .k { font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; }
.kv .v { font-family: var(--font-display); font-size: 1.35rem; color: var(--text-bright); margin-top: 0.2rem; font-variant-numeric: lining-nums; }
.kv .v.gold { color: var(--gold); }
.chart-wrap { margin-top: var(--space-3); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: var(--space-2); }
.chart-wrap svg { width: 100%; height: auto; }
.chart-legend { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; padding-left: 0.4rem; }
.chart-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 0.4rem; }
.chart-legend i.proj { background: var(--gold); }
.chart-legend i.band { background: rgba(201,168,76,0.3); height: 10px; }
.chart-legend i.need { background: var(--text-dim); }
.assumptions { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: var(--space-3); }
.range-field output { font-weight: 600; color: var(--gold); font-variant-numeric: lining-nums; }
input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--gold); }
.goal-result { padding: var(--space-3); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.goal-result + .goal-result { margin-top: var(--space-2); }
.goal-result h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.goal-result .row-between { margin-top: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }
.goal-result .progress { margin-top: 0.6rem; }
.note-list li { position: relative; padding-left: 1.4rem; color: var(--text-muted); font-size: 0.95rem; }
.note-list li::before { content: ''; position: absolute; left: 0.2rem; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.note-list li + li { margin-top: 0.6rem; }
.calc-tabs { margin-bottom: var(--space-3); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.07); padding: var(--space-4) 0 var(--space-5); margin-top: var(--space-6); font-size: 0.86rem; color: var(--text-dim); }
.site-footer .container { display: flex; gap: var(--space-3); justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer a { font-size: 0.9rem; }
.site-footer .brand img.logo-foot { display: block; height: 72px; width: auto; max-width: 160px; }
.site-footer nav { align-items: center; }
.site-footer p { color: var(--text-dim); font-size: 0.86rem; }

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .link-box:hover, .btn:hover, .card-link:hover, .reward:hover { transform: none; }
}
@media print {
  body { background: var(--paper); color: var(--ink); }
  .site-header, .site-footer, .dev-ribbon, .no-print, .wizard-nav, .assumptions input { display: none !important; }
  .card, .priority, .goal-result, .kv div, .chart-wrap, .disclaimer-box { background: var(--paper); border-color: var(--line-light); box-shadow: none; color: var(--ink); }
  h1, h2, h3, h4, strong, .kv .v { color: var(--ink); }
  p, li, td, .muted, .hint, .disclaimer, .note-list li { color: var(--ink-muted); }
  .eyebrow, .figure, .gold, .kv .v.gold, .track-label { color: var(--gold-ink); }
  a { color: var(--ink); }
}

/* ---------- my website ---------- */
.site-hero { display: grid; gap: var(--space-3); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .site-hero { grid-template-columns: 1fr auto; } }
.site-hero .domain { font-family: var(--font-display); font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem); color: var(--text-bright); overflow-wrap: anywhere; line-height: 1.15; margin-top: 0.3rem; }
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; border: 1px solid; }
.status-pill.up { color: var(--positive); border-color: rgba(79,208,138,0.45); background: rgba(79,208,138,0.08); }
.status-pill.down { color: var(--negative); border-color: rgba(224,122,107,0.45); background: rgba(224,122,107,0.08); }
.status-pill.unknown { color: var(--text-dim); border-color: rgba(255,255,255,0.2); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(79,208,138,0.15); }
.svc-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.svc-chip { padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; color: var(--gold); background: var(--golddim); border: 1px solid var(--goldborder); }
.big-stats { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.big-stat { padding: var(--space-4) var(--space-3); border-radius: var(--radius-lg); background: var(--card-bg), var(--navy2); border: 1px solid var(--border); box-shadow: var(--shadow); }
.big-stat .k { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.big-stat .k svg { width: 26px; height: 26px; }
.big-stat .v { font-family: var(--font-display); font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3.1rem); color: var(--gold); line-height: 1.05; margin-top: 0.6rem; font-variant-numeric: lining-nums; }
.big-stat .s { font-size: 0.86rem; color: var(--text-dim); margin-top: 0.4rem; }
.big-stat .s .up { color: var(--positive); font-weight: 600; }
.chart .bar { fill: url(#bar-grad); }
.chart .bar-label, .chart .axis-label { fill: rgba(255,255,255,0.62); font-family: var(--font-body); font-size: 11px; }
.chart .grid-line { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--positive); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-dot { fill: var(--navy2); stroke: var(--positive); stroke-width: 2; }
.chart .proj { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; }
.chart .proj-band { fill: rgba(201,168,76,0.16); stroke: none; }
.chart .need { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart polyline { fill: none; }
.chart-legend i.bars { background: var(--gold); height: 10px; }
.chart-legend i.line { background: var(--positive); }
.score { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.score-ring { width: 120px; height: 120px; flex-shrink: 0; }
.score-ring .track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 10; }
.score-ring .fill { fill: none; stroke: url(#ring-grad); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.score-ring text { fill: var(--text-bright); font-family: var(--font-display); font-size: 26px; text-anchor: middle; }
.score-ring text.small { font-family: var(--font-body); font-size: 11px; fill: rgba(255,255,255,0.62); }
.check-list { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: var(--space-3); }
.check-item { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.check-item .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.check-item.pass .mark { background: rgba(79,208,138,0.15); color: var(--positive); border: 1px solid rgba(79,208,138,0.45); }
.check-item.todo .mark { background: var(--golddim); color: var(--gold); border: 1px solid rgba(201,168,76,0.45); }
.check-item strong { font-size: 0.94rem; display: block; }
.check-item span { font-size: 0.83rem; color: var(--text-dim); overflow-wrap: anywhere; }
.bar-list { display: grid; gap: 0.75rem; }
.bar-row .row-between { font-size: 0.92rem; }
.bar-row .progress { height: 8px; margin-top: 0.35rem; }
.bar-row .kind { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-left: 0.4rem; }
.geo-list { display: grid; gap: 0.6rem; }
.geo-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); align-items: center; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.geo-row .q { color: var(--text); font-weight: 500; }
.geo-row .m { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.15rem; }
.badge.cited { color: var(--positive); border-color: rgba(79,208,138,0.45); text-transform: none; }
.badge.mentioned { color: var(--gold); border-color: rgba(201,168,76,0.45); text-transform: none; }
.badge.not_found { color: var(--text-dim); border-color: rgba(255,255,255,0.2); text-transform: none; }
.feature-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature { display: flex; gap: var(--space-2); align-items: flex-start; }
.feature h3 { font-size: 1.05rem; }
.feature p { font-size: 0.92rem; margin-top: 0.3rem; }

/* ---------- section sub-tabs (Rewards, Wealth & Growth, Web services) ---------- */
.subnav-wrap { padding-top: var(--space-3); }
.subnav { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a, .subnav button { flex-shrink: 0; display: inline-flex; align-items: center; min-height: var(--ui-target); padding: 0.45rem 0.95rem; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); border: 1px solid transparent; border-radius: var(--radius-pill); white-space: nowrap; transition: color var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease); }
.subnav a:hover, .subnav button:hover { color: var(--text-bright); background: rgba(255,255,255,0.05); border-color: var(--ui-hair); }
.subnav a[aria-current="page"], .subnav button[aria-selected="true"] { color: var(--text-bright); background: var(--ui-tint-gold-hover); border-color: var(--ui-hair-gold-strong); }
.subnav-wrap + .container.page, .subnav-wrap + .container .page { padding-top: var(--space-4); }
.wallet-card { display: grid; gap: 0.6rem; padding: var(--space-3); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.wallet-card .row-between strong { font-size: 1.02rem; }
.wallet-card .figure { font-size: 1.5rem; }
.wallet-card.finco { border-color: rgba(201,168,76,0.45); background: linear-gradient(160deg, var(--navy4), var(--navy3)); }
.rate-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.pill-note { display: inline-block; font-size: 0.75rem; padding: 0.15rem 0.55rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.18); color: var(--text-dim); }
.drift-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.drift-bar .cur { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.drift-bar .tgt { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-bright); }
.trade-buy { color: var(--positive); font-weight: 600; }
.trade-sell { color: var(--negative); font-weight: 600; }

/* ---------- admin console (2026-10-08) ---------- */
.money { display: block; }
.nowrap { white-space: nowrap; }
.stat-tile .v.gold { color: var(--gold); }
.kpi-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr)); margin-bottom: var(--space-4); }
.kpi { position: relative; display: block; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--card-bg), var(--navy2); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, rgba(201,168,76,0.0), rgba(201,168,76,0.55), rgba(201,168,76,0.0)); opacity: 0.6; }
.kpi .k { font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.kpi .v { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1vw + 1.1rem, 2.1rem); color: var(--text-bright); margin-top: 0.35rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.kpi .s { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.35rem; line-height: 1.4; }
.kpi:nth-child(2) .v { color: var(--gold); }
.kpi-link { transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur); }
.kpi-link:hover { transform: translateY(-2px); border-color: var(--ui-hair-gold-strong); box-shadow: var(--shadow-gold); }
.kpi-link .s::after { content: ' \2192'; color: var(--gold); }
.admin-tabs { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: var(--space-3); }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--ui-target); padding: 0.45rem 1rem; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); border: 1px solid transparent; border-radius: var(--radius-pill); white-space: nowrap; transition: color var(--ui-fast) var(--ui-ease), background-color var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease); }
.admin-tab:hover { color: var(--text-bright); background: rgba(255,255,255,0.05); border-color: var(--ui-hair); }
.admin-tab[aria-selected="true"] { color: var(--text-bright); background: var(--ui-tint-gold-hover); border-color: var(--ui-hair-gold-strong); }
.admin-tab .count:empty { display: none; }
.admin-tab .count { min-width: 1.5rem; padding: 0.05rem 0.45rem; border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-align: center; font-variant-numeric: lining-nums; }
.admin-tab .count.alert-count { background: var(--gold); color: var(--navy); }
.list-toolbar { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--space-3); }
.search { flex: 1 1 280px; max-width: 420px; position: relative; display: block; }
.search input { padding-left: 2.4rem; }
.search::before { content: ''; position: absolute; left: 0.95rem; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: 2px solid var(--text-dim); border-radius: 50%; pointer-events: none; }
.search::after { content: ''; position: absolute; left: 1.72rem; top: 50%; width: 6px; height: 2px; margin-top: 3px; background: var(--text-dim); transform: rotate(45deg); pointer-events: none; }
.data-table { min-width: 680px; }
.data-table.compact { min-width: 480px; }
.data-table th { white-space: nowrap; }
.data-table td:first-child { min-width: 250px; }
.data-table.compact td:first-child { min-width: 0; }
.data-table .trunc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table td { vertical-align: middle; }
.data-table.compact td { padding: 0.6rem 0.75rem; vertical-align: top; }
.data-table tbody tr { transition: background var(--dur-fast); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.data-table tr.row-link { cursor: pointer; position: relative; }
.data-table tr.row-link .who-name::after { content: ''; position: absolute; inset: 0; }
.data-table tr.row-link:focus-within { outline: 2px solid var(--gold2); outline-offset: -2px; }
.data-table tr.row-link .who-name:focus-visible { outline: none; }
.data-table tr.is-muted td { opacity: 0.55; }
.who { display: flex; gap: 0.8rem; align-items: center; min-width: 0; }
.who-name { color: var(--text-bright); font-weight: 600; }
.who-name:hover { color: var(--gold); }
.who-sub { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.15rem; overflow-wrap: break-word; }
.badge.plain { text-transform: none; }
.avatar { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--gold); background: linear-gradient(160deg, var(--navy4), var(--navy3)); border: 1px solid rgba(201,168,76,0.35); letter-spacing: 0.02em; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.35rem; }
.thumb { width: 52px; height: 39px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); background: var(--navy3); }
.thumb.icon { display: grid; place-items: center; }
.empty-state { text-align: center; padding: var(--space-5) var(--space-3); }
.empty-state p { margin-top: 0.5rem; }
.crumbs { margin-bottom: var(--space-2); }
.merchant-head { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.merchant-head h2 { margin-top: 0.2rem; }
.merchant-head .who { align-items: flex-start; }
.head-actions { justify-content: flex-end; }
.sec-list { display: grid; gap: 0.6rem; }
.sec-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: var(--space-2); align-items: center; padding: 0.7rem 0.9rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.sec-row select { padding-block: 0.55rem; font-size: 0.88rem; }
@media (max-width: 479px) { .sec-row { grid-template-columns: 1fr; } }
.site-mini-list { display: grid; gap: 0.6rem; }
.site-mini { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.note-feed, .event-feed { display: grid; gap: 0.6rem; margin-top: var(--space-2); }
.note-feed li, .event-feed li { padding: 0.7rem 0.9rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.note-feed p { color: var(--text); font-size: 0.93rem; white-space: pre-wrap; }
.event-feed strong { display: block; font-size: 0.9rem; font-weight: 500; }
.disclose { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.75rem; margin-top: 0.75rem; }
.disclose summary { cursor: pointer; font-weight: 600; font-size: 0.93rem; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary::after { content: '+'; color: var(--gold); font-size: 1.1rem; font-weight: 500; }
.disclose[open] summary::after { content: '–'; }
.card > .disclose:first-of-type { margin-top: var(--space-2); }
.red-card .disclose { border-top: 0; padding-top: 0; margin-top: 0.5rem; }
.red-card .disclose summary { font-size: 0.85rem; color: var(--text-muted); justify-content: flex-start; gap: 0.4rem; }
.btn-danger { color: var(--text-bright); border: 1px solid rgba(224,122,107,0.6); background: rgba(224,122,107,0.12); }
.btn-danger:hover { background: rgba(224,122,107,0.22); border-color: var(--negative); }
.red-list { display: grid; gap: var(--space-2); }
.red-card { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); padding: var(--space-3); border-radius: var(--radius-lg); background: var(--navy3); border: 1px solid rgba(255,255,255,0.07); }
@media (min-width: 900px) { .red-card { grid-template-columns: minmax(0, 1fr) 300px; } }
.red-main { min-width: 0; }
.red-main .who-sub { overflow-wrap: anywhere; }
.red-card.is-closed { opacity: 0.7; }
.red-title { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.red-title strong { font-size: 1.02rem; color: var(--text-bright); }
.red-meta { font-size: 0.86rem; color: var(--text-muted); margin-top: 0.35rem; line-height: 1.6; }
.red-notes { font-size: 0.88rem; margin-top: 0.5rem; white-space: pre-wrap; padding: 0.5rem 0.75rem; border-left: 2px solid var(--goldborder); background: rgba(255,255,255,0.02); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.red-actions { display: grid; gap: 0.6rem; align-content: start; }
.red-actions .field { gap: 0.3rem; }
.red-actions input, .red-actions select { padding-block: 0.55rem; font-size: 0.9rem; }
.red-actions .btn { justify-self: start; }
.badge.req { color: var(--accent); border-color: rgba(201,168,76,0.45); background: var(--golddim); text-transform: none; }
.badge.kind { color: var(--text-muted); border-color: rgba(255,255,255,0.2); text-transform: none; }
.pick-list { display: grid; gap: 0.35rem; max-height: 260px; overflow-y: auto; padding: 0.4rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid var(--field-border); }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.92rem; color: var(--text-muted); }
.pick:hover { background: rgba(255,255,255,0.04); }
.pick:has(input:checked) { background: var(--golddim); color: var(--text-bright); }
.pick-bal { font-size: 0.82rem; color: var(--text-dim); font-variant-numeric: lining-nums; }
.dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; padding: var(--space-4); border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card-bg), var(--navy2); color: var(--text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(13,27,42,0.74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog h2 { margin-top: 0.3rem; }
.dialog-close { float: right; margin: -0.4rem -0.4rem 0 var(--space-2); }

/* ---------- admin "view as merchant" bar ---------- */
.preview-bar { position: sticky; top: var(--header-h); z-index: 45; background: linear-gradient(90deg, rgba(201,168,76,0.22), rgba(201,168,76,0.12)); border-bottom: 1px solid rgba(201,168,76,0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.preview-inner { display: flex; gap: var(--space-2); align-items: center; padding-block: 0.55rem; font-size: 0.92rem; color: var(--text); }
.preview-inner > span:nth-child(2) { flex: 1; min-width: 0; }
.preview-inner .muted { margin-left: 0.5rem; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.22); flex-shrink: 0; }
@media (max-width: 639px) { .preview-inner { flex-wrap: wrap; } .preview-inner .muted { display: block; margin-left: 0; } }
@media print { .preview-bar { display: none !important; } }

/* ---------- Home, store and requests polish (2026-10-08) ---------- */
.need { white-space: nowrap; }
.home-pair { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .home-pair { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.activity { display: grid; }
.activity li { display: flex; gap: var(--space-2); align-items: baseline; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.activity li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity li strong { display: block; font-weight: 500; font-size: 0.95rem; }
.activity li .muted { font-size: 0.82rem; }
.activity li > span { font-family: var(--font-display); font-size: 1.1rem; font-variant-numeric: lining-nums; white-space: nowrap; }
.request-promo { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border-color: rgba(201,168,76,0.3); background: linear-gradient(160deg, rgba(201,168,76,0.10), rgba(201,168,76,0.02) 60%), var(--navy2); }
.request-promo h3 { font-size: 1.12rem; margin-top: 0.2rem; }
.request-promo p { font-size: 0.92rem; margin-top: 0.35rem; }
.request-promo .btn-link { margin-top: 0.35rem; }
.quick-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.quick-grid .quick { flex-direction: column; }
.quick-grid .quick { height: 100%; }

.featured { margin-bottom: var(--space-5); }
.featured-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature-card { position: relative; display: block; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); box-shadow: var(--shadow-lg); isolation: isolate; transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.feature-card:hover { transform: translateY(-3px); border-color: var(--ui-hair-gold-strong); box-shadow: var(--shadow-gold), var(--shadow-lg); }
.feature-card picture, .feature-card > img { position: absolute; inset: 0; z-index: -2; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.feature-card:hover img { transform: scale(1.04); }
.feature-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,27,42,0.97) 0%, rgba(13,27,42,0.92) 30%, rgba(13,27,42,0.55) 50%, rgba(13,27,42,0) 72%); }
.feature-body .eyebrow { text-shadow: 0 1px 6px rgba(13,27,42,0.9); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-3); }
.feature-body h3 { font-size: 1.3rem; margin-top: 0.25rem; }
.feature-body .foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.6rem; }
.feature-body .cost { font-family: var(--font-display); font-size: 1.45rem; color: var(--gold); font-variant-numeric: lining-nums; }
.feature-body .cost small { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted); margin-left: 0.25rem; }
.feature-body .need { color: var(--text-muted); }
.request-tile { border-style: dashed; border-color: rgba(201,168,76,0.45); background: linear-gradient(160deg, rgba(201,168,76,0.08), rgba(201,168,76,0.0) 70%), var(--navy2); }
.request-tile-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: var(--space-4) var(--space-3); height: 100%; justify-content: center; }
.request-tile-body p { font-size: 0.92rem; }

.request-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.is-preview .request-summary { top: calc(var(--header-h) + 64px); }
.mini-steps { display: grid; gap: 0.7rem; counter-reset: ms; margin-bottom: var(--space-2); }
.mini-steps li { position: relative; padding-left: 2.1rem; font-size: 0.9rem; color: var(--text-muted); counter-increment: ms; }
.mini-steps li::before { content: counter(ms); position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 600; color: var(--gold); background: var(--golddim); border: 1px solid rgba(201,168,76,0.45); }
.mini-steps strong { color: var(--text); }
.confirm-card { max-width: 760px; margin-inline: auto; }
.confirm-card h1 { margin-top: 0.35rem; }
.confirm-card .icon-chip { margin-bottom: var(--space-2); }

/* ---------- password reset (2026-10-09) ---------- */
.small-link { font-size: 0.875rem; }
.narrow-page { display: grid; place-items: start center; }
.narrow-page .signin-card { margin-top: var(--space-4); }

/* ---------- processing (2026-10-09) ---------- */
.proc-stats .big-stat .v { font-size: clamp(2rem, 2vw + 1.1rem, 2.7rem); }
.chg { font-weight: 600; font-variant-numeric: lining-nums; }
.chg.up { color: var(--positive); }
.chg.down { color: var(--negative); }
.chg.flat { color: var(--text-muted); }
.stat-tile .s { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.3rem; }
.proc-chart { color: var(--gold); }
.proc-table tfoot td { border-top: 1px solid rgba(255,255,255,0.12); color: var(--text); font-weight: 500; }
.empty-proc { max-width: 760px; }
.empty-proc h2 { margin-top: var(--space-2); }
.proc-mini { display: block; padding: var(--space-3); }
.proc-mini-row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.4rem; flex-wrap: wrap; }
.proc-mini .figure { font-size: 2rem; line-height: 1.1; }
.proc-mini p { font-size: 0.9rem; margin-top: 0.3rem; }
.proc-mini .btn-link { margin-top: 0.4rem; }

/* ---------- what's new (2026-10-09) ---------- */
.update-list { display: grid; gap: var(--space-3); }
.update-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.update-card h2 { font-size: 1.35rem; margin-top: 0.5rem; }
.update-card p { margin-top: 0.4rem; max-width: 70ch; }
.update-card.is-internal { border-style: dashed; border-color: rgba(255,178,125,0.45); }
@media (max-width: 559px) { .update-card { grid-template-columns: 1fr; } }
.news-mini { padding: var(--space-3); }
.news-list { display: grid; gap: 0.25rem; margin-top: 0.6rem; }
.news-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.6rem; margin: 0 -0.6rem; border-radius: var(--ui-radius-control); transition: background-color var(--ui-fast) var(--ui-ease); }
.news-list a:hover { background: rgba(255,255,255,0.04); }
.news-list strong { display: block; font-size: 0.95rem; }
.news-list .muted { display: block; font-size: 0.84rem; margin-top: 0.15rem; }
.icon-chip.sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-chip.sm svg { width: 22px; height: 22px; }
.now-next .card.planned { border-style: dashed; border-color: rgba(201,168,76,0.45); }

/* ---------- terms, about, sign-in link (2026-10-15) ---------- */
.terms-card { max-width: 760px; width: 100%; }
.terms-prose { font-size: 1rem; max-width: none; }
.terms-prose h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.terms-prose p, .terms-prose li { line-height: 1.65; }
.terms-prose ul { list-style: none; padding-left: 0; }
.terms-prose ul li { position: relative; padding-left: 1.4rem; }
.terms-prose ul li::before { content: ''; position: absolute; left: 0.2rem; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.who-line { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid rgba(255,255,255,0.08); }
@media print { .terms-card .form, .terms-card .divider:last-of-type, #msg { display: none !important; } }

/* 2026-10-20: headings above every Home section, "Your website at a glance", Learn disclaimer at the top, tips fold. */
.col-head { font-size: clamp(1.3rem, 0.9vw + 0.95rem, 1.6rem); margin: 0 0 var(--space-2); }
.col-head-row { align-items: baseline; margin-bottom: var(--space-2); }
.col-head-row .col-head { margin: 0; }
.home-pair .stack > .col-head:not(:first-child) { margin-top: var(--space-3); }
.site-glance .glance-domain { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-bright); margin-top: 0.15rem; overflow-wrap: anywhere; }
.glance-tiles { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: var(--space-3) 0 var(--space-2); }
.glance-tile { background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: var(--space-2) var(--space-3); }
.glance-tile .k { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.glance-tile .v { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-bright); margin-top: 0.2rem; font-variant-numeric: lining-nums; }
.glance-tile .s { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.1rem; }
.glance-tile.na .v { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dim); padding-top: 0.55rem; }
.learn-disclaimer h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.learn-disclaimer p { font-size: 0.92rem; }
.article-head + .divider + .learn-disclaimer { margin-bottom: var(--space-3); }
details.tips-more { margin-top: var(--space-2); }
details.tips-more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold); font-weight: 500; padding: 0.5rem 0; list-style: none; }
details.tips-more > summary::-webkit-details-marker { display: none; }
details.tips-more > summary::after { content: '▾'; font-size: 0.8rem; transition: transform 0.15s; }
details.tips-more[open] > summary::after { transform: rotate(180deg); }
details.tips-more > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 2026-10-20 admin tidy: action buttons in table cells never squeeze. */
.data-table td.nowrap { white-space: nowrap; width: 1%; }
#siteTable td:first-child { max-width: 15rem; overflow-wrap: anywhere; }
#siteTable td:first-child strong { word-break: break-all; }

/* ---------- team view: merchant switcher, admin pages (2026-10-21) ---------- */
.view-as select { width: auto; min-width: 150px; max-width: 190px; padding: 0.42rem 1.9rem 0.42rem 0.75rem; font-size: 0.82rem; font-weight: 500; border-radius: var(--radius-pill); background-color: var(--navy3); border-color: rgba(201,168,76,0.45); color: var(--text); }
.preview-inner .view-as select { max-width: 240px; }
.view-as select:hover { border-color: var(--gold); }
.is-preview .view-as select { border-color: var(--gold); color: var(--gold); }
.nav a.nav-admin { color: var(--gold); border: 1px solid rgba(201,168,76,0.4); margin-left: 0.25rem; }
.nav a.nav-admin[aria-current="page"] { background: var(--gold); color: var(--navy); }
@media (max-width: 1199px) { .view-as { width: 100%; } .view-as select { width: 100%; max-width: none; } }
.picker { margin-top: var(--space-3); }
.picker select { width: auto; min-width: 240px; max-width: 100%; }
.picker-card { max-width: 640px; }
.picker-card select { flex: 1 1 260px; width: auto; }
.site-list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.site-card { display: flex; flex-direction: column; gap: 0.35rem; }
.site-card.is-paused { opacity: 0.75; }
.site-domain { font-size: 1.25rem; margin-top: 0.2rem; overflow-wrap: anywhere; }
.site-geo { font-size: 0.9rem; color: var(--text); margin-top: 0.35rem; }
.site-card .row:last-child { margin-top: auto; padding-top: var(--space-2); }

/* ---------- polish pass (2026-10-22): rhythm, focus, touch, phone carousels, Home website upsell ----------
   Additive rules only; no class used by Processing, statements or Admin is renamed. */
html { color-scheme: dark; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
/* Focus rings follow the shape of what they outline. */
.card-link:focus-visible, .feature-card:focus-visible, .reward:focus-within:has(a:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius-lg); }
.feature-card:focus-visible { border-radius: var(--radius-xl); }
.reward a:focus-visible { outline-offset: 2px; }
/* Touch screens: every button, chip and nav link is at least 44px tall. */
@media (pointer: coarse) {
  .btn, .btn-sm, .chip, .nav a.nav-link, .points-pill, .subnav a, .subnav button { min-height: 44px; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .reward h3 a { display: inline-block; padding-block: 0.25rem; }   /* reward titles: a full 24px+ tap target (QA 2026-10-29) */
}
/* Stat tiles: the figure sits on one baseline across the row even when a label wraps. */
.stat-tile, .glance-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 0.25rem; }
.stat-tile .v, .glance-tile .v { margin-top: 0; }
.glance-tile .s { min-height: 1.2em; }
/* A gentle settle-in for page content; switched off by the reduced-motion block above. */
@keyframes fc-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main > .page > *:not(.spinner), #root > section, #root > .section { animation: fc-rise var(--dur-slow) var(--ease) both; }
@media (prefers-reduced-motion: reduce) { main > .page > *, #root > section, #root > .section { animation: none !important; } }
/* Phones: "Rewards within reach" on Home scrolls sideways (snap) instead of three full-height cards in a column. */
@media (max-width: 639px) {
  .reward-grid.fit { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-3); margin-inline: calc(-1 * var(--space-3)); padding: 4px var(--space-3) var(--space-2); scrollbar-width: none; }
  .reward-grid.fit::-webkit-scrollbar { display: none; }
  .reward-grid.fit > * { scroll-snap-align: start; }
  .reward-grid.fit .reward:hover { transform: none; }
}
/* Home: website upsell when no site is linked (decision 2026-10-21). A card, never a band. */
.web-upsell { display: grid; gap: var(--space-3); grid-template-columns: 1fr; align-items: center; position: relative; overflow: hidden;
  border-color: rgba(201,168,76,0.4); background: radial-gradient(120% 140% at 100% 0%, rgba(201,168,76,0.12), rgba(201,168,76,0) 55%), var(--card-bg), var(--navy2); }
@media (min-width: 900px) { .web-upsell { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); } }
.web-upsell h3 { font-size: clamp(1.25rem, 0.8vw + 1rem, 1.55rem); margin-top: 0.3rem; }
.web-upsell-copy p { margin-top: 0.5rem; max-width: 62ch; }
.offer-line { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; font-size: 0.86rem; }
.offer-pill { display: inline-flex; align-items: center; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); background: var(--golddim); border: 1px solid rgba(201,168,76,0.5); color: var(--gold); font-weight: 600; }
.web-upsell-cta { display: flex; flex-direction: column; gap: 0.6rem; }
@media (max-width: 899px) { .web-upsell-cta { flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 479px) { .web-upsell-cta .btn { width: 100%; } .offer-pill { border-radius: var(--radius); } }
/* Long domains break before a dot (the pages add <wbr>), and set a little smaller on phones. */
@media (max-width: 639px) { .site-hero .domain { font-size: 1.45rem; } .site-glance .glance-domain { font-size: 1.25rem; } }
/* 404 */
.notfound { max-width: 720px; margin-inline: auto; text-align: center; padding-block: var(--space-6); }
.notfound .icon-chip { margin: 0 auto var(--space-3); }
.notfound .lede { margin: 0.75rem auto 0; }
.notfound .row { justify-content: center; margin-top: var(--space-4); }
.notfound .quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; margin-top: var(--space-3); font-size: 0.92rem; }

/* ---------- motion and feedback system (2026-10-25, Drew: "smooth banners" on every link and button click,
   the background flows from page to page). Everything here is decorative and switches off for
   prefers-reduced-motion; browsers without cross-document view transitions simply change page instantly. ---------- */

/* One background for the whole portal, fixed to the window, so it never jumps or re-flows between pages. */
body { background: transparent; }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(60% 34% at 50% 0%, rgba(74,124,190,0.20) 0%, rgba(74,124,190,0) 72%),
    radial-gradient(64% 52% at 64% 30%, rgba(74,124,190,0.26) 0%, rgba(74,124,190,0) 70%),
    radial-gradient(110% 80% at 58% 34%, var(--navy4) 0%, var(--navy3) 38%, var(--page-base) 100%);
  background-color: var(--page-base);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}
@media print { body::before { display: none; } }

/* Page to page: the header holds still while the page underneath cross-fades (Chromium, Safari 18.2+). */
@view-transition { navigation: auto; }
#hdr { view-transition-name: fc-header; }
::view-transition-group(fc-header) { animation-duration: 0s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* A slim gold progress line under the header while a page or a request is on its way. */
.fc-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; opacity: 0;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(201,168,76,0) 0%, var(--gold) 30%, var(--gold2) 100%);
  box-shadow: 0 0 12px rgba(201,168,76,0.55); }
.fc-progress.run { opacity: 1; animation: fc-progress 2.4s cubic-bezier(0.1, 0.65, 0.2, 1) forwards; }
.fc-progress.run.done { animation: fc-progress-done 360ms var(--ease) forwards; }
@keyframes fc-progress { from { transform: scaleX(0); } 40% { transform: scaleX(0.55); } to { transform: scaleX(0.86); } }
@keyframes fc-progress-done { from { transform: scaleX(0.86); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }

/* Buttons and chips: a soft press and a gold ripple from where the pointer landed. */
.btn, .chip, .admin-tab { position: relative; overflow: hidden; isolation: isolate; }
.btn::after, .chip::after, .admin-tab::after { content: ''; position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0); pointer-events: none; z-index: -1; }
.btn.is-rippling::after, .chip.is-rippling::after, .admin-tab.is-rippling::after { animation: fc-ripple 620ms var(--ease); }
@keyframes fc-ripple { from { opacity: 0.26; transform: scale(0); } to { opacity: 0; transform: scale(64); } }
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: translateY(0) scale(0.985); transition-duration: 90ms; }
.chip:active, .admin-tab:active { transform: scale(0.98); }
/* Busy: a small spinner in place of the click, the label stays readable. */
.btn.is-busy { cursor: progress; }
.btn.is-busy[disabled] { opacity: 0.85; }
.btn.is-busy::before { content: ''; width: 0.95em; height: 0.95em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: fc-spin 0.7s linear infinite; flex: none; }
@keyframes fc-spin { to { transform: rotate(360deg); } }


/* Banners (toasts): slide in under the header, top right on wide screens, full width on phones. */
#toast { position: fixed; top: calc(var(--header-h) + 14px); right: 16px; left: auto; bottom: auto; transform: none; opacity: 1;
  display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 32px)); padding: 0; background: none; border: 0; box-shadow: none; pointer-events: none; z-index: 110; }
.toast-item { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: start;
  padding: 0.85rem 0.9rem 0.95rem 1rem; border-radius: var(--radius); background: rgba(27,45,68,0.96); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
  color: var(--text); font-size: 0.93rem; line-height: 1.4; opacity: 0; transform: translateY(-10px) scale(0.98);
  transition: opacity 260ms var(--ease), transform 320ms var(--ease); }
.toast-item.show { opacity: 1; transform: none; }
.toast-item.leaving { opacity: 0; transform: translateY(-6px) scale(0.98); transition-duration: 220ms; }
.toast-item .toast-icon { width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; margin-top: 0.05rem; font-size: 0.8rem; font-weight: 700;
  background: var(--golddim); color: var(--gold); border: 1px solid rgba(201,168,76,0.55); }
.toast-item.ok .toast-icon { background: rgba(79,208,138,0.14); color: var(--positive); border-color: rgba(79,208,138,0.5); }
.toast-item.err { border-color: rgba(224,122,107,0.5); }
.toast-item.err .toast-icon { background: rgba(224,122,107,0.14); color: var(--negative); border-color: rgba(224,122,107,0.55); }
.toast-item .toast-msg { color: var(--text-bright); overflow-wrap: anywhere; }
.toast-item .toast-x { width: 1.6rem; height: 1.6rem; border-radius: 50%; color: var(--text-dim); display: grid; place-items: center; font-size: 1.05rem; line-height: 1; margin: -0.15rem -0.2rem 0 0; transition: color var(--dur-fast), background var(--dur-fast); }
.toast-item .toast-x:hover { color: var(--text-bright); background: rgba(255,255,255,0.08); }
.toast-item .toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold2)); transform-origin: 0 50%; animation: fc-toast-time var(--toast-ms, 3600ms) linear forwards; }
.toast-item.ok .toast-bar { background: var(--positive); }
.toast-item.err .toast-bar { background: var(--negative); }
.toast-item:hover .toast-bar { animation-play-state: paused; }
@keyframes fc-toast-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 639px) { #toast { right: 12px; left: 12px; width: auto; top: calc(var(--header-h) + 10px); } }
/* Inline alerts arrive with a short slide instead of popping in. */
.alert.show { animation: fc-alert-in 280ms var(--ease); }
@keyframes fc-alert-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .fc-progress.run { animation: none; transform: scaleX(1); opacity: 0.9; }
  .btn::after, .chip::after, .admin-tab::after { display: none; }
  .toast-item, .toast-item.show, .toast-item.leaving { transition: none; transform: none; }
  .toast-item .toast-bar { animation: none; display: none; }
  .btn.is-busy::before { animation: none; border-right-color: currentColor; opacity: 0.6; }
}

/* ---------- admin insights (2026-10-25) ---------- */
.ins-grid { align-items: start; }
.ins-grid .card h3 { margin-bottom: 0.15rem; }
.ins-month { display: grid; gap: 0.4rem; padding: 0.65rem 0; border-top: 1px solid rgba(255,255,255,0.06); }
.ins-month:first-child { border-top: 0; padding-top: 0; }
.ins-m { font-size: 0.8rem; text-transform: uppercase; letter-spacing: var(--eyebrow-tracking); color: var(--text-dim); }
.ins-bar { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.ins-bar + .ins-bar { margin-top: 0.55rem; }
.ins-bar .progress span { transition: width 700ms var(--ease); }
.progress.is-blue span { background: linear-gradient(90deg, rgba(74,124,190,0.95), rgba(74,124,190,0.6)); }
.ins-list { display: grid; gap: 0.15rem; }
.ins-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem; align-items: baseline; padding: 0.55rem 0; border-top: 1px solid rgba(255,255,255,0.06); }
.ins-list li:first-child { border-top: 0; }
.ins-list .muted { font-size: 0.82rem; min-width: 5.5rem; text-align: right; }
.ins-checks { display: grid; gap: 0.5rem; }
.ins-checks li { position: relative; padding-left: 1.25rem; color: var(--text-muted); }
.ins-checks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--text-dim); }
.ins-checks li.ok::before { background: var(--positive); }
.ins-checks li.warn::before { background: var(--gold); box-shadow: 0 0 0 3px var(--golddim); }

/* ---------- "Confirm it's you" dialog (step-up, 2026-10-25) ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: var(--space-3);
  background: rgba(13,27,42,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 200ms var(--ease); }
.modal-backdrop.show { opacity: 1; }
.su-host { padding: 0; margin: 0; border: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; overflow: visible; color: inherit; }
.su-host::backdrop { background: transparent; }
.modal { width: min(440px, 100%); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--card-bg), var(--navy2); border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); transform: translateY(8px) scale(0.98); transition: transform 260ms var(--ease); }
.modal-backdrop.show .modal { transform: none; }
.modal h2 { font-size: 1.5rem; margin-top: 0.3rem; }
.team-note { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal { transition: none; transform: none; } }

/* ---------- admin earning (2026-10-25) ---------- */
.lock-tile { border-color: rgba(201,168,76,0.45); background: radial-gradient(120% 140% at 100% 0%, rgba(201,168,76,0.10), rgba(201,168,76,0) 55%), var(--card-bg), var(--navy2); }
.lock-tile.is-open { border-color: rgba(79,208,138,0.45); }
.lock-tile h3 { margin-top: 0.25rem; }
.gap-list { display: grid; gap: 0.35rem; }
.gap-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; }
.gap-list li .muted { white-space: nowrap; font-size: 0.82rem; }
.card.inset { background: var(--navy3); box-shadow: none; }
.vr-table tr.st-skip td { color: var(--text-dim); }
.vr-table tr.st-exception td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
details > summary.btn-link { cursor: pointer; list-style: none; display: inline-flex; }
details > summary.btn-link::-webkit-details-marker { display: none; }
details > summary.btn-link::after { content: '›'; margin-left: 0.4rem; transition: transform var(--dur) var(--ease); }
details[open] > summary.btn-link::after { transform: rotate(90deg); }
/* insights, 2026-10-25 second pass: sources on every card, compact month panels, the action feed */
.src { margin-top: var(--space-2); font-size: 0.76rem; color: var(--text-dim); letter-spacing: 0.01em; }
.ins-months { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ins-month, .ins-month:first-child { padding: 0.8rem 0.9rem; border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); background: rgba(255,255,255,0.02); }
.key-dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin: 0 0.3rem 0 0.7rem; vertical-align: 0.05em; background: var(--gold); }
.key-dot.blue { background: rgba(74,124,190,0.95); }
.ins-lock { display: block; }
.ins-lock .hint { margin-top: 0.4rem; }
.feed { display: grid; gap: 0; }
.feed li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: baseline; padding: 0.6rem 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; }
.feed li:first-child { border-top: 0; }
.feed .who-sub { display: block; overflow-wrap: anywhere; }
.feed-when { color: var(--text-dim); font-size: 0.82rem; }
@media (max-width: 639px) { .feed li { grid-template-columns: 1fr; gap: 0.15rem; } }
.row.row-tight { gap: 0.4rem; }
.eyebrow.section-tight { display: block; }

/* ---------- admin: add merchants from a list (2026-10-26) ---------- */
.dialog.dialog-wide { width: min(980px, calc(100vw - 32px)); }
.imp-table { min-width: 760px; }
.imp-table td { vertical-align: top; }
.imp-table th:first-child, .imp-table td:first-child { min-width: 0; width: 2.2rem; padding-right: 0; }
.imp-table td:nth-child(2) { min-width: 11rem; }
.imp-table td:last-child { min-width: 13rem; }
.imp-table input[type="email"] { min-width: 12rem; width: 100%; }
.badge.plan-new { color: var(--text-bright); border-color: rgba(201,168,76,0.45); background: var(--golddim); text-transform: none; }
.badge.plan-extra, .badge.plan-existing { color: var(--text-muted); border-color: var(--border); text-transform: none; }
.badge.plan-skip { color: var(--text-dim); border-color: var(--border); text-transform: none; }

/* ---------- consultants: My clients (2026-11-04) ---------- */
.cl-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--space-3); }
@media (max-width: 900px) { .cl-grid { grid-template-columns: 1fr; } }
.cl-list { display: grid; gap: var(--space-2); }
.cl-card { padding: var(--space-3); }
.cl-name { margin: 0; font-size: 1.15rem; }
.cl-steps { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; font-size: 0.8rem; color: var(--text-dim); }
.cl-steps li { display: grid; gap: 0.35rem; justify-items: start; }
.cl-dot { width: 100%; height: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.12); }
.cl-steps li.done { color: var(--text-muted); }
.cl-steps li.done .cl-dot { background: var(--gold); }
.cl-steps li.done { font-weight: 600; }
.cl-steps li.now { color: var(--text-muted); }
.cl-steps li.now .cl-dot { background: linear-gradient(90deg, rgba(201,168,76,0.45), rgba(255,255,255,0.12) 70%); }
.cl-next { margin: var(--space-2) 0 0; font-size: 0.92rem; color: var(--text); }
.cl-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.cl-actions { margin-top: var(--space-2); }
.cl-actions:empty { display: none; }
.cl-invite { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); gap: 0.5rem 1rem; flex-wrap: wrap; align-items: center; }
.cl-invite-state strong { font-weight: 600; }
.ack-card { max-width: 40rem; }
.ack-text { font-size: 1.05rem; line-height: 1.55; }
.chip-radio { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.16); font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.chip-radio:has(input:checked) { background: var(--golddim); border-color: var(--gold); color: var(--text-bright); }
.chip-radio input { accent-color: var(--gold); }

/* ---------- UI standard additions (2026-11-15) ---------- */
.show-pw { margin-top: 0.1rem; font-size: 0.875rem; }
/* Tables stack into cards under 640px; each cell shows its column name (portal.js stackTables sets data-label). */
@media (max-width: 639px) {
  .table-wrap { overflow-x: visible; }
  table.is-stacked { min-width: 0; }
  table.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.is-stacked, table.is-stacked tbody, table.is-stacked tfoot { display: block; }
  table.is-stacked tr { display: grid; gap: 0.4rem; padding: 0.85rem 1rem; margin-bottom: 0.75rem; border: 1px solid var(--ui-hair); border-radius: var(--ui-radius-control); background: rgba(255,255,255,0.02); }
  table.is-stacked td, table.is-stacked td:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-width: 0; padding: 0; border: 0; text-align: right; max-width: none; }
  table.is-stacked td[data-label]::before { content: attr(data-label); flex-shrink: 0; text-align: left; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
  table.is-stacked td:first-child:not([data-label]) { display: block; text-align: left; }
  table.is-stacked td:empty { display: none; }
}
/* Store filter chips stay on one scrolling row on phones instead of wrapping to three. */
@media (max-width: 639px) {
  #chips.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(-1 * var(--space-3)); padding-inline: var(--space-3); }
  #chips.chips::-webkit-scrollbar { display: none; }
  #chips .chip { flex-shrink: 0; }
}

/* Sign-in logo above the form (no wider than 160px), back link boxes, page-head rhythm */
.signin-logo { width: 160px; height: auto; margin-bottom: var(--space-2); }
.link-box.back::after { content: none; }
.link-box.back::before { content: "\2190"; color: var(--gold2); transition: transform var(--ui-fast) var(--ui-ease); }
.link-box.back:hover::before { transform: translateX(-3px); }
.narrow-page > .no-print, .page > p > .link-box.back { margin-bottom: var(--space-1); }
.page-head { gap: var(--space-2) var(--space-3); }
.page-head .lede { max-width: 62ch; }
@media (max-width: 639px) { .page { padding-block: var(--space-4) var(--space-8); } .section { margin-top: var(--space-6); } }
/* Loading: a spinner line plus a quiet block outline so the page does not jump when data arrives */
.spinner { min-height: 160px; display: grid; place-content: center; border-radius: var(--ui-radius-card); background: linear-gradient(100deg, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 70%); background-size: 200% 100%; animation: ui-shimmer 1.6s linear infinite; }
@keyframes ui-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
