/* Belles Exposure. Same system as riseballanalytics.com: one 1160px column, rules between sections,
   summary first, depth below. Dark-first, light follows the OS. */
:root {
  --bg: #121417; --surface: #181c1f; --surface-2: #1f2427; --line: #2a3135; --line-soft: #20262a;
  --ink: #e6ece9; --muted: #95a39e; --dim: #6b7873;
  --accent: #44eebb; --accent-ink: #0b1f18; --accent-soft: rgba(68, 238, 187, .12); --fill: #1aa87c;
  --warn: #e8b84a; --warn-soft: rgba(232, 184, 74, .12); --loss: #d9693a; --loss-soft: rgba(217, 105, 58, .12);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45); --head: rgba(18, 20, 23, .86);
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-mark: "Orbitron", "Sora", system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f6f4; --surface: #ffffff; --surface-2: #eaf0ed; --line: #d5ddd9; --line-soft: #e3e9e6;
    --ink: #101715; --muted: #4f5d58; --dim: #75827d;
    --accent: #0b7f5d; --accent-ink: #ffffff; --accent-soft: rgba(14, 138, 102, .10); --fill: #0e8a66;
    --warn: #a86f00; --warn-soft: rgba(168, 111, 0, .10); --loss: #c25a24; --loss-soft: rgba(194, 90, 36, .10);
    --shadow: 0 18px 44px rgba(16, 23, 21, .14); --head: rgba(243, 246, 244, .9);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f6f4; --surface: #ffffff; --surface-2: #eaf0ed; --line: #d5ddd9; --line-soft: #e3e9e6;
  --ink: #101715; --muted: #4f5d58; --dim: #75827d;
  --accent: #0b7f5d; --accent-ink: #ffffff; --accent-soft: rgba(14, 138, 102, .10); --fill: #0e8a66;
  --warn: #a86f00; --warn-soft: rgba(168, 111, 0, .10); --loss: #c25a24; --loss-soft: rgba(194, 90, 36, .10);
  --shadow: 0 18px 44px rgba(16, 23, 21, .14); --head: rgba(243, 246, 244, .9);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--head); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--head); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; position: relative; }
.wordmark { font-family: var(--f-mark); font-weight: 800; font-size: .92rem; letter-spacing: .14em; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--ink); }
.mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-size: .9rem; color: var(--muted); padding: 8px 10px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .btn { padding: 9px 14px; margin-left: 6px; color: var(--accent-ink); }
.nav .btn:hover { background: var(--accent); color: var(--accent-ink); }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 10px; font: 500 .85rem var(--f-body); cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .92rem var(--f-body); text-decoration: none; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; color: var(--ink); background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { border-color: var(--loss); color: var(--loss); background: transparent; }
.btn-danger:hover:not(:disabled) { background: var(--loss-soft); }
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 7px; }
.btn-xs { padding: 4px 9px; font-size: .76rem; border-radius: 6px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* sections */
main { display: block; }
.band { padding-block: 72px; border-top: 1px solid var(--line); }
.band-tight { padding-block: 48px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 34px; max-width: 70ch; }
.sec-head p { color: var(--muted); }
.page-head { padding-block: 56px 36px; display: grid; gap: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 72px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1 em, h1 em { font-style: normal; color: var(--accent); }
.hero-note { font-family: var(--f-mono); font-size: .76rem; color: var(--dim); }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trail path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.1 14; opacity: .38; }
.trail circle { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .5; }

/* proof strip */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.proof-cell { padding: 18px 18px 20px; border-right: 1px solid var(--line-soft); display: grid; gap: 6px; align-content: start; min-width: 0; }
.proof-cell:last-child { border-right: 0; }
.proof-val { font-family: var(--f-mono); font-size: 2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof-val small { font-size: 1rem; color: var(--muted); }
.proof-sub { font-size: .84rem; color: var(--muted); }

/* lists, ticks, steps */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.prose { display: grid; gap: 16px; max-width: 62ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 22px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--accent); }
.ticks b { color: var(--ink); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--accent); }
.steps li { padding: 20px 20px 22px 0; display: grid; gap: 8px; align-content: start; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.step-n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.steps p { color: var(--muted); font-size: .94rem; }
.card-lineup { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 10px 10px; }
.card-lineup li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.card-lineup li:last-child { border-bottom: 0; }
.slot { grid-row: span 2; font-family: var(--f-mono); font-size: 1.2rem; font-weight: 600; color: var(--accent); line-height: 1.3; }
.card-lineup b { font-weight: 600; }
.card-lineup span { color: var(--muted); font-size: .86rem; }
.card-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 2px 8px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; transition: border-color .2s; }
a.card:hover, button.card:hover, .card.link:hover { border-color: var(--accent); }
.card-body { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; }
.card-body p { color: var(--muted); font-size: .9rem; }
.card-meta { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.box-pad { padding: 20px 22px; }
.box-accent { border-top: 2px solid var(--accent); border-radius: 0 0 12px 12px; }

/* pills, chips, tabs */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill-accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pill-warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.pill-loss { color: var(--loss); border-color: var(--loss); background: var(--loss-soft); }
.pill-solid { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.verified { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.verified::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%230b1f18' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font: 500 .84rem var(--f-body); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* forms */
.form { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.span-all { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label:not(.check), .label { font-size: .8rem; color: var(--muted); }
.field input, .field select, .field textarea, .input { width: 100%; font: 400 .93rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--accent); }
.field textarea, textarea.input { min-height: 96px; resize: vertical; line-height: 1.55; }
.field .hint { font-size: .75rem; color: var(--dim); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .input { width: auto; flex: 1 1 220px; max-width: 340px; }
.toolbar select.input { flex: 0 1 auto; }
.spacer { flex: 1; }
textarea.code { font-family: var(--f-mono); font-size: .84rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--accent-soft); }
table.data .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }
table.data input, table.data select { width: 100%; min-width: 60px; font: 400 .86rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }

/* section titles inside apps */
.sec-title { display: flex; align-items: center; gap: 12px; margin: 48px 0 16px; }
.sec-title h2 { font-size: 1.25rem; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-title.first { margin-top: 0; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.tile { padding: 16px 18px 18px; border-right: 1px solid var(--line-soft); display: grid; gap: 4px; align-content: start; min-width: 0; }
.tile:last-child { border-right: 0; }
.tile-val { font-family: var(--f-mono); font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-val small { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 3px; }
.tile-sub { font-size: .8rem; color: var(--muted); }
.delta { font-family: var(--f-mono); font-size: .76rem; }
.delta.up { color: var(--accent); }
.delta.down { color: var(--loss); }

/* roster */
.roster-card { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s, transform .2s; }
.roster-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.avatar { width: 84px; height: 104px; border-radius: 8px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-family: var(--f-mark); font-weight: 800; color: var(--accent); font-size: 1.3rem; border: 1px solid var(--line-soft); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 40px; height: 40px; border-radius: 8px; font-size: .8rem; }
.avatar.xl { width: 180px; height: 220px; border-radius: 12px; font-size: 2.6rem; }
.roster-num { position: absolute; right: 14px; top: 10px; font-family: var(--f-mono); font-size: 1.6rem; font-weight: 600; color: var(--accent); opacity: .85; }
.roster-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.25; padding-right: 40px; }
.roster-meta { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.roster-foot { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.roster-foot div { display: grid; }
.roster-foot b { font-family: var(--f-mono); font-weight: 600; font-size: .95rem; }
.roster-foot span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* profile */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-block: 40px 32px; }
.profile-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-mono); font-size: .84rem; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 500; }
.class-of { text-align: right; }
.class-of .proof-val { font-size: 3.4rem; color: var(--accent); }
.commit { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: .9rem; }
.quote { font-size: 1.05rem; line-height: 1.7; border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.sig { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--bg)); display: grid; place-items: center; position: relative; overflow: hidden; }
.vid-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.play { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); background: rgba(0, 0, 0, .45); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.list-rows { display: grid; }
.list-rows > * { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.list-rows > *:last-child { border-bottom: 0; }
.contact-band { margin-top: 64px; padding: 36px 28px; text-align: center; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 12px 12px; display: grid; gap: 12px; justify-items: center; }
.contact-band p { color: var(--muted); max-width: 56ch; }

/* app shell (CRM) */
.app-nav { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 15; background: var(--head); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.app-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.app-nav .wrap::-webkit-scrollbar { display: none; }
.app-nav a { flex: none; text-decoration: none; font-size: .86rem; color: var(--muted); padding: 12px 12px 10px; border-bottom: 2px solid transparent; }
.app-nav a:hover { color: var(--ink); }
.app-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.app-main { padding-block: 32px 96px; }
.banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--warn); background: var(--warn-soft); color: var(--ink); font-size: .86rem; margin-bottom: 22px; }
.banner b { color: var(--warn); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.feed { display: grid; }
.feed-row { display: grid; grid-template-columns: 64px 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.feed-row:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dot.hot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dot.warn { background: var(--warn); }
.dot.loss { background: var(--loss); }
.meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; min-width: 60px; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.meter.warn > i { background: var(--warn); }
.meter.loss > i { background: var(--loss); }
.layout-side { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.side-list { display: grid; gap: 6px; max-height: calc(100vh - 220px); overflow-y: auto; position: sticky; top: 140px; }
.side-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.side-item:hover { background: var(--surface); }
.side-item.on { background: var(--surface); border-color: var(--accent); }
.side-item b { font-weight: 600; font-size: .92rem; display: block; line-height: 1.3; }
.side-item span { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.subtabs button { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 500 .88rem var(--f-body); padding: 10px 12px; cursor: pointer; }
.subtabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.board-col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 160px; }
.board-col h3 { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.board-card { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; font-size: .86rem; }
.board-card b { font-weight: 600; }
.board-card select { font: 400 .78rem var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.compose { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.recips { max-height: 420px; overflow-y: auto; display: grid; }
.recip { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 2px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: .88rem; }
.recip input { accent-color: var(--accent); margin-top: 4px; }
.mail { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.mail-head { padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 6px; }
.mail-body { padding: 20px; white-space: pre-wrap; font-size: .93rem; line-height: 1.65; min-height: 320px; }
.mail-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.token-list { display: flex; flex-wrap: wrap; gap: 6px; }
.token { font-family: var(--f-mono); font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.token:hover { border-color: var(--accent); color: var(--accent); }
.missing { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 3px; }

/* modal + toast */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); display: grid; place-items: start center; padding: 6vh 16px; overflow-y: auto; }
.modal { width: min(760px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.modal.wide { width: min(1000px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; display: grid; gap: 18px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); }
.x { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.x:hover { color: var(--ink); background: var(--surface-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--surface-2); color: var(--ink); border: 1px solid var(--accent); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: .9rem; max-width: calc(100vw - 32px); }
.toast.err { border-color: var(--loss); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; }
.login { max-width: 420px; margin: 8vh auto; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-family: var(--f-mono); font-size: .84rem; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 48px; }
.site-foot .wrap { display: grid; gap: 18px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.fine { font-size: .78rem; color: var(--dim); max-width: 90ch; }

/* motion */
@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.trail path { stroke-dashoffset: 0; animation: draw 2.4s ease-out both; }
.hero-copy > * { animation: rise .7s ease-out both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trail path, .hero-copy > * { animation: none; }
  .roster-card { transition: none; }
}

/* responsive */
@media (max-width: 980px) {
  .hero .wrap, .split, .two-col, .compose, .layout-side { grid-template-columns: minmax(0, 1fr); }
  .trail { display: none; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-cell:nth-child(2) { border-right: 0; }
  .proof-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .side-list { position: static; max-height: 260px; }
  .profile-head { grid-template-columns: auto minmax(0, 1fr); }
  .class-of { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .band { padding-block: 56px; }
  .profile-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .avatar.xl { width: 140px; height: 170px; }
  .feed-row { grid-template-columns: 54px 10px minmax(0, 1fr); }
  .feed-row > :last-child { grid-column: 3; justify-self: start; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(2n) { border-right: 0; }
  .tile { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
  .proof-val { font-size: 1.6rem; }
  .wordmark { font-size: .8rem; letter-spacing: .1em; }
  .roster-card { grid-template-columns: 64px minmax(0, 1fr); }
  .avatar { width: 64px; height: 80px; }
}

/* print: the player card */
@media print {
  @page { margin: 12mm; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #f1f4f2; --line: #cfd8d4; --line-soft: #e2e8e5; --ink: #101715; --muted: #4f5d58; --dim: #75827d; --accent: #0b7f5d; --accent-ink: #fff; --accent-soft: #eef7f3; }
  body { font-size: 11pt; }
  .site-head, .site-foot, .no-print, .menu-btn, .app-nav, .toast, .contact-band .btn { display: none !important; }
  .band, .sec-title { break-inside: avoid; }
  .profile-head { padding-block: 0 16px; }
  .embed { display: none; }
  .print-only { display: block !important; }
  a { text-decoration: none; }
}
.print-only { display: none; }

.field > label:not(.check) { display: grid; gap: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.avatar img { object-position: center 15%; }
