:root { color-scheme: dark; font-family: Inter, Pretendard, system-ui, sans-serif; background:#0d1117; color:#edf2f7; }
html,body { min-width:1280px; }
html { scrollbar-width:none; }
html::-webkit-scrollbar:vertical { width:0; display:none; }
* { box-sizing:border-box; } body { margin:0; min-height:100vh; background:radial-gradient(circle at 15% 0%,#19324a 0,transparent 35%),#0d1117; }
header { min-height:64px; padding:10px clamp(16px,2vw,32px); display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; gap:12px; border-bottom:1px solid #293442; background:#0d1117dd; position:sticky; top:0; z-index:200; backdrop-filter:blur(12px); }
h1,h2,p { margin:0; } h1 { font-size:clamp(22px,3vw,32px); } h2 { font-size:24px; margin:4px 0 6px; } p { color:#9fb0c2; }
.eyebrow { color:#75b9ff; font-size:12px; font-weight:800; letter-spacing:.14em; }
main { width:95%; margin:28px auto 60px; }
main:has(#todayQueue:not(.hidden)) { width:100%; }
#todayQueue { padding-inline:0; border-inline:0; border-radius:0; }
#todayQueue .queue-schedule-table-wrap { border-inline:0; border-radius:0; scrollbar-gutter:auto; }
.panel,.metrics article,.metrics .metric-filter { background:#151c25; border:1px solid #293442; border-radius:18px; box-shadow:0 15px 45px #0005; }
.login,.toolbar { padding:28px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
#login { width:min(100%,420px); margin:0 auto; padding:32px; display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; justify-content:stretch; gap:18px; text-align:center; }
#login h1 { font-size:clamp(21px,5vw,28px); white-space:nowrap; }
#login #googleLogin { width:100%; min-height:48px; }
#login #authError { padding:0; }
body.login-view header { justify-content:flex-end; }
body.login-view header .header-title { display:none; }
body.login-view main { min-height:calc(100dvh - 64px); margin:0 auto; display:grid; place-items:center; }
button,input,select { font:inherit; } button { border:0; border-radius:12px; padding:12px 18px; cursor:pointer; font-weight:750; }
.primary { background:#62a8ff; color:#07111e; } .ghost { background:#222d3a; color:#dce7f2; }
.header-actions { display:flex; flex:none; align-items:center; gap:7px; color:#aebdca; order:3; white-space:nowrap; }
.account-menu-popover #themeToggle { min-height:36px; padding:8px 10px; border:1px solid #dce5ef; border-radius:9px; background:#fff; color:#000; font-size:13px; white-space:nowrap; }
.language-label { position:relative; display:inline-flex; align-items:center; justify-content:center; width:32px; height:36px; border-radius:7px; cursor:pointer; }
.language-label img { display:block; width:24px; height:16px; object-fit:cover; border-radius:2px; box-shadow:0 0 0 1px #ffffff40; }
.language-label:focus-within { outline:2px solid #75b9ff; outline-offset:2px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.header-title { flex:0 1 390px; min-width:290px; order:1; display:flex; align-items:center; gap:8px; }
.header-title h1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.header-title.has-tournament-switch { flex:0 1 auto; min-width:0; }
.header-title.has-tournament-switch .tournament-switch { flex:0 1 auto; min-width:0; }
.header-title.has-tournament-switch .tournament-switch select { flex:0 1 auto; min-width:150px; }
.tournament-switch { min-width:0; flex:1 1 220px; display:flex; align-items:center; gap:10px; margin-top:0; color:#9fb0c2; font-size:13px; }
.tournament-switch label { flex:none; }
.tournament-switch select { width:100%; min-height:40px; max-width:100%; padding:6px 28px 6px 10px; border-radius:9px; font-size:12px; font-weight:750; text-overflow:ellipsis; }
.tournament-switch select:disabled { opacity:1; cursor:default; }
.operator-history-readonly #tournamentDetailsSettings input,
.operator-history-readonly #tournamentDetailsSettings select,
.operator-history-readonly #tournamentDetailsSettings textarea,
.operator-history-readonly #tournamentDetailsSettings button,
.operator-history-readonly #tournamentSettings input,
.operator-history-readonly #tournamentSettings select,
.operator-history-readonly #tournamentSettings textarea,
.operator-history-readonly #tournamentSettings button,
.operator-history-readonly #courtQueueManagement .queue-mode-actions button,
.operator-history-readonly #courtQueueManagement .queue-court-card button,
.operator-history-readonly #preliminaryDraw .results-simulation-actions button,
.operator-history-readonly #awardsPage .awards-place-action { opacity:.48; pointer-events:none; }
.header-date-control { flex:none; }
.header-date-control .queue-date-select,.header-date-control .queue-date-label { min-height:40px; padding:6px 9px; border-radius:9px; white-space:nowrap; font-size:12px; font-weight:750; }
.system-tournament-list { display:grid; gap:12px; margin-top:18px; }
.system-tournament { padding:16px 20px; }
.system-tournament p { margin-top:6px; }
.system-tournament button { margin:12px 8px 0 0; }
#systemAdmin { font-size:14px; }
#systemAdmin .toolbar { padding:18px 22px; gap:16px; }
#systemAdmin h2 { font-size:21px; line-height:1.25; }
#systemAdmin h3 { font-size:17px; line-height:1.3; }
#systemAdmin p { font-size:14px; line-height:1.5; }
#systemAdmin button { min-height:34px; padding:8px 12px; font-size:13px; line-height:1.25; }
.no-tournament-state { margin:14px 0; padding:24px; }
.no-tournament-state h2 { font-size:21px; margin:0 0 8px; }
.no-tournament-state p { margin:0 0 14px; font-size:14px; }
.header-actions select { max-width:190px; }
.header-actions select#languageSelect, #operatorTutorialLanguageSelect { position:absolute; inset:0; width:100%; max-width:none; min-height:0; padding:0; opacity:0; cursor:pointer; }
.system-admin-actions { display:flex; flex-wrap:wrap; gap:8px; }
.operator-nav { position:static; z-index:auto; display:flex; flex-wrap:nowrap; align-items:center; gap:8px; padding:0; margin:0; background:transparent; backdrop-filter:none; }
.header-operator-nav { flex:1 1 auto; min-width:0; width:auto; order:2; border:0; border-radius:0; box-shadow:none; }
.header-actions .operator-settings { margin-left:0; }
.operator-nav > button,.operator-nav > .operator-nav-link,.simulation-nav-tail > button,.simulation-nav-tail > .operator-nav-link,.operator-settings > summary { display:inline-flex; align-items:center; flex:none; min-height:36px; padding:6px 8px; border:0; border-radius:9px; background:#222d3a; color:#dce7f2; font-size:12px; font-weight:750; white-space:nowrap; cursor:pointer; }
.operator-nav > .operator-nav-link,.simulation-nav-tail > .operator-nav-link { text-decoration:none; }
.operator-nav > button:disabled,.simulation-nav-tail > button:disabled { opacity:.55; cursor:default; }
.operator-nav > .operator-nav-active { background:#62a8ff; color:#07111e; }
.operator-nav > button:focus-visible,.operator-nav > .operator-nav-link:focus-visible,.operator-settings > summary:focus-visible { outline:2px solid #75b9ff; outline-offset:2px; }
.account-menu { position:relative; }
.account-menu[open] { z-index:21; }
.account-menu > summary { width:38px; height:38px; display:grid; place-items:center; list-style:none; border:1px solid #344558; border-radius:50%; background:#151c25; color:#dce7f2; cursor:pointer; }
.account-menu > summary::-webkit-details-marker { display:none; }
.account-menu > summary svg { width:21px; height:21px; fill:currentColor; }
.account-menu[open] > summary { border-color:#75b9ff; color:#75b9ff; }
.account-menu-popover { position:absolute; z-index:20; top:calc(100% + 9px); right:0; width:min(290px,calc(100vw - 28px)); padding:8px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px; }
.account-menu-popover > span { min-width:0; padding:9px 10px; overflow-wrap:anywhere; color:#aebdca; font-size:12px; }
.account-menu-popover > button { width:100%; padding:10px; border-radius:9px; background:transparent; color:#dce7f2; text-align:left; font-size:13px; }
.account-menu-popover > button:not(.account-menu-close) { grid-column:1 / -1; }
.account-menu-popover > .account-menu-close { width:34px; height:34px; padding:0; display:grid; place-items:center; text-align:center; font-size:22px; line-height:1; }
.account-menu-popover > button:hover { background:#263545; }
.account-profile-notice { margin:12px 0; color:#aebdca; font-size:13px; line-height:1.5; }
.account-profile-form { display:grid; grid-template-columns:150px minmax(0,1fr); align-items:center; gap:10px 14px; margin-top:16px; }
.account-profile-form > label { color:#aebdca; font-weight:650; }
.account-profile-form > input,.account-profile-form > select { width:100%; min-width:0; min-height:40px; padding:8px 10px; border:1px solid #344558; border-radius:9px; background:#0e151d; color:#edf2f7; }
.account-profile-status,.account-profile-actions { grid-column:1/-1; }
.account-profile-actions { display:flex; justify-content:flex-end; gap:8px; }
.preliminary-controls { position:sticky; top:var(--app-sticky-top,64px); z-index:4; display:flex; flex-wrap:nowrap; align-items:center; justify-content:center; gap:10px; margin:0 0 12px; padding:8px; border:1px solid #293442; border-radius:10px; background:#151c25f2; backdrop-filter:blur(10px); }
#preliminaryDivisionTabs { max-width:100%; flex-wrap:nowrap; justify-content:safe center; overflow-x:auto; scrollbar-width:thin; }
.queue-finalization-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; padding:10px 12px; border:1px solid #293442; border-radius:10px; background:#101720; }
.queue-finalization-actions { display:flex; gap:8px; flex:0 0 auto; }
.queue-finalization-bar.is-finalized { border-color:#25845d; background:#10241e; }
html[data-theme="light"] .queue-finalization-bar { background:#f7f9fc; border-color:#dce5ef; }
html[data-theme="light"] .queue-finalization-bar.is-finalized { background:#eaf8f1; border-color:#83c9aa; }

.preliminary-division-tabs { display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.page-date-division-row,.preliminary-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
#preliminaryDraw .preliminary-controls { display:flex; width:100%; flex-wrap:nowrap; justify-content:flex-start; gap:6px; }
#preliminaryDraw .preliminary-controls:not(.preliminary-controls-bottom) { position:sticky; top:var(--app-sticky-top,64px); z-index:6; }
#preliminaryDraw .preliminary-controls-bottom { margin:12px 0 0; }
#preliminaryDraw .preliminary-controls-bottom { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
#preliminaryDraw .preliminary-controls-bottom .results-qualification-priority { justify-self:start; }
#preliminaryDraw .preliminary-controls-bottom .preliminary-center-controls { flex:0 0 auto; justify-content:center; }
#preliminaryDraw .preliminary-controls-bottom .results-qualification-summary { justify-self:end; margin-left:0; }
.results-back-to-top { min-height:28px; padding:4px 10px; font-size:12px; font-weight:750; line-height:1.1; white-space:nowrap; }
.preliminary-center-controls,.results-simulation-actions { display:flex; align-items:center; gap:8px; }
.preliminary-center-controls { display:flex; flex:1 1 auto; min-width:0; max-width:none; justify-content:flex-start; flex-wrap:nowrap; gap:6px; overflow:visible; }
#preliminaryDraw > .preliminary-controls:not(.preliminary-controls-bottom) .preliminary-center-controls { margin-left:clamp(10px,1vw,18px); }
.results-simulation-actions { flex:none; }
.results-simulation-actions button { min-height:28px; padding:4px 9px; border:1px solid transparent; font-size:12px; line-height:1.1; white-space:nowrap; }
.results-image-export-actions { position:relative; display:flex; align-items:center; justify-content:center; gap:8px; }
.results-image-export-actions button { min-height:28px; padding:4px 9px; font-size:12px; white-space:nowrap; }
.results-image-export-feedback { position:absolute; top:calc(100% + 4px); left:50%; width:max-content; max-width:320px; color:#8de0aa; font-size:11px; opacity:0; transform:translateX(-50%); transition:opacity .18s ease; }
.results-image-export-feedback.is-visible { opacity:1; }
html[data-theme="light"] .results-image-export-feedback { color:#176b47; }
.results-simulation-toggle { background:#4d2d60; color:#f1d5ff; }
.results-simulation-reset { background:#5a2c32; color:#ffd7dc; }
.results-automation-toggle { background:#18734d; color:#fff; border-color:#72d8a9 !important; }
.results-automation-toggle.is-stopping { background:#c62838; color:#fff; border-color:#f06b78 !important; box-shadow:0 0 0 2px #d92f4055; }
.results-simulation-toggle.is-running { border-color:#ff8d69; background:#6b2e22; color:#fff; }
.results-qualification-priority,.results-qualification-summary { flex:none; max-width:none; overflow:visible; padding-bottom:2px; color:#9fb0c2; font-size:clamp(10px,.72vw,12px); font-weight:750; white-space:nowrap; }
.results-qualification-priority { padding-left:2px; }
.results-qualification-summary { margin-left:auto; padding-right:2px; text-align:right; }
.results-ranking-criteria { display:inline-flex; align-items:center; gap:4px; margin-left:5px; }
.results-ranking-separator { color:#718396; }
.results-ranking-help { position:relative; min-height:24px; padding:2px 7px; border:1px solid #52657a; border-radius:7px; background:#18232f; color:#dce7f2; font-size:11px; line-height:1.2; white-space:nowrap; }
.results-ranking-help::after { position:absolute; z-index:1000; top:calc(100% + 7px); bottom:auto; left:50%; width:max-content; max-width:min(340px,80vw); padding:8px 10px; border:1px solid #75b9ff; border-radius:8px; background:#101720; color:#eef7ff; box-shadow:0 10px 28px #000b; content:attr(data-tooltip); font-size:12px; font-weight:500; line-height:1.45; text-align:left; white-space:normal; transform:translateX(-50%); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .12s ease; }
.results-ranking-help:first-child::after { right:auto; left:0; transform:none; }
.results-ranking-help:hover::after,.results-ranking-help:focus-visible::after,.results-ranking-help.is-open::after { opacity:1; visibility:visible; }
.results-ranking-help.is-open { border-color:#75b9ff; }
.results-qualification-line-key { position:absolute; z-index:5; display:flex; align-items:center; gap:10px; width:max-content; padding:4px 7px; border:1px solid #344558; border-radius:7px; background:#151c25e8; color:#dce7f2; font-size:11px; font-weight:750; white-space:nowrap; pointer-events:none; }
.results-qualification-line-key[hidden] { display:none; }
.results-qualification-line-legend { display:inline-flex; align-items:center; gap:5px; }
.results-qualification-line-legend::before { width:24px; border-top:3px solid #e53935; content:""; }
.results-qualification-line-legend.is-dashed::before { border-top-style:dashed; }
html[data-theme="light"] .results-qualification-line-key { border-color:#b8c7d6; background:#fffffff0; color:#253c53; }
#preliminaryDraw .preliminary-division-tabs { justify-content:center; }
.page-date-control { display:flex; flex:none; align-items:center; }
.page-date-control-row { margin-bottom:10px; }
.preliminary-division-tab { border:1px solid #344558; border-radius:999px; padding:8px 14px; background:#151c25; color:#edf2f7; cursor:pointer; }
#preliminaryDraw .preliminary-division-tab { padding:4px 12px; line-height:1.25; }
.preliminary-division-tab[aria-selected="true"] { border-color:#62a8ff; background:#62a8ff; color:#07111e; }
.preliminary-overview-tab { font-weight:800; }
.preliminary-division-heading { grid-column:1/-1; margin:14px 0 0; padding:10px 2px 2px; border-top:1px solid #344558; font-size:17px; }
html[data-theme="light"] .preliminary-division-tab { border-color:#c4d0dc; background:#fff; color:#1d2a37; }
html[data-theme="light"] .preliminary-division-tab[aria-selected="true"] { border-color:#1769c2; background:#1769c2; color:#fff; }
html[data-theme="light"] .results-simulation-toggle { background:#f0e0f7; color:#6a337b; }
html[data-theme="light"] .results-simulation-reset { background:#f8dfe2; color:#8a303b; }
html[data-theme="light"] .results-automation-toggle { background:#25875e; color:#fff; border-color:#176b47 !important; }
html[data-theme="light"] .results-automation-toggle.is-stopping { background:#c62838; color:#fff; border-color:#f06b78 !important; }
.preliminary-controls select { min-width:min(100%,280px); }
.court-count-summary { margin:0 0 10px; color:#9fb0c2; font-size:13px; font-weight:650; }
.schedule-settings-form { display:grid; grid-template-columns:minmax(150px,220px) minmax(180px,300px); align-items:center; gap:14px; padding:20px 0 8px; }
.schedule-settings-layout { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,3fr); align-items:start; gap:22px; max-width:100%; overflow-x:hidden; }
.schedule-settings-form:not(.event-dates-form) { display:contents; }
.schedule-setting-row { grid-column:2; display:grid; grid-template-columns:minmax(0,1fr); gap:12px; width:100%; }
.schedule-setting-item { display:grid; grid-template-columns:minmax(150px,1fr) minmax(130px,180px); align-items:center; gap:16px; min-width:0; }
.schedule-setting-item label { min-width:0; white-space:normal; }
.schedule-setting-item input { min-width:0; }
.schedule-settings-form:not(.event-dates-form) > .field-hint { text-align:center; }

.schedule-settings-date-control { grid-column:1/-1; justify-content:flex-start; padding-bottom:4px; }
.schedule-settings-form label { color:#9fb0c2; font-weight:650; }
.schedule-settings-form input { min-height:42px; width:100%; padding:8px 11px; border:1px solid #344558; border-radius:9px; background:#0e151d; color:#edf2f7; }
.schedule-settings-form input[type="number"] { max-width:180px; }
.schedule-settings-form .field-hint { grid-column:1 / -1; margin:-8px 0 0; color:#9fb0c2; font-size:12px; }
.event-dates-form { grid-template-columns:minmax(0,1fr); gap:12px; }
.event-date-range { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:16px; width:100%; max-width:1400px; margin-inline:auto; padding:12px; border:1px solid #293442; border-radius:12px; background:#101720; }
.event-title-range[hidden],.event-date-range[hidden],.event-date-single[hidden],.event-calendar-grid[hidden] { display:none!important; }
.event-date-field { display:grid; grid-template-columns:minmax(170px,220px) minmax(0,1fr); align-items:center; gap:12px; min-width:0; }
.event-datetime-controls { display:grid; grid-template-columns:minmax(170px,1fr) minmax(84px,96px) minmax(84px,96px); align-items:center; gap:8px; min-width:0; }
.event-datetime-controls label { display:flex; align-items:center; gap:4px; min-width:0; color:#9fb0c2; font-size:11px; }
.event-datetime-controls input,.event-datetime-controls select { width:100%; min-width:0; min-height:40px; padding:7px 9px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; }
.event-datetime-controls input[type="date"] { position:relative; min-width:170px; padding-left:34px; padding-right:7px; font-variant-numeric:tabular-nums; }
.event-datetime-controls input[type="date"]::-webkit-calendar-picker-indicator { position:absolute; left:8px; right:auto; margin:0; cursor:pointer; }
.event-date-field label,.event-date-single label { color:#9fb0c2; font-weight:650; }
.event-date-field input,.event-date-single input { min-height:42px; width:100%; min-width:0; padding:8px 11px; border:1px solid #344558; border-radius:9px; background:#0e151d; color:#edf2f7; }
.event-date-separator { color:#9fb0c2; font-size:18px; font-weight:750; }
.event-date-single { display:grid; grid-template-columns:minmax(170px,220px) minmax(0,1fr); align-items:center; gap:12px; width:100%; max-width:690px; margin-inline:auto; padding:12px; border:1px solid #293442; border-radius:12px; background:#101720; }
html[data-theme="light"] .event-date-range,html[data-theme="light"] .event-date-single { background:#fff; border-color:#c4d0dc; }
html[data-theme="light"] .event-date-field label,html[data-theme="light"] .event-date-single label,html[data-theme="light"] .event-date-separator { color:#506579; }
html[data-theme="light"] .event-date-field input,html[data-theme="light"] .event-date-single input { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
.event-calendar-grid { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:10px; width:100%; overflow:visible; padding:2px 0 8px; }
.event-calendar-toolbar { display:block; width:max-content; max-width:100%; overflow:visible; }
.event-calendar-kind-tabs { display:grid; grid-template-columns:repeat(2,180px) repeat(2,135px); align-items:stretch; justify-content:start; gap:10px; }
.event-calendar-kind-tabs button { min-height:32px; padding:5px 10px; border:2px solid var(--event-kind-color) !important; background:#fff; color:var(--event-kind-text); font-size:12px; white-space:nowrap; }
.event-calendar-kind-tabs button.has-value:not(.is-active) { background:var(--event-kind-color); color:var(--event-kind-text); box-shadow:none; }
.event-calendar-kind-tabs button.is-active { border-color:transparent !important; background:transparent; color:var(--event-kind-text); box-shadow:inset 0 -3px 0 var(--event-kind-color); }
.event-calendar-kind-tabs button { position:relative; }
.event-calendar-grid.is-calendar-empty .event-calendar-kind-tabs button::after { position:absolute; z-index:20; top:calc(100% + 7px); left:0; width:max-content; max-width:min(360px,80vw); padding:8px 10px; border:1px solid #75b9ff; border-radius:8px; background:#101720; color:#eef7ff; box-shadow:0 10px 28px #000b; content:attr(data-tooltip); font-size:12px; font-weight:500; line-height:1.45; text-align:left; white-space:normal; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .12s ease; }
.event-calendar-grid.is-calendar-empty .event-calendar-kind-tabs button:hover::after,.event-calendar-grid.is-calendar-empty .event-calendar-kind-tabs button:focus-visible::after,.event-calendar-grid.is-calendar-empty .event-calendar-kind-tabs button.is-active::after { opacity:1; visibility:visible; }
.event-calendar-kind-tabs [data-event-calendar-select="registration"] { --event-kind-color:#9be7a5; --event-kind-text:#216f2c; }
.event-calendar-kind-tabs [data-event-calendar-select="additional"] { --event-kind-color:#87ceeb; --event-kind-text:#11698f; }
.event-calendar-kind-tabs [data-event-calendar-select="bracket"] { --event-kind-color:#ff6b6b; --event-kind-text:#a82424; }
.event-calendar-kind-tabs [data-event-calendar-select="tournament"] { --event-kind-color:#ffd966; --event-kind-text:#7a5900; }
.event-calendar-month-strip { display:grid; grid-template-columns:auto auto auto; align-items:center; justify-content:start; gap:10px; width:max-content; max-width:100%; overflow-x:auto; padding-bottom:4px; }
.event-calendar-shared-nav { min-height:40px; padding:8px 14px; white-space:nowrap; }
.event-calendar-shared-months { display:grid; grid-template-columns:repeat(3,230px); justify-content:start; gap:10px; overflow-x:auto; padding-bottom:4px; }
.event-calendar-shared-months .event-calendar-month { box-sizing:border-box; width:230px; min-width:230px; padding:10px; border:1px solid #293442; border-radius:12px; background:#101720; }
.event-calendar-time-panels { display:grid; grid-template-columns:repeat(2,180px) repeat(2,135px); align-items:stretch; justify-content:start; gap:10px; width:max-content; max-width:100%; overflow-x:auto; padding:2px 0 4px; white-space:nowrap; }
.event-calendar-time-card { display:flex; align-items:center; justify-content:center; gap:8px; min-width:0; padding:6px 9px; border:1px solid currentColor; border-radius:8px; background:transparent; }
.event-calendar-time-card h4 { display:none; }
.event-calendar-card { display:grid; gap:8px; min-width:260px; padding:10px; border:1px solid #293442; border-radius:12px; background:#101720; }
.event-calendar-card h4 { margin:0; color:#75b9ff; font-size:14px; text-align:center; }
.event-calendar-months { display:grid; gap:10px; }
.event-calendar-month { display:grid; gap:5px; }
.event-calendar-month-head { display:grid; grid-template-columns:28px 1fr 28px; align-items:center; gap:4px; }
.event-calendar-shared-months .event-calendar-month-head { display:flex; justify-content:center; }
.event-calendar-month-head strong { text-align:center; font-size:12px; }
.event-calendar-nav { width:28px; height:26px; min-height:0; padding:0; border-radius:7px; background:#222d3a; color:#dce7f2; }
.event-calendar-weekdays,.event-calendar-days { display:grid; grid-template-columns:repeat(7,28px); justify-content:center; gap:2px; }
.event-calendar-weekdays span { color:#8192a4; font-size:10px; font-weight:750; text-align:center; }
.event-calendar-day { position:relative; height:28px; min-height:0; padding:0; border-radius:7px; background:transparent; color:#dce7f2; font-size:11px; font-weight:650; }
.event-calendar-day-number { position:relative; z-index:2; }
.event-calendar-markers { position:absolute; z-index:1; right:2px; bottom:2px; left:2px; display:grid; grid-template-columns:repeat(4,1fr); gap:1px; height:3px; }
.event-calendar-marker { display:block; min-width:0; border-radius:3px; }
.event-calendar-marker.is-registration { background:#9be7a5; }
.event-calendar-marker.is-additional { background:#87ceeb; }
.event-calendar-marker.is-bracket { background:#ff6b6b; }
.event-calendar-marker.is-tournament { background:#ffd966; }
.event-calendar-marker.is-endpoint { height:5px; transform:translateY(-1px); }
.event-calendar-marker.is-editing { position:absolute; right:-3px; bottom:0; left:-3px; height:3px; border-radius:0; transform:none; }
.event-calendar-grid[data-active-calendar="registration"] { --active-calendar-color:#9be7a5; }
.event-calendar-grid[data-active-calendar="additional"] { --active-calendar-color:#87ceeb; }
.event-calendar-grid[data-active-calendar="bracket"] { --active-calendar-color:#ff6b6b; }
.event-calendar-grid[data-active-calendar="tournament"] { --active-calendar-color:#ffd966; }
.event-calendar-day.is-active-range { background:var(--active-calendar-color); color:#111; box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--active-calendar-color),#000 28%); }
.event-calendar-day.is-static-registration { background:#9be7a5; color:#111; }
.event-calendar-day.is-static-additional { background:#87ceeb; color:#111; }
.event-calendar-day.is-static-bracket { background:#ff6b6b; color:#111; }
.event-calendar-day.is-static-tournament { background:#ffd966; color:#111; }
.event-calendar-day:hover,.event-calendar-day:focus-visible { outline:1px solid #62a8ff; background:#25384b; }
.event-calendar-day.is-active-range:hover,.event-calendar-day.is-active-range:focus-visible { background:var(--active-calendar-color); color:#111; }
.event-calendar-grid:not([data-active-calendar]) .event-calendar-day { cursor:default; }
.event-calendar-day.is-outside { visibility:hidden; pointer-events:none; }
.event-calendar-day.is-range { border-radius:2px; background:#214a68; color:#e9f6ff; }
.event-calendar-day.is-start,.event-calendar-day.is-end,.event-calendar-day.is-single { border-radius:7px; background:#1689c9; color:#fff; box-shadow:inset 0 0 0 1px #8bd4ff; }
.event-calendar-times { display:flex; align-items:center; gap:7px; padding:0; }
.event-calendar-time-card.is-registration .event-calendar-times,.event-calendar-time-card.is-additional .event-calendar-times { flex-direction:column; align-items:stretch; }
.event-calendar-time-card.is-registration .event-calendar-times > i,.event-calendar-time-card.is-additional .event-calendar-times > i { display:none; }
.event-calendar-time-card.is-registration .event-calendar-times label,.event-calendar-time-card.is-additional .event-calendar-times label { justify-content:space-between; }
.event-calendar-times label { display:flex; align-items:center; gap:5px; color:#9fb0c2; font-size:11px; font-weight:650; }
.event-calendar-times i,.event-calendar-times em { color:inherit; font-style:normal; }
.event-calendar-time-card.is-registration h4,.event-calendar-time-card.is-registration .event-calendar-times { color:#9be7a5; }
.event-calendar-time-card.is-additional h4,.event-calendar-time-card.is-additional .event-calendar-times { color:#62b7df; }
.event-calendar-time-card.is-bracket h4,.event-calendar-time-card.is-bracket .event-calendar-times { color:#ff6b6b; }
.event-calendar-time-card.is-tournament h4,.event-calendar-time-card.is-tournament .event-calendar-times { color:#ffd966; }
.event-calendar-time-card .event-calendar-times label > span { color:inherit; }
.event-calendar-times select { width:64px; min-width:64px; min-height:30px; padding:3px 7px; border:1px solid #344558; border-radius:7px; background:#0e151d; color:#edf2f7; font-size:11px; }
html[data-theme="light"] .event-calendar-card { border-color:#c4d0dc; background:#fff; }
html[data-theme="light"] .event-calendar-shared-months .event-calendar-month { border-color:#c4d0dc !important; background:#fff; color:#1d2a37; }
html[data-theme="light"] .event-calendar-card h4 { color:#1769c2; }
html[data-theme="light"] .event-calendar-nav { background:#e7eef5; color:#253c53; }
html[data-theme="light"] .event-calendar-day { color:#253c53; }
html[data-theme="light"] .event-calendar-day:hover,html[data-theme="light"] .event-calendar-day:focus-visible { background:#e6f1fb; }
html[data-theme="light"] .event-calendar-day.is-active-range { background:var(--active-calendar-color); color:#111; }
html[data-theme="light"] .event-calendar-times { border-color:#dce5ef; }
html[data-theme="light"] .event-calendar-times select { border-color:#c4d0dc; background:#fff; color:#1d2a37; }
#tournamentDetailsSettings .event-calendar-shared-months .event-calendar-month { border:1px solid #526679 !important; box-shadow:none !important; }
.guide-editor { margin-top:28px; border-top:1px solid var(--border,#2c3845); padding-top:20px; }
.guide-editor h3 { margin-bottom:6px; }
.guide-editor > div > p { color:#9fb0c2; margin:6px 0 14px; }
.guide-editor .guide-sharing-notice { color:#83b8ff; }
.guide-section-tabs { position:sticky; z-index:8; top:calc(var(--operator-header-height,56px) + 10px); grid-column:1; grid-row:1 / span 8; align-self:start; display:flex; flex-direction:column; gap:5px; width:132px; max-height:calc(100vh - var(--operator-header-height,56px) - 20px); overflow-y:auto; padding:4px 0 8px 4px; margin:0; }
.guide-tournament-title { display:flex; align-items:center; flex:0 0 auto; max-width:320px; padding:0 12px 0 2px; color:#e7f1fb; font-size:15px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.guide-tab-tools { display:flex; justify-content:flex-end; gap:8px; margin:16px 0 10px; }
.guide-tab-tools[hidden] { display:none; }
.guide-tab-tools button { min-height:36px; padding:7px 10px; font-size:12px; line-height:1.2; white-space:nowrap; }
.guide-tab-tools select { min-width:190px; min-height:36px; padding:7px 9px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; font-size:12px; line-height:1.2; white-space:nowrap; }
.guide-action-row { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:14px; }
.guide-action-row .guide-personal-archive { grid-column:1; justify-self:start; }
.guide-action-row .guide-step-actions { grid-column:2; }
.guide-action-row .guide-tab-tools { grid-column:3; justify-self:end; }
.guide-action-row-top { margin:8px 0 10px; }
.guide-action-row-bottom { margin-top:14px; padding-top:14px; border-top:1px solid #344558; }
.guide-action-row .guide-step-actions,.guide-action-row .guide-tab-tools { margin:0; padding:0; border:0; }
.guide-personal-archive { display:flex; flex-wrap:wrap; gap:7px; }
.guide-personal-archive button { min-height:36px; padding:7px 10px; font-size:12px; white-space:nowrap; }
.guide-personal-archive-inline-status { align-self:center; color:#9fb0c2; font-size:11px; }
.guide-personal-archive-rail { display:grid; grid-template-columns:1fr; gap:5px; width:116px; margin-top:5px; padding-top:9px; }
.guide-personal-archive-rail button { width:100%; min-height:32px; padding:6px 9px; border-radius:8px; background:#222d3a; color:#dce7f2; text-align:center; }
.guide-personal-archive-rail #operatorTutorialAgain { margin-top:3px; border-color:#6089b4; }
.guide-personal-archive-rail .guide-personal-archive-inline-status { width:100%; overflow-wrap:anywhere; text-align:center; }
.guide-reset-action-row { display:flex; justify-content:flex-end; margin:16px 0 24px; padding-top:14px; border-top:1px solid #344558; }
.guide-reset-action-row .danger { min-height:36px; padding:7px 14px; border:1px solid #d95b68 !important; border-radius:8px; background:#9a2634; color:#fff; font-size:12px; font-weight:750; }
.guide-reset-action-row .danger:hover { background:#ba3040; }
.guide-reset-action-row .danger:disabled { opacity:.6; cursor:wait; }
html[data-theme="light"] .guide-reset-action-row { border-color:#c4d0dc; }
html[data-theme="light"] .guide-reset-action-row .danger { border-color:#bd2636 !important; background:#c6283d; color:#fff; }
html[data-theme="light"] .guide-personal-archive-rail button { background:#e7eef5; color:#253c53; }
.guide-personal-archive-dialog { width:min(760px,calc(100vw - 28px)); max-height:min(82vh,760px); padding:26px; border:1px solid #344558; border-radius:14px; background:#151c25; color:#edf2f7; }
.guide-personal-archive-dialog::backdrop { background:#0009; }
.operator-tutorial { width:min(980px,calc(100vw - 36px)); max-height:calc(100vh - 36px); padding:30px; border:1px solid #526b84; border-radius:18px; background:#151c25; color:#edf2f7; }
.operator-tutorial::backdrop { background:#07111dcc; backdrop-filter:blur(3px); }
.operator-tutorial-language { float:right; margin-left:12px; }
.operator-tutorial-header .eyebrow { color:#75b9ff; font-size:12px; font-weight:800; letter-spacing:.08em; }
.operator-tutorial-header h2 { margin:8px 0; font-size:25px; }
.operator-tutorial-header p { margin:0; color:#b9c7d5; line-height:1.5; }
.operator-tutorial-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 22px; margin:20px 0 24px; padding:0; list-style:none; counter-reset:tutorial; }
.operator-tutorial-steps li { position:relative; min-height:48px; padding:10px 12px 10px 46px; border:1px solid #344558; border-radius:10px; background:#101720; line-height:1.45; counter-increment:tutorial; }
.operator-tutorial-steps li::before { position:absolute; left:12px; top:10px; display:grid; width:24px; height:24px; place-items:center; border-radius:50%; background:#1769c2; color:white; content:counter(tutorial); font-weight:800; }
.operator-tutorial > h3 { margin:0 0 10px; font-size:15px; }
.operator-tutorial-map { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.operator-tutorial-map button { min-height:40px; border:1px solid #40566b; border-radius:9px; background:#222d3a; color:#e6eef7; font-weight:750; cursor:pointer; }
.operator-tutorial-map button:hover,.operator-tutorial-map button:focus-visible { border-color:#75b9ff; background:#1769c2; color:#fff; outline:none; }
.operator-tutorial-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; margin-top:20px; }
.operator-tutorial-actions button { min-width:130px; min-height:40px; }
html[data-theme="light"] .operator-tutorial { border-color:#b8c7d5; background:#fff; color:#1d2a37; }
html[data-theme="light"] .operator-tutorial-header p { color:#506579; }
html[data-theme="light"] .operator-tutorial-steps li { border-color:#c4d0dc; background:#f7f9fc; }
html[data-theme="light"] .operator-tutorial-map button { border-color:#c4d0dc; background:#eaf1f8; color:#253c53; }
html[data-theme="light"] .operator-tutorial-map button:hover,html[data-theme="light"] .operator-tutorial-map button:focus-visible { border-color:#1769c2; background:#1769c2; color:#fff; }
.guide-personal-archive-dialog h3 { margin:0 0 8px; }
.guide-personal-archive-dialog p { margin:0 0 14px; line-height:1.5; }
.guide-personal-archive-list { display:grid; gap:8px; max-height:min(52vh,480px); overflow-y:auto; padding:4px; }
.guide-personal-archive-item { display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center; gap:10px; min-height:52px; padding:9px 12px; border:1px solid #344558; border-radius:9px; background:#0e151d; cursor:pointer; }
.guide-personal-archive-item:has(input:checked) { border-color:#62a8ff; background:#172b3d; box-shadow:inset 0 0 0 1px #62a8ff; }
.guide-personal-archive-item input { width:18px; height:18px; margin:0; accent-color:#1689c9; }
.guide-personal-archive-item-copy { display:grid; gap:3px; min-width:0; }
.guide-personal-archive-item-copy strong,.guide-personal-archive-item-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.guide-personal-archive-item-copy small { color:#9fb0c2; }
.guide-personal-archive-dialog .guide-personal-archive-status { min-height:1.5em; margin:10px 0; }
.guide-personal-archive-dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
.guide-personal-archive-dialog-actions .danger { border:1px solid #d95b68; background:#7f2832; color:#fff; }
html[data-theme="light"] .guide-personal-archive-dialog { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .guide-personal-archive-item { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .guide-personal-archive-item:has(input:checked) { border-color:#1769c2; background:#eaf4ff; box-shadow:inset 0 0 0 1px #1769c2; }
html[data-theme="light"] .guide-personal-archive-item-copy small { color:#506579; }
.guide-section-tab { position:relative; flex:0 0 auto; width:116px; min-height:32px; padding:6px 10px; overflow:hidden; border:1px solid #344558; border-right:0; border-radius:9px 0 0 9px; background:#151e28; color:#b9c7d5; font-size:12px; font-weight:700; line-height:1.2; text-align:left; white-space:nowrap; cursor:pointer; transition:background-color .15s ease,color .15s ease,border-color .15s ease; }
.guide-section-tab:hover,.guide-section-tab:focus-visible { background:#263545; color:#fff; }
.guide-section-tab[aria-selected="true"] { border-color:#66adff; background:#fff; color:#142536; }
.guide-step-actions { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid #344558; }
.guide-step-actions-top { margin:8px 0 0; padding:0; border-top:0; }
.guide-tab-tools-bottom { margin:14px 0 0; padding-top:14px; border-top:1px solid #344558; }
.guide-step-actions button { min-width:0; min-height:36px; padding:7px 10px; font-size:12px; line-height:1.2; white-space:nowrap; }
.guide-step-actions .primary { order:2; }
.guide-step-actions button:first-child { order:1; }
.guide-step-actions button:last-child { order:3; }
.guide-section { border:1px solid #344558; border-radius:10px; margin:0 0 10px; overflow:hidden; grid-template-columns:150px minmax(0,1fr); align-items:start; }
.guide-section:not([hidden]) { display:grid; }
.guide-section[hidden] { display:none; }
.guide-section > summary { display:flex; align-items:center; min-height:60px; padding:12px; font-weight:800; pointer-events:none; list-style:none; }
.guide-editor.guide-organizer-category .guide-section { grid-template-columns:minmax(220px,235px) minmax(0,1fr); }
.guide-editor.guide-organizer-category .guide-section > summary { white-space:nowrap; }
.guide-editor.guide-organizer-category .guide-section:has(.guide-template-controls) .guide-section-body { grid-template-columns:minmax(0,560px) minmax(220px,320px); justify-content:start; gap:12px; }
.guide-organizer-inline-fields { grid-template-columns:minmax(0,700px) !important; }
.guide-organizer-inline-section > summary,.guide-links-section > summary { display:none; }
.guide-organizer-inline-section,.guide-links-section { grid-template-columns:minmax(0,1100px); }
.guide-organizer-inline-section .guide-section-body,.guide-links-section .guide-section-body { padding-left:0 !important; max-width:1100px; }
.guide-organizer-inline-fields label,.guide-payment-fields label { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; gap:7px; min-width:0; }
.guide-organizer-inline-fields label > span,.guide-payment-fields label > span { white-space:nowrap; }
.guide-organizer-inline-fields input,.guide-links-section input,.guide-payment-fields input { width:100%; min-width:0; padding:8px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; font:inherit; }
.guide-links-section .guide-section-body { grid-template-columns:minmax(0,1fr) auto !important; }
.guide-links-section .additional-contact-list,.guide-links-section .guide-primary-link-row { grid-column:1 / -1; }
.guide-links-section .guide-add-contact { grid-column:1; justify-self:start; min-width:34px; }
.guide-links-section .guide-template-controls { grid-column:2; justify-self:end; }
.guide-section > summary::-webkit-details-marker { display:none; }
.guide-section-body { padding:10px 12px 10px 0; display:grid; gap:10px; }
.guide-section textarea,.guide-section-body > input:not([type="hidden"]),.additional-contact-row input { width:100%; padding:10px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; font:inherit; }
.guide-section textarea { resize:vertical; min-height:76px; }
.guide-section textarea[rows="10"] { min-height:15.5em; }
#tournamentDetailsSettings:not(.hidden) { display:grid; grid-template-columns:132px minmax(0,1fr); column-gap:12px; align-items:start; font-size:13px; }
#tournamentDetailsSettings > :not(.guide-section-tabs) { grid-column:2; min-width:0; }
#tournamentDetailsSettings #eventDatesForm,#tournamentDetailsSettings .guide-editor,#tournamentDetailsSettings #guideSectionsForm { display:contents; }
#tournamentDetailsSettings .event-venue-inline-row,
#tournamentDetailsSettings .event-calendar-navigation,
#tournamentDetailsSettings .guide-section[data-guide-category="organizer"],
#tournamentDetailsSettings .guide-section[data-guide-category="fees"],
#tournamentDetailsSettings .guide-section[data-guide-category="awards"] { margin-top:18px; }
#tournamentDetailsSettings .structured-division-table-section { margin-top:18px; }
#tournamentDetailsSettings .event-title-range,#tournamentDetailsSettings .event-calendar-grid,#tournamentDetailsSettings .guide-section,#tournamentDetailsSettings #eventDatesStatus,#tournamentDetailsSettings #guideSectionsStatus,#tournamentDetailsSettings .guide-action-row { grid-column:2; min-width:0; }
#tournamentDetailsSettings .guide-action-row-top { order:5; }
#tournamentDetailsSettings .event-title-range { order:10; }
#tournamentDetailsSettings .guide-section[data-guide-category="organizer"] { order:20; }
#tournamentDetailsSettings .guide-section[data-guide-category="fees"] { order:30; }
#tournamentDetailsSettings .event-calendar-grid { order:40; }
#tournamentDetailsSettings #eventDatesStatus { order:41; }
#tournamentDetailsSettings .guide-section[data-guide-category="divisions"] { order:50; }
#tournamentDetailsSettings .guide-section[data-guide-category="format"] { order:60; }
#tournamentDetailsSettings .guide-section[data-guide-category="awards"] { order:70; }
#tournamentDetailsSettings .guide-section[data-guide-category="eligibility"] { order:80; }
#tournamentDetailsSettings .guide-section[data-guide-category="terms"] { order:90; }
#tournamentDetailsSettings #guideSectionsStatus { order:110; }
#tournamentDetailsSettings .guide-action-row-bottom { order:120; }
#tournamentDetailsSettings .guide-reset-action-row { grid-column:2; order:130; min-width:0; }
#tournamentDetailsSettings [data-guide-category-anchor],#tournamentDetailsSettings .event-calendar-grid,#tournamentDetailsSettings .guide-section { scroll-margin-top:calc(var(--operator-header-height,56px) + 16px); }
#tournamentDetailsSettings label,#tournamentDetailsSettings summary,#tournamentDetailsSettings p { font-size:12px; }
#tournamentDetailsSettings input:not([type="checkbox"]):not([type="radio"]),#tournamentDetailsSettings select,#tournamentDetailsSettings textarea { min-height:34px; padding:7px 9px; font-size:13px; line-height:1.3; }
#tournamentDetailsSettings button { min-height:32px; padding:6px 9px; font-size:12px; line-height:1.2; }
#tournamentDetailsSettings,#tournamentDetailsSettings *:not(input):not(select):not(textarea) { border:0 !important; box-shadow:none !important; }
#tournamentDetailsSettings .guide-section > summary { min-height:46px; padding:9px 10px; font-size:12px; }
#tournamentDetailsSettings .guide-section-body { padding:7px 9px 7px 0; gap:7px; }
#tournamentDetailsSettings .guide-section-body { width:min(100%,1100px); }
.guide-scroll-highlight { animation:guide-scroll-highlight .9s ease-out; }
@keyframes guide-scroll-highlight { 0%,35% { box-shadow:0 0 0 3px #66adff,0 0 18px #66adff55; } 100% { box-shadow:none; } }
.guide-finals-priority .guide-section-body { grid-template-columns:1fr; }
.guide-finals-priority p { line-height:1.55; }
.finals-priority-list { display:flex; flex-wrap:nowrap; gap:6px; width:max-content; max-width:100%; min-width:0; }
.finals-priority-list > button { flex:0 0 auto; width:auto; min-width:max-content; padding:6px 9px; border:1px solid #4b6075; background:#222d3a; color:#edf2f7; cursor:grab; touch-action:none; }
.finals-priority-list > button::before { content:"⠿"; margin-right:7px; color:#75b9ff; }
.finals-priority-list > button.dragging { opacity:.45; cursor:grabbing; }
.finals-priority-list > button:focus-visible { outline:2px solid #75b9ff; outline-offset:2px; }
.finals-priority-list > button[data-finals-priority-rule="age"]::after { position:absolute; z-index:1000; top:calc(100% + 7px); left:0; width:max-content; max-width:min(520px,80vw); padding:8px 10px; border:1px solid #75b9ff; border-radius:8px; background:#101720; color:#eef7ff; box-shadow:0 10px 28px #000b; content:attr(data-tooltip); font-size:12px; font-weight:500; line-height:1.45; text-align:left; white-space:normal; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .12s ease; }
.finals-priority-list > button[data-finals-priority-rule="age"]:hover::after,.finals-priority-list > button[data-finals-priority-rule="age"]:focus-visible::after,.finals-priority-list > button[data-finals-priority-rule="age"].is-tooltip-open::after { opacity:1; visibility:visible; }
.guide-account-section { grid-template-columns:minmax(0,700px); }
.guide-account-section > summary { display:none !important; }
.guide-account-section .guide-section-body { grid-column:1; width:100%; padding-left:0 !important; }
.guide-section:has(#guide-equipment) .guide-section-body { grid-template-columns:minmax(220px,420px) auto; max-width:760px; }
.guide-payment-fields { display:grid; grid-template-columns:minmax(0,700px); gap:8px; }
.guide-payment-fields input { width:100%; min-width:0; padding:10px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; font:inherit; }
.guide-single-line .guide-section-body > input:not([type="hidden"]) { min-height:40px; }
.guide-section:has(.guide-template-controls) .guide-section-body { grid-template-columns:minmax(0,2fr) minmax(0,1fr); align-items:start; }
.guide-section:has(.guide-template-controls) .guide-template-controls { flex-wrap:nowrap; }
.guide-section:has(.guide-template-controls) .guide-template-controls select { flex:1 1 180px; }
.guide-section:has(.guide-template-controls) .guide-template-controls button { flex:0 0 auto; white-space:nowrap; }
.guide-section.guide-terms-section:has(.guide-template-controls) .guide-section-body { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
.guide-section.guide-terms-section .guide-template-controls { width:100%; max-width:none; flex-wrap:wrap; }
.guide-section.guide-terms-section .guide-template-controls select { flex:1 0 100%; width:100%; }
.guide-section.guide-terms-section .guide-template-controls button { flex:1 1 0; }
.guide-section.guide-terms-section textarea[rows="3"] { min-height:6.5em; resize:vertical; }
.guide-section.guide-terms-section .guide-expand-button { font-weight:700; }
.guide-section .guide-expand-button { flex:0 0 auto !important; width:max-content; max-width:150px; justify-self:start; }
.guide-section.guide-terms-section .guide-section-body,.guide-section.guide-expandable-section .guide-section-body { grid-template-columns:minmax(320px,820px) auto; max-width:1040px; }
.guide-section.guide-expandable-section textarea[rows="3"] { min-height:6.5em; resize:vertical; }
.guide-section.guide-expandable-section .guide-expand-button { font-weight:700; }
.guide-section.guide-match-rule-section textarea[rows="5"] { min-height:9em; resize:vertical; }
.guide-section.guide-match-rule-section .guide-expand-button { font-weight:700; }
#tournamentDetailsSettings .guide-long-editor:not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; align-content:flex-start; width:100%; overflow:visible; }
.guide-long-editor > summary { flex:0 0 auto; align-self:center; white-space:nowrap; }
.guide-long-editor > .guide-expand-button { flex:0 0 auto !important; align-self:center; justify-self:start; margin:0 0 0 8px; }
#tournamentDetailsSettings .guide-long-editor > .guide-section-body { flex:0 0 100%; grid-template-columns:minmax(0,1fr); width:100%; min-width:100%; max-width:none; padding-left:0; }
#tournamentDetailsSettings .guide-long-editor textarea[rows="10"] { width:100%; height:calc(13em + 16px); min-height:calc(13em + 16px); max-height:calc(13em + 16px); resize:none; }
#tournamentDetailsSettings .guide-long-editor .guide-template-controls { display:none; }
.guide-scoring-section { position:relative; z-index:2; grid-template-columns:minmax(0,1fr); overflow:visible; }
.guide-scoring-section > summary { display:none; }
.guide-scoring-section > .guide-section-body { grid-column:1 / -1; }
.guide-scoring-options { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; width:100%; max-width:none; padding:10px 12px; overflow:visible; border:1px solid #344558; border-radius:10px; background:transparent; }
.guide-scoring-options h4 { flex:0 0 auto; margin:0; font-size:14px; white-space:nowrap; }
.guide-scoring-options-grid { display:flex; flex:1 1 auto; flex-wrap:wrap; align-items:center; gap:10px 18px; min-width:0; }
.guide-scoring-options-grid > label { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:8px; min-height:38px; color:#c7d3df; font-weight:650; white-space:nowrap; }
.guide-scoring-method { display:flex; flex:0 0 auto; align-items:center; gap:8px; color:#c7d3df; font-weight:650; white-space:nowrap; }
.guide-scoring-method-buttons { position:relative; z-index:3; display:flex; align-items:center; gap:5px; }
.guide-scoring-method-buttons button { position:relative; min-height:34px; padding:5px 9px; border:1px solid #526679 !important; border-radius:8px; background:#222d3a; color:#c7d3df; white-space:nowrap; }
.guide-scoring-method-buttons button.is-selected { border-color:#62a8ff !important; background:#1769c2; color:#fff; }
.guide-scoring-method-buttons button::after { position:absolute; z-index:1000; top:calc(100% + 7px); left:0; width:max-content; max-width:min(360px,80vw); padding:8px 10px; border:1px solid #75b9ff; border-radius:8px; background:#101720; color:#eef7ff; box-shadow:0 10px 28px #000b; content:attr(data-tooltip); font-size:12px; font-weight:500; line-height:1.45; text-align:left; white-space:normal; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .12s ease; }
.guide-scoring-method-buttons button:hover::after,.guide-scoring-method-buttons button:focus-visible::after { opacity:1; visibility:visible; }
.guide-court-change output { min-width:28px; color:#75b9ff; font-weight:800; }
.guide-score-input { display:flex; align-items:center; gap:6px; color:#9fb0c2; font-size:13px; }
.guide-score-input input { width:88px; min-height:38px; padding:7px 9px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; font:inherit; text-align:right; }
html[data-theme="light"] .guide-scoring-options-grid > label { color:#31475b; }
html[data-theme="light"] .guide-scoring-method { color:#31475b; }
html[data-theme="light"] .guide-scoring-options { background:transparent; border-color:#c4d0dc; }
html[data-theme="light"] .guide-scoring-options h4 { color:#1d2a37; }
html[data-theme="light"] .guide-scoring-method-buttons button { border-color:#aebdcb !important; background:#fff; color:#31475b; }
html[data-theme="light"] .guide-scoring-method-buttons button.is-selected { border-color:#1769c2 !important; background:#1769c2; color:#fff; }
html[data-theme="light"] .guide-score-input { color:#506579; }
html[data-theme="light"] .guide-score-input input { background:#fff; color:#1d2a37; border-color:#c4d0dc; }

.additional-contact-list { display:grid; gap:8px; }
.additional-contact-row { display:grid; grid-template-columns:minmax(120px,.35fr) minmax(220px,1fr) auto; gap:8px; }
.guide-add-contact { justify-self:start; }
.guide-template-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.guide-template-controls select,.guide-tab-tools select { display:none !important; }
.guide-template-controls select { flex:1 1 220px; min-width:0; min-height:38px; padding:7px 9px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; }
.guide-template-controls button { min-height:36px; padding:6px 10px; font-size:12px; }
.guide-template-picker-dialog { width:min(460px,calc(100vw - 28px)); padding:20px; border:1px solid #344558; border-radius:14px; background:#151c25; color:#edf2f7; }
.guide-template-picker-dialog::backdrop { background:#0009; }
.guide-template-picker-dialog h3 { margin:0 0 12px; }
.guide-template-picker-dialog select { display:block !important; width:100%; min-height:40px; padding:7px 9px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; }
.guide-template-picker-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
html[data-theme="light"] .guide-template-picker-dialog { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .guide-template-picker-dialog select { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
.guide-division-section { grid-template-columns:minmax(0,1fr); }
.guide-division-section > summary { display:none; }
.guide-division-section .guide-section-body { grid-template-columns:minmax(0,2fr) minmax(280px,1fr); padding:10px 12px; }
.division-builder { grid-column:1 / -1; max-width:100%; padding:14px; border:1px solid #344558; border-radius:10px; background:transparent; }
.division-builder h4 { margin:0 0 12px; }
.division-builder-grid { display:grid; gap:9px; min-width:0; max-width:100%; padding:2px 2px 9px; }
.division-builder-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; min-width:0; max-width:100%; overflow-x:visible; }
.division-builder-row > label { display:grid; flex:0 0 auto; gap:5px; align-content:start; color:#c7d3df; font-size:12px; font-weight:650; white-space:nowrap; }
.division-choice-field { display:grid; flex:0 1 auto; grid-template-rows:auto 1fr; align-self:stretch; align-content:start; gap:6px; min-width:max-content; color:#c7d3df; font-size:12px; font-weight:650; white-space:nowrap; }
.division-choice-field > span { text-align:center; }
.division-choice-buttons { display:flex; flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:6px; }
.division-choice-buttons button { min-height:32px; padding:5px 10px; border:1px solid #526679 !important; border-radius:8px; background:#222d3a; color:#c7d3df; white-space:nowrap; }
.division-choice-buttons button.is-selected { border-color:#62a8ff !important; background:#1769c2; color:#fff; }
.division-builder-grid input,.division-builder-grid select { min-height:34px; padding:5px 7px; border:1px solid #344558; border-radius:8px; background:#0e151d; color:#edf2f7; font:inherit; font-size:12px; white-space:nowrap; }
.division-builder-grid input { width:118px; }
.division-builder-grid select { width:max-content; min-width:76px; max-width:none; field-sizing:content; }
#divisionAgeMin,#divisionAgeMax,#divisionDuprMin,#divisionDuprMax { width:59px; }
#divisionGender,#divisionEventType { min-width:76px; }
#divisionAgeMode { min-width:70px; }
#divisionAgeDate { width:138px; }
#divisionAgeDateField[hidden] { display:none; }
.division-builder-grid .division-check { display:flex; flex-direction:row; align-items:center; align-self:flex-end; min-height:34px; padding:0 5px; }
.division-builder-grid .division-check input { width:18px; min-height:18px; }
.division-scoring-toggle { grid-column:1 / -1; }
.division-scoring-fields { grid-column:1 / -1; display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:10px 12px; padding:10px; border:1px solid #344558; border-radius:8px; }
.division-scoring-fields legend { padding:0 6px; font-weight:700; }
.division-scoring-fields label { display:grid; gap:5px; }
.division-name-preview { margin:12px 0 8px; color:#78b9ff; font-weight:700; }
.division-builder-actions { display:flex; flex:0 0 auto; align-items:flex-end; gap:8px; margin-left:auto; }
#divisionBuilderStatus { min-height:20px; color:#ffc85c; }
.structured-division-list { display:grid; gap:8px; margin-top:8px; }
.structured-division-card { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px; border:1px solid #344558; border-radius:8px; background:#0e151d; }
.structured-division-card > div:first-child { display:grid; gap:4px; min-width:0; }
.structured-division-card small { color:#aebdcc; }
.structured-division-actions { display:flex; gap:5px; flex:0 0 auto; }
.structured-division-actions button { min-height:30px; padding:4px 8px; font-size:12px; }
html[data-theme="light"] .division-builder { background:transparent; border-color:#c4d0dc; }
html[data-theme="light"] .division-builder-row > label { color:#31475b; }
html[data-theme="light"] .division-choice-field { color:#31475b; }
html[data-theme="light"] .division-choice-buttons button { border-color:#aebdcb !important; background:#fff; color:#31475b; }
html[data-theme="light"] .division-choice-buttons button.is-selected { border-color:#1769c2 !important; background:#1769c2; color:#fff; }
html[data-theme="light"] .division-builder-grid input,html[data-theme="light"] .division-builder-grid select { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .division-scoring-fields { border-color:#c4d0dc; }
html[data-theme="light"] .structured-division-card { background:#fff; border-color:#c4d0dc; }
html[data-theme="light"] .structured-division-card small { color:#536b80; }
@media (max-width:1100px) { .division-scoring-fields { grid-template-columns:repeat(2,minmax(150px,1fr)); } }
html[data-theme="light"] .guide-section { border-color:#c4d0dc; }
html[data-theme="light"] .guide-section-tab { background:#f3f7fb; color:#405469; border-color:#c4d0dc; }
html[data-theme="light"] .guide-section-tab:hover,html[data-theme="light"] .guide-section-tab:focus-visible { background:#d9ebff; color:#124b82; }
html[data-theme="light"] .guide-section-tab[aria-selected="true"] { background:#1769c2; color:#fff; border-color:#1769c2; }
html[data-theme="light"] .guide-tournament-title { color:#1d2a37; }
html[data-theme="light"] .guide-tab-tools select { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .guide-step-actions { border-color:#c4d0dc; }
html[data-theme="light"] .guide-action-row-bottom { border-color:#c4d0dc; }
html[data-theme="light"] .guide-editor > div > p { color:#506579; }
html[data-theme="light"] .guide-editor .guide-sharing-notice { color:#135eaa; }
html[data-theme="light"] .guide-section textarea,html[data-theme="light"] .guide-section-body > input:not([type="hidden"]),html[data-theme="light"] .additional-contact-row input,html[data-theme="light"] .guide-template-controls select { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .guide-organizer-inline-fields input,html[data-theme="light"] .guide-links-section input { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .finals-priority-list > button { background:#e9f0f7; color:#253c53; border-color:#b5c5d4; }
html[data-theme="light"] .guide-payment-fields input { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .bracket-stage,html[data-theme="light"] .queue-court-card,html[data-theme="light"] .queue-upcoming-card { background:#fff; border-color:#c4d0dc; }
html[data-theme="light"] .bracket-match-card { background:#f6f9fc; border-color:#d9e2ec; }
html[data-theme="light"] .bracket-match-card p,html[data-theme="light"] .queue-court-card p,html[data-theme="light"] .queue-upcoming-card p { color:#1d2a37; }
html[data-theme="light"] .queue-upcoming-card small { color:#506579; }
html[data-theme="light"] .queue-upcoming-card.queue-conflict { border-color:#e5a3aa; background:#fff; }
html[data-theme="light"] .queue-upcoming-card.queue-eligible { border-color:#d3b646; background:#fff8d9; }
html[data-theme="light"] .queue-upcoming-card.queue-finals { border-color:#a8d7b7; background:#effaf2; }
html[data-theme="light"] .queue-upcoming-card.queue-finals.queue-conflict { border-color:#e5a3aa; background:#fff; }
html[data-theme="light"] .queue-court-card.queue-finals { border-color:#a8d7b7; background:#effaf2; }
html[data-theme="light"] .queue-court-stage { color:#755b00; }
html[data-theme="light"] .queue-court-card.queue-empty-court { border-color:#c4d0dc; background:#fff; }
html[data-theme="light"] .queue-court-card.queue-preliminary { border-color:#d3b646; background:#fff8d9; }
.division-order-actions { display:flex; gap:6px; }
.division-order-actions button { min-width:30px; padding:4px 7px; }
.division-order-drag-handle { cursor:grab; touch-action:none; font-size:20px; line-height:1; }
.division-order-drag-handle:active { cursor:grabbing; }
.schedule-estimate-table tr.is-dragging { opacity:.55; outline:1px dashed #67aaff; }
#scheduleSettingsStatus { grid-column:1 / -1; }
#scheduleSettingsStatus { min-height:1.5em; margin-top:10px; color:#82d6a5; }
/* Unified switch control for every settings switch. */
input[type="checkbox"][role="switch"] { position:relative; flex:none; width:48px; height:28px; min-height:28px; margin:0; padding:0; border:1px solid #718096; border-radius:999px; background:#354252; appearance:none; cursor:pointer; box-shadow:inset 0 1px 2px #0003; transition:background .18s ease,border-color .18s ease,box-shadow .18s ease; }
input[type="checkbox"][role="switch"]::before { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#f4f7fa; box-shadow:0 1px 3px #0005; transition:transform .18s ease; }
input[type="checkbox"][role="switch"]:checked { border-color:#2475cc; background:#2475cc; }
input[type="checkbox"][role="switch"]:checked::before { transform:translateX(20px); }
input[type="checkbox"][role="switch"]:focus-visible { outline:3px solid #75b9ff; outline-offset:3px; }
input[type="checkbox"][role="switch"]:disabled { opacity:.55; cursor:not-allowed; }
html[data-theme="light"] input[type="checkbox"][role="switch"] { border-color:#9aaabd; background:#d8e0e9; }
html[data-theme="light"] input[type="checkbox"][role="switch"]:checked { border-color:#1769b5; background:#1769b5; }
@media (max-width:900px) { .schedule-settings-layout { grid-template-columns:minmax(0,1fr); } .schedule-setting-row { grid-column:1; } .schedule-estimates { grid-column:1; grid-row:auto; } #scheduleSettingsStatus { grid-column:1; } }
.schedule-estimates { grid-column:1; grid-row:1 / span 9; min-width:0; margin:0; padding:14px; border:1px solid #344558; border-radius:12px; }
.schedule-estimate-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 7px; }
.schedule-estimates h3 { flex:none; margin:0; font-size:17px; }
.schedule-estimate-heading > span { color:#9fb0c2; font-size:12px; font-weight:650; text-align:right; white-space:nowrap; }
.schedule-estimate-table-wrap { width:100%; min-width:0; overflow-x:visible; }
.schedule-estimate-table { width:100%; max-width:100%; table-layout:fixed; border-collapse:collapse; font-size:12px; }
.schedule-estimate-table th,.schedule-estimate-table td { padding:8px 5px; border-bottom:1px solid #293442; text-align:left; white-space:normal; overflow-wrap:break-word; word-break:keep-all; }
.schedule-estimate-table th:first-child,.schedule-estimate-table td:first-child { width:32%; }
.schedule-estimate-table th:nth-child(3),.schedule-estimate-table td:nth-child(3) { width:26%; }
.schedule-estimate-table th:nth-child(5),.schedule-estimate-table th:nth-child(6),.schedule-estimate-table td:nth-child(5),.schedule-estimate-table td:nth-child(6) { width:5.5em; padding-inline:3px; }
.schedule-estimate-table td:nth-child(5),.schedule-estimate-table td:nth-child(6) { white-space:nowrap; }
.schedule-estimate-table th { color:#9fb0c2; font-weight:700; }
.schedule-estimate-table th:first-child { text-align:left; }
.schedule-estimate-division { display:flex; align-items:center; gap:6px; min-width:0; }
.schedule-estimate-division > strong { flex:1; min-width:0; color:inherit; }
.schedule-estimate-order-actions { text-align:center !important; white-space:nowrap; }
.schedule-estimate-date.is-saturday { color:#4f9dff; font-weight:750; }
.schedule-estimate-date.is-sunday { color:#ff6577; font-weight:750; }
.schedule-estimate-warning { margin:10px 0 0; color:#ffcf72; font-size:13px; line-height:1.5; }
@media (max-width:700px) { .schedule-estimate-heading { align-items:flex-start; flex-direction:column; } .schedule-estimate-heading > span { text-align:left; white-space:normal; } }
.queue-schedule-section { margin-top:24px; padding-top:18px; border-top:1px solid #293442; }
.queue-schedule-section h3 { margin:0 0 10px; }
.queue-timeline-basis { margin:0 0 10px; color:#9fb0c2; font-size:13px; }
.today-queue-toolbar { z-index:11; }
.queue-player-search { display:grid; flex:0 0 auto; gap:6px; width:auto; max-width:640px; margin-bottom:12px; }
.queue-player-search label { font-size:13px; font-weight:700; }
.queue-player-search-input { display:flex; flex-wrap:nowrap; gap:8px; }
.queue-player-search-input input { flex:1 1 120px; min-width:0; width:100%; }
.queue-player-search-input button { flex:0 1 auto; white-space:normal; }
.queue-player-search input,.queue-player-search select { min-height:42px; font-size:16px; }
.queue-division-times { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.queue-date-label,.queue-date-select { flex:none; align-self:stretch; min-height:34px; }
.queue-date-label { display:inline-flex; align-items:center; padding:6px 10px; border-right:1px solid #344558; color:#fff; white-space:nowrap; }
.queue-date-select { width:auto; max-width:190px; padding:5px 30px 5px 9px; font-weight:700; }
.queue-division-time { min-height:34px; padding:5px 11px; border:1px solid #344558; border-radius:10px; background:#101720; color:#dce7f2; font-size:13px; line-height:1.2; }
#todayQueue .queue-division-time { cursor:pointer; text-align:left; }
#todayQueue .queue-division-time:hover,#todayQueue .queue-division-time:focus-visible { border-color:#75b9ff; color:#fff; outline:none; }
html[data-theme="light"] #todayQueue .queue-division-time:hover,html[data-theme="light"] #todayQueue .queue-division-time:focus-visible { color:#1769c2; }
#todayQueue .queue-schedule-table-wrap { position:relative; max-height:calc(100dvh - var(--operator-header-height,64px) - 76px); overflow:auto; scroll-margin-top:calc(var(--operator-header-height,64px) + 8px); scrollbar-gutter:auto; }
#todayQueue,#waitingQueuePage,#awardsPage { scroll-margin-top:calc(var(--operator-header-height,64px) + 10px); }
#todayQueueScheduleTable { --court-heading-bg:#101720; --court-heading-color:#75b9ff; border-collapse:separate; border-spacing:0; }
#todayQueueScheduleTable thead { position:sticky; top:0; z-index:9; }
#todayQueueScheduleTable thead th { position:sticky; top:0; z-index:9; background:var(--court-heading-bg); color:var(--court-heading-color); box-shadow:0 1px 0 #293442,0 6px 12px #0005; }
#todayQueueScheduleTable tfoot th { position:sticky; bottom:0; z-index:8; background:var(--court-heading-bg); color:var(--court-heading-color); box-shadow:0 -1px 0 #293442,0 -6px 12px #0005; }
html[data-theme="light"] #todayQueueScheduleTable { --court-heading-bg:#eaf1f8; --court-heading-color:#1769c2; }
html[data-theme="light"] #todayQueueScheduleTable thead th { box-shadow:0 1px 0 #dce5ef,0 6px 12px #142c4220; }
html[data-theme="light"] #todayQueueScheduleTable tfoot th { box-shadow:0 -1px 0 #dce5ef,0 -6px 12px #142c4220; }
#todayQueueScheduleTable tr.queue-time-target > th,#todayQueueScheduleTable tr.queue-time-target > td { box-shadow:inset 0 2px #75b9ff,inset 0 -2px #75b9ff; }
.queue-schedule-table-wrap { position:relative; width:100%; min-width:0; overflow-x:auto; overflow-y:auto; border:1px solid #293442; border-radius:12px; }
.queue-schedule-table { width:100%; min-width:0; border-collapse:collapse; table-layout:fixed; }
.queue-schedule-table th,.queue-schedule-table td { padding:8px; border:1px solid #293442; vertical-align:top; text-align:left; }
.queue-schedule-table thead th { position:sticky; top:0; background:#101720; color:#75b9ff; }
.queue-schedule-table tbody th { width:76px; white-space:nowrap; color:#9fb0c2; }
.queue-schedule-table-today { width:max-content; min-width:0; table-layout:auto; }
.queue-schedule-table-today th.queue-time-left,.queue-schedule-table-today th.queue-time-right { position:sticky; width:1px; min-width:max-content; max-width:none; padding:6px 3px; white-space:nowrap; text-align:center; background:#101720; color:#9fb0c2; z-index:5; }
.queue-schedule-table-today .queue-time-left { left:0; }
.queue-schedule-table-today .queue-time-right { right:0; }
#todayQueueScheduleTable th.queue-time-left { text-align:right; }
#todayQueueScheduleTable th.queue-time-right { text-align:left; }
.queue-schedule-table-today thead th.queue-time-left,.queue-schedule-table-today thead th.queue-time-right { z-index:10; color:#75b9ff; }
#todayQueueScheduleTable thead th:not(.queue-time-left):not(.queue-time-right),#todayQueueScheduleTable tbody td,#todayQueueScheduleTable tfoot th:not(.queue-time-left):not(.queue-time-right) { width:clamp(170px,22vw,260px); min-width:170px; }
.queue-schedule-table tr.queue-current-time-row > * { border-top:2px solid #ff334f !important; border-bottom:2px solid #ff334f !important; }
.queue-schedule-table tr.queue-current-time-row > :first-child { border-left:2px solid #ff334f !important; }
.queue-schedule-table tr.queue-current-time-row > :last-child { border-right:2px solid #ff334f !important; }
.queue-schedule-table td { min-width:0; background:#111923; }
.queue-schedule-table td.queue-cell-women { background:#48202b; border-color:#81404e; }
.queue-schedule-table td.queue-cell-men { background:#19334c; border-color:#345d80; }
.queue-schedule-table td.queue-cell-mixed { background:#44391c; border-color:#75602b; }
.queue-schedule-table td.queue-cell-live { box-shadow:inset 0 0 0 2px #fff; }
.queue-schedule-table td.queue-cell-completed { color:#aab5c0; }
.queue-schedule-table td.queue-cell-women.queue-cell-completed { background:#321c23; border-color:#5e3741; }
.queue-schedule-table td.queue-cell-men.queue-cell-completed { background:#17283a; border-color:#2b4963; }
.queue-schedule-table td.queue-cell-mixed.queue-cell-completed { background:#332d1c; border-color:#594b29; }
.queue-schedule-table td.queue-cell-completed .queue-timeline-match,
.queue-schedule-table td.queue-cell-completed .queue-match-division,
.queue-schedule-table td.queue-cell-completed .queue-match-team { color:#aab5c0; }
.queue-schedule-table td:empty { background:#0e141c; }
.queue-timeline-number { display:inline-block; margin-right:6px; color:#ff9b5e; font-size:12px; }
.queue-timeline-stage { display:inline-block; color:#91a9c2; font-size:11px; font-weight:700; vertical-align:1px; }
.queue-timeline-match { display:block; margin-top:3px; overflow-wrap:anywhere; color:#dce7f2; font-size:11px; line-height:1.35; }



.queue-match-division { display:block; margin-bottom:3px; font-weight:700; }
.queue-match-team { display:block; }
.queue-match-team + .queue-match-team { margin-top:3px; }
.queue-player-name[data-match-identity] { cursor:pointer; border-radius:4px; transition:background-color .14s ease,color .14s ease,box-shadow .14s ease; }
.queue-player-name[data-match-identity]:hover,.queue-player-name[data-match-identity]:focus-visible,.queue-player-name.is-active { color:#fff; background:#1689c9; box-shadow:0 0 0 2px #1689c955; outline:none; }
.queue-schedule-table td.queue-player-match-highlight { position:relative; z-index:2; border-color:#58d7ff !important; box-shadow:inset 0 0 0 3px #58d7ff,0 0 14px #58d7ff80 !important; filter:none; opacity:1; }
.queue-timeline-score { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 8px; margin-top:6px; color:#f0f2f4; font-size:12px; font-weight:700; line-height:1.3; }
.queue-timeline-score strong { color:#c2c8ce; font-weight:600; }
.queue-timeline-score span { white-space:nowrap; }
html[data-theme="light"] .queue-schedule-section { border-color:#dce5ef; }
html[data-theme="light"] .queue-division-time,html[data-theme="light"] .queue-schedule-table td { background:#f5f8fb; color:#253c53; border-color:#dce5ef; }
html[data-theme="light"] #todayQueue .queue-division-times { background:transparent; border-color:transparent; box-shadow:none; }
html[data-theme="light"] .today-queue-toolbar { background:#fffffff2; border-color:#dce5ef; box-shadow:none; }
html[data-theme="light"] #todayQueuePlayerChoices { border-color:#c4d0dc; background:#fff; box-shadow:0 8px 24px #142c4230; }
html[data-theme="light"] .queue-schedule-table thead th { background:#eaf1f8; }
html[data-theme="light"] .queue-schedule-table tbody th { color:#536779; border-color:#dce5ef; }
html[data-theme="light"] .queue-schedule-table-today th.queue-time-left,html[data-theme="light"] .queue-schedule-table-today th.queue-time-right { background:#eaf1f8; color:#536779; }
html[data-theme="light"] .queue-schedule-table td:empty { background:#fff; }
html[data-theme="light"] .queue-timeline-match { color:#253c53; }
html[data-theme="light"] .queue-timeline-score { color:#27313b; }
html[data-theme="light"] .queue-timeline-score strong { color:#68727d; }
html[data-theme="light"] .queue-schedule-table td.queue-cell-women { background:#ffe5eb; border-color:#e3a7b4; }
html[data-theme="light"] .queue-schedule-table td.queue-cell-men { background:#e1efff; border-color:#a9c8e8; }
html[data-theme="light"] .queue-schedule-table td.queue-cell-mixed { background:#fff3c9; border-color:#e5d08a; }
html[data-theme="light"] .queue-schedule-table td.queue-cell-completed { color:#52606d; }
html[data-theme="light"] .queue-schedule-table td.queue-cell-women.queue-cell-completed { background:#efd0d8; border-color:#cf929f; }
html[data-theme="light"] .queue-schedule-table td.queue-cell-men.queue-cell-completed { background:#cbdcec; border-color:#91aec9; }
html[data-theme="light"] .queue-schedule-table td.queue-cell-mixed.queue-cell-completed { background:#eadfb8; border-color:#c7b46f; }
html[data-theme="light"] .queue-schedule-table td.queue-cell-completed .queue-timeline-match,
html[data-theme="light"] .queue-schedule-table td.queue-cell-completed .queue-match-division,
html[data-theme="light"] .queue-schedule-table td.queue-cell-completed .queue-match-team { color:#52606d; }
.queue-placement-tag { display:inline; font-size:1.05em; vertical-align:baseline; }
html[data-theme="light"] .queue-player-name[data-match-identity]:hover,html[data-theme="light"] .queue-player-name[data-match-identity]:focus-visible,html[data-theme="light"] .queue-player-name.is-active { color:#fff; background:#0878ba; }
html[data-theme="light"] .queue-schedule-table td.queue-player-match-highlight { border-color:#008dcc !important; box-shadow:inset 0 0 0 3px #008dcc,0 0 12px #008dcc66 !important; }
html[data-theme="light"] .queue-court-card.queue-player-card-highlight,html[data-theme="light"] .queue-upcoming-card.queue-player-card-highlight { border-color:#008dcc !important; box-shadow:inset 0 0 0 3px #008dcc,0 0 12px #008dcc66 !important; }
.preliminary-groups { display:block; }
#preliminaryDraw { width:calc(100vw - 8px); margin-left:calc(50% - 50vw + 4px); padding-right:clamp(10px,.8vw,16px); padding-left:clamp(10px,.8vw,16px); overflow-x:visible; }
.results-content-layout { position:relative; z-index:0; isolation:isolate; --bracket-card-reference-width:150px; display:grid; grid-template-columns:max-content max-content; align-items:start; justify-content:start; column-gap:var(--bracket-card-reference-width); width:max-content; min-width:0; margin-right:auto; margin-left:auto; }
.results-qualification-connectors { position:absolute; z-index:2; inset:0; overflow:visible; pointer-events:none; }
.results-qualification-connector { fill:none; stroke-width:2.5; stroke-linecap:round; vector-effect:non-scaling-stroke; filter:drop-shadow(0 0 2px #0008); }
.results-qualification-connector.is-selected-team-path { stroke:#a3e635; stroke-width:3; filter:drop-shadow(0 0 2px #a3e63577); }
html[data-theme="light"] .results-qualification-connector { filter:drop-shadow(0 0 1px #fff); }
.results-content-layout > .preliminary-groups { min-width:0; }
.results-side-column { display:grid; align-self:start; justify-self:start; gap:0; width:max-content; min-width:0; max-width:none; }
.results-bracket-flow { position:relative; top:auto; align-self:start; margin-top:0; }
.results-podium-block { position:relative; z-index:1; width:100%; max-width:560px; margin:0 auto; }
.results-podium { position:relative; width:100%; max-width:560px; margin:0 auto; aspect-ratio:1582 / 994; overflow:visible; }
.results-podium > img { display:block; width:100%; height:100%; object-fit:contain; }
.results-podium-caption { position:relative; z-index:30; display:flex; flex-wrap:wrap; justify-content:center; gap:3px 8px; margin:-8px 0 0; color:#9fb0c2; font-size:14px; line-height:1.35; text-align:center; }
.results-podium-caption strong,.results-podium-caption span { white-space:nowrap; }
.results-podium-caption strong { color:#edf2f7; }
.results-podium-team { position:absolute; display:grid; grid-template-columns:repeat(2,max-content); align-items:center; justify-content:center; column-gap:8px; width:max-content; max-width:none; padding:4px 7px; border-radius:8px; background:#fffffff0; color:#231b14; text-align:center; text-shadow:0 1px #fff; box-shadow:0 2px 8px #0003; transform:translateX(-50%); }
.results-podium-team strong,.results-podium-team small { min-width:0; overflow:visible; text-overflow:clip; white-space:nowrap; }
.results-podium-team strong { font-size:16px; }
.results-podium-team small { font-size:12px; }
.results-podium-first { top:-9%; left:50%; }
.results-podium-second { top:6%; left:20%; }
.results-podium-third { top:12%; left:81%; }
.preliminary-standings-table-wrap { max-width:none; overflow:visible; border:0; border-radius:0; }
.preliminary-standings-table { width:max-content; min-width:0; border-collapse:collapse; font-size:13px; }
.preliminary-standings-table th,.preliminary-standings-table td { width:1%; padding:5px 7px; border:1px solid #293442; text-align:center; white-space:nowrap; }
.preliminary-standings-table .preliminary-group-header th { background:#223347; color:#8bc5ff; }
.preliminary-standings-table .preliminary-group-header th { border-bottom:1px solid #293442; }
.preliminary-standings-table .preliminary-group-header th { position:sticky; top:var(--results-sticky-heading-top,118px); z-index:5; }
.preliminary-standings-table .preliminary-group-letter-header,.preliminary-standings-table td.preliminary-group-letter-cell { width:0 !important; min-width:0 !important; padding:0 !important; border:0 !important; }
.preliminary-standings-table td.preliminary-group-letter-cell { position:relative; }
.preliminary-standings-table .preliminary-group-letter { position:absolute; z-index:1; top:1px; right:100%; bottom:1px; display:grid; width:25px; place-items:center; background:#223347; color:#8bc5ff; }
.preliminary-standings-table .preliminary-group-letter-text { display:block; transform:scaleX(.72) scaleY(1.18); font-family:"Arial Narrow","Roboto Condensed",sans-serif; font-size:30px; font-stretch:condensed; font-weight:850; line-height:1; }
.preliminary-standings-table .preliminary-record-column { min-width:max-content; white-space:nowrap !important; }
.preliminary-standings-table .preliminary-q-column { min-width:24px; padding-right:2px; padding-left:2px; font-variant-numeric:tabular-nums; }
.preliminary-standings-table .preliminary-finals-column { min-width:40px; font-weight:750; }
.preliminary-standings-table td.preliminary-finals-eliminated { color:#8493a3; }
.preliminary-standings-table td.preliminary-q-not-applicable { min-width:24px; }
.preliminary-standings-table .preliminary-q-placeholder { background:transparent; }
.preliminary-standings-table tr.preliminary-group-start > td { border-top:1px solid #293442; }
.preliminary-standings-table tbody tr:nth-child(even) td { background:#111a24; }
.results-player-name[data-results-player-id] { cursor:pointer; border-radius:4px; }
.preliminary-standings-table tr.results-player-team-highlight > td,.preliminary-standings-table tr.is-selected-path-team > td { position:relative; box-shadow:inset 0 2px #a3e635,inset 0 -2px #a3e635; }
.preliminary-standings-table tr.results-player-team-highlight > td:not(.preliminary-group-letter-cell):first-child,.preliminary-standings-table tr.is-selected-path-team > td:not(.preliminary-group-letter-cell):first-child,.preliminary-standings-table tr.results-player-team-highlight > td.preliminary-group-letter-cell + td,.preliminary-standings-table tr.is-selected-path-team > td.preliminary-group-letter-cell + td { box-shadow:inset 2px 0 #a3e635,inset 0 2px #a3e635,inset 0 -2px #a3e635; }
.preliminary-standings-table tr.results-player-team-highlight > td:last-child,.preliminary-standings-table tr.is-selected-path-team > td:last-child { box-shadow:inset -2px 0 #a3e635,inset 0 2px #a3e635,inset 0 -2px #a3e635; }
.preliminary-standings-table tr.is-selected-path-tooltip > td:last-child::after { position:absolute; z-index:40; top:50%; left:calc(100% + 6px); width:max-content; max-width:min(330px,75vw); padding:8px 10px; border:1px solid #a3e635; border-radius:8px; background:#263516; color:#efffcf; box-shadow:0 8px 24px #0008; content:attr(data-tooltip); font-size:12px; font-weight:600; line-height:1.4; white-space:normal; transform:translateY(-50%); pointer-events:none; }
.bracket-match-card p.results-player-team-highlight { border-radius:5px; background:transparent; box-shadow:0 0 0 2px #a3e635; }
html[data-theme="light"] .preliminary-controls { border-color:#dce5ef; background:#fffffff2; }
html[data-theme="light"] .results-qualification-priority,html[data-theme="light"] .results-qualification-summary { color:#40566b; }
html[data-theme="light"] .results-ranking-help { border-color:#9eb1c4; background:#f6f9fc; color:#253c53; }
html[data-theme="light"] .results-ranking-help::after { border-color:#1766ad; background:#fff; color:#18283a; box-shadow:0 8px 24px #243d5840; }
html[data-theme="light"] .results-podium-caption { color:#506579; }
html[data-theme="light"] .results-podium-caption strong { color:#1d2a37; }
html[data-theme="light"] .preliminary-standings-table-wrap,html[data-theme="light"] .preliminary-standings-table th,html[data-theme="light"] .preliminary-standings-table td { border-color:#dce5ef; }
html[data-theme="light"] .preliminary-standings-table .preliminary-group-header th { background:#eaf1f8; color:#1769c2; }
html[data-theme="light"] .preliminary-standings-table .preliminary-group-letter { background:#eaf1f8; color:#1769c2; }
html[data-theme="light"] .preliminary-standings-table .preliminary-group-header th,
html[data-theme="light"] .preliminary-standings-table tr.preliminary-group-start > td { border-bottom-color:#dce5ef; border-top-color:#dce5ef; }
html[data-theme="light"] .preliminary-standings-table tbody td { background:#fff; }
.event-title-range { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.event-title-range label { display:grid; gap:6px; }
.event-inline-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:10px 18px; }
.event-venue-inline-row { grid-template-columns:minmax(0,700px); }
.event-inline-row label { display:grid; grid-template-columns:max-content minmax(120px,1fr); align-items:center; gap:8px; min-width:0; }
.event-inline-row label > span { white-space:nowrap; }
.event-inline-row input { min-width:0; }
@media (max-width:1180px) { .event-venue-inline-row { grid-template-columns:minmax(0,1fr); } }

.preliminary-group { min-width:0; padding:16px; }
.preliminary-group h3 { margin:0 0 12px; }
.preliminary-group ol { margin:0; padding:0; list-style:none; }
.preliminary-group li { margin:7px 0; overflow-wrap:anywhere; white-space:pre-line; }
.preliminary-group li small { display:block; opacity:.7; }
.preliminary-group li .preliminary-team-clubs { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; }
.preliminary-group .preliminary-advance { margin:14px 0; }
#preliminaryStatus:empty { display:none; }
.preliminary-matches { display:grid; gap:6px; margin-top:10px; font-size:13px; }
.preliminary-match { display:grid; grid-template-columns:3.8em minmax(0,1fr) auto; gap:6px; overflow-wrap:anywhere; }
.preliminary-match-code { color:#9fc1ff; white-space:nowrap; }
.preliminary-match-score { min-width:2ch; color:#8de0aa; text-align:right; }
.finals-bracket-flow { --bracket-column-gap:16px; --bracket-stage-padding:8px; position:relative; display:grid; width:max-content; grid-template-columns:repeat(3,max-content); grid-template-rows:repeat(2,minmax(0,1fr)); column-gap:var(--bracket-column-gap); row-gap:18px; align-items:stretch; margin:14px 0 0 auto; }
.finals-bracket-flow[data-bracket-spacing] { --bracket-column-gap:calc(var(--bracket-card-reference-width,150px) / 2); --bracket-stage-padding:0px; }
.bracket-connectors { position:absolute; z-index:2; inset:0; overflow:visible; pointer-events:none; }
.bracket-connector { fill:none; stroke:#617184; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.bracket-connector.is-advanced { stroke:#9aa8b7; stroke-width:3; filter:drop-shadow(0 0 2px #9aa8b766); }
.bracket-connector.is-selected-team-path { stroke:#a3e635 !important; stroke-width:3; opacity:.95; filter:drop-shadow(0 0 2px #a3e63577); }
.bracket-connector.is-medal-path { stroke-width:3.5; opacity:1; }
.bracket-connector.has-team-color { stroke:var(--bracket-connector-color) !important; }
.bracket-connector.has-team-color.color-black { filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff); }
html[data-theme="light"] .bracket-connector { stroke:#93a3b4; }
html[data-theme="light"] .bracket-connector.is-advanced { stroke:#667788; }
.results-side-column .results-bracket-flow { width:max-content; margin:0; grid-template-columns:repeat(3,max-content); }
.finals-bracket-flow.has-round-of-16 { grid-template-columns:repeat(4,max-content); }
.results-side-column .results-bracket-flow.has-round-of-16 { grid-template-columns:repeat(4,max-content); }
.finals-bracket-flow.has-round-of-32 { grid-template-columns:repeat(5,max-content); }
.results-side-column .results-bracket-flow.has-round-of-32 { grid-template-columns:repeat(5,max-content); }
.bracket-stage { position:relative; z-index:1; min-width:0; padding:10px var(--bracket-stage-padding); border:0; border-radius:0; background:#101720; }
.has-round-of-16 .bracket-stage-bracketRoundOf16 { grid-column:1; grid-row:1 / 3; }
.has-round-of-16 .bracket-stage-bracketQuarterfinal { grid-column:2; grid-row:1 / 3; }
.has-round-of-16 .bracket-stage-bracketSemifinal { grid-column:3; grid-row:1 / 3; }
.has-round-of-16 .bracket-stage-bracketFinal { grid-column:4; grid-row:1; }
.has-round-of-16 .bracket-stage-bracketThirdPlace { grid-column:4; grid-row:2; }
.has-round-of-16 .bracket-final-column-title { grid-column:4; }
.has-round-of-32 .bracket-stage-bracketRoundOf32 { grid-column:1; grid-row:1 / 3; }
.has-round-of-32 .bracket-stage-bracketRoundOf16 { grid-column:2; grid-row:1 / 3; }
.has-round-of-32 .bracket-stage-bracketQuarterfinal { grid-column:3; grid-row:1 / 3; }
.has-round-of-32 .bracket-stage-bracketSemifinal { grid-column:4; grid-row:1 / 3; }
.has-round-of-32 .bracket-stage-bracketFinal { grid-column:5; grid-row:1; }
.has-round-of-32 .bracket-stage-bracketThirdPlace { grid-column:5; grid-row:2; }
.has-round-of-32 .bracket-final-column-title { grid-column:5; }
.bracket-stage-bracketQuarterfinal { grid-column:1; grid-row:1 / 3; }
.bracket-stage-bracketSemifinal { grid-column:2; grid-row:1 / 3; }
.bracket-stage-bracketFinal { grid-column:3; grid-row:1; align-self:end; }
.bracket-stage-bracketThirdPlace { grid-column:3; grid-row:2; align-self:start; }
.bracket-final-column-title { position:sticky; top:var(--results-sticky-heading-top,118px); z-index:5; grid-column:3; grid-row:1; align-self:start; justify-self:stretch; margin:10px var(--bracket-stage-padding) 0; box-sizing:border-box; padding:5px 8px; border:1px solid #293442; background:#223347; color:#8bc5ff; font-size:16px; font-weight:750; line-height:20px; text-align:center; white-space:nowrap; }
.bracket-stage-bracketFinal .bracket-stage-cards,.bracket-stage-bracketThirdPlace .bracket-stage-cards { height:auto; }
.bracket-stage h3 { margin:0 0 12px; font-size:16px; }
.results-bracket-flow .bracket-stage h3 { position:sticky; top:var(--results-sticky-heading-top,118px); z-index:5; display:flex; width:100%; min-height:32px; align-items:center; justify-content:center; margin:0 0 8px; box-sizing:border-box; padding:5px 8px; border:1px solid #293442; background:#223347; color:#8bc5ff; font-size:16px; line-height:20px; text-align:center; white-space:nowrap; }
.results-bracket-flow .bracket-stage-bracketFinal h3 { display:none; }
html[data-theme="light"] .bracket-final-column-title,html[data-theme="light"] .results-bracket-flow .bracket-stage h3 { border-color:#dce5ef; background:#eaf1f8; color:#1769c2; }
.bracket-stage-cards { display:grid; gap:10px; align-content:space-around; height:calc(100% - 32px); }
.bracket-match-card { position:relative; z-index:3; width:max-content; min-width:100%; max-width:none; padding:4px 6px; border-radius:11px; box-shadow:none; }
.bracket-match-card.bracket-match-bye { border:1px dashed #cf7783; background:#3b2027; box-shadow:inset 0 0 0 1px #a74e5d55; }
html[data-theme="light"] .bracket-match-card.bracket-match-bye { border-color:#d67e8c; background:#ffe8ec; box-shadow:inset 0 0 0 1px #efb3be; }
.bracket-match-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:4px; color:#9fb0c2; font-size:12px; }
.bracket-match-top .bracket-queue-number,.bracket-match-top .bracket-stage-label { display:none; }
.bracket-match-top:not(:has(.bracket-completion)) { display:none; }
.bracket-queue-number,.queue-card-number { color:#9fc1ff; font-size:15px; }
html[data-theme="light"] .bracket-match-top { color:#40566b; }
.bracket-match-top .bracket-stage-label { margin-left:auto; }
.bracket-completion { padding:2px 5px; border-radius:999px; color:#714b00; background:#fff0b8; font-weight:700; white-space:nowrap; }
.queue-timeline-topline { display:flex; align-items:center; gap:6px; min-width:0; white-space:nowrap; }
.queue-timeline-topline .queue-timeline-state { display:inline; margin:0 0 0 auto; white-space:nowrap; }
.queue-timeline-topline .queue-match-division { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.queue-timeline-versus { display:grid; gap:1px; margin-top:3px; overflow-wrap:anywhere; white-space:normal; font-size:13px; line-height:1.22; }
.queue-timeline-versus .queue-match-team + .queue-match-team { margin-top:0; }
.bracket-match-card p { display:flex; align-items:center; gap:6px; width:max-content; min-width:100%; min-height:1.2em; margin:3px 0; color:#edf2f7; white-space:nowrap; font-size:13px; }
.bracket-match-card > p + p { position:relative; }
.bracket-match-card > p + p::before { content:""; position:absolute; top:-2px; left:0; right:0; height:1px; background:#64758a; pointer-events:none; }
html[data-theme="light"] .bracket-match-card > p + p::before { background:#a9b8c8; }
.bracket-match-card p.bracket-unresolved-stage { justify-content:center; min-width:72px; color:#9fb0c2; font-weight:750; }
.bracket-match-card p.results-placement-gold { background:#e8c547; color:#211b05; }
.bracket-match-card p.results-placement-silver { background:#b8c0c8; color:#17202a; }
.bracket-match-card p.results-placement-bronze { background:#f2a45f; color:#231306; box-shadow:inset 0 0 0 1px #b55d1c; }
.bracket-match-card p[class*="results-placement-"] { margin-inline:-3px; padding:3px; border-radius:5px; }
.bracket-match-card p[class*="results-placement-"] .bracket-participant-names,
.bracket-match-card p[class*="results-placement-"] .bracket-participant-score { color:inherit; }
html[data-theme="light"] .bracket-match-card p.results-placement-gold { background:#f3d45d; color:#211b05; }
html[data-theme="light"] .bracket-match-card p.results-placement-silver { background:#d7dce1; color:#17202a; }
html[data-theme="light"] .bracket-match-card p.results-placement-bronze { background:#f5b476; color:#231306; box-shadow:inset 0 0 0 1px #c76f2b; }
/* Medal teams in the preliminary table keep their original fills; only outline the whole row. */
.preliminary-standings-table tr.results-placement-gold > td,
.preliminary-standings-table tr.results-placement-silver > td,
.preliminary-standings-table tr.results-placement-bronze > td { position:relative; }
.preliminary-standings-table tr.results-placement-gold > td { box-shadow:inset 0 2px #e8c547,inset 0 -2px #e8c547; }
.preliminary-standings-table tr.results-placement-gold > td:not(.preliminary-group-letter-cell):first-child,.preliminary-standings-table tr.results-placement-gold > td.preliminary-group-letter-cell + td { box-shadow:inset 2px 0 #e8c547,inset 0 2px #e8c547,inset 0 -2px #e8c547; }
.preliminary-standings-table tr.results-placement-gold > td:last-child { box-shadow:inset -2px 0 #e8c547,inset 0 2px #e8c547,inset 0 -2px #e8c547; }
.preliminary-standings-table tr.results-placement-silver > td { box-shadow:inset 0 2px #b8c0c8,inset 0 -2px #b8c0c8; }
.preliminary-standings-table tr.results-placement-silver > td:not(.preliminary-group-letter-cell):first-child,.preliminary-standings-table tr.results-placement-silver > td.preliminary-group-letter-cell + td { box-shadow:inset 2px 0 #b8c0c8,inset 0 2px #b8c0c8,inset 0 -2px #b8c0c8; }
.preliminary-standings-table tr.results-placement-silver > td:last-child { box-shadow:inset -2px 0 #b8c0c8,inset 0 2px #b8c0c8,inset 0 -2px #b8c0c8; }
.preliminary-standings-table tr.results-placement-bronze > td { box-shadow:inset 0 2px #f2a45f,inset 0 -2px #f2a45f; }
.preliminary-standings-table tr.results-placement-bronze > td:not(.preliminary-group-letter-cell):first-child,.preliminary-standings-table tr.results-placement-bronze > td.preliminary-group-letter-cell + td { box-shadow:inset 2px 0 #f2a45f,inset 0 2px #f2a45f,inset 0 -2px #f2a45f; }
.preliminary-standings-table tr.results-placement-bronze > td:last-child { box-shadow:inset -2px 0 #f2a45f,inset 0 2px #f2a45f,inset 0 -2px #f2a45f; }
.bracket-participant-label,.bracket-participant-names,.bracket-participant-score { flex:none; }
.bracket-participant-names { margin:0; color:#dce7f2; font-size:12px; line-height:1.15; }
.bracket-participant-score { margin:0 0 0 auto; color:#9fc1ff; font-size:12px; font-weight:700; }
html[data-theme="light"] .bracket-participant-names { color:#40566b; }
html[data-theme="light"] .bracket-participant-score { color:#235d9c; }
.awards-division-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,560px),1fr)); gap:12px; }
.awards-division-list.is-single-division { grid-template-columns:minmax(0,600px); justify-content:center; }
.awards-division-card { min-width:0; padding:12px; box-shadow:none; }
.awards-division-card h3 { margin:0 0 8px; font-size:15px; }
.awards-division-podium { margin-bottom:28px; }
.awards-filter-tools { position:sticky; }
.awards-filter-center { display:flex; align-items:center; justify-content:center; gap:8px; margin:0 auto; }
.awards-page-footer { display:flex; flex-direction:column; align-items:center; gap:7px; margin-top:20px; padding:18px 12px 6px; border-top:1px solid #344558; }
.awards-copy-text-button { min-height:44px; max-width:100%; padding:10px 18px; border:1px solid #15803d; border-radius:10px; background:#16a34a; color:#fff; font-size:14px; font-weight:750; line-height:1.4; text-align:center; white-space:normal; }
.awards-copy-text-button::before { content:"📑"; margin-right:6px; }
.awards-copy-text-button:hover,.awards-copy-text-button:focus-visible { background:#15803d; }
.awards-page-footer output { min-height:1em; color:#8de0aa; font-size:12px; }
html[data-theme="light"] .awards-page-footer output { color:#176b47; }
#awardsCopyText.awards-export-help::after { top:auto; right:auto; bottom:calc(100% + 7px); left:50%; transform:translateX(-50%); }
.awards-placement-list { display:grid; gap:5px; margin:0; padding:0; list-style:none; }
.awards-placement-row { display:grid; grid-template-columns:minmax(54px,auto) minmax(0,1fr) auto; align-items:center; gap:8px; padding:7px 0; border-top:1px solid #293442; font-size:13px; }
.awards-team-name { min-width:0; overflow-wrap:anywhere; }
.awards-result-player-name { font-size:16px; font-weight:800; }
.awards-result-player-details { font-size:13px; }
.awards-player-name[data-awards-player-id] { cursor:pointer; border-radius:4px; transition:background-color .12s ease,color .12s ease,box-shadow .12s ease; }
.awards-player-name[data-awards-player-id]:hover,.awards-player-name[data-awards-player-id]:focus-visible,.awards-player-name.is-active { background:#1689c9; color:#fff; outline:none; box-shadow:0 0 0 3px #1689c955; }
.awards-place-action { grid-column:2; grid-row:2; justify-self:start; white-space:nowrap; padding:5px 9px; font-size:12px; }
.awards-place-action.is-completed { border-color:#39794d; background:#1d5638; color:#d9ffe7; }
.awards-place-action.is-before { border-color:#8a6a26; background:#4a3817; color:#ffe39a; }
.awards-place-action:disabled { opacity:.55; }
.awards-export-actions { display:flex; justify-content:center; gap:8px; margin-top:10px; padding-top:10px; border-top:1px solid #293442; }
.awards-export-actions button { min-height:32px; padding:6px 12px; font-size:12px; }
.awards-export-help { position:relative; }
.awards-export-help::after { position:absolute; z-index:100; bottom:calc(100% + 7px); left:50%; width:max-content; max-width:min(300px,75vw); padding:7px 9px; border:1px solid #52718f; border-radius:7px; background:#101720; color:#eef7ff; box-shadow:0 5px 18px #0008; content:attr(data-tooltip); font-size:12px; font-weight:500; line-height:1.4; white-space:normal; transform:translateX(-50%); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .12s ease; }
.awards-export-help:hover::after,.awards-export-help:focus-visible::after { opacity:1; visibility:visible; }
.awards-export-feedback { min-height:18px; margin:5px 0 0; color:#8de0aa; font-size:12px; text-align:center; opacity:0; transition:opacity .18s ease; }
.awards-export-feedback.is-visible { opacity:1; }
.awards-pending,.awards-empty { color:#9fb0c2; }
html[data-theme="light"] .awards-placement-row { border-color:#dce5ef; }
html[data-theme="light"] .awards-export-actions { border-color:#dce5ef; }
html[data-theme="light"] .awards-export-help::after { border-color:#8ea5ba; background:#fff; color:#18283a; box-shadow:0 5px 18px #243d5840; }
html[data-theme="light"] .awards-export-feedback { color:#176b47; }
html[data-theme="light"] .awards-player-name[data-awards-player-id]:hover,html[data-theme="light"] .awards-player-name[data-awards-player-id]:focus-visible,html[data-theme="light"] .awards-player-name.is-active { background:#bfe7ff; color:#063e68; box-shadow:0 0 0 3px #008dcc66; }
html[data-theme="light"] .awards-place-action.is-completed { border-color:#55a878; background:#dff6e8; color:#0d6333; }
html[data-theme="light"] .awards-place-action.is-before { border-color:#d0a13a; background:#fff3cf; color:#795400; }
html[data-theme="light"] .awards-pending,html[data-theme="light"] .awards-empty { color:#65798c; }
.queue-preview-notice { margin:12px 0; padding:10px 14px; border:1px solid #896d38; border-radius:10px; background:#2d281d; color:#f5d895; font-size:13px; line-height:1.5; }
.queue-mode-actions { display:flex; align-items:center; gap:10px; }
.queue-mode-actions { justify-self:center; }
.queue-today-progress { justify-self:end; margin:0; margin-inline-end:12px; color:#9fc6ed; font-size:14px; font-weight:700; white-space:nowrap; }
.queue-court-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; margin:8px 0 10px; }
.queue-court-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
.queue-court-toolbar .queue-today-progress { justify-self:auto; margin:0; }
.queue-card-legend { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px 12px; min-width:0; color:#c7d3df; font-size:11px; line-height:1.25; }
.queue-card-legend > span { display:inline-flex; align-items:center; gap:4px; white-space:normal; }
.queue-legend-swatch { display:inline-block; width:10px; height:10px; flex:0 0 10px; border:1px solid currentColor; border-radius:3px; }
.queue-legend-swatch.is-blocked { border-color:#8f555d; background:#2d1d21; }
.queue-legend-swatch.is-finals { border-color:#48785a; background:#172a1e; }
.queue-legend-swatch.is-preliminary { border-color:#8e772c; background:#3a3217; }
.queue-court-row-actions { justify-self:end; }
.queue-court-row-actions { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.queue-court-row-actions span { margin-inline-end:3px; font-size:13px; font-weight:700; }
.queue-court-row-actions button { width:28px; min-width:28px; min-height:28px; padding:2px; font-size:18px; font-weight:800; line-height:1; }
.queue-court-row-actions button:disabled { opacity:.4; cursor:default; }
@media (max-width:760px) {
  .queue-court-toolbar { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .queue-card-legend { grid-column:1 / -1; grid-row:2; flex-wrap:wrap; justify-content:center; gap:5px 10px; }
  .queue-card-legend > span { white-space:normal; }
}
.queue-mode-actions button { min-height:30px; padding:5px 9px; border:1px solid transparent; font-size:12px; line-height:1.1; }
.queue-help-button { position:relative; }
.queue-help-button::after { content:attr(data-tooltip); position:absolute; z-index:20; left:50%; bottom:calc(100% + 7px); width:max-content; max-width:min(360px,80vw); padding:7px 9px; border:1px solid #52718f; border-radius:7px; background:#101720; color:#eef7ff; box-shadow:0 5px 18px #0008; font-size:12px; font-weight:500; line-height:1.4; white-space:normal; transform:translateX(-50%); opacity:0; pointer-events:none; transition:opacity .12s ease; }
.queue-help-button:hover::after,.queue-help-button:focus-visible::after { opacity:1; }
.queue-board-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
.queue-board-layout h3 { margin:8px 0 10px; font-size:17px; }
.queue-upcoming-header { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:14px; min-width:max-content; margin:8px 0 10px; overflow:visible; }
.queue-upcoming-title-controls { display:flex; align-items:center; justify-self:start; gap:8px; margin-inline-start:12px; }
.queue-upcoming-header h3 { margin:0; }
.queue-visible-count-actions { display:flex; gap:4px; }
.queue-visible-count-actions button { width:28px; min-width:28px; min-height:28px; padding:2px; font-size:18px; font-weight:800; line-height:1; }
.queue-court-grid,.queue-upcoming-list { display:grid; grid-template-columns:repeat(var(--queue-card-columns,1),minmax(0,1fr)); gap:8px; }
.queue-upcoming-list.is-day-complete { grid-template-columns:minmax(0,1fr); }
.queue-day-complete-panel { display:flex; min-height:118px; padding:20px; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; }
.queue-day-complete-message { margin:0; color:#edf2f7; font-size:clamp(20px,2.4vw,32px); font-weight:900; }
.queue-day-complete-action-hint { margin:0; color:#b9c7d5; font-size:clamp(13px,1.2vw,16px); font-weight:700; }
.queue-day-complete-action { margin:0 4px; padding:4px 9px; border:1px solid #75b9ff; border-radius:7px; background:#1769c2; color:#fff; font:inherit; font-weight:900; line-height:1.1; vertical-align:baseline; }
.queue-day-complete-action:hover,.queue-day-complete-action:focus-visible { background:#2583df; }
.queue-day-complete-action.is-reset { border-color:#facc15; background:#facc15; color:#000; }
.queue-day-complete-action.is-reset:hover,.queue-day-complete-action.is-reset:focus-visible { border-color:#eab308; background:#eab308; color:#000; }
html[data-theme="light"] .queue-day-complete-message { color:#19334d; }
html[data-theme="light"] .queue-day-complete-action-hint { color:#506579; }
.queue-court-card,.queue-upcoming-card { min-width:0; padding:12px; box-shadow:none; border-radius:12px; }
.queue-court-card { min-height:0; padding:8px 8px 4px; }
.queue-court-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:4px; }
.queue-court-heading.has-active-match { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
.queue-court-heading.has-active-match > strong { justify-self:start; }
.queue-court-heading.has-active-match > .mock-status { justify-self:end; }
.queue-court-card p,.queue-upcoming-card p { margin:7px 0; color:#d7e2ef; overflow-wrap:anywhere; white-space:pre-line; font-size:13px; }
.queue-upcoming-card { display:block; }
.queue-card-match-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 6px; white-space:nowrap; }
.queue-card-division { color:#000; font-size:13px; }
.queue-card-teams { display:grid; gap:3px; }
.queue-card-teams p { margin:0; text-align:center; }
.queue-upcoming-card .queue-card-versus { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:7px; min-height:48px; }
.queue-upcoming-card .queue-card-team { display:grid; align-content:center; justify-items:center; gap:2px; min-width:0; }
.queue-upcoming-card .queue-card-team-left { text-align:right; }
.queue-upcoming-card .queue-card-team-right { text-align:left; }
.queue-upcoming-card .queue-card-vs { align-self:center; color:#7e91a5; font-size:13px; font-weight:800; text-transform:lowercase; }
.queue-upcoming-card .queue-card-team .queue-player-name { display:block; max-width:100%; overflow:hidden; font-size:14px; line-height:1.2; text-overflow:clip; white-space:nowrap; }
.queue-court-card .queue-player-name,.queue-upcoming-card .queue-player-name { font-size:14px; font-weight:800; }
.queue-pickleball-court { container-type:inline-size; display:grid; grid-template-columns:15fr 7fr 3px 7fr 15fr; grid-template-rows:1fr 1fr; width:100%; aspect-ratio:44 / 20; overflow:hidden; border:2px solid #fff; background:#2f89bf; box-sizing:border-box; }
.queue-court-player-cell { display:flex; align-items:center; justify-content:center; min-width:0; padding:2px; background:#2b75a5; color:#fff; text-align:center; }
.queue-court-player-cell.is-left { grid-column:1; border-right:2px solid #fff; }
.queue-court-player-cell.is-right { grid-column:5; border-left:2px solid #fff; }
.queue-court-player-cell.is-top { grid-row:1; border-bottom:1px solid #fff; }
.queue-court-player-cell.is-bottom { grid-row:2; border-top:1px solid #fff; }
.queue-court-player-cell.is-solo { grid-row:1 / 3; border-top:0; border-bottom:0; }
.queue-court-player-cell .queue-player-name { display:block; max-width:100%; overflow:hidden; color:#fff; font-size:clamp(10px,1vw,13px); font-weight:800; line-height:1.15; text-overflow:clip; white-space:nowrap; }
.queue-court-kitchen { grid-row:1 / 3; background:#368ec2; }
.queue-court-kitchen.is-left { grid-column:2; }
.queue-court-kitchen.is-right { grid-column:4; }
.queue-court-net { grid-column:3; grid-row:1 / 3; background:#fff; }
.queue-court-controls { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:6px; margin-top:4px; }
.queue-court-controls .queue-card-number { justify-self:start; }
.queue-court-controls .mock-status { justify-self:end; }
.queue-player-conflict { color:#ff8490; font-weight:800; }
.queue-court-card.queue-player-card-highlight,.queue-upcoming-card.queue-player-card-highlight { position:relative; z-index:2; border-color:#58d7ff !important; box-shadow:inset 0 0 0 3px #58d7ff,0 0 14px #58d7ff80 !important; }
.waiting-queue-tools { position:sticky; top:var(--app-sticky-top,64px); z-index:4; display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; padding:7px; border:1px solid #293442; border-radius:10px; background:#151c25f2; backdrop-filter:blur(10px); }
.waiting-queue-division-tabs { display:flex; align-items:center; gap:6px; max-width:100%; overflow-x:auto; scrollbar-width:thin; }
.waiting-queue-division-tab { flex:none; min-height:32px; padding:5px 11px; border:1px solid #344558; border-radius:999px; background:#151c25; color:#edf2f7; font-size:12px; white-space:nowrap; }
.waiting-queue-division-tab[aria-selected="true"] { border-color:#62a8ff; background:#62a8ff; color:#07111e; }
.waiting-queue-search input { width:210px; min-height:32px; padding:6px 9px; font-size:12px; }
#waitingQueueResetFilters,#awardsResetFilters { min-height:32px; padding:6px 9px; font-size:12px; }
#todayQueuePlayerReset { height:32px; min-height:32px; padding:5px 9px; font-size:12px; line-height:1.2; }
.waiting-queue-result-count { color:#9fc6ed; font-size:12px; font-weight:750; white-space:nowrap; }
.results-filter-tools { position:static; display:flex; flex:0 1 auto; align-items:center; justify-content:flex-start; gap:6px; min-width:0; max-width:none; flex-wrap:nowrap; }
.results-filter-tools .waiting-queue-division-tabs { flex:none; max-width:none; flex-wrap:nowrap; justify-content:flex-start; overflow:visible; }
.results-filter-tools .waiting-queue-division-tab { min-height:28px; padding:4px 8px; font-size:clamp(10px,.72vw,12px); }
.results-filter-tools .waiting-queue-search { flex:0 1 220px; min-width:150px; }
.results-filter-tools .waiting-queue-search input { width:100%; }
.results-search-highlight { border-radius:4px; background:#1689c9 !important; color:#fff !important; box-shadow:0 0 0 2px #1689c955; }
html[data-theme="light"] .results-search-highlight { background:#bfe7ff !important; color:#063e68 !important; box-shadow:0 0 0 2px #008dcc55; }
.waiting-queue-table-wrap { max-width:100%; max-height:calc(100dvh - var(--app-sticky-top,64px) - 70px); overflow:auto; border:1px solid #293442; border-radius:12px; }
.waiting-queue-table { width:max-content; min-width:0; margin:0 auto; table-layout:auto; border-collapse:collapse; font-size:12px; }
.waiting-queue-table th,.waiting-queue-table td { width:1%; padding:7px 8px; border:1px solid #293442; text-align:center; white-space:nowrap; }
.waiting-queue-table thead th { position:sticky; top:0; z-index:2; padding-top:4px; padding-bottom:4px; background:#101720; color:#75b9ff; }
.waiting-queue-header-filter { width:auto; min-width:0; max-width:105px; height:22px; min-height:22px; padding:1px 18px 1px 4px; border-color:transparent; border-radius:5px; background-color:transparent; color:inherit; font:inherit; font-size:11px; font-weight:700; line-height:1; }
.waiting-queue-header-filter.is-active { border-color:#58d7ff; background-color:#173a52; color:#fff; }
.waiting-queue-header-filter option { background:#101720; color:#e7edf4; }
.waiting-queue-table .waiting-queue-compact { width:1%; text-align:center; }
.waiting-queue-table .waiting-queue-team-a { background-color:#14283a; }
.waiting-queue-table .waiting-queue-team-b { background-color:#30233a; }
.waiting-queue-table td.waiting-queue-division,.waiting-queue-table td.waiting-queue-club { background-color:#0e141c; }
.waiting-queue-table td.waiting-queue-club { width:1%; max-width:none; overflow-wrap:normal; white-space:nowrap; }
.waiting-queue-table thead th.waiting-queue-club { background-color:#101720; }
.waiting-queue-table .waiting-queue-status { border-left:3px solid #75879a; border-right:3px solid #75879a; }
.waiting-queue-pending-team { text-align:center !important; font-weight:700; }
.waiting-queue-table tbody tr.waiting-player-match-highlight > td { background:#173a52; box-shadow:inset 0 2px #58d7ff,inset 0 -2px #58d7ff; }
.waiting-queue-player { display:inline-block; cursor:pointer; border-radius:4px; white-space:nowrap; }
.waiting-queue-player:hover,.waiting-queue-player:focus-visible,.waiting-queue-player.is-active { color:#fff; background:#1689c9; outline:none; box-shadow:0 0 0 2px #1689c955; }
.waiting-queue-status { font-weight:800; }
html[data-theme="light"] .waiting-queue-table-wrap,html[data-theme="light"] .waiting-queue-table th,html[data-theme="light"] .waiting-queue-table td { border-color:#dce5ef; }
html[data-theme="light"] .waiting-queue-tools { border-color:#dce5ef; background:#fffffff2; }
html[data-theme="light"] .waiting-queue-division-tab { border-color:#c4d0dc; background:#fff; color:#31475b; }
html[data-theme="light"] .waiting-queue-division-tab[aria-selected="true"] { border-color:#1769c2; background:#1769c2; color:#fff; }
html[data-theme="light"] .waiting-queue-table thead th { background:#eaf1f8; color:#1769c2; }
html[data-theme="light"] .waiting-queue-header-filter.is-active { background-color:#d7efff; color:#075b91; }
html[data-theme="light"] .waiting-queue-header-filter option { background:#fff; color:#17202a; }
html[data-theme="light"] .waiting-queue-table .waiting-queue-team-a { background-color:#e5f4ff; }
html[data-theme="light"] .waiting-queue-table .waiting-queue-team-b { background-color:#f4eafb; }
.waiting-queue-table thead th:is(.waiting-queue-team-a,.waiting-queue-team-b):not(.waiting-queue-club) { background-color:#193a50; }
html[data-theme="light"] .waiting-queue-table thead th:is(.waiting-queue-team-a,.waiting-queue-team-b):not(.waiting-queue-club) { background-color:#e5f4ff; }
html[data-theme="light"] .waiting-queue-table td.waiting-queue-division,html[data-theme="light"] .waiting-queue-table td.waiting-queue-club { background-color:#fff; }
html[data-theme="light"] .waiting-queue-table thead th.waiting-queue-club { background-color:#eaf1f8; }
html[data-theme="light"] .waiting-queue-table tbody tr.waiting-player-match-highlight > td { background:#dff3ff; box-shadow:inset 0 2px #008dcc,inset 0 -2px #008dcc; }
.queue-upcoming-empty { display:flex; align-items:center; justify-content:center; min-height:60px; color:#8593a2; border-style:dashed; }
.queue-upcoming-card small { color:#9fb0c2; }
.queue-upcoming-card.queue-conflict { border-color:#8f555d; background:#fff; }
.queue-upcoming-card.queue-eligible { border-color:#8e772c; background:#3a3217; }
.queue-upcoming-card.queue-finals { border-color:#48785a; background:#172a1e; }
.queue-upcoming-card.queue-finals.queue-conflict { border-color:#8f555d; background:#fff; }
.queue-court-card.queue-finals { border-color:#48785a; background:#172a1e; }
.queue-court-card.queue-preliminary { border-color:#8e772c; background:#3a3217; }
.queue-court-card.queue-medal-stage,.queue-upcoming-card.queue-medal-stage:not(.queue-conflict),.queue-legend-swatch.is-medal-stage { background:#322342; border-color:#9165b4; }
html[data-theme="light"] .queue-court-card.queue-medal-stage,html[data-theme="light"] .queue-upcoming-card.queue-medal-stage:not(.queue-conflict),html[data-theme="light"] .queue-legend-swatch.is-medal-stage { background:#f2e8fc; border-color:#bd96d9; }
.queue-schedule-table td.queue-stage-preliminary,.waiting-queue-table tr.queue-stage-preliminary > td:is(.waiting-queue-team-a,.waiting-queue-team-b):not(.waiting-queue-club) { background:#3a3217; border-color:#8e772c; }
.queue-schedule-table td.queue-stage-finals,.waiting-queue-table tr.queue-stage-finals > td:is(.waiting-queue-team-a,.waiting-queue-team-b):not(.waiting-queue-club) { background:#172a1e; border-color:#48785a; }
html[data-theme="light"] .queue-schedule-table td.queue-stage-preliminary,html[data-theme="light"] .waiting-queue-table tr.queue-stage-preliminary > td:is(.waiting-queue-team-a,.waiting-queue-team-b):not(.waiting-queue-club) { background:#fff8d9; border-color:#d3b646; }
html[data-theme="light"] .queue-schedule-table td.queue-stage-finals,html[data-theme="light"] .waiting-queue-table tr.queue-stage-finals > td:is(.waiting-queue-team-a,.waiting-queue-team-b):not(.waiting-queue-club) { background:#effaf2; border-color:#a8d7b7; }
.queue-schedule-table td.queue-medal-stage,.waiting-queue-table tr.queue-medal-stage > td:is(.waiting-queue-team-a,.waiting-queue-team-b):not(.waiting-queue-club) { background:#322342; border-color:#9165b4; }
html[data-theme="light"] .queue-schedule-table td.queue-medal-stage,html[data-theme="light"] .waiting-queue-table tr.queue-medal-stage > td:is(.waiting-queue-team-a,.waiting-queue-team-b):not(.waiting-queue-club) { background:#f2e8fc; border-color:#bd96d9; }
.queue-court-heading .queue-card-division { min-width:0; overflow:hidden; text-overflow:clip; white-space:nowrap; }
.queue-court-stage { flex:0 0 auto; color:#f2d66d; font-size:11px; font-weight:800; line-height:1.2; white-space:nowrap; }
.queue-court-card.queue-empty-court { border-color:#343a40; background:#000; }
.queue-auto-fill-ghost { position:fixed; z-index:2000; margin:0; pointer-events:none; transform-origin:center; box-shadow:0 12px 30px #0008; }
.queue-manual-drop-target { border-style:dashed; border-color:#648bb8; }
.queue-manual-drop-target.is-drag-over { border-color:#69b5ff; background:#1b2e43; box-shadow:0 0 0 2px #69b5ff66; }
#queueUpcoming.queue-manual-drop-target { padding:6px; border-width:2px; border-radius:12px; }
.queue-draggable { cursor:grab; }
.queue-draggable:active { cursor:grabbing; }
.queue-mode-actions #queueManualAssign,.queue-mode-actions #queueAssignOnce,.queue-mode-actions #queueAutoAssign { background:#1a232d; color:#c7d3df; border-color:#3b4a59; box-shadow:none; filter:none; transition:background-color .14s ease,color .14s ease,border-color .14s ease,box-shadow .14s ease; }
.queue-mode-actions #queueManualAssign.is-selected { background:#344a82; color:#fff; border-color:#80a9ff; box-shadow:0 0 0 2px #5688ef55; }
.queue-mode-actions #queueAutoAssign.is-selected { background:#18734d; color:#fff; border-color:#72d8a9; box-shadow:0 0 0 2px #3ab57b55; }
.queue-mode-actions #queueAssignOnce.is-activated { background:#886b14; color:#fff; border-color:#ffd763; box-shadow:0 0 0 2px #e7b82d55; }
.queue-mode-actions #queueAssignOnce.is-stopping,.queue-mode-actions #queueAutoAssign.is-stopping,.queue-mode-actions #queueAutomationToggle.is-stopping,#queueCompleteAll.is-stopping { background:#c62838; color:#fff; border-color:#f06b78; box-shadow:0 0 0 2px #d92f4055; }
.queue-mode-actions #queueAutomationToggle { background:#18734d; color:#fff; border-color:#72d8a9; }
html[data-theme="light"] .queue-today-progress { color:#315f88; }
html[data-theme="light"] .queue-card-legend { color:#40566c; }
html[data-theme="light"] .queue-legend-swatch.is-blocked { border-color:#e5a3aa; background:#fff0f1; }
html[data-theme="light"] .queue-legend-swatch.is-finals { border-color:#a8d7b7; background:#effaf2; }
html[data-theme="light"] .queue-legend-swatch.is-preliminary { border-color:#d3b646; background:#fff8d9; }
html[data-theme="light"] .queue-mode-actions #queueManualAssign,html[data-theme="light"] .queue-mode-actions #queueAssignOnce,html[data-theme="light"] .queue-mode-actions #queueAutoAssign { background:#fff; color:#31475b; border-color:#bdc9d5; }
html[data-theme="light"] .queue-mode-actions #queueManualAssign.is-selected { background:#4e70bd; color:#fff; border-color:#31559f; }
html[data-theme="light"] .queue-mode-actions #queueAutoAssign.is-selected { background:#25875e; color:#fff; border-color:#176b47; }
html[data-theme="light"] .queue-mode-actions #queueAssignOnce.is-activated { background:#d39b12; color:#fff; border-color:#9b7007; }
html[data-theme="light"] .queue-mode-actions #queueAutomationToggle { background:#25875e; color:#fff; border-color:#176b47; }
html[data-theme="light"] .queue-mode-actions #queueAssignOnce.is-stopping,html[data-theme="light"] .queue-mode-actions #queueAutoAssign.is-stopping,html[data-theme="light"] .queue-mode-actions #queueAutomationToggle.is-stopping,html[data-theme="light"] #queueCompleteAll.is-stopping { background:#c62838; color:#fff; border-color:#f06b78; box-shadow:0 0 0 2px #d92f4055; }
.queue-simulation-duration { display:block; margin:2px 0 8px; color:#75b9ff; font-weight:700; }
.queue-schedule-table td[rowspan] { vertical-align:top; }
.queue-upcoming-card button { padding:6px 9px; font-size:12px; }
.queue-waiting-order-actions { display:flex; align-items:stretch; justify-content:center; gap:5px; margin-top:8px; }
.queue-waiting-order-actions button { background:transparent; min-width:0; margin:0; padding:3px 5px; font-size:16px; line-height:1; white-space:nowrap; }
#courtQueueManagement { scroll-margin-top:110px; }
.operator-settings { position:relative; margin-left:0; }
.operator-settings > summary { list-style:none; gap:6px; }
.operator-settings > summary::-webkit-details-marker { display:none; }
.operator-settings > summary::after { content:"▾"; font-size:11px; }
.operator-settings-menu { position:absolute; z-index:5; top:calc(100% + 8px); right:0; width:max-content; min-width:220px; max-width:min(300px,90vw); padding:7px; display:grid; gap:3px; }
.operator-settings-menu button { width:100%; padding:10px 12px; background:transparent; color:#dce7f2; font-size:13px; text-align:left; }
.operator-settings-menu button:hover:not(:disabled) { background:#263545; }
.operator-settings-menu button:disabled { color:#9fb0c2; opacity:.55; cursor:default; }
#registrationList,#tournamentOverview,#tournamentSettings,#preliminaryDraw { scroll-margin-top:110px; }
.metrics { display:grid; grid-template-columns:repeat(6,minmax(140px,1fr)); gap:14px; margin:18px 0; }
.tournament-overview .toolbar { padding:16px 20px; }
.tournament-overview .metrics { margin:12px 0; }
.date-registration-overview-title { margin-top:20px; }
.mock-dashboard-notice { margin:12px 0; padding:10px 14px; border:1px solid #896d38; border-radius:10px; background:#2d281d; color:#f5d895; font-size:13px; }
.mock-dashboard-section { margin:18px 0 22px; }
.mock-dashboard-section h3,.registration-overview-title { margin:0 0 12px; font-size:18px; }
.mock-court-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; }
.mock-court-card { padding:14px; min-width:0; }
.mock-card-heading,.mock-court-card p,.mock-division-card > div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mock-card-heading { margin-bottom:14px; gap:5px; }
.mock-card-heading strong { white-space:nowrap; }
.mock-court-card p { margin:8px 0; font-size:13px; }
.mock-court-card p strong { color:#edf2f7; }
.mock-court-card small { display:block; margin-top:14px; color:#9fb0c2; }
.mock-status { padding:4px 7px; border-radius:7px; font-size:11px; font-weight:750; white-space:nowrap; }
.mock-status.live { background:#153e2e; color:#7ee2ad; }
.mock-status.waiting { background:#49370e; color:#ffd36a; }
.mock-status.empty { background:#263545; color:#bdcede; }
html[data-theme="light"] .mock-status.empty { background:#e4edf6; color:#40566b; }
.mock-division-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px; }
.mock-division-card { padding:16px; min-width:0; }
.mock-division-card > div { align-items:flex-start; margin-bottom:12px; font-size:13px; }
.mock-division-card > div span { color:#9fb0c2; text-align:right; }
.division-overview-counts { margin:0 0 12px; color:#9fb0c2; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.mock-division-card progress { display:block; width:100%; height:12px; accent-color:#62a8ff; }
.tournament-overview .mock-division-grid { gap:8px; }
.tournament-overview .mock-division-card { padding:10px 12px; box-shadow:none; border-radius:10px; }
.tournament-overview .mock-division-card > div { margin-bottom:6px; }
.tournament-overview .division-overview-counts { margin-bottom:6px; font-size:12px; }
.tournament-overview .mock-division-card progress { height:6px; }
.division-status-matches { margin-top:8px; padding-top:7px; border-top:1px solid #52657a55; }
.division-status-matches > div { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; }
.division-status-matches strong { color:#75b9ff; font-size:14px; }
.division-status-matches small { display:block; margin:3px 0 5px; font-size:11px; }
html[data-theme="light"] .division-status-matches strong { color:#1766ad; }
.division-match-progress-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:8px; }
.division-match-progress-card { min-width:0; padding:10px 12px; box-shadow:none; }
.division-match-progress-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-bottom:4px; }
.division-match-progress-heading > strong:first-child { min-width:0; font-size:13px; line-height:1.35; overflow-wrap:anywhere; }
.division-match-progress-rate { flex:none; color:#75b9ff; font-size:18px; }
.division-match-progress-card small { display:block; color:#9fb0c2; font-size:11px; }
.division-match-progress-card progress { display:block; width:100%; height:6px; margin-top:7px; accent-color:#62a8ff; }
#systemReadOnlyMetrics { grid-template-columns:repeat(3,minmax(0,1fr)); }

.metrics article,.metrics .metric-filter { padding:20px; text-align:left; color:inherit; } .metrics span { color:#9fb0c2; display:block; } .metrics strong { display:block; font-size:30px; margin-top:10px; }
.metrics .metric-filter:hover { border-color:#75b9ff; }
.metrics .metric-filter[aria-pressed="true"] { border-color:#75b9ff; background:#1b3148; }
.metrics .metric-filter:focus-visible { outline:3px solid #75b9ff; outline-offset:2px; }
.tournament-overview .registration-overview-title { margin:10px 0 6px; font-size:15px; line-height:1.3; }
.tournament-overview .metrics { gap:8px; margin:6px 0 10px; }
.tournament-overview .metrics article,.tournament-overview .metrics .metric-filter { padding:9px 12px; min-height:0; border-radius:10px; }
.tournament-overview .metrics span { font-size:12px; line-height:1.3; }
.tournament-overview .metrics strong { margin-top:4px; font-size:21px; line-height:1.2; }
.registration-stats-table-wrap { margin:14px 0; overflow-x:auto; }
.tournament-overview .registration-stats-table-wrap { padding:8px; border:1px solid #3b4d61; border-radius:12px; background:#151f2a; }
.registration-stats-table { width:100%; border-collapse:collapse; font-size:12px; }
.registration-stats-table th,.registration-stats-table td { padding:7px 10px; border:1px solid #52657a66; text-align:center; line-height:1.35; }
.tournament-overview .registration-stats-table thead th { background:#223246; color:#dceaff; }
.tournament-overview .registration-stats-table tbody th,.tournament-overview .registration-stats-table tbody td { background:#192532; }
.tournament-overview .registration-stats-table tbody tr:nth-child(even) > th,.tournament-overview .registration-stats-table tbody tr:nth-child(even) > td { background:#1d2b3a; }
.registration-stats-table th:first-child { white-space:nowrap; }
.registration-stats-table thead th { text-align:center; font-size:12px; }
.registration-stats-table td strong { font-size:13px; }
.registration-stats-table .metric-filter { display:block; width:100%; min-height:24px; padding:2px 0; margin:0; border:0; border-radius:4px; background:transparent; color:inherit; text-align:center; box-shadow:none; }
.registration-stats-table .metric-filter:hover { background:#75b9ff22; }
.registration-stats-table .metric-filter:focus-visible { outline:2px solid #75b9ff; }
.registration-stats-table #registrationStatsTotal { background:#75b9ff18; font-weight:750; }
.tournament-overview .registration-stats-table #registrationStatsTotal > * { background:#20364a; }
.division-status-table .division-stat-progress { min-width:100px; text-align:center; }
.division-status-table progress { display:block; width:100%; height:5px; margin-top:4px; accent-color:#62a8ff; }
.division-status-table tbody th { font-weight:600; }
.division-status-table tbody tr:hover { background:#75b9ff12; }
html[data-theme="light"] .tournament-overview .registration-stats-table-wrap { border-color:#b9c9d9; background:#fff; box-shadow:0 2px 8px #19334d12; }
html[data-theme="light"] .tournament-overview .registration-stats-table thead th { background:#e5eef7; color:#19334d; }
html[data-theme="light"] .tournament-overview .registration-stats-table tbody th,html[data-theme="light"] .tournament-overview .registration-stats-table tbody td { background:#f9fbfd; }
html[data-theme="light"] .tournament-overview .registration-stats-table tbody tr:nth-child(even) > th,html[data-theme="light"] .tournament-overview .registration-stats-table tbody tr:nth-child(even) > td { background:#edf3f8; }
html[data-theme="light"] .tournament-overview .registration-stats-table #registrationStatsTotal > * { background:#dceaf7; }
.filters { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:7px; padding:6px 12px; border-bottom:1px solid #293442; }
#registrationList .filters { position:sticky; top:var(--operator-header-height,64px); z-index:2; background:#151c25; }
#registrationList .table-wrap { max-height:calc(100dvh - var(--operator-header-height,64px) - var(--registration-filter-height,70px) - 24px); overflow:auto; }
#registrationList thead th { position:sticky; top:0; z-index:1; background:#151c25; box-shadow:0 1px 0 #293442; }
html[data-theme="light"] #registrationList thead th { background:#fff; box-shadow:0 1px 0 #dce5ef; }
.filters select { min-width:150px; min-height:34px; padding:5px 28px 5px 9px; font-size:12px; }
.search-controls { display:flex; flex:0 1 365px; justify-content:center; gap:6px; min-width:0; }
.search-controls input { flex:0 1 300px; width:300px; min-width:0; min-height:34px; padding:5px 9px; font-size:12px; }
.search-controls button { flex:none; min-height:34px; padding:5px 9px; border-radius:9px; font-size:12px; }
.participant-division-tabs { flex:0 1 auto; max-width:min(100%,720px); }
.division-filter-menu { position:relative; flex:0 1 190px; min-width:150px; }
.division-filter-menu > summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:34px; padding:5px 9px; border:1px solid #344355; border-radius:9px; background:#0e151e; color:#edf2f7; cursor:pointer; list-style:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.division-filter-menu > summary::-webkit-details-marker { display:none; }
.division-filter-menu > summary::after { content:"▾"; flex:none; font-size:11px; }
.division-filter-menu > summary:focus-visible { outline:2px solid #75b9ff; outline-offset:2px; }
.division-filter-options { position:absolute; top:calc(100% + 5px); left:0; width:min(320px,calc(100vw - 32px)); max-height:min(360px,60vh); overflow:auto; display:grid; gap:2px; padding:6px; border:1px solid #344355; border-radius:11px; background:#151c25; box-shadow:0 16px 36px #0008; }
.division-filter-all,.division-filter-option { display:flex; align-items:center; gap:9px; width:100%; min-width:0; padding:9px 10px; border-radius:7px; color:#edf2f7; font-size:13px; text-align:left; }
.division-filter-all { background:transparent; }
.division-filter-all:hover,.division-filter-option:hover { background:#263545; }
.division-filter-all[aria-pressed="true"] { color:#75b9ff; }
.division-filter-option { cursor:pointer; }
.division-filter-option input { flex:none; width:17px; height:17px; min-height:0; margin:0; padding:0; accent-color:#62a8ff; }
.division-filter-option span { min-width:0; overflow-wrap:anywhere; }
html[data-theme="light"] #registrationList .filters,html[data-theme="light"] .division-filter-options { background:#fff; }
html[data-theme="light"] .division-filter-menu > summary { background:#fff; color:#253c53; border-color:#c4d0dc; }
html[data-theme="light"] .division-filter-all,html[data-theme="light"] .division-filter-option { color:#253c53; }
html[data-theme="light"] .division-filter-all:hover,html[data-theme="light"] .division-filter-option:hover { background:#e6edf5; }
input,select { background:#0e151e; color:#edf2f7; border:1px solid #344355; border-radius:11px; padding:12px 14px; min-height:46px; }
input { flex:1; } .table-wrap { width:100%; overflow-x:hidden; } table { width:100%; border-collapse:collapse; table-layout:fixed; }
th,td { padding:15px 12px; text-align:left; border-bottom:1px solid #273240; white-space:normal; overflow-wrap:anywhere; } th { color:#8fa4b8; font-size:13px; } td small { color:#8fa4b8; display:block; margin-top:4px; }
tbody td:nth-child(4) { max-width:190px; white-space:normal; overflow-wrap:anywhere; }
tbody td:nth-child(4) small { white-space:normal; overflow-wrap:anywhere; }
.sort-heading { display:inline-flex; align-items:center; gap:6px; max-width:100%; min-width:0; border:0; background:none; padding:4px 0; color:inherit; font:inherit; font-weight:inherit; cursor:pointer; text-align:left; }
.sort-heading span:first-child { min-width:0; overflow-wrap:anywhere; }
.sort-heading:hover,.sort-heading:focus-visible { color:#75b9ff; }
.sort-mark { color:#75b9ff; font-size:14px; }
.status-filter-column { width:1%; min-width:max-content; }
.table-header-filter { display:flex; align-items:center; justify-content:center; white-space:nowrap; }
.table-header-filter select { width:max-content; min-width:max-content; max-width:none; min-height:30px; padding:4px 28px 4px 9px; border-radius:7px; font-size:12px; font-weight:700; white-space:nowrap; }
.badge { display:inline-flex; max-width:100%; padding:5px 9px; border-radius:999px; font-size:13px; font-weight:750; background:#263545; white-space:normal; overflow-wrap:anywhere; text-align:center; }
.paid { background:#143c2d; color:#7ee2ad; }.reported { background:#49370e;color:#ffd36a;}.unpaid { background:#3b2528;color:#ff9ea8;}.refunded { background:#263b52;color:#9dccff; }
.empty,.error { padding:28px; text-align:center; color:#9fb0c2; }.error { color:#ff9ea8; }.hidden { display:none!important; }
tbody tr { cursor:pointer; }
tbody tr:hover { box-shadow:inset 0 0 0 1px #75b9ff; }
tbody tr:focus-visible { outline:2px solid #75b9ff; outline-offset:-2px; }
.payment-status-link { appearance:none; border:0; padding:0; background:none; color:inherit; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.payment-status-link:hover,.payment-status-link:focus-visible { text-decoration-thickness:2px; }
.payment-status-link:focus-visible { outline:2px solid currentColor; outline-offset:3px; border-radius:2px; }
dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100vh - 32px); overflow:auto; background:#151c25; color:#edf2f7; border:1px solid #344355; border-radius:18px; padding:24px; box-shadow:0 25px 80px #000b; }
dialog::backdrop { background:#000a; }
.guide-reset-options { display:grid; gap:18px; margin:22px 0 28px; }
.guide-reset-options label { display:flex; align-items:center; gap:12px; min-height:42px; cursor:pointer; }
.guide-reset-options input[type="radio"] { flex:0 0 auto; width:18px; height:18px; margin:0; }
.guide-reset-options label span { display:block; line-height:1.45; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.guide-expanded-editor { width:calc(100vw - 24px); max-width:none; height:calc(100vh - 24px); max-height:none; margin:auto; padding:16px; box-sizing:border-box; }
.guide-expanded-editor[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.guide-expanded-editor .dialog-head h2 { margin:0; }
.guide-expanded-editor > textarea { width:100%; height:100%; min-height:0; margin-top:12px; padding:14px; resize:none; font:inherit; font-size:13px; line-height:1.3; background:#0e151d; color:#edf2f7; border:1px solid #344558; border-radius:10px; box-sizing:border-box; }
.guide-expanded-editor-actions { display:flex; justify-content:center; gap:10px; margin-top:16px; }
html[data-theme="light"] .guide-expanded-editor > textarea { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
#detailFields { display:grid; grid-template-columns:minmax(120px,1fr) 2fr; gap:12px; margin:24px 0; }
#detailFields dt { color:#9fb0c2; } #detailFields dd { margin:0; overflow-wrap:anywhere; }
#playerProfileFields { display:grid; grid-template-columns:minmax(120px,1fr) 2fr; gap:12px; margin:24px 0 0; }
#playerProfileFields dt { color:#9fb0c2; }
#playerProfileFields dd { margin:0; overflow-wrap:anywhere; }
.profile-divisions { margin:0; padding-left:18px; }
.profile-divisions li + li { margin-top:6px; }
.profile-registration-link { color:#75b9ff; }
#playerProfileStatus { margin-top:18px; }
.profile-link { color:#75b9ff; font-weight:750; }
.dupr-id { color:#a9c8ef; }
.review-status { color:#ff6b73; font-weight:800; }
.partner-confirmed { color:#7ee2ad; font-weight:800; }
#registrationList .registration-primary-name { color:#f8fafc; font-weight:800; }
#registrationList .registration-partner-name { color:#9ca3af; font-weight:400; }
html[data-theme="light"] #registrationList .registration-primary-name { color:#111827; }
html[data-theme="light"] #registrationList .registration-partner-name { color:#6b7280; }
.payer-mismatch { position:relative; display:inline-block; color:#ffd36a; font-weight:800; cursor:help; }
.payer-mismatch:hover::after,.payer-mismatch:focus-visible::after { content:attr(data-tooltip); position:absolute; z-index:10; left:0; bottom:calc(100% + 8px); width:max-content; max-width:min(320px,80vw); padding:9px 12px; border:1px solid #cfaa50; border-radius:9px; background:#2a2317; color:#fff2cd; font-size:13px; font-weight:500; line-height:1.45; white-space:normal; overflow-wrap:anywhere; box-shadow:0 10px 24px #0009; }
.payer-mismatch:focus-visible { outline:2px solid #ffd36a; outline-offset:3px; }
.cell-search { appearance:none; border:0; border-radius:3px; padding:0; background:none; color:inherit; font:inherit; font-weight:inherit; text-align:left; text-decoration:underline; text-decoration-color:#75b9ff88; text-underline-offset:3px; white-space:inherit; }
.cell-search:hover,.cell-search:focus-visible { color:#75b9ff; text-decoration-color:currentColor; }
.cell-search:focus-visible { outline:2px solid #75b9ff; outline-offset:3px; }
#registrationList table { width:max-content; min-width:0; margin:0 auto; table-layout:auto; font-size:12px; }
  #registrationList th,#registrationList td { padding:10px 9px; text-align:center; white-space:nowrap; overflow:visible; overflow-wrap:normal; text-overflow:clip; }
  #registrationList thead th { white-space:nowrap; }
  #registrationList .sort-heading { width:100%; justify-content:center; text-align:center; }
  #registrationList th:nth-child(-n+2),#registrationList td:nth-child(-n+2) { text-align:left; }
  #registrationList th:nth-child(-n+2) .sort-heading { justify-content:flex-start; text-align:left; }
  #registrationList tbody td { white-space:nowrap; overflow:visible; overflow-wrap:normal; text-overflow:clip; }
  #registrationList tbody td > span,#registrationList tbody td > small { display:inline; margin:0; white-space:nowrap; }
  #registrationList tbody td > small::before { content:" · "; color:#60758a; }
  #registrationList .cell-search,#registrationList .badge { white-space:nowrap; }
  #registrationList .cell-search { text-align:center; }
  #registrationList .badge { padding:4px 7px; font-size:12px; }

.player-division-tooltip { position:fixed; z-index:20; max-width:min(360px,calc(100vw - 16px)); padding:10px 13px; border:1px solid #75b9ff; border-radius:9px; background:#182b3e; color:#edf5ff; font-size:13px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; box-shadow:0 12px 28px #0008; pointer-events:none; }
[aria-describedby="registrationTimelineTooltip"] { cursor:help; }
[aria-describedby="registrationTimelineTooltip"]:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.review-pending { background:#281d24; }
.rejected-status { color:#ff687b; background:#4b1826; border:1px solid #c94762; border-radius:7px; padding:4px 8px; font-weight:900; }
.refund-needed { color:#ffd36a; font-weight:800; }
.refund-completed-status { color:#9dccff; font-weight:800; cursor:help; }
.confirmed-rank { color:#7ee2ad; font-weight:750; }
.rejected-pending-refund { background:#35202a; }
.rejected-refunded { opacity:.78; }
.detail-refund { border-top:1px solid #344355; padding:18px 0; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.detail-refund strong { color:#ffd36a; }
.detail-refund #refundTransferForm,.detail-refund #refundCorrectionForm { width:100%; display:grid; gap:8px; }
.detail-refund #refundTransferForm input,.detail-refund #refundCorrectionForm textarea { width:100%; min-width:0; }
.detail-refund #refundCorrectionForm textarea { min-height:80px; padding:12px; border:1px solid #435267; border-radius:8px; background:#0d1520; color:#eef4fa; font:inherit; }
.detail-refund #refundTransferHistory { white-space:pre-line; line-height:1.6; overflow-wrap:anywhere; }
.detail-refund #correctRefund { background:#9e303a; color:white; justify-self:start; }
.danger-outline { border:1px solid #d95b68; color:#ffb0b8; }
.undo-bank-inline { margin-left:10px; padding:2px 7px; font-size:12px; line-height:1.4; vertical-align:middle; white-space:nowrap; }
#refundBankDetails { white-space:pre-line; overflow-wrap:anywhere; }
.refund-account-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.refund-account-row #refundBankDetails { min-width:0; }
.detail-review { border-top:1px solid #344355; padding:18px 0; }
.detail-review h3 { margin:0 0 8px; color:#ff838a; }
.detail-review textarea { display:block; box-sizing:border-box; width:100%; margin:8px 0 12px; padding:12px; border:1px solid #435267; border-radius:8px; background:#0d1520; color:#eef4fa; font:inherit; resize:vertical; }
.review-actions { display:flex; flex-wrap:wrap; gap:8px; }
.review-actions .danger { background:#9e303a; color:white; border:0; border-radius:8px; padding:10px 16px; font:inherit; cursor:pointer; }
.review-actions button:disabled { opacity:.5; cursor:default; }
#reviewFields { display:flex; flex-direction:column; gap:8px; margin:16px 0; color:#dce7f2; }
#reviewFields .change-line { color:#ffb3b8; font-weight:700; }
html[data-theme="light"] { color-scheme:light; background:#f4f7fb; color:#18283a; }
html[data-theme="light"] body { background:radial-gradient(circle at 15% 0%,#dcecff 0,transparent 35%),#f4f7fb; }
html[data-theme="light"] header { background:#fffffff0; border-bottom-color:#d5e0eb; }
html[data-theme="light"] p,html[data-theme="light"] #detailFields dt,
html[data-theme="light"] #playerProfileFields dt,
html[data-theme="light"] .empty { color:#536779; }
html[data-theme="light"] .eyebrow { color:#175f9d; }
html[data-theme="light"] .panel,html[data-theme="light"] .metrics article,
html[data-theme="light"] .metrics .metric-filter,html[data-theme="light"] dialog {
  background:#fff; color:#18283a; border-color:#d4e0eb; box-shadow:0 12px 32px #243d5814;
}
html[data-theme="light"] .ghost { background:#e9f0f7; color:#19334d; }
html[data-theme="light"] .queue-waiting-order-actions button { background:transparent; }
html[data-theme="light"] .account-menu-popover #themeToggle { border-color:#000; background:#000; color:#fff; }
html[data-theme="light"] .primary { background:#1766ad; color:#fff; }
html[data-theme="light"] .header-actions,html[data-theme="light"] .metrics span,
html[data-theme="light"] td small,html[data-theme="light"] .division-summary { color:#536779; }
html[data-theme="light"] .metrics .metric-filter:hover,
html[data-theme="light"] .metrics .metric-filter[aria-pressed="true"] { border-color:#1766ad; }
html[data-theme="light"] .metrics .metric-filter[aria-pressed="true"] { background:#e6f2ff; }
html[data-theme="light"] .metrics .metric-filter:focus-visible { outline-color:#1766ad; }
html[data-theme="light"] .filters,html[data-theme="light"] th,html[data-theme="light"] td,
html[data-theme="light"] .detail-refund,html[data-theme="light"] .detail-review { border-color:#dce5ef; }
html[data-theme="light"] .division-match-progress-card { background:#fff; border-color:#c4d0dc; }
html[data-theme="light"] .division-match-progress-rate { color:#1769c2; }
html[data-theme="light"] .division-match-progress-card small { color:#586b7d; }
html[data-theme="light"] input,html[data-theme="light"] select,
html[data-theme="light"] .detail-review textarea { background:#fff; color:#18283a; border-color:#b8cbdc; }
html[data-theme="light"] .header-date-control .queue-date-label,
html[data-theme="light"] .header-date-control .queue-date-select { color:#18283a; }
html[data-theme="light"] .header-date-control .queue-date-select option { background:#fff; color:#18283a; }
html[data-theme="light"] th { color:#536779; }
html[data-theme="light"] .paid { background:#d9f3e6; color:#0b6540; }
html[data-theme="light"] .reported { background:#fff0c7; color:#745100; }
html[data-theme="light"] .unpaid { background:#ffe4e7; color:#963445; }
html[data-theme="light"] .refunded { background:#dcecff; color:#225a91; }
html[data-theme="light"] .review-status { color:#a12236; }
html[data-theme="light"] .partner-confirmed { color:#0b6540; }
html[data-theme="light"] .confirmed-rank { color:#0b6540; }
html[data-theme="light"] .payer-mismatch,html[data-theme="light"] .refund-needed,
html[data-theme="light"] .detail-refund strong { color:#795000; }
html[data-theme="light"] .payer-mismatch:hover::after,
html[data-theme="light"] .payer-mismatch:focus-visible::after { background:#fff8e8; color:#523600; }
html[data-theme="light"] .cell-search:hover,html[data-theme="light"] .cell-search:focus-visible { color:#175f9d; }
html[data-theme="light"] .profile-link,html[data-theme="light"] .dupr-id { color:#175f9d; }
html[data-theme="light"] .player-division-tooltip { background:#fff; color:#18283a; border-color:#1766ad; box-shadow:0 12px 28px #243d5830; }
html[data-theme="light"] .review-pending { background:#fff0f1; }
html[data-theme="light"] .rejected-status { background:#ffe4e7; color:#951b32; border-color:#e38899; }
html[data-theme="light"] .rejected-pending-refund { background:#fff0f1; }
html[data-theme="light"] .detail-review h3 { color:#a12236; }
html[data-theme="light"] .danger-outline { color:#a12236; border-color:#c75a6d; }
html[data-theme="light"] #reviewFields { color:#253c53; }
html[data-theme="light"] #reviewFields .change-line { color:#a12236; }
html[data-theme="light"] .error { color:#a12236; }
html[data-theme="light"] .operator-nav > button,html[data-theme="light"] .operator-nav > .operator-nav-link,html[data-theme="light"] .simulation-nav-tail > .operator-nav-link,html[data-theme="light"] .operator-settings > summary { background:#e6edf5; color:#253c53; }
html[data-theme="light"] .operator-nav > .operator-nav-active { background:#1766ad; color:#fff; }
html[data-theme="light"] .operator-nav { background:transparent; }
html[data-theme="light"] .account-menu > summary { background:#fff; border-color:#c4d0dc; color:#253c53; }
html[data-theme="light"] .account-menu[open] > summary { border-color:#1769c2; color:#1769c2; }
html[data-theme="light"] .account-menu-popover > button { color:#253c53; }
html[data-theme="light"] .account-menu-popover > button:hover { background:#e6edf5; }
html[data-theme="light"] .account-profile-form > label { color:#506579; }
html[data-theme="light"] .account-profile-form > input,html[data-theme="light"] .account-profile-form > select { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .operator-settings-menu button { color:#253c53; }
html[data-theme="light"] .operator-settings-menu button:hover:not(:disabled) { background:#e6edf5; }
html[data-theme="light"] .schedule-settings-form input { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .court-count-summary,html[data-theme="light"] .schedule-settings-form label { color:#506579; }
html[data-theme="light"] .schedule-estimates { border-color:#c4d0dc; }
html[data-theme="light"] .mock-dashboard-notice { background:#fff5db; color:#795016; border-color:#d7ad50; }
html[data-theme="light"] .mock-court-card p strong { color:#253c53; }
#todayQueueScheduleTable.queue-schedule-table-today { width:max-content; min-width:100%; margin-inline:0; table-layout:auto; }
#todayQueueScheduleTable thead th:not(.queue-time-left):not(.queue-time-right),#todayQueueScheduleTable tbody td,#todayQueueScheduleTable tfoot th:not(.queue-time-left):not(.queue-time-right) { width:1%; min-width:max-content; white-space:nowrap; }
#todayQueueScheduleTable.queue-schedule-table-today thead th:not(.queue-time-left):not(.queue-time-right),#todayQueueScheduleTable.queue-schedule-table-today tbody td,#todayQueueScheduleTable.queue-schedule-table-today tfoot th:not(.queue-time-left):not(.queue-time-right) { padding:4px 3px; }
#todayQueueScheduleTable .queue-timeline-match,
#todayQueueScheduleTable .queue-timeline-versus,
#todayQueueScheduleTable .queue-match-team { overflow-wrap:normal; white-space:nowrap; }
#todayQueueScheduleTable .queue-timeline-topline .queue-match-division { overflow:visible; text-overflow:clip; }
#todayQueueScheduleTable [data-timetable-queue] { cursor:help; }
#todayQueueScheduleTable [data-timetable-queue]:focus-visible { outline:2px solid #75b9ff; outline-offset:2px; }
.timetable-queue-tooltip { position:fixed; z-index:10000; padding:5px 9px; border:1px solid #75b9ff; border-radius:6px; background:#101720; color:#fff; font-size:12px; line-height:1.3; box-shadow:0 3px 10px #0004; pointer-events:none; white-space:nowrap; }


/* Keep timetable content typography consistent with the participant list. */
#todayQueueScheduleTable { --timetable-content-font-size:12px; }
.queue-timeline-number,.preliminary-match-code,.bracket-queue-number,.queue-card-number,.queue-summary-number { color:#4ade80; }
html[data-theme="light"] .queue-timeline-number,
html[data-theme="light"] .preliminary-match-code,
html[data-theme="light"] .bracket-queue-number,
html[data-theme="light"] .queue-card-number,
html[data-theme="light"] .queue-summary-number { color:#15803d; }
.queue-court-card .queue-card-number { color:#151c25; user-select:text; }
html[data-theme="light"] .queue-court-card .queue-card-number { color:#fff; }
.queue-court-card .queue-card-number::selection { background:#1689c9; color:#fff; }
.queue-upcoming-card .queue-card-number { user-select:text; }
.queue-upcoming-card.queue-eligible .queue-card-number { color:#3a3217; }
.queue-upcoming-card.queue-conflict .queue-card-number { color:#2d1d21; }
html[data-theme="light"] .queue-upcoming-card.queue-eligible .queue-card-number { color:#fff8d9; }
html[data-theme="light"] .queue-upcoming-card.queue-conflict .queue-card-number { color:#fff0f1; }
.queue-upcoming-card .queue-card-number::selection { background:#1689c9; color:#fff; }
#todayQueueScheduleTable td,
#todayQueueScheduleTable .queue-timeline-number,
#todayQueueScheduleTable .queue-timeline-stage,
#todayQueueScheduleTable .queue-timeline-match,
#todayQueueScheduleTable .queue-match-division,
#todayQueueScheduleTable .queue-timeline-state,
#todayQueueScheduleTable .queue-timeline-versus,
#todayQueueScheduleTable .queue-timeline-score { font-size:var(--timetable-content-font-size); }

/* Structured division builder: bordered, top-aligned category groups. */
#tournamentDetailsSettings .event-title-inline-row { flex-wrap:wrap; }
#tournamentDetailsSettings .event-title-inline-row > label { flex:0 1 min(560px,100%); width:min(560px,100%); }
#tournamentDetailsSettings .event-title-inline-row > label + label { flex-basis:100%; }
.header-title h1#siteTitle { font-size:12px; line-height:1.2; }
#tournamentDetailsSettings .event-title-inline-row { grid-template-columns:minmax(0,560px); justify-content:start; }
#tournamentDetailsSettings .event-title-inline-row > label { grid-template-columns:max-content minmax(0,1fr); width:100%; }
#tournamentDetailsSettings .guide-section[data-guide-category="format"] .guide-section-body,
#tournamentDetailsSettings .guide-section[data-guide-category="awards"] .guide-section-body,
#tournamentDetailsSettings .guide-section[data-guide-category="eligibility"] .guide-section-body,
#tournamentDetailsSettings .guide-section[data-guide-category="terms"] .guide-section-body { display:grid; grid-template-columns:minmax(0,1fr) !important; width:100%; min-width:0; max-width:1100px; }
#tournamentDetailsSettings .guide-section[data-guide-category="format"] textarea,
#tournamentDetailsSettings .guide-section[data-guide-category="awards"] textarea,
#tournamentDetailsSettings .guide-section[data-guide-category="eligibility"] textarea,
#tournamentDetailsSettings .guide-section[data-guide-category="terms"] textarea { display:block; grid-column:1 / -1; width:100% !important; min-width:0; max-width:1100px; box-sizing:border-box; }
.division-builder-row-primary { align-items:flex-start; gap:14px; }
.division-builder-group { display:flex; flex:0 0 auto; flex-direction:column; align-items:stretch; align-self:flex-start; gap:8px; min-width:0; margin:0; padding:10px; border:1px solid #526679; border-radius:10px; }
.division-builder-group legend { padding:0 5px; color:#c7d3df; font-size:12px; font-weight:750; white-space:nowrap; }
.division-builder-group .division-choice-buttons { flex-direction:column; }
.division-team-size,.division-inline-limit,.division-dupr-limits { display:grid; gap:7px; }
.division-team-size[hidden],.division-inline-limit[hidden] { display:none !important; }
.division-team-size label,.division-dupr-limits label { display:flex; align-items:center; justify-content:space-between; gap:6px; color:#c7d3df; font-size:11px; white-space:nowrap; }
.division-team-size input { width:52px; }
.division-inline-limit { grid-template-columns:62px auto; align-items:stretch; }
.division-inline-limit > input { width:62px; }
.division-stacked-buttons { display:flex; flex-direction:column; gap:4px; }
.division-stacked-buttons button { min-height:27px; padding:3px 8px; border:1px solid #526679; border-radius:7px; background:#222d3a; color:#c7d3df; font-size:11px; }
.division-stacked-buttons button.is-selected { border-color:#62a8ff; background:#1769c2; color:#fff; }
.division-dupr-group { min-width:146px; }
.division-dupr-limits label input { width:60px; }
.division-number-group input { width:94px; }
.division-builder-actions { align-self:flex-start; flex-direction:column; margin:12px 0 0; }
.division-create-button { max-width:142px; min-height:54px; background:#16835f !important; border-color:#29a87e !important; white-space:normal; }
.structured-division-table-section { margin-top:12px; }
.structured-division-table-section h5 { margin:0 0 8px; color:#edf2f7; font-size:14px; }
.structured-division-table-wrap { max-width:100%; overflow-x:auto; border:1px solid #344558; border-radius:9px; }
.structured-division-table { width:100%; border-collapse:collapse; background:#0e151d; }
.division-builder-table-wrap { max-width:100%; overflow-x:auto; border:1px solid #344558; border-radius:9px; }
.division-builder-table { min-width:1060px; table-layout:auto; }
.division-builder-table th,.division-builder-table td { border:1px solid #344558 !important; vertical-align:top; }
.division-builder-table th { padding:8px 9px; white-space:normal; }
.division-builder-table th:nth-child(1) { width:150px; }
.division-builder-table th:nth-child(2) { width:190px; }
.division-builder-table th:nth-child(3) { width:150px; }
.division-builder-table th:nth-child(4) { width:150px; }
.division-builder-table th:nth-child(5) { width:270px; }
.division-builder-table th:nth-child(6),.division-builder-table th:nth-child(7) { width:100px; }
.division-builder-table th:nth-child(8) { width:150px; }
.division-builder-table th:nth-child(9) { width:230px; }
.division-builder-input-row td { padding:6px; }
.division-builder-input-row .division-builder-group { width:100%; min-height:100%; padding:5px 2px; border:0 !important; }
.division-builder-input-row .division-builder-group > legend { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.division-builder-input-row .division-choice-buttons { gap:4px; }
.division-builder-input-row .division-choice-buttons button { padding:5px 7px; font-size:11px; white-space:normal; }
.division-builder-input-row .division-dupr-group { min-width:0; }
.division-builder-input-row .division-builder-actions { flex-direction:column; align-items:stretch; margin:0; }
.division-builder-input-row .division-create-button { max-width:none; min-height:54px; }
.division-builder-input-row .division-create-button,.division-builder-input-row #cancelStructuredDivision { width:100%; }
.division-builder-table .structured-division-actions { flex-wrap:wrap; }
.division-builder-table tbody:not(.division-builder-input-row) td { white-space:normal; overflow-wrap:anywhere; }
.division-builder-table { min-width:1590px; }
.division-builder-table th:nth-child(1) { width:225px; }
.division-builder-table th:nth-child(2) { width:285px; }
.division-builder-table th:nth-child(3) { width:225px; }
.division-builder-table th:nth-child(4) { width:225px; }
.division-builder-table th:nth-child(5) { width:405px; }
.division-builder-table th:nth-child(6),.division-builder-table th:nth-child(7) { width:150px; }
.division-builder-table th:nth-child(8) { width:225px; }
.division-builder-table th:nth-child(9) { width:345px; }
.division-builder-table th,.division-builder-table td { text-align:center; vertical-align:middle; }
.division-builder-table .structured-division-actions { justify-content:center; }
.structured-division-table th,.structured-division-table td { padding:8px 10px; border-right:1px solid #344558; border-bottom:1px solid #344558; text-align:left; white-space:nowrap; }
.structured-division-table th:last-child,.structured-division-table td:last-child { border-right:0; }
.structured-division-table tbody tr:last-child td { border-bottom:0; }
.structured-division-table th { color:#a9c9e8; font-size:12px; }
.structured-division-table td { color:#edf2f7; font-size:12px; }
.structured-division-table th:first-child,.structured-division-table td:first-child { width:54px; text-align:center; }
.structured-division-table th:last-child,.structured-division-table td:last-child { width:1%; }
html[data-theme="light"] .division-builder-group { border-color:#b8c7d5; }
html[data-theme="light"] .division-builder-group legend,html[data-theme="light"] .division-team-size label,html[data-theme="light"] .division-dupr-limits label { color:#31475b; }
html[data-theme="light"] .division-stacked-buttons button { border-color:#aebdcb; background:#fff; color:#31475b; }
html[data-theme="light"] .division-stacked-buttons button.is-selected { border-color:#1769c2; background:#1769c2; color:#fff; }
html[data-theme="light"] .structured-division-table-section h5 { color:#1d2a37; }
html[data-theme="light"] .structured-division-table-wrap { border-color:#c4d0dc; }
html[data-theme="light"] .structured-division-table { background:#fff; }
html[data-theme="light"] .division-builder-table-wrap { border-color:#c4d0dc; }
html[data-theme="light"] .division-builder-table { background:#fff; }
html[data-theme="light"] .division-builder-table th,html[data-theme="light"] .division-builder-table td { border-color:#c4d0dc !important; }
html[data-theme="light"] .structured-division-table th,html[data-theme="light"] .structured-division-table td { border-color:#c4d0dc; }
html[data-theme="light"] .structured-division-table th { color:#1769c2; }
html[data-theme="light"] .structured-division-table td { color:#1d2a37; }

.pdf-import-dialog { width:min(1100px,90vw); max-height:88vh; padding:24px; overflow:auto; color:var(--text,#18344f); background:var(--panel,#fff); border:1px solid #94a3b8; border-radius:14px; }
.pdf-import-dialog::backdrop { background:rgba(0,0,0,.45); }
.pdf-import-dialog > p { max-width:100%; white-space:pre-line; }
.pdf-import-candidate { border:1px solid #94a3b8; border-radius:8px; padding:14px; margin:12px 0; }
.pdf-import-select { display:flex; align-items:center; gap:10px; }
.pdf-import-select input { width:20px; height:20px; }
.pdf-import-candidate pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:120px; overflow:auto; opacity:.8; }
.pdf-import-fields { display:flex; flex-wrap:wrap; gap:12px; }
.pdf-import-fields label { display:grid; gap:4px; }
.pdf-import-fields input[type=number] { width:110px; }
.pdf-import-fields textarea, .pdf-import-dialog details textarea { width:100%; box-sizing:border-box; }
.pdf-import-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:20px; position:sticky; bottom:0; padding:12px; background:var(--panel,#fff); }
html:not([data-theme="light"]) .pdf-import-dialog, html:not([data-theme="light"]) .pdf-import-actions { background:#151c25; color:#edf2f7; }
html[data-theme="light"] .pdf-import-dialog, html[data-theme="light"] .pdf-import-actions { background:#fff; color:#18344f; }
.pdf-import-dialog input[type=file] { max-width:100%; margin:12px 0; }
.pdf-import-dialog [role=status] { padding:10px 0; font-weight:600; }

/* Compact only the right-hand settings options; preserve the schedule table. */
#scheduleSettingsForm > .schedule-setting-row .schedule-setting-item label,
#scheduleSettingsForm > .schedule-setting-row .schedule-setting-item input,
#scheduleSettingsForm > .schedule-setting-row .schedule-setting-item select { font-size:13px; }
#scheduleSettingsForm > .schedule-setting-row .schedule-setting-item:not(.schedule-setting-toggle) { grid-template-columns:minmax(0,1fr) minmax(91px,126px); }
#scheduleSettingsForm > .schedule-setting-row .schedule-setting-item input:not([type="checkbox"]) { max-width:126px; }


.operator-email-form { display:flex; align-items:end; gap:12px; margin:16px 0; }
.operator-email-form label { display:grid; gap:6px; }
.operator-email-form input { width:320px; max-width:100%; }
.operator-email-table { width:100%; border-collapse:collapse; }
.operator-email-table th,.operator-email-table td { padding:10px; text-align:left; border-bottom:1px solid #8ba1b455; }

/* PDF import: compact, full-screen comparison workspace. */
.pdf-import-dialog { width:calc(100vw - 24px); height:calc(100vh - 24px); max-width:none; max-height:none; box-sizing:border-box; padding:16px 20px; overflow:hidden; gap:7px; font-size:13px; }
.pdf-import-dialog[open] { display:grid; grid-template-rows:auto auto auto auto minmax(0,1fr) auto; }
.pdf-import-dialog > h2 { margin:0; font-size:20px; line-height:1.2; }
.pdf-import-dialog > p { margin:0; font-size:12px; line-height:1.4; }
.pdf-import-dialog input[type=file] { width:max-content; max-width:100%; min-height:32px; margin:0; padding:4px 7px; font-size:12px; }
.pdf-import-dialog [role=status] { min-height:1.25em; padding:0; font-size:12px; }
.pdf-import-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; min-height:0; }
.pdf-import-source-pane,.pdf-import-candidate-pane { display:grid; min-width:0; min-height:0; border:1px solid #94a3b8; border-radius:9px; padding:9px; }
.pdf-import-source-pane { grid-template-rows:auto minmax(0,1fr); }
.pdf-import-candidate-pane { grid-template-rows:auto minmax(0,1fr); }
.pdf-import-source-pane h3 { margin:0 0 6px; font-size:13px; }
.pdf-import-source-pane textarea { width:100%; min-height:0; height:100%; resize:none; box-sizing:border-box; padding:8px; font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace; }
.pdf-import-select-all { display:flex; align-items:center; gap:7px; min-height:28px; margin-bottom:6px; font-size:12px; font-weight:700; cursor:pointer; }
.pdf-import-select-all input,.pdf-import-select input { flex:none; width:16px; height:16px; min-height:16px; margin:0; padding:0; accent-color:#1674d1; }
.pdf-import-list { display:grid; align-content:start; gap:6px; min-height:0; overflow:auto; padding-right:3px; }
.pdf-import-candidate { display:grid; gap:6px; min-width:0; margin:0; padding:8px; border:1px solid #94a3b8; border-radius:8px; }
.pdf-import-select { display:flex; flex-flow:row nowrap; align-items:center; gap:7px; min-width:0; font-size:12px; cursor:pointer; }
.pdf-import-select strong { min-width:0; font-size:12px; line-height:1.3; }
.pdf-import-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:6px; min-width:0; }
.pdf-import-fields label { display:grid; gap:3px; min-width:0; font-size:11px; line-height:1.25; }
.pdf-import-fields input,.pdf-import-fields select,.pdf-import-fields textarea { min-width:0; min-height:30px; padding:4px 6px; border-radius:6px; font-size:12px; }
.pdf-import-fields input[type=number] { width:100%; }
.pdf-import-fields textarea { height:auto; min-height:42px; max-height:none; resize:vertical; overflow-y:hidden; }
.pdf-import-candidate > p { margin:0; font-size:11px; line-height:1.3; }
.pdf-import-actions { position:static; display:flex; align-items:center; gap:8px; margin:0 -20px -16px; padding:9px 20px; border-top:1px solid #cbd5e1; }
.pdf-import-actions button { min-height:34px; padding:6px 12px; font-size:12px; }
html:not([data-theme="light"]) .pdf-import-source-pane,html:not([data-theme="light"]) .pdf-import-candidate-pane { border-color:#46596d; }
html:not([data-theme="light"]) .pdf-import-actions { border-color:#344558; }
@media (max-width:900px) {
  .pdf-import-dialog { width:calc(100vw - 12px); height:calc(100vh - 12px); padding:12px; }
  .pdf-import-workspace { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .pdf-import-actions { margin:0 -12px -12px; padding:8px 12px; }
}
.pdf-import-candidate-pane { grid-template-rows:auto auto minmax(0,1fr); }
.pdf-import-candidate-heading { margin:0 0 4px; font-size:13px; line-height:1.2; }
/* PDF import evidence and proposed values share one review table. */
.pdf-import-workspace { display:block; min-height:0; overflow:hidden; }
.pdf-import-table-wrap { width:100%; height:100%; overflow:auto; border:1px solid #94a3b8; border-radius:8px; }
.pdf-import-table { width:100%; min-width:760px; border-collapse:collapse; table-layout:fixed; font-size:12px; }
.pdf-import-table th,.pdf-import-table td { padding:9px 11px; border:1px solid #94a3b8; vertical-align:top; text-align:left; }
.pdf-import-table th { position:sticky; top:0; z-index:2; background:#eaf0f6; color:#18344f; font-size:12px; }
.pdf-import-table th:first-child { width:24%; }
.pdf-import-table th:last-child { width:76%; }
.pdf-import-division-fields { grid-template-columns:.95fr 1fr 1fr .72fr .72fr 1fr .72fr .72fr .65fr .95fr; gap:5px; white-space:nowrap; }
.pdf-import-division-fields > label,.pdf-import-event-cell > label { display:grid; gap:3px; min-width:0; }
.pdf-import-division-fields > label > span,.pdf-import-event-cell > label > span { overflow:hidden; text-overflow:clip; font-size:10px; white-space:nowrap; }
.pdf-import-division-fields input,.pdf-import-division-fields select,.pdf-import-event-cell select { width:100%; min-width:0; padding:4px 3px; font-size:11px; }
.pdf-import-event-cell { display:grid; align-content:start; gap:4px; min-width:0; }
.pdf-import-team-counts { display:flex; gap:3px; min-width:0; }
.pdf-import-team-counts label { display:grid; min-width:0; flex:1; gap:2px; }
.pdf-import-team-counts label > span { overflow:hidden; font-size:9px; white-space:nowrap; }
.pdf-import-team-counts input { width:100%; min-width:0; padding:3px; font-size:10px; }
.pdf-import-table tr[data-selected="true"] { background:color-mix(in srgb,#57b96a 8%,transparent); }
.pdf-import-evidence-list { display:grid; gap:6px; }
.pdf-import-evidence blockquote { margin:0; padding:6px 8px; border-left:3px solid #6f93b4; background:#f4f7fa; white-space:pre-wrap; overflow-wrap:anywhere; }
.pdf-import-evidence blockquote p { margin:2px 0 0; font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace; }
.pdf-import-page { color:#526a82; font-size:10px; font-weight:700; }
.pdf-import-expected .pdf-import-select { margin-bottom:7px; }
.pdf-import-expected > p { margin:5px 0 0; font-size:11px; }
.pdf-import-actions { justify-content:space-between; }
.pdf-import-select-all { margin:0 auto 0 0; }
.pdf-import-file-toolbar { display:flex; align-items:center; gap:12px; width:100%; margin:8px 0; }
.pdf-import-file-toolbar .pdf-import-select-all { flex:none; margin:0; }
.pdf-import-file-toolbar input[type="file"] { flex:1 1 auto; min-width:180px; }
.pdf-import-file-toolbar > button { flex:none; margin-left:auto; }
html:not([data-theme="light"]) .pdf-import-table-wrap { border-color:#46596d; }
html:not([data-theme="light"]) .pdf-import-table th,html:not([data-theme="light"]) .pdf-import-table td { border-color:#46596d; }
html:not([data-theme="light"]) .pdf-import-table th { background:#202b38; color:#edf2f7; }
html:not([data-theme="light"]) .pdf-import-evidence blockquote { background:#1b2632; border-color:#5f85aa; }
html:not([data-theme="light"]) .pdf-import-page { color:#aabbd0; }
.pdf-import-division-table-wrap { width:100%; overflow:auto; }
.pdf-import-division-table { width:100%; min-width:1100px; table-layout:fixed; border-collapse:collapse; font-size:10px; }
.pdf-import-division-table th,.pdf-import-division-table td { position:static; width:auto; padding:4px; border:1px solid #94a3b8; vertical-align:middle; }
.pdf-import-division-table th { white-space:nowrap; font-size:10px; }
.pdf-import-division-table th:first-child { width:260px; }
.pdf-import-division-table th:last-child { width:auto; }
.pdf-import-division-table td label { display:grid; min-width:0; gap:0; }
.pdf-import-division-table td label > span { display:none; }
.pdf-import-division-table input,.pdf-import-division-table select { width:100%; min-width:0; min-height:28px; padding:3px; font-size:10px; }
.pdf-import-division-check { text-align:center; }
.pdf-import-division-choice { display:flex!important; align-items:center; justify-content:flex-start; gap:7px!important; white-space:nowrap; text-align:left; cursor:pointer; }
.pdf-import-division-choice > span { display:inline!important; min-width:0; font-size:11px; font-weight:600; }
.pdf-import-division-check input { flex:none; width:15px; height:15px; min-height:15px; margin:0; accent-color:#1674d1; }
.pdf-import-division-event-cell .pdf-import-event-cell { gap:2px; }
.pdf-import-division-event-cell .pdf-import-team-counts input { min-height:22px; }
.pdf-import-division-group > p { margin:7px 0 0; }
html:not([data-theme="light"]) .pdf-import-division-table th,html:not([data-theme="light"]) .pdf-import-division-table td { border-color:#46596d; }
.staff-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.staff-dialog .staff-heading { position:relative; justify-content:center; min-height:36px; }
.staff-dialog .staff-heading > div { justify-items:center; max-width:calc(100% - 80px); text-align:center; }
.staff-dialog .staff-close { position:absolute; right:0; top:0; }
.staff-dialog { width:fit-content; max-width:calc(100vw - 32px); height:fit-content; max-height:calc(100dvh - 32px); box-sizing:border-box; padding:18px 20px; border:1px solid #52657a; border-radius:16px; background:#172332; color:#e8f0f7; box-shadow:0 24px 80px #0008; overflow:hidden; }
.staff-dialog[open] { display:flex; flex-direction:column; }
.staff-dialog::backdrop { background:#07121dcc; }
html[data-theme="light"] .staff-dialog { background:#fff; color:#203247; border-color:#c6d2df; }
.staff-close { flex:none; width:36px; height:36px; min-height:36px; padding:0; font-size:26px; line-height:1; }
.staff-dialog #staffBackToSystemAdmin { align-self:flex-start; margin:2px 0 0; }
.staff-dialog #staffManagerStatus { margin:2px 0; font-size:12px; }
.staff-dialog #staffManagerStatus:empty { display:none; }
.staff-dialog .staff-permission-table-wrap { flex:0 1 auto; min-height:0; margin:6px 0; border-radius:8px; }
.staff-dialog .staff-audit-panel { flex:none; margin-top:8px; padding-top:8px; font-size:13px; }
.staff-dialog .staff-audit-panel[open] { max-height:min(250px,30dvh); overflow:auto; }
.staff-dialog .staff-toolbar { flex:none; margin:10px 0 4px; gap:8px; }
.staff-dialog .staff-invite-form { gap:6px; }
.staff-dialog .staff-invite-form #staffInviteEmail { flex:0 1 210px; width:210px; min-height:34px; }
.staff-dialog .staff-toolbar button { min-height:34px; padding:5px 10px; font-size:12px; }
.staff-dialog .staff-permission-table th,.staff-dialog .staff-permission-table td { padding:5px 8px; }
.staff-dialog .staff-permission-table th:first-child { min-width:205px; }
.staff-dialog .staff-person-column { min-width:136px; width:150px; max-width:165px; }
.staff-dialog .staff-person-column small { margin:2px 0 4px; }
.staff-dialog .staff-person-actions button { min-height:26px; padding:3px 6px; font-size:11px; }
.staff-dialog .staff-permission-table { min-width:0; width:max-content; table-layout:auto; }
.staff-dialog .staff-permission-table th,.staff-dialog .staff-permission-table td { white-space:nowrap; }
.staff-dialog .staff-permission-table th:first-child { min-width:0; }
.staff-dialog .staff-person-column { min-width:0; width:auto; max-width:none; }
.staff-dialog .staff-person-column small { overflow-wrap:normal; }
.staff-dialog .staff-person-actions { flex-wrap:nowrap; }
.staff-dialog .staff-group-label { white-space:nowrap; }
.staff-email-name { display:block; width:max-content; max-width:none; min-height:0; margin:2px auto; padding:1px 2px; border:0; background:transparent; color:inherit; font:inherit; font-weight:700; white-space:nowrap; cursor:pointer; text-decoration:underline dotted; text-underline-offset:3px; }
.staff-email-name:hover,.staff-email-name:focus-visible { color:#69b8ff; }
.staff-permission-table thead th:nth-child(2) > span { display:block; }
.staff-email-tip { position:fixed; z-index:10; max-width:min(360px,calc(100vw - 32px)); padding:6px 10px; border-radius:7px; background:#0e1d2b; color:#fff; font-size:12px; font-weight:500; white-space:normal; overflow-wrap:anywhere; box-shadow:0 5px 18px #0008; pointer-events:none; }
.staff-email-tip[hidden] { display:none; }
html[data-theme="light"] .staff-email-tip { background:#203247; }
@media(max-width:700px) { .staff-dialog { max-width:calc(100vw - 12px); max-height:calc(100dvh - 12px); padding:10px; } .staff-dialog .staff-toolbar { align-items:flex-start; } }
.staff-heading h2 { margin:0; }
.staff-heading p { margin:5px 0 0; color:#8fa4bb; }
.staff-heading > div { display:grid; justify-items:start; gap:7px; }
.staff-heading h2 { font-size:20px; line-height:1.3; }
.staff-heading p { font-size:14px; }
.staff-heading #staffBackToSystemAdmin { margin:0 0 4px; }
.staff-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:14px 0 8px; }
.staff-invite-form { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; min-width:0; }
.staff-invite-form label { font-weight:700; white-space:nowrap; }
.staff-invite-form #staffInviteEmail { flex:0 1 240px; width:240px; min-width:0; max-width:100%; box-sizing:border-box; }
.staff-permission-table-wrap,.staff-audit-wrap { width:100%; overflow:auto; margin:12px 0; }
.staff-permission-table,.staff-audit-panel table { width:max-content; min-width:100%; border-collapse:collapse; }
.staff-permission-table th,.staff-permission-table td,.staff-audit-panel th,.staff-audit-panel td { border:1px solid #52657a; padding:8px 10px; text-align:center; vertical-align:middle; }
.staff-permission-table th:first-child { min-width:220px; text-align:left; position:sticky; left:0; background:#172332; z-index:1; }
.staff-permission-table thead th { background:#223448; position:sticky; top:0; z-index:2; white-space:pre-line; }
.staff-permission-table thead th:first-child { z-index:3; }
.staff-permission-table input[type=checkbox] { width:18px; height:18px; min-height:18px; margin:0; accent-color:#1674d1; }
.staff-person-column { min-width:145px; width:160px; max-width:180px; }
.staff-person-column strong,.staff-person-column small { display:block; overflow-wrap:anywhere; }
.staff-person-column small { margin:4px 0 7px; color:#9fb0c2; font-size:11px; }
.staff-audit-panel { margin-top:20px; border-top:1px solid #52657a; padding-top:12px; }
.staff-audit-panel summary { cursor:pointer; font-weight:750; }
.staff-revoked-panel { margin-top:18px; }
.staff-revoked-panel h3 { margin:0 0 7px; font-size:14px; }
.staff-revoked-list { display:flex; flex-wrap:wrap; gap:8px; }
.staff-revoked-row { display:flex; align-items:center; gap:12px; border:1px solid #52657a; border-radius:8px; padding:7px 10px; }
html[data-theme="light"] .staff-permission-table th:first-child { background:#f7fafc; }
html[data-theme="light"] .staff-permission-table thead th { background:#e6edf5; }
html[data-theme="light"] .staff-permission-table th,html[data-theme="light"] .staff-permission-table td,html[data-theme="light"] .staff-audit-panel th,html[data-theme="light"] .staff-audit-panel td { border-color:#c6d2df; }

/* Operational permission scopes stay readable beside compact checkbox columns. */
.staff-permission-description { display:block; max-width:440px; margin-top:4px; font-size:12px; font-weight:400; line-height:1.45; white-space:normal; color:#9fb0c2; }
.staff-group-label { display:block; font-size:11px; margin-top:6px; color:#69b8ff; }
.staff-group-start > * { border-top-width:3px !important; }
.staff-permission-warning { display:block; max-width:200px; margin:5px auto 0; font-size:11px; color:#ffca6b; white-space:normal; }
html[data-theme="light"] .staff-permission-description { color:#52657a; }
html[data-theme="light"] .staff-group-label { color:#1264a3; }
html[data-theme="light"] .staff-permission-warning { color:#925000; }

/* Same operator UI, with an isolated public dataset. */
.simulation-notice { display:flex; align-items:center; flex:none; gap:0; padding:0; margin:0; border:0; border-radius:0; background:transparent; box-shadow:none; }

.public-simulation .simulation-notice button { display:inline-flex; align-items:center; min-height:36px; padding:6px 8px; border-radius:9px; font-size:12px; font-weight:750; white-space:nowrap; }
.public-simulation .simulation-nav-tail > .simulation-stop-button { background:#b42336 !important; color:#fff !important; border:1px solid #eb5868 !important; }
.public-simulation .simulation-nav-tail > .simulation-stop-button:hover { background:#951c2d !important; }
/* Compact division selectors share existing filtering callbacks. */
.compact-division-picker.compact-division-picker { display:flex; flex:1 1 420px; width:min(620px,100%); min-width:0; max-width:100%; align-items:center; gap:6px; flex-wrap:nowrap; overflow:hidden; justify-content:flex-start; }
.compact-division-picker > button { min-width:0; max-width:180px; flex:0 1 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.compact-division-picker > .division-picker-open { flex:0 0 auto; max-width:none; min-height:30px; padding:5px 10px; font-size:12px; margin-left:auto; }
.compact-division-picker > .picker-hidden,.compact-division-picker > .picker-overflow { display:none!important; }
.results-filter-tools { flex:1 1 auto; max-width:100%; }
/* Keep each filter group in one intrinsic-width row; let searches shrink first. */
.awards-filter-center,.participant-filter-center,.queue-filter-center { display:flex; align-items:center; justify-content:center; flex:0 1 auto; flex-wrap:nowrap; gap:8px; width:max-content; max-width:100%; min-width:0; margin-inline:auto; }
:is(.awards-filter-center,.participant-filter-center,.queue-filter-center) .compact-division-picker.compact-division-picker { flex:0 0 auto; width:auto; max-width:none; justify-content:center; flex-wrap:nowrap; overflow:visible; }
:is(.awards-filter-center,.participant-filter-center,.queue-filter-center) button { flex-shrink:0; white-space:nowrap; }
:is(.awards-filter-center,.queue-filter-center) .waiting-queue-search { flex:0 1 210px; min-width:120px; }
:is(.awards-filter-center,.queue-filter-center) .waiting-queue-search input { width:100%; min-width:0; }
.participant-filter-center .search-controls { flex:0 1 auto; }
.participant-filter-center .search-controls input { flex:0 1 210px; width:210px; min-width:120px; }
.queue-filter-center .waiting-queue-result-count { flex:none; position:static; }
.waiting-queue-tools:is(.today-queue-toolbar,.waiting-queue-filter-toolbar) { display:grid; grid-template-columns:minmax(max-content,1fr) auto minmax(0,1fr); }
.waiting-queue-tools .queue-filter-legend { grid-column:1; grid-row:1; justify-content:flex-start; flex-wrap:nowrap; gap:10px; }
.waiting-queue-tools .queue-filter-legend > span { white-space:nowrap; }
.waiting-queue-tools:is(.today-queue-toolbar,.waiting-queue-filter-toolbar) .queue-filter-center { grid-column:2; grid-row:1; }
.division-picker-dialog { width:min(860px,90vw); max-height:90dvh; padding:20px; border:1px solid #56718c; border-radius:14px; background:#151c25; color:#edf2f7; }
.division-picker-dialog::backdrop { background:#0008; }
.division-picker-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.division-picker-dialog button,.division-picker-dialog input,.division-picker-dialog select { font-size:13px; min-height:34px; }
.division-picker-dialog > input { width:100%; box-sizing:border-box; }
.division-picker-filters { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:12px; }
.division-picker-filters label { display:flex; flex-direction:column; gap:5px; min-width:0; font-size:12px; }
.division-picker-filters select { width:100%; min-width:0; padding:5px; }
.division-picker-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:50dvh; overflow-y:auto; }
.division-picker-list button { width:100%; min-width:0; white-space:normal; text-align:left; padding:9px 12px; border:1px solid #56718c; background:transparent; color:inherit; }
.division-picker-list button[aria-pressed="true"] { background:#1769c2; color:#fff; }
.division-picker-dialog p { font-size:12px; margin:10px 0; }
html[data-theme="light"] .division-picker-dialog { background:#fff; color:#1d2a37; border-color:#c4d0dc; }
html[data-theme="light"] .division-picker-list button { border-color:#c4d0dc; }

.compact-division-picker > .division-picker-open { order:10; }

.results-all-divisions .results-content-layout { display:grid; grid-template-columns:max-content max-content; grid-auto-rows:auto; align-items:start; justify-content:start; gap:0 var(--bracket-card-reference-width,150px); width:max-content; margin-right:auto; margin-left:auto; }
.results-all-divisions #preliminaryGroups,.results-all-divisions .results-side-column,.results-all-divisions #preliminaryBracketFlow { display:contents; }
.results-all-divisions .preliminary-division-overview-item { grid-column:1; align-self:stretch; width:max-content; }
.results-all-divisions .results-bracket-overview-item { grid-column:2; align-self:stretch; }
.results-all-divisions .preliminary-division-heading,.results-bracket-overview-heading { font-size:15px; margin:22px 0 8px; }
.results-all-divisions .preliminary-division-heading { border-top:0; }
.results-bracket-overview-item { width:max-content; min-width:0; padding-bottom:14px; }
.results-all-divisions .results-division-separator { grid-column:1 / -1; align-self:stretch; justify-self:stretch; width:auto; margin:18px 0 0; border:0; border-top:2px solid #52657a; }
html[data-theme="light"] .results-division-separator { border-top-color:#b8c9da; }
#pwaInstall { padding:6px 10px; min-height:32px; font-size:12px; white-space:nowrap; }
#pwaInstall[hidden] { display:none!important; }
.pwa-install-help { width:min(520px,90vw); max-height:85dvh; overflow:auto; box-sizing:border-box; padding:22px; border:1px solid #8aa4bc; border-radius:14px; background:#151c25; color:#edf2f7; }
.pwa-install-help::backdrop { background:#0008; }
.pwa-install-help h2 { font-size:18px; margin:0 0 16px; }
.pwa-install-help p { font-size:14px; line-height:1.6; }
.pwa-install-help button { font-size:14px; padding:8px 16px; }
html[data-theme="light"] .pwa-install-help { background:#fff; color:#1d2a37; }
@media (display-mode: standalone) { #pwaInstall { display:none!important; } }
/* Keep simulation controls beside the navigation without overlapping account actions. */
.public-simulation header { flex-wrap:wrap; }
.public-simulation .header-operator-nav { flex-wrap:wrap; }

.simulation-nav-tail { display:flex; align-items:center; gap:8px; flex:none; }

.queue-court-card .queue-court-heading { justify-content:flex-start; text-align:left; min-height:18px; }
.queue-court-identity { display:flex; align-items:center; flex-wrap:wrap; gap:4px; min-width:0; justify-self:start; }
.queue-court-number { font-size:14px; font-weight:800; }
.queue-court-identity .queue-card-number { font-size:10px; }
.queue-court-controls { grid-template-columns:auto auto minmax(0,1fr); }
.queue-court-identity { flex-wrap:nowrap; }

.queue-court-controls { grid-template-columns:auto minmax(0,1fr); gap:4px; }
.queue-court-controls .mock-status { padding:4px; font-size:10px; white-space:nowrap; }
.queue-court-card > .queue-card-number { display:block; font-size:10px; line-height:1.1; }

/* Waiting cards: division, players, then queue position and reorder controls. */
.queue-upcoming-card .queue-court-heading { justify-content:flex-start; text-align:left; margin-bottom:3px; }
.queue-upcoming-card .queue-card-match-meta { display:none; }
.queue-upcoming-card .queue-card-versus { min-height:0; }
.queue-waiting-order-actions { align-items:center; margin-top:5px; }
.queue-waiting-number { margin-right:auto; font-size:14px; }

#queueCompleteAll { background:#9c3444; color:#fff; border-color:#bd5363; }
#queueCompleteAll:disabled { opacity:.5; cursor:default; }
.queue-bulk-completing #queueCourtGrid, .queue-bulk-completing #queueUpcoming { pointer-events:none; }
.queue-mode-actions { flex-wrap:wrap; }
.queue-upcoming-header { min-width:0; }

.queue-waiting-players-icon { width:42px; height:20px; margin-left:auto; flex:none; fill:#7ebcff; opacity:.78; }
.queue-waiting-players-icon .queue-waiting-clock { fill:none; stroke:currentColor; stroke-width:1.7; }
.queue-waiting-players-icon .queue-waiting-clock-hands { fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
html[data-theme="light"] .queue-waiting-players-icon { fill:#2875ac; opacity:.86; }

.queue-upcoming-card .queue-card-versus { position:relative; grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr); }
.queue-upcoming-card .queue-card-team-left { grid-column:1; }
.queue-upcoming-card .queue-card-team-right { grid-column:3; }
.queue-upcoming-card .queue-waiting-center-number { position:static; margin:0 auto 0 0; color:#172a1e; font-size:14px; font-weight:900; white-space:nowrap; }
.queue-upcoming-card.queue-conflict .queue-waiting-center-number { color:#2d1d21; }
.queue-upcoming-card.queue-finals .queue-waiting-center-number { color:#3a3217; }
html[data-theme="light"] .queue-upcoming-card.queue-eligible .queue-waiting-center-number { color:#172a1e; }
html[data-theme="light"] .queue-upcoming-card.queue-conflict .queue-waiting-center-number { color:#2d1d21; }
html[data-theme="light"] .queue-upcoming-card.queue-finals .queue-waiting-center-number { color:#4b3e0f; }
.queue-waiting-order-actions .queue-waiting-players-icon { margin:0 auto 0 0; }

#navSimulation:not(.simulation-stop-button){background:#15803d;color:#fff;border:1px solid #15803d;font-weight:700}#navSimulation:not(.simulation-stop-button):hover{background:#166534;border-color:#166534}

.staff-person-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; }
.staff-person-actions button { padding:5px 7px; min-height:30px; font-size:12px; }
.staff-person-actions .staff-action-pause { background:#facc15; color:#422006; border:1px solid #ca8a04; }
.staff-person-actions .staff-action-restore { background:#15803d; color:#fff; border:1px solid #166534; }
.staff-person-actions .staff-action-remove { background:#b42336; color:#fff; border:1px solid #951c2d; }
.staff-permission-table .staff-is-paused { background:#374151; color:#aeb6c2; }
html[data-theme="light"] .staff-permission-table .staff-is-paused { background:#e5e7eb; color:#6b7280; }

#staffPauseAll { background:#facc15; color:#000; border:1px solid #ca8a04; }
#staffPauseAll:hover:not(:disabled) { background:#eab308; color:#000; }

.division-picker-legend { display:flex; flex-wrap:wrap; gap:6px 16px; margin:10px 0; font-size:13px; line-height:1.5; }
.division-picker-legend span { white-space:nowrap; }

#preliminaryDraw > .preliminary-controls:not(.preliminary-controls-bottom) .preliminary-center-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,max-content) minmax(0,1fr); margin-left:0; width:100%; }
#preliminaryDraw .preliminary-controls:not(.preliminary-controls-bottom) .results-filter-tools { grid-column:2; justify-content:center; }
.results-toolbar-actions { grid-column:3; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; min-width:0; }
@media (max-width:1100px) {
 #preliminaryDraw > .preliminary-controls:not(.preliminary-controls-bottom) .preliminary-center-controls { grid-template-columns:minmax(0,1fr); }
 #preliminaryDraw .preliminary-controls:not(.preliminary-controls-bottom) .results-filter-tools { grid-column:1; justify-self:center; flex-wrap:wrap; max-width:100%; }
 .results-toolbar-actions { grid-column:1; }
}

.public-simulation .simulation-notice button { background:#facc15; color:#000; border:0; }
.public-simulation .simulation-notice button:hover:not(:disabled) { background:#eab308; color:#000; }

#tournamentSettings .settings-staff-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; justify-self:start; width:auto; min-height:50px; padding:12px 24px; margin:10px 0 14px; border:1px solid #eab308; border-radius:10px; background:#facc15; color:#111827; font-size:18px; font-weight:750; cursor:pointer; }
#tournamentSettings .settings-staff-button > span[aria-hidden] { font-size:25px; line-height:1; }
#tournamentSettings .settings-staff-button:hover:not(:disabled) { background:#eab308; }

.practice-tournament-title { display:block; max-width:min(420px,36vw); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:inherit; font-size:12px; font-weight:750; }
#resultsShareUrl.awards-export-help::after { left:auto; right:0; transform:none; }

/* Compact the settings editor while retaining the schedule table layout. */
#tournamentSettings .schedule-settings-layout { row-gap:8px; }
#scheduleSettingsForm > .schedule-setting-row { gap:6px; }
#scheduleSettingsForm > .schedule-setting-row .schedule-setting-item { gap:10px; }
#scheduleSettingsForm > .schedule-setting-row .schedule-setting-item input:not([type="checkbox"]) { min-height:30px; height:30px; padding:3px 8px; border-radius:6px; line-height:1.2; }
#scheduleSettingsForm > .schedule-setting-row .schedule-setting-item label { line-height:1.25; }

.queue-upcoming-card .queue-waiting-center-number { width:48px; white-space:nowrap; }
.queue-upcoming-card .queue-card-versus { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
.queue-upcoming-card .queue-card-team-right { grid-column:2; }
.queue-upcoming-card .queue-card-team { justify-items:stretch; }
.queue-upcoming-card .queue-card-team-left .queue-player-name { text-align:right; }
.queue-upcoming-card .queue-card-team-right .queue-player-name { text-align:left; }

.queue-legend-player { color:#d32f2f; font-weight:800; }

.queue-court-kitchen.queue-court-score { display:flex; align-items:center; justify-content:center; color:#fff; font-size:min(26px, 9cqw); font-weight:900; line-height:1; }

.queue-court-controls .queue-court-elapsed { justify-self:end; color:#7dd3fc; font-variant-numeric:tabular-nums; font-weight:700; font-size:11px; white-space:nowrap; }
html[data-theme="light"] .queue-court-controls .queue-court-elapsed { color:#0284c7; }
