* { box-sizing: border-box; }
:root {
    --site-max-width: 1200px;
    --chrome-max-width: 1560px;
    --site-gutter: 24px;
    --site-inline: max(var(--site-gutter), calc((100vw - var(--site-max-width)) / 2));
    --chrome-inline: max(18px, calc((100vw - var(--chrome-max-width)) / 2));
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; font-family: var(--font-body); font-size: var(--base-font-size); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, white), #f8fafc 360px); color: #0f172a; }
html[data-theme="dark"] body { background: linear-gradient(180deg, color-mix(in srgb, var(--secondary) 78%, #06111f), #06111f 380px); color: #f8fafc; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
select { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; padding: 12px; background: white; color: #0f172a; }
.topbar { height: 78px; display: grid; grid-template-columns: minmax(118px, auto) minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 1.6vw, 28px); padding: 0 var(--chrome-inline); position: sticky; top: 0; z-index: 100; overflow: visible; background: linear-gradient(180deg, rgba(255,255,255,.98), color-mix(in srgb, var(--surface) 72%, white)); color: #0f172a; border-bottom: 1px solid #e2e8f0; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: clamp(118px, 17vw, 260px); font-family: var(--font-heading); font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.brand span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { display: inline-grid; place-items: center; width: 58px; min-width: 58px; height: 42px; border-radius: 7px; background: var(--primary); color: white; font-weight: 900; overflow: hidden; }
.brand-mark.has-logo { padding: 0; background: transparent; border: 0; overflow: visible; align-self: center; align-items: center; justify-items: center; }
.brand-mark img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center center; display: block; transform: scale(1.08); transform-origin: center center; }
.brand > .brand-mark.has-logo { transform: translateY(-4px); }
.nav { display: flex; gap: clamp(10px, 1.25vw, 24px); justify-content: center; min-width: 0; max-width: 100%; overflow: visible; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; white-space: nowrap; font-family: var(--font-nav); font-size: calc(12px * var(--font-scale, 1)); font-weight: 800; text-transform: uppercase; opacity: .88; padding: 30px 0 24px; border-bottom: 3px solid transparent; }
.nav a.active, .nav a:hover { opacity: 1; border-color: var(--primary); }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 3px; }
.nav-dropdown > a span { font-size: 9px; margin-left: 3px; }
.nav-dropdown-menu { position: absolute; left: 0; top: calc(100% - 1px); z-index: 1000; display: none; min-width: 230px; max-width: min(360px, calc(100vw - 36px)); padding: 8px; border: 1px solid #d8dee8; border-radius: 8px; background: white; box-shadow: 0 18px 36px rgba(15,23,42,.12); }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a { padding: 10px 12px; border: 0; border-radius: 6px; color: #0f172a; }
.nav-dropdown-menu a:hover { background: #f1f5f9; }
.nav-competition-group { position: relative; display: grid; min-width: 0; }
.nav-competition-group::after { content: ''; position: absolute; left: 100%; top: 0; width: 10px; height: 100%; }
.nav-competition-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav-competition-main span { font-size: 14px; line-height: 1; }
.nav-competition-children { position: absolute; left: 100%; top: 0; z-index: 1001; display: none; min-width: 210px; padding: 8px; border: 1px solid #d8dee8; border-radius: 8px; background: white; box-shadow: 0 18px 36px rgba(15,23,42,.12); }
.nav-competition-group:hover .nav-competition-children, .nav-competition-group:focus-within .nav-competition-children { display: grid; }
.nav-competition-children small { padding: 4px 10px 6px; color: #64748b; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.nav-competition-children a { font-size: calc(11px * var(--font-scale, 1)); }
.mobile-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: #0f172a; cursor: pointer; place-items: center; gap: 4px; padding: 10px; }
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 99px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.top-actions { display: flex; gap: clamp(8px, 1vw, 14px); align-items: center; min-width: 0; justify-self: end; }
.public-date { color: #334155; font-size: calc(12px * var(--font-scale, 1)); font-weight: 800; white-space: nowrap; }
.date-short { display: none; }
.icon-button { width: 40px; height: 40px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: inherit; cursor: pointer; display: inline-grid; place-items: center; }
.theme-toggle span { width: 17px; height: 17px; border-radius: 999px; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.16); transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.theme-toggle:hover span { transform: rotate(18deg) scale(1.04); }
html[data-theme="dark"] .theme-toggle span { background: transparent; box-shadow: inset -5px -3px 0 0 #e2e8f0; }
.account-link { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: #0f172a; }
.account-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.account-link:hover { border-color: var(--primary); color: var(--primary); }
html[data-theme="dark"] .account-link { background: #0b1a2d; color: #f8fafc; border-color: rgba(255,255,255,.14); }
.hero { min-height: 430px; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(260px, .8fr) 360px; gap: 28px; align-items: center; padding: 42px var(--site-inline) 56px; background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--surface) 84%, white) 58%, color-mix(in srgb, var(--accent) 8%, white) 100%); color: #0f172a; position: relative; overflow: hidden; border-bottom: 1px solid #e2e8f0; }
.hero:after { display: none; }
.hero-copy, .results-panel, .hero-player { position: relative; z-index: 1; }
.eyebrow { color: #2f59a7; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--font-heading); font-size: clamp(calc(42px * var(--font-scale, 1)), 7vw, calc(68px * var(--font-scale, 1))); line-height: .98; text-transform: uppercase; letter-spacing: 0; font-weight: 900; }
h2 { margin: 0; font-family: var(--font-heading); font-size: calc(17px * var(--font-scale, 1)); text-transform: uppercase; font-weight: 800; }
h3 { margin: 0; }
.hero-copy p:not(.eyebrow) { max-width: 560px; font-size: calc(17px * var(--font-scale, 1)); line-height: 1.45; }
.hero-actions { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 7px; border: 1px solid rgba(255,255,255,.35); font-weight: 900; text-transform: uppercase; font-size: calc(13px * var(--font-scale, 1)); }
.btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn.secondary, .btn.compact { background: white; color: #0f172a; border-color: #cbd5e1; }
.btn.compact { min-height: 36px; width: 100%; }
.hero-player { min-height: 320px; background: url('/assets/img/f7sevilla-reference.png') center / cover; border-radius: 8px; filter: saturate(.95); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.home-builder { width: min(var(--chrome-max-width), calc(100% - (var(--site-gutter) * 2))); margin: 16px auto 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 250px); gap: 24px; align-items: start; }
.home-builder-main { display: grid; gap: 16px; min-width: 0; }
.home-feature-banner { min-height: 232px; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 34px; border-radius: 8px; background: linear-gradient(135deg, #0b0f19 0 12%, var(--primary) 12% 100%); color: white; text-align: center; overflow: hidden; }
.home-feature-banner h1 { max-width: 760px; font-size: clamp(calc(38px * var(--font-scale, 1)), 5.8vw, calc(66px * var(--font-scale, 1))); }
.home-feature-banner p:not(.eyebrow) { max-width: 720px; margin: 0; font-size: calc(16px * var(--font-scale, 1)); line-height: 1.45; }
.home-feature-banner .eyebrow { margin: 0; color: white; opacity: .82; }
.home-feature-banner .hero-actions { margin-top: 8px; justify-content: center; }
.home-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-managed-block { display: grid; gap: 10px; min-width: 0; }
.home-block-media { min-height: 120px; display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 14px; padding: 20px; border-radius: 7px; background-color: #334da0; background-image: linear-gradient(90deg, rgba(47,89,167,.95), rgba(47,89,167,.74)), var(--block-image, url('/assets/img/f7sevilla-reference.png')); background-position: center; background-size: cover; color: white; }
.home-managed-block.is-red .home-block-media { background-image: linear-gradient(90deg, rgba(229,29,42,.96), rgba(229,29,42,.72)), var(--block-image, url('/assets/img/f7sevilla-reference.png')); }
.home-managed-block.is-dark .home-block-media { background-image: linear-gradient(90deg, rgba(3,20,37,.97), rgba(3,20,37,.72)), var(--block-image, url('/assets/img/f7sevilla-reference.png')); }
.home-block-media .brand-mark { min-width: 78px; width: 78px; height: 54px; border-radius: 9px; background: var(--primary); box-shadow: 0 12px 24px rgba(0,0,0,.16); }
.home-block-media .brand-mark.has-logo { background: transparent; border-color: transparent; }
.home-block-media strong { min-width: 0; font-family: var(--font-heading); font-size: calc(18px * var(--font-scale, 1)); font-weight: 900; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.home-block-copy { display: grid; gap: 8px; }
.home-block-copy h2 { padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: linear-gradient(180deg, #fff, #e5e7eb); color: #0f172a; font-size: calc(13px * var(--font-scale, 1)); }
.home-block-copy div { line-height: 1.45; }
.home-block-copy p { margin: 0; }
.home-competition-rail { display: grid; gap: 18px; position: sticky; top: 96px; }
.home-competition-tile { --rail-label-width: 48px; min-height: 60px; display: grid; align-content: center; gap: 2px; padding: 12px 18px 12px calc(var(--rail-label-width) + 18px); border-radius: 0; background: linear-gradient(90deg, #030712 0 var(--rail-label-width), var(--primary) var(--rail-label-width) 100%); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); position: relative; overflow: hidden; }
.home-competition-tile::before, .home-competition-tile::after { content: attr(data-brand); position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.75); font-family: var(--font-heading); font-size: 11px; font-weight: 900; }
.home-competition-tile::before { left: 11px; }
.home-competition-tile::after { right: 10px; }
.home-competition-tile span { max-width: 100%; overflow: hidden; font-size: 10px; font-weight: 900; line-height: 1.1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; opacity: .82; }
.home-competition-tile strong { max-width: 100%; padding-right: 18px; overflow-wrap: anywhere; font-family: var(--font-heading); font-size: calc(22px * var(--font-scale, 1)); line-height: .95; text-transform: uppercase; }
.home-competition-tile.is-knockout { background: linear-gradient(90deg, #030712 0 var(--rail-label-width), var(--primary) var(--rail-label-width) 100%); }
.home-editorial-grid { width: min(var(--chrome-max-width), calc(100% - (var(--site-gutter) * 2))); margin: 0 auto 42px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 22px; align-items: start; }
.home-featured-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0; }
.home-featured-news > .section-head { grid-column: 1 / -1; margin-bottom: 0; }
.home-news-card { display: grid; grid-template-rows: auto auto auto 1fr; gap: 8px; min-height: 240px; padding: 18px; border: 1px solid #d8dee8; border-radius: 8px; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface) 54%, white)); box-shadow: 0 14px 30px rgba(15,23,42,.07); overflow: hidden; position: relative; }
.home-news-card > span { position: relative; display: block; min-height: 156px; border-radius: 7px; background: #dbeafe center / cover; overflow: hidden; }
.home-news-card small { color: var(--primary); font-weight: 900; text-transform: uppercase; }
.home-news-card h2 { color: #0f172a; font-size: clamp(22px, 3vw, 34px); line-height: 1.02; text-transform: none; }
.home-news-card p { margin: 0; line-height: 1.45; }
.home-news-card.is-wide { grid-column: 1 / -1; grid-template-columns: minmax(320px, .78fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; min-height: 286px; padding: 0; }
.home-news-card.is-wide > span { grid-row: 1 / span 3; min-height: 100%; border-radius: 0; }
.home-news-card.is-wide small, .home-news-card.is-wide h2, .home-news-card.is-wide p { margin-right: 22px; }
.home-news-card.is-wide small { margin-top: 22px; }
.home-news-card.is-wide p { margin-bottom: 22px; }
.home-news-card.is-wide:not(.has-image) { grid-template-columns: 1fr; padding: 22px; }
.home-news-card.is-wide:not(.has-image) small, .home-news-card.is-wide:not(.has-image) h2, .home-news-card.is-wide:not(.has-image) p { margin-right: 0; }
.home-news-card.is-strip { grid-column: 1 / -1; grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: auto auto 1fr; min-height: 160px; padding: 0; }
.home-news-card.is-strip > span { grid-row: 1 / span 3; min-height: 100%; border-radius: 0; }
.home-news-card.is-strip small, .home-news-card.is-strip h2, .home-news-card.is-strip p { margin-right: 18px; }
.home-news-card.is-strip small { margin-top: 18px; }
.home-news-card.is-strip h2 { font-size: clamp(20px, 2vw, 28px); }
.home-news-card.is-strip p { margin-bottom: 18px; }
.home-news-card.is-strip:not(.has-image) { grid-template-columns: 1fr; padding: 18px; }
.home-news-card.is-strip:not(.has-image) small, .home-news-card.is-strip:not(.has-image) h2, .home-news-card.is-strip:not(.has-image) p { margin-right: 0; }
.home-news-card.is-visual { min-height: 310px; align-content: end; color: white; background: linear-gradient(180deg, rgba(2,6,23,.1), rgba(2,6,23,.84)), #0f172a; position: relative; }
.home-news-card.is-visual > span { position: absolute; inset: 0; min-height: 0; border-radius: 0; z-index: 0; }
.home-news-card.is-visual small, .home-news-card.is-visual h2, .home-news-card.is-visual p { position: relative; z-index: 1; color: white; text-shadow: 0 2px 12px rgba(0,0,0,.42); }
.home-news-card.is-visual small { color: #bfdbfe; }
.home-standings-stack { display: grid; gap: 16px; min-width: 0; }
.home-standings-stack > .section-head { margin-bottom: 0; }
.home-standing-card { padding: 16px; border: 1px solid #d8dee8; border-radius: 8px; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface) 50%, white)); box-shadow: 0 14px 30px rgba(15,23,42,.07); overflow-x: auto; }
.home-standing-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-standing-head h3 { margin: 0; font-family: var(--font-heading); font-size: calc(18px * var(--font-scale, 1)); line-height: 1; text-transform: uppercase; }
.home-standing-card table { font-size: calc(12px * var(--font-scale, 1)); }
.home-standing-card td, .home-standing-card th { padding: 8px 6px; }
.results-panel, .season-panel, .competition-band { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface) 60%, white)); color: #0f172a; border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 16px 36px rgba(15,23,42,.08); }
.results-panel { padding: 20px; align-self: stretch; }
.panel-head, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head a, .section-head a, .text-link { color: #2f59a7; font-size: calc(12px * var(--font-scale, 1)); font-weight: 900; text-transform: uppercase; }
.result-row { padding: 12px 0; border-top: 1px solid #e5e7eb; }
.result-row small { display: flex; justify-content: space-between; color: #64748b; }
.result-row div { display: flex; justify-content: space-between; line-height: 1.7; }
.result-row em { display: inline-block; margin-top: 6px; padding: 4px 8px; border-radius: 5px; background: var(--primary); color: white; font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.competition-band { width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2))); margin: 24px auto 18px; padding: 24px; position: relative; z-index: 2; }
.competition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.competition-card { padding: 18px; min-height: 178px; border: 1px solid #d8dee8; border-radius: 7px; background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--accent) 7%, #f8fafc)); }
.competition-card small, .competition-card p { color: #475569; }
.dashboard-grid { width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2))); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr .82fr; gap: 18px; }
.light-card, .table-card, .wizard-card, .login-card, .admin-card { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface) 48%, white)); color: #0f172a; border: 1px solid #d8dee8; border-radius: 8px; padding: 20px; box-shadow: 0 16px 36px rgba(15,23,42,.08); }
html[data-theme="dark"] .light-card, html[data-theme="dark"] .table-card, html[data-theme="dark"] .wizard-card, html[data-theme="dark"] .login-card { background: #0b1a2d; color: #f8fafc; border-color: rgba(255,255,255,.12); }
table { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--font-scale, 1)); }
th { color: #64748b; font-size: calc(11px * var(--font-scale, 1)); text-transform: uppercase; text-align: left; }
td, th { padding: 11px 8px; border-bottom: 1px solid #e5e7eb; }
html[data-theme="dark"] td, html[data-theme="dark"] th { border-color: rgba(255,255,255,.1); }
.ranking-row { display: grid; grid-template-columns: 22px 38px minmax(0, 1fr) 28px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(148,163,184,.25); }
.news-row, .match-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(148,163,184,.25); }
.ranking-row > b { grid-column: 1; justify-self: start; color: var(--primary); font-weight: 900; }
.ranking-row > .avatar, .ranking-row > .crest { grid-column: 2; justify-self: center; width: 34px; height: 34px; }
.ranking-row .ranking-row-main { grid-column: 3; display: grid; grid-template-rows: auto auto; align-items: center; justify-items: start; gap: 2px; min-width: 0; }
.ranking-row .ranking-row-main > strong { display: block; min-width: 0; max-width: 100%; overflow: hidden; color: #0f172a; font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row .ranking-row-main > small { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; overflow: hidden; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row .ranking-row-main .crest { width: 15px; height: 15px; flex: 0 0 15px; }
.ranking-row-value { grid-column: 4; justify-self: end; color: #0f172a; font-size: calc(16px * var(--font-scale, 1)); font-weight: 900; }
.mini-title { margin: 18px 0 6px; color: #334155; font: 800 12px/1.2 var(--font-heading); text-transform: uppercase; }
.ranking-card table th, .ranking-card table td { font-size: 12px; }
small, em, .muted { color: #64748b; display: block; font-style: normal; }
.news-row span { width: 76px; height: 52px; border-radius: 6px; background: #dbeafe center / cover; flex: 0 0 auto; }
.news-view-badge { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 5px; background: rgba(0,0,0,.86); color: white; font-size: 11px; font-style: normal; font-weight: 900; line-height: 1; text-transform: uppercase; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.side-season { width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2))); margin: 18px auto 60px; display: grid; grid-template-columns: 1fr; }
.season-panel { padding: 24px; margin-left: auto; width: min(440px, 100%); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 24px; }
.chips span, .badge { padding: 8px 14px; border-radius: 7px; background: rgba(47,140,255,.16); border: 1px solid rgba(47,140,255,.4); font-weight: 800; }
.match-row time { width: 70px; color: #64748b; }
.match-row strong { flex: 1; }
.match-row .match-scoreline strong, .match-row .match-score-badges strong { flex: 0 0 auto; }
.page-hero { padding: 70px var(--site-inline); color: #0f172a; background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--surface) 74%, white) 70%, color-mix(in srgb, var(--primary) 8%, white) 100%); border-bottom: 1px solid #e2e8f0; }
.page-hero h1 { font-size: clamp(calc(36px * var(--font-scale, 1)), 6vw, calc(58px * var(--font-scale, 1))); }
.competition-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 28px; align-items: end; padding: 58px var(--site-inline) 34px; color: #0f172a; background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--surface) 70%, white) 58%, color-mix(in srgb, var(--primary) 10%, white) 100%); border-bottom: 1px solid #e2e8f0; }
.competition-hero h1 { font-size: clamp(calc(38px * var(--font-scale, 1)), 6.4vw, calc(72px * var(--font-scale, 1))); }
.competition-hero p:not(.eyebrow) { max-width: 760px; font-size: calc(17px * var(--font-scale, 1)); line-height: 1.45; }
.competition-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.competition-kpis span { display: grid; gap: 3px; padding: 16px; border: 1px solid #d8dee8; border-radius: 8px; background: rgba(255,255,255,.7); color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.competition-kpis strong { color: #0f172a; font-family: var(--font-heading); font-size: 30px; line-height: 1; }
.competition-menu { position: sticky; top: 78px; z-index: 7; display: flex; align-items: center; gap: 6px; padding: 8px var(--chrome-inline); background: linear-gradient(180deg, rgba(255,255,255,.98), color-mix(in srgb, var(--surface) 72%, white)); border-bottom: 1px solid #d8dee8; overflow-x: auto; }
.competition-menu span { margin-right: 8px; padding: 8px 14px; border-radius: 999px; background: var(--primary); color: white; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.competition-menu a { padding: 8px 12px; border-radius: 999px; color: #334155; font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.competition-menu a:hover, .competition-menu a.active { background: #eff6ff; color: #2f59a7; }
.competition-layout { width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2))); display: grid; grid-template-columns: minmax(390px, .98fr) minmax(240px, .72fr) minmax(220px, .56fr); gap: 18px; align-items: start; }
.competition-layout > *, .competition-left, .competition-center, .competition-right { min-width: 0; }
.competition-left, .competition-center, .competition-right { display: grid; gap: 18px; }
.competition-left .table-card { overflow-x: visible; }
.competition-left table { min-width: 0; table-layout: auto; }
.competition-left th, .competition-left td { padding-inline: 6px; }
.competition-left th:first-child, .competition-left td:first-child { width: 38px; }
.competition-left .entity-name { gap: 6px; }
.compact-match { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto minmax(0, 1fr); }
.compact-match time { width: auto; }
.match-summary-head { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; padding: 0 0 8px; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.ranking-tabs { display: flex; gap: 4px; margin: -4px 0 10px; overflow-x: auto; }
.ranking-tabs a, .ranking-tabs button { padding: 7px 10px; border: 0; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.ranking-tabs a:hover, .ranking-tabs a:focus, .ranking-tabs button:hover, .ranking-tabs button:focus, .ranking-tabs button.active { background: #eff6ff; color: #2f59a7; }
.section-ranking-tabs { margin: 0 0 18px; }
.competition-news-list { display: grid; gap: 18px; }
.competition-news { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; position: relative; }
.competition-news.has-image { grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); gap: 16px; }
.competition-news span { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 7px; background: #dbeafe center / cover; overflow: hidden; }
.competition-news.has-image span { grid-row: 1 / span 4; }
.competition-news small { color: var(--primary); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.competition-news h2 { margin: 3px 0; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.05; text-transform: none; }
.competition-news p { margin: 0 0 8px; line-height: 1.4; }
.competition-news em { display: inline-block; padding: 4px 8px; border-radius: 4px; background: #e2e8f0; color: #0f172a; font-size: 11px; font-weight: 900; }
.competition-news .news-view-badge, .news-card .news-view-badge, .home-news-card .news-view-badge { position: absolute; right: 12px; bottom: 12px; display: inline-flex; background: rgba(0,0,0,.86); color: white; }
.division-stack { display: grid; gap: 12px; }
.division-stack a { display: grid; min-height: 72px; align-content: center; padding: 14px 16px; border-radius: 7px; background: var(--primary); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.division-stack a.active { outline: 3px solid color-mix(in srgb, var(--accent) 60%, white); outline-offset: 3px; }
.division-stack strong { font-family: var(--font-heading); font-size: 22px; line-height: 1; text-transform: uppercase; }
.division-stack span { opacity: .78; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.entity-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.entity-list-row span { min-width: 0; font-weight: 800; }
.entity-list-row small { font-weight: 600; }
.match-hero { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: 24px; align-items: center; padding: 64px var(--site-inline); color: #0f172a; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--surface) 76%, white)); border-bottom: 1px solid #e2e8f0; }
.match-hero h1 { font-size: clamp(calc(34px * var(--font-scale, 1)), 5.2vw, calc(60px * var(--font-scale, 1))); }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 22px; border-radius: 8px; background: #f8fafc; border: 1px solid #d8dee8; }
.scoreboard strong { font-family: var(--font-heading); font-size: calc(34px * var(--font-scale, 1)); color: #0f172a; }
.scoreboard .match-scoreline { grid-column: 1 / -1; }
.scoreboard .match-scoreline strong { font-size: 34px; }
.content-band, .form-shell { width: min(1120px, calc(100% - (var(--site-gutter) * 2))); margin: 32px auto 70px; }
.competition-layout.content-band { width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2))); }
.calendar-leg-heading { margin: 8px 0 -4px; padding: 10px 14px; border-radius: 7px; background: #0f172a; color: #fff; font-family: var(--font-heading); font-size: 18px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.calendar-admin-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.public-calendar-admin-panel { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid #bfdbfe; background: #eff6ff; }
.calendar-admin-round-form { display: grid; gap: 10px; }
.calendar-admin-round-form > .btn { justify-self: end; }
.calendar-admin-match-form { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(150px, 1fr)) auto; gap: 10px; align-items: end; padding: 10px; border: 1px solid #d8dee8; border-radius: 8px; background: #fff; }
.calendar-admin-match-form.is-result-form { grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(110px, .7fr)) auto; }
.calendar-admin-match-form strong { align-self: center; font-size: 13px; }
.calendar-admin-match-form label { display: grid; gap: 5px; color: #475569; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.match-detail-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 18px; align-items: start; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.entity-hero { display: flex; align-items: center; gap: 22px; }
.entity-hero .crest, .entity-hero .avatar { width: 86px; height: 86px; font-size: 34px; }
.stat-strip { display: flex; align-items: center; justify-content: space-around; gap: 16px; }
.stat-strip strong { display: grid; gap: 4px; font-family: var(--font-heading); font-size: 34px; color: #0f172a; text-align: center; }
.stat-strip span { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; color: #64748b; }
.match-observations { grid-column: 1 / -1; }
.timeline-event { display: grid; grid-template-columns: 44px 34px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.timeline-event time { font-weight: 900; color: var(--primary); }
.mvp-match-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; }
.mvp-match-card > strong { color: #1d4ed8; font-family: var(--font-heading); font-size: 15px; text-transform: uppercase; }
.mvp-match-card small { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.mvp-report-block { border-color: #bfdbfe; background: #eff6ff; }
.mvp-report-block small { margin-top: -8px; }
.lineup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lineup-grid h3 { margin-bottom: 10px; font-family: var(--font-heading); text-transform: uppercase; }
.lineup-grid p { margin: 8px 0; }
.ranking-list, .media-grid, .admin-grid, .settings-grid, .metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ranking-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.media-grid article { min-height: 190px; border-radius: 8px; background: url('/assets/img/f7sevilla-reference.png') center / cover; position: relative; overflow: hidden; }
.media-grid article span { position: absolute; left: 12px; right: 12px; bottom: 12px; color: white; font-family: var(--font-heading); font-weight: 900; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.media-strip { margin-top: 32px; }
.news-card { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; gap: 6px 18px; align-items: start; position: relative; }
.news-card.has-image { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
.news-card > span { position: relative; grid-row: 1 / span 3; display: block; width: 100%; min-height: 190px; border-radius: 7px; background: #dbeafe center / cover; overflow: hidden; }
.news-card small { align-self: end; }
.news-card h2 { align-self: start; font-size: clamp(22px, 3vw, 32px); line-height: 1.05; text-transform: none; }
.news-card p { margin: 0; line-height: 1.45; }
.news-hero { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; gap: 30px; padding: 54px var(--site-inline); color: #0f172a; background: white; border-bottom: 1px solid #e2e8f0; }
.news-hero.has-image { grid-template-columns: minmax(340px, 620px) minmax(320px, 560px); align-items: center; }
.news-hero img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 8px; border: 1px solid #d8dee8; }
.news-hero h1 { max-width: 720px; font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.news-hero p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; font-size: 18px; line-height: 1.45; }
.news-meta-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.news-meta-line span + span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 10px; border-radius: 999px; background: currentColor; vertical-align: middle; opacity: .68; }
.article-body { max-width: 860px; font-size: calc(18px * var(--font-scale, 1)); line-height: 1.7; }
.youtube-embed { width: 100%; aspect-ratio: 16 / 9; margin: 18px 0; border-radius: 8px; overflow: hidden; background: #0f172a; }
.youtube-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.static-page-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; border: 1px solid #d8dee8; margin-bottom: 20px; }
.free-page-content > :first-child { margin-top: 0; }
.free-page-content > :last-child { margin-bottom: 0; }
.free-page-content a { color: #2f59a7; font-weight: 900; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.free-page-content figure { margin: 24px 0; }
.free-page-content figure img, .free-page-content p img { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 8px; border: 1px solid #d8dee8; background: #f8fafc; }
.free-page-content figcaption { margin-top: 8px; color: #64748b; font-size: calc(13px * var(--font-scale, 1)); font-weight: 700; text-align: center; }
.free-page-content ul, .free-page-content ol { padding-left: 24px; }
.sponsors-page { display: grid; gap: 22px; width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2))); }
.sponsor-page-copy { max-width: none; font-size: calc(16px * var(--font-scale, 1)); line-height: 1.58; }
.sponsor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.sponsor-card { display: grid; min-height: 240px; overflow: hidden; border: 1px solid #d8dee8; border-radius: 8px; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface) 48%, white)); box-shadow: 0 16px 36px rgba(15,23,42,.08); }
.sponsor-card-main { display: grid; align-content: center; justify-items: center; gap: 12px; min-height: 240px; padding: 28px; text-align: center; }
.sponsor-photo { display: block; min-height: 220px; border-radius: 8px; background: #dbeafe center / cover; border: 1px solid #e2e8f0; }
.sponsor-logo { width: min(320px, 78%); max-height: 128px; object-fit: contain; object-position: center; }
.sponsor-logo-fallback { color: #0f172a; font-family: var(--font-heading); font-size: calc(30px * var(--font-scale, 1)); line-height: 1; text-transform: uppercase; }
.sponsor-card h2 { color: #0f172a; font-size: calc(22px * var(--font-scale, 1)); text-transform: none; }
.sponsor-details { width: 100%; margin-top: 4px; }
.sponsor-details summary { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #0f172a; font-weight: 900; text-transform: uppercase; cursor: pointer; list-style: none; }
.sponsor-details summary::-webkit-details-marker { display: none; }
.sponsor-details summary:hover { border-color: #2f59a7; color: #2f59a7; }
.sponsor-detail-body { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e8f0; text-align: left; }
.sponsor-card p { margin: 0; color: #334155; line-height: 1.48; }
.sponsor-description { color: #334155; line-height: 1.5; }
.sponsor-description > :first-child { margin-top: 0; }
.sponsor-description > :last-child { margin-bottom: 0; }
.sponsor-description a { color: #2f59a7; font-weight: 900; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sponsor-description ul, .sponsor-description ol { margin: 8px 0 0; padding-left: 20px; }
.sponsor-card small { font-weight: 800; }
.site-footer { margin-top: 64px; padding: 40px var(--chrome-inline) 34px; background: linear-gradient(180deg, #071426, #03101f); color: #e5edf7; }
.site-footer-inner { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(220px, .8fr); gap: 26px 44px; max-width: var(--chrome-max-width); margin: 0 auto; }
.footer-brand { max-width: none; margin-bottom: 12px; color: #fff; }
.site-footer p { max-width: 520px; margin: 0; color: #aebdd0; line-height: 1.5; }
.footer-copy { max-width: 560px; color: #aebdd0; line-height: 1.5; }
.footer-copy > :first-child { margin-top: 0; }
.footer-copy > :last-child { margin-bottom: 0; }
.footer-copy a { color: #fff; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-content: start; justify-content: flex-end; }
.footer-links a { color: #e5edf7; font-family: var(--font-nav); font-size: calc(12px * var(--font-scale, 1)); font-weight: 900; text-transform: uppercase; }
.footer-links a:hover { color: #fff; }
.footer-sponsors { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px 30px; flex-wrap: wrap; padding-top: 18px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-sponsors a, .footer-sponsors span { display: inline-flex; align-items: center; min-height: 52px; }
.footer-sponsors img { max-width: 156px; max-height: 46px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .78; transition: opacity .18s ease; }
.footer-sponsors a:hover img { opacity: 1; }
.site-footer-inner > small { grid-column: 1 / -1; color: #8ea0b8; font-weight: 800; }
.editorial-form-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.editorial-edit-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.user-form-grid { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
.user-edit-grid { grid-template-columns: repeat(6, minmax(130px, 1fr)); }
select[multiple] { min-height: 96px; }
.delegate-team-card { display: grid; gap: 12px; }
.delegate-form-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; align-items: end; }
.delegate-form-grid .btn { width: 100%; }
.delegate-player-row { display: grid; grid-template-columns: 70px minmax(180px, 1.2fr) minmax(110px, .8fr) 120px minmax(150px, 1fr) minmax(120px, .8fr) 76px minmax(130px, 1fr) 86px 90px; gap: 8px; align-items: center; }
.delegate-player-row .entity-name input { min-width: 120px; }
.delegate-player-row + form { margin-top: 7px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.admin-toolbar p { margin: 0; color: #64748b; max-width: 720px; line-height: 1.45; }
.admin-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.locale-switch { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid #d7dee8; border-radius: 8px; background: #fff; }
.locale-switch a { min-width: 32px; padding: 6px 8px; border-radius: 6px; color: #64748b; font-weight: 900; font-size: 11px; text-align: center; text-decoration: none; }
.locale-switch a.active { background: #10243b; color: #fff; }
.locale-manager { display: grid; gap: 10px; }
.locale-manager h2 { margin-top: 0; }
.locale-manager-row { display: grid; grid-template-columns: minmax(90px, .45fr) minmax(160px, 1fr) 110px; gap: 10px; align-items: end; }
.check-label { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.check-label input { width: 18px; height: 18px; }
.admin-create-panel[hidden], .admin-edit-panel[hidden] { display: none; }
.admin-create-panel { margin-bottom: 18px; }
.admin-record-list { display: grid; gap: 14px; }
.admin-record-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); overflow: hidden; }
.admin-record-summary { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(180px, .8fr) auto; gap: 16px; align-items: center; padding: 16px; }
.admin-record-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-record-title h2 { margin: 0; color: #1e293b; font-family: var(--font-heading); font-size: 16px; text-transform: none; }
.admin-record-title small { margin-top: 3px; }
.admin-record-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #64748b; font-size: 12px; font-weight: 700; }
.admin-record-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.admin-edit-panel { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 16px; }
.admin-edit-panel .admin-form-grid, .admin-edit-panel .edit-row-main { margin: 0; box-shadow: none; }
.icon-edit { min-width: 38px; padding-inline: 0; text-align: center; }
.admin-thumb { width: 58px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid #e2e8f0; background: #f8fafc; flex: 0 0 auto; }
.admin-news-views { display: grid; place-items: center; width: 68px; min-height: 44px; flex: 0 0 68px; border-radius: 8px; background: #050505; color: #fff; font-family: var(--font-heading); font-size: 18px; font-weight: 900; line-height: 1; text-align: center; }
.admin-news-views small { margin-top: 3px; color: rgba(255,255,255,.82); font-family: var(--font-body); font-size: 9px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.admin-news-thumb { position: relative; display: block; width: 58px; height: 44px; flex: 0 0 58px; border-radius: 8px; background: #111827; overflow: hidden; }
.admin-news-thumb .admin-thumb { width: 100%; height: 100%; border: 0; border-radius: 0; }
.admin-news-thumb.no-image { background: linear-gradient(135deg, #111827, #334155); }
.record-score { font-family: var(--font-heading); font-size: 20px; color: #1e293b; font-weight: 800; }
.sponsor-settings-panel { margin-bottom: 18px; }
.sponsor-admin-card .admin-record-summary { grid-template-columns: minmax(260px, 1.1fr) minmax(260px, .9fr) auto; }
.sponsor-admin-logo { object-fit: contain; background: white; }
.sponsor-admin-preview { display: grid; grid-template-columns: minmax(0, 820px); gap: 16px; padding: 0 16px 16px; }
.sponsor-admin-preview.has-media { grid-template-columns: 180px minmax(0, 820px); }
.sponsor-admin-preview > span { display: block; min-height: 112px; border-radius: 8px; background: #dbeafe center / cover; border: 1px solid #e2e8f0; }
.sponsor-admin-preview > div { min-width: 0; max-width: 820px; }
.sponsor-admin-preview p { margin: 0; max-width: 760px; line-height: 1.55; }
.sponsor-file-field { display: grid; gap: 8px; }
.sponsor-current-media { display: grid; place-items: center; width: 100%; min-height: 94px; padding: 10px; border: 1px solid #d8dee8; border-radius: 8px; background: #fff; }
.sponsor-current-media img { max-width: 100%; max-height: 86px; object-fit: contain; }
.sponsor-current-media.cover { min-height: 150px; padding: 0; overflow: hidden; }
.sponsor-current-media.cover img { width: 100%; height: 150px; max-height: none; object-fit: cover; }
.sponsor-current-media em { color: #64748b; font-size: 12px; font-weight: 800; font-style: normal; }
.page-image-library { display: grid; gap: 12px; max-width: 760px; margin-top: 16px; padding: 16px; border: 1px solid #d8dee8; border-radius: 10px; background: #fff; }
.page-image-library h3 { margin: 0; font-family: var(--font-heading); font-size: 16px; text-transform: uppercase; }
.page-image-library p { margin: 2px 0 0; color: #64748b; line-height: 1.4; }
.page-image-item { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.page-image-item img { width: 132px; height: 86px; object-fit: contain; border-radius: 7px; border: 1px solid #e2e8f0; background: white; }
.page-image-item form { margin: 0; }
.page-image-snippet { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.wysiwyg-field { gap: 8px; }
.wysiwyg-editor { display: grid; gap: 0; border: 1px solid #cbd5e1; border-radius: 9px; overflow: hidden; background: #fff; }
.wysiwyg-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.wysiwyg-toolbar button { min-width: 34px; min-height: 32px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #0f172a; font-weight: 900; font-size: 12px; cursor: pointer; }
.wysiwyg-toolbar button:hover, .wysiwyg-toolbar button.active { border-color: #2f59a7; background: #eff6ff; color: #1d4ed8; }
.wysiwyg-surface { min-height: 300px; padding: 16px; background: #fff; color: #0f172a; font-weight: 500; line-height: 1.65; overflow: auto; }
.wysiwyg-surface:focus { outline: 0; box-shadow: inset 0 0 0 3px rgba(47,89,167,.12); }
.wysiwyg-surface:empty::before { content: 'Escribe el contenido de la pagina...'; color: #94a3b8; }
.wysiwyg-editor.is-source-mode { border: 0; overflow: visible; background: transparent; }
.wysiwyg-editor.is-source-mode .wysiwyg-toolbar { border: 1px solid #cbd5e1; border-radius: 9px 9px 0 0; }
.wysiwyg-editor.is-source-mode + textarea,
.wysiwyg-field textarea:not([hidden]) { min-height: 300px; border-radius: 0 0 9px 9px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.content-manager-form { display: grid; gap: 18px; max-width: 920px; }
.content-locale-card { display: grid; gap: 16px; padding: 18px; border: 1px solid #d8dee8; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.content-locale-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.content-locale-head h2 { font-size: 18px; }
.content-locale-head span { padding: 6px 10px; border-radius: 999px; background: #eff6ff; color: #2f59a7; font-size: 12px; font-weight: 900; }
.content-group { display: grid; gap: 13px; margin: 0; padding: 0; border: 0; }
.content-group + .content-group { padding-top: 16px; border-top: 1px solid #e2e8f0; }
.content-group legend { margin-bottom: 2px; color: #0f172a; font-family: var(--font-heading); font-size: 15px; font-weight: 900; text-transform: uppercase; }
.content-group label small { color: #64748b; font-weight: 700; line-height: 1.35; }
.home-block-manager { display: grid; gap: 12px; }
.home-block-manager > div { display: grid; gap: 5px; }
.home-block-manager > div > span { font-weight: 900; font-size: 13px; }
.home-block-manager small { color: #64748b; font-weight: 700; line-height: 1.35; }
.home-block-admin-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) 120px 92px 100px; gap: 10px; align-items: start; padding: 12px; border: 1px solid #d8dee8; border-radius: 8px; background: #f8fafc; }
.home-block-admin-row label:nth-child(5) { grid-column: 1 / -1; }
.home-block-admin-row label:nth-child(8) { grid-column: span 2; }
.home-block-admin-row.is-empty { border-style: dashed; }
.home-block-admin-row .wysiwyg-toolbar { padding: 6px; }
.home-block-admin-row .wysiwyg-toolbar button { min-height: 28px; min-width: 30px; font-size: 11px; }
.home-block-admin-row .wysiwyg-surface,
.home-block-admin-row textarea:not([hidden]) { min-height: 120px; font-size: 14px; }
html[data-theme="dark"] .admin-record-card { background: #111827; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .admin-record-title h2, html[data-theme="dark"] .record-score { color: #f8fafc; }
html[data-theme="dark"] .admin-thumb { border-color: rgba(255,255,255,.12); background: #0b1220; }
html[data-theme="dark"] .admin-edit-panel { background: #0b1220; border-color: rgba(255,255,255,.1); }
.wizard-card fieldset { border: 0; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
legend { font-weight: 900; margin-bottom: 12px; text-transform: uppercase; }
label { display: grid; gap: 7px; font-weight: 800; font-size: 13px; }
input, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; padding: 10px 11px; background: white; color: #0f172a; }
textarea { min-height: 110px; }
.form-error, .success-box { padding: 14px 16px; border-radius: 7px; margin-bottom: 16px; }
.form-error { background: #fee2e2; color: #991b1b; }
.success-box { background: #dcfce7; color: #166534; }
.login-page { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 40px 20px; background: #f8fafc; }
.login-card { width: min(420px, 100%); display: grid; gap: 16px; }
.admin-shell { display: grid; grid-template-columns: 238px 1fr; min-height: 100vh; background: #f5f7fb; font-size: var(--base-font-size); }
html[data-theme="dark"] .admin-shell { background: #06111f; color: #f8fafc; }
.admin-sidebar { background: #071426; color: white; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.admin-sidebar a, .admin-sidebar button { padding: 9px 10px; border-radius: 7px; color: white; background: transparent; border: 0; text-align: left; cursor: pointer; font-weight: 800; text-transform: uppercase; font-size: 12px; }
.admin-sidebar a:hover, .admin-sidebar button:hover { background: rgba(255,255,255,.08); }
.admin-brand { margin-bottom: 18px; }
.admin-main { padding: 22px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 13px; }
.admin-section h1 { color: #0f172a; font-size: calc(24px * var(--font-scale, 1)); text-transform: uppercase; margin-bottom: 14px; }
html[data-theme="dark"] .admin-section h1 { color: #f8fafc; }
.metric-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.metric-grid article { background: white; border-radius: 8px; padding: 16px; border: 1px solid #d8dee8; }
html[data-theme="dark"] .metric-grid article, html[data-theme="dark"] .admin-card, html[data-theme="dark"] .settings-grid { background: #0b1a2d; color: #f8fafc; border-color: rgba(255,255,255,.12); }
.metric-grid strong { display: block; font-size: 28px; line-height: 1; }
.settings-grid { grid-template-columns: 1fr; background: white; padding: 18px; border-radius: 8px; border: 1px solid #d8dee8; }
.settings-wide { grid-column: 1 / -1; }
.admin-form-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; background: white; padding: 14px; border: 1px solid #d8dee8; border-radius: 8px; margin-bottom: 16px; align-items: end; }
.admin-form-grid .btn { width: 100%; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check-row input, td input[type="checkbox"] { width: auto; }
.table-action { border: 1px solid #cbd5e1; background: #f8fafc; color: #0f172a; border-radius: 7px; padding: 8px 11px; font-weight: 800; cursor: pointer; font-size: 12px; text-transform: uppercase; }
.table-action.danger { border-color: #fecaca; background: #fee2e2; color: #991b1b; }
td input, td select { min-width: 130px; padding: 9px; }
.edit-list { display: grid; gap: 12px; }
.edit-row { display: flex; gap: 12px; align-items: end; background: white; border: 1px solid #d8dee8; border-radius: 8px; padding: 12px; }
.edit-row-main { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 12px; align-items: end; flex: 1; }
.team-edit-grid, .player-edit-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.match-form-grid { grid-template-columns: repeat(5, minmax(130px, 1fr)); }
.match-edit-grid { grid-template-columns: minmax(180px, .9fr) repeat(5, minmax(124px, 1fr)); }
.match-admin-summary { display: grid; gap: 5px; align-self: stretch; padding: 9px 10px; border-radius: 7px; background: #f8fafc; border: 1px solid #e2e8f0; }
.match-admin-summary strong { font-family: var(--font-heading); text-transform: uppercase; font-size: 13px; }
.match-admin-summary span { color: #475569; }
.match-admin-summary .entity-name { color: #0f172a; font-weight: 800; }
.report-row, .referee-match-card { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(260px, 1.1fr) minmax(140px, .7fr) auto; align-items: center; gap: 14px; }
.report-teams { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-review { display: grid; gap: 5px; }
.report-event-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.report-event-list span { padding: 5px 7px; border-radius: 6px; background: #f1f5f9; color: #0f172a; font-size: 12px; font-weight: 800; }
.report-headline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.referee-report-form { display: grid; gap: 18px; }
.report-score-fields { max-width: 520px; grid-template-columns: repeat(2, minmax(150px, 1fr)) !important; }
.report-score-fields label { display: grid; gap: 8px; align-items: start; }
.report-score-fields label > span { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; color: #334155; font-size: 13px; font-weight: 900; }
.report-score-fields .score-input { width: 88px; min-width: 88px; max-width: 88px; text-align: center; font-family: var(--font-heading); font-size: 26px; font-weight: 900; padding: 9px 8px; }
.event-table { display: grid; gap: 8px; }
.event-table-head, .event-row { display: grid; grid-template-columns: minmax(132px, .8fr) minmax(160px, .9fr) minmax(220px, 1.25fr) 76px minmax(160px, 1fr) minmax(160px, 1fr); gap: 8px; align-items: end; }
.event-table-head { color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.event-row { padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.event-row label { display: grid; gap: 5px; min-width: 0; }
.event-row label > span { color: #475569; font-size: 11px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.event-row input, .event-row select { min-width: 0; padding: 9px; }
.event-row .minute-input { text-align: center; font-weight: 900; }
.lineup-editor { display: grid; gap: 10px; margin: 22px 0; }
.lineup-editor-head, .lineup-editor-row { display: grid; grid-template-columns: minmax(190px, 1.5fr) 54px 54px 54px 70px 70px minmax(140px, 1fr); gap: 8px; align-items: center; }
.lineup-editor-head { color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.lineup-editor-row { padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.lineup-editor-row.is-sanctioned { opacity: .68; background: #fff7ed; border-color: #fed7aa; }
.lineup-editor-row label { display: flex; align-items: center; justify-content: center; gap: 0; font-size: 0; }
.lineup-editor-row label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.lineup-editor-row input[type="checkbox"] { width: 18px; height: 18px; }
.sanction-note { display: block; margin-top: 2px; color: #b45309; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.edit-row textarea { min-height: 44px; }
.entity-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.team-name { min-width: 0; overflow-wrap: anywhere; font-weight: 800; }
.team-name.home { text-align: right; }
.team-name.away { text-align: left; }
.match-scoreline, .match-score-badges { display: inline-grid; align-items: center; gap: 8px; }
.match-scoreline { width: 100%; grid-template-columns: minmax(0, 1fr) 24px auto 24px minmax(0, 1fr); }
.match-score-badges { grid-template-columns: 24px auto 24px; justify-content: center; }
.match-scoreline strong, .match-score-badges strong { font-family: var(--font-heading); font-weight: 900; white-space: nowrap; color: #0f172a; }
.crest, .avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid rgba(148,163,184,.45); background: #e2e8f0; color: #0f172a; }
.crest { border-radius: 0; object-fit: contain; object-position: center; border-color: transparent; background: transparent; }
.crest.fallback, .avatar.fallback { display: inline-grid; place-items: center; background: transparent; color: var(--primary); border-color: transparent; }
.crest.fallback svg, .avatar.fallback svg { width: 82%; height: 82%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ranking-row .avatar { width: 34px; height: 34px; }
.match-row .crest, .result-row .crest { width: 22px; height: 22px; }
html[data-theme="dark"] .crest.fallback, html[data-theme="dark"] .avatar.fallback { background: transparent; color: #dbeafe; border-color: transparent; }
.calendar-match-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 210px; }
.calendar-match-actions .table-action { padding: 7px 9px; font-size: 11px; white-space: nowrap; }
.match-participation-form, .match-signature-card { display: grid; gap: 18px; }
.callup-team-block { display: grid; gap: 12px; }
.callup-team-block legend { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 900; }
.callup-player-list { display: grid; gap: 8px; }
.callup-player { display: grid; grid-template-columns: 24px 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; }
.callup-player input { width: 18px; height: 18px; }
.callup-player strong, .summary-line strong { display: block; }
.callup-player small, .summary-line small { display: block; color: #64748b; }
.callup-player.is-sanctioned { opacity: .68; background: #fff7ed; border-color: #fed7aa; }
.signature-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.summary-line { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.signature-observations, .existing-signatures { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.signature-form { display: grid; gap: 14px; }
.signature-canvas { width: 100%; height: 220px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; touch-action: none; }
html[data-theme="dark"] .callup-player { background: #0b1220; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .callup-player small, html[data-theme="dark"] .summary-line small { color: #cbd5e1; }
html[data-theme="dark"] .signature-canvas { background: #f8fafc; border-color: rgba(255,255,255,.16); }
.image-cropper { grid-column: 1 / -1; display: grid; grid-template-columns: 180px minmax(180px, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid #d8dee8; border-radius: 8px; background: #f8fafc; }
.image-cropper[hidden] { display: none; }
.image-crop-stage { width: 180px; aspect-ratio: 1; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 8px; background: #0f172a; cursor: grab; touch-action: none; }
.image-crop-stage:active { cursor: grabbing; }
.image-crop-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; pointer-events: none; transform-origin: center; }
.image-crop-controls { display: grid; gap: 8px; }
.image-crop-controls small { color: #64748b; }
html[data-theme="dark"] .image-cropper { background: #0b1220; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .image-crop-stage { border-color: rgba(255,255,255,.16); }
html[data-theme="dark"] select, html[data-theme="dark"] .admin-form-grid { background: #0b1a2d; color: #f8fafc; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .topbar { background: linear-gradient(180deg, rgba(6,17,31,.98), color-mix(in srgb, var(--secondary) 76%, #06111f)); color: #f8fafc; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .nav-dropdown-menu { background: #0b1a2d; border-color: rgba(255,255,255,.12); box-shadow: 0 18px 36px rgba(0,0,0,.28); }
html[data-theme="dark"] .nav-dropdown-menu a { color: #f8fafc; }
html[data-theme="dark"] .nav-dropdown-menu a:hover { background: #10233a; }
html[data-theme="dark"] .nav-competition-children { background: #0b1a2d; border-color: rgba(255,255,255,.12); box-shadow: 0 18px 36px rgba(0,0,0,.28); }
html[data-theme="dark"] .nav-competition-children small { color: #cbd5e1; }
html[data-theme="dark"] .mobile-menu-toggle { background: #0b1220; color: #f8fafc; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .public-date { color: #cbd5e1; }
html[data-theme="dark"] .icon-button { background: #0b1a2d; border-color: rgba(255,255,255,.18); }
html[data-theme="dark"] .hero, html[data-theme="dark"] .page-hero, html[data-theme="dark"] .competition-hero, html[data-theme="dark"] .match-hero, html[data-theme="dark"] .news-hero { background: linear-gradient(135deg, #06111f 0%, color-mix(in srgb, var(--secondary) 72%, #06111f) 68%, color-mix(in srgb, var(--accent) 16%, #06111f) 100%); color: #f8fafc; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .competition-kpis span { background: rgba(11,26,45,.72); color: #cbd5e1; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .competition-kpis strong { color: #f8fafc; }
html[data-theme="dark"] .competition-menu { background: linear-gradient(180deg, rgba(6,17,31,.98), color-mix(in srgb, var(--secondary) 72%, #06111f)); border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .competition-menu a { color: #cbd5e1; }
html[data-theme="dark"] .competition-menu a:hover, html[data-theme="dark"] .competition-menu a.active, html[data-theme="dark"] .ranking-tabs a, html[data-theme="dark"] .ranking-tabs button { background: #10233a; color: #f8fafc; }
html[data-theme="dark"] .competition-news, html[data-theme="dark"] .entity-list-row { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .competition-news em { background: #10233a; color: #f8fafc; }
html[data-theme="dark"] .news-view-badge { background: rgba(0,0,0,.9); color: #fff; }
html[data-theme="dark"] .eyebrow { color: #93c5fd; }
html[data-theme="dark"] .results-panel, html[data-theme="dark"] .season-panel, html[data-theme="dark"] .competition-band { background: linear-gradient(180deg, #0b1a2d, color-mix(in srgb, var(--secondary) 68%, #0b1a2d)); color: #f8fafc; border-color: rgba(255,255,255,.12); box-shadow: 0 18px 38px rgba(0,0,0,.22); }
html[data-theme="dark"] .home-feature-banner { background: linear-gradient(135deg, #020617 0 12%, color-mix(in srgb, var(--primary) 86%, #020617) 12% 100%); }
html[data-theme="dark"] .home-block-copy h2 { background: linear-gradient(180deg, #111827, #0b1220); color: #f8fafc; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .home-news-card,
html[data-theme="dark"] .home-standing-card { background: linear-gradient(180deg, #0b1a2d, color-mix(in srgb, var(--secondary) 68%, #0b1a2d)); color: #f8fafc; border-color: rgba(255,255,255,.12); box-shadow: 0 18px 38px rgba(0,0,0,.22); }
html[data-theme="dark"] .home-news-card h2 { color: #f8fafc; }
html[data-theme="dark"] .home-block-admin-row { background: #0b1220; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .sponsor-card { background: linear-gradient(180deg, #0b1a2d, color-mix(in srgb, var(--secondary) 68%, #0b1a2d)); border-color: rgba(255,255,255,.12); box-shadow: 0 18px 38px rgba(0,0,0,.22); }
html[data-theme="dark"] .sponsor-card h2, html[data-theme="dark"] .sponsor-logo-fallback { color: #f8fafc; }
html[data-theme="dark"] .sponsor-card p, html[data-theme="dark"] .sponsor-description { color: #cbd5e1; }
html[data-theme="dark"] .sponsor-description a { color: #93c5fd; }
html[data-theme="dark"] .sponsor-details summary { background: #10233a; border-color: rgba(255,255,255,.14); color: #f8fafc; }
html[data-theme="dark"] .sponsor-detail-body { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .free-page-content a { color: #93c5fd; }
html[data-theme="dark"] .free-page-content figure img, html[data-theme="dark"] .free-page-content p img { background: #06111f; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .page-image-library { background: #0b1a2d; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .page-image-item { background: #0b1220; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .page-image-item img { background: #06111f; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .wysiwyg-editor { background: #0b1220; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .wysiwyg-toolbar { background: #111827; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .wysiwyg-toolbar button { background: #0b1220; color: #f8fafc; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .wysiwyg-toolbar button:hover,
html[data-theme="dark"] .wysiwyg-toolbar button.active { background: #10233a; border-color: #60a5fa; color: #bfdbfe; }
html[data-theme="dark"] .wysiwyg-surface { background: #0b1220; color: #f8fafc; }
html[data-theme="dark"] .content-locale-card { background: #111827; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .content-locale-head, html[data-theme="dark"] .content-group + .content-group { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .content-locale-head h2, html[data-theme="dark"] .content-group legend { color: #f8fafc; }
html[data-theme="dark"] .content-locale-head span { background: #10233a; color: #dbeafe; }
html[data-theme="dark"] .calendar-proposal-head, html[data-theme="dark"] .calendar-round-date-row { background: #111827; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .calendar-proposal-head strong { color: #f8fafc; }
html[data-theme="dark"] .calendar-round-dates { background: #0b1220; border-color: rgba(255,255,255,.16); }
html[data-theme="dark"] .competition-card, html[data-theme="dark"] .scoreboard { background: linear-gradient(145deg, #10233a, color-mix(in srgb, var(--accent) 10%, #10233a)); color: #f8fafc; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .stat-strip strong { color: #f8fafc; }
html[data-theme="dark"] .competition-card small, html[data-theme="dark"] .competition-card p, html[data-theme="dark"] .result-row small, html[data-theme="dark"] .match-row time { color: #cbd5e1; }
html[data-theme="dark"] .scoreboard strong { color: #f8fafc; }
html[data-theme="dark"] .btn.secondary, html[data-theme="dark"] .btn.compact { background: #0b1a2d; color: #f8fafc; border-color: rgba(255,255,255,.18); }
html[data-theme="dark"] .edit-row { background: linear-gradient(180deg, #0b1a2d, #0b1220); color: #f8fafc; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .match-admin-summary { background: #10233a; color: #f8fafc; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .match-admin-summary span, html[data-theme="dark"] .match-admin-summary .entity-name { color: #f8fafc; }
html[data-theme="dark"] .timeline-event { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .mvp-match-card, html[data-theme="dark"] .mvp-report-block { background: #10233a; border-color: rgba(96,165,250,.36); }
html[data-theme="dark"] .mvp-match-card > strong { color: #dbeafe; }
html[data-theme="dark"] .report-event-list span { background: #10233a; color: #f8fafc; }
html[data-theme="dark"] .table-action { background: #10233a; color: #f8fafc; border-color: rgba(255,255,255,.14); }

/* Admin redesign inspired by Liga7track reference */
.admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, white), #f8fafc 360px); color: #1e293b; font-family: var(--font-body); font-size: 14px; }
.admin-mobile-bar { display: none; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #1a1f2c; color: #cbd5e1; padding: 0; gap: 0; border-right: 1px solid #0f172a; }
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #475569; border-radius: 999px; }
.admin-brand { min-height: 76px; padding: 18px 22px; margin: 0; border-bottom: 1px solid rgba(148,163,184,.14); color: white; gap: 12px; }
.admin-brand .brand-mark { min-width: 62px; height: 42px; border: 2px solid var(--primary); border-radius: 7px; background: #2f59a7; font-size: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.admin-brand .brand-mark.has-logo { background: transparent; border-color: transparent; }
.admin-profile { display: flex; align-items: center; gap: 12px; margin: 16px; padding: 12px; border: 1px solid rgba(148,163,184,.18); border-radius: 12px; background: rgba(15,23,42,.48); }
.admin-profile > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2f59a7; color: white; font-family: var(--font-heading); font-weight: 800; border: 2px solid rgba(255,255,255,.12); }
.admin-profile strong { display: block; color: white; font-size: 13px; line-height: 1.2; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile small { color: #60a5fa; font-size: 11px; text-transform: uppercase; font-weight: 700; }
.admin-nav { display: grid; gap: 3px; padding: 0 14px 18px; }
.admin-nav p { margin: 16px 8px 5px; color: #64748b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.admin-nav a, .admin-sidebar-footer a, .admin-sidebar-footer button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border-radius: 9px; color: #cbd5e1; background: transparent; border: 0; text-align: left; font-size: 13px; font-weight: 600; text-transform: none; cursor: pointer; }
.admin-nav a span, .admin-sidebar-footer span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(148,163,184,.12); color: #e2e8f0; font-size: 10px; font-family: var(--font-heading); font-weight: 800; }
.admin-nav a:hover, .admin-sidebar-footer a:hover, .admin-sidebar-footer button:hover { background: rgba(148,163,184,.12); color: white; }
.admin-nav a.active { background: #2f59a7; color: white; box-shadow: 0 10px 24px rgba(47,89,167,.26); }
.admin-nav a.active span { background: rgba(255,255,255,.18); color: white; }
.admin-sidebar-footer { margin-top: auto; padding: 14px; border-top: 1px solid rgba(148,163,184,.14); }
.admin-sidebar-footer form { margin: 0; }
.admin-main { min-width: 0; padding: 0; background: transparent; }
.admin-top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 0 30px; margin: 0; background: linear-gradient(180deg, rgba(255,255,255,.98), color-mix(in srgb, var(--surface) 70%, white)); border-bottom: 1px solid #e2e8f0; backdrop-filter: blur(12px); }
.admin-top h1 { margin: 0; color: #1e293b; font-size: 24px; font-family: var(--font-heading); font-weight: 800; text-transform: none; }
.admin-top span { color: #64748b; font-size: 13px; }
.admin-top-actions { display: flex; align-items: center; gap: 12px; }
.admin-section { padding: 28px 30px 42px; }
.admin-section > h1 { display: none; }
.metric-grid { grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 22px; margin-bottom: 26px; }
.metric-grid article, .admin-card, .admin-form-grid, .edit-row, .settings-grid, .table-card { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface) 50%, white)); border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.metric-grid article { position: relative; display: grid; gap: 6px; padding: 22px; overflow: hidden; }
.metric-grid article:before { content: ""; width: 48px; height: 48px; border-radius: 50%; background: #dbeafe; position: absolute; right: 18px; top: 18px; }
.metric-grid article:nth-child(3):after { content: ""; position: absolute; right: 0; top: 0; width: 4px; height: 100%; background: var(--primary); }
.metric-grid strong { color: #1e293b; font-size: 30px; font-family: var(--font-heading); font-weight: 800; }
.metric-grid span { color: #64748b; font-size: 13px; font-weight: 600; }
.admin-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 22px; }
.admin-card { padding: 22px; }
.admin-card h2, .light-card h2, .table-card h2, .wizard-card h2 { color: #1e293b; font-size: 16px; font-family: var(--font-heading); text-transform: none; }
.admin-card p { color: #64748b; line-height: 1.5; }
.admin-card a { color: #2f59a7; font-weight: 800; font-size: 13px; }
.admin-form-grid { padding: 18px; gap: 14px; margin-bottom: 18px; align-items: end; }
.edit-list { gap: 14px; }
.edit-row { align-items: flex-start; padding: 14px; }
.edit-row-main { gap: 12px; }
.admin-fieldset { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px; border: 1px solid #d8dee8; border-radius: 8px; }
.admin-fieldset legend { padding: 0 6px; font-size: 12px; font-weight: 900; color: #334155; }
.team-color-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.color-palette-field { display: grid; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #d8dee8; border-radius: 8px; background: #f8fafc; }
.color-palette-field legend { padding: 0 6px; font-size: 12px; font-weight: 900; color: #334155; }
.color-picker-current { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border: 1px solid #d8dee8; border-radius: 8px; background: #fff; }
.color-picker-current span { width: 24px; height: 24px; border-radius: 999px; background: var(--swatch); border: 1px solid var(--swatch-border); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); flex: 0 0 auto; }
.color-picker-current strong { min-width: 0; overflow: hidden; color: #1e293b; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.team-color-palette { display: grid; grid-template-columns: repeat(8, 28px); gap: 7px; align-items: center; }
.team-color-palette label { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 999px; background: transparent; cursor: pointer; }
.team-color-palette input { position: absolute; opacity: 0; pointer-events: none; }
.team-color-palette span, .team-color-summary span { width: 20px; height: 20px; border-radius: 999px; background: var(--swatch); border: 1px solid var(--swatch-border); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.team-color-palette label:has(input:checked) { border-color: #2f59a7; background: #eff6ff; box-shadow: 0 0 0 3px rgba(47,89,167,.12); }
.team-color-summary { display: inline-flex; align-items: center; gap: 6px; }
.settings-color-picker { display: grid; gap: 10px; padding: 12px; border: 1px solid #d8dee8; border-radius: 8px; background: #f8fafc; }
.settings-color-picker legend { padding: 0 6px; color: #334155; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.settings-color-picker .color-picker-current { grid-template-columns: auto minmax(0, 1fr) auto; }
.settings-color-picker input[type="color"] { width: 34px; height: 34px; padding: 2px; border-radius: 8px; cursor: pointer; }
.settings-color-palette { display: grid; grid-template-columns: repeat(6, 28px); gap: 7px; align-items: center; }
.settings-color-palette button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--swatch-border); border-radius: 999px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); cursor: pointer; }
.settings-color-palette button.is-selected { outline: 3px solid rgba(47,89,167,.16); border-color: #2f59a7; transform: scale(1.04); }
.settings-color-hex { gap: 6px; }
.settings-color-hex input { max-width: 140px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.settings-brand-preview { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 14px 16px; border: 1px solid #d8dee8; border-radius: 8px; background: #f8fafc; }
.settings-brand-preview .settings-brand-mark { width: 180px; min-width: 180px; height: 68px; padding: 8px; font-size: 24px; }
.settings-brand-preview span:last-child { color: #64748b; font-weight: 800; }
.assignment-pill { padding: 6px 10px; border-radius: 999px; background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; font-weight: 800; }
.assignment-pill.is-empty { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.team-grouped-view { display: grid; gap: 18px; }
.team-group-section { display: grid; gap: 10px; padding: 16px; border: 1px solid #d8dee8; border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(15,23,42,.05); }
.team-group-list { display: grid; gap: 8px; }
.team-division-groups { display: grid; gap: 12px; }
.team-division-group { display: grid; gap: 4px; padding: 10px 12px 12px; border: 1px solid #edf2f7; border-radius: 9px; background: #f8fafc; }
.team-division-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 6px; }
.team-division-head strong { color: #1e293b; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.team-division-head span { color: #64748b; font-size: 12px; font-weight: 800; }
.team-group-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, .8fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #edf2f7; }
.team-group-row:first-child { border-top: 0; }
.team-group-row small { font-weight: 800; }
.assignment-warning { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #9a3412; font-weight: 800; }
.assignment-check-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.assignment-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px; border: 1px solid #d8dee8; border-radius: 9px; background: #fff; }
.assignment-check input { margin-top: 2px; }
.assignment-check strong { display: block; font-size: 13px; }
.assignment-check small { margin-top: 3px; font-weight: 700; }
.assignment-check.is-assigned { border-color: #93c5fd; background: #eff6ff; }
.assignment-check.is-locked { border-color: #fed7aa; background: #fff7ed; }
.team-social-fields { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.team-social-fields label { position: relative; }
.social-field-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 6px; background: #eff6ff; color: #2f59a7; font-size: 12px; font-weight: 900; vertical-align: middle; }
.admin-modal { width: min(760px, calc(100vw - 32px)); max-height: min(820px, calc(100vh - 40px)); padding: 0; border: 1px solid #d8dee8; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 28px 80px rgba(15,23,42,.28); overflow: auto; }
.admin-modal::backdrop { background: rgba(15,23,42,.52); backdrop-filter: blur(3px); }
.modal-close-form { position: sticky; top: 12px; z-index: 2; display: flex; justify-content: flex-end; height: 0; padding-right: 12px; }
.modal-close-form .icon-button { margin-top: 0; background: #fff; }
.modal-head { padding: 22px 24px 14px; border-bottom: 1px solid #e2e8f0; }
.modal-head h2 { margin: 0; color: #1e293b; font-size: 22px; }
.modal-head p { margin: 4px 0 0; color: #64748b; font-weight: 700; }
.modal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 24px 24px; }
.modal-form > label:first-child, .modal-current-list, .modal-actions { grid-column: 1 / -1; }
.modal-current-list { display: grid; gap: 8px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.modal-current-list strong { color: #334155; font-size: 12px; text-transform: uppercase; }
.modal-current-list span { color: #475569; font-weight: 700; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.roster-modal { width: min(920px, calc(100vw - 32px)); }
.roster-list { display: grid; gap: 8px; padding: 18px 24px 0; }
.roster-player { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf2f7; }
.roster-player span { min-width: 0; }
.roster-player strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-player em { color: #64748b; font-size: 12px; font-weight: 800; }
.roster-create-form { border-top: 1px solid #e2e8f0; margin-top: 18px; }
.team-roster-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.team-roster-summary article { padding: 14px 16px; border: 1px solid #d8dee8; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.04); }
.team-roster-summary strong { display: block; color: #1e293b; font-size: 24px; font-weight: 900; line-height: 1; }
.team-roster-summary span { margin-top: 5px; color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.team-roster-assignments { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.team-roster-list { margin-top: 18px; }
.team-edit-hero { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 18px; padding: 18px; border: 1px solid #d8dee8; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.06); }
.team-edit-crest { display: grid; place-items: center; width: 96px; height: 96px; }
.team-edit-crest .crest { width: 76px; height: 76px; font-size: 54px; }
.team-edit-hero h1 { margin: 10px 0 8px; color: #0f172a; font-size: 34px; line-height: 1; }
.team-edit-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.team-edit-tags > span:not(.badge):not(.assignment-pill) { padding: 6px 10px; border: 1px solid #d8dee8; border-radius: 999px; background: #f8fafc; color: #475569; font-size: 12px; font-weight: 800; }
.team-edit-actions { display: flex; gap: 8px; justify-content: flex-end; }
.team-profile-form { display: grid; gap: 16px; }
.team-profile-block { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 20px; align-items: start; padding: 18px; border: 1px solid #d8dee8; border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(15,23,42,.04); }
.team-profile-block-head h2 { margin: 0 0 5px; color: #1e293b; font-size: 18px; line-height: 1.1; }
.team-profile-block-head p { margin: 0; color: #64748b; font-size: 13px; font-weight: 700; line-height: 1.35; }
.team-profile-row { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; align-items: start; }
.team-profile-block .team-color-fields { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px; }
.team-profile-block textarea { min-height: 130px; }
.team-profile-save { display: flex; justify-content: flex-end; padding-bottom: 10px; }
.color-chip-large { display: block; width: 44px; height: 44px; border-radius: 8px; background: var(--swatch); border: 1px solid var(--swatch-border); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.empty-swatch { background: linear-gradient(135deg, transparent calc(50% - 1px), #ef4444 50%, transparent calc(50% + 1px)), #fff !important; }
.team-kits-block .team-profile-block-head { align-self: start; }
.team-kits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.team-kit-card { display: grid; gap: 14px; min-width: 0; padding: 14px; border: 1px solid #d8dee8; border-radius: 10px; background: #f8fafc; }
.team-kit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-kit-head h3 { margin: 0; color: #0f172a; font-family: var(--font-heading); font-size: 16px; text-transform: uppercase; }
.team-kit-head span { color: #64748b; font-size: 12px; font-weight: 900; }
.team-kit-colors { display: grid; grid-template-columns: 1fr; gap: 10px; }
.team-kit-card .color-palette-field { padding: 10px; background: #fff; }
.team-kit-card .team-color-palette { grid-template-columns: repeat(9, 28px); }
.team-kit-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kit-image-field { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; color: #334155; font-size: 12px; font-weight: 900; }
.kit-image-field img { width: 100%; height: 86px; object-fit: contain; border-radius: 7px; background: #f8fafc; border: 1px solid #e2e8f0; }
.kit-image-field input { font-size: 12px; }
.team-kits-public .team-kits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-kit-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.team-kit-samples span { display: grid; place-items: center; min-height: 94px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.team-kit-samples img { max-width: 100%; max-height: 88px; object-fit: contain; }
.team-kit-color-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.team-kit-color-summary span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #334155; font-size: 12px; font-weight: 800; }
.team-kit-color-summary i { width: 16px; height: 16px; border-radius: 999px; background: var(--swatch); border: 1px solid var(--swatch-border); }
.task-board { display: grid; gap: 16px; }
.task-card { --task-color: #2563eb; display: grid; gap: 14px; padding: 18px; border: 1px solid #d8dee8; border-left: 5px solid var(--task-color); border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.06); }
.task-card.priority-low { --task-color: #16a34a; }
.task-card.priority-medium { --task-color: #d97706; }
.task-card.priority-high { --task-color: #dc2626; }
.task-card.status-done { opacity: .82; }
.task-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.task-card-head h2 { margin: 4px 0 0; color: #0f172a; font-size: 22px; line-height: 1.1; }
.task-meta { color: #64748b; font-size: 12px; font-weight: 800; }
.task-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.task-priority, .task-status { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.task-priority { background: color-mix(in srgb, var(--task-color) 12%, #fff); color: var(--task-color); border: 1px solid color-mix(in srgb, var(--task-color) 32%, #fff); }
.task-status { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.task-status-form select { min-height: 30px; padding: 5px 28px 5px 10px; border-radius: 999px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 900; }
.status-not_started .task-status { background: #f8fafc; color: #475569; border-color: #d8dee8; }
.status-not_started .task-status-form select { background: #f8fafc; color: #475569; border-color: #d8dee8; }
.status-in_progress .task-status { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-in_progress .task-status-form select { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-done .task-status { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }
.status-done .task-status-form select { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }
.task-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.task-detail-panel { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid #edf2f7; }
.task-detail-panel[hidden] { display: none; }
.task-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.task-image-grid a { display: block; overflow: hidden; border: 1px solid #d8dee8; border-radius: 8px; background: #f8fafc; }
.task-image-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.task-notes { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid #edf2f7; }
.task-notes > strong { color: #334155; font-size: 12px; text-transform: uppercase; }
.task-note { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.task-note span { color: #64748b; font-size: 12px; font-weight: 800; }
.task-note p { margin: 5px 0 0; }
.task-dropzone { position: relative; display: grid; gap: 6px; min-height: 120px; align-content: center; padding: 18px; border: 2px dashed #bfdbfe; border-radius: 10px; background: #eff6ff; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.task-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.task-dropzone strong { color: #1d4ed8; font-size: 15px; }
.task-dropzone span, .task-dropzone small { color: #475569; font-weight: 800; }
.task-dropzone.is-dragover { border-color: #2563eb; background: #dbeafe; transform: translateY(-1px); }
.task-audio-panel { margin-bottom: 16px; }
.task-panel-close { float: right; margin: 0 0 12px 12px; }
.task-audio-recorder { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 14px; align-items: end; }
.task-audio-recorder h2 { margin: 0 0 4px; color: #1e293b; font-size: 18px; }
.task-audio-recorder p { margin: 0 0 12px; }
.task-audio-recorder audio { grid-column: 1 / -1; width: 100%; }
.task-audio-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.task-audio-list { margin-bottom: 18px; }
.audio-list { display: grid; gap: 10px; }
.audio-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.audio-row.status-processed { background: #f8fafc; opacity: .82; }
.audio-row strong { display: block; color: #1e293b; font-size: 14px; }
.audio-row small { color: #64748b; font-weight: 800; }
.audio-row audio { width: 100%; min-width: 220px; }
.audio-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.inline-field-row { display: grid; grid-template-columns: minmax(160px, 1fr) 90px minmax(180px, 1fr) auto auto; gap: 10px; align-items: center; }
.wide-field { grid-column: 1 / -1; }
.compact-check { min-width: 96px; }
.venue-field-summary { padding: 0 18px 14px; }
label { color: #334155; font-size: 12px; font-weight: 700; }
input, textarea, select { border-color: #cbd5e1; border-radius: 9px; padding: 10px 11px; background: #fff; color: #0f172a; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: #2f59a7; box-shadow: 0 0 0 3px rgba(47,89,167,.12); }
textarea { min-height: 92px; }
table { font-size: 13px; }
th { color: #64748b; font-size: 11px; font-weight: 800; }
td, th { padding: 12px 10px; border-color: #edf2f7; }
.table-action { border-color: #cbd5e1; background: #f8fafc; color: #334155; border-radius: 9px; padding: 9px 12px; font-size: 12px; font-weight: 800; text-transform: none; }
.table-action:hover { border-color: #2f59a7; color: #2f59a7; background: #eff6ff; }
.table-action.danger { border-color: #fecaca; background: #fff1f2; color: #be123c; }
.table-action.is-disabled { opacity: .62; pointer-events: none; }
.btn { border-radius: 9px; min-height: 42px; text-transform: none; font-size: 13px; }
.btn.primary { background: #e3182d; border-color: #e3182d; box-shadow: 0 8px 18px rgba(227,24,45,.18); }
.badge, .chips span { border-radius: 999px; padding: 6px 10px; background: #eff6ff; color: #2f59a7; border-color: #bfdbfe; font-size: 12px; }
.match-status-badge { border-color: transparent; color: #fff; }
.match-status-scheduled { background: #e5e7eb; color: #1f2937; border-color: #cbd5e1; }
.match-status-cancelled { background: #dc2626; color: #fff; border-color: #b91c1c; }
.match-status-validated, .match-status-played { background: #16a34a; color: #fff; border-color: #15803d; }
.match-status-in_progress, .match-status-pending_report { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.match-status-postponed { background: #f97316; color: #fff; border-color: #ea580c; }
.success-box, .form-error { border-radius: 10px; border: 1px solid transparent; }
.success-box { border-color: #bbf7d0; }
.form-error { border-color: #fecaca; }
html[data-theme="dark"] .admin-shell { background: linear-gradient(180deg, color-mix(in srgb, var(--secondary) 72%, #0f172a), #0f172a 380px); color: #f8fafc; }
html[data-theme="dark"] .admin-main { background: transparent; color: #f8fafc; }
html[data-theme="dark"] .admin-top, html[data-theme="dark"] .metric-grid article, html[data-theme="dark"] .admin-card, html[data-theme="dark"] .admin-form-grid, html[data-theme="dark"] .edit-row, html[data-theme="dark"] .settings-grid, html[data-theme="dark"] .table-card { background: linear-gradient(180deg, #111827, color-mix(in srgb, var(--secondary) 58%, #111827)); color: #f8fafc; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .admin-top h1, html[data-theme="dark"] .metric-grid strong, html[data-theme="dark"] .admin-card h2, html[data-theme="dark"] .table-card h2, html[data-theme="dark"] .mini-title, html[data-theme="dark"] .match-scoreline strong, html[data-theme="dark"] .match-score-badges strong, html[data-theme="dark"] .ranking-row-main strong, html[data-theme="dark"] .ranking-row-value { color: #f8fafc; }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: #0b1220; color: #f8fafc; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .admin-fieldset { border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .admin-fieldset legend { color: #dbeafe; }
html[data-theme="dark"] .color-palette-field { border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .color-palette-field { background: #0b1220; }
html[data-theme="dark"] .color-palette-field legend { color: #dbeafe; }
html[data-theme="dark"] .color-picker-current { background: #111827; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .color-picker-current strong { color: #f8fafc; }
html[data-theme="dark"] .team-color-palette label { background: transparent; }
html[data-theme="dark"] .team-color-palette label:has(input:checked) { border-color: #60a5fa; background: #10233a; }
html[data-theme="dark"] .social-field-icon { background: #10233a; color: #dbeafe; }
html[data-theme="dark"] .settings-color-picker { background: #0b1220; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .settings-color-picker legend { color: #dbeafe; }
html[data-theme="dark"] .settings-color-palette button.is-selected { outline-color: rgba(96,165,250,.22); border-color: #60a5fa; }
html[data-theme="dark"] .admin-modal { background: #111827; color: #f8fafc; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .modal-close-form .icon-button { background: #0b1220; }
html[data-theme="dark"] .modal-head, html[data-theme="dark"] .roster-create-form { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .modal-head h2 { color: #f8fafc; }
html[data-theme="dark"] .modal-current-list { background: #0b1220; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .modal-current-list strong, html[data-theme="dark"] .modal-current-list span { color: #cbd5e1; }
html[data-theme="dark"] .roster-player { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .team-roster-summary article { background: #111827; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .team-roster-summary strong { color: #f8fafc; }
html[data-theme="dark"] .team-roster-summary span { color: #cbd5e1; }
html[data-theme="dark"] .team-edit-hero,
html[data-theme="dark"] .team-profile-block,
html[data-theme="dark"] .team-kit-card { background: #111827; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .team-edit-hero h1,
html[data-theme="dark"] .team-profile-block-head h2,
html[data-theme="dark"] .team-kit-head h3 { color: #f8fafc; }
html[data-theme="dark"] .team-profile-block-head p { color: #cbd5e1; }
html[data-theme="dark"] .team-edit-tags > span:not(.badge):not(.assignment-pill) { background: #0b1220; color: #cbd5e1; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .team-kit-head span { color: #cbd5e1; }
html[data-theme="dark"] .team-kit-card .color-palette-field,
html[data-theme="dark"] .kit-image-field,
html[data-theme="dark"] .team-kit-samples span,
html[data-theme="dark"] .team-kit-color-summary span { background: #0b1220; border-color: rgba(255,255,255,.12); color: #cbd5e1; }
html[data-theme="dark"] .task-card { background: #111827; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .task-card-head h2 { color: #f8fafc; }
html[data-theme="dark"] .task-meta, html[data-theme="dark"] .task-note span { color: #cbd5e1; }
html[data-theme="dark"] .task-status { background: #10233a; color: #dbeafe; border-color: rgba(96,165,250,.32); }
html[data-theme="dark"] .task-status-form select { background: #10233a; color: #dbeafe; border-color: rgba(96,165,250,.32); }
html[data-theme="dark"] .status-not_started .task-status { background: #0b1220; color: #cbd5e1; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .status-not_started .task-status-form select { background: #0b1220; color: #cbd5e1; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .status-done .task-status { background: rgba(22,101,52,.24); color: #bbf7d0; border-color: rgba(34,197,94,.32); }
html[data-theme="dark"] .status-done .task-status-form select { background: rgba(22,101,52,.24); color: #bbf7d0; border-color: rgba(34,197,94,.32); }
html[data-theme="dark"] .task-image-grid a,
html[data-theme="dark"] .task-note { background: #0b1220; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .task-notes, html[data-theme="dark"] .task-detail-panel { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .task-notes > strong { color: #dbeafe; }
html[data-theme="dark"] .task-dropzone { background: #10233a; border-color: rgba(96,165,250,.4); }
html[data-theme="dark"] .task-dropzone strong { color: #dbeafe; }
html[data-theme="dark"] .task-dropzone span, html[data-theme="dark"] .task-dropzone small { color: #cbd5e1; }
html[data-theme="dark"] .task-audio-recorder h2,
html[data-theme="dark"] .audio-row strong { color: #f8fafc; }
html[data-theme="dark"] .audio-row { background: #111827; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .audio-row.status-processed { background: #0b1220; }
html[data-theme="dark"] .audio-row small { color: #cbd5e1; }
html[data-theme="dark"] .sponsor-admin-preview > span, html[data-theme="dark"] .sponsor-current-media { background: #0b1220; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .assignment-pill { background: rgba(22,101,52,.24); border-color: rgba(34,197,94,.32); color: #bbf7d0; }
html[data-theme="dark"] .assignment-pill.is-empty { background: rgba(154,52,18,.24); border-color: rgba(251,146,60,.32); color: #fed7aa; }
html[data-theme="dark"] .team-group-section,
html[data-theme="dark"] .team-division-group,
html[data-theme="dark"] .assignment-check { background: #111827; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .team-division-head strong { color: #f8fafc; }
html[data-theme="dark"] .team-division-head span { color: #cbd5e1; }
html[data-theme="dark"] .team-group-row { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .assignment-warning,
html[data-theme="dark"] .assignment-check.is-locked { background: rgba(154,52,18,.24); border-color: rgba(251,146,60,.32); color: #fed7aa; }
html[data-theme="dark"] .assignment-check.is-assigned { background: #10233a; border-color: rgba(96,165,250,.42); }
html[data-theme="dark"] .lineup-editor-row { background: #111827; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .lineup-editor-row.is-sanctioned { background: #2b1708; border-color: rgba(251, 146, 60, .42); }
html[data-theme="dark"] .event-row { background: #111827; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .event-row label > span,
html[data-theme="dark"] .report-score-fields label > span { color: #cbd5e1; }
@media (max-width: 1500px) {
    .topbar { gap: 14px; }
    .brand { max-width: 210px; }
    .nav { justify-content: flex-start; }
    .date-long { display: none; }
    .date-short { display: inline; }
}
@media (max-width: 1320px) {
    .public-date { display: none; }
    .brand { max-width: 170px; }
    .topbar { grid-template-columns: minmax(118px, auto) auto minmax(0, 1fr); }
    .mobile-menu-toggle { display: inline-grid; }
    .top-actions { grid-column: 3; }
    .nav { display: none; position: absolute; left: var(--chrome-inline); right: var(--chrome-inline); top: calc(100% - 1px); z-index: 999; grid-template-columns: 1fr; gap: 4px; justify-content: stretch; max-height: calc(100vh - 94px); overflow-y: auto; padding: 10px; border: 1px solid #d8dee8; border-radius: 0 0 10px 10px; background: white; box-shadow: 0 20px 36px rgba(15,23,42,.15); }
    .topbar.is-mobile-menu-open .nav { display: grid; }
    .nav a { min-height: 42px; padding: 11px 12px; border: 0; border-radius: 7px; white-space: normal; }
    .nav a.active, .nav a:hover { background: #eff6ff; color: #2f59a7; border-color: transparent; }
    .nav-dropdown { display: grid; grid-column: 1 / -1; align-items: stretch; }
    .nav-dropdown > a { width: 100%; }
    .nav-dropdown-menu { position: static; display: grid; min-width: 0; max-width: none; margin-top: 4px; padding: 6px; box-shadow: none; transform: none; }
    .nav-competition-children { position: static; display: grid; min-width: 0; margin: 0 0 6px 14px; padding: 6px; border-radius: 7px; box-shadow: none; }
    .nav-competition-children a { min-height: 34px; padding: 8px 10px; font-size: calc(11px * var(--font-scale, 1)); }
    html[data-theme="dark"] .nav { background: #0b1a2d; border-color: rgba(255,255,255,.12); box-shadow: 0 20px 36px rgba(0,0,0,.3); }
    html[data-theme="dark"] .nav a.active,
    html[data-theme="dark"] .nav a:hover { background: #10233a; color: #f8fafc; }
}
@media (max-width: 1180px) {
    .brand { max-width: 118px; }
    .brand span:last-child { display: none; }
    .nav { gap: 10px; }
    .nav a { font-size: calc(11px * var(--font-scale, 1)); }
    .top-actions .locale-switch { display: none; }
    .home-news-card.is-wide.has-image,
    .home-news-card.is-strip.has-image { grid-template-columns: 1fr; }
    .home-news-card.is-wide.has-image > span,
    .home-news-card.is-strip.has-image > span { grid-row: auto; min-height: 210px; }
    .home-news-card.is-wide.has-image small,
    .home-news-card.is-wide.has-image h2,
    .home-news-card.is-wide.has-image p,
    .home-news-card.is-strip.has-image small,
    .home-news-card.is-strip.has-image h2,
    .home-news-card.is-strip.has-image p { margin-inline: 18px; }
    .home-news-card.is-wide.has-image small,
    .home-news-card.is-strip.has-image small { margin-top: 18px; }
    .home-news-card.is-wide.has-image p,
    .home-news-card.is-strip.has-image p { margin-bottom: 18px; }
}
@media (max-width: 1100px) {
    .hero, .match-hero { grid-template-columns: 1fr; }
    .results-panel { max-width: none; }
    .home-builder { grid-template-columns: 1fr; }
    .home-competition-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-editorial-grid { grid-template-columns: 1fr; }
    .home-standings-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-standings-stack > .section-head { grid-column: 1 / -1; }
    .competition-hero, .competition-layout { grid-template-columns: 1fr; }
    .competition-right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .competition-right .division-stack { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .competition-grid, .dashboard-grid, .ranking-list, .ranking-groups, .metric-grid, .admin-form-grid, .edit-row-main, .report-row, .referee-match-card, .match-detail-grid, .detail-grid, .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
    .sponsor-card { grid-template-columns: 1fr; }
    .news-hero.has-image { grid-template-columns: 1fr; }
    .news-hero img { order: -1; }
    .inline-field-row { grid-template-columns: 1fr 84px; }
    .inline-field-row input[type="file"], .inline-field-row .table-action, .inline-field-row .check-row { grid-column: 1 / -1; }
    .event-table-head { display: none; }
    .event-row { grid-template-columns: repeat(2, 1fr); align-items: end; }
    .event-row label:nth-of-type(3),
    .event-row label:nth-of-type(5),
    .event-row label:nth-of-type(6) { grid-column: 1 / -1; }
    .lineup-editor-head { display: none; }
    .lineup-editor-row { grid-template-columns: repeat(2, 1fr); }
    .lineup-editor-row > .entity-name, .lineup-editor-row > input:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .topbar { padding: 0 18px; gap: 14px; }
    .brand span:last-child { display: none; }
    .hero { padding: 34px 22px 70px; }
    .public-date { display: none; }
    .competition-band, .dashboard-grid, .side-season, .content-band, .form-shell, .competition-layout { width: calc(100% - 28px); }
    .report-score-fields { grid-template-columns: 1fr !important; }
    .event-row { grid-template-columns: 1fr; }
    .event-row label { grid-column: 1 / -1; }
    .competition-hero { padding: 34px 22px 26px; }
    .competition-kpis, .competition-right, .competition-right .division-stack, .compact-match, .match-summary-head, .inline-field-row, .image-cropper { grid-template-columns: 1fr; }
    .home-builder { width: calc(100% - 28px); gap: 16px; }
    .home-editorial-grid { width: calc(100% - 28px); gap: 18px; }
    .home-feature-banner { min-height: 210px; padding: 24px 18px; }
    .home-feature-banner .hero-actions { width: 100%; gap: 10px; }
    .home-feature-banner .hero-actions .btn { width: 100%; }
    .nav { grid-template-columns: 1fr; }
    .home-block-grid, .home-competition-rail, .home-featured-news, .home-standings-stack, .home-block-admin-row { grid-template-columns: 1fr; }
    .home-news-card.is-wide,
    .home-news-card.is-strip { grid-template-columns: 1fr; }
    .home-news-card.is-wide > span,
    .home-news-card.is-strip > span { grid-row: auto; min-height: 210px; }
    .home-news-card.is-wide small,
    .home-news-card.is-wide h2,
    .home-news-card.is-wide p,
    .home-news-card.is-strip small,
    .home-news-card.is-strip h2,
    .home-news-card.is-strip p { margin-inline: 18px; }
    .home-news-card.is-wide p,
    .home-news-card.is-strip p { margin-bottom: 18px; }
    .home-block-media { grid-template-columns: 86px minmax(0, 1fr); min-height: 108px; padding: 16px; }
    .home-block-media .brand-mark { min-width: 64px; width: 64px; height: 48px; }
    .settings-brand-preview { align-items: flex-start; flex-direction: column; }
    .settings-brand-preview .settings-brand-mark { width: min(180px, 100%); min-width: 0; }
    .home-block-admin-row label:nth-child(8) { grid-column: auto; }
    .competition-menu { top: 78px; padding: 8px 14px; }
    .competition-grid, .dashboard-grid, .ranking-list, .ranking-groups, .media-grid, .wizard-card fieldset, .settings-grid, .metric-grid, .admin-grid, .admin-form-grid, .sponsor-grid { grid-template-columns: 1fr; }
    .news-hero { padding: 34px 22px; }
    .news-hero.has-image, .news-card, .competition-news { grid-template-columns: 1fr; }
    .news-card > span { grid-row: auto; min-height: 210px; }
    .competition-news.has-image span { grid-row: auto; }
    .competition-news span { aspect-ratio: 16 / 9; }
    .team-color-fields, .team-social-fields { grid-template-columns: 1fr; }
    .team-roster-summary { grid-template-columns: 1fr; }
    .team-edit-hero,
    .team-profile-block,
    .team-profile-row,
    .team-profile-block .team-color-fields,
    .team-kits-grid,
    .team-kits-public .team-kits-grid { grid-template-columns: 1fr; }
    .team-edit-actions { justify-content: flex-start; }
    .task-card-head { display: grid; }
    .task-badges { justify-content: flex-start; }
    .task-audio-recorder,
    .audio-row,
    .sponsor-admin-card .admin-record-summary,
    .sponsor-admin-preview,
    .site-footer-inner { grid-template-columns: 1fr; }
    .page-image-item { grid-template-columns: 1fr; }
    .page-image-item img { width: 100%; height: 160px; }
    .footer-links { justify-content: flex-start; }
    .task-audio-controls,
    .audio-actions { justify-content: flex-start; }
    .team-color-palette { grid-template-columns: repeat(8, 28px); }
    .team-kit-images,
    .team-kit-samples { grid-template-columns: 1fr; }
    .admin-shell { display: block; }
    .admin-mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #1a1f2c; color: white; position: sticky; top: 0; z-index: 20; }
    .admin-mobile-bar .admin-brand { min-height: 0; padding: 0; border: 0; }
    .admin-sidebar { position: static; height: auto; display: block; padding-bottom: 8px; }
    .admin-sidebar > .admin-brand, .admin-profile { display: none; }
    .admin-nav { display: flex; overflow-x: auto; gap: 8px; padding: 10px 12px; }
    .admin-nav p { display: none; }
    .admin-nav a { white-space: nowrap; min-width: max-content; }
    .admin-sidebar-footer { display: none; }
    .admin-main { padding: 0; }
    .admin-top { position: static; min-height: auto; padding: 18px; align-items: flex-start; gap: 14px; }
    .admin-top-actions { flex-wrap: wrap; justify-content: flex-end; }
    .admin-section { padding: 18px; }
    .edit-row { display: grid; }
    .report-row, .referee-match-card, .event-row, .lineup-editor-row, .match-detail-grid, .detail-grid, .scoreboard, .lineup-grid, .delegate-form-grid, .delegate-player-row, .admin-record-summary, .locale-manager-row { grid-template-columns: 1fr; }
    .entity-hero { align-items: flex-start; flex-direction: column; }
    .stat-strip { align-items: flex-start; flex-direction: column; }
    .admin-record-actions { justify-content: flex-start; }
    .admin-toolbar { align-items: flex-start; flex-direction: column; }
    .modal-form { grid-template-columns: 1fr; }
}

/* Team color picker */
.team-form-grid .team-color-fields {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(260px, 420px)) !important;
    gap: 14px !important;
    align-items: start !important;
}
.team-form-grid .color-palette-field {
    display: grid !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid #d8dee8 !important;
    border-radius: 10px !important;
    background: #fff !important;
}
.team-form-grid .color-palette-field legend {
    padding: 0 6px !important;
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}
.team-form-grid .color-picker-current {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
}
.team-form-grid .color-picker-current [data-color-preview] {
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    background: var(--swatch) !important;
    border: 1px solid var(--swatch-border) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35) !important;
}
.team-form-grid .color-picker-current strong {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.team-form-grid .team-color-palette {
    display: grid !important;
    grid-template-columns: repeat(8, 30px) !important;
    gap: 6px !important;
    align-items: center !important;
    width: max-content !important;
    max-width: 100% !important;
    padding: 6px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
}
.team-form-grid .team-color-palette .palette-swatch {
    display: grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    background: transparent !important;
    cursor: pointer !important;
}
.team-form-grid .team-color-palette input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.team-form-grid .team-color-palette .palette-swatch > span {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    background: var(--swatch) !important;
    border: 1px solid var(--swatch-border) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3) !important;
}
.team-form-grid .team-color-palette .palette-swatch.is-selected {
    border-color: #1d4ed8 !important;
    background: #dbeafe !important;
}
.team-form-grid .team-color-palette .palette-swatch:focus-within {
    outline: 3px solid rgba(47,89,167,.22) !important;
    outline-offset: 2px !important;
}
html[data-theme="dark"] .team-form-grid .color-palette-field,
html[data-theme="dark"] .team-form-grid .color-picker-current,
html[data-theme="dark"] .team-form-grid .team-color-palette {
    background: #0b1220 !important;
    border-color: rgba(255,255,255,.14) !important;
}
html[data-theme="dark"] .team-form-grid .color-picker-current strong {
    color: #f8fafc !important;
}
html[data-theme="dark"] .team-form-grid .team-color-palette .palette-swatch.is-selected {
    border-color: #93c5fd !important;
    background: #10233a !important;
}
@media (max-width: 900px) {
    .team-group-row,
    .assignment-check-grid {
        grid-template-columns: 1fr;
    }
    .team-group-row .admin-record-actions {
        justify-content: flex-start;
    }
    .team-form-grid .team-color-fields {
        grid-template-columns: 1fr !important;
    }
}

/* Competition admin workspace */
.admin-workspace-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.admin-workspace-head h1 {
    margin: 8px 0 4px;
    font-size: 26px;
    line-height: 1.1;
}
.admin-workspace-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}
.admin-workspace-title {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.admin-workspace-title > .table-action {
    width: fit-content;
}
.admin-workspace-title h1 {
    margin: 0;
}
.admin-workspace-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.competition-admin-tree {
    display: grid;
    gap: 14px;
}
.is-clickable-card {
    cursor: pointer;
}
.is-clickable-card:hover {
    border-color: color-mix(in srgb, var(--primary) 42%, #d8dee8);
    box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.competition-tree-card {
    overflow: hidden;
}
.team-picker-field { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; }
.team-picker-field legend, .team-manager-head strong { color: #0f172a; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.team-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.team-picker-grid.is-assigned { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.team-picker-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; min-height: 52px; padding: 9px 10px; border: 1px solid #d8dee8; border-radius: 8px; background: #fff; color: #0f172a; cursor: pointer; }
.team-picker-card input { position: absolute; opacity: 0; pointer-events: none; }
.team-picker-card .crest, .team-picker-card .avatar { width: 32px; height: 32px; }
.team-picker-card > span:last-child { display: grid; gap: 2px; min-width: 0; font-size: 13px; font-weight: 900; line-height: 1.1; }
.team-picker-card small { color: #64748b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.team-picker-card:hover { border-color: color-mix(in srgb, var(--primary) 48%, #d8dee8); background: #f8fafc; }
.team-picker-card:has(input[type="checkbox"]:checked) { border-color: var(--primary); background: #eff6ff; box-shadow: inset 4px 0 0 var(--primary); }
.team-picker-card:has(input[type="checkbox"]:disabled) { cursor: not-allowed; opacity: .74; }
.team-picker-card.is-selected:has(input[type="checkbox"]:not(:checked)) { border-color: #fecaca; background: #fff1f2; box-shadow: inset 4px 0 0 #dc2626; }
.division-team-manager { display: grid; gap: 14px; margin: 0 18px 16px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.team-manager-section { display: grid; gap: 8px; }
.team-manager-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-manager-head span { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: #e2e8f0; color: #0f172a; font-size: 12px; font-weight: 900; }
.calendar-delete-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.calendar-delete-form p { margin: 0; }
.calendar-proposal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #d8dee8; border-radius: 8px; background: #fff; }
.calendar-proposal-head strong { color: #0f172a; font-family: var(--font-heading); font-size: 14px; text-transform: uppercase; }
.calendar-proposal-head span { color: #64748b; font-size: 12px; font-weight: 800; text-align: right; }
.calendar-round-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 12px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; }
.calendar-round-date-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.calendar-round-date-row label { gap: 5px; }
.calendar-round-date-row .table-action { min-height: 42px; white-space: nowrap; }
.compact-match-panel {
    margin: 0 18px 16px;
}
.contextual-news-panel {
    margin-bottom: 16px;
}
.competition-tree-card .contextual-news-panel {
    margin: 0 18px 16px;
}
.phase-match-tree .contextual-news-panel {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface-soft);
}
.contextual-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.contextual-news-head h3 {
    margin: 0;
    font-size: 15px;
}
.contextual-news-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.contextual-news-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.contextual-news-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.contextual-news-list strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.contextual-news-list small {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 800;
}
.phase-match-tree {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}
.phase-tree-node {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.phase-tree-node[open] {
    box-shadow: inset 3px 0 0 var(--primary);
}
.phase-tree-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fafc, #eef4fb);
    cursor: pointer;
    list-style: none;
}
.phase-tree-head::-webkit-details-marker {
    display: none;
}
.phase-tree-head:before {
    content: ">";
    color: var(--primary);
    font-weight: 900;
    transition: transform .18s ease;
}
.phase-tree-node[open] > .phase-tree-head:before {
    transform: rotate(90deg);
}
.phase-tree-head strong {
    font-size: 13px;
    text-transform: uppercase;
}
.tree-summary-main {
    display: grid;
    gap: 2px;
    min-width: 0;
    margin-right: auto;
}
.tree-summary-main em,
.tree-summary-main small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.tree-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.round-tree-list {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
}
.round-tree-node {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    overflow: hidden;
}
.round-tree-node > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #bfdbfe;
    background: #dbeafe;
    cursor: pointer;
}
.round-tree-node > summary strong {
    font-size: 13px;
}
.round-tree-node > summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.round-tree-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 12px 0;
}
.tree-match-row {
    display: grid;
    grid-template-columns: 130px minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    margin: 8px 10px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.tree-match-row:first-of-type {
    margin-top: 10px;
}
.tree-match-row time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.tree-match-row .table-action {
    white-space: nowrap;
}
html[data-theme="dark"] .division-team-manager,
html[data-theme="dark"] .team-picker-card,
html[data-theme="dark"] .phase-tree-node,
html[data-theme="dark"] .phase-tree-head,
html[data-theme="dark"] .round-tree-node {
    border-color: rgba(255,255,255,.12);
}
html[data-theme="dark"] .division-team-manager,
html[data-theme="dark"] .team-picker-card { background: #0b1220; color: #f8fafc; }
html[data-theme="dark"] .phase-tree-node,
html[data-theme="dark"] .tree-match-row { background: #0b1220; }
html[data-theme="dark"] .phase-tree-head { background: #10233a; }
html[data-theme="dark"] .round-tree-list { background: #071426; }
html[data-theme="dark"] .round-tree-node { background: #10233a; border-color: rgba(96,165,250,.45); }
html[data-theme="dark"] .round-tree-node > summary { background: #12304f; border-color: rgba(96,165,250,.42); }
html[data-theme="dark"] .public-calendar-admin-panel { background: #071426; border-color: rgba(96,165,250,.45); }
html[data-theme="dark"] .calendar-admin-match-form { background: #0b1220; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .calendar-admin-match-form label { color: #cbd5e1; }
html[data-theme="dark"] .team-picker-field legend,
html[data-theme="dark"] .team-manager-head strong { color: #f8fafc; }
html[data-theme="dark"] .team-picker-card small { color: #cbd5e1; }
html[data-theme="dark"] .team-picker-card:hover,
html[data-theme="dark"] .team-picker-card:has(input:checked) { background: #10233a; }
html[data-theme="dark"] .team-manager-head span { background: #10233a; color: #f8fafc; }
@media (max-width: 920px) {
    .admin-workspace-head {
        display: grid;
    }
    .admin-workspace-actions {
        justify-content: flex-start;
    }
    .tree-match-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .calendar-admin-match-form,
    .calendar-admin-match-form.is-result-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .phase-tree-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .tree-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Admin forms: one readable vertical column */
body.admin-shell .admin-form-grid,
body.admin-shell .edit-row-main,
body.admin-shell .modal-form,
body.admin-shell .team-form-grid,
body.admin-shell .player-edit-grid,
body.admin-shell .team-edit-grid,
body.admin-shell .match-form-grid,
body.admin-shell .match-edit-grid,
body.admin-shell .editorial-form-grid,
body.admin-shell .editorial-edit-grid,
body.admin-shell .user-form-grid,
body.admin-shell .user-edit-grid,
body.admin-shell .referee-form-grid,
body.admin-shell .referee-edit-grid,
body.admin-shell .task-form-grid,
body.admin-shell .sponsor-form-grid,
body.admin-shell .settings-grid,
body.admin-shell .team-profile-row,
body.admin-shell .team-profile-block .team-color-fields,
body.admin-shell .team-color-fields,
body.admin-shell .team-social-fields,
body.admin-shell .inline-field-row,
body.admin-shell .locale-manager-row,
body.admin-shell .assignment-check-grid {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
}

body.admin-shell .admin-form-grid,
body.admin-shell .edit-row-main,
body.admin-shell .team-profile-form,
body.admin-shell .settings-grid,
body.admin-shell .modal-form {
    max-width: 760px;
    width: min(100%, 760px);
}

body.admin-shell .team-profile-block,
body.admin-shell .admin-create-panel > .admin-form-grid,
body.admin-shell .admin-edit-panel .edit-row-main {
    max-width: 760px;
}

body.admin-shell .modal-form {
    width: 100%;
}

body.admin-shell .team-profile-block {
    grid-template-columns: 1fr !important;
}

body.admin-shell label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
}

body.admin-shell label > input,
body.admin-shell label > select,
body.admin-shell label > textarea,
body.admin-shell .admin-form-grid input,
body.admin-shell .admin-form-grid select,
body.admin-shell .admin-form-grid textarea,
body.admin-shell .settings-grid input,
body.admin-shell .settings-grid select,
body.admin-shell .settings-grid textarea,
body.admin-shell .edit-row-main input,
body.admin-shell .edit-row-main select,
body.admin-shell .edit-row-main textarea {
    width: 100%;
    min-width: 0;
}

body.admin-shell .check-row,
body.admin-shell .check-label {
    display: flex;
    align-items: center;
}

body.admin-shell .check-row input,
body.admin-shell .check-label input,
body.admin-shell input[type="checkbox"],
body.admin-shell input[type="radio"] {
    width: auto;
    min-width: 0;
}

body.admin-shell .settings-color-picker input[type="color"] {
    width: 34px;
}

body.admin-shell .admin-form-grid .btn,
body.admin-shell .admin-form-grid .table-action,
body.admin-shell .edit-row-main .btn,
body.admin-shell .edit-row-main .table-action {
    width: fit-content;
}

body.admin-shell button:disabled,
body.admin-shell .btn:disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
}

body.admin-shell .wide-field,
body.admin-shell .modal-form > label:first-child,
body.admin-shell .modal-current-list,
body.admin-shell .modal-actions {
    grid-column: 1 / -1;
}

body.admin-shell .import-help {
    display: grid;
    gap: 8px;
    align-items: start;
}

body.admin-shell .import-help h2 {
    margin: 0;
    font-size: 18px;
}

body.admin-shell .import-help p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

body.admin-shell .import-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    max-width: 760px;
    margin: 0 0 18px;
}

body.admin-shell .import-summary-grid article {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

body.admin-shell .import-summary-grid strong {
    font-size: 28px;
    line-height: 1;
}

body.admin-shell .import-summary-grid span {
    color: #64748b;
    font-weight: 800;
}

body.admin-shell .import-summary-grid .has-errors {
    border-color: #fecaca;
    background: #fff7f7;
}

body.admin-shell .import-preview-table {
    max-width: 1120px;
    overflow-x: auto;
}

body.admin-shell .import-preview-table table {
    min-width: 720px;
}

body.admin-shell .import-row-create .badge {
    background: #dcfce7;
    color: #166534;
}

body.admin-shell .import-row-update .badge {
    background: #dbeafe;
    color: #1d4ed8;
}

body.admin-shell .import-row-error .badge {
    background: #fee2e2;
    color: #b91c1c;
}

html[data-theme="dark"] body.admin-shell .import-help p {
    color: #cbd5e1;
}

html[data-theme="dark"] body.admin-shell .import-summary-grid article {
    background: linear-gradient(180deg, #111827, #0b1220);
    border-color: rgba(255,255,255,.12);
}

html[data-theme="dark"] body.admin-shell .import-summary-grid .has-errors {
    background: rgba(127, 29, 29, .35);
    border-color: rgba(252, 165, 165, .35);
}

@media (max-width: 700px) {
    body.admin-shell .import-summary-grid {
        grid-template-columns: 1fr;
    }
}
