/* ───────────────────────────────────────────────
   Megaphoon — "Coffra" system
   Warm paper (#f4f1ea) with soft colour fields, translucent cards with a 1px rim,
   one quiet green accent, pastel tiles (mint / sand / sky / peach), Urbanist.
   Light + dark themes. App shell: icon rail · section panel · top bar.
   ─────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --field-1: #a8ceb261; --field-2: #f6d6a852; --field-3: #fabea03d;
  --card: #fffdf9b3;
  --solid: #fbf9f4;
  --rim: rgba(52, 48, 36, .09);
  --shadow: 0 1px 2px #3c34240d, 0 12px 32px -16px #3c342433;
  --shadow-lg: 0 2px 4px #3c34240f, 0 26px 60px -24px #3c342452;
  --ink: #1f2420; --ink-2: #3c4440; --muted: #5d6660; --dim: #858c86;
  --line: #34302417; --line-2: #3430242b;
  --accent: #4e7a60; --accent-hi: #5b8a6d; --accent-soft: #4e7a6021; --accent-text: #41694f; --accent-2: #b7d3bf;
  --sand: #e49a62; --sand-2: #f7dcc4;
  --good: #2f7247; --good-soft: #2f72471f; --warn: #8a5300; --warn-soft: #e49a6233; --bad: #b3363c; --bad-soft: #b3363c1c; --info: #2d6a6e; --info-soft: #2d6a6e1c;
  --t-mint: #dcece0; --t-sand: #fbe8d2; --t-sky: #f6eed2; --t-peach: #fae0d8;
  --r1: 10px; --r2: 14px; --r3: 20px; --r4: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Urbanist", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 76px; --panel: 236px; --gap: 16px;
  --max: 1240px; --gutter: clamp(16px, 3.4vw, 40px);
  /* legacy aliases */
  --red: var(--bad); --green: var(--good); --yellow: var(--sand); --champagne: var(--accent); --text: var(--ink); --text-2: var(--ink-2);
  --honey: var(--sand); --cobalt: var(--accent); --panel-bg: var(--card);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141815; --field-1: #4e7a6033; --field-2: #e49a621f; --field-3: #fabea014;
  --card: #1d221ecc; --solid: #1b201c; --rim: rgba(255, 250, 235, .08);
  --shadow: 0 1px 2px #0006, 0 12px 32px -16px #000a; --shadow-lg: 0 2px 4px #0007, 0 26px 60px -24px #000c;
  --ink: #ecebe3; --ink-2: #c9cbc3; --muted: #9ba39c; --dim: #7c847e; --line: #ffffff14; --line-2: #ffffff24;
  --accent: #6b9b7d; --accent-hi: #7fae90; --accent-soft: #6b9b7d2e; --accent-text: #9cc7aa; --accent-2: #3f5f4b;
  --sand-2: #4a3626; --good: #6fc08f; --good-soft: #6fc08f24; --warn: #f0b36e; --warn-soft: #e49a6229; --bad: #ef8a8e; --bad-soft: #ef8a8e24; --info: #7cc4c8; --info-soft: #7cc4c824;
  --t-mint: #23362b; --t-sand: #3a2f22; --t-sky: #36321f; --t-peach: #3c2925;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141815; --field-1: #4e7a6033; --field-2: #e49a621f; --field-3: #fabea014;
    --card: #1d221ecc; --solid: #1b201c; --rim: rgba(255, 250, 235, .08);
    --shadow: 0 1px 2px #0006, 0 12px 32px -16px #000a; --shadow-lg: 0 2px 4px #0007, 0 26px 60px -24px #000c;
    --ink: #ecebe3; --ink-2: #c9cbc3; --muted: #9ba39c; --dim: #7c847e; --line: #ffffff14; --line-2: #ffffff24;
    --accent: #6b9b7d; --accent-hi: #7fae90; --accent-soft: #6b9b7d2e; --accent-text: #9cc7aa; --accent-2: #3f5f4b;
    --sand-2: #4a3626; --good: #6fc08f; --good-soft: #6fc08f24; --warn: #f0b36e; --warn-soft: #e49a6229; --bad: #ef8a8e; --bad-soft: #ef8a8e24; --info: #7cc4c8; --info-soft: #7cc4c824;
    --t-mint: #23362b; --t-sand: #3a2f22; --t-sky: #36321f; --t-peach: #3c2925;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; scroll-padding-bottom: 96px; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 500 14px/1.5 var(--font); letter-spacing: -.003em;
  background:
    radial-gradient(900px 600px at 0% 0%, var(--field-1), transparent 70%),
    radial-gradient(800px 520px at 100% 0%, var(--field-2), transparent 70%),
    radial-gradient(900px 700px at 60% 110%, var(--field-3), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:where(a:not([class])) { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent); text-underline-offset: 3px; }
:where(a:not([class])):hover { text-decoration-color: currentColor; }
::selection { background: var(--accent-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.num, td, .kc-n, .amt-big { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }
.ic { display: inline-block; flex: none; vertical-align: -0.18em; stroke-width: 1.8; }
.aurora, .hero-orb, .dock { display: none !important; }

/* ── type ── */
h1, h2, h3, .h1 { font-family: var(--font); margin: 0; color: var(--ink); letter-spacing: -.02em; font-weight: 600; }
h1, .h1 { font-size: 38px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 15.5px; line-height: 1.3; }
.h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }
.lede { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 44em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.page-title { font-size: 38px; line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.page-title span { display: inline; }
.page-title span + span::before { content: " "; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; position: relative;
  font: 600 13.5px/1 var(--font); padding: 10px 15px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap; color: var(--ink); background: transparent;
  transition: background-color .2s var(--ease), border-color .2s, color .2s, box-shadow .25s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 16px; height: 16px; }
.btn-lg { padding: 13px 20px; font-size: 14.5px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; gap: 6px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 #ffffff26, 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { opacity: .88; }
.btn-ghost { background: var(--solid); border-color: var(--line-2); color: var(--ink); box-shadow: 0 1px 2px #3c34240d; }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn-honey { background: var(--t-sand); color: var(--warn); border-color: color-mix(in srgb, var(--sand) 40%, transparent); }
.btn-honey:hover { background: var(--sand-2); }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.btn-danger:hover { background: var(--bad); color: var(--on-accent); }
.btn:not(.btn-primary):not(.btn-ink):not(.btn-ghost):not(.btn-honey):not(.btn-danger):not(.btn-hot) { color: var(--muted); }
.btn:not(.btn-primary):not(.btn-ink):not(.btn-ghost):not(.btn-honey):not(.btn-danger):not(.btn-hot):hover { color: var(--ink); background: var(--accent-soft); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn::after { display: none; }
.tg-icon { width: 17px; height: 17px; }
.text-link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent); text-underline-offset: 4px; }
.icon-btn { width: 38px; height: 38px; border-radius: var(--r1); display: inline-grid; place-items: center; flex: none; position: relative;
  background: var(--solid); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; text-decoration: none; padding: 0; font: inherit;
  transition: background .2s, border-color .2s, color .2s; box-shadow: 0 1px 2px #3c34240d; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 9px; }
.icon-btn.dark { background: #ffffff1f; border-color: #ffffff30; color: inherit; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 2px var(--solid); }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--sand); color: var(--on-accent); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

/* ── cards / panels ── */
.panel, .section-card, fieldset, .login-card, .empty, .filters, .tbl-wrap, .profile-card, .smart-note, .total-line, .wallet-box,
.faq details, .format, .tier-card, .kpi, .pcard, .cta-band, .glass, .card, .board, .kb-col, .dir-card, .otp-card, .notif, .inbox-list, .inbox-detail, .cal-day, .value-list, .trust-list li, .rail li, .proof-row > div, .metric-cell {
  background: var(--card); border: 0; border-radius: var(--r3);
  box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); position: relative;
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
}
.panel, .card { padding: 20px; }
.section-card { padding: 18px 20px; }
.section-card + .section-card { margin-top: var(--gap); }
.grid2 > .section-card, .grid3 > .section-card { margin-top: 0 !important; }
.panel h3, .section-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15.5px; }
.h-ic { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { font-size: 16px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.panel-head .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.panel-head .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-head .note { font-size: 12.5px; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.seg a, .seg button, .seg span { padding: 6px 12px; border-radius: 999px; font: 600 12.5px var(--font); color: var(--muted); text-decoration: none; border: 0; background: none; cursor: pointer; }
.seg [aria-current="page"], .seg .on, .seg [aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px #3c34240f; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 600 12.5px var(--font); color: var(--ink-2); text-decoration: none;
  background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); border: 0; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); }
.chip[aria-current="page"], .chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip .n { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--line); }
.chip[aria-current="page"] .n, .chip.on .n, .chip[aria-pressed="true"] .n { background: #ffffff2e; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); }
@media (max-width: 1100px) { .grid2, .grid3 { grid-template-columns: 1fr !important; } }

/* ── tiles (pastel) ── */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { --tc: var(--t-mint); position: relative; display: flex; flex-direction: column; min-height: 148px; padding: 14px 14px 14px 16px;
  border-radius: var(--r3); background: var(--tc); color: var(--ink); text-decoration: none; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rim); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.tile:hover, .tile.hover-lift:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.tile.green, .tile.mint { --tc: var(--t-mint); }
.tile.yellow, .tile.sand { --tc: var(--t-sand); }
.tile.ink, .tile.sky { --tc: var(--t-sky); }
.tile.red, .tile.peach { --tc: var(--t-peach); }
.tile.paper { --tc: var(--solid); }
.tile-meta { font-size: 12px; color: var(--muted); font-weight: 600; padding-right: 36px; display: flex; gap: 6px; align-items: center; }
.tile-title { margin-top: 8px; font-size: 15.5px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tile-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tile-amt { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-amt small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 5px; }
.tile-dots { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); background: color-mix(in srgb, var(--solid) 60%, transparent); }
.tile .tile-state .tag { background: color-mix(in srgb, var(--solid) 70%, transparent); }
.tile .why { font-size: 12px; color: var(--muted); }
.ava-stack { display: inline-flex; }
.ava-stack > * { margin-left: -7px; box-shadow: 0 0 0 2px var(--tc, var(--solid)); }
.ava-stack > *:first-child { margin-left: 0; }
.ava { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none;
  background: var(--t-mint); color: var(--accent-text); text-transform: uppercase; letter-spacing: .02em; position: relative; }
.ava.lg { width: 44px; height: 44px; font-size: 14px; }
.ava.xl { width: 56px; height: 56px; font-size: 17px; }
.ava.a1 { background: var(--t-mint); color: var(--accent-text); } .ava.a2 { background: #e9e4da; color: #5d5547; } .ava.a3 { background: var(--t-sand); color: #8a5a2b; }
.ava.a4 { background: var(--t-peach); color: #9a4d3c; } .ava.a5 { background: #e2ebe9; color: var(--info); }
:root[data-theme="dark"] .ava.a2 { background: #2d2a24; color: #d3c9b5; } :root[data-theme="dark"] .ava.a5 { background: #213335; color: var(--info); }
.ava .on { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 2px var(--solid); }

/* ── KPI chips + tinted KPI tiles ── */
.kchips { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; }
.kchip { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.kchip .kc-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.kchip .kc-n { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 8px; }
.kchip .kc-l { font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.ktiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1100px) { .ktiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ktile { display: flex; flex-direction: column; gap: 6px; min-height: 128px; padding: 16px 18px; border-radius: var(--r3); text-decoration: none; color: var(--ink);
  background: var(--t-mint); box-shadow: inset 0 0 0 1px var(--rim); transition: transform .25s var(--ease); }
a.ktile:hover { transform: translateY(-2px); }
.ktile.peach { background: var(--t-peach); } .ktile.sand { background: var(--t-sand); } .ktile.sky { background: var(--t-sky); } .ktile.mint { background: var(--t-mint); }
.ktile .kt-l { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ktile .kt-n { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.ktile .kt-f { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill.green { background: var(--good-soft); color: var(--good); }
.pill.yellow { background: var(--warn-soft); color: var(--warn); }
.pill.red { background: var(--bad-soft); color: var(--bad); }
.pill.ink { background: var(--ink); color: var(--bg); }
.pill.paper { background: var(--solid); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ── tags / status chips ── */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5;
  background: var(--solid); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; border: 0; }
.tag .ic { width: 12px; height: 12px; }
.tag.smart { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.tag.green { background: var(--good-soft); color: var(--good); box-shadow: none; }
.tag.red { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.tag.blue { background: var(--info-soft); color: var(--info); box-shadow: none; }
.tag.dark { background: var(--line); color: var(--ink-2); box-shadow: none; }
.tag.dot::before, .sdot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sdot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--c, var(--muted)); }
.hex { --c: #8B93A7; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, var(--solid)); color: color-mix(in srgb, var(--c) 75%, var(--ink)); font: 700 9.5px/1 var(--font); }
.hex.sm { width: 22px; height: 22px; font-size: 7.5px; }
.hex.lg { width: 56px; height: 56px; font-size: 14px; }
.hex-glow { display: inline-flex; padding: 3px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); }
.tier-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ── forms ── */
fieldset { margin: 0 0 var(--gap); padding: 22px; min-width: 0; scroll-margin-top: 110px; }
legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 600 17px/1.2 var(--font); letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; color: var(--ink); }
legend + *, fieldset > legend ~ * { clear: both; }
.lg-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.lg-n { margin-left: auto; font: 600 12px var(--font); color: var(--muted); }
.fs-hint { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; clear: both; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; align-items: end; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .fields, .fields.three { grid-template-columns: 1fr; } fieldset { padding: 18px 14px; } }
label.f, .f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink); min-width: 0; }
label.f small, .f small { font-weight: 500; color: var(--muted); font-size: 12px; }
.f-label { font-weight: 600; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], input[type=datetime-local], input[type=search], input[type=tel], input[type=date],
input:not([type]), select, textarea {
  font: 500 14px/1.4 var(--font); color: var(--ink); background: var(--solid); border: 0; box-shadow: inset 0 0 0 1px var(--line-2);
  border-radius: var(--r1); padding: 10px 12px; width: 100%; min-width: 0; transition: box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 28%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6660' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.prefix { position: relative; display: block; }
.prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.prefix input { padding-left: 26px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; }
.choice span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--solid); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: all .2s var(--ease); }
.choice input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-sub { opacity: .7; font-weight: 500; font-size: 12px; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 12px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; padding: 8px 12px; background: var(--solid); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); user-select: none; }
.toggle input { margin: 0; }
.toggle:has(input:checked) { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.drop { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 3px; align-items: center; padding: 16px; border: 1.5px dashed var(--line-2);
  border-radius: var(--r2); background: var(--solid); cursor: pointer; position: relative; transition: border-color .2s, background .2s; min-width: 0; }
.drop:hover { border-color: var(--accent); }
.drop.has { border-style: solid; border-color: var(--good); background: var(--good-soft); }
.drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .drop-ic { grid-row: span 4; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); align-self: start; }
.drop.has .drop-ic { background: var(--good); color: var(--on-accent); }
.drop b { font-size: 14px; }
.drop > span:not(.drop-ic) { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.drop .drop-cta { color: var(--accent-text) !important; font-weight: 700; }
.drop .fname { color: var(--good) !important; font-weight: 700; }
.drop .fname:empty { display: none; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-actions.sticky { position: sticky; bottom: 12px; z-index: 5; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card); width: fit-content; max-width: 100%;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow-lg); }
.form-page { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0 80px; align-items: start; }
.form-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.form-nav a { display: flex; align-items: center; gap: 9px; text-decoration: none; padding: 9px 10px; border-radius: var(--r1); color: var(--muted); font-weight: 600; font-size: 13.5px; position: relative; }
.form-nav a:hover { color: var(--ink); }
.form-nav a.active { background: var(--solid); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.form-nav a.active::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); }
.form-nav .prog { height: 4px; border-radius: 4px; background: var(--line); margin: 10px 10px 6px; overflow: hidden; }
.form-nav .prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s var(--ease); }
@media (max-width: 900px) { .form-page { grid-template-columns: 1fr; padding-top: 12px; } .form-nav { display: none; } }
.pw-meter { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s, background .3s; }
.pw-hint { font-size: 12px; color: var(--muted); }

/* ── generic page parts ── */
.page-head { padding: 26px 0 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.page-head .lede { margin-top: 8px; }
.head-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; margin-bottom: 18px; overflow-x: auto; max-width: 100%; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 7px 13px; font-weight: 600; font-size: 13px; color: var(--muted); border-radius: 999px; white-space: nowrap; }
.tabs a .ic { width: 14px; height: 14px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.status-banner { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 16px; border-radius: var(--r2); margin: 12px 0; background: var(--info-soft); color: var(--ink); }
.status-banner.warn { background: var(--warn-soft); }
.status-banner .btn-ink { margin-left: auto; }
.flash { margin: 10px 0 14px; }
.wrap > .flash, body > .flash { max-width: var(--max); margin: 12px auto 0; padding: 0 var(--gutter); }
.flash > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 11px 14px; border-radius: var(--r2); font-weight: 600; background: var(--good-soft); color: var(--good); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 25%, transparent); animation: up .35s var(--ease); }
.flash .error { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 25%, transparent); }
@keyframes up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.empty { padding: 40px 22px; text-align: center; }
.empty .e-ic { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.empty h3, .empty .h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 auto 16px; max-width: 34em; }
.empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); display: inline-flex; gap: 7px; align-items: center; }
.kv b { text-align: right; font-weight: 600; }
.prose { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: var(--gap); align-items: start; padding-bottom: 60px; }
.detail .side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--gap); }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail .side { position: static; } }
.reward-panel { background: var(--t-mint) !important; }
.big-reward { font-size: 36px; font-weight: 600; letter-spacing: -.025em; line-height: 1; margin: 10px 0 16px; font-variant-numeric: tabular-nums; }
.cell-camp { display: flex; gap: 10px; align-items: center; }
.k-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 7px 0; font-size: 13.5px; color: var(--muted); font-weight: 600; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 28px; height: calc(100% - 20px); width: 2px; background: var(--line-2); }
.timeline li .dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); flex: none; }
.timeline li.done, .timeline li.now { color: var(--ink); }
.timeline li.done .dot { background: var(--accent); box-shadow: none; }
.timeline li.now .dot { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 6px var(--solid), inset 0 0 0 10px var(--accent); }
table.plain, table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.plain th, table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.plain td, table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.plain tbody tr:last-child td, table.data tbody tr:last-child td { border-bottom: 0; }
table.plain tbody tr:hover td, table.data tbody tr:hover td { background: color-mix(in srgb, var(--solid) 70%, transparent); }
table.data td { white-space: nowrap; }
table.data td.r, table.data th.r { text-align: right; }
table.data th a { text-decoration: none; color: inherit; }
table.data th a.on { color: var(--ink); }
table.data .handle, .handle { font-weight: 600; text-decoration: none; color: var(--ink); }
.handle:hover { text-decoration: underline; }
table.data tbody tr:has(.pick:checked) td { background: var(--accent-soft); }
table.data a:not([class]) { text-decoration: none; color: var(--ink); }
.tbl-wrap { border-radius: var(--r3); overflow: auto; max-height: calc(100vh - 220px); padding: 0 6px; }
.tbl-wrap table.data th { position: sticky; top: 0; background: var(--solid); z-index: 2; }
@media (max-width: 620px) {
  table.plain thead { display: none; }
  table.plain, table.plain tbody, table.plain tr, table.plain td { display: block; width: 100%; }
  table.plain tr { padding: 10px 2px; border-bottom: 1px solid var(--line); }
  table.plain td { border: 0 !important; padding: 3px 6px; text-align: left !important; }
}
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; margin-bottom: 14px; border-radius: var(--r3); }
.filters > input, .filters > select { width: auto; padding: 8px 12px; font-size: 13px; border-radius: 999px; }
.filters > select { padding-right: 30px; background-position: right 10px center; }
.filters input[name=q] { min-width: 220px; flex: 1; padding-left: 36px;
  background: var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235d6660' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
@media (max-width: 620px) { .filters input[name=q] { min-width: 100%; } .filters > input, .filters > select { flex: 1 1 140px; } }

/* ═════════════ app shell: rail · panel · main ═════════════ */
.shell { display: grid; grid-template-columns: var(--rail) var(--panel) minmax(0, 1fr); min-height: 100vh; }
.shell.panel-closed { grid-template-columns: var(--rail) 0 minmax(0, 1fr); }
.srail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; z-index: 30;
  background: color-mix(in srgb, var(--solid) 55%, transparent); box-shadow: inset -1px 0 0 var(--line); }
.srail .brand { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; text-decoration: none; }
.srail .brand svg { width: 44px; height: 44px; }
.srail a.ri, .srail button.ri { position: relative; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--muted); text-decoration: none;
  background: none; border: 0; cursor: pointer; transition: background .2s, color .2s; padding: 0; }
.srail a.ri:hover, .srail button.ri:hover { color: var(--ink); background: var(--accent-soft); }
.srail a.ri[aria-current="page"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
.srail .ri .att { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 2px var(--bg); }
.srail a.ri[aria-current="page"] .att { background: #fff; box-shadow: none; }
.srail .ri .tip { position: absolute; left: 54px; top: 50%; transform: translate(-4px, -50%); opacity: 0; pointer-events: none; white-space: nowrap; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; transition: opacity .15s, transform .2s var(--ease); z-index: 5; }
.srail .ri:hover .tip, .srail .ri:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
.srail .spacer { flex: 1; }
.srail .me { margin-top: 6px; }
.srail .theme-ic-dark { display: none; }
:root[data-theme="dark"] .srail .theme-ic-dark { display: inline-block; }
:root[data-theme="dark"] .srail .theme-ic-light { display: none; }
.spanel { position: sticky; top: 0; height: 100vh; overflow: hidden auto; display: flex; flex-direction: column; padding: 18px 14px 14px; z-index: 20;
  background: linear-gradient(180deg, color-mix(in srgb, var(--field-1) 50%, transparent), transparent 40%), color-mix(in srgb, var(--solid) 40%, transparent);
  box-shadow: inset -1px 0 0 var(--line); transition: opacity .25s var(--ease); scrollbar-width: thin; }
.shell.panel-closed .spanel { opacity: 0; pointer-events: none; padding: 0; }
.sp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 4px 14px; }
.sp-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sp-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.sp-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 6px 6px; }
.sp-nav { display: flex; flex-direction: column; gap: 2px; }
.sp-nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r1); text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: background .2s; }
.sp-nav a:hover { background: color-mix(in srgb, var(--solid) 70%, transparent); color: var(--ink); }
.sp-nav a .ic { color: var(--muted); width: 16px; height: 16px; }
.sp-nav a[aria-current="page"] { background: var(--solid); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px #3c34240d; }
.sp-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -2px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); }
.sp-nav .cnt { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-align: center; background: var(--accent-soft); color: var(--accent-text); }
.sp-nav .cnt.hot { background: var(--warn-soft); color: var(--warn); }
.sp-foot { margin-top: auto; padding-top: 14px; }
.sp-prog { display: block; padding: 12px 14px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px #3c34240d; text-decoration: none; color: var(--ink); }
.sp-prog .row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.sp-prog .bar { height: 5px; border-radius: 5px; background: var(--line); margin: 9px 0 6px; overflow: hidden; }
.sp-prog .bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.sp-prog small { font-size: 12px; color: var(--muted); }
.smain { min-width: 0; display: flex; flex-direction: column; }
.stop { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 14px 28px; min-height: 64px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .ic { width: 13px; height: 13px; color: var(--dim); }
.stop .panel-btn { display: none; }
.gsearch { position: relative; margin-left: auto; width: min(360px, 40vw); }
.gsearch input { padding: 10px 12px 10px 36px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px #3c34240d; }
.gsearch > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gsearch kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); color: var(--dim); padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.gs-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: 60vh; overflow: auto; padding: 6px; border-radius: var(--r2);
  background: var(--solid); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow-lg); }
.gs-res a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r1); text-decoration: none; color: var(--ink); }
.gs-res a:hover, .gs-res a.sel { background: var(--accent-soft); }
.gs-res .t { font-size: 13.5px; font-weight: 600; }
.gs-res .s { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.gs-res .k { font-size: 11px; color: var(--muted); font-weight: 700; }
.gs-res .none { padding: 10px; color: var(--muted); font-size: 13px; }
.scontent { padding: 22px 28px 90px; max-width: 1280px; width: 100%; }
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.phead h1 { font-size: 38px; }
.phead .summary { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.phead .summary b { color: var(--ink); font-weight: 600; }
.phead .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.adm-head h1 { font-size: 30px; }
.adm-head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.adm-head .head-acts, .head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-bottom: 18px; }
.app .flash, .scontent .flash { padding: 0; margin: 0 0 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; max-width: calc(100vw - 24px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ic { color: var(--accent-2); }
.toast button { font: 700 12.5px var(--font); padding: 7px 13px; border-radius: 999px; border: 0; background: var(--sand); color: var(--on-accent); cursor: pointer; }
.toast.err { background: var(--bad); color: var(--on-accent); }
.mob-only { display: none !important; }
@media (max-width: 1100px) { .shell { grid-template-columns: var(--rail) minmax(0, 1fr); } .shell .spanel { position: fixed; left: var(--rail); top: 0; bottom: 0; width: 260px; transform: translateX(-110%); transition: transform .35s var(--ease); background: var(--bg); box-shadow: var(--shadow-lg); }
  .shell.panel-open .spanel { transform: none; opacity: 1; pointer-events: auto; padding: 18px 14px 14px; }
  .stop .panel-btn { display: inline-grid; } .shell .sp-close { display: inline-grid; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
  .srail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 64px; flex-direction: row; justify-content: space-around; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 0;
    background: color-mix(in srgb, var(--solid) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--line), 0 -10px 30px -20px #3c342466; z-index: 40; overflow-x: auto; }
  .srail .brand, .srail .spacer, .srail .rbottom-only { display: none; }
  .srail a.ri, .srail button.ri { width: 46px; height: 46px; flex: none; }
  .srail .ri .tip { display: none; }
  .shell .spanel { left: 0; width: min(300px, 86vw); z-index: 50; }
  .stop { padding: 10px 14px; gap: 8px; }
  .gsearch { width: auto; flex: 1; }
  .gsearch kbd { display: none; }
  .crumbs { display: none; }
  .scontent { padding: 16px 14px 40px; }
  .phead h1, .page-title { font-size: 30px; }
  .mob-only { display: inline-grid !important; }
}
.scrim { position: fixed; inset: 0; z-index: 45; background: #1f24202e; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sp-close { display: none; }

/* ── overview widgets ── */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap); }
.ov-grid.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 1180px) { .ov-grid, .ov-grid.even { grid-template-columns: 1fr; } }
.cf-strip { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 18px; align-items: center; padding: 14px 18px; margin: 14px 0; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.cf-strip .m { font-size: 15px; font-weight: 600; }
.cf-strip .lab { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cf-strip .lab i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.cf-strip b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.cf-strip small { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .cf-strip { grid-template-columns: 1fr 1fr; } .cf-strip .m { grid-column: 1 / -1; } }
.sbars { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 230px; padding: 8px 0 26px 46px; }
.sbars .yax { position: absolute; left: 0; top: 8px; bottom: 26px; width: 44px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 600; }
.sbars .gl { position: absolute; left: 46px; right: 0; height: 1px; background: var(--line); }
.sbars .col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; border-radius: var(--r1); cursor: pointer; background: none; border: 0; padding: 0 0 0; font: inherit; color: inherit; }
.sbars .col .stk { width: min(52px, 72%); display: flex; flex-direction: column-reverse; border-radius: 9px; overflow: hidden; min-height: 3px; }
.sbars .col .stk i { display: block; width: 100%; }
.sbars .col .ml { position: absolute; bottom: -22px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sbars .col.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.sbars .col.sel .ml { color: var(--ink); }
.sbars .col:focus-visible { outline: 2px solid var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.legend i.dash { width: 14px; height: 0; border-top: 2px dashed var(--ink); border-radius: 0; vertical-align: 3px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist a, .checklist .row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 2px; text-decoration: none; color: var(--ink); }
.checklist .box { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; }
.checklist .done .box { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.checklist .t { font-size: 13.5px; font-weight: 600; }
.checklist .s { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.checklist .done .t { color: var(--muted); }
.checklist .ic.go { color: var(--dim); }
.ring-prog { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none;
  background: radial-gradient(closest-side, var(--card) 76%, transparent 78%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li a, .mini-list li > div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 2px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.mini-list li:first-child a, .mini-list li:first-child > div { border-top: 0; }
.mini-list .t { font-size: 13.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.mini-list .s { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mini-list .w { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pay-card .big { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.pay-card .days { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); color: var(--on-accent); display: grid; place-content: center; text-align: center; line-height: 1; }
.pay-card .days b { font-size: 26px; font-weight: 600; }
.pay-card .days span { font-size: 11px; opacity: .85; }
.pay-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-card .two > div { padding: 12px 14px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.pay-card .two span { font-size: 12px; color: var(--muted); }
.pay-card .two b { display: block; font-size: 19px; font-weight: 600; margin-top: 4px; }
.pay-card .warnline { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--warn); font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.week.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { padding: 10px; border-radius: var(--r2); min-height: 140px; box-shadow: inset 0 0 0 1px var(--line); background: var(--solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cal-day.today { background: var(--t-mint); }
.cal-day.off { opacity: .55; }
.cal-day h4, .cal-day h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.cal-day.today h4 { color: var(--accent-text); }
.ev { display: block; padding: 6px 8px 6px 10px; margin-bottom: 6px; border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--card); box-shadow: inset 3px 0 0 var(--c, var(--accent)), inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.ev small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.c-dead { --c: var(--bad); } .ev.c-due { --c: var(--sand); } .ev.c-pay { --c: var(--accent); } .ev.c-dig { --c: var(--info); }
@media (max-width: 900px) { .week, .week.seven { grid-template-columns: 1fr; } .cal-day { min-height: 0; } }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month .dow { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; }
.month .cal-day { min-height: 104px; padding: 7px; }
.month .cal-day h4 { font-size: 12px; text-transform: none; letter-spacing: 0; }
.month .ev { padding: 4px 6px 4px 8px; font-size: 11.5px; }
@media (max-width: 900px) { .month { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; } .month .cal-day { min-height: 54px; padding: 4px; } .month .ev { font-size: 0; padding: 3px; margin-bottom: 2px; height: 6px; } .month .ev small { display: none; } .month .dow { font-size: 10px; } }

/* ── inbox ── */
.inbox { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.inbox-list { padding: 10px; max-height: calc(100vh - 210px); overflow: auto; }
.inbox-list .search { margin: 2px 2px 8px; }
.inbox-list .search input { padding-left: 34px; background: var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235d6660' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center; }
.mail { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px; border-radius: var(--r2); text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.mail:first-of-type { border-top: 0; }
.mail:hover { background: color-mix(in srgb, var(--solid) 70%, transparent); }
.mail[aria-current="page"] { background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); border-top-color: transparent; }
.mail .who { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; }
.mail .who .w { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.mail .subj { font-size: 13px; font-weight: 600; margin-top: 2px; }
.mail .prev { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail .chips { margin-top: 8px; }
.st-urgent { background: var(--bad-soft) !important; color: var(--bad) !important; box-shadow: none !important; }
.st-waiting { background: var(--warn-soft) !important; color: var(--warn) !important; box-shadow: none !important; }
.st-fyi { background: var(--info-soft) !important; color: var(--info) !important; box-shadow: none !important; }
.st-done { background: var(--good-soft) !important; color: var(--good) !important; box-shadow: none !important; }
.inbox-detail { padding: 22px; min-height: 420px; }
.inbox-detail .msgs { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 16px 6px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; white-space: pre-wrap; }
.bubble.out { align-self: flex-end; border-radius: 16px 16px 6px 16px; background: var(--t-mint); }
.bubble small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.inbox-empty { display: grid; place-content: center; text-align: center; min-height: 360px; color: var(--muted); }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } .inbox.has-item .inbox-list { display: none; } .inbox-list { max-height: none; } }

/* ── directory ── */
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap); }
.dir-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .25s var(--ease); }
.dir-card:hover { transform: translateY(-2px); }
.dir-card .dc-top { display: flex; flex-direction: column; gap: 10px; }
.dir-card .dc-top b { display: block; font-size: 15px; font-weight: 600; }
.dir-card .dc-top span { font-size: 12.5px; color: var(--muted); }
.dir-card .dc-top .star { position: absolute; top: 14px; right: 14px; }
.dc-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.dc-line .ic { color: var(--muted); width: 14px; height: 14px; }
.dc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.dc-stats span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.dc-stats b { font-size: 14px; font-weight: 600; }
.dc-meter { display: none; }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--gap); }
@media (max-width: 980px) { .pcard-grid { grid-template-columns: 1fr; } }
.prof { text-align: center; padding: 22px; }
.prof .ring { width: 120px; height: 120px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--accent) calc(var(--p, 40) * 1%), var(--line) 0); }
.prof .ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--solid); }
.prof .ring .ava { position: relative; width: 98px; height: 98px; font-size: 30px; }
.prof .ring .score { position: absolute; right: 0; bottom: 6px; min-width: 32px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.prof h2 { font-size: 22px; }
.prof .role { color: var(--muted); margin-top: 4px; }
.prof .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; }
.prof .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.dl { list-style: none; margin: 0; padding: 0; }
.dl li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl li:last-child { border-bottom: 0; }
.dl .ic { color: var(--muted); }
.dl span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.dl b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); grid-template-rows: repeat(2, auto); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.hscroll.one { grid-template-rows: auto; }
.hscroll .tile { min-height: 120px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.metric { background: var(--solid); border-radius: var(--r2); padding: 10px 12px; display: block; min-width: 0; box-shadow: inset 0 0 0 1px var(--line); }
.metric span { font-size: 12px; color: var(--muted); display: block; font-weight: 600; }
.metric b { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.metric input { margin-top: 5px; padding: 7px 9px; font-size: 14px; font-weight: 600; }
.shot { display: block; border-radius: var(--r2); overflow: hidden; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.shot img { width: 100%; max-height: 340px; object-fit: contain; background: var(--bg); }
.shot span { display: flex; gap: 8px; align-items: center; padding: 9px 11px; font-size: 12.5px; font-weight: 600; }

/* review / pcard / lanes */
.lane { margin-bottom: 18px; }
.lane h3 { font-size: 14.5px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.pcard { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r2); margin-bottom: 8px; }
.pcard .who-line { color: var(--muted); }
.pcard .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.pcard .acts input { width: 86px; padding: 7px 10px; font-size: 13px; border-radius: 999px; }
.pcard .proof { grid-column: 1 / -1; display: grid; grid-template-columns: 200px 1fr; gap: 14px; background: var(--solid); border-radius: var(--r2); padding: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.pcard .proof img { border-radius: 10px; max-height: 170px; object-fit: cover; width: 100%; }
.pcard .quote { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--sand); border-radius: 0 8px 8px 0; background: var(--warn-soft); }
@media (max-width: 760px) { .pcard { grid-template-columns: auto 1fr; } .pcard .acts { grid-column: 1 / -1; justify-content: flex-start; } .pcard .proof { grid-template-columns: 1fr; } }
.rv-h { font-size: 18px; margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; scroll-margin-top: 80px; }
.rv-empty { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r2); border: 1.5px dashed var(--line-2); margin-bottom: 8px; color: var(--muted); }

/* kpi legacy cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis.four, .kpis.six { grid-template-columns: 1fr 1fr; } }
.kpi { padding: 16px; border-radius: var(--r3); text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kpi .k-go { color: var(--dim); }
.kpi > span, .kpi .k-lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.kpi.hot { background: var(--t-sand); }
.stack { display: flex; height: 7px; border-radius: 7px; overflow: hidden; margin-top: 10px; gap: 2px; background: var(--line); }
.stack i { display: block; height: 100%; }
.bar { display: grid; grid-template-columns: minmax(0, 130px) 1fr 40px; gap: 10px; align-items: center; padding: 6px 4px; font-size: 13px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.bar:hover { background: var(--accent-soft); }
.bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar i { display: block; height: 8px; border-radius: 8px; background: var(--accent); min-width: 4px; }
.bar b { text-align: right; }
.big-num { font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.big-num + .note { color: var(--muted); font-size: 13px; margin-left: 8px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); }
.chart .axis text { fill: var(--muted); font: 600 11px var(--font); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { fill: url(#cfill); }
.chart .target { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 6 6; }
.chart .pt { fill: var(--solid); stroke: var(--accent); stroke-width: 2.4; opacity: 0; transition: opacity .2s; }
.chart g.hit:hover .pt { opacity: 1; }
.chart g.hit rect { fill: transparent; }
.gauge-tile { border-radius: var(--r3); background: var(--accent); color: var(--on-accent); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.gauge-tile .panel-head h2 { color: var(--on-accent); }
.gauge { position: relative; width: 170px; max-width: 100%; margin: 4px auto 0; }
.gauge svg { width: 100%; height: auto; display: block; transform: rotate(-90deg); }
.gauge .g-bg { fill: none; stroke: #ffffff26; stroke-width: 12; }
.gauge .g-v { fill: none; stroke: var(--t-sand); stroke-width: 12; stroke-linecap: round; }
.gauge .g-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .g-c b { font-size: 32px; font-weight: 600; line-height: 1; }
.gauge .g-c span { font-size: 12.5px; opacity: .85; margin-top: 4px; }
.segbar { display: flex; gap: 5px; height: 40px; margin: 14px 0 16px; }
.segbar i { display: block; border-radius: 10px; min-width: 12px; }
.seg-legend { list-style: none; margin: 0; padding: 0; }
.seg-legend li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.seg-legend li:last-child { border-bottom: 0; }
.seg-legend .d { width: 9px; height: 9px; border-radius: 3px; }
.seg-legend .n { color: var(--muted); }
.vbars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 150px; padding-top: 10px; }
.vbars .vb { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; text-align: center; }
.vbars .vb i { display: block; border-radius: 10px; background: var(--line-2); min-height: 6px; }
.vbars .vb.hot i { background: var(--accent); }
.vbars .vb.late i { background: var(--sand); }
.vbars .vb span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vbars .vb b { font-size: 12.5px; }
.dash-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--gap); margin-top: var(--gap); }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }

/* bulk bar */
.bulkbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(170%); z-index: 50; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 7px 7px 7px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); max-width: calc(100vw - 24px); }
.bulkbar.show { transform: translateX(-50%) translateY(0); visibility: visible; }
.bulkbar:not(.show) { visibility: hidden; }
.bulkbar .b-cnt { display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px 2px 2px; font-size: 13px; font-weight: 600; }
.bulkbar .b-cnt b { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: inline-grid; place-items: center; }
.bulkbar select, .bulkbar input { width: auto; max-width: 280px; padding: 8px 11px; font-size: 13px; border-radius: 999px; background-color: #ffffff1c; color: inherit; box-shadow: inset 0 0 0 1px #ffffff2a; }
.bulkbar select option { color: #1f2420; }
@media (max-width: 760px) { .bulkbar { left: 10px; right: 10px; bottom: 76px; transform: translateY(200%); border-radius: var(--r3); } .bulkbar.show { transform: none; } }

/* modal */
.mm-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: #1f242033; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.mm-back.open { opacity: 1; }
.mm { --tc: var(--t-sand); width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r4); padding: 22px; background: var(--tc); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rim), var(--shadow-lg); transform: scale(.95) translateY(8px); transition: transform .35s var(--ease); }
.mm-back.open .mm { transform: none; }
.mm.green { --tc: var(--t-mint); } .mm.red { --tc: var(--t-peach); } .mm.ink { --tc: var(--t-sky); } .mm.paper { --tc: var(--solid); } .mm.yellow { --tc: var(--t-sand); }
.mm-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.mm h2 { font-size: 22px; margin-top: 12px; }
.mm .mm-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.mm .amt-big { font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1; margin: 16px 0 14px; }
.stages { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 4px; }
.stages i { height: 5px; border-radius: 5px; background: var(--line-2); }
.stages i.on { background: var(--accent); }
.stage-l { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 4px; font-size: 11px; margin-top: 6px; color: var(--muted); }
.stage-l .on { color: var(--ink); font-weight: 700; }
.mm-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; padding: 12px; border-radius: var(--r2); background: color-mix(in srgb, var(--solid) 65%, transparent); }
.mm-info span { display: block; font-size: 11.5px; color: var(--muted); }
.mm-info b { font-size: 14px; overflow-wrap: anywhere; }
.mm-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 10px 0 16px; color: var(--ink-2); }
.mm-acts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.mm form { margin: 0; display: inline; }
.mm-people { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13.5px; font-weight: 600; }
.mm-people > span { display: inline-flex; gap: 8px; align-items: center; }

/* kanban */
.kb-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.kb-tools .search { flex: 1 1 220px; max-width: 300px; }
.kb-tools .search input { border-radius: 999px; padding-left: 36px; background: var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235d6660' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.kb-tools .avas { display: flex; gap: 4px; }
.kb-tools .avas .ava { width: 32px; height: 32px; }
.kb-tools .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kb-col { padding: 12px 10px 10px; display: flex; flex-direction: column; min-height: 400px; transition: box-shadow .2s; }
.kb-col.over { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.kb-col.nodrop { opacity: .55; }
.kb-h { display: flex; align-items: center; gap: 8px; padding: 2px 6px 0; font-weight: 600; }
.kb-h .d { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.kb-h .cnt { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--line); }
.kb-sum { padding: 2px 6px 10px 24px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kb-list { display: flex; flex-direction: column; gap: 8px; flex: 1; max-height: calc(100vh - 330px); min-height: 110px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.kb-card { min-height: 122px; cursor: grab; user-select: none; touch-action: pan-y; -webkit-user-drag: none; }
.kb-card.dragging { opacity: .35; }
.kb-card.ghost { position: fixed; z-index: 90; pointer-events: none; transform: rotate(-2.5deg) scale(1.03); box-shadow: var(--shadow-lg); }
.kb-card .tile-title { font-size: 14.5px; }
.kb-card .tile-amt { font-size: 19px; }
.kb-empty { padding: 16px 8px; text-align: center; color: var(--muted); font-size: 12.5px; border: 1.5px dashed var(--line-2); border-radius: var(--r2); }
.kb-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.kb-drop { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r3); border: 1.5px dashed var(--line-2); background: color-mix(in srgb, var(--solid) 60%, transparent); }
.kb-drop .ic-c { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--on-accent); background: var(--accent); }
.kb-drop.lost .ic-c { background: var(--solid); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.kb-drop b { display: block; }
.kb-drop span { font-size: 12.5px; color: var(--muted); }
.kb-drop.over { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.kb-drop.won { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.kb-hint { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.kb.list-view { grid-auto-flow: row; grid-auto-columns: auto; }
.kb.list-view .kb-col { min-height: 0; }
.kb.list-view .kb-list { max-height: none; flex-direction: row; flex-wrap: wrap; }
.kb.list-view .kb-card { width: 240px; }
@media (max-width: 620px) { .kb { grid-auto-columns: 84%; } .kb-drops { grid-template-columns: 1fr; } }

/* payouts console */
.wallet-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: var(--gap); background: var(--t-mint); }
.wallet-box .w-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.wallet-box .w-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wallet-box .w-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.wallet-box .addr { font-size: 16px; font-weight: 600; }
.wallet-box #net:not(:empty) { padding: 4px 10px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-weight: 700; }
.wallet-box #bal { font-weight: 600; font-size: 15px; }
.total-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-top: 14px; background: var(--t-sand); border-radius: var(--r3); }
.total-line b#total { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.log { font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 12px; white-space: pre-wrap; }
.log:not(:empty) { padding: 12px 14px; border-radius: var(--r2); background: var(--ink); color: var(--bg); }
td input.amt { width: 104px; padding: 7px 9px; font-size: 13.5px; text-align: right; font-weight: 600; }
td input.addr { width: 330px; padding: 7px 9px; font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
td.st a { color: var(--good); font-weight: 700; text-decoration: none; }
.doc { background: var(--solid); border-radius: var(--r3); padding: 22px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.doc .doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.doc .doc-top small { display: block; text-align: right; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.doc .doc-top b { font-size: 16px; }
.doc .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; font-size: 13.5px; }
.doc .cols span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.doc .line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.doc .line.total { font-weight: 700; font-size: 16px; border-top: 2px solid var(--ink); }
.stamp { display: inline-block; padding: 5px 14px; border: 2.5px solid var(--good); color: var(--good); border-radius: 9px; font-weight: 800; letter-spacing: .12em; transform: rotate(-9deg); margin: 10px 0 4px; }
.mm.receipt { --tc: var(--card); width: min(500px, 100%); }
@media print {
  body * { visibility: hidden !important; }
  .mm.receipt, .mm.receipt * { visibility: visible !important; }
  .mm-back { position: static; background: none; backdrop-filter: none; }
  .mm.receipt { position: absolute; left: 0; top: 0; box-shadow: none; width: 100%; }
  .mm.receipt .no-print { display: none !important; }
}
.tg-preview { border-radius: var(--r3); padding: 14px; background: var(--t-mint); }
.tg-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.tg-head svg { width: 32px; height: 32px; }
.tg-head b { display: block; font-size: 13.5px; }
.tg-head span { font-size: 12px; color: var(--muted); }
.tg-bubble { background: var(--solid); border-radius: 14px 14px 14px 4px; padding: 10px 13px; font-size: 14px; white-space: pre-wrap; max-width: 340px; line-height: 1.45; }
.tg-btn { max-width: 340px; margin-top: 5px; background: color-mix(in srgb, var(--solid) 70%, transparent); border-radius: 10px; padding: 9px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--info); }
.aud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r2); background: var(--t-sand); }
.aud #aud-n { font-size: 18px; font-weight: 600; }
.bc-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
.bc-grid > div:last-child { position: sticky; top: 84px; }
@media (max-width: 1100px) { .bc-grid > div:last-child { position: static; } }
.acc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } }
.audit-json { font: 12px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; background: var(--solid); border-radius: 10px; padding: 10px; max-width: 520px; overflow: auto; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.radar-mini, .radar-chips, .radar-acts, .radar-health, .radar-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.radar-chips { margin-bottom: 12px; }
.radar-text { white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); }
.radar-post { background: var(--solid); border-radius: var(--r2); padding: 12px; }
.radar-cover { border-radius: var(--r2); overflow: hidden; }
.radar-pager { display: flex; gap: 6px; margin-top: 12px; }
.radar-row-details summary { cursor: pointer; font-weight: 600; }
.notif { display: flex; gap: 12px; padding: 13px 16px; margin-bottom: 8px; }
.notif.unread { box-shadow: inset 3px 0 0 var(--sand), inset 0 0 0 1px var(--rim), var(--shadow); }

/* ═════════════ public site ═════════════ */
.topbar { position: sticky; top: 0; z-index: 40; padding: 12px 0; transition: background .25s, box-shadow .25s; }
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 46px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo .logo-mark { width: 36px; height: 36px; }
.wordmark { font: 700 19px/1 var(--font); letter-spacing: -.03em; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 13px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a .ic { display: none; }
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.topbar .actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.topbar .actions form { margin: 0; }
.me-btn { padding: 3px 12px 3px 3px; }
.me-ava, .adm-ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 12px var(--font); flex: none; }
.me-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 66px; left: var(--gutter); right: var(--gutter); flex-direction: column; gap: 2px; padding: 8px; background: var(--solid); border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .menu-btn { display: inline-grid; }
  .hide-sm { display: none !important; }
}
@media (max-width: 420px) { .wordmark { font-size: 17px; } .me-name { display: none; } .me-btn { padding: 3px; } }
.section { padding: clamp(44px, 6vw, 80px) 0; }
.sec-title { margin-bottom: 24px; max-width: 22ch; font-size: clamp(26px, 3vw, 34px); }
.hero { padding: clamp(24px, 5vw, 56px) 0 clamp(30px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1, .hero .h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 18px; font-weight: 600; }
.hero .ln { display: block; }
.hero .lede { margin-bottom: 24px; font-size: 16.5px; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.role-switch { display: inline-flex; padding: 3px; margin-bottom: 22px; border-radius: 999px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.role-thumb { display: none; }
.role-switch button { display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px/1 var(--font); padding: 9px 15px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .3s var(--ease), color .3s; }
.role-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
body[data-role="creator"] [data-for="brand"], body[data-role="brand"] [data-for="creator"] { display: none !important; }
.swap-in { animation: up .45s var(--ease); }
.trust-line { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trust-line li { display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 999px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; }
.trust-line .ic { width: 13px; height: 13px; color: var(--good); stroke-width: 2.6; }
.hero-note { display: none; }
.board { padding: 16px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 0 4px; }
.live { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14.5px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
.board-count { color: var(--muted); font-size: 13px; font-weight: 600; }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 4px 0; font-size: 12.5px; color: var(--muted); }
.board-foot a { color: var(--accent-text); font-weight: 600; }
.board-empty { padding: 22px 6px; color: var(--ink-2); }
.example-tag { padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: 12px; font-weight: 700; }
.board .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.board .tile { min-height: 138px; }
@media (max-width: 560px) { .board .tiles { grid-template-columns: 1fr; } .board .tile { min-height: 120px; } }
.proof { padding: 4px 0 8px; }
.proof-row { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.proof-row > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 18px; }
.proof-row > div:nth-child(1) { background: var(--t-mint); } .proof-row > div:nth-child(2) { background: var(--t-sand); }
.proof-row > div:nth-child(3) { background: var(--t-sky); } .proof-row > div:nth-child(4) { background: var(--t-peach); }
.proof-row dd { margin: 0; font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.proof-row dt { color: var(--ink-2); font-size: 13px; font-weight: 600; }
@media (max-width: 760px) { .proof-row { grid-template-columns: 1fr 1fr; } }
.split-head, .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 52px; align-items: end; margin-bottom: 24px; }
.split-head h2, .section-head h2 { font-size: clamp(26px, 3vw, 34px); }
@media (max-width: 860px) { .split-head, .section-head { grid-template-columns: 1fr; } }
.value-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--gap); align-items: stretch; }
.value-lead { border-radius: var(--r4); padding: 26px; background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.value-lead h2 { color: var(--on-accent); margin-bottom: 14px; max-width: 14ch; font-size: clamp(26px, 3vw, 34px); }
.value-lead .lede { color: #ffffffd0; }
.v-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #ffffff26; color: var(--on-accent); }
.value-lead .v-ic { margin-bottom: 50px; }
.v-ic.sm { width: 38px; height: 38px; border-radius: 11px; margin: 0; background: var(--accent-soft); color: var(--accent-text); }
.value-list { list-style: none; margin: 0; padding: 6px 20px; }
.value-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.value-list li:last-child { border-bottom: 0; }
.value-list h3 { margin-bottom: 4px; }
.value-list p { color: var(--muted); }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }
.trust-grid { display: grid; grid-template-columns: .7fr 1.6fr; gap: 14px 36px; align-items: start; }
.trust-grid h2 { max-width: 12ch; font-size: clamp(26px, 3vw, 34px); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trust-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 18px; }
.t-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.trust-list h3 { margin-bottom: 4px; }
.trust-list p { color: var(--muted); font-size: 13.5px; }
.score-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.score-chips span { padding: 3px 10px; border-radius: 999px; background: var(--t-sand); font-size: 12px; font-weight: 700; }
@media (max-width: 900px) { .trust-grid, .trust-list { grid-template-columns: 1fr; } }
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.rail li { padding: 16px; }
.rail-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; margin-bottom: 14px; }
.rail-ic { display: none; }
.rail h3 { font-size: 14.5px; margin-bottom: 5px; }
.rail p { color: var(--muted); font-size: 13px; }
@media (max-width: 1040px) { .rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .rail { grid-template-columns: 1fr; } }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tier-card { padding: 16px; }
.tier-card .hex-glow { margin-bottom: 12px; }
.tier-card .hex.lg { width: 46px; height: 46px; font-size: 12px; }
.tier-card p { color: var(--muted); font-size: 13px; }
.smart-note { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 14px 18px; background: var(--t-sand); }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr 1fr; } .smart-note { flex-direction: column; align-items: flex-start; } }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.format { padding: 18px; }
.format.wide { grid-column: span 2; background: var(--t-mint); }
.format.wide h3 { font-size: 22px; }
.f-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 12px; }
.format.wide .f-ic { background: var(--accent); color: var(--on-accent); }
.format h3 { margin-bottom: 5px; }
.format p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr 1fr; } .format.wide { grid-column: 1 / -1; } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px 36px; align-items: start; }
.faq-grid h2 { font-size: clamp(26px, 3vw, 34px); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: var(--r2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; font-weight: 600; font-size: 14.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; color: var(--ink-2); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: clamp(24px, 4vw, 44px); background: var(--t-mint); }
.cta-band h2 { max-width: 18ch; font-size: clamp(26px, 3vw, 34px); }
.cta-band .lede { margin-top: 8px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn { width: 100%; } }
.ledger { padding: 16px; }
.ledger .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .ledger .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ledger .tiles { grid-template-columns: 1fr; } }
.brief-page { grid-template-columns: 1fr 320px; }
.brief-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--gap); }
@media (max-width: 900px) { .brief-page { grid-template-columns: 1fr; } .brief-side { position: static; } }
.brief-head h1 { max-width: 16ch; }
.brief-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bp-label b { color: var(--ink); }
.bp-bar { flex: 1; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bp-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
details.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--accent-text); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .ic { transition: transform .3s var(--ease); }
details.more[open] summary .ic { transform: rotate(45deg); }
details.more .fields { margin-top: 12px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 20px; border-radius: var(--r3); background: var(--t-mint); }
.submit-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.submit-trust li { display: flex; gap: 8px; align-items: center; }
@media (max-width: 620px) { .submit-row .btn { width: 100%; } }
footer.site { padding: 22px 0 34px; color: var(--muted); font-size: 13px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 18px 36px; align-items: center; padding: 22px 24px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.foot-brand p { margin-top: 8px; max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.foot-links a:hover { color: var(--ink); }
.foot-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; } }
.login-card { max-width: 440px; margin: clamp(24px, 6vw, 60px) auto 80px; padding: 30px 28px 26px; text-align: center; border-radius: var(--r4); }
.login-card h1 { font-size: 28px; margin: 14px 0 8px; }
.login-card .lede { margin: 0 auto 20px; font-size: 14.5px; }
.login-card form { text-align: left; }
.login-card .logo-hero { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; }
.login-card .logo-hero svg { width: 56px; height: 56px; }
.waiting { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 13px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.orbit { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.next-steps { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.next-steps li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.next-steps .num { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; flex: none; }
.done-hex .hex { --c: #2f7247; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 940px; margin: clamp(20px, 5vw, 50px) auto 80px; align-items: stretch; }
.auth-split .login-card { margin: 0; max-width: none; }
.auth-aside { border-radius: var(--r4); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: var(--t-mint); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.auth-aside h2 { font-size: clamp(22px, 2.4vw, 28px); }
.auth-aside p { color: var(--ink-2); }
.auth-aside .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-aside .tile { min-height: 108px; background: var(--card); }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { order: 2; } }
.profile-card { padding: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.profile-name { font-size: 28px; line-height: 1.1; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; color: var(--muted); font-weight: 600; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; }
.profile-stats > div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; font-size: 12.5px; color: var(--muted); }
.profile-stats .ic { grid-row: span 2; width: 36px; height: 36px; padding: 10px; border-radius: 10px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.profile-stats b { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .profile-card { grid-template-columns: 1fr; padding: 18px 16px; } .profile-actions { flex-direction: row; flex-wrap: wrap; } }

/* ═════════════ OTP: check your email ═════════════ */
.otp-card { max-width: 440px; margin: clamp(24px, 6vw, 64px) auto 80px; padding: 30px 26px 22px; text-align: center; border-radius: var(--r4); overflow: hidden; }
.otp-mail { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.otp-card h1 { font-size: 26px; }
.otp-card h2 { font-size: 24px; margin-top: 6px; color: var(--good); }
.otp-sub { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.otp-sub b { color: var(--ink); font-weight: 600; }
.otp-form { margin-top: 22px; }
.otp-stage { position: relative; min-height: 64px; display: grid; place-items: center; transition: min-height .52s var(--ease); }
.otp-stage.orbiting { min-height: 190px; }
@media (prefers-reduced-motion: reduce) { .otp-stage { transition: none; } .otp-stage.orbiting { min-height: 64px; } }
.otp-slots { display: flex; justify-content: center; gap: 8px; position: relative; z-index: 2; transform-origin: 50% 50%; }
.otp-d { width: 48px !important; height: 56px; padding: 0 !important; border-radius: var(--r2) !important; text-align: center; font: 600 22px/1 var(--font) !important; color: var(--ink);
  background: var(--solid) !important; box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px #3c34240d !important; caret-color: var(--accent); transition: box-shadow .2s var(--ease), background .25s, color .25s, transform .2s var(--ease); }
.otp-d:focus { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-soft) !important; outline: none; }
.otp-d.filled { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent), 0 2px 6px -2px #3c342426 !important; }
.otp-d:focus:placeholder-shown, .otp-d:focus[value=""] { animation: caretglow 1.1s ease-in-out infinite; }
@keyframes caretglow { 50% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 8px var(--accent-soft) !important; } }
.otp-d.ok { background: var(--good) !important; color: var(--on-accent); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--good) 70%, transparent) !important; }
.otp-d.bad { background: var(--bad-soft) !important; color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad) !important; }
.otp-orbit { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; z-index: 1; }
.otp-orbit svg { width: 180px; height: 180px; }
.otp-ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.otp-hub { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.otp-stage.orbiting .otp-orbit { opacity: 1; }
.otp-slots.pulse-wait { animation: pulse 1s ease-in-out infinite; }
.otp-msg { min-height: 20px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--bad); }
.otp-submit { margin-top: 10px; }
.js .otp-card.js-on .otp-submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.otp-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.otp-foot form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; margin: 0; }
.otp-wait b { color: var(--ink); }
.otp-resend { font: 700 13px var(--font); color: var(--accent-text); background: none; border: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.otp-resend:hover { background: var(--accent-soft); }
.otp-sent { color: var(--good); font-weight: 700; margin-left: 6px; animation: up .3s var(--ease); }
.otp-app { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.otp-app:hover { color: var(--ink); }
.otp-links { display: flex; justify-content: center; gap: 16px; margin-top: 16px; font-size: 13px; }
.otp-done { padding: 6px 0 10px; }
.otp-burst { position: relative; width: 190px; height: 190px; margin: 0 auto 6px; display: grid; place-items: center; }
.otp-burst .r { position: absolute; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--good) 35%, transparent); animation: ringout 1.6s var(--ease) both; }
.otp-burst .r1 { width: 92px; height: 92px; } .otp-burst .r2 { width: 132px; height: 132px; animation-delay: .08s; border-style: dashed; } .otp-burst .r3 { width: 176px; height: 176px; animation-delay: .16s; opacity: .6; }
.otp-burst i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--good); opacity: 0;
  transform: rotate(var(--a)) translateY(calc(var(--d) * -1)); animation: spark 1.4s var(--ease) .1s both; }
.otp-badge { position: relative; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--good); color: var(--on-accent);
  box-shadow: 0 0 0 8px var(--good-soft), 0 12px 26px -10px color-mix(in srgb, var(--good) 80%, transparent); animation: pop .55s var(--ease) both; }
@keyframes ringout { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-20px); } 40% { opacity: 1; } 100% { opacity: .55; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)); } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 420px) { .otp-d { width: 42px !important; height: 52px; } .otp-slots { gap: 6px; } .otp-card { padding: 24px 16px 18px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ── кабинет креатора в оболочке ── */
.scontent .wrap { max-width: none; padding: 0; }
.scontent > .flash { margin: 0 0 14px; padding: 0; max-width: none; }
.scontent .page-head { padding-top: 0; }
.stop-bell { position: relative; flex: none; }
.stop-bell .badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--hot, #e49a62); color: var(--on-accent); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.cf-strip.cf-3 { grid-template-columns: auto repeat(2, minmax(0, 1fr)); }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.two .tile { min-height: 128px; }
.ktiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty.sm { padding: 26px 14px; }
.cal-chip { display: grid; place-items: center; width: 42px; height: 44px; border-radius: 12px; background: var(--t-sand); font-size: 11px; font-weight: 600; color: var(--ink-2); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.cal-chip b { font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.profile-mini .hex-glow svg { width: 40px; height: 40px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 1100px) { .tiles.two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .tiles.two, .ktiles.three { grid-template-columns: 1fr; }
  .cf-strip.cf-3 { grid-template-columns: 1fr 1fr; }
  .cf-strip.cf-3 .m { grid-column: 1 / -1; }
  .stop-bell { display: none; }
}

/* колонки рейла и панели тонируются на всю высоту страницы (сами элементы липкие и прозрачные) */
.shell { --rail-bg: color-mix(in srgb, var(--solid) 55%, transparent); --panel-bg: color-mix(in srgb, var(--solid) 40%, transparent); }
@media (min-width: 761px) {
  .shell { background: linear-gradient(90deg, var(--rail-bg) 0 calc(var(--rail) - 1px), var(--line) 0 var(--rail), transparent 0) no-repeat; }
  .srail { background: none; box-shadow: none; }
}
@media (min-width: 1101px) {
  .shell { background: linear-gradient(90deg, var(--rail-bg) 0 calc(var(--rail) - 1px), var(--line) 0 var(--rail),
    var(--panel-bg) 0 calc(var(--rail) + var(--panel) - 1px), var(--line) 0 calc(var(--rail) + var(--panel)), transparent 0) no-repeat; }
  .shell.panel-closed { background: linear-gradient(90deg, var(--rail-bg) 0 calc(var(--rail) - 1px), var(--line) 0 var(--rail), transparent 0) no-repeat; }
  .spanel { background: linear-gradient(180deg, color-mix(in srgb, var(--field-1) 50%, transparent), transparent 40%); box-shadow: none; }
}
.ov-grid.top { align-items: start; }
.sp-nav a > span:not(.cnt) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-theme { display: none; flex: none; }
.mob-theme .theme-ic-dark { display: none; }
:root[data-theme="dark"] .mob-theme .theme-ic-dark { display: inline-block; }
:root[data-theme="dark"] .mob-theme .theme-ic-light { display: none; }

@media (max-width: 760px) {
  .mob-theme { display: inline-grid; }
  .srail #theme-toggle { display: none; }
  .crumb.mob-only { display: inline-flex !important; align-items: center; gap: 4px; }
}

/* ═══════════════ Agency pages (creator side, profile, campaigns, builder) ═══════════════ */
:root { --night: #17201b; --night-2: #1f3a2c; --night-ink: #f2f0e8; --night-mute: #a9b5ac; --night-line: #ffffff1c; --hot: #e2793f; --hot-soft: #e2793f24; --lilac: #ece4f6; }
:root[data-theme="dark"] { --lilac: #2f2838; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lilac: #2f2838; } }

/* pills & small bits */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 12.5px var(--font); color: var(--ink-2);
  background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; }
.pill.good { background: var(--good-soft); color: var(--good); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 30%, transparent); }
.pill.accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 14px -8px var(--accent); }
.pill.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sand) 40%, transparent); }
.pill.bad { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.pill.info { background: var(--info-soft); color: var(--info); box-shadow: none; }
.pill.sm { padding: 3px 9px; font-size: 11.5px; }
.vcheck { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: var(--on-accent); vertical-align: 2px; }
.vcheck .ic { width: 13px; height: 13px; stroke-width: 3; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ico-tile { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.ico-tile.sm { width: 30px; height: 30px; border-radius: 9px; }
.ico-tile.sm .ic { width: 15px; height: 15px; }
.ico-tile.mint { background: var(--t-mint); color: var(--good); } .ico-tile.sand { background: var(--t-sand); color: var(--warn); }
.ico-tile.sky { background: var(--t-sky); color: #8a6d12; } .ico-tile.peach { background: var(--t-peach); color: var(--bad); }
.ico-tile.lilac { background: var(--lilac); color: #6b4fa0; } .ico-tile.ink { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .ico-tile.sky { color: #e9cf7a; } :root[data-theme="dark"] .ico-tile.lilac { color: #c7b0ee; }
.copy-group { display: flex; gap: 8px; align-items: stretch; }
.copy-group input { flex: 1; min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; margin: 0; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .25s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar-line { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar-line > i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.bar-line.hot > i { background: var(--hot); }
.bar-line.thick { height: 9px; }

/* dark hero (earnings, status) */
.night { position: relative; overflow: hidden; border-radius: var(--r4); padding: 26px 28px; color: var(--night-ink);
  background: radial-gradient(520px 320px at 92% 110%, #4e7a6080, transparent 70%), radial-gradient(420px 260px at 70% -30%, #e49a6230, transparent 70%), linear-gradient(135deg, var(--night), var(--night-2));
  box-shadow: var(--shadow-lg), inset 0 0 0 1px #ffffff12; }
.night .eyebrow { color: var(--night-mute); }
.night a { color: inherit; }
.night .muted, .night small { color: var(--night-mute); }
.night .rings { position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1px #ffffff10, inset 0 0 0 40px #ffffff05, inset 0 0 0 41px #ffffff0d, inset 0 0 0 90px #ffffff04, inset 0 0 0 91px #ffffff0b; }
.earn-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; align-items: start; }
.earn-hero .lp { font-size: clamp(40px, 5vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin-top: 10px; }
.earn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.earn-tile { position: relative; padding: 14px 14px 16px; border-radius: 16px; background: #ffffff0d; box-shadow: inset 0 0 0 1px var(--night-line); min-height: 92px; }
.earn-tile .eyebrow { font-size: 10.5px; padding-right: 34px; display: block; }
.earn-tile b { display: block; margin-top: 12px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.earn-tile .et-ic { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ffffff14; color: #cfe6d6; }
.earn-tile .et-ic .ic { width: 15px; height: 15px; }
.earn-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 4px; }
.wallet-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--night-mute); }
.wallet-line code { color: var(--night-ink); font-size: 12.5px; }
.icon-btn.on-night { background: #ffffff12; color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-line); }
.btn-night { background: #f2f0e8; color: var(--night); }
.btn-night:hover { background: #fff; }
.btn-night .arr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--night); color: #fff; margin-right: -6px; }
.btn-night[disabled], .btn-night.off { background: #ffffff1f; color: var(--night-mute); cursor: not-allowed; }
.status-night .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.status-night .sn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--night-line); max-width: 360px; }
.status-night .sn-grid b { display: block; font-size: 15px; margin-top: 2px; }
.shield-orb { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #6fc08f33, transparent 70%); box-shadow: 0 0 0 1px #6fc08f33, 0 0 0 22px #6fc08f0d, 0 0 0 23px #6fc08f22, 0 0 0 48px #6fc08f08; }
.shield-orb span { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #6fc08f24; color: #9fe0b5; box-shadow: inset 0 0 0 1px #6fc08f55; }
.shield-orb .ic { width: 30px; height: 30px; }

/* quick links */
.qlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ql { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r2); text-decoration: none; color: var(--ink);
  background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.ql:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); transform: translateY(-1px); }
.ql b { display: block; font-size: 14px; font-weight: 700; }
.ql span.s { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.ql > .ic:last-child { color: var(--dim); }

/* campaign cards (my campaigns, active) */
.ccards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ccards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); color: var(--ink); text-decoration: none; min-width: 0; }
.ccard .cc-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ccard .cc-top > div { min-width: 0; }
.ccard h3 { font-size: 15.5px; font-weight: 700; margin: 0; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard h3 a { color: inherit; text-decoration: none; }
.ccard .cc-sub { font-size: 12.5px; color: var(--muted); }
.ccard p { margin: 0; font-size: 13px; color: var(--ink-2); }
.ccard .cc-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.ccard .cc-foot b { color: var(--ink); font-size: 14px; }
.ccard.dashed { align-items: center; justify-content: center; text-align: center; background: transparent; box-shadow: none; border: 1.5px dashed var(--line-2); min-height: 200px; }
.ccard.dashed:hover { border-color: var(--accent); }
.list-view .ccards { grid-template-columns: 1fr; }
.list-view .ccard { flex-direction: row; align-items: center; flex-wrap: wrap; }
.list-view .ccard .cc-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
.list-view .ccard p { display: none; }
.logo-sq { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; font: 700 15px var(--font); color: #fff; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px #0000000f; }
.logo-sq img { width: 100%; height: 100%; object-fit: cover; }
.logo-sq.lg { width: 56px; height: 56px; border-radius: 15px; font-size: 19px; }
.logo-sq.xl { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.lc1 { background: #4e7a60; } .lc2 { background: #c9733f; } .lc3 { background: #2d6a6e; } .lc4 { background: #8a5a9b; } .lc5 { background: #a7852a; } .lc6 { background: #3c4440; }

/* KPI strip + tabs */
.kstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.kstrip > div { padding: 16px 20px; }
.kstrip > div + div { box-shadow: inset 1px 0 0 var(--line); }
.kstrip b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.tabbar { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); overflow-x: auto; scrollbar-width: none; }
.tabbar a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font: 600 13px var(--font); color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabbar a .n { min-width: 20px; padding: 0 6px; height: 19px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: var(--line); color: var(--ink-2); }
.tabbar a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.tabbar a[aria-current="page"] .n { background: var(--accent); color: var(--on-accent); }
.tabbar .grow { flex: 1; }
.vt { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.vt button { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.vt button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.sec-h h2 { font-size: 17px; font-weight: 700; margin: 0; }
.sec-h .muted { font-size: 12.5px; }

/* opportunities */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); margin-bottom: 16px; }
.filterbar .fsearch { flex: 1 1 260px; position: relative; }
.filterbar .fsearch .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filterbar .fsearch input { padding-left: 36px; }
.filterbar select { width: auto; min-width: 140px; }
.tg-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r3); background: var(--hot-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 30%, transparent); margin-bottom: 14px; }
.tg-banner b { color: var(--hot); display: block; font-size: 13.5px; }
.tg-banner span { font-size: 13px; color: var(--ink-2); }
.tg-banner .btn { margin-left: auto; }
.ocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ocard { display: flex; flex-direction: column; padding: 10px 10px 4px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.ocard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg); }
.oc-cover { position: relative; height: 158px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; text-align: center; color: #fff; isolation: isolate; }
.oc-cover .blur { position: absolute; inset: -20px; z-index: -1; background-size: cover; background-position: center; filter: blur(18px) saturate(1.2) brightness(.62); transform: scale(1.1); }
.oc-cover .glyph { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; font: 800 120px/1 var(--font); color: #ffffff12; letter-spacing: -.06em; }
.oc-cover .oc-logo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; margin: 0 auto 6px; font: 700 18px var(--font); box-shadow: 0 0 0 2px #ffffffd9, 0 6px 18px #0005; background: inherit; }
.oc-cover .oc-logo img { width: 100%; height: 100%; object-fit: cover; }
.oc-cover .oc-name { font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 6px #0006; }
.oc-cover .oc-x { font-size: 10.5px; opacity: .8; }
.oc-cover .oc-kind { display: inline-block; margin-top: 5px; padding: 2px 7px; border-radius: 6px; background: #00000059; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.oc-badge { position: absolute; top: 8px; right: 8px; padding: 4px 9px; border-radius: 999px; background: #fffdf9; color: #1f2420; font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 8px #0003; }
.oc-badge.bl { top: auto; right: auto; left: 8px; bottom: 8px; background: #000000a6; color: #fff; }
.oc-body { padding: 12px 6px 6px; }
.oc-body h3 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.015em; line-height: 1.25; }
.oc-body .ob-brand { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.oc-paid { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; margin: 10px 0 5px; color: var(--ink-2); }
.oc-rows { margin-top: 10px; }
.oc-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.oc-rows > div b { font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.oc-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 10px; }
.oc-amt b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.oc-amt small { font-size: 11.5px; color: var(--muted); }

/* campaign detail */
.cd { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cd-hero { position: relative; overflow: hidden; padding: 22px 24px 18px; border-radius: var(--r4); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.cd-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(520px 300px at 100% 0%, var(--t-mint), transparent 70%), radial-gradient(380px 260px at 85% 120%, var(--t-sand), transparent 70%); opacity: .9; pointer-events: none; }
.cd-hero > * { position: relative; }
.cd-hero.has-cover::after { content: ""; position: absolute; inset: 0 0 0 45%; background: var(--cover) center / cover; opacity: .32; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.cd-hero .ch-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cd-hero .ch-brand { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-weight: 700; }
.cd-hero h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin: 12px 0 0; }
.cd-hero .ch-sum { margin: 10px 0 0; color: var(--ink-2); max-width: 62ch; white-space: pre-line; }
.cd-hero .ch-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.cd-hero .ch-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.curated { display: inline-flex; align-items: center; gap: 8px; }
.curated small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cd-secs { margin-top: 16px; border-radius: var(--r4); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); overflow: hidden; }
.cd-secs > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cd-secs > header h2 { font-size: 17px; margin: 0; }
.cd-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 18px 20px; border-top: 1px solid var(--line); }
.cd-secs > header + .cd-row { border-top: 0; }
.cd-row .cr-l { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 13.5px; }
.cd-row .cr-l .ico-tile { margin-top: -4px; }
.cd-row .cr-r { font-size: 14px; color: var(--ink-2); min-width: 0; }
.cd-row .cr-r p { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.cd-row .cr-r p:last-child { margin-bottom: 0; }
.cd-row .cr-r ul { margin: 0; padding-left: 18px; }
.cd-row .cr-r li { margin: 3px 0; }
.prize-table { border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; background: var(--solid); }
.prize-table > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.prize-table > div:first-child { border-top: 0; }
.medal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800; margin-right: 8px; color: #fff; }
.medal.m1 { background: linear-gradient(135deg, #e7c25a, #b8892a); } .medal.m2 { background: linear-gradient(135deg, #c9cdd2, #8f979f); } .medal.m3 { background: linear-gradient(135deg, #d99b6a, #9b5d33); }
.medal.mx { background: var(--line-2); color: var(--ink-2); }
.pz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pz-head b { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 5px 0; color: var(--ink); font-weight: 500; }
.steps-list li .sn { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; z-index: 1; }
.steps-list li + li::before { content: ""; position: absolute; left: 11.5px; top: -9px; height: 14px; width: 1px; background: var(--line-2); }
.cd-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.cd-side .side-card { padding: 18px; border-radius: var(--r4); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.side-sec { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.rate-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
.rate-big b { font-size: 38px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.rate-big .per { font-size: 16px; color: var(--muted); font-weight: 600; }
.rate-big .pill { margin-left: auto; }
.paid-in { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--t-sand); color: var(--warn); font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sand) 35%, transparent); }
.warn-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--hot-soft); color: var(--hot); font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 35%, transparent); }
.info-box { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--t-sky); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.tl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 700; margin: 6px 0 10px; }
.tl-row small { color: var(--muted); font-weight: 600; }
.cta-big { width: 100%; justify-content: center; padding: 13px 18px; font-size: 14.5px; border-radius: 14px; }
.ystatus { margin-top: 16px; border-radius: var(--r4); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); overflow: hidden; }
.ystatus > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ystatus > header h2 { font-size: 15px; margin: 0; }
.ys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 18px; }
.ys-box { padding: 12px 14px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.ys-box b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.ys-box b small { font-size: 18px; color: var(--dim); }
.segbar { display: flex; gap: 4px; margin-top: 8px; }
.segbar i { flex: 1; height: 5px; border-radius: 4px; background: var(--line-2); }
.segbar i.on { background: var(--accent); }
.segbar i.pend { background: var(--sand); }
.sub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.sub-row a { overflow-wrap: anywhere; }
.board-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.board-row.me { background: var(--accent-soft); font-weight: 700; }
.board-row .num { text-align: right; }

/* profile (public + overview) */
.pf { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pf-main, .pf-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.pf-ava { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 700 30px var(--font); color: #fff; box-shadow: 0 0 0 4px var(--solid), 0 8px 24px -10px #0006; }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; }
.pf-head h1 { font-size: 30px; letter-spacing: -.03em; margin: 2px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-head .handle { color: var(--muted); font-weight: 600; font-size: 14px; }
.pf-head .bio { margin: 10px 0 0; color: var(--ink-2); max-width: 64ch; white-space: pre-line; }
.pf-earned { text-align: right; }
.pf-earned b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.pf-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: 18px; }
.pf-strip > div { padding: 12px 8px; text-align: center; }
.pf-strip .eyebrow { font-size: 10.5px; color: var(--accent-text); }
.pf-strip b { display: block; font-size: 17px; font-weight: 700; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psec { border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); overflow: hidden; }
.psec > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; background: color-mix(in srgb, var(--t-mint) 55%, transparent); border-bottom: 1px solid var(--line); }
.psec > header h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; margin: 0; }
.psec > header h2 .ic { color: var(--accent-text); }
.psec > header a { font-size: 12.5px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.psec > .pb { padding: 16px 18px; }
.aud-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.aud-tile { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.aud-tile b { display: block; font-size: 13.5px; }
.aud-tile small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-tile > span:last-child { min-width: 0; }
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.rate-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.rate-grid > div > span { display: inline-flex; align-items: center; gap: 9px; }
.rate-grid > div > span .ic { color: var(--muted); }
.rate-grid .unset { color: var(--dim); font-weight: 500; }
.rate-plat { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 14px 0 0; grid-column: 1 / -1; }
.rate-plat:first-child { margin-top: 0; }
.conn-list > div { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.conn-list > div:last-child { border-bottom: 0; }
.conn-list b { display: block; font-size: 13.5px; }
.conn-list small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.conn-list .cstate { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--good); white-space: nowrap; }
.conn-list .cstate.self { color: var(--muted); }
.conn-list .cstate.add { color: var(--accent-text); text-decoration: none; }
.plat-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.plat-ic .ic { width: 15px; height: 15px; }
.plat-ic.x { background: #1f2420; color: #fff; } .plat-ic.telegram { background: #e3f1f8; color: #2a8bbf; } .plat-ic.youtube { background: #fbe4e2; color: #c4302b; }
.plat-ic.tiktok { background: #e9e7ec; color: #1f2420; } .plat-ic.instagram { background: #fbe2ee; color: #c13584; } .plat-ic.discord { background: #e7e8fb; color: #5865f2; } .plat-ic.linkedin { background: #e2edf8; color: #0a66c2; }
.status-path .big { font-size: 30px; margin-top: 10px; }
.status-path .sp-sub { font-weight: 600; margin-top: 4px; }
.status-path p { color: var(--night-mute); font-size: 13px; margin: 10px 0 0; }
.status-path .momentum { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #8fe0ab; font-size: 13px; font-weight: 700; }
.status-path .sn-grid { margin-top: 16px; }
.status-path .vbadge { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #6fc08f; color: #10251a; transform: rotate(8deg); box-shadow: 0 8px 20px -8px #6fc08f; }
.status-path .vbadge .ic { transform: rotate(-8deg); stroke-width: 3; }
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-tiles > div { padding: 16px 10px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.st-tiles b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.st-tiles span { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.st-tiles.small { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.st-tiles.small > div { padding: 10px; }
.st-tiles.small b { font-size: 16px; }
.st-tiles.small span { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 11.5px; }
.tag-groups > div + div { margin-top: 12px; }
.tag-groups .tg-l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.tgc { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin: 0 4px 6px 0; }
.tgc.g0 { background: var(--t-sky); color: #6b5410; } .tgc.g1 { background: #e2ecf8; color: #2c5d94; } .tgc.g2 { background: var(--t-sand); color: #8a4d17; } .tgc.g3 { background: var(--lilac); color: #6b4fa0; } .tgc.g4 { background: var(--t-peach); color: #a03a4a; }
:root[data-theme="dark"] .tgc { color: var(--ink); } :root[data-theme="dark"] .tgc.g1 { background: #1e2a3a; }
.past-list > a, .past-list > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.past-list > * + * { margin-top: 8px; }
.past-list .pill { margin-left: auto; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shots a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.showcase a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 12.5px; min-width: 0; }
.showcase a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* profile editor */
.pub-link { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); }
.pub-link code { font-size: 14px; font-weight: 700; color: var(--ink); background: none; padding: 0; }
.pub-link .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-card { padding: 18px 20px; border-radius: var(--r3); margin-top: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--t-mint) 80%, transparent), color-mix(in srgb, var(--t-sky) 70%, transparent)); box-shadow: inset 0 0 0 1px var(--rim); }
.cp-card .cp-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cp-card .cp-top h2 { font-size: 15.5px; margin: 0; display: flex; align-items: center; gap: 8px; }
.cp-card .cp-top .btn { margin-left: auto; }
.cp-card .bar-line { margin: 12px 0 6px; background: #ffffff8c; }
:root[data-theme="dark"] .cp-card .bar-line { background: #ffffff14; }
.cp-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.cp-items > a, .cp-items > span { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--solid) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.cp-items .done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dim); }
.cp-items .ck { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cp-items .done .ck { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.cp-items .ck .ic { width: 11px; height: 11px; stroke-width: 3; }
.ed { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.ed-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 12px; }
.ed-sum { padding: 18px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.ed-sum .who { display: flex; gap: 12px; align-items: center; }
.ed-sum .pf-ava { width: 56px; height: 56px; font-size: 19px; box-shadow: 0 0 0 3px var(--solid); }
.ed-sum .mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ed-sum .mtiles > div { padding: 10px; border-radius: 12px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.ed-sum .mtiles span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ed-sum .mtiles b { display: block; font-size: 16px; margin-top: 3px; }
.ed-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); }
.ed-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.ed-nav a:hover { background: var(--solid); color: var(--ink); }
.ed-nav a .ok { margin-left: auto; color: var(--good); }
.ed-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ecard { padding: 18px 20px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); scroll-margin-top: 90px; }
.ecard > h2 { font-size: 16px; margin: 0; }
.ecard > .sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 14px; }
.ecard .form-actions { margin-top: 14px; }
.plat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plat-card { padding: 14px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.plat-card h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin: 0 0 10px; }
.acct-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; margin-bottom: 6px; }
.acct-row b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row .grow { flex: 1; min-width: 0; }
.acct-row small { color: var(--muted); }
.acct-row form { margin: 0; }
.add-acct { width: 100%; justify-content: center; background: var(--hot-soft); color: var(--hot); box-shadow: none; }
.add-acct:hover { background: color-mix(in srgb, var(--hot) 22%, transparent); }
.code-hint { font-size: 11.5px; color: var(--muted); margin: -2px 0 6px 2px; }
.code-hint code { font-weight: 700; color: var(--ink); }
.choice-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-chips label { position: relative; }
.choice-chips input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chips span { display: inline-flex; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.choice-chips input:checked + span { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.choice-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.price-card { border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.price-card > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13.5px; }
.price-card > header .btn { margin-left: auto; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); }
.prow:first-of-type { border-top: 0; }
.prow select, .prow input { padding: 7px 9px; font-size: 13px; }
.prow input[type=hidden] { display: none; }
.money-in { position: relative; }
.money-in::before { content: "$"; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.money-in input { padding-left: 20px; }
.upload-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r2); border: 1.5px dashed var(--line-2); flex-wrap: wrap; }
.upload-box b { display: block; font-size: 13.5px; }
.upload-box small { color: var(--muted); }
.upload-box .btn { margin-left: auto; position: relative; overflow: hidden; }
.upload-box .btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* referrals */
.ref-top { padding: 18px 20px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.ref-top .rt-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ref-top .rt-row > div:first-child b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.mstats { display: flex; gap: 8px; }
.mstats > div { min-width: 82px; padding: 8px 12px; border-radius: 12px; text-align: center; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.mstats b { display: block; font-size: 18px; } .mstats span { font-size: 11.5px; color: var(--muted); }
.mstats .g { background: var(--t-mint); } .mstats .g b { color: var(--good); }
.mstats .s { background: var(--t-sand); } .mstats .s b { color: var(--warn); }
.prog-box { margin-top: 14px; padding: 12px 14px; border-radius: var(--r2); background: color-mix(in srgb, var(--t-mint) 80%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 25%, transparent); }
.prog-box .pb-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.prog-box .pb-row b { color: var(--good); }
.prog-box .bar-line { margin: 8px 0 6px; background: #ffffff99; }
:root[data-theme="dark"] .prog-box .bar-line { background: #ffffff14; }
.prog-box small { color: var(--muted); }
.ref-card h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15.5px; }
.ref-card h3 small { display: block; font-size: 12.5px; font-weight: 700; color: var(--good); margin-top: 2px; }
.ref-card.brand h3 small { color: #6b4fa0; }
.ref-card .lbl { font-size: 12px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.ref-card ol, .ref-card ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.ref-card .how { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ref-card .how p { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.faq details { border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.faq details + details { margin-top: 8px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; font-weight: 700; font-size: 13.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 14px 14px; font-size: 13.5px; color: var(--ink-2); }
.empty-box { padding: 30px 16px; border-radius: var(--r2); text-align: center; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.empty-box .ico-tile { margin: 0 auto 10px; }
.empty-box b { display: block; } .empty-box span { font-size: 12.5px; color: var(--muted); }
.act-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.act-row:first-child { border-top: 0; }
.act-row .grow { flex: 1; min-width: 0; }
.act-row small { display: block; color: var(--muted); font-size: 12px; }

/* how it works */
.hiw-hero { text-align: center; padding: 40px 24px 34px; border-radius: var(--r4); background: radial-gradient(500px 240px at 20% 0%, var(--t-mint), transparent 70%), radial-gradient(500px 240px at 90% 100%, var(--t-sand), transparent 70%), var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.hiw-hero .ico-tile { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 16px; }
.hiw-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; margin: 0; }
.hiw-hero p { margin: 12px auto 0; max-width: 58ch; color: var(--ink-2); font-size: 15px; }
.hiw-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 22px 0 6px; }
.hiw-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px; font: 600 13px var(--font); color: var(--ink-2); text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); }
.hiw-tabs a[aria-current="true"], .hiw-tabs a:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.hiw-sec { margin-top: 34px; scroll-margin-top: 90px; }
.hiw-sec > h2 { text-align: center; font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.hiw-sec > p.lead { text-align: center; max-width: 70ch; margin: 0 auto 16px; color: var(--muted); }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step-card { padding: 16px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.step-card .sc-top { display: flex; justify-content: space-between; align-items: center; }
.step-card .sc-n { font-size: 13px; font-weight: 700; color: var(--dim); }
.step-card h3 { font-size: 15.5px; margin: 14px 0 6px; }
.step-card p { margin: 0; font-size: 13px; color: var(--ink-2); }
.status3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st3 { padding: 16px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); }
.st3 h3 { display: flex; align-items: center; gap: 7px; font-size: 15px; margin: 0 0 6px; }
.st3 p { margin: 0; font-size: 13px; color: var(--ink-2); }
.st3.good h3 { color: var(--good); } .st3.neutral h3 { color: var(--info); } .st3.attention h3 { color: var(--warn); }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.way { display: flex; flex-direction: column; padding: 18px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); scroll-margin-top: 90px; }
.way h3 { font-size: 17px; margin: 14px 0 4px; }
.way > p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.way ul.checks { list-style: none; margin: 0 0 14px; padding: 0; }
.way ul.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 3px 0; color: var(--ink-2); }
.way ul.checks li .ic { color: var(--accent); flex: none; margin-top: 2px; }
.way .kinds { margin: 0 0 14px; }
.way .btn { margin-top: auto; justify-content: center; }
.tier-table { border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); overflow: hidden; }
.tier-table > div { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: center; font-size: 13.5px; }
.tier-table > div:first-child { border-top: 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tier-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.plat-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.plat-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 13.5px; }

/* settings: connections + notifications */
.set-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.set-nav { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); }
.set-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.set-nav a:hover { background: var(--solid); color: var(--ink); }
.set-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.notif-card { padding: 16px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.notif-card h3 { font-size: 15px; margin: 0 0 4px; }
.notif-card p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.notif-card + .notif-card { margin-top: 10px; }
.fake-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }

/* boost */
.boost { max-width: 640px; margin: 0 auto; }
.boost .bcard { padding: 18px 20px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.boost .bcard + .bcard { margin-top: 14px; }
.boost .tip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.boost .tip .ic { color: var(--hot); flex: none; }
.in-ic { position: relative; }
.in-ic > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.in-ic input { padding-left: 36px; }
.boost details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.boost details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.boost details summary::-webkit-details-marker { display: none; }
.boost details textarea { margin-top: 10px; }
.bud-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bud-head h2 { font-size: 16px; margin: 0; }
.bud-head b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.bslider { margin: 22px 4px 4px; }
.bslider input[type=range] { width: 100%; accent-color: var(--hot); padding: 0; background: none; box-shadow: none; }
.bstops { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.bstops button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 2px 0; }
.bstops button.on { color: var(--hot); }
.est-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.est-tiles > div { padding: 14px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.est-tiles b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.est-tiles span { font-size: 12.5px; color: var(--muted); }
.ava-stack { display: flex; align-items: center; }
.ava-stack .ava { width: 34px; height: 34px; margin-left: -8px; box-shadow: 0 0 0 2px var(--card); font-size: 11px; }
.ava-stack .ava:first-child { margin-left: 0; }
.boost-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.btn-hot { background: var(--hot); color: var(--on-accent); box-shadow: 0 8px 18px -10px var(--hot); }
.btn-hot:hover { filter: brightness(1.05); }

/* admin builder */
.bld { display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.bld-rail { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); }
.bld-rail button { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; border: 0; background: none; text-align: left; font: 600 13.5px var(--font); color: var(--ink-2); cursor: pointer; position: relative; }
.bld-rail button .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line-2); }
.bld-rail button:hover { background: var(--solid); }
.bld-rail button[aria-current="step"] { background: var(--accent-soft); color: var(--accent-text); }
.bld-rail button[aria-current="step"] .n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.bld-rail button.done .n { background: var(--t-mint); color: var(--good); box-shadow: none; }
.bld-rail button + button::before { content: ""; position: absolute; left: 22.5px; top: -8px; height: 12px; width: 1px; background: var(--line-2); }
.bld-main fieldset { border: 0; margin: 0; padding: 20px 22px; border-radius: var(--r4); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); min-width: 0; }
.bld-main legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; padding: 0; }
.bld-main legend + * { clear: both; }
.bld-main legend .lg-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.bld-main .grp-l { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.type-card { position: relative; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card > span { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px; border-radius: var(--r2); background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s, background .15s; }
.type-card > span:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.type-card b { font-size: 13.5px; } .type-card small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.type-card input:checked + span { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.type-card input:checked + span .ico-tile { background: var(--accent); color: var(--on-accent); }
.type-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.type-cards.models { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rt { border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; background: var(--solid); }
.rt > div { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); }
.rt > div:first-child { border-top: 0; }
.rt .rt-l b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.rt .rt-l small { display: block; font-size: 11.5px; color: var(--muted); margin-left: 18px; }
.rt input { padding: 8px 10px; }
.rt-tbl { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--solid); overflow: hidden; }
.rt-tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); }
.rt-tbl td { padding: 6px 10px; border-top: 1px solid var(--line); }
.rt-tbl tbody tr:first-child td { border-top: 0; }
.rt-tbl input, .rt-tbl select { padding: 7px 9px; font-size: 13px; }
.bld-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 12px; }
.bld-side .side-card { padding: 16px; border-radius: var(--r3); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); }
.bld-side .side-card h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin: 0 0 10px; }
.bld-side .kv { padding: 7px 0; font-size: 12.5px; }
.bld-side .kv b { font-size: 12.5px; max-width: 60%; overflow-wrap: anywhere; }
.est-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.est-grid > div { padding: 10px; border-radius: 12px; background: var(--solid); box-shadow: inset 0 0 0 1px var(--line); }
.est-grid span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.est-grid b { display: block; font-size: 18px; margin-top: 2px; }
.est-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.preset-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.preset { flex: none; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--r2); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; }
.preset small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.preset[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.step-btns { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.ac-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r4); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow); position: relative; overflow: hidden; }
.ac-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(480px 240px at 100% 0%, var(--t-mint), transparent 70%); pointer-events: none; }
.ac-hero > * { position: relative; }
.ac-hero h1 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 0; }
.ac-hero .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ac-tabs { margin: 14px 0 16px; }

@media (max-width: 1240px) { .bld { grid-template-columns: 190px minmax(0, 1fr); } .bld-side { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .cd, .pf { grid-template-columns: 1fr; }
  .cd-side { position: static; }
  .earn-hero { grid-template-columns: 1fr; }
  .steps4 { grid-template-columns: 1fr 1fr; }
  .ccards.three { grid-template-columns: 1fr 1fr; }
  .ed { grid-template-columns: 1fr; } .ed-side { position: static; }
  .ed-nav { flex-direction: row; overflow-x: auto; } .ed-nav a { white-space: nowrap; }
}
@media (max-width: 860px) {
  .bld { grid-template-columns: 1fr; } .bld-rail { position: static; flex-direction: row; overflow-x: auto; }
  .bld-rail button { grid-template-columns: 26px auto; white-space: nowrap; } .bld-rail button + button::before { display: none; }
  .bld-side { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; } .set-nav { position: static; flex-direction: row; overflow-x: auto; } .set-nav a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .earn-tiles { grid-template-columns: 1fr 1fr; }
  .night { padding: 20px 18px; }
  .shield-orb { display: none; }
  .qlinks, .ccards, .ccards.three, .ways, .status3, .steps4, .plat-cards, .price-cards, .cp-items, .rate-grid { grid-template-columns: 1fr; }
  .kstrip b { font-size: 20px; } .kstrip > div { padding: 12px 14px; }
  .pf-head { grid-template-columns: auto minmax(0, 1fr); } .pf-earned { grid-column: 1 / -1; text-align: left; }
  .pf-ava { width: 72px; height: 72px; font-size: 24px; }
  .pf-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pf-strip > div:nth-child(n+4) { box-shadow: inset 0 1px 0 var(--line); }
  .st-tiles { grid-template-columns: 1fr 1fr; }
  .cd-row { grid-template-columns: 1fr; gap: 8px; }
  .ys-grid { grid-template-columns: 1fr; }
  .tier-table > div { grid-template-columns: 1fr 1fr; } .tier-table > div > :nth-child(3) { grid-column: 1 / -1; color: var(--muted); }
  .filterbar select { flex: 1 1 140px; }
  .tg-banner { flex-wrap: wrap; } .tg-banner .btn { margin-left: 0; }
  .ac-hero { grid-template-columns: auto minmax(0, 1fr); } .ac-hero .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .mstats { flex-wrap: wrap; }
  .prow { grid-template-columns: minmax(0, 1fr) 96px auto; }
}
.add-acct-d summary { list-style: none; display: flex; }
.add-acct-d summary::-webkit-details-marker { display: none; }
.add-acct-d[open] summary { background: var(--line); color: var(--ink-2); }
.logo-sq.sm-logo { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.js .sr-js { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ccard .cc-foot { flex-wrap: wrap; }
.ccard .cc-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.switch.small { font-size: 12px; }
.oc-cover { height: 172px; padding-bottom: 26px; }
.oc-cover .oc-kind { margin-top: 4px; }
.status-path .sn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 14px; border-top: 1px solid var(--night-line); }
.status-path .sn-grid b { display: block; font-size: 14.5px; margin-top: 2px; }
.ecard .f > .btn, .ecard .f > button, .ecard .form-stack > div > .btn { align-self: flex-start; width: auto; }
.ecard .f.full { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.ecard label.f.full { flex-direction: column; align-items: stretch; }
.money-in input, .rt .money-in input, .rt-tbl .money-in input, .prow .money-in input { padding-left: 22px !important; }
.ac-hero { grid-template-columns: auto minmax(0, 1fr); }
.ac-hero .acts { grid-column: 1 / -1; justify-content: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.ov-grid > *, .grid2 > *, .ed > *, .cd > *, .pf > *, .set-grid > *, .bld > * { min-width: 0; }
@media (max-width: 1100px) { .ed { grid-template-columns: minmax(0, 1fr); } }
.tg-banner > div { flex: 1 1 220px; min-width: 0; }
.earn-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .earn-tiles.three { grid-template-columns: 1fr 1fr; } .earn-tiles.three > :first-child { grid-column: 1 / -1; } }
