/* NobleSMP stats site. Layout: fixed side nav + one scrolling column of cards; brand blue and crown gold as accents. */
@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage-grotesque.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url(fonts/albert-sans.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F2F5FB; --card: #FFFFFF; --ink: #141B33; --ink2: #4A556F; --muted: #76809A; --line: #E2E8F2; --line2: #CBD5E6;
  --side: #111C44; --side-2: #18265A; --side-ink: #E6ECFB; --side-muted: #93A2CD;
  --accent: #3F76E4; --accent-ink: #2A5BC0; --accent-soft: #E8F0FE;
  --gold: #F5B82E; --gold-ink: #8A5800; --gold-soft: #FFF4D6;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s-muted: #BAC4D8;
  --good: #0ca30c; --good-ink: #006300; --warn: #fab219; --serious: #ec835a; --bad: #d03b3b; --bad-ink: #b02a2a;
  --grid: #EAEFF7; --axis: #C5CFDF; --track: #DCE8FB; --pop: #FFFFFF; --shadow: 0 1px 2px rgba(20, 27, 51, .06), 0 8px 24px rgba(20, 27, 51, .06);
  --display: "Bricolage Grotesque", "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Albert Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0F1E; --card: #151B2E; --ink: #EEF2FB; --ink2: #B9C2D8; --muted: #8791AB; --line: #242C46; --line2: #323C5C;
    --side: #080B17; --side-2: #141B33; --side-ink: #E6ECFB; --side-muted: #8391BB;
    --accent: #6E9BFF; --accent-ink: #9DBBFF; --accent-soft: #1A2647;
    --gold: #F5B82E; --gold-ink: #F5C858; --gold-soft: #2A2311;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s-muted: #3B4666;
    --good: #0ca30c; --good-ink: #3fc63f; --warn: #fab219; --serious: #ec835a; --bad: #d03b3b; --bad-ink: #ee7c7c;
    --grid: #1D2540; --axis: #323C5C; --track: #1B2B4C; --pop: #1C2440; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0F1E; --card: #151B2E; --ink: #EEF2FB; --ink2: #B9C2D8; --muted: #8791AB; --line: #242C46; --line2: #323C5C;
  --side: #080B17; --side-2: #141B33; --side-ink: #E6ECFB; --side-muted: #8391BB;
  --accent: #6E9BFF; --accent-ink: #9DBBFF; --accent-soft: #1A2647;
  --gold: #F5B82E; --gold-ink: #F5C858; --gold-soft: #2A2311;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s-muted: #3B4666;
  --good: #0ca30c; --good-ink: #3fc63f; --warn: #fab219; --serious: #ec835a; --bad: #d03b3b; --bad-ink: #ee7c7c;
  --grid: #1D2540; --axis: #323C5C; --track: #1B2B4C; --pop: #1C2440; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; text-decoration: none; color: inherit; }
.brand svg { flex: none; }
.brand b { font: 700 17px/1.1 var(--display); letter-spacing: -.01em; display: block; }
.brand small { color: var(--side-muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title { color: var(--side-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 10px 6px; display: flex; align-items: center; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-weight: 500; opacity: .82; }
.nav a:hover { background: rgba(255, 255, 255, .06); opacity: 1; }
.nav a[aria-current="page"] { background: var(--side-2); opacity: 1; box-shadow: inset 3px 0 0 var(--gold); }
.nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--side-muted); padding: 0 8px; }
.live { display: flex; align-items: center; gap: 8px; color: var(--side-ink); font-weight: 600; font-size: 13px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3fd65a; box-shadow: 0 0 0 0 rgba(63, 214, 90, .6); flex: none; }
.pulse.off { background: #8a93ab; }
@media (prefers-reduced-motion: no-preference) {
  .pulse:not(.off) { animation: pulse 2s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 214, 90, .55); } 70% { box-shadow: 0 0 0 9px rgba(63, 214, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 214, 90, 0); } }
}
.linkbtn { background: none; border: 0; padding: 0; color: var(--side-muted); cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--side-ink); }

.main { min-width: 0; padding: 0 28px 48px; max-width: 1420px; width: 100%; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); padding: 18px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.top h1 { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.top .sub { color: var(--muted); font-size: 13px; }
.top-left { margin-right: auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--ink2); font-weight: 600; font-size: 13px; }
.seg button:hover { background: var(--accent-soft); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.iconbtn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--ink2); }
.iconbtn:hover { border-color: var(--line2); color: var(--ink); }
.iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewas { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; }
.viewas input { accent-color: var(--accent); margin: 0; }
.banner { background: var(--gold-soft); color: var(--gold-ink); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 13px; margin-bottom: 14px; }

/* ---------- layout blocks ---------- */
.row { display: grid; gap: 16px; margin-bottom: 16px; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cols-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; min-width: 0; box-shadow: 0 1px 0 rgba(20, 27, 51, .02); display: flex; flex-direction: column; }
.card > .chart { flex: 1 1 auto; }
.card > .note { margin-top: auto; padding-top: 10px; }
.card > header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.card h2 { font: 650 15.5px/1.25 var(--body); margin: 0; letter-spacing: -.005em; }
.card header p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.card header .grow { flex: 1; min-width: 0; }
.tbtn { border: 1px solid var(--line); background: none; border-radius: 8px; padding: 4px 9px; font-size: 12px; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.tbtn:hover { border-color: var(--line2); color: var(--ink); }
.tbtn[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.empty { color: var(--muted); padding: 22px 0; text-align: center; font-size: 13px; }
.owner-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--gold-soft); color: var(--gold-ink); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; vertical-align: middle; margin-left: 8px; letter-spacing: .02em; }

/* ---------- stat tiles ---------- */
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 14px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; align-items: end; min-width: 0; }
.tile-label { grid-column: 1 / -1; color: var(--ink2); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.tile-value { font: 650 30px/1.1 var(--body); letter-spacing: -.02em; }
.tile-value small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.tile-spark { align-self: end; justify-self: end; width: 100%; max-width: 120px; min-width: 0; display: flex; justify-content: flex-end; padding-bottom: 3px; }
.tile-foot { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 3px 6px; align-items: baseline; min-height: 18px; }
.tile.hero { background: linear-gradient(135deg, #16245A 0%, #2A4FB5 100%); border-color: transparent; color: #fff; }
.tile.hero .tile-label, .tile.hero .tile-foot { color: #C9D7FB; }
.tile.hero .tile-value { font-size: 48px; }
.tile.hero .spark-line { stroke: rgba(255, 255, 255, .55); }
.tile.hero .spark-dot { fill: var(--gold); stroke: #223B8C; }
.delta { font-weight: 700; white-space: nowrap; }
.delta.good { color: var(--good-ink); }
.delta.bad { color: var(--bad-ink); }
.delta.flat { color: var(--muted); }
.tile.hero .delta.good { color: #8BEA8B; }
.tile.hero .delta.bad { color: #FFB0B0; }
.tile.hero .delta.flat { color: #E6ECFB; }
.spark-line { fill: none; stroke: var(--s-muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }

/* ---------- SVG chart parts ---------- */
.chart { min-height: 120px; }
.chart svg { display: block; overflow: visible; }
.grid { stroke: var(--grid); stroke-width: 1; }
.axis { stroke: var(--axis); stroke-width: 1; }
.tick { fill: var(--muted); font: 11px var(--body); font-variant-numeric: tabular-nums; }
.hit { fill: transparent; }
.hit:hover { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.col.partial { opacity: .45; }
.ref { stroke: var(--gold); stroke-width: 1.5; }
.ref-label { fill: var(--ink2); font: 600 11px var(--body); }
.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line.muted { stroke-width: 1.5; opacity: .7; }
.line.gap { stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .6; }
.area { opacity: .1; }
.dot { stroke: var(--card); stroke-width: 2; }
.cross { stroke: var(--axis); stroke-width: 1; }
svg rect.hit { cursor: crosshair; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink2); margin: 0 0 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item b { color: var(--ink); font-weight: 650; }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-swatch.linekey { height: 3px; width: 14px; border-radius: 2px; }

/* ---------- ranked bars ---------- */
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13px; border-radius: 6px; }
.bars.wide .bar-row { grid-template-columns: minmax(130px, 44%) minmax(0, 1fr) auto; }
.bar-row:hover .bar-fill { filter: brightness(1.12); }
.bar-label { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.bar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { position: relative; height: 12px; }
.bar-fill { height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; min-width: 0; }
.bar-fill.muted { background: var(--s-muted); }
.bar-fill.critical { background: var(--bad); }
.bar-fill.gold { background: var(--gold); }
.bar-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink2); border-radius: 1px; }
.bar-value { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; min-width: 44px; white-space: nowrap; }
.bar-value small { color: var(--muted); font-weight: 500; margin-left: 6px; }

/* ---------- heat grids ---------- */
.heat { display: grid; gap: 2px; font-size: 11px; align-items: center; }
.heat-col { color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; min-width: 0; white-space: nowrap; }
.heat-corner { color: var(--muted); padding-right: 8px; }
.heat-rowlab { color: var(--ink2); padding-right: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.heat-cell { height: 26px; border-radius: 4px; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; }
.heat-cell.none { background: transparent; }
.heat-cell:hover { outline: 2px solid var(--ink); outline-offset: -1px; }
.heat.tight .heat-cell { height: 22px; }
.heat-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 10px; }
.heat-scale { width: 120px; height: 8px; border-radius: 4px; display: inline-block; }
@container (max-width: 520px) { .heat-cell { font-size: 0; } }
.cq { container-type: inline-size; }

/* ---------- meters and segmented bars ---------- */
.meter { padding: 4px 0 20px; }
.meter-track { position: relative; height: 10px; background: var(--track); border-radius: 5px; }
.meter-fill { height: 100%; border-radius: 5px; background: var(--s1); max-width: 100%; }
.meter-fill.good { background: var(--good); }
.meter-fill.warn { background: var(--serious); }
.meter-fill.gold { background: var(--gold); }
.meter-target { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.meter-target span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; color: var(--ink2); font-weight: 600; }
.meter-target.end span { left: auto; right: 0; transform: none; }
.meter-target.start span { left: 0; transform: none; }
.meter.plain { padding-bottom: 6px; }
.segbar { display: flex; gap: 2px; height: 28px; margin-bottom: 12px; }
.seg-part { border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 12px; font-weight: 700; min-width: 3px; overflow: hidden; white-space: nowrap; flex-basis: 0; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl-wrap.scroll { max-height: 560px; overflow-y: auto; }
.tbl-wrap.scroll thead th { position: sticky; top: 0; background: var(--card); z-index: 1; box-shadow: 0 1px 0 var(--line); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th { text-align: right; color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td.l, .tbl th.l { text-align: left; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.tbl .who { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.tbl .inbar { display: inline-block; height: 8px; border-radius: 0 4px 4px 0; background: var(--s1); vertical-align: middle; margin-right: 8px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.pill.warn { background: color-mix(in srgb, var(--serious) 18%, transparent); color: var(--ink); }
.pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad-ink); }
.pill.grey { background: var(--grid); color: var(--ink2); }

.avatar { width: 24px; height: 24px; border-radius: 6px; flex: none; image-rendering: pixelated; background: var(--grid); display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.avatar.lg { width: 44px; height: 44px; border-radius: 10px; font-size: 18px; }

/* ---------- records, podium, milestones ---------- */
.records { display: grid; gap: 4px; }
.record { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.record:last-child { border-bottom: 0; }
.record-badge { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); display: grid; place-items: center; }
.record-badge svg { width: 18px; height: 18px; fill: var(--gold); stroke: var(--gold-ink); stroke-width: 1.2; stroke-linejoin: round; }
.record b { display: block; font-weight: 650; }
.record small { color: var(--muted); font-size: 12.5px; }
.record-value { font: 650 22px/1 var(--body); letter-spacing: -.01em; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; }
.split .podium { margin-bottom: 0; }
.mile { margin: 6px 0 14px; color: var(--muted); font-size: 12.5px; }
.mile:last-child { margin-bottom: 0; }
.podium > div { background: var(--grid); border-radius: 12px; padding: 12px 8px 10px; text-align: center; display: grid; gap: 4px; justify-items: center; min-width: 0; }
.podium .p1 { background: var(--gold-soft); padding-top: 22px; }
.podium b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium small { color: var(--muted); }
.podium .place { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink2); }
.podium .p1 .place { color: var(--gold-ink); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--ink2); }
.kv dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.chip { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.search { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font-size: 13px; min-width: 0; width: 180px; margin-left: auto; }

/* ---------- tooltip ---------- */
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--pop); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); padding: 9px 12px; font-size: 12.5px; max-width: 280px; }
.tip-title { font-weight: 700; margin-bottom: 5px; }
.tip-row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-direction: row-reverse; }
.tip-val { font-variant-numeric: tabular-nums; }
.tip-key { color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; }
.tip-swatch { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.tip-note { color: var(--muted); margin-top: 5px; font-size: 12px; }

/* ---------- sign-in page ---------- */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, #2A4FB5 0%, transparent 60%), #111C44; color: #fff; }
.signin-card { background: #fff; color: #141B33; border-radius: 20px; padding: 34px 32px 28px; width: min(420px, 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); text-align: center; }
.signin-card h1 { font: 700 26px/1.15 var(--display); margin: 14px 0 6px; letter-spacing: -.02em; }
.signin-card p { color: #4A556F; margin: 0 0 22px; }
.signin-card .err { background: #FDECEC; color: #9B1C1C; border-radius: 10px; padding: 9px 12px; font-weight: 600; font-size: 13px; margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 12px; padding: 13px 16px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; background: #5865F2; color: #fff; }
.btn:hover { filter: brightness(1.07); }
.btn.dark { background: #141B33; }
.signin-card small { display: block; color: #76809A; margin-top: 16px; font-size: 12.5px; }

/* ---------- narrow screens ---------- */
@media (max-width: 1080px) {
  .cols-21, .cols-12, .cols-2, .cols-3, .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; }
  .brand small, .nav-title, .side-foot .linkbtn, .side-foot .who { display: none; }
  .brand { padding: 0 6px 0 0; }
  .nav { flex-direction: row; }
  .nav a { padding: 8px 10px; white-space: nowrap; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .main { padding: 0 16px 40px; }
  .top { position: static; padding-top: 14px; }
  .top h1 { font-size: 22px; }
  .tile.hero .tile-value { font-size: 40px; }
  .bar-row { grid-template-columns: minmax(84px, 38%) minmax(0, 1fr) auto; gap: 8px; }
  .search { width: 100%; margin-left: 0; }
}
