:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --panel: #ffffff;
    --line: #dbe3ef;
    --text: #152033;
    --muted: #667085;
    --brand: #1f7a4d;
    --brand-dark: #145737;
    --danger: #dc2626;
    --warning: #d97706;
    --blue: #2563eb;
}

.theme-standard-blue {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
}

.theme-standard-classic {
    --bg: #f8fafc;
    --brand: #334155;
    --brand-dark: #0f172a;
}

.theme-premium-neon {
    --bg: #08111f;
    --panel: #0f172a;
    --line: #1e3a5f;
    --text: #e0f2fe;
    --muted: #93a4b8;
    --brand: #22d3ee;
    --brand-dark: #0891b2;
}

.theme-premium-gold {
    --bg: #12100a;
    --panel: #1f1a10;
    --line: #4a3b18;
    --text: #fff7ed;
    --muted: #d6c59a;
    --brand: #d4a72c;
    --brand-dark: #a16207;
}

.theme-premium-stadium {
    --bg: #07110d;
    --panel: #0f1f17;
    --line: #214534;
    --text: #ecfdf5;
    --muted: #a7c7b7;
    --brand: #4ade80;
    --brand-dark: #15803d;
}

.theme-premium-spx {
    --brand: #ee4d2d;
    --brand-dark: #c2410c;
}

.theme-premium-maxim {
    --brand: #ffd500;
    --brand-dark: #e30613;
}

.theme-premium-honest {
    --brand: #0ea5a8;
    --brand-dark: #0f766e;
}

.theme-premium-brave {
    --brand: #fb542b;
    --brand-dark: #6d28d9;
}

.mode-dark {
    color-scheme: dark;
    --bg: #07111f;
    --panel: #0f172a;
    --line: #1f2a44;
    --text: #e5f0ff;
    --muted: #9fb1c7;
}

.mode-light {
    color-scheme: light;
}

.theme-premium-gold.mode-dark {
    --bg: #120f08;
    --panel: #1f1a10;
    --line: #4a3b18;
    --text: #fff7ed;
    --muted: #d6c59a;
}

.theme-premium-honest.mode-light {
    --bg: #f4fbfb;
    --panel: #ffffff;
    --line: #cce7e8;
    --text: #103033;
    --muted: #527174;
}

.mode-light.theme-premium-neon,
.mode-light.theme-premium-gold,
.mode-light.theme-premium-stadium,
.mode-light.theme-premium-spx,
.mode-light.theme-premium-maxim,
.mode-light.theme-premium-brave {
    --bg: #f8fafc;
    --panel: #ffffff;
    --line: #dbe3ef;
    --text: #152033;
    --muted: #667085;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    background: var(--bg);
    color: var(--text);
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: #0f1f17;
    color: #f8fafc;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    min-height: 100vh;
}

.theme-standard-blue .sidebar {
    background: #0f172a;
}

.theme-standard-classic .sidebar {
    background: #1e293b;
}

.theme-premium-neon .sidebar,
.theme-premium-gold .sidebar,
.theme-premium-stadium .sidebar,
.theme-premium-brave .sidebar {
    background: #020617;
}

.theme-premium-spx .sidebar {
    background: #3b160d;
}

.theme-premium-maxim .sidebar {
    background: #201600;
}

.theme-premium-honest .sidebar {
    background: #0f2f33;
}

.brand {
    display: grid;
    gap: 4px;
    margin-bottom: 28px;
}

.brand strong {
    font-size: 20px;
}

.brand span {
    color: #bdd4c4;
    font-size: 13px;
}

.nav {
    display: grid;
    gap: 16px;
}

.nav-section {
    display: grid;
    gap: 6px;
}

.nav-label {
    color: #86a899;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    padding: 0 12px;
    text-transform: uppercase;
}

.nav a,
.nav button {
    align-items: center;
    border: 0;
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    text-align: left;
    width: 100%;
    background: transparent;
}

.nav i {
    color: #b6d8c6;
    text-align: center;
    width: 18px;
}

.nav a:hover,
.nav button:hover,
.nav .active {
    background: #173f2b;
    color: white;
}

.sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #d1fae5;
    font-size: 13px;
    margin-top: 28px;
    padding-top: 18px;
}

.main {
    min-width: 0;
    padding: 28px;
}

.topbar {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
    position: relative;
}

.profile-trigger {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    padding: 6px 10px 6px 6px;
}

.mobile-menu-button,
.mobile-menu-backdrop {
    display: none;
}

.avatar,
.avatar-lg,
.avatar-xl,
.player-photo {
    align-items: center;
    background: linear-gradient(135deg, #1f7a4d, #145737);
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    overflow: hidden;
}

.avatar {
    height: 36px;
    width: 36px;
}

.avatar-lg {
    height: 92px;
    width: 92px;
}

.avatar-xl {
    border: 4px solid white;
    height: 118px;
    width: 118px;
}

.player-photo {
    height: 48px;
    width: 48px;
}

.avatar img,
.avatar-lg img,
.avatar-xl img,
.player-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-menu {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    padding: 12px;
    position: absolute;
    right: 0;
    top: 50px;
    width: 320px;
    z-index: 10;
}

.id-card {
    background: linear-gradient(135deg, #f8fafc, #ecfdf5);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.id-card-header {
    align-items: center;
    display: flex;
    gap: 12px;
}

.icon-btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    gap: 8px;
    min-height: 38px;
}

.icon-only {
    align-items: center;
    aspect-ratio: 1;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    width: 38px;
}

.player-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.profile-settings-layout,
.player-id-layout {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 380px minmax(0, 1fr);
}

.profile-settings-layout {
    grid-template-areas:
        "card profile"
        "card password";
}

.profile-settings-layout > .user-id-card {
    grid-area: card;
}

.profile-settings-layout > .profile-panel {
    grid-area: profile;
}

.profile-settings-layout > .password-panel {
    grid-area: password;
}

.id-card-strip {
    background: #0f1f17;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    padding: 8px 10px;
    text-align: center;
}

.id-card-meta {
    display: grid;
    gap: 8px;
}

.id-card-meta span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.photo-upload-row,
.player-cell,
.team-cell,
.team-hero {
    align-items: center;
    display: flex;
    gap: 12px;
}

.player-cell,
.team-cell {
    min-width: 220px;
}

.team-logo,
.team-logo-xl {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border: 1px solid var(--line);
    border-radius: 8px;
    color: white;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 900;
    justify-content: center;
    overflow: hidden;
}

.team-logo {
    height: 52px;
    width: 52px;
}

.team-logo-xl {
    height: 96px;
    width: 96px;
}

.team-logo img,
.team-logo-xl img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.poster-background-preview {
    align-items: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #052e16, #020617);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: white;
    display: inline-flex;
    flex: 0 0 180px;
    justify-content: center;
    overflow: hidden;
    width: 180px;
}

.poster-background-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.player-id-card {
    background: linear-gradient(145deg, #f8fafc, #ecfdf5);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 18px;
    text-align: center;
}

.player-id-card.id-template-standard-blue,
.id-template-preview.id-template-standard-blue {
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
}

.player-id-card.id-template-standard-classic,
.id-template-preview.id-template-standard-classic {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.player-id-card.id-template-premium-neon,
.id-template-preview.id-template-premium-neon {
    background: linear-gradient(145deg, #020617, #0e7490);
    color: #e0f2fe;
}

.player-id-card.id-template-premium-gold,
.id-template-preview.id-template-premium-gold {
    background: linear-gradient(145deg, #171008, #854d0e);
    color: #fff7ed;
}

.player-id-card.id-template-premium-spx,
.id-template-preview.id-template-premium-spx {
    background: linear-gradient(145deg, #7c2d12, #ee4d2d);
    color: white;
}

.player-id-card.id-template-premium-maxim,
.id-template-preview.id-template-premium-maxim {
    background: linear-gradient(145deg, #ffd500, #e30613);
    color: #111827;
}

.player-id-card.id-template-premium-honest,
.id-template-preview.id-template-premium-honest {
    background: linear-gradient(145deg, #ffffff, #ccfbf1);
    color: #103033;
}

.player-id-card.id-template-premium-brave,
.id-template-preview.id-template-premium-brave {
    background: linear-gradient(145deg, #fb542b, #6d28d9);
    color: white;
}

.id-template-preview {
    border: 1px solid var(--line);
}

.player-id-card[class*="id-template-premium"] .muted,
.player-id-card.id-template-premium-neon .detail-list span {
    color: rgba(255, 255, 255, .78);
}

.player-id-photo {
    align-items: center;
    background: linear-gradient(135deg, #1f7a4d, #145737);
    border: 4px solid white;
    border-radius: 8px;
    color: white;
    display: inline-flex;
    font-size: 38px;
    font-weight: 900;
    height: 180px;
    justify-content: center;
    overflow: hidden;
    width: 150px;
}

.player-id-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.player-id-number {
    background: #0f1f17;
    border-radius: 999px;
    color: white;
    font-size: 24px;
    font-weight: 900;
    padding: 6px 18px;
}

.player-id-card h2,
.panel h2 {
    margin: 0;
}

.detail-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.detail-list > div {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.detail-list span {
    color: var(--muted);
}

.landing-page {
    background:
        radial-gradient(circle at top left, rgba(31, 122, 77, .22), transparent 34%),
        linear-gradient(135deg, #07110d, #0f1f17 45%, #07110d);
    color: #f8fafc;
    min-height: 100vh;
    padding: 24px;
}

.landing-page.theme-standard-blue {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .22), transparent 34%),
        linear-gradient(135deg, #07111f, #0f1b33 45%, #07111f);
}

.landing-page.theme-standard-classic {
    background:
        radial-gradient(circle at top left, rgba(51, 65, 85, .18), transparent 34%),
        linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #152033;
}

.landing-page.theme-premium-neon {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, .28), transparent 32%),
        radial-gradient(circle at bottom right, rgba(74, 222, 128, .16), transparent 34%),
        linear-gradient(135deg, #020617, #08111f);
}

.landing-page.theme-premium-gold {
    background:
        radial-gradient(circle at top left, rgba(212, 167, 44, .28), transparent 32%),
        linear-gradient(135deg, #120f08, #221909 48%, #0b0804);
}

.landing-page.theme-premium-stadium {
    background:
        radial-gradient(circle at top left, rgba(74, 222, 128, .2), transparent 30%),
        linear-gradient(135deg, #020617, #07110d 50%, #0f1f17);
}

.landing-page.theme-premium-spx {
    background:
        radial-gradient(circle at top left, rgba(238, 77, 45, .3), transparent 32%),
        linear-gradient(135deg, #2a0f09, #451707 48%, #111827);
}

.landing-page.theme-premium-maxim {
    background:
        radial-gradient(circle at top left, rgba(255, 213, 0, .26), transparent 34%),
        radial-gradient(circle at bottom right, rgba(227, 6, 19, .16), transparent 34%),
        linear-gradient(135deg, #171100, #241b03 50%, #09090b);
}

.landing-page.theme-premium-honest {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 168, .2), transparent 32%),
        linear-gradient(135deg, #eefafa, #ffffff);
    color: #103033;
}

.landing-page.theme-premium-brave {
    background:
        radial-gradient(circle at top left, rgba(251, 84, 43, .28), transparent 32%),
        radial-gradient(circle at bottom right, rgba(109, 40, 217, .2), transparent 34%),
        linear-gradient(135deg, #170b1f, #2a0f1f 45%, #09090b);
}

.landing-page.mode-light:not(.theme-standard-classic):not(.theme-premium-honest) {
    color: #152033;
}

.landing-page.mode-light.theme-standard-green {
    background:
        radial-gradient(circle at top left, rgba(31, 122, 77, .16), transparent 34%),
        linear-gradient(135deg, #f0fdf4, #ffffff);
}

.landing-page.mode-light.theme-standard-blue {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 34%),
        linear-gradient(135deg, #eff6ff, #ffffff);
}

.landing-page.mode-light.theme-premium-neon {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, .18), transparent 34%),
        linear-gradient(135deg, #ecfeff, #ffffff);
}

.landing-page.mode-light.theme-premium-gold {
    background:
        radial-gradient(circle at top left, rgba(212, 167, 44, .2), transparent 34%),
        linear-gradient(135deg, #fffbeb, #ffffff);
}

.landing-page.mode-light.theme-premium-stadium {
    background:
        radial-gradient(circle at top left, rgba(74, 222, 128, .16), transparent 34%),
        linear-gradient(135deg, #ecfdf5, #ffffff);
}

.landing-page.mode-light.theme-premium-spx {
    background:
        radial-gradient(circle at top left, rgba(238, 77, 45, .18), transparent 34%),
        linear-gradient(135deg, #fff7ed, #ffffff);
}

.landing-page.mode-light.theme-premium-maxim {
    background:
        radial-gradient(circle at top left, rgba(255, 213, 0, .24), transparent 34%),
        linear-gradient(135deg, #fefce8, #ffffff);
}

.landing-page.mode-light.theme-premium-brave {
    background:
        radial-gradient(circle at top left, rgba(251, 84, 43, .18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(109, 40, 217, .12), transparent 34%),
        linear-gradient(135deg, #fff7ed, #ffffff);
}

.landing-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 auto 24px;
    max-width: 1180px;
}

.landing-header > div {
    display: grid;
    gap: 4px;
}

.landing-header strong {
    font-size: 22px;
}

.landing-header span,
.landing-muted {
    color: #b6c7bd;
}

.theme-standard-classic .landing-header span,
.theme-standard-classic .landing-muted {
    color: #475569;
}

.landing-header nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-page main {
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: 1180px;
}

.scoreboard-hero,
.scoreboard-panel,
.next-match-card {
    background: rgba(9, 22, 16, .9);
    border: 1px solid rgba(190, 242, 100, .18);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .24);
}

.theme-standard-classic .scoreboard-hero,
.theme-standard-classic .scoreboard-panel,
.theme-standard-classic .next-match-card,
.theme-standard-classic .scoreboard-card-list,
.landing-page.mode-light .scoreboard-hero,
.landing-page.mode-light .scoreboard-panel,
.landing-page.mode-light .next-match-card,
.landing-page.mode-light .scoreboard-card-list {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(15, 23, 42, .12);
}

.scoreboard-hero {
    display: grid;
    gap: 20px;
    padding: 22px;
}

.scoreboard-topline,
.scoreboard-panel-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.scoreboard-chip {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    padding: 8px 12px;
}

.scoreboard-live-chip {
    color: #fef08a;
}

.scoreboard-main {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px) minmax(0, 1fr);
}

.scoreboard-team {
    display: grid;
    gap: 8px;
}

.scoreboard-team span {
    color: #86efac;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: .08em;
}

.scoreboard-team strong {
    font-size: 18px;
}

.scoreboard-team-right {
    justify-items: end;
    text-align: right;
}

.scoreboard-score {
    background: #020617;
    border: 1px solid rgba(134, 239, 172, .28);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 18px;
    text-align: center;
}

.landing-page.mode-light .scoreboard-score {
    background: #0f172a;
}

.scoreboard-score strong {
    color: #fef08a;
    font-size: clamp(48px, 8vw, 86px);
    letter-spacing: .04em;
    line-height: 1;
}

.scoreboard-score span,
.scoreboard-score small {
    color: #b6c7bd;
}

.scoreboard-vs-ribbon {
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-radius: 999px;
    color: white;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    padding: 6px 12px;
}

.scoreboard-match-meta {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
}

.scoreboard-match-meta span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}

.landing-page.mode-light .scoreboard-match-meta {
    background: rgba(255, 255, 255, .85);
    border-color: rgba(15, 23, 42, .12);
}

.scoreboard-empty {
    background: rgba(255, 255, 255, .06);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 20px;
    text-align: center;
}

.scoreboard-mini-grid,
.scoreboard-inside-grid,
.landing-grid,
.next-match-grid {
    display: grid;
    gap: 14px;
}

.scoreboard-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scoreboard-mini {
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.scoreboard-mini span {
    color: #b6c7bd;
    font-size: 12px;
    text-transform: uppercase;
}

.scoreboard-mini strong {
    color: #86efac;
    font-size: 30px;
}

.scoreboard-inside-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scoreboard-card-list {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.scoreboard-footer-actions {
    display: flex;
    justify-content: center;
}

.scoreboard-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.scoreboard-panel h2 {
    font-size: 20px;
    margin: 0;
}

.scoreboard-panel-head i {
    color: #86efac;
}

.scoreboard-event-row {
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    padding: 12px;
}

.scoreboard-event-row span {
    color: #fef08a;
    font-weight: 900;
}

.scoreboard-event-row div {
    display: grid;
    gap: 3px;
}

.scoreboard-event-row small {
    color: #b6c7bd;
}

.scoreboard-event-row b {
    color: #86efac;
}

.scoreboard-event-row.compact {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 10px;
}

.scoreboard-event-row .card-yellow {
    color: #fde047;
}

.scoreboard-event-row .card-red {
    color: #f87171;
}

.next-match-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.next-match-card {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.next-match-card span,
.next-match-card small {
    color: #b6c7bd;
}

.next-match-card strong {
    color: #f8fafc;
    font-size: 20px;
}

.scoreboard-inline-match {
    background: rgba(255, 255, 255, .06);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 12px;
}

.scoreboard-inline-match span,
.scoreboard-inline-match small {
    color: #b6c7bd;
}

.theme-standard-classic .scoreboard-inline-match span,
.theme-standard-classic .scoreboard-inline-match small,
.theme-standard-classic .scoreboard-event-row small,
.theme-standard-classic .next-match-card span,
.theme-standard-classic .next-match-card small,
.theme-standard-classic .landing-table td small {
    color: #64748b;
}

.scoreboard-inline-match strong {
    color: inherit;
    font-size: 18px;
}

.landing-table-wrap {
    overflow-x: auto;
}

.landing-table {
    min-width: 820px;
}

.landing-table th,
.landing-table td {
    border-bottom-color: rgba(255, 255, 255, .12);
}

.landing-table th {
    color: #86efac;
}

.theme-standard-classic .landing-table th {
    color: #334155;
}

.landing-table td small {
    color: #b6c7bd;
    display: block;
    margin-top: 4px;
}

.theme-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.theme-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.theme-option {
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.theme-option.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.theme-option input {
    position: absolute;
    opacity: 0;
}

.theme-preview {
    align-items: center;
    border-radius: 8px;
    color: white;
    display: flex;
    font-size: 28px;
    height: 92px;
    justify-content: center;
}

.theme-preview.theme-standard-green {
    background: linear-gradient(135deg, #1f7a4d, #145737);
}

.id-template-preview.id-template-standard-green {
    background: linear-gradient(135deg, #1f7a4d, #145737);
}

.theme-preview.theme-standard-blue {
    background: linear-gradient(135deg, #2563eb, #0f172a);
}

.theme-preview.theme-standard-classic {
    background: linear-gradient(135deg, #f8fafc, #334155);
}

.theme-preview.theme-premium-neon {
    background: linear-gradient(135deg, #020617, #22d3ee);
}

.theme-preview.theme-premium-gold {
    background: linear-gradient(135deg, #120f08, #d4a72c);
}

.theme-preview.theme-premium-stadium {
    background: linear-gradient(135deg, #020617, #4ade80);
}

.theme-preview.theme-premium-spx {
    background: linear-gradient(135deg, #ee4d2d, #7c2d12);
}

.theme-preview.theme-premium-maxim {
    background: linear-gradient(135deg, #ffd500, #e30613);
}

.theme-preview.theme-premium-honest {
    background: linear-gradient(135deg, #ffffff, #0ea5a8);
    color: #103033;
}

.theme-preview.theme-premium-brave {
    background: linear-gradient(135deg, #fb542b, #6d28d9);
}

.theme-preview.mode-preview-light {
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    color: #0f172a;
}

.theme-preview.mode-preview-dark {
    background: linear-gradient(135deg, #020617, #1e293b);
}

.theme-option.premium {
    position: relative;
}

.theme-option.premium::after {
    background: linear-gradient(90deg, #f59e0b, #fef08a);
    border-radius: 999px;
    color: #111827;
    content: "PREMIUM";
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    position: absolute;
    right: 12px;
    top: 12px;
}

.match-poster {
    background:
        radial-gradient(circle at top left, rgba(74, 222, 128, .2), transparent 32%),
        linear-gradient(135deg, #07110d, #0f1f17 50%, #020617);
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: var(--poster-text, white);
    display: grid;
    gap: 22px;
    margin: 0 auto;
    max-width: 820px;
    min-height: 980px;
    padding: 34px;
    print-color-adjust: exact;
    text-align: center;
    -webkit-print-color-adjust: exact;
}

.poster-brand {
    align-items: center;
    background: rgba(2, 6, 23, .58);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    display: inline-flex;
    gap: 12px;
    justify-self: center;
    padding: 10px 16px;
    text-align: left;
}

.poster-brand strong,
.poster-brand small {
    display: block;
}

.poster-brand small {
    color: #bbf7d0;
    font-weight: 700;
}

.poster-logo {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border-radius: 8px;
    color: #14532d;
    display: inline-flex;
    height: 64px;
    justify-content: center;
    overflow: hidden;
    width: 64px;
}

.poster-logo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.poster-badge {
    background: var(--poster-accent, #fef08a);
    border-radius: 999px;
    color: #0f172a;
    font-weight: 900;
    justify-self: center;
    letter-spacing: .12em;
    padding: 8px 16px;
}

.match-poster h1 {
    font-size: 44px;
    margin: 0;
    text-transform: uppercase;
}

.poster-subtitle {
    color: color-mix(in srgb, var(--poster-text, white) 82%, transparent);
    font-size: 18px;
    font-weight: 800;
    margin: -12px auto 4px;
    max-width: 620px;
}

.poster-teams {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto 1fr;
}

.poster-team-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    min-height: 260px;
    place-items: center;
    padding: 20px;
}

.poster-team-card > span:not(.poster-team-logo) {
    color: var(--poster-accent, #86efac);
    font-size: 54px;
    font-weight: 900;
}

.poster-team-name {
    font-size: 22px;
}

.poster-versus {
    color: var(--poster-accent, #fef08a);
    font-size: 34px;
}

.poster-team-logo {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border: 4px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    color: #0f172a;
    display: inline-flex;
    height: 150px;
    justify-content: center;
    overflow: hidden;
    width: 150px;
}

.poster-team-logo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.poster-team-logo b {
    color: #0f172a;
    font-size: 42px;
    font-weight: 900;
}

.poster-score {
    color: var(--poster-accent, #fef08a);
    font-size: 76px;
    font-weight: 900;
}

.poster-layout-split {
    background-blend-mode: normal;
    position: relative;
}

.poster-layout-split::before {
    background: linear-gradient(90deg, rgba(37, 99, 235, .3) 0 50%, rgba(220, 38, 38, .3) 50% 100%);
    border-radius: inherit;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.poster-layout-split > * {
    position: relative;
}

.poster-layout-split .poster-teams {
    gap: 0;
}

.poster-layout-split .poster-team-card {
    border-radius: 0;
    min-height: 340px;
}

.poster-layout-split .poster-team-card:first-child {
    border-radius: 8px 0 0 8px;
}

.poster-layout-split .poster-team-card:last-child {
    border-radius: 0 8px 8px 0;
}

.poster-layout-diagonal {
    background-position: center;
    overflow: hidden;
    position: relative;
}

.poster-layout-diagonal::after {
    background: linear-gradient(120deg, transparent 0 43%, color-mix(in srgb, var(--poster-accent, #fef08a) 36%, transparent) 43% 57%, transparent 57% 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.poster-layout-diagonal > * {
    position: relative;
    z-index: 1;
}

.poster-layout-diagonal .poster-team-card:first-child {
    transform: rotate(-2deg);
}

.poster-layout-diagonal .poster-team-card:last-child {
    transform: rotate(2deg);
}

.poster-layout-neon {
    border-color: color-mix(in srgb, var(--poster-accent, #22d3ee) 80%, white);
    box-shadow: 0 0 36px color-mix(in srgb, var(--poster-accent, #22d3ee) 45%, transparent);
}

.poster-layout-neon .poster-brand,
.poster-layout-neon .poster-team-card {
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .08), 0 0 22px color-mix(in srgb, var(--poster-accent, #22d3ee) 26%, transparent);
}

.poster-layout-minimal {
    background: #f8fafc !important;
    color: #0f172a;
}

.poster-layout-minimal .poster-brand,
.poster-layout-minimal .poster-team-card,
.poster-layout-minimal .poster-badge {
    background: white;
    border-color: #e5e7eb;
    color: #0f172a;
}

.poster-layout-minimal .poster-subtitle,
.poster-layout-minimal .poster-footer,
.poster-layout-minimal .poster-info {
    color: #334155;
}

.poster-layout-minimal .poster-score,
.poster-layout-minimal .poster-versus,
.poster-layout-minimal .poster-team-card > span:not(.poster-team-logo) {
    color: var(--poster-accent, #16a34a);
}

.poster-layout-derby {
    gap: 16px;
}

.poster-layout-derby .poster-team-logo {
    height: 190px;
    width: 190px;
}

.poster-layout-derby .poster-team-card {
    min-height: 330px;
}

.poster-layout-derby .poster-versus {
    background: var(--poster-accent, #fef08a);
    border-radius: 999px;
    color: #0f172a;
    padding: 18px;
}

.poster-layout-premium_gold {
    background:
        radial-gradient(circle at 50% 0, rgba(250, 204, 21, .34), transparent 34%),
        linear-gradient(135deg, #161006, #3d2c0a 48%, #020617) !important;
    border-color: rgba(250, 204, 21, .58);
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .18), 0 24px 70px rgba(120, 53, 15, .24);
}

.poster-layout-premium_gold .poster-badge,
.poster-layout-premium_gold .poster-versus {
    background: linear-gradient(135deg, #fef08a, #f59e0b);
}

.poster-layout-broadcast_glass .poster-brand,
.poster-layout-broadcast_glass .poster-team-card,
.poster-layout-broadcast_glass .poster-info {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .12);
}

.poster-layout-broadcast_glass {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .28), transparent 38%),
        linear-gradient(135deg, #020617, #0f172a 55%, #075985) !important;
}

.poster-layout-trophy_night {
    background:
        radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--poster-accent, #facc15) 42%, transparent), transparent 24%),
        linear-gradient(180deg, #020617, #111827 58%, #030712) !important;
}

.poster-layout-trophy_night .poster-badge {
    border: 2px solid rgba(255, 255, 255, .4);
    padding: 11px 22px;
}

.poster-layout-trophy_night .poster-team-card {
    min-height: 300px;
}

.poster-layout-ultra_clash {
    background:
        linear-gradient(118deg, rgba(220, 38, 38, .36) 0 38%, transparent 38% 62%, rgba(37, 99, 235, .36) 62% 100%),
        linear-gradient(135deg, #020617, #111827) !important;
    overflow: hidden;
    position: relative;
}

.poster-layout-ultra_clash::before {
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 8px, transparent 8px 18px);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.poster-layout-ultra_clash > * {
    position: relative;
}

.poster-info {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.poster-info span {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
}

.poster-footer {
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: #b6c7bd;
    padding-top: 16px;
}

.poster-editor-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(320px, 520px) minmax(360px, 1fr);
}

.poster-editor-panel {
    display: grid;
    gap: 18px;
}

.poster-editor-panel h2 {
    font-size: 18px;
    margin: 0 0 12px;
}

.poster-layout-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poster-layout-option {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 8px;
    padding: 10px;
    text-align: left;
}

.poster-layout-option.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.poster-layout-option small {
    color: var(--muted);
    line-height: 1.35;
}

.poster-layout-thumb {
    background: linear-gradient(135deg, #052e16, #020617);
    border-radius: 8px;
    display: block;
    height: 72px;
    overflow: hidden;
    position: relative;
}

.poster-layout-thumb::before,
.poster-layout-thumb::after {
    background: rgba(255, 255, 255, .85);
    border-radius: 8px;
    content: "";
    position: absolute;
}

.poster-layout-thumb::before {
    height: 36px;
    left: 12px;
    top: 18px;
    width: 34%;
}

.poster-layout-thumb::after {
    height: 36px;
    right: 12px;
    top: 18px;
    width: 34%;
}

.poster-layout-thumb-split {
    background: linear-gradient(90deg, #1d4ed8 0 50%, #dc2626 50% 100%);
}

.poster-layout-thumb-diagonal {
    background: linear-gradient(130deg, #0f172a 0 42%, #f97316 42% 58%, #052e16 58% 100%);
}

.poster-layout-thumb-neon {
    background: radial-gradient(circle, #22d3ee, #020617 58%);
}

.poster-layout-thumb-minimal {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.poster-layout-thumb-minimal::before,
.poster-layout-thumb-minimal::after {
    background: #e2e8f0;
}

.poster-layout-thumb-derby {
    background: radial-gradient(circle at 50% 50%, #fef08a 0 18%, #020617 19% 100%);
}

.poster-layout-thumb-premium_gold {
    background: linear-gradient(135deg, #161006, #f59e0b, #020617);
}

.poster-layout-thumb-broadcast_glass {
    background: linear-gradient(135deg, #020617, #0ea5e9);
}

.poster-layout-thumb-trophy_night {
    background: radial-gradient(circle at 50% 28%, #facc15, #020617 42%);
}

.poster-layout-thumb-ultra_clash {
    background: linear-gradient(118deg, #dc2626 0 42%, #020617 42% 58%, #2563eb 58% 100%);
}

.poster-preview-panel {
    min-width: 0;
}

.poster-preview-sticky {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 82px;
}

.poster-preview-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.poster-editor-preview {
    max-width: 100%;
    min-height: 760px;
    transform-origin: top center;
}

.section-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.section-title-row h2 {
    margin: 0;
}

.text-position-grid {
    display: grid;
    gap: 10px;
}

.text-position-card {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
}

.text-position-card small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.text-position-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.text-position-actions button {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.text-position-actions button:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.poster-movable-text {
    cursor: grab;
    touch-action: none;
    transition: box-shadow .16s ease, outline-color .16s ease;
    user-select: none;
    will-change: transform;
    z-index: 3;
}

.poster-movable-text.active {
    cursor: grabbing;
    outline: 2px dashed var(--poster-accent, #fef08a);
    outline-offset: 6px;
}

.print-movable-text {
    cursor: default;
}

.export-dropdown {
    display: inline-flex;
    position: relative;
}

.export-dropdown-menu {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    display: grid;
    min-width: 150px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
}

.export-dropdown-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
}

.export-dropdown-menu button:hover {
    background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.team-roster-print {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    padding: 20px;
}

.dashboard-quick-menu {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 16px;
}

.quick-menu-card {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
}

.quick-menu-card i {
    align-items: center;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    border-radius: 8px;
    color: var(--brand);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.quick-menu-card span {
    font-weight: 900;
}

.group-preview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.group-preview-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 7px;
    padding: 12px;
}

.group-preview-card strong {
    color: var(--brand);
}

.bracket-editor-toolbar {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bracket-summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.bracket-summary-grid span {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
    border-radius: 999px;
    color: var(--text);
    padding: 8px 12px;
}

.seed-list {
    display: grid;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.bracket-board {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: 6px;
}

.bracket-column {
    display: grid;
    gap: 12px;
}

.bracket-column h3 {
    margin: 0;
}

.bracket-match-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 12px;
}

.bracket-match-card small {
    color: var(--muted);
}

.bracket-match-card span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.bracket-layout-compact {
    border-left: 5px solid var(--brand);
}

.bracket-layout-split {
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 10%, transparent), var(--panel));
}

.bracket-layout-cinematic {
    background: linear-gradient(135deg, #020617, #0f172a);
    color: #f8fafc;
}

.bracket-edit-list {
    display: grid;
    gap: 12px;
}

.bracket-edit-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 12px;
}

.bracket-edit-title {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.roster-print-header {
    align-items: center;
    border-bottom: 2px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-bottom: 16px;
}

.roster-print-header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.roster-print-header h1 {
    margin: 4px 0;
}

.roster-print-header p {
    color: var(--muted);
    margin: 0;
}

.roster-print-header > strong {
    background: var(--brand);
    border-radius: 8px;
    color: white;
    font-size: 36px;
    padding: 14px 18px;
}

.roster-card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.roster-player-card {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 12px;
}

.roster-photo {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 8px;
    color: white;
    display: flex;
    font-size: 24px;
    font-weight: 900;
    height: 104px;
    justify-content: center;
    overflow: hidden;
    width: 86px;
}

.roster-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.roster-player-info {
    display: grid;
    gap: 4px;
}

.roster-player-info span,
.roster-player-info small {
    color: var(--muted);
}

.rules-print-document {
    display: none;
}

.rules-print-header {
    border-bottom: 2px solid #111827;
    display: grid;
    gap: 6px;
    padding-bottom: 18px;
    text-align: center;
}

.rules-print-header strong {
    font-size: 18px;
    text-transform: uppercase;
}

.rules-print-header h1 {
    font-size: 30px;
    margin: 0;
    text-transform: uppercase;
}

.rules-print-header p {
    margin: 0;
}

.rules-print-list {
    display: grid;
    gap: 14px;
    margin: 24px 0;
    padding-left: 24px;
}

.rules-print-list li {
    break-inside: avoid;
    padding-left: 6px;
}

.rules-print-list strong,
.rules-print-list span {
    display: block;
}

.rules-print-list span {
    color: #374151;
    font-weight: 700;
    margin-top: 4px;
}

.rules-print-list p {
    line-height: 1.55;
    margin: 8px 0 0;
}

.rules-print-footer {
    display: grid;
    gap: 24px;
    margin-top: 36px;
}

.rules-signatures {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signature-box {
    break-inside: avoid;
    display: grid;
    gap: 6px;
    min-height: 170px;
    text-align: center;
}

.signature-box > div {
    min-height: 78px;
}

.signature-box span,
.signature-box small {
    color: #374151;
}

.roster-player-info strong {
    font-size: 16px;
}

.page-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 26px;
    margin: 0;
}

.page-header p {
    color: var(--muted);
    margin: 6px 0 0;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.panel {
    padding: 18px;
}

.card {
    padding: 16px;
}

.metric {
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.metric strong {
    color: var(--text);
    font-size: 30px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.score {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.score strong {
    background: #0f1f17;
    border-radius: 8px;
    color: white;
    font-size: 26px;
    min-width: 72px;
    padding: 8px 14px;
    text-align: center;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.badge-live {
    background: #fee2e2;
    color: #991b1b;
}

.badge-scheduled {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-finished {
    background: #dcfce7;
    color: #166534;
}

.badge-postponed {
    background: #fef3c7;
    color: #92400e;
}

.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn {
    align-items: center;
    background: var(--brand);
    border: 1px solid transparent;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn-secondary {
    background: white;
    border-color: var(--line);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
}

.btn-warning {
    background: var(--warning);
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.field small,
.error {
    color: var(--danger);
    font-size: 12px;
}

.full {
    grid-column: 1 / -1;
}

.flash {
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.flash-success {
    background: #dcfce7;
    color: #14532d;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline-item {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    padding: 10px;
}

.muted {
    color: var(--muted);
}

.pitch-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(320px, 1fr) 420px;
}

.pitch {
    aspect-ratio: 2 / 3;
    background:
        linear-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 2px, transparent 2px),
        linear-gradient(135deg, #14643d, #0f8a4b);
    background-size: 100% 50%, 50% 100%, auto;
    border: 3px solid rgba(255, 255, 255, .78);
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px rgba(15, 31, 23, .3);
    min-height: 620px;
    overflow: hidden;
    position: relative;
}

.pitch::before {
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    content: "";
    height: 120px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
}

.pitch::after {
    background: rgba(255, 255, 255, .72);
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
}

.penalty-box {
    border: 2px solid rgba(255, 255, 255, .7);
    height: 120px;
    left: 22%;
    position: absolute;
    width: 56%;
    z-index: 1;
}

.penalty-box-top {
    top: -2px;
}

.penalty-box-bottom {
    bottom: -2px;
}

.pitch-player {
    align-items: center;
    background: transparent;
    color: #0f1f17;
    display: grid;
    gap: 5px;
    justify-items: center;
    line-height: 1;
    min-width: 118px;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.pitch-player-photo {
    align-items: center;
    background: #f8fafc;
    border: 3px solid #0f1f17;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .22);
    color: #0f1f17;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    height: 78px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 78px;
}

.pitch-player-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pitch-position-badge {
    background: #0f1f17;
    border-radius: 999px;
    bottom: 2px;
    color: white;
    font-size: 11px;
    font-weight: 900;
    left: 50%;
    min-width: 34px;
    padding: 4px 6px;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
}

.pitch-player-name {
    background: rgba(248, 250, 252, .94);
    border: 1px solid rgba(15, 31, 23, .22);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
    color: #0f1f17;
    display: block;
    font-size: 11px;
    font-weight: 900;
    max-width: 124px;
    overflow: hidden;
    padding: 5px 8px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pitch-player.drop-active .pitch-player-photo {
    border-color: #fef08a;
    box-shadow: 0 0 0 5px rgba(254, 240, 138, .32), 0 12px 26px rgba(15, 23, 42, .28);
}

.pitch-player.empty .pitch-player-photo {
    border-style: dashed;
    opacity: .9;
}

.slot-list {
    display: grid;
    gap: 10px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}

.slot-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 64px minmax(0, 1fr);
}

.slot-row select {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}

.bench-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-bench-board {
    display: grid;
    gap: 10px;
}

.bench-player-card,
.bench-check-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 10px;
}

.bench-player-card {
    background: color-mix(in srgb, var(--brand) 8%, var(--panel));
    cursor: grab;
}

.bench-player-card:active {
    cursor: grabbing;
}

.bench-player-card small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.bench-player-card i {
    color: var(--muted);
    margin-left: auto;
}

.bench-player-photo {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 999px;
    color: white;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.bench-player-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.bench-check-row {
    background: var(--panel);
    font-weight: 800;
}

.bench-check-row input {
    flex: 0 0 auto;
}

.quick-sub-feedback {
    margin-bottom: 14px;
}

.summary-list {
    display: grid;
    gap: 8px;
}

.summary-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px;
}

.summary-row.drop-active-row {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.quick-sub-request-summary {
    align-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.pagination a,
.pagination span {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
}

.pagination .active {
    background: var(--brand);
    color: white;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        bottom: 0;
        left: 0;
        min-height: 100vh;
        overflow-y: auto;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform .22s ease;
        width: 280px;
        z-index: 30;
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .nav {
        grid-template-columns: 1fr;
    }

    .mobile-menu-button {
        align-items: center;
        background: white;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--text);
        cursor: pointer;
        display: inline-flex;
        height: 42px;
        justify-content: center;
        width: 42px;
    }

    .mobile-menu-backdrop {
        background: rgba(15, 23, 42, .48);
        border: 0;
        cursor: pointer;
        display: block;
        inset: 0;
        position: fixed;
        z-index: 20;
    }

    .topbar {
        background: color-mix(in srgb, var(--bg) 92%, transparent);
        backdrop-filter: blur(10px);
        justify-content: space-between;
        margin: -18px -18px 18px;
        padding: 12px 18px;
        position: sticky;
        top: 0;
        z-index: 15;
    }

    .profile-menu {
        max-width: calc(100vw - 36px);
        top: 60px;
        width: 320px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid,
    .pitch-layout,
    .poster-editor-layout,
    .profile-settings-layout,
    .player-id-layout {
        grid-template-columns: 1fr;
    }

    .profile-settings-layout {
        grid-template-areas:
            "card"
            "profile"
            "password";
    }

    .pitch {
        min-height: 520px;
    }

    .pitch-player {
        min-width: 94px;
    }

    .pitch-player-photo {
        height: 62px;
        width: 62px;
    }

    .pitch-player-name {
        font-size: 10px;
        max-width: 98px;
        padding: 4px 7px;
    }

    .pitch-position-badge {
        font-size: 9px;
        min-width: 30px;
        padding: 3px 5px;
    }

    .text-position-card {
        grid-template-columns: 1fr;
    }

    .text-position-actions {
        justify-content: flex-start;
    }

    .bracket-editor-toolbar,
    .bracket-edit-title {
        align-items: flex-start;
        display: grid;
    }

    .main {
        padding: 18px;
    }

    .landing-page {
        padding: 16px;
    }

    .landing-header,
    .scoreboard-main,
    .scoreboard-mini-grid,
    .scoreboard-inside-grid,
    .landing-grid,
    .scoreboard-match-meta {
        grid-template-columns: 1fr;
    }

    .landing-header {
        align-items: flex-start;
        display: grid;
    }

    .landing-header nav {
        width: 100%;
    }

    .scoreboard-team,
    .scoreboard-team-right {
        justify-items: center;
        text-align: center;
    }

    .scoreboard-team span {
        font-size: 30px;
    }

    .poster-teams {
        grid-template-columns: 1fr;
    }

    .poster-layout-split .poster-team-card:first-child,
    .poster-layout-split .poster-team-card:last-child {
        border-radius: 8px;
    }

    .poster-preview-sticky {
        position: static;
    }

    .match-poster {
        min-height: auto;
        padding: 22px;
    }

    .roster-print-header {
        align-items: flex-start;
        display: grid;
    }

    .roster-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-trigger > span:not(.avatar) {
        display: none;
    }

    .profile-menu {
        right: -2px;
    }

    .scoreboard-hero,
    .scoreboard-panel {
        padding: 14px;
    }

    .scoreboard-event-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .scoreboard-event-row b {
        grid-column: 2;
    }

    .theme-grid {
        grid-template-columns: 1fr;
    }

    .poster-layout-grid {
        grid-template-columns: 1fr;
    }

    .match-poster h1 {
        font-size: 30px;
    }

    .poster-team-card > span:not(.poster-team-logo) {
        font-size: 38px;
    }

    .poster-team-logo {
        height: 118px;
        width: 118px;
    }

    .poster-score {
        font-size: 52px;
    }

    .bench-list {
        grid-template-columns: 1fr;
    }

    .roster-player-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .roster-photo {
        height: 92px;
        width: 76px;
    }
}

@media print {
    body[data-print-target="match-rules"] .main > :not(.rules-print-document) {
        display: none !important;
    }

    body[data-print-target="match-rules"] .rules-print-document {
        color: #111827 !important;
        display: block !important;
        padding: 28px !important;
    }

    .sidebar,
    .topbar,
    .page-header,
    .player-id-layout > .panel,
    .no-print {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .main {
        padding: 0;
    }

    .panel,
    .print-panel,
    .player-id-card {
        border: 0;
        box-shadow: none;
    }

    .player-id-layout {
        display: block;
    }

    .player-id-card {
        margin: 0 auto;
        max-width: 360px;
    }

    .rules-print-document {
        display: none !important;
    }

    .landing-page,
    .scoreboard-panel,
    .team-roster-print {
        background: white !important;
        color: #111827 !important;
    }

    .match-poster {
        border: 0;
        min-height: 0;
        padding: 24px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .poster-brand,
    .poster-team-card,
    .scoreboard-inline-match,
    .scoreboard-card-list,
    .scoreboard-event-row,
    .roster-player-card {
        background-color: rgba(255, 255, 255, .92) !important;
        border: 1px solid #e5e7eb;
    }

    .poster-brand,
    .poster-team-card,
    .poster-team-card > span:not(.poster-team-logo),
    .poster-team-name,
    .poster-info,
    .poster-footer {
        color: #111827 !important;
    }

    .roster-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rules-signatures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Multi-tournament controls, organization and connected bracket. */
.tournament-switcher{margin-right:auto;min-width:200px;max-width:440px;display:grid;gap:4px}.tournament-switcher label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.tournament-switcher select{max-width:100%;padding:9px 12px;background:var(--panel);border:1px solid var(--line);border-radius:10px;color:var(--text)}.tournament-form{margin-bottom:22px}.participant-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:22px}.participant-options input,.panel input[type=checkbox]{width:auto}.empty-state{text-align:center;padding:45px;color:var(--muted)}.empty-state>i{font-size:36px;color:var(--brand)}.tournament-card h2{margin:18px 0 10px}.org-scroll{overflow:auto;padding:20px}.org-tree{display:flex;justify-content:center;list-style:none;padding:26px 0 0;margin:0;position:relative;min-width:max-content}.org-tree li{position:relative;text-align:center;padding:24px 12px 0}.org-tree li:before,.org-tree li:after{content:'';position:absolute;top:0;width:50%;height:24px;border-top:2px solid var(--line)}.org-tree li:before{right:50%}.org-tree li:after{left:50%;border-left:2px solid var(--line)}.org-tree li:first-child:before,.org-tree li:last-child:after{border-top:0}.org-tree li:only-child{padding-top:0}.org-tree li:only-child:before,.org-tree li:only-child:after{display:none}.org-tree .org-tree:before{content:'';position:absolute;top:0;height:26px;left:50%;border-left:2px solid var(--line)}.org-person{display:inline-flex;flex-direction:column;gap:7px;min-width:180px;max-width:240px;padding:18px;border:1px solid var(--line);border-top:3px solid var(--brand);background:var(--panel);border-radius:12px}.org-person small{color:var(--brand);font-size:12px}.org-person span{color:var(--muted);font-size:12px}.org-inactive{opacity:.5}.bracket-scroll{overflow:auto;padding:4px;background:var(--bg);border:1px solid var(--line);border-radius:14px}.bracket-canvas{position:relative;isolation:isolate}.bracket-lines{position:absolute;inset:0;z-index:0;pointer-events:none}.bracket-lines path{fill:none;stroke:var(--line);stroke-width:2}.bracket-lines .path-advanced{stroke:var(--brand)}.bracket-heading{position:absolute;top:8px;font-size:13px;text-align:center;letter-spacing:.06em;color:var(--muted)}.fixture-node{position:absolute;z-index:1;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 14px #0001;overflow:hidden}.fixture-caption{height:25px;display:flex;justify-content:space-between;align-items:center;padding:0 12px;background:var(--bg);font-size:10px;color:var(--muted)}.fixture-caption a{color:var(--brand);font-weight:700}.fixture-team{height:34px;display:flex;align-items:center;gap:8px;padding:0 10px;font-size:12px;border-bottom:1px solid var(--line)}.fixture-team img{width:22px;height:22px;object-fit:contain}.fixture-team i{color:var(--muted)}.fixture-team>span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fixture-team b{font-size:17px;font-variant-numeric:tabular-nums}.fixture-winner{background:color-mix(in srgb,var(--brand) 12%,var(--panel));font-weight:700}.fixture-winner b{color:var(--brand)}.fixture-footer{display:block;text-align:center;padding:7px 3px;font-size:10px;color:var(--muted)}.fixture-live{border-color:#e54b5d}.fixture-bye{border-style:dashed}.champion-banner{display:flex;align-items:center;justify-content:center;gap:18px;padding:20px;background:linear-gradient(100deg,#d9a43b19,#d9a43b32);border:1px solid #caaa5366;border-radius:14px;margin-bottom:16px}.champion-banner i{font-size:30px;color:#d9a43b}.champion-banner div{display:grid;gap:5px}.champion-banner small{font-size:10px;letter-spacing:.16em;color:var(--muted)}.champion-banner strong{font-size:22px}.tree-cinematic .bracket-scroll{background:#070f1b}.tree-cinematic .fixture-node{background:#142137;color:#edf5ff;border-color:#344666}.tree-cinematic .fixture-caption{background:#0b1525}.tree-cinematic .fixture-winner{background:#23482e}.tree-cinematic .fixture-team{border-color:#344666}
/* Public broadcast. */
.broadcast-page{min-height:100vh;background:#080f1b;color:#eef4ff;font-family:Inter,system-ui,sans-serif}.broadcast-header{max-width:1400px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:26px 36px;border-bottom:1px solid #233048;gap:24px}.broadcast-brand{font-weight:900;font-size:24px;display:flex;align-items:center;gap:12px;color:#fff}.broadcast-brand i{color:#bcf65a}.broadcast-brand span{font-weight:500;font-size:10px;letter-spacing:.2em;color:#8ea0bb;border-left:1px solid #354460;padding-left:12px}.broadcast-header nav{display:flex;align-items:center;gap:20px;font-size:12px}.broadcast-header a{color:inherit}.broadcast-header select{background:#152036;color:#dce7f7;border:1px solid #2a3a55;border-radius:8px;padding:10px;max-width:310px}.broadcast-main{max-width:1240px;margin:auto;padding:48px 34px 60px}.broadcast-title{text-align:center;margin-bottom:32px}.broadcast-eyebrow{font-size:11px;letter-spacing:.2em;color:#bbf464;font-weight:700;text-transform:uppercase}.broadcast-title h1{font-size:clamp(26px,3vw,42px);letter-spacing:-.04em;margin:12px 0}.broadcast-title p{color:#8ea0bb}.broadcast-fixtures{display:grid;gap:14px}.broadcast-fixture{display:grid;grid-template-columns:220px 1fr 160px;align-items:center;padding:22px 24px;gap:20px;border:1px solid #26344a;border-radius:14px;background:#101c2d}.fixture-date,.fixture-place{display:grid;gap:8px}.fixture-date strong{font-size:12px;color:#c1ee7a}.fixture-date span,.fixture-place span{font-size:11px;color:#98abc6}.fixture-place{text-align:right}.fixture-place b{font-size:9px;color:#90a3bf;letter-spacing:.13em}.fixture-versus{display:grid;grid-template-columns:1fr 40px 1fr;gap:10px;align-items:center;text-align:center}.fixture-versus strong{font-size:15px}.fixture-versus>span{font-size:11px;color:#66809e}.digital-scoreboard{border:1px solid #2b3b55;border-radius:22px;overflow:hidden;background:radial-gradient(ellipse at 50% 0%,#213756 0%,#101b2d 64%);box-shadow:0 24px 90px #0004}.digital-status{width:max-content;margin:24px auto 0;background:#253348;padding:9px 18px;font-size:10px;letter-spacing:.17em;border-radius:30px;color:#b9c8dd}.digital-status.is-live{background:#e1324d22;color:#ff8799}.digital-teams{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:center;padding:34px 24px 42px;gap:16px;text-align:center}.digital-team img{height:115px;width:115px;object-fit:contain}.digital-team>i{font-size:90px;color:#afc3df}.digital-team h2{font-size:clamp(18px,2vw,26px);margin:22px 0 10px}.digital-team>span{font-size:10px;letter-spacing:.3em;color:#7b90af}.digital-numbers{display:flex;justify-content:center;align-items:center;gap:18px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;font-size:clamp(60px,9vw,132px);line-height:1.1}.digital-numbers b{color:#d6fc98;text-shadow:0 0 24px #bdf26625;letter-spacing:-.07em}.digital-numbers>span{font-size:.5em;color:#526989}.digital-clock{font-family:ui-monospace,monospace;font-size:22px;letter-spacing:.16em;color:#bdf465;margin:20px 0 6px}.digital-result>small{font-size:10px;color:#7187a8}.digital-result>p{font-size:12px;letter-spacing:.06em;color:#d8bc7c}.digital-scoreboard footer{display:flex;justify-content:space-between;gap:12px;padding:18px 28px;border-top:1px solid #26374e;color:#8ea4c1;font-size:11px}.broadcast-goals{display:flex;justify-content:center;flex-wrap:wrap;gap:22px;padding:22px;color:#adbed4;font-size:12px}.broadcast-goals i{color:#bdf465;margin-right:8px}.broadcast-note{text-align:center;font-size:11px;color:#647b9e;margin:18px}.broadcast-bottom{max-width:1240px;margin:auto;padding:20px 34px;display:flex;justify-content:space-between;border-top:1px solid #1a293e;font-size:10px;letter-spacing:.13em;color:#6d819e}.broadcast-bottom button{background:none;border:0;color:#9cb1ce;cursor:pointer}.broadcast-empty{text-align:center;padding:80px 24px;color:#8ea4c1}.broadcast-empty i{font-size:50px;color:#bcf65a}.live-switch{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:20px}.live-switch button{padding:10px 15px;border:1px solid #324565;background:#122035;color:#c6d4e8;border-radius:8px;cursor:pointer}.live-switch .selected{border-color:#bdf465;color:#bdf465}
@media(max-width:760px){.tournament-switcher{min-width:0;max-width:58%}.tournament-switcher select{width:100%}.broadcast-header{padding:18px;align-items:flex-start;flex-direction:column;gap:18px}.broadcast-header nav{width:100%;flex-wrap:wrap;gap:14px}.broadcast-header select{max-width:100%;flex:1}.broadcast-main{padding:30px 14px}.broadcast-fixture{grid-template-columns:1fr;padding:18px;gap:16px}.fixture-date{display:flex;flex-wrap:wrap;justify-content:space-between}.fixture-place{display:flex;justify-content:space-between}.digital-teams{grid-template-columns:1fr 1.2fr 1fr;padding:26px 10px;gap:6px}.digital-team img{height:55px;width:55px}.digital-team>i{font-size:48px}.digital-team h2{font-size:13px;line-height:1.5}.digital-numbers{font-size:clamp(40px,12vw,72px);gap:9px}.digital-clock{font-size:17px}.digital-scoreboard footer{padding:14px;flex-direction:column;text-align:center}.digital-result>p{font-size:9px}.broadcast-brand{font-size:21px}.broadcast-bottom{padding:20px 16px;font-size:8px;gap:12px}}
/* Readable controls across the existing dark themes. */
.app-shell.mode-dark .field label,.app-shell.mode-dark label.field>span{color:var(--muted)}
.app-shell.mode-dark input:not([type=checkbox]):not([type=radio]):not([type=color]),.app-shell.mode-dark select,.app-shell.mode-dark textarea{background:var(--bg);color:var(--text);border-color:var(--line)}
.app-shell.mode-dark input::placeholder,.app-shell.mode-dark textarea::placeholder{color:var(--muted);opacity:.7}
.app-shell.mode-dark .btn-secondary{background:var(--bg);color:var(--text);border:1px solid var(--line)}
.mode-dark .org-person small,.mode-dark .fixture-caption a{color:color-mix(in srgb,var(--brand) 60%,white)}

.bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin-bottom:16px;font-size:13px}.bulk-toolbar .bulk-page,.bulk-card-check{display:inline-flex;align-items:center;gap:8px;color:var(--text);font-size:13px}.bulk-toolbar input[type=checkbox],.bulk-checkbox-cell input[type=checkbox],.bulk-card-check input{width:18px;height:18px;accent-color:var(--brand);cursor:pointer}.bulk-count{color:var(--muted);white-space:nowrap}.bulk-link{background:none;border:0;color:var(--brand);font:inherit;text-decoration:underline;cursor:pointer;padding:5px 0}.bulk-toolbar>.btn-danger{margin-left:auto}.bulk-checkbox-cell{width:56px;text-align:center}.bulk-card-check{margin-bottom:12px}.bulk-dialog{max-width:520px;width:calc(100% - 32px);padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);box-shadow:0 30px 110px #0007}.bulk-dialog::backdrop{background:#030912aa;backdrop-filter:blur(3px)}.bulk-dialog h2{font-size:23px;margin:18px 0 10px}.bulk-dialog p{line-height:1.6}.bulk-dialog .actions{margin-top:24px;justify-content:flex-end}.bulk-dialog-icon{background:#dc26261a;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;color:#ef4444;font-size:20px}.mode-dark .bulk-link{color:#9edab7}@media(max-width:680px){.bulk-toolbar{gap:10px}.bulk-toolbar>.btn-danger{width:100%;margin-left:0}.bulk-dialog{padding:20px}.bulk-toolbar{align-items:flex-start}}

.bulk-toolbar button:disabled{opacity:.45;cursor:not-allowed}.bulk-toolbar>.btn-danger{display:inline-flex;align-items:center;justify-content:center;gap:7px}

/* Shared appearance for dashboard, authentication and public match center. */
.theme-surface{--accent:var(--brand-dark);--on-brand:#fff;color:var(--text);background:var(--bg)}
.theme-surface.mode-dark{--accent:color-mix(in srgb,var(--brand) 72%,white)}
.theme-surface.theme-premium-neon,.theme-surface.theme-premium-gold,.theme-surface.theme-premium-stadium,.theme-surface.theme-premium-maxim,.theme-surface.theme-premium-spx,.theme-surface.theme-premium-brave{--on-brand:#101827}
.theme-surface .btn:not(.btn-secondary):not(.btn-danger){color:var(--on-brand)}
.theme-surface .nav a.active{background:var(--brand);color:var(--on-brand);box-shadow:inset 3px 0 0 color-mix(in srgb,var(--brand) 45%,white)}
.theme-surface .nav a.active i{color:inherit}
.theme-surface .nav a:hover:not(.active){background:color-mix(in srgb,var(--brand) 25%,transparent);color:#fff}
.theme-surface .nav i,.theme-surface .nav-label,.theme-surface .brand span{color:color-mix(in srgb,var(--brand) 30%,white)}
.theme-surface .bulk-link{color:var(--accent)}
.theme-surface .field label{color:var(--text)}
.theme-surface input:not([type=checkbox]):not([type=radio]):not([type=color]),.theme-surface select,.theme-surface textarea{background:var(--panel);color:var(--text);border-color:var(--line)}
.theme-surface .btn-secondary{background:var(--panel);color:var(--text);border:1px solid var(--line)}
.theme-surface .theme-option.active{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent)}
.topbar{gap:12px}
.appearance-switcher{position:relative;z-index:65;flex:0 0 auto;color:var(--text)}
.appearance-switcher summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer;color:var(--accent)}
.appearance-switcher summary::-webkit-details-marker{display:none}
.appearance-switcher summary:focus-visible,.bench-choice:focus-visible,.bench-drag-handle:focus-visible,.pitch-player:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.appearance-options{position:absolute;right:0;top:calc(100% + 8px);width:184px;border:1px solid var(--line);border-radius:14px;padding:6px;background:var(--panel);box-shadow:0 15px 45px #0003}
.appearance-options button{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:10px;border:0;border-radius:9px;background:transparent;color:var(--text);cursor:pointer;text-align:left}
.appearance-options button span{flex:1}.appearance-options button[aria-pressed=true]{background:color-mix(in srgb,var(--brand) 15%,var(--panel));color:var(--accent)}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:100px 24px 32px;position:relative}
.auth-topbar{position:absolute;top:20px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:center;font-weight:700}
.broadcast-page.theme-surface{background:var(--bg);color:var(--text)}
.broadcast-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;border-color:var(--line)}
.broadcast-brand{color:var(--text)}.broadcast-brand i,.broadcast-eyebrow,.fixture-date strong,.digital-numbers b,.digital-clock,.broadcast-goals i,.broadcast-empty i{color:var(--accent)}
.broadcast-brand span{color:var(--muted);border-color:var(--line)}
.broadcast-header .broadcast-nav{justify-content:flex-end;min-width:0;gap:18px}
.broadcast-access{display:flex;align-items:center;gap:14px;font-size:13px;white-space:nowrap}
.broadcast-header select{background:var(--panel);color:var(--text);border-color:var(--line);min-width:0}
.broadcast-title p,.fixture-date span,.fixture-place span,.fixture-place b,.fixture-versus>span,.digital-team>span,.digital-team>i,.digital-result>small,.digital-numbers>span,.broadcast-note,.broadcast-empty{color:var(--muted)}
.broadcast-fixture{background:var(--panel);border-color:var(--line)}
.digital-scoreboard{background:var(--panel);border-color:var(--line);box-shadow:0 18px 60px color-mix(in srgb,var(--brand) 8%,transparent)}
.digital-status{background:color-mix(in srgb,var(--brand) 12%,var(--panel));color:var(--accent)}
.digital-status.is-live{background:color-mix(in srgb,var(--danger) 12%,var(--panel));color:#dc5269}
.mode-light .digital-status.is-live{color:#b91c36}
.digital-numbers b{text-shadow:0 0 24px color-mix(in srgb,var(--brand) 16%,transparent)}
.digital-result>p{color:var(--accent)}
.digital-scoreboard footer,.broadcast-bottom{border-color:var(--line);color:var(--muted)}
.broadcast-goals,.broadcast-bottom button{color:var(--muted)}
.live-switch button{background:var(--panel);color:var(--text);border-color:var(--line)}.live-switch .selected{border-color:var(--brand);color:var(--accent)}
.template-stadium .digital-scoreboard{background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--brand) 24%,var(--panel)),var(--panel) 70%);border-top:4px solid var(--brand)}
.template-stadium .broadcast-fixture,.template-stadium.app-shell .panel{border-top:3px solid var(--brand);background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 6%,var(--panel)),var(--panel))}
.template-stadium .broadcast-header{border-bottom:3px solid var(--brand)}
.template-stadium .broadcast-page,.broadcast-page.template-stadium{background:radial-gradient(ellipse at top,color-mix(in srgb,var(--brand) 10%,var(--bg)),var(--bg) 65%)}
.template-compact .panel{padding:16px}.template-compact .nav-section{gap:3px}.template-compact .broadcast-title{margin-bottom:20px}.template-compact .broadcast-main{padding-top:30px}
.template-compact .broadcast-fixture{padding:16px;grid-template-columns:1fr;gap:14px;border-radius:8px}.template-compact .fixture-date,.template-compact .fixture-place{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.template-compact .digital-teams{padding:24px 16px}.template-compact .digital-scoreboard{border-radius:10px}
.ui-template-preview{background:var(--bg);color:var(--accent);border:1px solid var(--line)}.ui-template-preview.preview-stadium{border-top:5px solid var(--brand);background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 25%,var(--panel)),var(--panel))}.ui-template-preview.preview-compact{border-radius:5px;box-shadow:inset 0 0 0 8px var(--panel)}.theme-preview.mode-preview-system{background:linear-gradient(110deg,#f1f5f9 50%,#0f172a 50%);color:var(--brand)}
@media(min-width:900px){.template-compact .broadcast-fixtures{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
    .broadcast-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 10px;align-items:center;padding:16px}
    .broadcast-header .broadcast-nav{grid-column:1/-1;grid-row:2;justify-content:space-between;width:100%}
    .broadcast-access{grid-column:2;grid-row:1;gap:10px}.broadcast-brand span{display:none}.broadcast-brand{font-size:20px;gap:8px}
    .broadcast-header .broadcast-nav select{flex:1;max-width:100%;width:0}.broadcast-header .broadcast-nav a{white-space:nowrap}
    .topbar .tournament-switcher{max-width:none;flex:1;min-width:0}.topbar{gap:8px}.topbar .profile-trigger>span:not(.avatar){display:none}.topbar .profile-trigger>i{display:none}.topbar .profile-trigger{padding:3px}
    .topbar .mobile-menu-button{flex:0 0 auto;width:38px;height:44px;padding:8px}.topbar .appearance-switcher summary{width:40px}
}
@media print{.appearance-switcher{display:none}}

/* Substitutes sit next to the pitch; the complete table follows them in DOM order. */
.lineup-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,390px);gap:16px;align-items:start}
.lineup-board>.panel{min-width:0}.lineup-substitutions h2,.lineup-full-table h2{font-size:20px;margin:0 0 12px}.lineup-substitutions h3{font-size:15px;margin:18px 0 10px}.lineup-substitutions p{font-size:13px;line-height:1.6}.lineup-save-note{font-size:12px!important}
.lineup-substitutions .quick-bench-board{max-height:390px;overflow-y:auto;padding:3px;overscroll-behavior:contain}
.lineup-substitutions .bench-player-card{padding:5px;gap:4px;min-height:60px}
.bench-choice{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:transparent;border:0;color:var(--text);text-align:left;padding:5px;cursor:pointer}
.bench-choice>span:last-child{min-width:0}.bench-choice strong{font-size:13px;display:block;overflow-wrap:anywhere}.bench-choice small{font-size:11px}.bench-choice .bench-player-photo{width:36px;height:36px;font-size:11px}
.bench-drag-handle{flex:0 0 44px;min-height:48px;border:0;border-radius:8px;background:color-mix(in srgb,var(--brand) 10%,var(--panel));color:var(--accent);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}.bench-drag-handle i{margin:0;color:inherit;font-size:19px}
.bench-player-card.bench-selected{border-color:var(--brand);outline:2px solid color-mix(in srgb,var(--brand) 25%,transparent)}
.bench-settings{margin-top:14px;border-top:1px solid var(--line);padding-top:8px}.bench-settings summary{padding:12px 0;min-height:44px;cursor:pointer;font-weight:700;color:var(--accent)}.lineup-substitutions .bench-list{grid-template-columns:1fr;max-height:300px;overflow:auto}.bench-check-row input{width:20px;height:20px;accent-color:var(--brand)}
.lineup-full-table .slot-list{max-height:none;overflow:visible;padding:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px}
.lineup-full-table .slot-row{padding:8px;border:1px solid var(--line);border-radius:10px;grid-template-columns:40px minmax(0,1fr)}.lineup-full-table select{min-height:48px;min-width:0}.lineup-full-table .lineup-place{grid-column:2;min-height:44px}
.lineup-full-table .drop-active-row{border-color:var(--brand);outline:3px solid color-mix(in srgb,var(--brand) 35%,transparent)}
.lineup-selection{display:grid;gap:9px;border:1px solid var(--brand);background:color-mix(in srgb,var(--brand) 8%,var(--panel));padding:12px;border-radius:10px;font-size:13px}.lineup-selection .btn{justify-self:start;min-height:44px}
.lineup-editor .pitch-player[role=button]{cursor:pointer}.lineup-editor .drop-ready .pitch-player-photo{border-color:#fde68a}
.lineup-drag-ghost{position:fixed;transform:translate(-50%,calc(-100% - 24px));z-index:1000;pointer-events:none;max-width:250px;padding:12px 16px;border:2px solid #86efac;border-radius:12px;background:#10291e;color:#fff;box-shadow:0 12px 30px #0004;font-size:13px;font-weight:700}
@media(max-width:1100px){.lineup-board{grid-template-columns:1fr}.lineup-board .pitch{min-height:0;max-width:470px;margin:auto}.lineup-substitutions .quick-bench-board{max-height:240px}.lineup-full-table .slot-list{grid-template-columns:1fr}}
@media(max-width:600px){.lineup-pitch-panel{padding:12px}.lineup-board .pitch{min-height:420px}.lineup-board .pitch-player{min-width:0;width:23%;gap:4px}.lineup-board .pitch-player-photo{width:48px;height:48px;font-size:12px;border-width:2px}.lineup-board .pitch-player-name{font-size:9px;max-width:100%;padding:4px;line-height:1.2}.lineup-board .pitch-position-badge{font-size:8px;min-width:24px;padding:2px 4px}.lineup-editor .slot-row select{font-size:16px}.lineup-editor .actions>.btn{min-height:44px}.lineup-full-table .slot-row{gap:6px;grid-template-columns:32px minmax(0,1fr)}}
.landing-page.theme-surface{background:var(--bg);color:var(--text)}
.landing-page.theme-surface .scoreboard-panel{background:var(--panel);border-color:var(--line);color:var(--text)}
.landing-page.theme-surface .landing-header span,.landing-page.theme-surface .landing-muted,.landing-page.theme-surface .landing-table th,.landing-page.theme-surface .landing-table td small{color:var(--muted)}
.landing-page.theme-surface .landing-table td,.landing-page.theme-surface .landing-table th{border-color:var(--line)}
.landing-page.theme-surface .scoreboard-panel-head i{color:var(--accent)}
.landing-page.template-stadium .scoreboard-panel{border-top:3px solid var(--brand)}
.theme-surface .mobile-menu-button{background:var(--panel);color:var(--text);border-color:var(--line)}
.theme-surface .pagination .active{color:var(--on-brand)}

/* Team account creation follows the active palette and stays usable on phones. */
.team-accounts{margin-bottom:24px;scroll-margin-top:110px}
.team-accounts-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.team-accounts-heading h2{margin:0;font-size:20px}
.team-accounts-heading p{margin:8px 0 0;line-height:1.6}
.team-accounts-heading>.btn{flex-shrink:0}
.team-account-list{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:10px}
.team-account-list li{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:14px}
.team-account-list li>div{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere;flex:1}
.team-account-list .badge{white-space:nowrap}
.team-account-icon{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;background:color-mix(in srgb,var(--brand) 12%,var(--panel));color:var(--brand)}
.team-account-form{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}
.team-account-option{display:flex;align-items:center;gap:10px;font-weight:700;line-height:1.5;cursor:pointer}
.team-account-option input{width:20px;height:20px;flex-shrink:0;accent-color:var(--brand)}
.team-account-access{padding:12px 14px;border-radius:10px;background:color-mix(in srgb,var(--brand) 8%,var(--panel));border:1px solid var(--line);font-size:13px;line-height:1.7;margin:0 0 18px}
.team-account-access i{color:var(--brand);margin-right:6px}
.account-field-hint{font-size:12px;line-height:1.6;margin:0}
.team-account-actions{margin-top:18px}
.lineup-status-notice{margin-bottom:18px;border-left:4px solid var(--brand);line-height:1.7}
.lineup-live-request{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}
.lineup-live-request>.btn{margin-top:16px;width:100%;min-height:44px}
.lineup-live-request>.btn:disabled{opacity:.5;cursor:not-allowed}
#manager-substitution,#substitution-requests{scroll-margin-top:110px}

/* Substitution alerts are available from every authenticated committee page. */
.sub-notifications{margin-bottom:20px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);scroll-margin-top:100px}
.sub-notifications.has-pending{border-color:var(--brand);box-shadow:inset 4px 0 var(--brand)}
.sub-notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sub-notification-heading{display:flex;align-items:center;gap:12px;min-width:0}
.sub-notification-heading strong{font-size:15px}.sub-notification-heading p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.5}
.sub-notification-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--brand) 12%,var(--panel));color:var(--accent,var(--brand));font-size:18px}
.sub-notification-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sub-notification-controls .btn,.sub-notification-toast .btn,.sub-notification-details .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px}
.sub-notification-count{border-radius:20px;min-width:22px;padding:3px 6px;background:var(--brand);color:var(--on-brand,#fff);font-variant-numeric:tabular-nums}
.sub-notification-help,.sub-notification-error{font-size:12px;margin:12px 0 0;line-height:1.6;color:var(--muted)}
.sub-notification-error{color:var(--text);padding:10px 12px;background:color-mix(in srgb,var(--warning) 12%,var(--panel));border-radius:8px}
.sub-notification-announcement{font-size:12px;font-weight:600;line-height:1.6}.sub-notification-announcement:not(:empty){margin-top:12px}
.sub-notification-details{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}
.sub-notification-ack{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:14px}.sub-notification-ack p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.sub-notification-ack .btn{flex-shrink:0}
.sub-notification-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;max-height:410px;overflow:auto;overscroll-behavior:contain}
.sub-notification-item{min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--bg);display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
.sub-notification-item small{font-size:11px;color:var(--muted);line-height:1.6}.sub-notification-item strong{font-size:14px}.sub-notification-item p{font-size:13px;margin:0;line-height:1.5}.sub-player-direction{display:inline-block;min-width:48px;font-size:11px;text-transform:uppercase;font-weight:700;color:var(--accent,var(--brand))}.sub-notification-item .btn{margin-top:4px;align-self:flex-start}
.sub-notification-toast{position:fixed;bottom:24px;right:24px;z-index:70;width:min(410px,calc(100vw - 32px));padding:18px;border:1px solid var(--brand);border-top:4px solid var(--brand);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:0 12px 40px #0003;overflow-wrap:anywhere}
.sub-notification-toast>strong{display:flex;align-items:center;gap:10px;font-size:15px}.sub-notification-toast>strong i{color:var(--accent,var(--brand))}.sub-notification-toast p{color:var(--muted);font-size:13px;line-height:1.6;margin:10px 0 14px}.sub-notification-toast .actions{gap:8px}
@media(max-width:600px){.sub-notifications{padding:14px}.sub-notification-toolbar{gap:14px}.sub-notification-controls{width:100%}.sub-notification-ack{align-items:flex-start;flex-direction:column;gap:10px}.sub-notification-list{grid-template-columns:minmax(0,1fr)}.sub-notification-toast{bottom:max(16px,env(safe-area-inset-bottom));right:16px;padding:16px}}
@media print{.sub-notifications{display:none!important}}
@media(max-width:600px){.team-accounts-heading{flex-direction:column}.team-accounts-heading>.btn{width:100%;min-height:44px}.team-account-list li{display:grid;grid-template-columns:38px minmax(0,1fr)}.team-account-list .badge{grid-column:2;justify-self:start}.team-account-actions>.btn{width:100%;min-height:44px}.team-account-form .field input{font-size:16px;min-width:0}}

/* Tournament identity and additional poster compositions */
.tournament-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 16px; padding: 8px; background: #fff; }
.tournament-motto { font-weight: 700; font-style: italic; }
.tournament-logo-meaning { white-space: pre-wrap; overflow-wrap: anywhere; }
.poster-layout-gold_elegant { background-color: #15120b; border: 8px double #d4af37; box-shadow: inset 0 0 80px #d4af3722; }
.poster-layout-gold_elegant .poster-title { font-family: Georgia, serif; letter-spacing: .06em; color: var(--poster-accent); }
.poster-layout-gold_elegant .poster-team-card { background: #15120be6; border: 1px solid var(--poster-accent); border-radius: 0; }
.poster-layout-gold_elegant .poster-brand { border-bottom: 1px solid var(--poster-accent); }
.poster-layout-royal_plum { background-color: #291040; border: 4px solid var(--poster-accent); }
.poster-layout-royal_plum .poster-team-card { background: #3b1655ee; border-radius: 100px 100px 16px 16px; border: 2px solid var(--poster-accent); }
.poster-layout-royal_plum .poster-title { font-family: Georgia, serif; }
.poster-layout-ivory_editorial { background-image: linear-gradient(135deg,#fffaf1f5,#f4e8d6ed) !important; background-color: #fffaf1; border: 2px solid #9a6b21; color: var(--poster-text); }
.poster-layout-ivory_editorial .poster-team-card { background: transparent; border: 0; border-top: 1px solid var(--poster-accent); border-bottom: 1px solid var(--poster-accent); border-radius: 0; }
.poster-layout-ivory_editorial .poster-title { font-family: Georgia, serif; }
.poster-layout-ivory_editorial .poster-brand, .poster-layout-ivory_editorial .poster-info, .poster-layout-ivory_editorial .poster-footer, .poster-layout-ivory_editorial .poster-subtitle { color: var(--poster-text); }
.poster-layout-ocean_aurora { background-color: #062e43; border: 3px solid var(--poster-accent); box-shadow: inset 0 0 100px #22d3ee33; }
.poster-layout-ocean_aurora .poster-team-card { background: #082f49d9; border: 1px solid var(--poster-accent); border-radius: 32px 4px; }
.poster-layout-ocean_aurora .poster-versus { border-radius: 50%; background: #164e63; color: var(--poster-accent); }
.poster-layout-thumb-gold_elegant { background: linear-gradient(135deg,#15120b 40%,#d4af37 42%,#15120b 45%); border: 3px double #d4af37; }
.poster-layout-thumb-royal_plum { background: linear-gradient(125deg,#291040,#6b318e); border: 2px solid #e8c56a; }
.poster-layout-thumb-ivory_editorial { background: linear-gradient(135deg,#fffaf1,#ddc8a4); border: 1px solid #9a6b21; }
.poster-layout-thumb-ocean_aurora { background: linear-gradient(135deg,#062e43,#0891b2,#062e43); border: 1px solid #67e8f9; }

.alarm-preferences { margin: 12px 0; }
.alarm-preferences summary { cursor: pointer; font-weight: 700; }
.alarm-preferences form { padding: 16px 0; }
.alarm-preferences audio { max-width: 100%; }
