:root {
    color-scheme: light;
    --navy: #081a2f;
    --blue: #2f74a8;
    --blue-dark: #174e75;
    --green: #1b6b45;
    --green-dark: #155235;
    --gold: #f0c64f;
    --ink: #17212b;
    --muted: #4c5c68;
    --paper: #ffffff;
    --surface: #f6f3ea;
    --surface-soft: #eef0ec;
    --danger: #b4232e;
    --border: #c7c8c2;
    --radius: .5rem;
    --shadow: 0 6px 18px rgba(8,26,47,.08);
    font-family: "Atkinson Hyperlegible", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.football-team-name, .football-league-name { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; max-width: 100%; vertical-align: middle; }
.football-team-name > span:last-child, .football-league-name > span:last-child { overflow-wrap: anywhere; min-width: 0; }
.football-artwork-box { position: relative; display: inline-flex; flex: 0 0 auto; width: 24px; height: 24px; align-items: center; justify-content: center; background: var(--paper); color: var(--navy); border-radius: .25rem; font-size: .55rem; overflow: hidden; }
.football-artwork-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: inherit; }
.football-artwork-box img.is-failed { visibility: hidden; }
.football-artwork-box.badge-queue { width: 20px; height: 20px; }
.football-artwork-box.badge-setup { width: 32px; height: 32px; }
.football-artwork-box.badge-editor { width: 40px; height: 40px; }
.football-artwork-box.dark { background: var(--navy); color: var(--paper); }
.football-artwork-box.league-badge { width: 32px; height: 32px; }
.live-scores { container-type: inline-size; margin: 0 0 1.5rem; padding: 1rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.live-scores.is-overview { border-top: 4px solid var(--green); }
.live-scores-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.live-scores-heading h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.4rem; }
.live-scores-symbol { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; color: var(--paper); background: var(--green); border-radius: .35rem; font-size: 1.2rem; }
.live-scores-heading > a { font-size: .8rem; font-weight: 750; }
.live-score-fixture { position: relative; display: grid; grid-template-columns: 2.5rem 7.75rem minmax(0, 1fr) 1.75rem .75rem 1.75rem minmax(0, 1fr) 7rem; align-items: center; gap: .25rem .5rem; min-height: 3rem; padding: .4rem .25rem; border-bottom: 1px solid var(--surface-soft); }
.live-score-fixture:last-child { border-bottom: 0; }
.live-score-meta, .live-score-team { display: contents; }
.live-score-kickoff { grid-column: 1; grid-row: 1; font-size: .65rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.live-score-competition { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: .25rem; min-width: 0; font-size: .65rem; }
.live-score-league { min-width: 0; color: var(--muted); font-size: inherit; line-height: 1.2; }
.live-score-league .football-league-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-score-competition .prediction-result-badge { flex: 0 0 auto; min-height: 14px; height: 14px; padding: 0 .25rem; font-size: inherit; line-height: 14px; white-space: nowrap; }
.live-scores .live-score-league .football-artwork-box.league-badge { width: 14px; height: 14px; }
.live-score-status { grid-column: 8; grid-row: 1; justify-self: end; font-size: .6rem; line-height: 1.3; font-weight: 800; }
.live-score-status.is-live { color: var(--green); }
.live-score-status.is-live::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: .35rem; background: currentColor; border-radius: 50%; vertical-align: middle; }
.live-score-status.is-final { color: var(--navy); }
.live-score-status.is-delayed { color: #6b4f00; }
.live-score-status.is-waiting { color: var(--muted); }
.live-score-team .football-team-name { gap: .5rem; min-width: 0; color: var(--navy); font-size: .85rem; font-weight: 750; line-height: 1.3; }
.live-score-team.is-home .football-team-name { grid-column: 3; grid-row: 1; flex-direction: row-reverse; text-align: right; }
.live-score-team.is-home .live-score-value { grid-column: 4; grid-row: 1; }
.live-score-separator { grid-column: 5; grid-row: 1; text-align: center; color: var(--muted); }
.live-score-team.is-away .live-score-value { grid-column: 6; grid-row: 1; }
.live-score-team.is-away .football-team-name { grid-column: 7; grid-row: 1; }
.live-score-value { color: var(--navy); font-size: 1.5rem; line-height: 1; font-weight: 850; font-variant-numeric: tabular-nums; text-align: center; }
.live-scores .badge-live { width: 24px; height: 24px; }
.live-score-link { position: absolute; inset: 0; z-index: 1; min-height: 44px; border-radius: .2rem; }
.live-score-link:hover { box-shadow: inset 0 0 0 1px var(--border); }
.live-score-fixture:has(.live-score-link:hover) { background: var(--surface-soft); }
@container (max-width: 850px) {
    .live-scores-heading h2 { font-size: 1.2rem; }
    .live-score-fixture { grid-template-columns: minmax(0, 1fr) 1.5rem; gap: .15rem .5rem; min-height: 4rem; padding: .35rem .25rem; }
    .live-score-team.is-home .football-team-name { grid-column: 1; grid-row: 1; flex-direction: row; text-align: left; }
    .live-score-team.is-home .live-score-value { grid-column: 2; grid-row: 1; }
    .live-score-team.is-away .football-team-name { grid-column: 1; grid-row: 2; }
    .live-score-team.is-away .live-score-value { grid-column: 2; grid-row: 2; }
    .live-score-separator { display: none; }
    .live-score-meta { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: .5rem; min-height: 14px; }
    .live-score-kickoff, .live-score-competition, .live-score-status { font-size: .6rem; line-height: 14px; }
    .live-score-kickoff, .live-score-status { flex-shrink: 0; }
    .live-score-competition { flex: 1; }
    .live-score-status { margin-left: auto; white-space: nowrap; }
    .live-score-team .football-team-name { font-size: .8rem; line-height: 18px; gap: .5rem; }
    .live-scores .badge-live { width: 18px; height: 18px; }
    .live-score-value { font-size: 1.25rem; text-align: right; }
}
.provider-scope { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.provider-scope label { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.provider-source-panels, .provider-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.provider-evidence { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; font-size: .85rem; }
.provider-comparison-page { min-width: 0; }
.provider-comparison-page :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #e29d00; outline-offset: 3px; }
.provider-comparison-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); overflow-wrap: anywhere; }
.provider-page-heading, .provider-card-heading, .provider-list-toolbar, .provider-card-footer { display: flex; align-items: start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.provider-page-heading > div, .provider-card-heading > div { min-width: 0; flex: 1 1 20rem; }
.provider-page-heading p { color: var(--muted); }
.provider-authority-banner { display: grid; gap: .3rem; margin: .75rem 0 1.25rem; padding: 1rem 1.2rem; color: var(--navy); background: #e7f5ec; border: 1px solid #76b98f; border-left: 5px solid var(--green); border-radius: var(--radius); }
.provider-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 1rem 0 1.25rem; }
.provider-overview > div { display: grid; gap: .25rem; padding: 1rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.provider-overview span, .provider-value-label, .provider-detail-summary span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.provider-overview strong { font-size: 2rem; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.provider-overview small { color: var(--muted); }
.provider-view-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0; }
.provider-view-tabs a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .55rem .8rem; color: var(--blue-dark); background: var(--paper); border: 1px solid var(--border); border-radius: .35rem; font-weight: 750; text-decoration: none; }
.provider-view-tabs a:hover, .provider-view-tabs a[aria-current="page"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.provider-filters { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(10rem, 1.1fr) minmax(12rem, 1.7fr) auto; align-items: end; gap: .8rem; margin-bottom: 1rem; }
.provider-filters label { margin: 0; min-width: 0; }
.provider-comparison-page input[type="search"] { width: 100%; min-height: 2.75rem; padding: .55rem .65rem; color: var(--ink); background: var(--paper); border: 2px solid #8999a6; border-radius: .3rem; font: inherit; }
.provider-help, .provider-health-details, .provider-run-controls, .provider-observation-details, .provider-technical-details { margin: 1rem 0; padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.provider-comparison-page summary { min-height: 2rem; cursor: pointer; color: var(--blue-dark); font-weight: 800; }
.provider-comparison-page summary:focus-visible { outline: 3px solid #e29d00; outline-offset: 3px; }
.provider-comparison-page details[open] > summary { margin-bottom: 1rem; }
.provider-help dl { display: grid; gap: .75rem; }
.provider-help dt { font-weight: 800; color: var(--navy); }
.provider-help dd { margin: .15rem 0 0; color: var(--muted); }
.provider-list-toolbar { align-items: center; margin: 1.2rem 0 .8rem; }
.provider-list-toolbar p { margin: 0; }
.provider-selection-controls, .provider-card-actions, .provider-review-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.provider-selection-controls label, .provider-row-select { margin: 0; font-size: .9rem; }
.provider-difference-list { display: grid; gap: 1rem; }
.provider-difference-card { min-width: 0; padding: 1.15rem; background: var(--paper); border: 1px solid var(--border); border-left: 5px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow); }
.provider-fixture-check + .provider-fixture-check { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.provider-check-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.provider-check-heading h3 { margin: 0; font-size: 1rem; }
.provider-action-summary, .provider-data-issues { margin: 1rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.provider-action-summary h2, .provider-data-issues h2 { margin-top: 0; font-size: 1.2rem; }
.provider-data-issues article + article { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.provider-data-issues h3 { margin: 0 0 .3rem; font-size: 1rem; }
.provider-data-issues p, .provider-action-summary p { margin-bottom: .5rem; }
.provider-related-check { display: inline-block; margin-right: 1rem; padding-block: .3rem; }
.provider-matching { max-width: 58rem; padding-block: 1rem; scroll-margin-top: 6rem; }
.provider-matching > label:not(.provider-history-toggle), .provider-club-settings > label { display: block; margin-top: 1rem; margin-bottom: .3rem; font-weight: 700; }
.provider-matching select, .provider-matching input:not([type="checkbox"]) { width: 100%; max-width: 100%; min-width: 0; padding: .65rem; color: var(--ink); background: var(--paper); border: 1px solid var(--border); border-radius: .3rem; font: inherit; }
.provider-history-toggle { display: flex; align-items: center; gap: .6rem; margin-block: .8rem; }
.provider-match-summary { margin-block: 1rem; padding: 1rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.provider-match-summary h3 { margin-top: 0; font-size: 1.2rem; }
.provider-match-warning { margin-block: .7rem; padding: .7rem; background: #fff5cf; color: #533b00; border-left: 3px solid #9a6700; }
.provider-matching .btn { margin-block: .7rem; }
.provider-matching select:focus-visible, .provider-matching input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.provider-club-settings { margin-top: 1.5rem; }
.provider-history-subviews { display: flex; gap: 1rem; flex-wrap: wrap; margin-block: .75rem; }
.provider-import-conflicts { margin-block: 1rem; }
.provider-import-conflicts .provider-difference-card { margin-block: .75rem; }
.provider-import-conflicts .btn { margin: .5rem .5rem .5rem 0; }
.provider-card-kind { margin: 0 0 .35rem; color: var(--muted); font-size: .82rem; font-weight: 750; }
.provider-card-heading h2 { margin: 0 0 .9rem; font-size: 1.35rem; overflow-wrap: anywhere; }
.provider-card-heading h2 a { color: var(--navy); }
.provider-state { display: inline-flex; padding: .3rem .6rem; color: #533b00; background: #fff5cf; border: 1px solid #d9ae29; border-radius: .35rem; font-size: .82rem; font-weight: 800; }
.provider-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.provider-value { min-width: 0; display: grid; align-content: start; gap: .35rem; padding: .8rem; background: #f0f4f6; border: 1px solid #cbd4da; border-radius: .35rem; }
.provider-value strong { font-size: .98rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.provider-value-app { background: #e7f3fb; border-color: #7fb4d6; }
.provider-value-agrees { background: #e7f5ec; border-color: #76b98f; }
.provider-authority-note { color: var(--green-dark); font-size: .82rem; }
.provider-difference-explanation, .provider-coverage-note { margin: .75rem 0; color: var(--muted); }
.provider-card-footer { margin-top: .8rem; align-items: center; }
.provider-card-footer > div:first-child { display: grid; gap: .15rem; font-size: .78rem; color: var(--muted); }
.provider-card-actions .btn { min-height: 2.5rem; font-size: .88rem; }
.provider-review-form { max-width: none; margin: 1rem 0 0; padding: 1rem; background: #fff8df; border: 1px solid #d9ae29; border-radius: var(--radius); }
.provider-review-form h3 { margin-top: 0; }
.provider-review-form textarea { min-height: 5rem; }
.provider-review-form p, .provider-review-form .form-text { font-size: .9rem; }
.provider-review-buttons { margin-top: .9rem; }
.provider-pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; margin: 1.25rem 0; }
.provider-pagination span { font-variant-numeric: tabular-nums; }
.provider-empty { padding: 1.5rem; background: var(--paper); border: 1px dashed #8999a6; border-radius: var(--radius); }
.provider-empty h2 { margin-top: 0; }
.provider-league-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.provider-league-card { min-width: 0; padding: 1rem; background: #f0f4f6; border: 1px solid var(--border); border-radius: var(--radius); }
.provider-league-card h2 { margin-top: 0; font-size: 1.25rem; }
.provider-league-card p { margin-bottom: .55rem; font-size: .9rem; overflow-wrap: anywhere; }
.provider-related-links { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.provider-back-link { display: inline-block; margin-bottom: 1.25rem; }
.provider-detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.provider-detail-summary > div { display: grid; gap: .25rem; padding: .75rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.provider-detail-summary strong { font-size: .9rem; font-variant-numeric: tabular-nums; }
.provider-next-check { padding: 1rem; background: #e7f3fb; border: 1px solid #7fb4d6; border-radius: var(--radius); }
.provider-next-check h2 { margin-top: 0; font-size: 1.25rem; }
.provider-next-check p { margin-bottom: .55rem; }
.provider-review-history article { display: grid; gap: .3rem; padding: .75rem; margin-bottom: .6rem; background: var(--paper); border-left: 3px solid var(--blue); }
.provider-review-history span { color: var(--muted); font-size: .82rem; }
.provider-review-history p { margin-bottom: 0; overflow-wrap: anywhere; }
.provider-technical-details dt { margin-top: .6rem; font-weight: 800; }
.provider-technical-details dd { margin-left: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .provider-overview { grid-template-columns: minmax(0, 1fr); }
    .provider-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .provider-values { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .provider-overview, .provider-detail-summary, .provider-league-grid, .provider-filters { grid-template-columns: minmax(0, 1fr); }
    .provider-difference-card { padding: .85rem; }
    .provider-card-actions { width: 100%; }
    .provider-card-actions .btn { flex: 1 1 9rem; }
    .provider-view-tabs a { flex: 1 1 8rem; justify-content: center; }
}
@media (max-width: 1023px) {
    .football-artwork-box.league-badge { width: 28px; height: 28px; }
    .football-artwork-box.badge-editor { width: 32px; height: 32px; }
}
@media (max-width: 760px) {
    .provider-source-panels, .provider-health-grid { grid-template-columns: minmax(0, 1fr); }
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-size: 1rem; line-height: 1.55; }
main { display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; text-wrap: balance; }
h1 { margin: 0 0 1rem; font: 900 clamp(2.15rem, 6vw, 3.65rem)/.96 "Arial Narrow", "Segoe UI", sans-serif; letter-spacing: -.035em; text-transform: uppercase; }
h2 { margin: 2rem 0 .8rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { margin: 1.3rem 0 .55rem; font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: #07528b; text-underline-offset: .18em; }
a:hover { color: #07395f; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #e29d00; outline-offset: 3px; }
h1:focus { outline: 3px solid #e29d00; outline-offset: .3rem; }
code { padding: .12rem .3rem; color: #5d1830; background: #f4e8ed; border-radius: .25rem; overflow-wrap: anywhere; }
.hero {
    position: relative;
    overflow: hidden;
    margin: -2.25rem calc(50% - 50vw) 2.5rem;
    padding: clamp(2.5rem, 8vw, 6rem) max(1rem, calc((100vw - 1120px) / 2));
    color: #fff;
    background: linear-gradient(115deg, rgba(7,26,51,.97), rgba(7,26,51,.82)), repeating-linear-gradient(90deg, transparent 0 70px, rgba(255,255,255,.09) 70px 72px), #146b3a;
    border-bottom: 6px solid var(--gold);
}
.hero::after {
    content: "";
    position: absolute;
    width: min(42vw, 30rem);
    aspect-ratio: 1.55;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%) rotate(-4deg);
    border: 3px solid rgba(255,255,255,.38);
    background: radial-gradient(circle at center, transparent 0 20%, rgba(255,255,255,.35) 20.5% 21.5%, transparent 22%), linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.32) 49.5% 50.5%, transparent 50.5%);
    opacity: .72;
}
.hero-content { position: relative; z-index: 1; max-width: 44rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.hero .lead { max-width: 42rem; color: #e5f0f7; font-size: clamp(1.08rem, 2.3vw, 1.32rem); }
.eyebrow { margin-bottom: .7rem; color: #6b4f00; font: 850 .78rem/1 "Segoe UI", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow, .pitch-panel .eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-note { margin-top: 1rem; color: #d8e6f1; font-size: .92rem; }
.score-grid, .feature-grid, .competition-grid, .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.score-card, .feature-card, .competition-card, .stat-card { padding: 1.15rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.score-card { border-top: 5px solid var(--blue); }
.score-card strong { display: block; margin-bottom: .3rem; color: var(--navy); font: 900 2rem/1 ui-monospace, monospace; }
.score-card h3, .feature-card h3, .competition-card h2 { margin-top: .2rem; }
.section-intro { max-width: 48rem; color: var(--muted); }
.rule-note { margin-top: 1rem; padding: 1rem; background: #fff8df; border-left: 5px solid #a66f00; border-radius: .25rem; }
.pitch-panel { margin-top: 2.5rem; padding: clamp(1.25rem, 4vw, 2.25rem); color: #fff; background-color: var(--green-dark); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 48px, transparent 48px 96px); border-radius: .7rem; }
.pitch-panel h2 { color: #fff; }
.pitch-panel .feature-card { color: var(--ink); }
.pitch-panel .feature-card h3 { color: var(--navy); }
.pitch-panel a { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; padding: .62rem 1rem; border: 2px solid transparent; border-radius: .35rem; font: inherit; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline-primary { color: var(--blue-dark); background: #fff; border-color: var(--blue); }
.btn-outline-primary:hover { color: #fff; background: var(--blue-dark); }
.btn-outline-secondary { color: var(--navy); background: #fff; border-color: #65798a; }
.btn-outline-secondary:hover { color: #fff; background: var(--navy); }
.btn-link { color: var(--blue-dark); background: transparent; text-decoration: underline; }
.btn-lg { min-height: 3rem; padding: .75rem 1.1rem; }
.owner-sign-in { width: min(36rem, calc(100% - 2rem)); margin: clamp(2rem, 10vh, 7rem) auto; padding: clamp(1.25rem, 5vw, 2.5rem); background: var(--paper); border: 1px solid var(--border); border-top: 5px solid var(--gold); border-radius: .5rem; box-shadow: 0 .6rem 1.8rem rgba(7,26,51,.12); }
form { max-width: 48rem; }
label { display: block; margin: .75rem 0 .3rem; color: var(--navy); font-weight: 700; }
fieldset { margin: 1rem 0; padding: .85rem 1rem 1rem; border: 1px solid var(--border); border-radius: .4rem; }
legend { padding: 0 .35rem; color: var(--navy); font-weight: 800; }
.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="datetime-local"], input[type="date"], select, textarea { width: 100%; min-height: 2.75rem; padding: .55rem .65rem; color: var(--ink); background: #fff; border: 2px solid #8999a6; border-radius: .3rem; font: inherit; }
.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,86,143,.18); outline: 0; }
input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-right: .4rem; vertical-align: -.2rem; accent-color: var(--blue); }
.form-floating { display: flex; flex-direction: column; }
.form-floating > label { order: -1; }
.form-text, .text-muted, .text-secondary { color: var(--muted) !important; }
.validation-message, .text-danger { color: var(--danger) !important; font-weight: 650; }
.valid.modified:not([type="checkbox"]) { border-color: var(--green); }
.invalid { border-color: var(--danger) !important; }
.card { background: #fff; border: 1px solid var(--border); border-radius: .55rem; box-shadow: 0 5px 16px rgba(7,26,51,.06); }
.card-body { padding: 1.25rem; }
.alert { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid transparent; border-radius: .4rem; }
.alert-info { color: #07395f; background: #e7f3fb; border-color: #7fb4d6; }
.alert-success { color: #0d4c29; background: #e7f5ec; border-color: #76b98f; }
.alert-warning { color: #533b00; background: #fff5cf; border-color: #d9ae29; }
.alert-danger { color: #71131f; background: #fce8eb; border-color: #d9848f; }
.authenticator-qr-figure { width: fit-content; max-width: 100%; margin: 1rem 0; }
.authenticator-qr-code { width: min(18rem, 100%); padding: .75rem; background: #fff; border: 2px solid var(--border); border-radius: .5rem; }
.authenticator-qr-code svg { display: block; width: 100%; height: auto; }
.authenticator-qr-figure figcaption { margin-top: .45rem; color: var(--muted); font-size: .95rem; }
.table-responsive { width: 100%; overflow-x: auto; }
table, .table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; background: #fff; }
th, td { padding: .7rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid #cbd4da; }
th { color: #fff; background: var(--navy); font-size: .9rem; letter-spacing: .02em; }
tbody tr:nth-child(even) { background: #f0f4f6; }
tbody tr:hover { background: #fff7dc; }
caption { padding: .55rem 0; color: var(--muted); text-align: left; }
.score-entry { display: flex; gap: 1rem; align-items: end; margin: 1rem 0; max-width: 24rem; }
.score-entry label { flex: 1; }
.score-entry input { max-width: 7rem; font: 800 1.2rem/1 ui-monospace, monospace; text-align: center; }
.prediction-deadline-banner { margin: 1.5rem 0 2rem; padding: clamp(1.15rem, 4vw, 1.7rem); color: #fff; background: var(--navy); border: 4px solid var(--gold); border-radius: .65rem; box-shadow: 0 8px 24px rgba(7,26,51,.16); }
.overview-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin: 1.25rem 0 1.75rem; padding: clamp(1.1rem, 4vw, 1.6rem); background: linear-gradient(180deg, #fff, #fff8df); border: 2px solid var(--border); border-left: 10px solid var(--gold); border-radius: .7rem; box-shadow: 0 8px 22px rgba(7,26,51,.1); }
.overview-banner h2 { margin: .25rem 0 .6rem; font-size: clamp(1.35rem, 4vw, 2rem); }
.overview-banner p:last-child { margin-bottom: 0; }
.overview-banner .btn { flex: 0 0 auto; min-width: min(100%, 13rem); }
.prediction-callout { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1.5rem 0 2rem; padding: clamp(1.25rem, 4vw, 1.8rem); background: #fff8df; border: 4px solid var(--gold); border-left: 10px solid var(--blue); border-radius: .65rem; box-shadow: 0 8px 24px rgba(7,26,51,.13); }
.prediction-callout h2 { margin: .3rem 0 .65rem; font-size: clamp(1.55rem, 4vw, 2.25rem); }
.prediction-callout p:last-child { margin-bottom: 0; }
.prediction-callout .btn { flex: 0 0 auto; min-width: min(100%, 15rem); }
.scoreline-rail { display: grid; grid-template-columns: 1fr 1.1fr 1fr auto; gap: 0; align-items: stretch; margin: 1.5rem 0 2rem; overflow: hidden; color: #fff; background: var(--navy); border: 3px solid var(--navy); border-left: 9px solid var(--gold); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(8,26,47,.18); }
.scoreline-rail > div { display: grid; align-content: center; gap: .3rem; min-height: 7rem; padding: 1rem 1.15rem; border-right: 1px solid rgba(255,255,255,.18); }
.scoreline-rail span { color: #cbd8e4; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.scoreline-rail strong { color: #fff; font: 900 clamp(1.15rem, 2.5vw, 1.55rem)/1.08 "Arial Narrow", "Segoe UI", sans-serif; text-transform: uppercase; }
.scoreline-rail small { color: #dce7ef; }
.scoreline-action { min-width: 13rem; display: grid; place-items: center; padding: 1rem 1.2rem; color: var(--navy); background: var(--gold); font-weight: 900; text-align: center; text-decoration: none; }
.scoreline-action:hover { color: #fff; background: var(--blue); }
.overview-primary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.overview-primary-grid > a { min-height: 13rem; display: flex; flex-direction: column; padding: 1.2rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.overview-primary-grid > a:nth-child(2) { border-top-color: var(--blue); }
.overview-primary-grid h2 { margin: .2rem 0 .7rem; }
.overview-primary-grid > a > span { margin-top: auto; color: var(--blue-dark); font-weight: 850; }
.overview-secondary-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .65rem; margin: 1rem 0 2rem; }
.overview-secondary-links a { display: grid; gap: .25rem; min-height: 5.5rem; padding: .85rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.overview-secondary-links a:hover { border-color: var(--blue); background: #f4f9fd; }
.overview-secondary-links strong { color: var(--navy); }
.overview-secondary-links span { color: var(--muted); font-size: .85rem; }
.round-up-feature { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1rem 0 2rem; padding: 1.25rem; color: #fff; background: var(--green-dark); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 52px, transparent 52px 104px); border-left: 10px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.round-up-feature h2 { margin: .2rem 0 .55rem; color: #fff; }
.round-up-feature p { color: #e6f0ea; }
.round-up-feature > span { flex: 0 0 auto; color: var(--gold); font-weight: 900; }
.competition-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.competition-detail-grid section { display: grid; gap: .25rem; padding: .9rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.competition-detail-grid span { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.competition-detail-grid strong { color: var(--navy); font: 900 1.35rem/1 "Arial Narrow", "Segoe UI", sans-serif; text-transform: uppercase; }
.competition-detail-grid small { color: var(--muted); }
.admin-entry-callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 0; padding: 1.1rem; background: #fff8dc; border: 2px solid #c89e18; border-left: 8px solid var(--gold); border-radius: var(--radius); }
.admin-entry-callout h2 { margin: .15rem 0 .45rem; }
.admin-entry-callout p:last-child { margin-bottom: 0; }
.competition-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.1rem; }
.dashboard-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin: 1rem 0 2.25rem; }
.dashboard-feature-card { display: flex; flex-direction: column; min-height: 14rem; padding: 1.2rem; color: var(--ink); background: #fff; border: 2px solid var(--border); border-top: 6px solid var(--blue); border-radius: .6rem; box-shadow: 0 6px 18px rgba(7,26,51,.08); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.dashboard-feature-card:hover { color: var(--ink); border-color: var(--blue); box-shadow: 0 10px 25px rgba(7,26,51,.15); transform: translateY(-2px); }
.dashboard-feature-card h3 { margin: .25rem 0 .7rem; font-size: 1.35rem; }
.dashboard-feature-card p { margin-bottom: .7rem; }
.dashboard-feature-card > span:last-child { margin-top: auto; color: var(--blue-dark); font-weight: 800; }
.dashboard-feature-card-wide { border-top-color: var(--gold); }
.prediction-deadline-banner .eyebrow { color: var(--gold); }
.prediction-deadline-banner h2 { margin: .35rem 0 .65rem; color: #fff; font-size: clamp(1.45rem, 4vw, 2.2rem); }
.prediction-deadline-banner p:last-child { margin-bottom: 0; color: #e5f0f7; }
.prediction-form { max-width: none; }
.prediction-completion { margin: 0 0 1rem; padding: .9rem 1rem; background: #fff; border: 2px solid var(--border); border-radius: .55rem; box-shadow: 0 5px 15px rgba(7,26,51,.07); }
.prediction-completion-summary { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.prediction-completion-summary .eyebrow { margin-bottom: .2rem; }
.prediction-completion-summary h2 { margin: 0; font-size: clamp(1.1rem, 3vw, 1.45rem); }
.prediction-completion-summary > strong { color: var(--blue-dark); white-space: nowrap; }
.prediction-completion progress { display: block; width: 100%; height: 1.15rem; overflow: hidden; accent-color: var(--green); }
.prediction-workspace { display: grid; grid-template-columns: minmax(19rem, .75fr) minmax(0, 1.35fr); gap: 1.25rem; align-items: start; margin-bottom: 2rem; }
.prediction-round { margin: 0 0 2rem; }
.prediction-round-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 3px solid var(--navy); }
.prediction-round-heading h2 { margin-bottom: .55rem; }
.prediction-round-heading p { margin: 0; color: var(--muted); font-weight: 700; }
.prediction-league-heading { margin: 1.15rem 0 .35rem; padding-left: .65rem; border-left: 5px solid var(--green); }
.prediction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.prediction-card { padding: 1.15rem; background: #fff; border: 2px solid var(--border); border-top: 5px solid var(--blue); border-radius: .55rem; box-shadow: 0 5px 16px rgba(7,26,51,.07); }
.prediction-card h3 { margin: .35rem 0 1rem; font-size: clamp(1.15rem, 3vw, 1.4rem); }
.prediction-card-locked { border-top-color: #65798a; background: #f0f4f6; }
.prediction-choice-card { display: block; margin: 0; cursor: pointer; }
.prediction-choice-card input[type="radio"] { width: 1.35rem; height: 1.35rem; margin: 0 .45rem 0 0; accent-color: var(--blue); }
.prediction-choice-card-selected { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,86,143,.2), 0 5px 16px rgba(7,26,51,.09); }
.prediction-choice-label { color: var(--blue-dark); font-weight: 800; }
.prediction-fixture-name { display: block; margin: .55rem 0 .8rem; color: var(--navy); font-size: clamp(1.15rem, 3vw, 1.4rem); line-height: 1.2; }
.prediction-kickoff { margin-bottom: .35rem; color: var(--muted); font-size: .93rem; font-weight: 650; }
.prediction-score-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .7rem; align-items: end; }
.prediction-score-entry label { min-width: 0; margin-top: 0; }
.prediction-team-heading { min-height: 3.45rem; display: grid; align-content: end; justify-items: center; gap: .35rem; margin-bottom: .45rem; overflow-wrap: anywhere; }
.prediction-team-name { display: block; color: var(--navy); font-weight: 800; }
.prediction-team-form { display: flex; justify-content: center; gap: .22rem; }
.prediction-form-marker { width: 1.55rem; height: .72rem; display: grid; place-items: center; color: #fff; background: #687782; border-radius: 2px; font-size: .56rem; font-weight: 950; line-height: 1; cursor: help; }
.prediction-form-marker.is-win { background: var(--green); }
.prediction-form-marker.is-loss { background: var(--danger); }
.prediction-score-entry input { min-height: 5.25rem; font: 900 clamp(2rem, 5vw, 3rem)/1 ui-monospace, monospace; text-align: center; }
.prediction-score-separator { padding-bottom: 1.55rem; color: var(--navy); font-size: 2rem; font-weight: 900; }
.prediction-status { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--border); }
.prediction-editor { position: sticky; top: 1rem; z-index: 5; grid-column: 2; min-height: 31rem; padding: clamp(1.25rem, 4vw, 2rem); background: #fff; border: 3px solid var(--blue); border-top: 9px solid var(--blue); border-radius: .7rem; box-shadow: 0 10px 28px rgba(7,26,51,.16); }
.prediction-editor h2 { margin: .35rem 0 1rem; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.prediction-editor-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.prediction-editor-header .eyebrow { margin-bottom: .35rem; }
.prediction-progress { margin: 0; color: var(--muted); font-weight: 700; }
.prediction-editor-state { padding: .25rem .6rem; color: #fff; background: var(--blue); border-radius: 999px; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.prediction-editor-state.is-saved { background: var(--green); }
.prediction-editor-state.is-draft { color: #533b00; background: #fff0b8; }
.prediction-editor-state.is-missing { background: var(--danger); }
.prediction-fixture-context { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1.25rem; margin-bottom: .8rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.prediction-fixture-subtitle, .prediction-fixture-deadline { margin: 0; font-size: .86rem; font-weight: 750; }
.prediction-fixture-subtitle { color: var(--blue-dark); }
.prediction-fixture-deadline { color: var(--muted); text-align: right; }
.prediction-fixture-deadline strong { color: var(--ink); }
.prediction-editor-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.prediction-editor-actions span { color: var(--muted); font-size: .92rem; }
.prediction-editor-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
.prediction-complete-panel { display: flex; flex-direction: column; justify-content: center; }
.prediction-complete-panel .btn { align-self: flex-start; }
.prediction-connecting { margin-left: .75rem; color: var(--muted); font-weight: 700; }
.prediction-queue { grid-column: 1; grid-row: 1; max-height: calc(100vh - 2rem); overflow-y: auto; background: #fff; border: 2px solid var(--border); border-radius: .65rem; box-shadow: 0 7px 20px rgba(7,26,51,.09); }
.prediction-queue-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1rem; background: #fff; border-bottom: 3px solid var(--navy); }
.prediction-queue-header h2 { margin: .2rem 0 0; font-size: 1.4rem; }
.prediction-queue-header .eyebrow { margin-bottom: .15rem; }
.prediction-queue-header > span { padding: .2rem .5rem; color: #fff; background: var(--navy); border-radius: 999px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.prediction-queue-group { margin: 0; padding: .85rem .75rem .2rem; }
.prediction-queue-group > h3 { margin: 0 0 .5rem; font-size: 1rem; }
.prediction-queue-date { margin: .7rem 0 .25rem; color: var(--navy); font-size: .9rem; font-weight: 800; }
.prediction-queue-league { margin: .65rem 0 .35rem; color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.prediction-queue-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .25rem .55rem; align-items: center; margin: 0 0 .45rem; padding: .75rem; color: var(--ink); background: #f7f9fa; border: 2px solid transparent; border-radius: .45rem; cursor: pointer; }
.prediction-queue-item:hover { background: #eef5fa; border-color: #8bb4d1; }
.prediction-queue-item.is-selected { background: #e7f3fb; border-color: var(--blue); box-shadow: inset 5px 0 0 var(--blue); }
.prediction-queue-item.has-draft { border-color: #c28a00; }
.prediction-queue-item.is-locked { cursor: default; opacity: .78; }
.prediction-queue-item input[type="radio"] { grid-row: 1 / span 2; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--blue); }
.prediction-queue-radio-placeholder { grid-row: 1 / span 2; width: 1.15rem; height: 1.15rem; border: 2px solid #8999a6; border-radius: 50%; }
.prediction-queue-match { display: flex; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.prediction-queue-score { min-width: 3.25rem; color: var(--navy); font: 900 1.1rem/1 ui-monospace, monospace; text-align: right; }
.prediction-queue-time { grid-column: 2; color: var(--muted); font-size: .78rem; }
.prediction-queue-status { grid-column: 3; justify-self: end; padding: .12rem .4rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.prediction-queue-status.is-saved { color: #0d4c29; background: #dff2e6; }
.prediction-queue-status.is-missing { color: #71131f; background: #f9dde2; }
.prediction-queue-status.is-draft { color: #533b00; background: #fff0b8; }
.prediction-queue-status.is-locked { color: #34495e; background: #dfe5e9; }
.prediction-queue-locked { border-bottom: 3px solid var(--border); }
.prediction-queue-locked > summary { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; color: var(--navy); background: #f0f4f6; font-weight: 800; cursor: pointer; }
.prediction-queue-locked > summary span { color: var(--muted); }
.prediction-queue-locked[open] > summary { border-bottom: 1px solid var(--border); }
.prediction-queue-locked-content { padding: .15rem .75rem .35rem; background: #f7f9fa; }
.prediction-queue-locked-content .prediction-queue-item { background: #fff; }
.prediction-inline-list { display: none; }
.prediction-inline-list-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: .2rem 0 .5rem; }
.prediction-inline-list-header h2 { margin: .2rem 0 0; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.prediction-inline-list-header .eyebrow { margin-bottom: .2rem; }
.prediction-inline-list-header > strong { color: var(--blue-dark); }
.prediction-inline-complete { padding: 1rem; background: #e7f5ec; border: 2px solid var(--green); border-radius: .6rem; }
.prediction-inline-complete h3 { margin-top: 0; }
.prediction-inline-group { display: grid; gap: .55rem; }
.prediction-inline-group > h3 { margin: 1rem 0 0; padding-bottom: .45rem; border-bottom: 3px solid var(--navy); }
.prediction-inline-league { margin: .45rem 0 0; color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.prediction-inline-card { overflow: hidden; background: #fff; border: 2px solid var(--border); border-radius: .6rem; box-shadow: 0 4px 12px rgba(7,26,51,.06); }
.prediction-inline-card.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,86,143,.14), 0 6px 18px rgba(7,26,51,.1); }
.prediction-inline-card.has-draft { border-color: #c28a00; }
.prediction-inline-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; width: 100%; min-height: 4.75rem; padding: .8rem .9rem; color: var(--ink); background: #fff; border: 0; text-align: left; cursor: pointer; }
.prediction-inline-summary:hover { background: #eef5fa; }
.prediction-inline-summary-main { display: grid; gap: .2rem; min-width: 0; }
.prediction-inline-summary-main strong { overflow-wrap: anywhere; }
.prediction-inline-time { color: var(--muted); font-size: .8rem; font-weight: 750; }
.prediction-inline-summary-result { display: grid; gap: .25rem; justify-items: end; min-width: 5.5rem; }
.prediction-inline-summary-result > strong { color: var(--navy); font: 900 1.05rem/1 ui-monospace, monospace; }
.prediction-inline-status { padding: .15rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.prediction-inline-status.is-saved { color: #0d4c29; background: #dff2e6; }
.prediction-inline-status.is-missing { color: #71131f; background: #f9dde2; }
.prediction-inline-status.is-draft { color: #533b00; background: #fff0b8; }
.prediction-inline-editor { padding: 1rem; border-top: 1px solid var(--border); }
.prediction-inline-locked { margin: 0 0 .15rem; background: #fff; border: 2px solid var(--border); border-radius: .6rem; }
.prediction-inline-locked > summary { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem; color: var(--navy); font-weight: 800; cursor: pointer; }
.prediction-inline-locked > summary span { color: var(--muted); }
.prediction-inline-locked[open] > summary { border-bottom: 1px solid var(--border); }
.prediction-inline-locked-item { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .9rem; border-bottom: 1px solid #e1e6e9; }
.prediction-inline-locked-item:last-child { border-bottom: 0; }
.prediction-inline-locked-item > span { display: grid; gap: .2rem; }
.prediction-inline-locked-item > span:last-child { justify-items: end; text-align: right; }
.prediction-inline-locked-item small { color: var(--muted); }
.prediction-closed-fixtures { margin: 1rem 0 2rem; background: #fff; border: 2px solid var(--border); border-radius: .65rem; box-shadow: 0 7px 20px rgba(7,26,51,.09); }
.prediction-closed-fixtures > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; color: var(--navy); cursor: pointer; }
.prediction-closed-fixtures > summary > span:first-child { display: grid; gap: .2rem; }
.prediction-closed-fixtures > summary strong { font-size: 1.15rem; }
.prediction-closed-fixtures > summary small { color: var(--muted); }
.prediction-closed-fixtures > summary > span:last-child { padding: .2rem .5rem; color: #fff; background: var(--navy); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.prediction-closed-fixtures[open] > summary { border-bottom: 1px solid var(--border); }
.prediction-closed-fixtures-content { padding: 0 1rem 1rem; }
@media (max-width: 1023px) {
    .prediction-page-status {
        position: sticky;
        z-index: 40;
        top: .5rem;
        box-shadow: 0 6px 18px rgba(7,26,51,.18);
    }
    .prediction-desktop-workspace { display: none; }
    .prediction-inline-list { display: grid; gap: .75rem; margin-bottom: 2rem; }
}
.matrix-shortcuts { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.matrix-section { margin: 0 0 2rem; }
.matrix-section > h2 { margin-bottom: .25rem; }
.matrix-section > p { color: var(--muted); }
.matrix-fixture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: .8rem; }
.matrix-fixture { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: .5rem; box-shadow: 0 4px 12px rgba(7,26,51,.06); }
.matrix-fixture-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; padding: .75rem .85rem; background: #f0f4f6; border-bottom: 1px solid var(--border); }
.matrix-fixture-heading h3, .matrix-fixture-heading h4 { margin: 0 0 .2rem; font-size: 1.05rem; }
.matrix-fixture-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.matrix-lock-state { flex: 0 0 auto; padding: .15rem .45rem; color: #533b00; background: #fff0b8; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.matrix-lock-state.is-locked { color: #0d4c29; background: #dff2e6; }
.matrix-players { padding: .35rem .65rem; }
.matrix-player { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 2.4rem; padding: .4rem .2rem; border-bottom: 1px solid #e1e6e9; }
.matrix-player:last-child { border-bottom: 0; }
.matrix-player.is-current-user { margin-inline: -.25rem; padding-inline: .45rem; background: #e7f3fb; border-radius: .3rem; }
.matrix-player-name { min-width: 0; overflow-wrap: anywhere; }
.matrix-player-name strong { color: var(--blue-dark); }
.matrix-score { flex: 0 0 auto; min-width: 3.2rem; color: var(--navy); font: 900 1.05rem/1 ui-monospace, monospace; text-align: right; }
.matrix-score-concealed { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .35rem; color: var(--muted); }
.matrix-score-concealed > span { filter: blur(3px); font: 900 1rem/1 ui-monospace, monospace; user-select: none; }
.matrix-score-concealed small { font-size: .7rem; font-weight: 800; }
.matrix-missing { color: var(--danger); font-size: .78rem; font-weight: 800; }
.matrix-section-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .25rem; }
.matrix-section-heading h2, .matrix-section-heading h3 { margin: 0; }
.matrix-section.is-current { padding: 1rem; background: #f4f9fd; border: 1px solid var(--border); border-radius: .5rem; }
.matrix-earlier { margin: 0 0 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: .5rem; }
.matrix-earlier > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .9rem; cursor: pointer; font-weight: 800; }
.matrix-earlier[open] > summary { border-bottom: 1px solid var(--border); }
.matrix-earlier > section { padding: 1rem .9rem 0; }
.matrix-earlier > section:last-child { padding-bottom: 1rem; }
.matrix-earlier-count { color: var(--muted); font-size: .8rem; font-weight: 700; }
.matrix-copy { flex: 0 0 auto; }
.matrix-copy.is-copied { color: #0d4c29; background: #dff2e6; border-color: #0d4c29; }
.matrix-copy-fixture { display: block; width: calc(100% - 1.3rem); margin: 0 .65rem .65rem; }
.prediction-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; }
.prediction-results-heading > div { min-width: 0; }
.prediction-results-heading .btn { flex: 0 0 auto; margin-bottom: 1rem; }
.prediction-results-filters { margin: 1rem 0 1.5rem; padding: .9rem; background: #fff; border: 2px solid var(--border); border-top: 6px solid var(--blue); border-radius: .55rem; box-shadow: 0 5px 15px rgba(7,26,51,.07); }
.prediction-results-filters > summary { min-height: 2.9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--navy); font-weight: 850; cursor: pointer; }
.prediction-results-filters > summary small { color: var(--blue-dark); font-weight: 750; text-align: right; }
.prediction-results-filters[open] > summary { margin-bottom: .75rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border); }
.prediction-results-filters form { max-width: none; }
.prediction-results-filter-grid { display: grid; gap: .75rem; }
.prediction-results-filter-grid label { margin-top: 0; }
.prediction-results-filter-actions { display: grid; gap: .55rem; margin-top: .85rem; }
.prediction-results-category-links { display: flex; gap: .45rem; overflow-x: auto; margin-top: .8rem; padding: .1rem 0 .3rem; scrollbar-width: thin; }
.prediction-results-category-links a { flex: 0 0 auto; min-height: 2.55rem; display: inline-flex; align-items: center; padding: .45rem .7rem; color: var(--navy); background: #e8eef2; border: 2px solid transparent; border-radius: .3rem; font-weight: 750; text-decoration: none; }
.prediction-results-category-links a:hover, .prediction-results-category-links a.is-active { color: #fff; background: var(--blue); border-color: var(--blue-dark); }
.prediction-results-count { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 0 0 .8rem; color: var(--muted); }
.prediction-results-count strong { color: var(--navy); font-size: 1.1rem; }
.prediction-results-count span { text-align: right; }
.prediction-results-deadline { margin: 0 0 2rem; }
.prediction-results-deadline-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; padding-bottom: .55rem; border-bottom: 3px solid var(--navy); }
.prediction-results-deadline-heading h2 { margin: 0; }
.prediction-result-grid { display: grid; gap: .85rem; }
.prediction-result-fixture { overflow: hidden; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--green); border-radius: .55rem; box-shadow: 0 5px 15px rgba(7,26,51,.07); }
.prediction-result-fixture.is-open { border-top-color: var(--blue); }
.prediction-result-fixture-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .85rem; background: #f0f4f6; border-bottom: 1px solid var(--border); }
.prediction-result-fixture-heading h3 { margin: 0; overflow-wrap: anywhere; }
.prediction-result-kickoff { margin: 0 0 .2rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.prediction-result-fixture-score { min-width: 4.25rem; text-align: right; }
.prediction-result-fixture-score strong { display: block; color: var(--navy); font: 900 1.55rem/1 ui-monospace, monospace; }
.prediction-result-fixture-score span { display: inline-block; margin-top: .25rem; padding: .12rem .4rem; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.prediction-result-fixture-score .is-final { color: #0d4c29; background: #dff2e6; }
.prediction-result-fixture-score .is-locked { color: #34495e; background: #dfe5e9; }
.prediction-result-fixture-score .is-open { color: #533b00; background: #fff0b8; }
.prediction-result-fixture-score .is-postponed { color: #533b00; background: #fff0b8; }
.prediction-result-rearranged { margin: 0; padding: .7rem .85rem; color: var(--blue-dark); background: #eef5fa; border-bottom: 1px solid var(--border); }
.prediction-result-postponed { margin: 0; padding: .7rem .85rem; color: #533b00; background: #fff5cf; border-bottom: 1px solid var(--border); }
.prediction-result-table { width: 100%; margin: 0; table-layout: fixed; }
.prediction-result-table th, .prediction-result-table td { padding: .55rem .45rem; vertical-align: middle; overflow-wrap: anywhere; }
.prediction-result-table thead th { font-size: .72rem; }
.prediction-result-table th:nth-child(1) { width: 34%; }
.prediction-result-table th:nth-child(2) { width: 21%; }
.prediction-result-table th:nth-child(3) { width: 29%; }
.prediction-result-table th:nth-child(4) { width: 16%; text-align: right; }
.prediction-result-table tbody th { color: var(--ink); background: transparent; font-size: inherit; letter-spacing: 0; text-transform: none; }
.prediction-result-table tbody tr.is-current-user { background: #e7f3fb; }
.prediction-result-table tbody tr.is-current-user:hover { background: #e7f3fb; }
.prediction-result-player-name { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.prediction-result-player-name strong { color: var(--blue-dark); font-size: .72rem; }
.prediction-result-score { color: var(--navy); font: 900 .95rem/1 ui-monospace, monospace; }
.prediction-result-score.is-concealed { color: var(--muted); font-family: inherit; font-size: .8rem; }
.prediction-result-concealed-value { display: inline-block; color: var(--navy); filter: blur(3px); font: 900 .95rem/1 ui-monospace, monospace; user-select: none; }
.prediction-result-badge { display: inline-flex; min-height: 1.7rem; align-items: center; padding: .15rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.prediction-result-badge.is-exact { color: #0d4c29; background: #dff2e6; }
.prediction-result-badge.is-margin { color: #07395f; background: #e7f3fb; }
.prediction-result-badge.is-outcome { color: #533b00; background: #fff0b8; }
.prediction-result-badge.is-incorrect, .prediction-result-badge.is-missed { color: #71131f; background: #f9dde2; }
.prediction-result-badge.is-pending { color: #34495e; background: #dfe5e9; }
.prediction-result-points { color: var(--navy); font-weight: 900; text-align: right; }
.prediction-result-actions { display: grid; padding: .7rem .85rem; background: #f7f9fa; border-top: 1px solid var(--border); }
.prediction-results-copy.is-copied { color: #0d4c29; background: #dff2e6; border-color: #0d4c29; }
.prediction-results-link { margin: 0 0 1.25rem; }
.prediction-results-past { margin: 0 0 1.5rem; overflow: hidden; background: #fff; border: 2px solid var(--border); border-radius: .65rem; box-shadow: var(--shadow); }
.prediction-results-past > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding: .85rem 1rem; color: var(--navy); cursor: pointer; }
.prediction-results-past > summary > span:first-child { display: grid; gap: .15rem; }
.prediction-results-past > summary strong { font-size: 1.15rem; }
.prediction-results-past > summary small { color: var(--muted); font-weight: 650; }
.prediction-results-past > summary > span:last-child, .prediction-results-window-heading > span { flex: 0 0 auto; padding: .2rem .55rem; color: #fff; background: var(--blue-dark); border-radius: 999px; font-size: .78rem; font-weight: 850; }
.prediction-results-past[open] > summary { border-bottom: 1px solid var(--border); }
.prediction-results-past-content { padding: 0 1rem 1rem; }
.prediction-results-window { margin: 0 0 2rem; }
.prediction-results-window.is-current { padding: 1rem; background: #f4f9fd; border: 2px solid #8bb4d1; border-radius: .65rem; box-shadow: var(--shadow); }
.prediction-results-window-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 3px solid var(--navy); }
.prediction-results-window-heading .eyebrow { margin-bottom: .25rem; color: var(--green-dark); }
.prediction-results-window-heading h2 { margin: 0; }
.prediction-results-day { margin-top: 1rem; }
.prediction-results-day > h2, .prediction-results-day > h3 { margin: 0 0 .55rem; color: var(--green-dark); font-size: .9rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.team-list { display: flex; gap: .55rem; flex-wrap: wrap; padding: 0; list-style: none; }
.team-list li { padding: .45rem .7rem; color: #fff; background: var(--blue); border-radius: 999px; font-weight: 700; }
.competition-selected-teams { margin: 1.25rem 0 1.75rem; }
.competition-selected-teams h2 { margin: 0 0 .8rem; }
.competition-selected-teams .team-list { margin: 0; }
.competition-shell { margin: -1rem 0 2rem; }
.competition-context { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--border); border-left: 8px solid var(--gold); border-radius: var(--radius) var(--radius) 0 0; }
.competition-context .eyebrow { margin-bottom: .25rem; }
.competition-context-name { display: block; color: var(--navy); font: 900 clamp(1.35rem, 3vw, 1.8rem)/1 "Arial Narrow", "Segoe UI", sans-serif; text-decoration: none; text-transform: uppercase; }
.competition-context span { display: block; margin-top: .25rem; color: var(--muted); font-size: .88rem; font-weight: 700; }
.competition-switch { flex: 0 0 auto; font-weight: 800; }
.competition-tabs { display: flex; gap: .15rem; overflow-x: auto; padding: .45rem; background: var(--navy); border-radius: 0 0 var(--radius) var(--radius); scrollbar-width: thin; }
.competition-tabs a { flex: 0 0 auto; min-height: 2.65rem; display: inline-flex; align-items: center; padding: .55rem .75rem; color: #edf6ff; border-radius: .3rem; font-weight: 750; text-decoration: none; }
.competition-tabs a:hover, .competition-tabs a.is-active { color: var(--navy); background: var(--gold); }
.competition-tabs .competition-manage-link { margin-left: auto; color: #4b3900; background: #fff2c7; }
.competition-mobile-tabs { display: none; }
.competition-navigation-unavailable { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.admin-shell { margin: -1rem 0 2rem; background: #fff8dc; border: 2px solid #c89e18; border-radius: var(--radius); overflow: hidden; }
.admin-context { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-left: 8px solid var(--gold); }
.admin-context .eyebrow { margin-bottom: .25rem; }
.admin-context > div > a { display: block; color: var(--navy); font: 900 clamp(1.25rem, 3vw, 1.7rem)/1 "Arial Narrow", "Segoe UI", sans-serif; text-decoration: none; text-transform: uppercase; }
.admin-context span { display: block; margin-top: .3rem; color: #614a00; font-size: .86rem; font-weight: 750; }
.admin-exit { flex: 0 0 auto; font-weight: 800; }
.admin-tabs { display: flex; gap: .2rem; overflow-x: auto; padding: .45rem; background: #4b3900; }
.admin-tabs a { flex: 0 0 auto; min-height: 2.6rem; display: inline-flex; align-items: center; padding: .55rem .7rem; color: #fff8dc; border-radius: .3rem; font-weight: 750; text-decoration: none; }
.admin-tabs a:hover, .admin-tabs a.is-active { color: #4b3900; background: var(--gold); }
.admin-tabs .admin-owner-link { margin-left: auto; color: var(--navy); background: #fff; }
.admin-attention { margin: 1rem 0 1.5rem; padding: 1.2rem; background: #fff8dc; border: 2px solid #c89e18; border-left: 9px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-attention h2 { margin: .2rem 0 .6rem; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .8rem; margin: 1rem 0 2rem; }
.admin-summary-grid section { display: grid; gap: .25rem; padding: 1rem; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-summary-grid span { color: var(--muted); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.admin-summary-grid strong { color: var(--navy); font: 900 1.7rem/1 "Arial Narrow", "Segoe UI", sans-serif; text-transform: uppercase; }
.admin-summary-grid small { color: var(--muted); }
.management-task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; }
.management-task-grid a { min-height: 8rem; display: flex; flex-direction: column; gap: .5rem; padding: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.management-task-grid a:hover { border-color: var(--blue); transform: translateY(-1px); }
.management-task-grid strong { color: var(--navy); font-size: 1.2rem; }
.management-task-grid span { color: var(--muted); }
.owner-layout { display: grid; grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.owner-sidebar { position: sticky; top: 1rem; padding: 1rem; background: var(--navy); border-top: 7px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.owner-navigation-heading { margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.owner-navigation-heading .eyebrow { color: var(--gold); }
.owner-navigation-heading strong { color: #fff; font: 900 1.35rem/1 "Arial Narrow", "Segoe UI", sans-serif; text-transform: uppercase; }
.owner-navigation { display: grid; gap: .15rem; }
.owner-navigation p { margin: .9rem .6rem .25rem; color: #aebfd0; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.owner-navigation a { min-height: 2.5rem; display: flex; align-items: center; padding: .5rem .6rem; color: #edf6ff; border-radius: .3rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.owner-navigation a:hover, .owner-navigation a.is-active { color: var(--navy); background: var(--gold); }
.owner-navigation-mobile { display: none; }
.owner-content { min-width: 0; }
.owner-attention { margin: 1rem 0 1.5rem; padding: 1.2rem; background: #fff8dc; border: 2px solid #c89e18; border-left: 9px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.owner-attention h2 { margin: .2rem 0 .6rem; }
.owner-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .8rem; margin: 1rem 0 2rem; }
.owner-summary-grid section { display: grid; gap: .25rem; padding: 1rem; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); }
.owner-summary-grid span { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.owner-summary-grid strong { color: var(--navy); font: 900 1.7rem/1 "Arial Narrow", "Segoe UI", sans-serif; text-transform: uppercase; }
.owner-summary-grid small { color: var(--muted); }
.owner-operation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
.owner-operation-grid a { min-height: 9rem; display: flex; flex-direction: column; gap: .55rem; padding: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.owner-operation-grid a:hover { border-color: var(--green); transform: translateY(-1px); }
.owner-operation-grid strong { color: var(--navy); font-size: 1.15rem; }
.owner-operation-grid span { color: var(--muted); }
.subnav { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.subnav a { padding: .45rem .65rem; background: #e8eef2; border-radius: .3rem; font-weight: 650; text-decoration: none; }
[id] { scroll-margin-top: 1rem; }
.meta-line { color: var(--muted); }
.scoreboard { display: inline-flex; gap: .35rem; padding: .3rem .55rem; color: #fff; background: var(--navy); border-radius: .25rem; font: 800 1rem/1.2 ui-monospace, monospace; }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
.col-md-4, .col-lg-4 { grid-column: span 4; }
.col-lg-3 { grid-column: span 3; }
.col-lg-6, .col-xl-6 { grid-column: span 6; }
.col-lg-9 { grid-column: span 9; }
.nav { display: flex; gap: .35rem; padding: 0; list-style: none; }
.nav.flex-column { flex-direction: column; }
.nav-link { display: block; padding: .5rem .65rem; border-radius: .3rem; }
.nav-link.active { color: #fff; background: var(--blue); }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: .5rem !important; }
.align-middle { vertical-align: middle; }
.w-100 { width: 100% !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mx-auto { margin-inline: auto !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.journey-chart, .analytics-chart { width: 100%; max-width: 800px; background: #fff; border: 1px solid #767676; border-radius: .35rem; }
.journey-chart { max-width: none; }
.analytics-chart:focus { outline: 3px solid #e29d00; outline-offset: 2px; }
.analytics-player-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .85rem; margin: 1rem 0 2rem; }
.analytics-player-card { padding: 1rem; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--blue); border-radius: .55rem; box-shadow: 0 5px 15px rgba(7,26,51,.07); }
.analytics-player-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.analytics-player-heading h3 { margin: 0; }
.analytics-player-heading > strong { color: var(--blue-dark); font-size: 1.15rem; }
.analytics-player-card progress { width: 100%; height: .85rem; margin: .65rem 0; accent-color: var(--green); }
.analytics-player-card dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin: .6rem 0; }
.analytics-player-card dl div { padding: .4rem; text-align: center; background: #f0f4f6; border-radius: .3rem; }
.analytics-player-card dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.analytics-player-card dd { margin: 0; color: var(--navy); font-weight: 900; }
.analytics-player-card p { margin: .45rem 0 0; }
.analytics-details, .journey-details { margin: 1rem 0; padding: .75rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: .45rem; }
.analytics-details summary, .journey-details summary { color: var(--blue-dark); font-weight: 800; cursor: pointer; }
.insights-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 1rem; }
.insights-page-heading h1 { margin-bottom: .45rem; }
.insights-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .75rem; background: #fff; border: 1px solid var(--border); border-radius: .7rem; box-shadow: var(--shadow); }
.insights-periods { display: flex; gap: .4rem; flex-wrap: wrap; }
.insights-periods button { min-height: 2.65rem; padding: .55rem .8rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: .4rem; font: inherit; font-weight: 800; cursor: pointer; }
.insights-periods button.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.insights-compare-control { display: flex; align-items: center; gap: .6rem; }
.insights-compare-control label { color: var(--muted); font-weight: 800; }
.insights-compare-control select { min-height: 2.65rem; max-width: 16rem; padding: .5rem 2rem .5rem .65rem; color: var(--ink); background: #fff; border: 1px solid #65798a; border-radius: .4rem; font: inherit; }
.insights-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .8fr); gap: 1.5rem; margin-bottom: 1rem; padding: clamp(1.25rem, 4vw, 2rem); color: #fff; background: var(--navy); border: 4px solid var(--gold); border-radius: .8rem; box-shadow: var(--shadow); }
.insights-hero::before { position: absolute; content: ""; inset: 1.4rem 2.75rem; pointer-events: none; opacity: .15; border: 2px solid #fff; border-radius: .8rem; }
.insights-hero::after { position: absolute; content: ""; top: 1.4rem; bottom: 1.4rem; left: 55%; pointer-events: none; opacity: .15; border-left: 2px solid #fff; }
.insights-hero-copy, .insights-position-card { position: relative; z-index: 1; }
.insights-hero-kicker { display: inline-block; margin-bottom: .75rem; color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.insights-hero-copy h2 { max-width: 44rem; margin: 0 0 .7rem; color: #fff; font-size: clamp(1.65rem, 4vw, 2.65rem); }
.insights-hero-copy > p { max-width: 42rem; color: #edf4f8; }
.insights-hero-callout { display: inline-flex; padding: .5rem .75rem; color: var(--navy); background: var(--gold); border-radius: .4rem; font-weight: 900; }
.insights-position-card { align-self: center; padding: 1rem; color: var(--ink); background: #fff; border: 1px solid #65798a; border-radius: .8rem; }
.insights-position-line { display: flex; align-items: end; justify-content: space-between; gap: .75rem; }
.insights-position-line > strong { color: var(--navy); font: 950 clamp(3rem, 8vw, 5rem)/.85 "Arial Narrow", "Segoe UI", sans-serif; letter-spacing: -.06em; }
.insights-position-caption { margin: .6rem 0 1rem; color: var(--muted); }
.insights-mini-progress { height: .75rem; overflow: hidden; background: var(--surface-soft); border-radius: 999px; }
.insights-mini-progress span { display: block; height: 100%; background: var(--green); }
.insights-score-note { display: flex; justify-content: space-between; gap: .75rem; margin-top: .45rem; font-size: .85rem; }
.insights-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .8fr); gap: 1rem; margin-bottom: 1rem; }
.insights-card { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: .8rem; box-shadow: var(--shadow); }
.insights-card-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1rem 1rem 0; }
.insights-card-header h2 { margin: 0 0 .3rem; }
.insights-card-header p { margin: 0; color: var(--muted); font-size: .92rem; }
.insights-card-header > a { flex: 0 0 auto; font-weight: 800; }
.insights-card-body { padding: 1rem; }
.insights-metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.insights-metric-strip > div { padding: .75rem; background: var(--surface-soft); border-radius: .45rem; text-align: center; }
.insights-metric-strip strong { display: block; color: var(--navy); font-size: 1.6rem; line-height: 1; }
.insights-metric-strip span { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.insights-breakdown { display: grid; gap: .2rem; min-height: 1.1rem; overflow: hidden; background: var(--surface-soft); border-radius: 999px; }
.insights-breakdown span:nth-child(1) { background: #b11f4b; }
.insights-breakdown span:nth-child(2) { background: var(--gold); }
.insights-breakdown span:nth-child(3) { background: var(--blue); }
.insights-breakdown-legend { display: flex; flex-wrap: wrap; gap: .75rem; margin: .55rem 0 0; padding: 0; color: var(--muted); font-size: .84rem; list-style: none; }
.insights-breakdown-legend b { color: var(--ink); }
.insights-chart { margin: .7rem 0 0; }
.insights-chart svg { display: block; width: 100%; height: auto; }
.insights-chart svg:focus { outline: 3px solid #e29d00; outline-offset: 2px; }
.insights-grid-line { stroke: #d7dde0; stroke-width: 1; }
.insights-player-line { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.insights-comparison-line { fill: none; stroke: #a66f00; stroke-width: 3; stroke-dasharray: 8 7; stroke-linecap: round; stroke-linejoin: round; }
.insights-chart-point { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.insights-chart-label { fill: var(--muted); font: 700 12px "Segoe UI", sans-serif; }
.insights-chart-value { fill: var(--ink); font: 850 13px "Segoe UI", sans-serif; }
.insights-chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; color: var(--muted); font-size: .84rem; }
.insights-chart-legend i { display: inline-block; width: 1.75rem; margin-right: .35rem; border-top: 3px solid var(--blue); vertical-align: middle; }
.insights-chart-legend i.is-comparison { border-top-color: #a66f00; border-top-style: dashed; }
.insights-note-list { display: grid; gap: .6rem; }
.insights-note { display: grid; grid-template-columns: 2.7rem 1fr; gap: .7rem; align-items: start; padding: .75rem; background: #fbfaf6; border: 1px solid var(--border); border-radius: .45rem; }
.insights-note > span { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; color: var(--navy); background: var(--surface-soft); border-radius: 50%; font-weight: 950; }
.insights-note strong { display: block; margin-bottom: .15rem; color: var(--navy); }
.insights-note p { margin: 0; color: var(--muted); font-size: .9rem; }
.insights-note-kind { display: block; margin-bottom: .12rem; color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.insights-note .insights-note-evidence { margin-top: .5rem; padding-top: .45rem; border-top: 1px solid var(--border); color: var(--ink); font-size: .82rem; }
.insights-note .insights-note-action { margin-top: .35rem; color: var(--navy); font-size: .85rem; }
.insights-ai-provenance { margin: .8rem 0 .35rem; color: var(--muted); font-size: .78rem; }
.insights-coach-status { margin: .35rem 0 .7rem; padding: .55rem .65rem; background: #eef5fa; border-left: 4px solid var(--blue); border-radius: .25rem; font-size: .86rem; }
.insights-coach-button { width: 100%; }
.insights-rival-headings, .insights-rival-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 6rem 4.5rem; gap: .5rem; align-items: center; }
.insights-rival-headings { padding: 0 .75rem .35rem; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.insights-rival-list { display: grid; gap: .45rem; }
.insights-rival-row { padding: .65rem .75rem; background: var(--surface-soft); border-radius: .45rem; }
.insights-rival-row.is-you { background: #fff8dc; border: 2px solid #c89e18; }
.insights-rank { color: var(--navy); font-size: 1.2rem; font-weight: 950; }
.insights-player-name { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.insights-movement { color: var(--muted); font-size: .84rem; font-weight: 800; }
.insights-movement.is-up { color: var(--green); }
.insights-movement.is-down { color: var(--danger); }
.insights-round-points { text-align: right; font-weight: 850; }
.insights-pulse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.insights-pulse-grid article { padding: .9rem; background: var(--surface-soft); border-top: 5px solid var(--blue); border-radius: .45rem; }
.insights-pulse-grid article:nth-child(2) { border-top-color: var(--green); }
.insights-pulse-grid article:nth-child(3) { border-top-color: var(--danger); }
.insights-pulse-grid strong { display: block; margin: .45rem 0 .25rem; color: var(--navy); font-size: 1.35rem; }
.insights-pulse-grid p { margin: 0; color: var(--muted); font-size: .86rem; }
.insights-details-card { margin-top: 1rem; }
.insights-details-card details { border-top: 1px solid var(--border); }
.insights-details-card summary { min-height: 3rem; padding: .85rem 1rem; color: var(--blue-dark); font-weight: 850; cursor: pointer; }
.insights-details-content { padding: 0 1rem 1rem; }
.insights-details-content > p { margin-bottom: .55rem; color: var(--muted); }
.insights-table-you { background: #fff8dc; }
.journey-hero { margin: 1.25rem 0 2rem; padding: clamp(1rem, 3vw, 1.5rem); background: linear-gradient(180deg, #fff, #f7fafb); border: 2px solid var(--border); border-top: 7px solid var(--gold); border-radius: .7rem; box-shadow: 0 8px 22px rgba(7,26,51,.09); }
.journey-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.journey-heading h2 { margin: .25rem 0 .6rem; }
.journey-heading > p { max-width: 32rem; color: var(--muted); }
.journey-roller-coaster { border: 0; }
.journey-grid-line { stroke: #dbe3e8; stroke-width: 1; }
.journey-axis-tick { stroke: #53687a; stroke-width: 2; }
.journey-axis-label { fill: #53687a; font-size: 12px; font-weight: 700; }
.journey-chart foreignObject .journey-axis-label { display: block; color: #53687a; text-align: center; }
.journey-axis-title { fill: var(--navy); font-size: 14px; font-weight: 900; }
.journey-player-line { filter: drop-shadow(0 2px 2px rgba(7,26,51,.18)); }
.journey-series { stroke-dashoffset: 0; }
.journey-node, .journey-marker { opacity: 1; }
.journey-marker { font-size: 20px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
    .journey-series { stroke-dasharray: 1; stroke-dashoffset: 1; animation: journey-series-draw 1.6s cubic-bezier(.22,1,.36,1) var(--journey-draw-delay, 0ms) both; }
    .journey-node, .journey-marker { opacity: 0; transform-box: fill-box; transform-origin: center; animation: journey-point-pop .38s cubic-bezier(.2,.85,.35,1.35) calc(var(--journey-draw-delay, 0ms) + 1.15s) both; }
}
@keyframes journey-series-draw { to { stroke-dashoffset: 0; } }
@keyframes journey-point-pop { from { opacity: 0; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }
@media print {
    .journey-series { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
    .journey-node, .journey-marker { opacity: 1; transform: none; animation: none; }
}
.journey-legend { display: flex; gap: .6rem 1rem; flex-wrap: wrap; margin: .75rem 0 0; padding: 0; list-style: none; }
.journey-legend li { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.journey-legend span { width: 1.6rem; height: .35rem; background: var(--legend-colour); border-radius: 999px; }
.journey-legend .journey-legend-emoji { width: auto; height: auto; background: transparent; border-radius: 0; font-size: 1.05rem; line-height: 1; }
.week-ahead-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.5rem; padding: 1rem 1.2rem; color: #fff; background: var(--navy); border-left: 8px solid var(--gold); border-radius: .55rem; }
.week-ahead-summary h2 { margin: .2rem 0 0; color: #fff; }
.week-ahead-summary .eyebrow { color: var(--gold); }
.week-ahead-stats { display: flex; gap: .55rem; flex-wrap: wrap; }
.week-ahead-stats span { padding: .35rem .65rem; background: rgba(255,255,255,.12); border-radius: 999px; }
.week-ahead-day { margin: 0 0 2rem; }
.week-ahead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: .85rem; }
.week-ahead-card { padding: 1rem; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--green); border-radius: .55rem; box-shadow: 0 5px 15px rgba(7,26,51,.07); }
.week-ahead-card-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.week-ahead-card-heading h3 { margin: .25rem 0 .75rem; }
.week-ahead-lock { flex: 0 0 auto; padding: .15rem .45rem; color: #533b00; background: #fff0b8; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.week-ahead-lock.is-locked { color: #0d4c29; background: #dff2e6; }
.week-ahead-card progress { width: 100%; height: .9rem; accent-color: var(--green); }
.week-ahead-postponed { margin: .25rem 0 .85rem; padding: .7rem .8rem; color: #533b00; background: #fff5cf; border-left: 5px solid #d9ae29; border-radius: .3rem; }
#blazor-error-ui { color-scheme: light; display: none; position: fixed; z-index: 1000; inset: auto 0 0; padding: .75rem 3.25rem .75rem 1rem; color: #fff; background: #8d1725; box-shadow: 0 -2px 8px rgba(0,0,0,.25); }
#blazor-error-ui .dismiss { position: absolute; right: .75rem; top: .45rem; color: #fff; background: transparent; border: 1px solid #fff; border-radius: .2rem; font-size: 1.25rem; cursor: pointer; }
.blazor-error-boundary { padding: 1rem; color: #fff; background: #8d1725; border-radius: .35rem; }
.blazor-error-boundary::after { content: "An error has occurred."; }
@media (min-width: 761px) {
    .prediction-results-filter-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .prediction-results-filter-actions { display: flex; align-items: center; }
    .prediction-result-table th, .prediction-result-table td { padding: .65rem .8rem; }
    .prediction-result-table thead th { font-size: .8rem; }
    .prediction-result-score { font-size: 1.05rem; }
    .prediction-result-actions { display: flex; justify-content: flex-end; padding-inline: 1rem; }
    .deadline-verdict-heading { padding: 1rem 1.2rem; }
    .deadline-verdict-body { padding: 1.1rem 1.2rem 1.25rem; }
}
@media (max-width: 760px) {
    body:has(.competition-mobile-tabs) { padding-bottom: 5.25rem; }
    .competition-shell { margin-top: -.4rem; }
    .competition-context { align-items: flex-start; padding: .8rem; border-left-width: 6px; border-radius: var(--radius); }
    .competition-context > div { min-width: 0; }
    .competition-context-name { font-size: 1.25rem; }
    .competition-switch { max-width: 44%; font-size: .85rem; overflow-wrap: anywhere; text-align: right; }
    .competition-tabs { display: none; }
    .competition-mobile-tabs { position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: .4rem max(.35rem, env(safe-area-inset-right)) calc(.4rem + env(safe-area-inset-bottom)) max(.35rem, env(safe-area-inset-left)); background: #fff; border-top: 2px solid var(--border); box-shadow: 0 -7px 22px rgba(8,26,47,.16); }
    .competition-mobile-tabs > a, .competition-more > summary { min-height: 3.4rem; display: grid; place-items: center; padding: .35rem; color: var(--muted); background: transparent; border: 0; border-radius: .35rem; font-size: .78rem; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
    .competition-mobile-tabs > a.is-active, .competition-more > summary.is-active, .competition-more[open] > summary { color: var(--navy); background: #fff2c7; box-shadow: inset 0 -4px 0 var(--gold); }
    .competition-more { position: relative; }
    .competition-more > summary { list-style: none; }
    .competition-more > summary::-webkit-details-marker { display: none; }
    .competition-more-panel { position: fixed; z-index: 36; right: .5rem; bottom: calc(4.7rem + env(safe-area-inset-bottom)); left: .5rem; display: grid; gap: .2rem; padding: .55rem; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: 0 -10px 30px rgba(8,26,47,.24); }
    .competition-more-panel a { min-height: 2.9rem; display: flex; align-items: center; padding: .6rem .75rem; color: var(--ink); border-radius: .3rem; font-weight: 750; text-decoration: none; }
    .competition-more-panel a:hover, .competition-more-panel a.is-active { background: #eaf3f8; }
    .admin-shell { margin-top: -.4rem; }
    .admin-context { align-items: flex-start; padding: .8rem; border-left-width: 6px; }
    .admin-exit { font-size: .82rem; }
    .admin-tabs { padding: .35rem; }
    .admin-tabs a { min-height: 2.8rem; }
    .admin-summary-grid { grid-template-columns: 1fr; }
    .owner-layout { display: block; }
    .owner-sidebar { position: static; margin: -.4rem 0 1.25rem; padding: .75rem; }
    .owner-navigation-heading { margin-bottom: .55rem; padding-bottom: .55rem; }
    .owner-navigation-desktop { display: none; }
    .owner-navigation-mobile { display: block; }
    .owner-navigation-mobile > summary { min-height: 2.8rem; display: flex; align-items: center; padding: .55rem .65rem; color: var(--navy); background: var(--gold); border-radius: .3rem; font-weight: 850; cursor: pointer; }
    .owner-navigation-mobile .owner-navigation { padding-top: .45rem; }
    .owner-summary-grid { grid-template-columns: 1fr; }
    .hero { margin-top: -1.35rem; padding-block: 2.6rem; }
    .hero::after { right: -8rem; opacity: .28; width: 26rem; }
    .hero-content { max-width: 100%; }
    .row { display: block; }
    .row > * { margin-bottom: 1.25rem; }
    .score-entry { max-width: 100%; }
    .score-entry input { max-width: 100%; }
    .prediction-deadline-banner { margin: 1rem 0 1.25rem; padding: 1rem; border-width: 3px; }
    .prediction-deadline-banner h2 { font-size: 1.4rem; overflow-wrap: anywhere; }
    .prediction-completion-summary { align-items: stretch; flex-direction: column; gap: .25rem; }
    .prediction-completion-summary > strong { white-space: normal; }
    .prediction-round-heading { align-items: stretch; flex-direction: column; }
    .overview-banner { align-items: stretch; flex-direction: column; margin: 1rem 0 1.4rem; }
    .overview-banner .btn { width: 100%; }
    .prediction-callout { align-items: stretch; flex-direction: column; }
    .prediction-callout .btn { width: 100%; }
    .scoreline-rail { grid-template-columns: 1fr 1fr; }
    .scoreline-rail > div { min-height: 5.6rem; padding: .8rem; border-bottom: 1px solid rgba(255,255,255,.18); }
    .scoreline-rail > div:nth-child(3) { grid-column: 1 / -1; border-bottom: 0; }
    .scoreline-action { grid-column: 1 / -1; min-height: 3.4rem; }
    .overview-primary-grid, .competition-detail-grid { grid-template-columns: 1fr; }
    .overview-primary-grid > a { min-height: 10rem; }
    .overview-secondary-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .round-up-feature, .admin-entry-callout { align-items: stretch; flex-direction: column; }
    .admin-entry-callout .btn { width: 100%; }
    .prediction-desktop-workspace { display: none; }
    .prediction-editor { position: static; order: 1; width: 100%; min-height: 0; padding: 1rem; border-width: 2px; border-top-width: 7px; }
    .prediction-editor-header { align-items: stretch; flex-direction: column; gap: .6rem; }
    .prediction-editor-state { align-self: flex-start; }
    .prediction-editor h2 { font-size: 1.65rem; overflow-wrap: anywhere; }
    .prediction-editor .btn, .prediction-inline-editor .btn { width: 100%; }
    .prediction-fixture-context { align-items: flex-start; flex-direction: column; gap: .15rem; }
    .prediction-fixture-deadline { text-align: left; }
    .prediction-editor-actions { align-items: stretch; flex-direction: column; }
    .prediction-editor-actions span { text-align: center; }
    .prediction-queue { order: 2; width: 100%; max-height: none; overflow: visible; }
    .prediction-queue-header { position: static; }
    .prediction-score-entry { grid-template-columns: minmax(0, 1fr) 1.1rem minmax(0, 1fr); gap: .35rem; }
    .prediction-team-heading { min-height: 3.75rem; font-size: .92rem; }
    .prediction-form-marker { width: 1.2rem; height: .68rem; }
    .prediction-score-entry input { min-height: 4.8rem; padding-inline: .25rem; font-size: 2.15rem; }
    .prediction-score-separator { padding-bottom: 1.45rem; font-size: 1.55rem; text-align: center; }
    .prediction-queue-item { padding: .7rem .6rem; }
    .prediction-queue-match { align-items: flex-start; flex-direction: column; gap: 0; line-height: 1.2; }
    .prediction-queue-match > span { font-size: .75rem; }
    .prediction-queue-score { font-size: 1rem; }
    .prediction-queue-time { overflow-wrap: anywhere; }
    .prediction-inline-list-header { align-items: stretch; flex-direction: column; gap: .25rem; }
    .prediction-inline-summary { padding: .75rem; }
    .prediction-inline-summary-result { min-width: 4.6rem; }
    .prediction-inline-editor { padding: .85rem .75rem 1rem; }
    .prediction-inline-locked-item { align-items: flex-start; }
    .matrix-shortcuts { display: grid; grid-template-columns: 1fr; }
    .matrix-shortcuts .btn { width: 100%; }
    .matrix-fixture-grid { grid-template-columns: 1fr; }
    .matrix-fixture-heading { align-items: stretch; flex-direction: column; }
    .matrix-lock-state { align-self: flex-start; }
    .matrix-section-heading { align-items: stretch; flex-direction: column; }
    .matrix-section-heading .matrix-copy { width: 100%; }
    .matrix-section.is-current { padding: .75rem; }
    .prediction-results-heading { align-items: stretch; flex-direction: column; gap: 0; }
    .prediction-results-heading .btn { width: 100%; }
    .prediction-results-filters > summary { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .prediction-results-filters > summary small { text-align: left; }
    .prediction-results-deadline-heading { align-items: stretch; flex-direction: column; }
    .prediction-results-deadline-heading .btn { width: 100%; }
    .prediction-results-count { align-items: flex-start; flex-direction: column; gap: .1rem; }
    .prediction-results-count span { text-align: left; }
    .prediction-results-past > summary, .prediction-results-window-heading { align-items: flex-start; flex-direction: column; gap: .45rem; }
    .prediction-results-window.is-current { padding: .75rem; }
    .analytics-player-card dl { grid-template-columns: repeat(2, 1fr); }
    .insights-page-heading, .insights-toolbar, .insights-card-header { align-items: stretch; flex-direction: column; }
    .insights-dashboard-grid, .insights-hero { grid-template-columns: 1fr; }
    .insights-hero::after { display: none; }
    .insights-compare-control { justify-content: space-between; }
    .insights-compare-control select { min-width: 0; max-width: 62%; }
    .insights-pulse-grid { grid-template-columns: 1fr; }
    .journey-heading, .week-ahead-summary, .week-ahead-card-heading { align-items: stretch; flex-direction: column; }
    .journey-chart { min-width: 42rem; }
    .journey-hero figure, .journey-details figure { overflow-x: auto; }
    .week-ahead-lock { align-self: flex-start; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
    th, td { padding: .6rem; }
    .btn { width: auto; min-height: 2.9rem; }
}
@media (max-width: 520px) {
    .insights-periods { display: grid; grid-template-columns: 1fr; }
    .insights-periods button { width: 100%; }
    .insights-metric-strip { grid-template-columns: repeat(2, 1fr); }
    .insights-rival-headings, .insights-rival-row { grid-template-columns: 2.8rem minmax(0, 1fr) 4.8rem 3.8rem; gap: .3rem; }
    .insights-rival-headings { padding-inline: .45rem; font-size: .61rem; }
    .insights-rival-row { padding: .6rem .45rem; }
    .insights-player-name { font-size: .9rem; }
    .insights-movement, .insights-round-points { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
    .brand-mark, .team-list li, .scoreboard { border: 1px solid CanvasText; }
}

.synthetic-banner { margin: 1rem 0 1.5rem; padding: 1rem; color: #fff; background: var(--green-dark); border: 3px solid var(--gold); border-radius: .45rem; }
.synthetic-label { display: inline-block; padding: .12rem .45rem; color: #fff; background: var(--green-dark); border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.empty-state, .danger-zone, .progress-panel { margin: 1.25rem 0; padding: 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: .5rem; }
.danger-zone { border: 3px solid var(--danger); }
.control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.control-grid form { padding: .85rem; background: #f5f8fa; border: 1px solid var(--border); border-radius: .4rem; }
.control-grid small, .stat-card small { display: block; margin-top: .35rem; color: var(--muted); }
.setup-cutoff-grid { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr); gap: 1rem; }
.setup-workspace { max-width: none; display: grid; gap: 1rem; }
.setup-step, .setup-review { padding: 1.15rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.setup-step > header, .setup-review > header { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.setup-step > header > span, .setup-review > header > span { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; color: var(--navy); background: var(--gold); border-radius: 50%; font-weight: 900; }
.setup-step > header h2, .setup-review > header h2 { margin: 0 0 .2rem; }
.setup-step > header p, .setup-review > header p { margin: 0; color: var(--muted); }
.setup-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; }
.setup-review { background: #fff8dc; border: 2px solid #c89e18; }
.setup-review dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.setup-review dl div { padding: .75rem; background: rgba(255,255,255,.72); border-radius: .35rem; }
.setup-review dt { color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.setup-review dd { margin: .2rem 0 0; color: var(--navy); font-weight: 800; }
.fixed-settings-summary { margin: 1rem 0 1.5rem; padding: 1.15rem; background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); }
.fixed-settings-summary h2 { margin: .2rem 0 .8rem; }
.fixed-settings-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.fixed-settings-summary dl div { padding: .7rem; background: var(--surface-soft); border-radius: .35rem; }
.fixed-settings-summary dt { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.fixed-settings-summary dd { margin: .2rem 0 0; font-weight: 800; }
.active-settings-form { max-width: 54rem; display: grid; gap: 1rem; }
.active-settings-form fieldset { margin: 0; padding: 1rem; background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--blue); box-shadow: var(--shadow); }
.active-settings-form legend { font-size: 1.05rem; }
.live-control-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.live-control-row p { margin: .25rem 0 0; color: var(--muted); }
.control-switch { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.8rem; margin: 0; padding: .5rem .7rem; background: #eef5fa; border: 1px solid #8bb4d1; border-radius: 999px; }
.control-switch span { color: var(--blue-dark); font-weight: 900; }
.management-section-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; padding: .55rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.management-section-nav a { min-height: 2.6rem; display: inline-flex; align-items: center; padding: .5rem .7rem; color: var(--blue-dark); background: #eef5fa; border-radius: .3rem; font-weight: 800; text-decoration: none; }
.management-section-nav a:hover { color: #fff; background: var(--blue-dark); }
.member-access-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .65rem; align-items: stretch; margin: 1rem 0 1.5rem; }
.member-access-summary div { display: grid; gap: .25rem; padding: .8rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.member-access-summary span { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.member-access-summary strong { color: var(--navy); font-size: 1.25rem; }
.member-access-summary > a { display: grid; place-items: center; padding: .75rem; font-weight: 800; }
.member-payment-form { margin-top: 1.25rem; }
.member-payment-form h2, form.card h2 { margin-top: 0; }
.progress-panel progress, .simulation-table progress { display: block; width: 100%; min-width: 10rem; height: 1rem; margin: .35rem 0; accent-color: var(--green); }
.simulation-metadata { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: .45rem 1rem; }
.simulation-metadata dt { font-weight: 800; }
.simulation-metadata dd { margin: 0; overflow-wrap: anywhere; }
button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 760px) {
    .simulation-metadata { display: block; }
    .simulation-metadata dd { margin-bottom: .75rem; }
    .setup-cutoff-grid, .setup-team-grid, .setup-review dl, .fixed-settings-summary dl { grid-template-columns: 1fr; }
    .live-control-row { align-items: stretch; flex-direction: column; }
    .control-switch { align-self: flex-start; }
    .management-section-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
    .member-access-summary { grid-template-columns: 1fr; }
}

.feedback-launcher { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; min-height: 2.8rem; padding: .65rem 1rem; color: #fff; background: var(--blue); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(7,26,51,.28); font: inherit; font-weight: 800; cursor: pointer; }
.feedback-launcher:hover { background: var(--blue-dark); }
.virtual-keyboard-open .feedback-launcher { display: none; }
.feedback-dialog, .email-verification-dialog { width: min(42rem, calc(100% - 1.5rem)); max-height: calc(100vh - 2rem); padding: 0; color: var(--ink); background: #fff; border: 0; border-top: 7px solid var(--gold); border-radius: .65rem; box-shadow: 0 18px 55px rgba(7,26,51,.36); }
.feedback-dialog::backdrop, .email-verification-dialog::backdrop { background: rgba(7,26,51,.72); }
.feedback-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem .4rem; }
.feedback-dialog-header h2 { margin: .2rem 0; }
.feedback-dialog form, .feedback-acknowledgement { max-width: none; padding: 0 1.25rem 1.25rem; }
.feedback-close { flex: 0 0 auto; width: 2.7rem; height: 2.7rem; color: var(--navy); background: #f0f4f6; border: 1px solid var(--border); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.feedback-details { min-height: 9rem; resize: vertical; }
.feedback-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1rem; }
.email-verification-action { flex: 0 0 auto; padding: .4rem .8rem; color: #fff; background: var(--blue); border: 1px solid #fff; border-radius: .35rem; font: inherit; font-weight: 800; cursor: pointer; }
.email-verification-action:hover { background: var(--blue-dark); }
.email-verification-dialog { width: min(34rem, calc(100% - 1.5rem)); }
.email-verification-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem .4rem; }
.email-verification-dialog-header h2 { margin: .2rem 0; }
.email-verification-close { flex: 0 0 auto; width: 2.7rem; height: 2.7rem; color: var(--navy); background: #f0f4f6; border: 1px solid var(--border); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.email-verification-dialog-body { padding: 0 1.25rem 1.25rem; }
.email-verification-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1rem; }
.feedback-acknowledgement strong { display: block; margin-bottom: .5rem; color: var(--green-dark); font-size: 1.25rem; }
.feedback-filters { max-width: none; margin: 1rem 0 1.5rem; }
.feedback-filters h2 { margin-top: 0; }
.feedback-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.feedback-result-count { color: var(--muted); font-weight: 750; }
.feedback-owner-list { display: grid; gap: 1rem; }

.deadline-verdict { margin: 1rem 0 1.5rem; background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--gold); border-radius: .55rem; box-shadow: 0 5px 16px rgba(7,26,51,.07); }
.deadline-verdict-heading { min-height: 4.8rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: center; padding: .9rem 1rem; cursor: pointer; list-style: none; }
.deadline-verdict-heading::-webkit-details-marker { display: none; }
.deadline-verdict-heading .eyebrow { margin-bottom: .25rem; color: var(--blue-dark); }
.deadline-verdict-title { display: block; color: var(--navy); font: 900 clamp(1.2rem, 3vw, 1.55rem)/1.05 "Arial Narrow", "Segoe UI", sans-serif; text-transform: uppercase; }
.deadline-verdict-action { grid-column: 2; grid-row: 1; color: var(--blue-dark); font-weight: 850; }
.deadline-verdict[open] .deadline-verdict-action { font-size: 0; }
.deadline-verdict[open] .deadline-verdict-action::after { content: "Close"; font-size: .9rem; }
.deadline-verdict-teaser { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
.deadline-verdict[open] .deadline-verdict-heading { border-bottom: 1px solid var(--border); }
.deadline-verdict-body { padding: 1rem; }
.deadline-verdict-body > p { max-width: 52rem; }
.deadline-verdict h3 { margin: 1.25rem 0 .65rem; }
.deadline-verdict-summary { font-size: 1.05rem; line-height: 1.65; }
.deadline-verdict-players { display: grid; gap: .75rem; }
.deadline-verdict-players p { max-width: 52rem; margin: 0; padding: .8rem 1rem; background: #f4f9fd; border-radius: .3rem; }
.deadline-verdict-fixtures { max-width: 52rem; margin: 0; padding-left: 1.4rem; display: grid; gap: .7rem; }
.deadline-verdict-fixtures li { padding-left: .2rem; line-height: 1.6; }
.fixture-rearranged-label { display: inline-block; margin-left: .4rem; padding: .12rem .45rem; color: #fff; background: var(--blue-dark); border-radius: 999px; font-size: .72rem; font-weight: 850; text-transform: uppercase; vertical-align: middle; }
.week-ahead-rearranged { margin: .75rem 0; padding: .7rem .85rem; background: #eef5fa; border-left: 4px solid var(--blue-dark); border-radius: .3rem; }
.feedback-owner-card { padding: 1.2rem; background: #fff; border: 2px solid var(--border); border-top: 6px solid var(--blue); border-radius: .6rem; box-shadow: 0 5px 16px rgba(7,26,51,.07); }
.feedback-owner-card > header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.feedback-owner-card h2 { margin: .2rem 0 .8rem; }
.feedback-status { padding: .3rem .65rem; color: #fff; background: var(--blue-dark); border-radius: 999px; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.feedback-context { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .65rem; margin: 1rem 0; }
.feedback-context div { padding: .65rem; background: #f0f4f6; border-radius: .35rem; }
.feedback-context dt { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.feedback-context dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.feedback-copy { padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff8df; border-left: 5px solid var(--gold); border-radius: .3rem; }
.feedback-owner-controls { display: grid; grid-template-columns: minmax(10rem, .4fr) minmax(16rem, 1fr) auto; gap: 1rem; align-items: end; margin-top: 1rem; }
.feedback-owner-controls textarea { min-height: 5rem; resize: vertical; }
@media (max-width: 760px) {
    .feedback-launcher { right: .65rem; bottom: .65rem; }
    .feedback-dialog, .email-verification-dialog { max-height: calc(100dvh - 1rem); }
    .feedback-filter-grid, .feedback-owner-controls { grid-template-columns: 1fr; }
    .feedback-owner-card > header { align-items: stretch; flex-direction: column; }
    .feedback-status { align-self: flex-start; }
    .feedback-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .virtual-keyboard-open .prediction-editor-actions {
        position: fixed;
        right: .65rem;
        bottom: calc(var(--virtual-keyboard-inset, 0px) + .65rem);
        left: .65rem;
        z-index: 45;
        margin: 0;
    }
    .virtual-keyboard-open .prediction-editor-actions .btn {
        width: 100%;
        box-shadow: 0 6px 20px rgba(7,26,51,.35);
    }
    .virtual-keyboard-open .prediction-editor-actions span { display: none; }
}
