/* MATCHSCOPE ONE — ORBITAL OBSERVATORY
   One token system, three responsive layouts, no external fonts or rendering engine. */
:root {
  color-scheme: dark;
  --bg: #080a0b;
  --dark: #0d1115;
  --paper: #141b22;
  --raised: #202932;
  --ink: #f2f4f6;
  --muted: #bdc7c9;
  --line: #485460;
  --line-bright: #575a5d;
  --lime: #ffd400;
  --green: #67c587;
  --cyan: #ffd400;
  --amber: #ead49c;
  --orange: #ead49c;
  --radius: 13px;
  --sidebar: 236px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 90% 0%, #22272c50, transparent 45%), var(--bg); }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { background: #ffd400; color: #15181b; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #111315; }
::-webkit-scrollbar-thumb { background: #4c4f52; border-radius: 10px; }
svg { display: block; flex-shrink: 0; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 99; padding: 14px 20px; background: var(--lime); color: #16181b; border-radius: 7px; }
.skip:focus { top: 12px; }

/* Navigation and frame */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 33px 21px 24px; display: flex; flex-direction: column; z-index: 20; background: var(--dark); border-right: 1px solid #30353c; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; min-height: 48px; }
.brand-name { font-size: 19px; letter-spacing: -.8px; font-weight: 720; line-height: 1.1; }
.brandmark { width: 43px; height: 43px; flex-shrink: 0; border-radius: 8px; display: block; }
.brand-sub { display: block; margin-top: 9px; color: #a1a4a7; font-size: 7px; font-weight: 500; letter-spacing: 1.65px; }
.side-label { margin: 49px 12px 18px; font-size: 8px; letter-spacing: 2px; color: #a1a4a8; }
nav { display: grid; gap: 6px; }
nav a { display: flex; align-items: center; gap: 13px; padding: 13px 14px; min-height: 47px; border: 1px solid transparent; border-radius: 7px; color: #b0b2b5; font-size: 12px; text-decoration: none; }
nav a svg { width: 18px; height: 18px; }
nav a:hover { color: var(--ink); background: #1d2024; }
nav a.active { color: var(--lime); background: #272c31; border-color: #45484b; box-shadow: inset 2px 0 0 var(--lime); }
.side-bottom { margin-top: auto; padding-top: 35px; font-size: 10px; line-height: 1.7; color: #a2a5a9; }
.pitch-mini { min-height: 153px; padding: 19px 16px; border: 1px solid #3b434c; border-radius: 9px; position: relative; overflow: hidden; background: url('./orbit-pitch.svg') 43% 91% / 250px auto no-repeat, #191c20; }
.pitch-mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#1a1e22 10%, #1a1e2277 63%, transparent); }
.pitch-mini b { position: relative; z-index: 1; font-size: 17px; font-weight: 600; letter-spacing: -.35px; line-height: 1.4; }
.pitch-mini i { display: none; }
.side-bottom p { margin: 21px 0 4px; font-size: 9px; }
.side-bottom small { font-size: 9px; color: #989b9f; }
.shell { margin-left: var(--sidebar); }
.topbar { height: 78px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #2e343a; background: #101215; }
.mobile-brand { display: none; }
.crumb { color: #a5a8ac; font-size: 9px; letter-spacing: 1.7px; }
.crumb span { margin: 0 13px; color: #696d71; }
.crumb b { color: #dcdddf; font-weight: 500; letter-spacing: .4px; }
.top-actions { display: flex; gap: 21px; align-items: center; }
.status { display: flex; gap: 7px; align-items: center; font-size: 10px; color: #c1c3c5; }
.status::before { content: ''; width: 5px; height: 5px; background: #b5b7ba; border-radius: 50%; }
.icon-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid #46494c; border-radius: 7px; background: transparent; color: #d1d2d4; font-size: 11px; }
.icon-btn svg { width: 17px; height: 17px; }
main { max-width: 1560px; margin: auto; padding: 35px 38px 26px; min-width: 0; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 24px; }
.eyebrow { color: var(--lime); font-size: 9px; letter-spacing: 2.15px; font-weight: 650; line-height: 1.6; }
h1 { margin: 11px 0 10px; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.1; letter-spacing: -1.65px; font-weight: 620; }
h1 span { color: var(--lime); }
.heading p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.75; }
.heading .primary { flex-shrink: 0; }
.archive-line { display: flex; justify-content: space-between; gap: 18px; margin: 0 0 21px; padding: 0 1px; font-size: 9px; line-height: 1.8; color: #a4a7aa; }
.archive-line>span:last-child { text-align: right; }
.pending-dot { display: inline-block; margin-right: 6px; width: 5px; height: 5px; border-radius: 50%; background: #a6a9ac; }
.league-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; overflow: visible; margin: 0 0 24px; padding: 1px 0 2px; scrollbar-width: thin; scrollbar-color: #55585b #111315; }
.league-tabs button { display: flex; gap: 7px; min-width: 0; align-items: center; min-height: 45px; padding: 8px 10px; background: #121416; color: #b2b5b8; border: 1px solid #32383f; border-radius: 7px; font-size: 10px; white-space: nowrap; }
.league-tabs button.active { background: #2a3036; color: var(--lime); border-color: #6e7276; }
.country { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #2a2f35; font-size: 7px; letter-spacing: .5px; font-weight: 700; color: #bcbec1; }

/* Orbital hero: original illustration, no simulated charts or data */
.orbital-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); align-items: center; min-height: 341px; margin-bottom: 22px; border: 1px solid #515356; border-radius: 15px; background: #181b1e; }
.orbital-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); }
.orbital-copy { padding: 33px 0 30px 32px; position: relative; z-index: 1; }
.orbital-copy h2 { font-size: clamp(29px,3vw,45px); letter-spacing: -1.65px; line-height: 1.04; font-weight: 600; margin: 17px 0 18px; }
.orbital-copy h2>span { color: var(--lime); }
.orbital-copy>p { max-width: 410px; margin: 0; font-size: 12px; line-height: 1.85; color: #bdbfc2; }
.hero-actions { display: flex; gap: 19px; align-items: center; flex-wrap: wrap; margin-top: 23px; }
.hero-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 11px; color: #d1d2d4; text-underline-offset: 5px; text-decoration-color: #6e7175; }
.hero-principles { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 24px; font-size: 8px; color: #aeb1b4; letter-spacing: .4px; }
.hero-principles span { display: flex; align-items: center; gap: 6px; }
.hero-principles span::before { content: ''; width: 3px; height: 3px; border: 1px solid #9ea1a5; transform: rotate(45deg); }
.orbital-visual { margin: 0; align-self: stretch; position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; }
.orbital-visual img { display: block; width: 116%; max-width: none; height: auto; object-fit: contain; margin-left: -7%; }
.orbital-visual figcaption { position: absolute; right: 26px; bottom: 22px; font-size: 7px; color: #a4a7ab; letter-spacing: 1.6px; text-transform: uppercase; }

/* Controls, typography and notices */
.primary, .secondary, .text-btn { min-height: 44px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--lime); border-radius: 7px; background: var(--lime); color: #1a1e22; padding: 11px 16px; font-size: 11px; font-weight: 700; text-decoration: none; line-height: 1.5; }
.primary svg { width: 17px; height: 17px; }
.primary:hover { background: #ffd400; border-color: #ffd400; }
.secondary { padding: 10px 14px; border: 1px solid #4d4f52; border-radius: 7px; background: #1d2125; color: #d9dadc; font-size: 11px; line-height: 1.6; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.secondary:hover { background: #292f35; border-color: #6e7276; }
.text-btn { background: transparent; border: 0; padding: 8px 5px; color: var(--green); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #5a5d61; line-height: 1.55; }
.text-btn:hover { color: #e5e5e6; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 19px; }
.search-row input, .search-row select, .field input, .field select { min-height: 44px; min-width: 0; padding: 11px 13px; border: 1px solid #4a4d50; border-radius: 7px; background: #171a1e; color: var(--ink); font-size: 11px; line-height: 1.6; }
.search-row input { flex: 1; min-width: 180px; }
.search-row select { max-width: 280px; }
input::placeholder { color: #a3a6a9; opacity: 1; }
.field { display: grid; gap: 8px; margin: 14px 0; font-size: 11px; line-height: 1.7; color: #c6c8ca; }
.field input, .field select { width: 100%; }
.switch-label { display: flex; gap: 11px; align-items: center; font-size: 11px; line-height: 1.8; min-height: 44px; }
.switch-label input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--lime); }
.notice { border: 1px solid #705e36; background: #302c1c; border-radius: 8px; color: #ebdbad; padding: 14px 16px; margin: 14px 0 21px; font-size: 11px; line-height: 1.85; }
.notice strong { color: #f7e7b5; font-weight: 700; }
.notice ul { margin: 8px 0; padding-left: 19px; }
.muted { color: var(--muted); }
.small { font-size: 11px; line-height: 1.85; }
.prose, .data-grid p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.tag { display: inline-block; padding: 6px 9px; border: 1px solid #4b4e51; border-radius: 4px; background: #282e34; color: #c9cbcd; font-size: 8px; font-weight: 600; letter-spacing: .7px; line-height: 1.6; }
.tag.amber { color: #eed79f; background: #342e1c; border-color: #6d5b33; }
.tag.outline { color: #bec0c2; background: transparent; border-color: #5e6164; }
.tag.live-tag { color: #c1c3c5; background: #252a2f; border-color: #686c70; }
h2 { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.5px; margin: 0; }
h3 { font-size: 14px; font-weight: 600; line-height: 1.6; margin: 0; }
.subheading { margin: 27px 0 14px; font-size: 14px; font-weight: 600; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.section-head small { font-size: 10px; color: var(--muted); line-height: 1.8; }
.source-line { margin: 14px 0 0; color: #adafb2; font-size: 10px; line-height: 1.85; overflow-wrap: anywhere; }
.source-line a { color: #c7c8ca; text-underline-offset: 3px; }
.source-line a, .source-list a { display: inline-flex; align-items: center; min-height: 44px; }
summary { min-height: 44px; cursor: pointer; padding: 10px 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.empty { padding: 32px 18px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.9; }
.empty::before { content: ''; display: block; width: 27px; height: 27px; margin: 0 auto 15px; border: 1px solid #6c7074; border-radius: 50%; box-shadow: inset 0 0 0 8px #21252a; }
.empty h2, .empty h3 { color: #dcddde; }
.loading { padding: 26px; display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; }
.loading::before { content: ''; width: 18px; height: 18px; border: 2px solid #3b424b; border-top-color: var(--lime); border-radius: 50%; }

/* Grid children must shrink below their intrinsic table/text width.
   Tables keep their own horizontal scroller; the page keeps viewport width. */
.two-col>*, .data-grid>*, .orbital-hero>*, .observatory-loading>*,
.metrics>*, .team-grid>*, .market-grid>*, .operator-grid>*,
.compare-grid>*, .prob-grid>*, .analysis-form>*, .stat-fields>*,
.result-list>*, .reading-grid>*, .reading-dates>*, .fixture>*, .market-row>* { min-width: 0; }

/* Metrics and data panels */
.observatory-loading { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 27px; align-items: center; min-height: 220px; padding: 27px; border: 1px solid #484b4e; border-radius: 13px; background: #191c20; }
.observatory-loading>img { display: block; width: 220px; max-width: 100%; height: auto; }
.observatory-loading .loading { margin: 12px 0; padding: 0; font-size: 20px; letter-spacing: -.6px; font-weight: 500; }
.observatory-loading p { margin: 0; font-size: 11px; line-height: 1.8; color: #b8babc; }
.observatory-skeleton { display: grid; gap: 8px; margin-top: 20px; max-width: 340px; }
.observatory-skeleton i { display: block; height: 3px; background: #454749; border-radius: 3px; }
.observatory-skeleton i:nth-child(2) { width: 77%; }
.observatory-skeleton i:nth-child(3) { width: 57%; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.metric { border: 1px solid #3c434c; border-radius: 10px; padding: 20px; background: #1a1d20; position: relative; overflow: hidden; }
.metric::after { content: ''; position: absolute; right: 0; top: 0; width: 27px; height: 1px; background: #9da0a4; }
.metric-label { display: flex; justify-content: space-between; gap: 6px; color: #acafb2; font-size: 8px; letter-spacing: 1.15px; line-height: 1.7; }
.metric-label>span { color: #979a9e; font-size: 12px; }
.metric-value { color: #e9e9ea; font-size: 33px; font-weight: 550; letter-spacing: -1.4px; margin: 15px 0 7px; line-height: 1.15; }
.metric small { display: block; color: #a7aaad; font-size: 9px; line-height: 1.8; }
.two-col { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(285px,1fr); gap: 21px; }
.panel { border: 1px solid #363c44; border-radius: var(--radius); background: var(--paper); padding: 23px; margin-bottom: 22px; overflow: hidden; min-width: 0; }
.panel.dark { background: #212529; border-color: #4e5154; }
.dark h2 { max-width: 290px; color: #dddee0; font-size: 28px; font-weight: 550; line-height: 1.16; letter-spacing: -.8px; margin: 22px 0 15px; }
.dark p { color: #babcbe; font-size: 12px; line-height: 1.85; }
.pitch-graphic { position: relative; height: 119px; border: 1px solid #64686c; border-radius: 4px; margin: 25px 0 15px; background: #282e34; }
.pitch-graphic::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #64686c; }
.pitch-graphic::after { content: ''; position: absolute; width: 47px; height: 47px; left: calc(50% - 24px); top: calc(50% - 24px); border: 1px solid #64686c; border-radius: 50%; }
.pitch-graphic i { position: absolute; left: -1px; top: 30px; width: 24px; height: 58px; border: 1px solid #64686c; }
.pitch-graphic i:last-child { left: auto; right: -1px; }
.data-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.team-grid, .market-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.team-card, .market { border: 1px solid #3c444d; border-radius: 11px; background: #1a1e22; padding: 20px; min-width: 0; }
.team-card:hover { border-color: #666a6e; }
.team-card header { display: flex; gap: 12px; align-items: center; }
.team-card h3 { font-size: 14px; }
.team-card .crest { width: 40px; height: 40px; font-size: 10px; }
.team-card header small { font-size: 10px; line-height: 1.8; }
.team-stats { display: flex; gap: 12px; justify-content: space-between; margin: 24px 0 17px; font-size: 21px; }
.team-stats small { display: block; margin-bottom: 7px; font-size: 8px; color: #b7b9bb; letter-spacing: .5px; }
.team-card>.text-btn { display: block; padding-left: 0; }
.market h3 { margin: 11px 0 10px; }
.market p { color: var(--muted); font-size: 11px; line-height: 1.85; }
.required { border-top: 1px solid #3b434c; padding-top: 12px; margin-top: 17px; color: #b6b8bb; font-size: 10px; line-height: 1.8; }
.coverage-grid { margin-top: 20px; }

/* Calendar and tables */
.fixture { display: grid; grid-template-columns: 43px minmax(0,1fr) 132px; gap: 15px; align-items: center; padding: 19px 0; border-top: 1px solid #323840; }
.fixture:first-of-type { border-top: 0; }
.fixture-live { border-left: 2px solid var(--cyan); padding-left: 12px; }
.fixture-time { font-size: 12px; font-weight: 600; color: #e0e1e2; }
.fixture-time small { display: block; margin-top: 7px; font-size: 9px; color: #abadb0; font-weight: 400; }
.teams { display: grid; gap: 10px; font-size: 12px; font-weight: 550; }
.teams>small { color: #abadb0; font-size: 9px; font-weight: 400; line-height: 1.8; }
.team-line { display: flex; align-items: center; gap: 10px; line-height: 1.6; }
.crest { flex-shrink: 0; width: 26px; height: 26px; display: inline-grid; place-items: center; background: #2e343b; border: 1px solid #4c4f52; border-radius: 50%; color: #cacbcd; font-size: 8px; font-weight: 600; }
.fixture-result { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; }
.fixture-result>strong { font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.fixture-result>small { font-size: 9px; color: #bfc1c3; }
.fixture .analyze-btn { width: 132px; background: #c0c2c5; color: #1d2126; border: 1px solid #c0c2c5; border-radius: 6px; font-size: 10px; font-weight: 700; text-decoration: none; padding: 10px 9px; text-align: center; }
.save-btn { color: #acaeb1; font-size: 10px; min-height: 44px; }
.save-btn.saved { color: var(--lime); }
.form-strip { display: inline-flex; gap: 5px; align-items: center; margin: 10px 0 12px; }
.form-strip>span { min-width: 23px; height: 23px; display: grid; place-items: center; font-size: 9px; font-weight: 700; border-radius: 3px; }
.form-V { background: #353c44; color: #d2d4d6; }
.form-N { background: #30353c; color: #e0dec0; }
.form-P { background: #4a3229; color: #edc2ac; }
.table-wrap { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
th { padding: 13px 10px; color: #b7b9bb; background: #23282d; font-size: 9px; font-weight: 500; text-align: right; border-bottom: 1px solid #4d4f52; line-height: 1.7; }
td { padding: 11px 10px; border-bottom: 1px solid #30363d; text-align: right; color: #dbdcdd; line-height: 1.6; }
th:first-child, th:nth-child(2), td:first-child, td:nth-child(2) { text-align: left; }
th:first-child, td:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; }
th:first-child { background: #23282d; z-index: 2; }
.standings-table td:first-child, .standings-table th:first-child { min-width: 30px; width: 30px; }
.table-team { display: flex; gap: 9px; align-items: center; text-decoration: none; font-weight: 600; text-align: left; }
.players-table td:first-child { min-width: 155px; }
.players-table .text-btn { text-align: left; color: #d4d5d7; }
.pts { color: var(--lime); font-weight: 700; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; color: #adafb2; font-size: 10px; line-height: 1.8; }
.pagination>div { display: flex; align-items: center; gap: 11px; }
.pagination .secondary { min-height: 44px; padding: 8px 12px; font-size: 10px; }
.scorer { display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #343a42; padding: 10px 0; }
.scorer .number { width: 14px; color: #abadb0; font-size: 9px; }
.avatar { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.avatar>.crest { width: 32px; height: 32px; }
.scorer b { font-size: 12px; font-weight: 600; }
.scorer .text-btn { padding: 4px 0; text-align: left; text-decoration: none; min-height: 44px; }
.scorer small { display: block; color: #acafb2; font-size: 9px; line-height: 1.8; }
.scorer .goals { margin-left: auto; text-align: right; color: #dcdddf; font-size: 23px; font-weight: 500; }
.scorer .goals small { font-size: 7px; letter-spacing: 1px; }
.live-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 13px; background: #202428; border: 1px solid #4e5154; border-radius: 8px; padding: 10px 16px; margin-bottom: 20px; }
.live-toolbar>span { color: #bbbdc0; font-size: 9px; line-height: 1.8; }

/* Dialogs, predictions and model markets */
dialog { color: var(--ink); background: #16191d; border: 1px solid #606367; border-radius: 17px; padding: 24px 30px 30px; max-width: 930px; width: calc(100% - 36px); max-height: 88vh; max-height: 88dvh; overflow: auto; box-shadow: 0 28px 110px #040506bb; }
dialog::backdrop { background: #050607c9; }
dialog>.close { position: sticky; top: 0; float: right; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; margin: -8px -10px 0 10px; background: #2a3036; color: #dddedf; border: 1px solid #585b5e; border-radius: 50%; font-size: 25px; line-height: 1; }
.dialog-title { margin: 16px 0 12px; padding-right: 32px; font-size: 29px; line-height: 1.25; font-weight: 600; letter-spacing: -1px; }
.compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin: 23px 0; }
.compare-grid>div { border: 1px solid #46494c; border-radius: 8px; padding: 16px; background: #21262b; }
.compare-grid h3 { font-size: 13px; }
.compare-grid .form-strip { margin-bottom: 0; }
.prob-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 21px 0; }
.prob { border: 1px solid #4a4c4f; border-radius: 8px; background: #292e34; padding: 17px; }
.prob strong { display: block; margin: 11px 0; color: #d8d9da; font-size: 29px; font-weight: 550; letter-spacing: -.6px; }
.prob span { color: #bfc1c3; font-size: 10px; line-height: 1.7; }
.prob.best { border-color: #979b9e; background: #333940; }
.forecast-card { position: relative; border: 1px solid #6e7175; border-radius: 11px; padding: 25px; margin: 22px 0 24px; background: #24282d; overflow: hidden; }
.forecast-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--lime); }
.forecast-card .eyebrow { color: #c4c6c8; font-size: 8px; letter-spacing: 1.8px; }
.forecast-main { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 18px 0; }
.forecast-main h3 { margin: 0 0 10px; font-size: 29px; line-height: 1.15; font-weight: 600; letter-spacing: -.85px; }
.forecast-main p, .forecast-card>p { color: #c2c4c6; font-size: 11px; line-height: 1.85; margin: 7px 0; }
.forecast-main>strong { color: #d4d5d6; font-size: 47px; font-weight: 550; letter-spacing: -1.7px; text-align: right; white-space: nowrap; }
.forecast-main>strong small { display: block; color: #b8babc; margin-top: 7px; font-size: 10px; font-weight: 400; letter-spacing: 0; white-space: normal; }
.forecast-card .forecast-alternative { padding-top: 15px; margin-top: 17px; border-top: 1px solid #525457; font-size: 11px; }
.forecast-card .evidence { border: 1px solid #585b5e; border-radius: 6px; background: #32383f; color: #ced0d2; padding: 13px 15px; margin: 20px 0; font-size: 10px; line-height: 1.85; }
.forecast-card .evidence.weak { background: #483b22; border-color: #8d7442; color: #f0dfb0; }
.forecast-card h4 { margin: 23px 0 11px; color: #dadbdd; font-size: 12px; font-weight: 600; line-height: 1.8; }
.forecast-card ol { padding-left: 20px; margin: 0; color: #cfd0d2; font-size: 11px; line-height: 1.9; }
.forecast-card li { padding: 5px 0; }
.forecast-card .source-line { border-top: 1px solid #4d4f52; margin-top: 21px; padding-top: 16px; color: #b7b9bc; font-size: 10px; }
.forecast-card a { color: #d1d3d5; }
.forecast-card.unavailable { background: #302e1e; border-color: #857341; }
.forecast-card.unavailable::before { background: #d2bc7e; }
.forecast-card.unavailable .eyebrow { color: #e2cc95; }
.forecast-card.unavailable h3 { margin: 15px 0; color: #f0e4bb; font-size: 22px; line-height: 1.4; }
.forecast-card.unavailable p { color: #d1c59e; font-size: 12px; line-height: 1.85; }
.analysis-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 0 18px; }
.analysis-form .field { margin: 10px 0; }
.analysis-form select { min-width: 0; width: 100%; }
.market-controls { margin-top: 20px; }
.market-controls select { min-width: 170px; max-width: 100%; }
.market-row { display: grid; grid-template-columns: minmax(0,1fr) 145px; gap: 22px; padding: 22px 0; border-top: 1px solid #3a414a; }
.market-row h4 { font-size: 13px; line-height: 1.7; margin: 6px 0 9px; font-weight: 600; }
.market-row p { font-size: 11px; line-height: 1.85; color: var(--muted); margin: 8px 0; }
.market-row small { font-size: 10px; line-height: 1.8; color: #abaeb1; }
.market-family { font-size: 8px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #afb1b4; }
.market-row details { color: #b8babd; font-size: 10px; line-height: 1.9; margin-top: 12px; }
.market-row details summary { color: #c8cacc; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.market-row ul { padding-left: 18px; }
.market-value { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; padding-top: 16px; text-align: right; }
.market-value>strong { color: #cdcfd1; font-size: 26px; font-weight: 500; letter-spacing: -.5px; }
.market-value>small { font-size: 10px; line-height: 1.7; max-width: 145px; }
.market-value>span:not(.tag) { margin-top: 12px; color: #b6b8ba; font-size: 10px; line-height: 1.9; }
.market-value b { color: #d6d7d8; font-size: 16px; font-weight: 500; }
.details-block { border-top: 1px solid #3b434c; padding: 11px 0; margin-top: 6px; line-height: 1.8; }
.details-block summary { display: list-item; cursor: pointer; padding: 11px 0; min-height: 44px; color: #c8c9cb; font-size: 12px; font-weight: 600; }
.details-block[open] summary { margin-bottom: 10px; }
.details-block h3 { margin: 17px 0 12px; }
.details-block ul { padding-left: 19px; }
.stat-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; margin: 0; }
.stat-fields>div, .status-fields>div { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #3a4149; padding: 12px 0; font-size: 11px; line-height: 1.85; min-width: 0; }
.stat-fields dt, .status-fields dt { color: #aeb1b4; }
.stat-fields dd, .status-fields dd { max-width: 65%; margin: 0; text-align: right; color: #dadbdd; overflow-wrap: anywhere; }
.stat-fields pre { max-width: 230px; white-space: pre-wrap; font-size: 10px; }
.status-fields { margin: 18px 0; }
.scenario-list { border: 1px solid #484a4d; border-radius: 8px; overflow: hidden; }
.scenario-list>div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #383f47; padding: 13px 15px; background: #212529; font-size: 11px; line-height: 1.7; }
.scenario-list>div:last-child { border: 0; }
.scenario-list strong { color: #c8c9cb; white-space: nowrap; }
.scenario-form { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; }
.scenario-form .field { max-width: 140px; }
.scenario-form .switch-label { max-width: 330px; }
.scoreboard { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 23px; margin: 21px 0; border: 1px solid #505356; border-radius: 9px; background: #282d33; text-align: center; }
.scoreboard strong { color: #dddedf; font-size: 39px; font-weight: 500; letter-spacing: -1px; }
.scoreboard span { color: #babcbf; font-size: 11px; line-height: 1.8; }
.scoreboard p { color: #c2c4c6; }
.backtest-metrics { margin-top: 22px; }
.backtest-metrics .metric { padding: 16px; }
.backtest-metrics .metric-value { font-size: 26px; }
.result-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.result-list>div { display: flex; justify-content: space-between; gap: 15px; padding: 13px; background: #272c31; border-radius: 6px; font-size: 11px; line-height: 1.7; }
.coverage { color: var(--muted); font-size: 11px; line-height: 1.9; }

/* Daily readings are the first, visible source view — dates never imply live odds. */
.daily-readings-section { border-color: #5f6266; background: #1c1f23; position: relative; }
.daily-readings-section>.section-head h2 { font-size: 24px; letter-spacing: -.8px; }
.reading-schedule { border: 1px solid #474a4d; background: #22272c; padding: 13px 16px; border-radius: 8px; margin: 18px 0; }
.reading-schedule p { color: #b9bbbd; font-size: 10px; line-height: 1.9; margin: 5px 0; }
.reading-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 20px; margin: 20px 0; }
.reading-controls .field { margin: 0; min-width: 230px; }
.reading-controls select { min-height: 44px; border: 1px solid #65686c; background: #282e34; color: #dadbdc; border-radius: 7px; padding: 11px 14px; font-size: 12px; }
.reading-report-header { margin: 25px 0 21px; padding-top: 22px; border-top: 1px solid #4f5255; }
.reading-report-header h3 { color: #d9dadb; font-size: 18px; font-weight: 600; }
.reading-report-header p { color: #bcbec1; font-size: 12px; line-height: 1.9; max-width: 900px; }
.reading-report-header small { color: #b0b2b5; font-size: 10px; line-height: 1.9; }
.reading-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 17px; }
.reading-entry { min-width: 0; border: 1px solid #4d4f52; border-radius: 10px; background: #21252a; padding: 20px; }
.reading-entry h3 { color: #e2e3e4; font-size: 16px; }
.reading-entry .section-head { align-items: flex-start; }
.reading-entry .tag { text-align: right; white-space: normal; }
.reading-dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 17px 0; }
.reading-dates>div { font-size: 10px; line-height: 1.9; }
.reading-dates dt { color: #afb2b5; }
.reading-dates dd { color: #dadbdd; margin: 5px 0 0; font-weight: 600; }
.reading-note { color: #b8babc; }
.reading-observations { white-space: normal; }
.reading-observations th, .reading-observations td { min-width: 90px; text-align: left; font-size: 10px; line-height: 1.9; white-space: normal; }
.reading-observations th:first-child, .reading-observations td:first-child { min-width: 100px; width: auto; background: #21252a; }
.reading-observations th:first-child { background: #23282d; }
.reading-observations td:nth-child(2) { min-width: 170px; font-weight: 500; }
.reading-observations td:last-child { min-width: 180px; overflow-wrap: anywhere; }
.reading-empty { color: #b6b8bb; background: #282d33; border-radius: 6px; padding: 13px 15px; margin-top: 17px; font-size: 11px; line-height: 1.9; }

/* Source metadata, operator snapshots and comparisons */
.source-card { border-bottom: 1px solid #454749; padding: 22px 0; }
.source-card h3 { color: #e0e1e3; margin-bottom: 11px; font-size: 16px; }
.source-card p { color: #b6b8ba; font-size: 11px; line-height: 1.9; margin: 9px 0; max-width: 900px; }
.source-card a { color: #c7c9cb; font-size: 10px; }
.source-card .table-wrap td { font-size: 10px; line-height: 1.8; min-width: 100px; white-space: normal; }
.source-card .table-wrap td:first-child { min-width: 160px; }
.source-card .table-wrap td:last-child { min-width: 70px; }
.source-list { padding-left: 18px; color: #aeb0b3; font-size: 10px; line-height: 1.9; }
.source-list li { padding: 8px 0; overflow-wrap: anywhere; }
.source-list a { color: #cacbcd; }
.metadata { padding: 16px; background: #21262b; border: 1px solid #454749; border-radius: 7px; white-space: pre-wrap; word-break: break-word; max-height: 400px; overflow: auto; color: #bfc1c3; font-size: 10px; line-height: 1.9; }
.operator-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 23px 0; }
.operator-card { min-width: 0; }
.operator-links { color: #c6c7c9; font-size: 10px; line-height: 2; overflow-wrap: anywhere; }
.operator-links a { display: inline-flex; align-items: center; min-height: 36px; }
.operator-section .field { max-width: 650px; }
.operator-comparison { border-top: 1px solid #45474a; padding: 21px 0; }
.operator-comparison h4 { margin: 0 0 9px; font-size: 13px; line-height: 1.8; }
.operator-comparison td .tag { display: block; font-size: 8px; margin-top: 7px; white-space: normal; }
.install-steps { color: #cccdcf; font-size: 13px; line-height: 1.9; padding-left: 20px; }
.install-steps li { padding: 8px 0; }

/* Modal compatibility and transient application state */
body.has-fallback-modal { overflow: hidden; }
body.has-fallback-modal::before { content: ''; position: fixed; inset: 0; background: #050607d1; z-index: 45; }
dialog.fallback-modal[open] { position: fixed; display: block; z-index: 50; left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%,-50%); margin: 0; overflow: auto; overscroll-behavior: contain; width: calc(100% - 36px); max-height: 88vh; }
#toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); z-index: 90; width: max-content; max-width: calc(100% - 36px); padding: 14px 21px; border: 1px solid #72767a; border-radius: 8px; background: #c7c8ca; color: #1a1d21; font-size: 12px; font-weight: 500; line-height: 1.7; opacity: 0; pointer-events: none; box-shadow: 0 10px 35px #05050666; }
#toast.visible { opacity: 1; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0 3px; border-top: 1px solid #323840; color: #a0a3a7; font-size: 9px; line-height: 1.9; }

/* Laptop and tablet */
@media (min-width: 1600px) {
  main { padding-top: 43px; }
  .orbital-hero { min-height: 382px; }
  .orbital-copy { padding-left: 39px; }
  .metrics { gap: 18px; }
  .metric { padding: 24px; }
}
@media (max-width: 1180px) {
  :root { --sidebar: 204px; }
  .sidebar { padding: 30px 16px 23px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 6px; letter-spacing: 1.1px; }
  .brandmark { width: 36px; height: 40px; }
  .topbar { padding: 0 27px; }
  main { padding: 30px 27px 23px; }
  .two-col { grid-template-columns: minmax(0,1.4fr) minmax(265px,1fr); gap: 17px; }
  .panel { padding: 20px; }
  .orbital-copy { padding-left: 27px; }
  .orbital-copy h2 { font-size: 35px; }
  .orbital-copy>p { font-size: 11px; }
  .hero-principles { gap: 8px 13px; font-size: 7px; }
  .orbital-hero { min-height: 330px; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
  .metric { padding: 17px; }
  .metric-value { font-size: 29px; }
  .metric-label { font-size: 7px; }
  .team-grid, .market-grid, .operator-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fixture { grid-template-columns: 40px minmax(0,1fr) 112px; gap: 10px; }
  .fixture .analyze-btn { width: 112px; font-size: 9px; }
  .analysis-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .backtest-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 761px) and (max-width: 950px) {
  .league-tabs .country { display: none; }
  :root { --sidebar: 78px; }
  .sidebar { padding: 25px 12px; }
  .sidebar .brand { justify-content: center; }
  .sidebar .brand-name, .side-label, nav a span, .side-bottom { display: none; }
  nav { margin-top: 38px; }
  nav a { justify-content: center; min-height: 52px; padding: 12px; }
  nav a.active { box-shadow: inset 0 -2px 0 var(--lime); }
  .topbar { height: 70px; }
  .orbital-copy h2 { font-size: 34px; }
}

/* Phone — full touch targets, safe areas and readable source data. */
@media (max-width: 760px) {
  .sidebar { inset: auto 0 0; width: 100%; height: calc(73px + env(safe-area-inset-bottom)); padding: 0 5px env(safe-area-inset-bottom); background: #121416; border-right: 0; border-top: 1px solid #535659; z-index: 30; }
  .sidebar .brand, .side-label, .side-bottom { display: none; }
  nav { display: flex; justify-content: space-around; width: 100%; height: 72px; gap: 0; }
  nav a { flex: 1; min-width: 0; min-height: 62px; padding: 10px 1px 7px; border: 0; border-radius: 0; flex-direction: column; gap: 6px; font-size: 8px; line-height: 1.6; background: transparent; }
  nav a svg { width: 20px; height: 20px; }
  nav a.active { background: #24292e; box-shadow: inset 0 2px 0 var(--lime); }
  nav a span { display: block; }
  .shell { margin: 0; padding-bottom: calc(77px + env(safe-area-inset-bottom)); }
  .topbar { height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; gap: 13px; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; flex-shrink: 0; }
  .mobile-brand img { display: block; width: 32px; height: 32px; border-radius: 6px; }
  .mobile-brand span { font-size: 13px; font-weight: 650; letter-spacing: -.4px; color: var(--ink); }
  .crumb { display: none; }
  .crumb span { margin: 0 7px; }
  .crumb b { font-size: 9px; }
  .top-actions { gap: 11px; }
  .status { font-size: 8px; gap: 5px; max-width: 94px; line-height: 1.5; }
  .status::before { flex-shrink: 0; width: 4px; height: 4px; }
  .icon-btn { min-height: 44px; width: 44px; justify-content: center; padding: 10px; }
  .icon-btn>span { display: none; }
  main { padding: 25px 17px 20px; }
  .heading { align-items: flex-start; gap: 15px; margin-bottom: 19px; }
  .heading h1 { max-width: 280px; font-size: 32px; line-height: 1.04; letter-spacing: -1.15px; margin-top: 12px; }
  .heading p { font-size: 11px; line-height: 1.75; }
  .heading .eyebrow { font-size: 7px; letter-spacing: 1.65px; }
  .heading .primary { width: 44px; min-height: 44px; padding: 10px; margin-top: 29px; }
  .heading .primary>span { display: none; }
  .heading .primary svg { width: 20px; height: 20px; }
  .archive-line { flex-direction: column; gap: 3px; font-size: 8px; margin-bottom: 18px; }
  .archive-line>span:last-child { text-align: left; }
  .league-tabs { display: flex; overflow-x: auto; overflow-y: hidden; margin-bottom: 19px; padding-bottom: 9px; gap: 7px; border-bottom: 1px solid #333940; }
  .league-tabs button { flex-shrink: 0; }
  .league-tabs button { min-height: 44px; padding: 8px 11px; font-size: 9px; }
  .country { width: 22px; height: 22px; font-size: 6px; }
  .orbital-hero { grid-template-columns: minmax(0,1fr); min-height: 0; margin-bottom: 17px; border-radius: 11px; }
  .orbital-copy { padding: 25px 23px 0; }
  .orbital-copy .eyebrow { font-size: 7px; letter-spacing: 1.8px; }
  .orbital-copy h2 { font-size: 34px; letter-spacing: -1.3px; margin: 13px 0 16px; line-height: 1.05; }
  .orbital-copy>p { font-size: 11px; line-height: 1.85; max-width: 320px; }
  .hero-actions { gap: 17px; margin-top: 19px; }
  .hero-actions .primary { font-size: 10px; padding: 11px 13px; }
  .hero-link { font-size: 10px; gap: 9px; }
  .hero-principles { margin-top: 18px; font-size: 7px; gap: 7px 12px; }
  .orbital-visual { height: 205px; margin-top: -1px; overflow: hidden; }
  .orbital-visual img { width: 114%; max-width: 480px; margin-left: 0; margin-top: -9px; }
  .orbital-visual figcaption { bottom: 12px; right: 19px; font-size: 6px; letter-spacing: 1.2px; }
  .observatory-loading { grid-template-columns: minmax(0,1fr); gap: 7px; padding: 22px; text-align: center; }
  .observatory-loading>img { width: 230px; margin: auto; }
  .observatory-loading .loading { justify-content: center; font-size: 19px; }
  .observatory-skeleton { margin-left: auto; margin-right: auto; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 21px; }
  .metric { border-radius: 8px; padding: 16px; }
  .metric-value { font-size: 30px; margin: 12px 0 7px; }
  .metric-label { font-size: 7px; letter-spacing: .9px; min-height: 25px; }
  .metric small { font-size: 8px; line-height: 1.8; }
  .two-col, .data-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .panel { padding: 18px; border-radius: 11px; margin-bottom: 18px; }
  h2 { font-size: 17px; letter-spacing: -.4px; }
  h3 { font-size: 13px; }
  .section-head { align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .section-head>.text-btn { min-height: 44px; padding-top: 0; font-size: 9px; text-align: right; }
  .section-head small { font-size: 9px; }
  .tag { font-size: 7px; padding: 5px 7px; letter-spacing: .4px; }
  .prose, .data-grid p { font-size: 11px; line-height: 1.9; }
  .notice { font-size: 10px; padding: 13px 14px; line-height: 1.9; }
  .source-line { font-size: 9px; line-height: 1.9; }
  .dark h2 { font-size: 27px; max-width: 290px; }
  .dark p { font-size: 11px; }
  .fixture { grid-template-columns: 35px minmax(0,1fr) 99px; gap: 8px; padding: 18px 0; }
  .fixture-time { font-size: 10px; }
  .fixture-time small { font-size: 8px; }
  .teams { font-size: 10px; gap: 9px; }
  .teams>small { font-size: 7px; line-height: 1.85; }
  .team-line { gap: 7px; }
  .crest { width: 21px; height: 21px; font-size: 6px; }
  .fixture-result { gap: 5px; }
  .fixture-result>strong { font-size: 19px; }
  .fixture-result>small { font-size: 7px; }
  .fixture .analyze-btn { width: 99px; min-height: 44px; font-size: 9px; line-height: 1.5; padding: 9px 7px; }
  .save-btn { font-size: 9px; }
  .search-row { gap: 9px; align-items: stretch; }
  .search-row input { min-width: 0; width: 100%; flex-basis: 100%; }
  .search-row select { max-width: 100%; min-width: 100px; flex: 1; font-size: 10px; }
  .live-toolbar { gap: 8px; padding: 11px 13px; }
  .switch-label { font-size: 10px; line-height: 1.75; }
  .live-toolbar>span { font-size: 8px; }
  .pagination { align-items: flex-start; font-size: 8px; gap: 9px; }
  .pagination>span { min-width: 65px; padding-top: 5px; line-height: 1.9; }
  .pagination>div { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .pagination .secondary { font-size: 9px; padding: 8px; }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .team-card { padding: 15px; }
  .team-card header { display: block; }
  .team-card .crest { margin-bottom: 11px; width: 35px; height: 35px; font-size: 9px; }
  .team-card h3 { font-size: 12px; }
  .team-card header small { font-size: 8px; }
  .team-stats { flex-wrap: wrap; gap: 10px; font-size: 18px; margin: 20px 0 12px; }
  .team-stats small { font-size: 7px; margin-bottom: 6px; }
  .team-card .form-strip { gap: 3px; }
  .team-card .form-strip>span { width: 19px; min-width: 19px; height: 20px; font-size: 8px; }
  .team-card>.text-btn { font-size: 10px; }
  .market-grid, .operator-grid { grid-template-columns: minmax(0,1fr); }
  .market { padding: 17px; }
  .market h3 { font-size: 13px; }
  .market p, .required { font-size: 10px; }
  th, td { padding: 11px 9px; font-size: 10px; }
  th { font-size: 8px; }
  .table-team { gap: 8px; font-size: 10px; min-width: 140px; }
  .players-table td:first-child { min-width: 150px; }
  .players-table .text-btn { font-size: 10px; }
  .scorer b { font-size: 11px; }
  .scorer .goals { font-size: 21px; }
  .scorer small { font-size: 8px; }
  .scorer .number { font-size: 8px; }
  .avatar, .avatar>.crest { width: 28px; height: 28px; }
  .analysis-form { grid-template-columns: minmax(0,1fr); gap: 0; }
  .analysis-form .field { margin: 8px 0; }
  .toolbar .primary, .toolbar .secondary { font-size: 10px; }
  dialog { padding: 20px 17px 24px; width: calc(100% - 22px); max-height: 91vh; max-height: 91dvh; border-radius: 13px; }
  dialog>.close { margin: -9px -6px 0 10px; }
  .dialog-title { font-size: 24px; letter-spacing: -.75px; padding-right: 30px; margin-top: 17px; }
  .forecast-card { padding: 21px 16px; margin-top: 20px; border-radius: 9px; }
  .forecast-card .eyebrow { font-size: 7px; letter-spacing: 1.4px; }
  .forecast-main { align-items: flex-start; gap: 14px; }
  .forecast-main h3 { font-size: 23px; letter-spacing: -.6px; }
  .forecast-main>strong { font-size: 34px; letter-spacing: -1px; max-width: 98px; }
  .forecast-main>strong small { font-size: 8px; }
  .forecast-main p, .forecast-card>p { font-size: 10px; }
  .forecast-card .forecast-alternative { font-size: 10px; }
  .forecast-card .evidence { font-size: 9px; padding: 12px; }
  .forecast-card ol { font-size: 10px; padding-left: 17px; }
  .forecast-card h4 { font-size: 11px; }
  .forecast-card .source-line { font-size: 9px; }
  .forecast-card.unavailable h3 { font-size: 20px; }
  .forecast-card.unavailable p { font-size: 11px; }
  .compare-grid { gap: 10px; }
  .compare-grid>div { padding: 13px; }
  .compare-grid h3 { font-size: 12px; }
  .prob-grid { gap: 9px; }
  .prob { padding: 13px; }
  .prob strong { font-size: 25px; }
  .prob span { font-size: 9px; }
  .market-row { grid-template-columns: minmax(0,1fr) 92px; gap: 13px; padding: 19px 0; }
  .market-row h4 { font-size: 12px; }
  .market-row p { font-size: 10px; }
  .market-row small { font-size: 9px; }
  .market-value>strong { font-size: 23px; }
  .market-value>small { font-size: 8px; }
  .market-value>span:not(.tag) { font-size: 9px; }
  .market-value .tag { max-width: 95px; white-space: normal; text-align: right; line-height: 1.8; }
  .market-controls select { min-width: 0; width: 100%; flex-basis: 100%; }
  .stat-fields { grid-template-columns: minmax(0,1fr); }
  .stat-fields>div, .status-fields>div { font-size: 10px; }
  .scenario-form { align-items: flex-start; }
  .scenario-form .field { max-width: 100%; }
  .scenario-form .switch-label { max-width: 100%; }
  .scenario-list>div { font-size: 10px; padding: 12px; }
  .backtest-metrics .metric-value { font-size: 24px; }
  .backtest-metrics .metric-label { font-size: 7px; }
  .backtest-metrics .metric { padding: 14px; }
  .backtest-metrics small { font-size: 8px; }
  .result-list { grid-template-columns: minmax(0,1fr); }
  .details-block summary { font-size: 11px; }
  .daily-readings-section>.section-head h2 { max-width: 225px; font-size: 22px; }
  .daily-readings-section>.section-head { align-items: flex-start; }
  .reading-controls { align-items: stretch; gap: 12px; }
  .reading-controls .field, .reading-controls .secondary { width: 100%; min-width: 0; }
  .reading-controls select { width: 100%; }
  .reading-schedule { padding: 12px 14px; }
  .reading-schedule p { font-size: 9px; }
  .reading-entry { padding: 16px; }
  .reading-entry h3 { font-size: 15px; }
  .reading-entry .tag { max-width: 125px; font-size: 7px; }
  .reading-dates { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .reading-report-header h3 { font-size: 17px; }
  .reading-report-header p { font-size: 11px; }
  .reading-report-header small { font-size: 9px; }
  .reading-empty { font-size: 10px; }
  .reading-observations thead { display: none; }
  .reading-observations, .reading-observations tbody { display: block; width: 100%; }
  .reading-observations tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 13px; padding: 16px 0; border-top: 1px solid #4b4e51; }
  .reading-observations td { display: block; min-width: 0; width: auto; position: static; border: 0; padding: 5px 0; font-size: 11px; line-height: 1.85; }
  .reading-observations td:first-child { grid-column: 1 / -1; min-width: 0; width: auto; padding-bottom: 8px; color: #b8babc; font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
  .reading-observations td:nth-child(2) { min-width: 0; font-size: 11px; }
  .reading-observations td:nth-child(3) { min-width: 0; align-self: start; color: #d1d2d4; font-size: 14px; font-weight: 600; }
  .reading-observations td:last-child { grid-column: 1 / -1; min-width: 0; color: #afb2b5; font-size: 10px; padding-top: 8px; }
  .operator-section .toolbar .secondary { width: 100%; }
  .operator-links a { min-height: 44px; }
  .operator-comparison th, .operator-comparison td { font-size: 9px; }
  .source-card h3 { font-size: 15px; }
  .source-card p, .source-list { font-size: 10px; }
  .source-card .table-wrap td { font-size: 9px; }
  .source-line a { line-height: 2; }
  .metadata { font-size: 9px; }
  #toast { bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 440px; font-size: 11px; }
  footer { display: block; font-size: 8px; line-height: 2; }
  footer>span { display: block; }
}

/* Motion is confined to interactions and a true loading indicator. */
@media (prefers-reduced-motion: no-preference) {
  button, a, .team-card { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
  #toast { transition: opacity .16s ease; }
  .loading::before { animation: orbit-loader .8s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@keyframes orbit-loader { to { transform: rotate(360deg); } }

/* Multi-match proposal: selection stays distinct from favourites. */
.ticket-launch { display:flex; align-items:center; gap:18px; width:100%; padding:19px 22px; margin:0 0 24px; border:1px solid #ffd400; border-radius:16px; background:linear-gradient(115deg,#ffd400,#ffd400); color:#16191d; text-align:left; cursor:pointer; min-width:0; }
.ticket-launch:disabled { opacity:.55; cursor:wait; }
.ticket-plus { flex:none; display:grid; place-items:center; width:48px; height:48px; border:1px solid #6d7175; border-radius:50%; font-size:34px; line-height:1; }
.ticket-launch strong { display:block; font-size:21px; line-height:1.3; }
.ticket-launch small { display:block; margin-top:4px; font-size:12px; line-height:1.5; }
.ticket-launch-arrow { margin-left:auto; font-size:27px; flex:none; }
#ticket-panel { scroll-margin-top:20px; }
.ticket-select { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-height:44px; color:#ffd400; font-size:11px; cursor:pointer; }
.ticket-select input { width:20px; height:20px; accent-color:#ffd400; }
.ticket-builder { border-color:#53565a; background:linear-gradient(135deg,#22262b,#181b1e); }
.ticket-builder>p { max-width:850px; line-height:1.7; }
.ticket-controls { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin:20px 0 10px; }
.ticket-controls .field { min-width:190px; flex:1; max-width:280px; }
.ticket-selection { list-style:none; padding:0; margin:20px 0; display:grid; gap:6px; }
.ticket-selection li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #3b434c; min-width:0; }
.ticket-selection small { display:block; color:#abadb0; margin-top:5px; }
.ticket-selection li>span { min-width:0; overflow-wrap:anywhere; }
.ticket-selection button { flex:none; min-height:44px; }
.ticket-receipt { margin-top:26px; padding-top:24px; border-top:1px solid #606366; }
.ticket-leg { display:grid; grid-template-columns:30px minmax(0,1fr) 130px; gap:18px; padding:24px 0; border-bottom:1px solid #3b434c; }
.ticket-index { font-size:12px; padding-top:4px; color:#a1a4a7; }
.ticket-leg h4 { font-size:18px; line-height:1.35; margin:8px 0; }
.ticket-pick { display:block; font-size:21px; color:#ffd400; margin:12px 0; }
.ticket-leg ul { padding-left:18px; line-height:1.7; font-size:12px; }
.ticket-probability { text-align:right; }
.ticket-probability strong { display:block; font-size:29px; color:#ffd400; }
.ticket-probability small,.ticket-probability span { display:block; font-size:10px; color:#adafb2; line-height:1.6; margin:6px 0; }
.ticket-total { font-size:16px; line-height:1.7; }
.ticket-policy { white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; }
@media(max-width:600px) {
 .ticket-launch { gap:12px; padding:16px 14px; border-radius:13px; }
 .ticket-plus { width:37px; height:37px; font-size:29px; }
 .ticket-launch strong { font-size:18px; }
 .ticket-launch small { font-size:10px; }
 .ticket-launch-arrow { font-size:22px; }
 .ticket-controls .field { max-width:none; flex-basis:100%; }
 .ticket-controls button { flex:1; min-width:0; }
 .ticket-leg { grid-template-columns:20px minmax(0,1fr); gap:8px; }
 .ticket-probability { grid-column:2; text-align:left; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
 .ticket-probability strong { font-size:26px; }
 .ticket-probability span { margin-left:auto; }
 .ticket-pick { font-size:19px; }
 .ticket-selection li { align-items:flex-start; font-size:12px; }
 .ticket-receipt .section-head { flex-wrap:wrap; gap:12px; }
}
.account-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-bottom:24px}
.account-welcome{background:radial-gradient(ellipse at 10% 0%,#474a4d 0,transparent 65%),#171a1e;min-height:480px;display:flex;flex-direction:column;justify-content:center;padding:42px}
.account-welcome h2{font-size:clamp(29px,3.4vw,48px);line-height:1.12;margin:18px 0}
.account-welcome p{max-width:42ch;line-height:1.7}.account-price{display:flex;gap:16px;align-items:center;margin:22px 0}.account-price strong{font-size:68px;line-height:1;color:#ffd400}.account-price span{max-width:15ch;color:#b9bbbd}
.account-form-panel h2{margin:24px 0}.account-tabs{display:flex;gap:8px}.account-tabs button{flex:1;background:#1c1f23;border:1px solid #4c4f52;color:#d8d9db;border-radius:10px;padding:12px}.account-tabs button[aria-pressed=true]{background:#adb0b3;color:#181b1e;border-color:#adb0b3}
.account-field{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:13px;color:#c5c6c8}.account-field input,.account-field select{background:#0f1114;border:1px solid #505255;border-radius:9px;color:#e9e9ea;padding:13px 14px;min-height:46px;width:100%;font:inherit}.account-field input:focus,.account-field select:focus{outline:2px solid #a7a9ac;outline-offset:2px}.account-field input:invalid:not(:placeholder-shown){box-shadow:none}
.account-check{display:flex;gap:10px;align-items:flex-start;margin:18px 0;font-size:12px;line-height:1.6}.account-check input{width:18px;height:18px;flex:none;margin-top:2px;accent-color:#adb0b3}.account-check a,.account-legal a,.merchant-footer a{color:#bec0c2;text-decoration:underline;text-underline-offset:3px}
.account-form-panel .primary{width:100%;justify-content:center}.account-greeting{margin:20px 0 28px}.account-greeting h2{font-size:36px;margin:10px 0}.account-admin form{max-width:600px}.account-admin{border-color:#6d7175}.account-grant{border-top:1px solid #484a4d;padding:18px 0}.account-status:empty{display:none}.account-status p{margin-bottom:20px}.account-error{border-color:#a58650}.account-legal{max-width:900px}.account-legal p{line-height:1.8;max-width:78ch}.account-legal h3{margin-top:30px}.merchant-footer{display:flex;flex-direction:column;gap:7px;padding:26px 0 12px;font-size:11px;line-height:1.6;color:#a0a3a6;overflow-wrap:anywhere}.merchant-footer strong{color:#bdbfc2}#account-cancel-confirm{margin-top:20px;padding:20px;border:1px solid #b59e5d;border-radius:10px}.account-admin-results:empty{display:none}
@media(max-width:760px){.account-grid{grid-template-columns:minmax(0,1fr);gap:18px}.account-welcome{min-height:310px;padding:25px}.account-welcome h2{font-size:34px}.account-price strong{font-size:56px}.account-greeting h2{font-size:30px}.sidebar nav a{min-width:0;flex:1;padding:8px 2px;font-size:9px}.merchant-footer{padding-bottom:24px}}

/* Core One corporate palette. Reference: Core One galactic-palette.css final material pass.
   Gold identifies actions; green remains a semantic sporting accent and in the pitch SVG. */
.primary,.ticket-launch,.skip{color:#10110f}
.primary:hover{background:#ffe15a;border-color:#ffe15a}
.ticket-launch{background:linear-gradient(115deg,#ffd400,#e6bd00);border-color:#ffd400}
.ticket-builder{background:linear-gradient(135deg,#202830,#141b22);border-color:#716324}
.account-welcome{background:radial-gradient(ellipse at 10% 0%,#ffd40018,transparent 65%),#141b22}
.account-price strong,.ticket-pick,.ticket-probability strong{color:#ffd400}
input[type=checkbox]{accent-color:#ffd400}
.status::before,.pending-dot{background:#67c587}
.pitch-mini{background-color:#11271c}
.pitch-mini::after{background:linear-gradient(#11271c 10%,#11271c77 63%,transparent)}
.core-one-signature{font-size:10px;letter-spacing:1.2px;color:#bdc7c9;display:block;margin-top:10px}
.core-one-signature b{color:#ffd400}
.ticket-bulk{padding:20px;margin:16px 0;border:1px solid #716324;border-radius:10px;background:#1c232a}
.ticket-bulk strong{font-size:16px}.ticket-bulk p,.ticket-bulk small{color:#bdc7c9;line-height:1.6}
.ticket-bulk-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:15px 0}
.ticket-bulk-actions .field{margin:0;min-width:130px}.ticket-bulk-actions button{min-height:44px}
#ticket-bulk-feedback:not(:empty){color:#ffd400;margin-bottom:0}
@media(max-width:600px){.ticket-bulk{padding:15px}.ticket-bulk-actions>*{flex:1 1 100%;width:100%}.ticket-bulk-actions .field select{width:100%}}

/* Account plan selection and authoritative daily usage. */
.account-tiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.account-tier{min-width:0;padding:16px;border:1px solid var(--line,#d7e1e5);border-radius:14px}.account-tier h3{margin:0 0 8px}.account-tier-price{font-size:1.3rem;font-weight:800}.account-tier-current{border-color:var(--accent,#1d8b67)}.account-tier button{width:100%;white-space:normal}.account-quota{padding:14px 0;border-bottom:1px solid var(--line,#d7e1e5)}.account-quota p{margin-bottom:8px}.account-tier button:disabled{opacity:.65;cursor:not-allowed}@media(max-width:560px){.account-tiers{grid-template-columns:1fr}}
