:root {
  color-scheme: dark;
  --bg: #090b09;
  --panel: #111411;
  --panel-2: #151915;
  --panel-3: #1b201b;
  --line: #272e27;
  --line-soft: #202620;
  --text: #f2f5ef;
  --muted: #929b90;
  --subtle: #626b60;
  --lime: #c5f653;
  --lime-soft: #9dc83e;
  --red: #fb756f;
  --amber: #f3c774;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.ambient { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(100px); opacity: .095; }
.ambient-one { width: 440px; height: 360px; top: -190px; left: 18%; background: #b6ec46; }
.ambient-two { width: 460px; height: 460px; top: 28vh; right: -350px; background: #78a435; opacity: .04; }
.app-shell { position: relative; z-index: 1; min-height: 100vh; padding: 0 48px 132px; }
.topbar { height: 82px; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(207, 222, 197, .09); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 220px; text-decoration: none; color: var(--text); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--lime); filter: drop-shadow(0 0 10px rgba(197,246,83,.13)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-type { display: flex; flex-direction: column; font-size: 11px; line-height: 1.1; letter-spacing: .19em; }
.brand-type strong { font-size: 13px; letter-spacing: .22em; font-weight: 850; }
.brand-type span { margin-top: 4px; color: #a6afa1; font-size: 9px; font-weight: 650; }
.system-status { display: flex; align-items: center; gap: 9px; color: #b1baad; font-size: 9px; letter-spacing: .15em; font-weight: 760; }
.system-status i { width: 3px; height: 3px; border-radius: 50%; background: #596158; margin: 0 5px; }
.system-status span:last-child { color: #70796f; font-weight: 600; letter-spacing: .11em; }
.status-pulse, .live-dot, .tiny-dot { position: relative; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 11px rgba(197, 246, 83, .55); }
.profile-button { width: 38px; height: 38px; border: 1px solid #30392d; background: #151a13; border-radius: 50%; cursor: pointer; color: var(--lime); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.main-content { width: min(100%, 1440px); margin: 0 auto; padding-top: 40px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 27px; }
.eyebrow, .section-overline { margin: 0 0 11px; color: #8b9587; font-size: 9px; font-weight: 760; letter-spacing: .19em; }
.eyebrow-line { display: inline-block; width: 18px; height: 1px; background: var(--lime); margin: 0 7px 3px 0; }
.eyebrow-dot { color: var(--lime); padding: 0 5px; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 56px); line-height: .99; letter-spacing: -.065em; font-weight: 770; }
.title-period { color: var(--lime); }
.page-subtitle { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.heading-meta { padding-bottom: 3px; text-align: right; }
.heading-meta .meta-label { display: block; margin-bottom: 7px; color: #778072; font-size: 8px; font-weight: 750; letter-spacing: .2em; }
.heading-meta strong { color: #d6ddd1; font-size: 12px; font-weight: 650; }
.error-banner { margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(251,117,111,.35); border-radius: 12px; background: rgba(251,117,111,.08); color: #ffaaa6; font-size: 12px; }
.error-banner[hidden] { display: none; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(280px, .82fr); gap: 22px; align-items: start; }
.primary-column, .side-column { min-width: 0; }
.hero-card { min-height: 238px; padding: 21px 25px 0; overflow: hidden; position: relative; border: 1px solid #343c2d; border-radius: 20px; background: linear-gradient(116deg, #1b2118 0%, #151a14 48%, #111510 100%); box-shadow: 0 18px 55px rgba(0,0,0,.2); }
.hero-card::after { content: ""; position: absolute; width: 315px; height: 315px; top: -204px; right: 7%; border: 1px solid rgba(197,246,83,.12); border-radius: 50%; box-shadow: 0 0 0 32px rgba(197,246,83,.025), 0 0 0 66px rgba(197,246,83,.02); pointer-events: none; }
.hero-topline, .hero-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; color: #b8c1af; font-size: 9px; letter-spacing: .17em; font-weight: 780; }
.hero-counter { padding: 6px 9px; color: #b7c0b2; border: 1px solid #353e31; border-radius: 6px; background: rgba(6,8,6,.25); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.hero-copy { position: relative; z-index: 1; min-height: 148px; display: flex; align-items: center; justify-content: space-between; }
.hero-label { margin: 9px 0 2px; color: #9da793; font-size: 9px; font-weight: 760; letter-spacing: .17em; }
.hero-copy h2 { margin: 0; font-size: clamp(42px, 5.5vw, 63px); line-height: 1; letter-spacing: -.065em; font-weight: 780; }
.hero-copy h2 span { margin-left: 11px; color: #d6ddce; font-size: 20px; letter-spacing: -.03em; font-weight: 560; }
.hero-date { margin: 12px 0 0; color: #879181; font-size: 11px; }
.hero-orb { position: absolute; top: 50%; right: 10%; width: 118px; height: 118px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(197,246,83,.35); background: radial-gradient(circle at 48% 47%, rgba(197,246,83,.12), rgba(197,246,83,.015) 64%, transparent 68%); box-shadow: 0 0 38px rgba(197,246,83,.08), inset 0 0 20px rgba(197,246,83,.05); color: var(--lime); }
.hero-orb::before, .hero-orb::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(197,246,83,.09); border-radius: 50%; }
.hero-orb::after { inset: -11px; border-color: rgba(197,246,83,.1); }
.hero-orb span { font-size: 58px; line-height: .8; letter-spacing: -.1em; font-weight: 820; transform: translateX(-3px); }
.hero-orb small { position: absolute; right: 28px; bottom: 29px; color: #e2f6be; font-size: 10px; font-weight: 780; }
.hero-orb b { position: absolute; top: -3px; right: 18px; width: 5px; height: 5px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 9px var(--lime); }
.hero-bottom { min-height: 44px; gap: 14px; border-top: 1px solid rgba(212,228,199,.11); color: #778271; font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.hero-bottom b { margin-left: 5px; color: #d8e2d0; font-size: 9px; letter-spacing: .06em; }
.hero-model { margin-left: auto; color: #6e7869; }
.hero-model b { color: var(--lime); }
.section-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 31px 0 17px; }
.section-overline { margin-bottom: 6px; color: #75806f; font-size: 8px; letter-spacing: .16em; }
.section-toolbar h2 { margin: 0; font-size: 20px; letter-spacing: -.045em; font-weight: 690; }
.section-toolbar h2 span { color: #818b7c; font-weight: 530; }
.segmented-control { padding: 3px; display: flex; gap: 2px; background: #111511; border: 1px solid #252c24; border-radius: 8px; }
.segmented { padding: 7px 11px; border: 0; background: transparent; color: #7e887a; font-size: 8px; font-weight: 800; letter-spacing: .1em; border-radius: 5px; cursor: pointer; }
.segmented.active { background: #29321f; color: var(--lime); box-shadow: inset 0 0 0 1px rgba(197,246,83,.09); }
.candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.candidate-card { min-width: 0; padding: 17px 17px 14px; border: 1px solid #272e27; border-radius: 15px; background: linear-gradient(145deg, rgba(21,25,21,.98), rgba(16,19,16,.98)); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.candidate-card:hover { border-color: #49553a; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.candidate-top, .candidate-bottom, .match-row, .candidate-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.league-chip { display: inline-flex; padding: 5px 7px; border-radius: 5px; background: #222820; color: #b8c5a9; font-size: 8px; font-weight: 810; letter-spacing: .1em; }
.date-chip { color: #788274; font-size: 9px; font-weight: 620; }
.candidate-state { display: inline-flex; align-items: center; gap: 5px; color: #c3e884; font-size: 8px; font-weight: 730; letter-spacing: .075em; }
.candidate-state i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.match-row { margin: 19px 0 15px; align-items: center; }
.team-name { max-width: 40%; color: #eef1ea; font-size: 13px; line-height: 1.22; font-weight: 670; letter-spacing: -.025em; }
.team-name.away { text-align: right; }
.vs-mark { flex: 0 0 auto; color: #555f51; font-size: 8px; font-weight: 820; letter-spacing: .14em; }
.candidate-divider { height: 1px; background: #252b24; margin: 0 -1px 12px; }
.candidate-bottom { align-items: end; }
.market-block { display: flex; flex-direction: column; gap: 6px; }
.market-label { color: #7d8778; font-size: 8px; font-weight: 760; letter-spacing: .11em; }
.market-pill { width: fit-content; padding: 6px 8px; border: 1px solid rgba(197,246,83,.2); border-radius: 6px; background: rgba(197,246,83,.07); color: #dcf7b0; font-size: 11px; font-weight: 780; }
.prob-block { text-align: right; }
.prob-label { display: block; margin-bottom: 2px; color: #788373; font-size: 7px; font-weight: 760; letter-spacing: .12em; }
.prob-value { color: var(--lime); font-size: 27px; font-weight: 780; letter-spacing: -.06em; line-height: 1; }
.prob-value small { font-size: 13px; letter-spacing: -.02em; }
.candidate-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid #242a23; color: #788273; font-size: 8px; }
.candidate-foot span { display: inline-flex; align-items: center; gap: 5px; }
.candidate-foot b { color: #c6cec1; font-size: 9px; font-weight: 680; }
.foot-market-warning { color: #d2b57f !important; }
.foot-market-warning::before { content: "!"; width: 12px; height: 12px; display: grid; place-items: center; border: 1px solid rgba(243,199,116,.35); border-radius: 50%; color: var(--amber); font-size: 8px; font-weight: 800; }
.empty-state, .loading-card { grid-column: 1/-1; min-height: 150px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; border: 1px dashed #30382e; border-radius: 15px; background: rgba(19,23,18,.5); color: var(--muted); font-size: 12px; }
.empty-state strong { color: #d8ded2; font-size: 14px; }
.empty-state p { max-width: 510px; margin: 0; color: #879181; line-height: 1.6; }
.side-column { display: grid; gap: 14px; }
.side-card { padding: 19px; border: 1px solid #272e27; border-radius: 15px; background: linear-gradient(145deg, #151915, #111411); }
.side-card-header { display: flex; align-items: center; gap: 8px; color: #818b7e; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.side-card-header .tiny-dot { width: 5px; height: 5px; margin-left: auto; }
.side-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #252d20; color: var(--lime); font-size: 11px; font-weight: 800; }
.side-icon.chart-icon { font-size: 18px; }
.trust-card h3 { margin: 22px 0 9px; color: #f0f3eb; font-size: 20px; line-height: 1.12; letter-spacing: -.045em; }
.trust-card > p { margin: 0; color: #90998c; font-size: 10px; line-height: 1.7; }
.trust-divider { height: 1px; margin: 17px 0 11px; background: #292f28; }
.trust-row, .coverage-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; color: #879081; font-size: 9px; }
.trust-row b { color: #c6e68d; font-size: 8px; letter-spacing: .04em; }
.trust-row .muted-value { color: #747e70; }
.snapshot-stat { margin-top: 15px; display: flex; align-items: baseline; gap: 9px; }
.snapshot-stat strong { min-width: 46px; color: #ecf3e6; font-size: 20px; letter-spacing: -.05em; }
.snapshot-stat span { color: #889284; font-size: 9px; }
.coverage-row { margin-top: 13px; padding-bottom: 6px; }
.coverage-row b { color: var(--lime); font-size: 8px; letter-spacing: .08em; }
.coverage-track { height: 4px; overflow: hidden; border-radius: 8px; background: #293027; }
.coverage-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); box-shadow: 0 0 8px rgba(197,246,83,.3); transition: width .4s ease; }
.snapshot-footnote { margin: 12px 0 0; color: #656f63; font-size: 8px; }

.tab-panel[hidden] { display: none; }
.tab-panel.active { animation: appear .22s ease both; }
@keyframes appear { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.content-card { border: 1px solid #272e27; border-radius: var(--radius); background: linear-gradient(145deg, #151915, #111411); }
.intro-card { display: flex; align-items: center; gap: 18px; padding: 24px; }
.intro-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(197,246,83,.25); border-radius: 13px; background: rgba(197,246,83,.07); color: var(--lime); font-size: 30px; }
.intro-card h2, .settings-hero h2 { margin: 0; font-size: 27px; letter-spacing: -.055em; }
.intro-card p:last-child, .settings-hero > p:last-child { margin: 8px 0 0; color: #929b8e; font-size: 11px; line-height: 1.6; }
.compact-grid { margin-top: 16px; }
.below-threshold { color: #a8b198; background: #252a22; border-color: #353c31; }
.below-threshold .candidate-state { color: #c3a868; }
.below-threshold .candidate-state i { background: var(--amber); }
.history-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-tile { min-height: 102px; padding: 17px; border: 1px solid #272e27; border-radius: 14px; background: #121612; }
.summary-tile span { display: block; color: #828c7d; font-size: 8px; font-weight: 760; letter-spacing: .12em; }
.summary-tile strong { display: block; margin-top: 12px; color: #f0f4ea; font-size: 28px; letter-spacing: -.06em; }
.summary-tile strong.lime { color: var(--lime); }
.history-toolbar { margin-top: 30px; }
.dark-select { min-width: 142px; max-width: 220px; padding: 9px 32px 9px 11px; color: #d4dbcf; border: 1px solid #30382e; border-radius: 8px; background: #151a14; font-size: 10px; cursor: pointer; }
.history-list { display: grid; gap: 9px; }
.history-row { display: grid; grid-template-columns: 106px minmax(0,1fr) 116px 105px; gap: 14px; align-items: center; padding: 15px 17px; border: 1px solid #252c24; border-radius: 12px; background: #121612; }
.history-date { color: #879181; font-size: 9px; }
.history-match strong { display: block; color: #e6ebe1; font-size: 11px; font-weight: 670; }
.history-match span { display: block; margin-top: 4px; color: #798373; font-size: 8px; }
.history-market { color: #cbd8bc; font-size: 10px; font-weight: 690; }
.history-status { justify-self: end; padding: 6px 8px; border-radius: 5px; background: #242a22; color: #b8c1b1; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-align: center; }
.status-hit { color: #c7f375; background: rgba(197,246,83,.1); }
.status-miss { color: #ff9b95; background: rgba(251,117,111,.1); }
.status-postponed { color: #e7c27a; background: rgba(243,199,116,.1); }
.stats-toolbar { margin-top: 0; margin-bottom: 17px; }
.stats-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stats-metric { padding: 17px; border: 1px solid #272e27; border-radius: 13px; background: #121612; }
.stats-metric span { color: #828c7d; font-size: 8px; font-weight: 770; letter-spacing: .12em; }
.stats-metric strong { display: block; margin-top: 9px; color: var(--lime); font-size: 24px; letter-spacing: -.05em; }
.stats-metric small { display: block; margin-top: 4px; color: #778172; font-size: 8px; }
.table-card { overflow: hidden; }
.table-heading { padding: 19px 20px 14px; display: flex; align-items: end; justify-content: space-between; }
.table-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.table-note { color: #6f796b; font-size: 8px; }
.team-table-wrap { overflow-x: auto; }
.team-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.team-table th, .team-table td { padding: 12px 20px; border-top: 1px solid #242a23; text-align: left; white-space: nowrap; }
.team-table th { color: #707a6d; font-size: 7px; font-weight: 780; letter-spacing: .13em; }
.team-table td { color: #cbd3c6; font-size: 10px; }
.team-table td:first-child { color: #edf1e9; font-weight: 650; }
.team-table td:last-child { color: #d3e6ae; }
.team-table .table-empty { color: #808a7b; text-align: center; padding: 23px; }
.coverage-note { margin: 12px 0; color: #958a6c; font-size: 9px; line-height: 1.6; }
.settings-hero { padding: 26px; margin-bottom: 14px; background: radial-gradient(ellipse at 94% 4%, rgba(197,246,83,.09), transparent 34%), #141814; }
.settings-hero h2 { font-size: 34px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.setting-card { padding: 19px; }
.setting-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.setting-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #252d20; color: var(--lime); font-size: 17px; }
.setting-heading .section-overline { margin-bottom: 4px; }
.setting-heading h3 { margin: 0; font-size: 13px; letter-spacing: -.02em; }
.setting-state { margin-left: auto; color: var(--lime); font-size: 7px; font-weight: 820; letter-spacing: .12em; }
.neutral-state { color: #889282; }
.setting-values { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #262d25; color: #858f80; font-size: 9px; }
.setting-values b { color: #d6dfd0; font-size: 9px; font-weight: 670; text-align: right; }
.setting-description { color: #8c9687; font-size: 10px; line-height: 1.7; }
.view-settings-card { grid-row: span 2; }
.setting-control { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #262d25; color: #a1aa9a; font-size: 10px; }
.setting-control .dark-select { min-width: 160px; }
.performance-card { margin-bottom: 14px; overflow: hidden; }
.performance-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; border-top: 1px solid #252c24; background: #252c24; }
.performance-metric { min-width: 0; min-height: 105px; padding: 15px 18px; background: #121612; }
.performance-metric span { color: #828c7d; font-size: 7px; font-weight: 780; letter-spacing: .1em; }
.performance-metric strong { display: block; margin-top: 8px; color: var(--lime); font-size: 21px; letter-spacing: -.05em; }
.performance-metric small { display: block; margin-top: 4px; color: #778172; font-size: 8px; line-height: 1.45; }
.performance-card > .coverage-note { margin: 0; padding: 10px 18px 13px; border-top: 1px solid #252c24; }
.secondary-button { margin-top: 9px; padding: 9px 12px; border: 1px solid #414c38; border-radius: 7px; background: #242d1d; color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.install-hint { color: #747f70; font-size: 8px; }

:root[data-theme="ice"] {
  --lime: #7be5ff;
  --lime-soft: #57c6e7;
}
:root[data-theme="ice"] .ambient-one { background: #55cce9; }
:root[data-theme="ice"] .ambient-two { background: #438aa5; }
:root[data-theme="ice"] .hero-card { border-color: #2d4449; background: linear-gradient(116deg, #172124 0%, #141a1b 48%, #111516 100%); }
:root[data-theme="ice"] .segmented.active,
:root[data-theme="ice"] .nav-item.active,
:root[data-theme="ice"] .side-icon,
:root[data-theme="ice"] .intro-icon { background-color: #1d2a2d; }
:root[data-theme="ice"] .market-pill { border-color: rgba(123,229,255,.25); background: rgba(123,229,255,.08); color: #c9f5ff; }
:root[data-theme="ice"] .settings-hero { background: radial-gradient(ellipse at 94% 4%, rgba(123,229,255,.09), transparent 34%), #141819; }

.bottom-nav { position: fixed; z-index: 10; left: 50%; bottom: max(19px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(600px, calc(100% - 40px)); min-height: 69px; padding: 7px; display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid #343b31; border-radius: 17px; background: rgba(20,24,19,.93); box-shadow: 0 18px 54px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(18px); }
.nav-item { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 11px; background: transparent; color: #778172; cursor: pointer; transition: color .16s ease, background .16s ease; }
.nav-item > span:last-child { overflow: hidden; max-width: 100%; font-size: 7px; line-height: 1; font-weight: 780; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.nav-icon { width: 21px; height: 20px; display: grid; place-items: center; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { background: #252d20; color: var(--lime); box-shadow: inset 0 0 0 1px rgba(197,246,83,.08); }
.nav-item.active::before { content: ""; position: absolute; top: -1px; width: 15px; height: 2px; border-radius: 0 0 4px 4px; background: var(--lime); box-shadow: 0 0 9px rgba(197,246,83,.45); }
.toast { position: fixed; z-index: 12; left: 50%; bottom: 105px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 11px 15px; border: 1px solid #384231; border-radius: 9px; background: #1b2118; color: #d9e8c3; font-size: 10px; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .app-shell { padding-right: 28px; padding-left: 28px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.55fr) minmax(245px,.75fr); gap: 15px; }
  .hero-card { padding-right: 20px; padding-left: 20px; }
  .candidate-grid { gap: 10px; }
  .candidate-card { padding: 14px; }
  .team-name { font-size: 12px; }
}
@media (max-width: 820px) {
  .app-shell { padding: 0 22px 120px; }
  .topbar { height: 70px; }
  .brand { min-width: initial; }
  .system-status { gap: 7px; font-size: 8px; }
  .system-status i, .system-status span:last-child { display: none; }
  .main-content { padding-top: 31px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trust-card h3 { margin-top: 17px; }
  .candidate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-summary-grid { grid-template-columns: repeat(2,1fr); }
  .performance-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-settings-card { grid-row: auto; }
}
@media (max-width: 580px) {
  .app-shell { padding: 0 15px calc(103px + env(safe-area-inset-bottom)); }
  .topbar { height: 63px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-type strong { font-size: 11px; }
  .brand-type span { font-size: 8px; }
  .system-status { font-size: 7px; letter-spacing: .1em; }
  .profile-button { width: 32px; height: 32px; font-size: 9px; }
  .main-content { padding-top: 26px; }
  .page-heading { align-items: center; margin-bottom: 20px; }
  .eyebrow { margin-bottom: 9px; font-size: 7px; letter-spacing: .14em; }
  h1 { font-size: 39px; }
  .page-subtitle { max-width: 250px; margin-top: 9px; font-size: 10px; line-height: 1.45; }
  .heading-meta { display: none; }
  .hero-card { min-height: 215px; padding: 16px 16px 0; border-radius: 16px; }
  .hero-kicker { font-size: 7px; }
  .hero-counter { padding: 5px 7px; font-size: 7px; }
  .hero-copy { min-height: 133px; }
  .hero-copy h2 { font-size: 49px; }
  .hero-copy h2 span { display: block; margin: 4px 0 0; font-size: 15px; }
  .hero-date { max-width: 205px; margin-top: 9px; font-size: 9px; }
  .hero-orb { right: 3%; width: 87px; height: 87px; }
  .hero-orb span { font-size: 44px; }
  .hero-orb small { right: 20px; bottom: 21px; font-size: 8px; }
  .hero-bottom { min-height: 45px; gap: 8px; justify-content: flex-start; font-size: 6px; letter-spacing: .07em; }
  .hero-bottom b { display: block; margin: 3px 0 0; font-size: 7px; }
  .hero-model { display: none; }
  .section-toolbar { margin: 24px 0 13px; align-items: center; }
  .section-toolbar h2 { font-size: 17px; }
  .section-overline { font-size: 7px; }
  .segmented { padding: 7px 8px; font-size: 7px; }
  .candidate-grid { grid-template-columns: 1fr; gap: 9px; }
  .candidate-card { padding: 14px; }
  .match-row { margin: 15px 0 12px; }
  .team-name { font-size: 13px; }
  .prob-value { font-size: 25px; }
  .candidate-foot { margin-top: 11px; }
  .side-column { grid-template-columns: 1fr; gap: 9px; }
  .side-card { padding: 16px; }
  .trust-card h3 br { display: none; }
  .trust-card h3 { font-size: 18px; }
  .trust-card > p { font-size: 9px; }
  .snapshot-stat { margin-top: 11px; }
  .snapshot-stat strong { font-size: 18px; }
  .intro-card { padding: 18px; gap: 13px; align-items: flex-start; }
  .intro-icon { width: 39px; height: 39px; font-size: 24px; }
  .intro-card h2 { font-size: 22px; }
  .intro-card p:last-child { font-size: 9px; }
  .history-summary-grid { gap: 8px; }
  .summary-tile { min-height: 84px; padding: 12px; }
  .summary-tile strong { margin-top: 10px; font-size: 23px; }
  .history-row { grid-template-columns: 1fr auto; gap: 7px 10px; padding: 13px; }
  .history-match { grid-column: 1/-1; grid-row: 2; }
  .history-market { grid-column: 1; grid-row: 3; }
  .history-status { grid-column: 2; grid-row: 3; }
  .history-date { grid-column: 1; grid-row: 1; }
  .history-toolbar { align-items: end; }
  .dark-select { min-width: 120px; max-width: 155px; padding: 8px 25px 8px 8px; font-size: 9px; }
  .stats-overview { gap: 7px; }
  .stats-metric { padding: 12px; }
  .stats-metric span { font-size: 6px; letter-spacing: .08em; }
  .stats-metric strong { font-size: 20px; }
  .table-heading { padding: 15px 14px 11px; }
  .team-table th, .team-table td { padding: 10px 13px; }
  .settings-grid { grid-template-columns: 1fr; gap: 9px; }
  .settings-hero { padding: 20px; }
  .settings-hero h2 { font-size: 29px; }
  .settings-hero > p:last-child { font-size: 10px; }
  .setting-control { min-height: 42px; font-size: 9px; }
  .setting-control .dark-select { min-width: 135px; max-width: 58%; }
  .performance-metric { min-height: 95px; padding: 12px; }
  .performance-metric span { font-size: 6px; letter-spacing: .06em; }
  .performance-metric strong { font-size: 19px; }
  .performance-metric small { font-size: 7px; }
  .bottom-nav { left: 10px; right: 10px; bottom: max(9px, env(safe-area-inset-bottom)); transform: none; width: auto; min-height: 67px; padding: 5px 4px; border-radius: 15px; }
  .nav-item { gap: 3px; border-radius: 10px; }
  .nav-item > span:last-child { font-size: 6px; letter-spacing: .025em; }
  .nav-icon { width: 19px; height: 19px; }
  .nav-icon svg { width: 18px; height: 18px; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); max-width: calc(100% - 30px); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
