/* Teamgeist Turniermanager – gemeinsames Designsystem v1 */
:root{--tg-red:#b7192f;--tg-ink:#27313b;--tg-muted:#667085;--tg-border:#e4e7ec;--tg-bg:#f4f5f7;--tg-radius:10px;--tg-font:Inter,Arial,Helvetica,sans-serif;font-family:var(--tg-font)!important}
body{font-family:var(--tg-font)!important;background:var(--tg-bg)}
body>header.tg-site-header{position:relative!important;box-sizing:border-box!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;align-content:center!important;flex-wrap:nowrap!important;gap:16px!important;height:126px!important;min-height:126px!important;max-height:126px!important;padding:12px max(18px,calc((100vw - 1250px)/2))!important;margin:0!important;background:#fff!important;color:var(--tg-ink)!important;border:0!important;border-bottom:4px solid var(--tg-red)!important;overflow:hidden!important}
body>header.tg-site-header::before,body>header.tg-site-header::after{display:none!important}
body>header.tg-site-header .tg-header-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;flex:1 1 auto!important;min-width:0!important;gap:4px!important;margin:0!important}
body>header.tg-site-header .tg-header-brand{display:block!important;font:800 12px/1.4 var(--tg-font)!important;letter-spacing:.18em!important;color:var(--tg-red)!important;margin:0!important}
body>header.tg-site-header h1{display:block!important;position:static!important;margin:0!important;padding:0!important;color:var(--tg-ink)!important;font:750 clamp(18px,2.1vw,26px)/1.22 var(--tg-font)!important;letter-spacing:-.035em!important;text-transform:none!important;text-shadow:none!important}
body>header.tg-site-header h1::before,body>header.tg-site-header h1::after{content:none!important;display:none!important}
body>header.tg-site-header .tg-header-actions{display:flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:7px!important;max-width:60%!important;margin:0!important;padding:0!important}
body>header.tg-site-header .tg-header-actions:empty{display:none!important}
body>header.tg-site-header .tg-header-actions button{position:static!important;inset:auto!important;float:none!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;margin:0!important;padding:8px 11px!important;border-radius:8px!important;font:700 12px/1.2 var(--tg-font)!important;letter-spacing:normal!important;white-space:nowrap!important;max-width:100%!important}
body>.event-nav.tg-site-nav{position:relative!important;box-sizing:border-box!important;display:flex!important;flex-flow:row wrap!important;align-items:center!important;align-content:center!important;justify-content:center!important;gap:9px!important;min-height:68px!important;width:100%!important;margin:0!important;padding:12px 16px!important;overflow:visible!important;background:#fff!important;border:0!important;border-bottom:1px solid var(--tg-border)!important;scroll-behavior:auto!important}
body>.event-nav.tg-site-nav a{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;height:39px!important;margin:0!important;padding:0 13px!important;background:#fff!important;color:#374151!important;border:1px solid #dce0e6!important;border-radius:9px!important;font:700 13px/1.25 var(--tg-font)!important;letter-spacing:normal!important;text-decoration:none!important;white-space:nowrap!important}
body>.event-nav.tg-site-nav a.active,body>.event-nav.tg-site-nav a[aria-current="page"]{background:var(--tg-red)!important;border-color:var(--tg-red)!important;color:#fff!important}
body>.event-nav.tg-site-nav a:focus-visible,body>header.tg-site-header button:focus-visible{outline:3px solid #f7a3b2!important;outline-offset:2px!important}
@media(max-width:760px){body>header.tg-site-header{padding:10px 14px!important;gap:10px!important}body>header.tg-site-header h1{font-size:18px!important}body>header.tg-site-header .tg-header-actions{max-width:55%!important;gap:4px!important}body>header.tg-site-header .tg-header-actions button{font-size:10px!important;min-height:30px!important;padding:6px!important}body>.event-nav.tg-site-nav{gap:6px!important;padding:10px 7px!important}body>.event-nav.tg-site-nav a{font-size:12px!important;height:35px!important;padding:0 9px!important}}
@media print{body>.event-nav.tg-site-nav{display:none!important}}


/* Shared content components – deliberately scoped to tournament editor, not spectator/print views */
body:not(.spectator) main .card{background:#fff;border:1px solid var(--tg-border);border-radius:var(--tg-radius);box-shadow:0 3px 14px rgba(16,24,40,.045)}
body:not(.spectator) main .card h2{color:var(--tg-ink);font-family:var(--tg-font);font-weight:750;letter-spacing:-.02em}
body:not(.spectator) main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),select,textarea){border:1px solid #cbd2dc;border-radius:8px;background-color:#fff;color:var(--tg-ink);font-family:var(--tg-font);font-size:15px;line-height:1.35;box-shadow:none}
body:not(.spectator) main :is(input,select,textarea):focus-visible{outline:3px solid rgba(183,25,47,.2);outline-offset:1px;border-color:var(--tg-red)}
body:not(.spectator) main input[type="checkbox"],body:not(.spectator) main input[type="radio"]{accent-color:var(--tg-red)}
body:not(.spectator) main button:not(.tg-unstyled){border-radius:8px;font-family:var(--tg-font);font-weight:700;letter-spacing:normal;transition:filter .12s ease,box-shadow .12s ease}
body:not(.spectator) main button:not(.secondary):not(.active):not(:disabled):hover{filter:brightness(.94)}
body:not(.spectator) main button.secondary{background:#e9edf2;color:#344054;border:1px solid #d8dee7}
body:not(.spectator) main button.secondary:not(:disabled):hover{background:#dfe5ed}
body:not(.spectator) main button:focus-visible{outline:3px solid rgba(183,25,47,.3);outline-offset:2px}
body:not(.spectator) main button:disabled{cursor:not-allowed;opacity:.48}
body:not(.spectator) main :is(.scroll,.table-scroll){max-width:100%;overflow-x:auto}
body:not(.spectator) main table{border-collapse:collapse;width:100%;font-family:var(--tg-font);font-size:14px;color:var(--tg-ink)}
body:not(.spectator) main table th{background:#f3f5f8;color:#344054;font-weight:750}
body:not(.spectator) main table :is(th,td){border-bottom:1px solid #e6e9ee;vertical-align:middle}
body:not(.spectator) main table tbody tr:hover{background:rgba(183,25,47,.025)}
body:not(.spectator) main .muted{color:var(--tg-muted)}
body:not(.spectator) main :is(.match,.question,.syncbox){border-radius:var(--tg-radius)}
@media(max-width:600px){body:not(.spectator) main .card{border-radius:10px}body:not(.spectator) main button{touch-action:manipulation}}
@media print{body:not(.spectator) main .card{box-shadow:none!important;border-color:#ddd!important}body:not(.spectator) main table tbody tr:hover{background:transparent!important}}


/* Appearance controls */
.tg-appearance-controls{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;align-items:center;padding:9px max(18px,calc((100vw - 1250px)/2));background:#f7f8fa;border-bottom:1px solid var(--tg-border)}
.tg-appearance-controls button{border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#344054;padding:8px 12px;min-height:36px;font:700 12px var(--tg-font);cursor:pointer}
.tg-appearance-controls button.tg-mode-active{background:var(--tg-red);border-color:var(--tg-red);color:#fff}
.tg-appearance-controls button:focus-visible{outline:3px solid #f6a6b3;outline-offset:2px}
html[data-tg-theme="dark"]{color-scheme:dark;--tg-bg:#111827;--tg-ink:#eef2f7;--tg-muted:#b6c1d1;--tg-border:#435064}
html[data-tg-theme="dark"] body{background:#111827!important;color:#eef2f7!important}
html[data-tg-theme="dark"] body>header.tg-site-header,html[data-tg-theme="dark"] body>.event-nav.tg-site-nav{background:#1b2535!important;color:#f1f5f9!important}
html[data-tg-theme="dark"] body>header.tg-site-header h1{color:#f1f5f9!important}
html[data-tg-theme="dark"] body>.event-nav.tg-site-nav a{background:#263348!important;border-color:#48566b!important;color:#f1f5f9!important}
html[data-tg-theme="dark"] body>.event-nav.tg-site-nav a.active{background:var(--tg-red)!important;border-color:var(--tg-red)!important;color:#fff!important}
html[data-tg-theme="dark"] .tg-appearance-controls{background:#1b2535;border-color:#435064}
html[data-tg-theme="dark"] .tg-appearance-controls button{background:#263348;border-color:#48566b;color:#f1f5f9}
html[data-tg-theme="dark"] .tg-appearance-controls button.tg-mode-active{background:var(--tg-red);color:white}
html[data-tg-theme="dark"] body main :is(.card,.match,.question,.syncbox,.status,.notice,.station,.scoreboard,.panel){background-color:#202c3d!important;color:#f1f5f9!important;border-color:#46546a!important;box-shadow:none!important}
html[data-tg-theme="dark"] body main :is(h1,h2,h3,h4,label,strong,p,span,td,th){color:inherit}
html[data-tg-theme="dark"] body main :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background-color:#162233!important;color:#f1f5f9!important;border-color:#64748b!important}
html[data-tg-theme="dark"] body main :is(input,textarea)::placeholder{color:#aab6c7}
html[data-tg-theme="dark"] body main table th{background:#304056!important;color:#f1f5f9!important}
html[data-tg-theme="dark"] body main table :is(th,td){border-color:#48566b!important}
html[data-tg-theme="dark"] body main table tbody tr:hover{background:#2b394d!important}
html[data-tg-theme="dark"] body main button.secondary{background:#39485c!important;color:#f1f5f9!important;border-color:#64748b!important}
html[data-tg-theme="dark"] body main .muted{color:#bac5d5!important}
html[data-tg-theme="dark"] body main :is(.tabs button.active,.pill,.tag){color:#fff}
html[data-tg-theme="sun"]{color-scheme:light;--tg-bg:#fff;--tg-ink:#111827;--tg-muted:#344054;--tg-border:#667085}
html[data-tg-theme="sun"] body{background:#fff!important;color:#111827!important}
html[data-tg-theme="sun"] body>header.tg-site-header{border-bottom-width:6px!important}
html[data-tg-theme="sun"] body>.event-nav.tg-site-nav{border-bottom:2px solid #344054!important}
html[data-tg-theme="sun"] body>.event-nav.tg-site-nav a{border:2px solid #344054!important;color:#101828!important;font-weight:800!important}
html[data-tg-theme="sun"] body>.event-nav.tg-site-nav a.active{background:#99152a!important;color:#fff!important;border-color:#99152a!important}
html[data-tg-theme="sun"] .tg-appearance-controls{background:#fff;border-bottom:2px solid #344054}
html[data-tg-theme="sun"] .tg-appearance-controls button{border:2px solid #344054;color:#111827;font-weight:800}
html[data-tg-theme="sun"] .tg-appearance-controls button.tg-mode-active{background:#99152a;border-color:#99152a;color:#fff}
html[data-tg-theme="sun"] body main :is(.card,.match,.question,.syncbox){background:#fff!important;border:2px solid #475467!important;box-shadow:none!important;color:#111827!important}
html[data-tg-theme="sun"] body main :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#fff!important;border:2px solid #344054!important;color:#111827!important}
html[data-tg-theme="sun"] body main button:not(.secondary){background:#99152a;color:#fff;font-weight:800}
html[data-tg-theme="sun"] body main button.secondary{background:#fff!important;color:#111827!important;border:2px solid #344054!important;font-weight:800}
html[data-tg-theme="sun"] body main table th{background:#e5e7eb!important;color:#111827!important}
html[data-tg-theme="sun"] body main table :is(th,td){border-bottom:2px solid #667085!important}
html[data-tg-theme="sun"] body main .muted{color:#344054!important}
@media print{.tg-appearance-controls{display:none!important}html[data-tg-theme="dark"] body,html[data-tg-theme="sun"] body{background:#fff!important;color:#111!important}}


/* Dark-mode contrast fixes for nested panels and status surfaces */
html[data-tg-theme="dark"] body main .round-control{background:#344155!important;border:1px solid #65758a!important;color:#f8fafc!important}
html[data-tg-theme="dark"] body main .round-control #round-status{color:#f8fafc!important}
html[data-tg-theme="dark"] body main :is(.round-control,.round-control strong,.round-control span,.round-control p){color:#f8fafc!important}
html[data-tg-theme="dark"] body main :is(.notice,.status,.syncstatus,.round-status,.round-banner,.round-info){color:#f1f5f9!important}
html[data-tg-theme="dark"] body main :is(.round-control,.notice,.status,.syncbox) :is(strong,small,span,p,label){color:inherit!important}
html[data-tg-theme="dark"] body main .tabs button.active{background:#111827!important;color:#fff!important;border:1px solid #8292aa!important}
html[data-tg-theme="dark"] body main .tabs button:not(.active):not(.secondary){background:#b7192f!important;color:#fff!important}
html[data-tg-theme="dark"] body main :is(.pill,.tag){background:#4c2534!important;color:#fff!important}
html[data-tg-theme="dark"] body main :is(.round-control,.notice,.status,.syncbox) button{color:#fff!important}
html[data-tg-theme="dark"] body main :is(.round-control,.notice,.status,.syncbox) button.secondary{color:#f8fafc!important}
html[data-tg-theme="sun"] body main .round-control{background:#fff!important;border:2px solid #344054!important;color:#111827!important}
html[data-tg-theme="sun"] body main .round-control #round-status{color:#111827!important}


/* Dark mode audit v5: explicit foreground/background pairs for nested controls. */
html[data-tg-theme="dark"] body main :is(.lane-filter,.summary span,.match-score,.ko-tree-wrap,.ko-tree-game,.score-panel,.arrow-slot,.round-score,.plan-switch,.plan-table .team-chip,.score-explanation,.extra-module-section,.duel-help,.duel-match,.review-request,.practice,.round-indicator,.shot,.question,.team-qr-card,.bar,.entry,.format-link,.guide-chat-panel,.guide-chat-messages,.guide-chat-msg,.viewer-panel,.qr-panel,.qr-box,.tg-history-panel,.history-panel,.history-corner,.history-corner-button,.tg-history>summary,.modules label,.quiz-tabs button,.round-control,.notice,.recovery-key){background:#263449!important;color:#f4f7fc!important;border-color:#596b83!important}
html[data-tg-theme="dark"] body main :is(.lane-filter,.summary span,.match-score,.ko-tree-wrap,.ko-tree-game,.score-panel,.arrow-slot,.round-score,.plan-switch,.plan-table .team-chip,.score-explanation,.extra-module-section,.duel-help,.duel-match,.review-request,.practice,.round-indicator,.shot,.question,.team-qr-card,.entry,.format-link,.guide-chat-panel,.guide-chat-messages,.guide-chat-msg,.viewer-panel,.qr-panel,.qr-box,.tg-history-panel,.history-panel,.history-corner,.history-corner-button,.modules label,.quiz-tabs button,.round-control,.notice,.recovery-key) :is(label,small,span,strong,p,h2,h3,h4){color:inherit!important}
html[data-tg-theme="dark"] body main .lane-filter :is(label,span,strong){color:#f8fafc!important}
html[data-tg-theme="dark"] body main .lane-filter input[type="checkbox"]{accent-color:#e11d48}
html[data-tg-theme="dark"] body main .lane-filter input[type="checkbox"]:focus-visible{outline:3px solid #fff;outline-offset:2px}
html[data-tg-theme="dark"] body main :is(.participant.selected,.arrow-slot.next,.round-score.total,.plan-table .final-row,.modules label:has(input:checked),.guide-chat-msg.mine){background:#522a3a!important;color:#fff!important;border-color:#e87991!important}
html[data-tg-theme="dark"] body main :is(.participant.selected,.arrow-slot.next,.round-score.total,.modules label:has(input:checked)) :is(strong,small,span,label){color:#fff!important}
html[data-tg-theme="dark"] body main :is(.tabs button,.quiz-tabs button,.plan-switch button){color:#f8fafc!important}
html[data-tg-theme="dark"] body main :is(.tabs button,.quiz-tabs button,.plan-switch button):not(.active):not(.secondary){background:#a71930!important;color:#fff!important}
html[data-tg-theme="dark"] body main :is(.tabs button,.quiz-tabs button,.plan-switch button).active{background:#111827!important;color:#fff!important;border:1px solid #94a3b8!important}
html[data-tg-theme="dark"] body main :is(.history-panel,.tg-history-panel,.guide-chat-panel,.qr-panel,.qr-box,.viewer-panel){background:#1d2b3e!important;color:#f8fafc!important;border:1px solid #64748b!important}
html[data-tg-theme="dark"] body main :is(.history-panel,.tg-history-panel,.guide-chat-panel,.qr-panel,.qr-box,.viewer-panel) :is(h2,h3,p,span,small,label,strong){color:#f8fafc!important}
html[data-tg-theme="dark"] body main .guide-chat-msg{background:#34445b!important;color:#f8fafc!important}
html[data-tg-theme="dark"] body main .guide-chat-msg.mine{background:#5a2a40!important;color:#fff!important}
html[data-tg-theme="dark"] body main .plan-table .final-row td{background:#522a3a!important;color:#fff!important}
html[data-tg-theme="dark"] body main .guide-table :is(th,td){background:#263449!important;color:#f8fafc!important}
html[data-tg-theme="dark"] body main .format-link{background:#263449!important;color:#f8fafc!important}
html[data-tg-theme="dark"] body main .format-link small{color:#cbd5e1!important}
html[data-tg-theme="dark"] body main .entry{background:#263449!important;color:#f8fafc!important}
html[data-tg-theme="dark"] body main .entry a{color:#ffb4c3!important}
html[data-tg-theme="dark"] body main .entry small{color:#cbd5e1!important}
html[data-tg-theme="dark"] body main .filters :is(label,input,select){color:#f8fafc!important}
html[data-tg-theme="dark"] body main .filters :is(input,select){background:#162233!important;border-color:#64748b!important}
html[data-tg-theme="dark"] body main .bar{background:#475569!important}
html[data-tg-theme="dark"] body main .bar>div{background:#fb7185!important}
/* These floating elements are not necessarily children of main. */
html[data-tg-theme="dark"] body :is(.viewer-panel,.qr-panel,.qr-box,.guide-chat-panel,.guide-chat-messages,.history-panel,.tg-history-panel,.ko-tree-wrap){background:#202c3d!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-tg-theme="dark"] body :is(.viewer-panel,.qr-panel,.qr-box,.guide-chat-panel,.guide-chat-messages,.history-panel,.tg-history-panel) :is(p,span,small,strong,h2,h3,label){color:inherit!important}
html[data-tg-theme="dark"] body :is(.guide-chat-msg,.guide-chat-msg.mine){color:#f8fafc!important;border-color:#64748b!important}
html[data-tg-theme="dark"] body :is(.guide-chat-msg){background:#34445b!important}
html[data-tg-theme="dark"] body :is(.guide-chat-msg.mine){background:#5a2a40!important}
html[data-tg-theme="dark"] body :is(.tg-history>summary,#history-section .history-corner-button,.history-corner){background:#263449!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-tg-theme="dark"] body :is(.tg-history>summary,#history-section .history-corner-button,.history-corner):hover{background:#364760!important;color:#fff!important}
html[data-tg-theme="dark"] body :is(.spectator-call,.viewer-banner){background:#522a3a!important;color:#fff!important}
html[data-tg-theme="dark"] body .guide-chat-msg :is(span,small,strong,p){color:inherit!important}
@media print{html[data-tg-theme="dark"] body :is(.sheet,.printsheet,.guide-sheet,.guide-table td,.guide-table th){background:#fff!important;color:#111827!important}}


/* Appearance mode explanation */
.tg-appearance-controls .tg-appearance-info{display:flex;flex-direction:column;gap:2px;flex:1 1 220px;min-width:0;color:#344054}
.tg-appearance-controls .tg-appearance-info strong{font-size:13px;line-height:1.3}
.tg-appearance-controls .tg-appearance-info small{font-size:11px;line-height:1.4;color:#667085}
html[data-tg-theme="dark"] .tg-appearance-controls .tg-appearance-info{color:#f8fafc}
html[data-tg-theme="dark"] .tg-appearance-controls .tg-appearance-info small{color:#cbd5e1}
html[data-tg-theme="sun"] .tg-appearance-controls .tg-appearance-info{color:#111827}
html[data-tg-theme="sun"] .tg-appearance-controls .tg-appearance-info small{color:#344054}
@media(max-width:600px){.tg-appearance-controls .tg-appearance-info{flex-basis:100%}}


/* Kicker/Dart match cards follow the Eisstock score-card layout. */
body.tg-board-format main .match[data-station]{min-width:0;border:1px solid #dfe4ea!important;border-left:5px solid var(--station-color)!important;border-radius:11px!important;background:#fff!important;box-shadow:0 2px 8px rgba(16,24,40,.045)!important;padding:13px!important}
body.tg-board-format main .match[data-station] h4{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px!important;color:#344054!important}
body.tg-board-format main .match[data-station] .small{font-size:12px!important;font-weight:650;color:#667085!important}
body.tg-board-format main .match[data-station] .scoreline{display:grid;grid-template-columns:minmax(0,1fr) 62px;align-items:center;gap:10px;margin:0;padding:5px 9px;min-height:46px;background:#f8fafc;color:#27313b;border-left:1px solid #e2e6ec;border-right:1px solid #e2e6ec}
body.tg-board-format main .match[data-station] .scoreline:nth-of-type(1){border-top:1px solid #e2e6ec;border-radius:9px 9px 0 0}
body.tg-board-format main .match[data-station] .scoreline:nth-of-type(2){border-bottom:1px solid #e2e6ec;border-radius:0 0 9px 9px}
body.tg-board-format main .match[data-station] .scoreline strong{color:#27313b!important;font-size:14px;font-weight:750;min-width:0}
body.tg-board-format main .match[data-station] .scoreline input{box-sizing:border-box;width:62px;height:38px;text-align:center;font-size:16px;font-weight:750;border:1px solid #cbd3df!important;border-radius:8px;background:#fff!important;color:#111827!important}
body.tg-board-format main .match[data-station] .station-badge{background:var(--station-color)!important;color:#fff!important}
html[data-tg-theme="dark"] body.tg-board-format main .match[data-station]{background:#202c3d!important;border-color:#58677c!important;border-left-color:var(--station-color)!important;box-shadow:none!important}
html[data-tg-theme="dark"] body.tg-board-format main .match[data-station] h4{color:#f8fafc!important}
html[data-tg-theme="dark"] body.tg-board-format main .match[data-station] .small{color:#cbd5e1!important}
html[data-tg-theme="dark"] body.tg-board-format main .match[data-station] .scoreline{background:#29384d!important;color:#f8fafc!important;border-color:#52647c!important}
html[data-tg-theme="dark"] body.tg-board-format main .match[data-station] .scoreline strong{color:#f8fafc!important}
html[data-tg-theme="dark"] body.tg-board-format main .match[data-station] .scoreline input{background:#142033!important;color:#fff!important;border-color:#72829a!important}
html[data-tg-theme="sun"] body.tg-board-format main .match[data-station]{background:#fff!important;border:2px solid #344054!important;border-left:6px solid var(--station-color)!important}
html[data-tg-theme="sun"] body.tg-board-format main .match[data-station] .scoreline{background:#fff!important;border-color:#344054!important}
html[data-tg-theme="sun"] body.tg-board-format main .match[data-station] .scoreline strong{color:#111827!important}
html[data-tg-theme="sun"] body.tg-board-format main .match[data-station] .scoreline input{border:2px solid #344054!important}
@media(max-width:600px){body.tg-board-format main .match[data-station] .scoreline{grid-template-columns:minmax(0,1fr) 56px}body.tg-board-format main .match[data-station] .scoreline input{width:56px}}


/* Unified Eisstock-inspired score / activity cards across all eight formats.
   Keep each sport's scoring and form structure intact. */
body main :is(.participant,.score-panel,.duel-match,.modules label,.question,.team-qr-card,.plan-table .team-chip,.round-score,.arrow-slot){border-radius:10px;box-shadow:0 2px 8px rgba(16,24,40,.045)}
body main :is(.participant,.duel-match,.question){background:#fff;border:1px solid #dfe4ea;padding:13px}
body main :is(.participant,.duel-match,.question) :is(strong,h3,h4){font-weight:750}
body main .participant{border-left:5px solid #b7192f;gap:10px}
body main .participant.selected{border-left:7px solid #b7192f;background:#fff0f3}
body main .round-score{background:#f8fafc;border:1px solid #dce2e9;color:#27313b}
body main .round-score.total{background:#fff0f3;border-color:#d98b9a}
body main .round-score :is(strong,small){color:inherit}
body main .score-panel{background:#fff;border:1px solid #dfe4ea}
body main .arrow-slot{background:#f8fafc;border:1px solid #dce2e9}
body main .arrow-slot.next{background:#fff0f3;border:2px dashed #b7192f}
body main .duel-match{border-left:5px solid #b7192f}
body main .modules label{background:#fff;border:1px solid #dfe4ea}
body main .modules label:has(input:checked){background:#fff0f3;border:2px solid #b7192f}
body main .plan-table .team-chip{background:#f1f4f8;color:#27313b;border:1px solid #e0e5ed}
body main .question{border-left:5px solid #b7192f}
body main .team-qr-card{background:#fff;border:1px solid #dfe4ea}
html[data-tg-theme="dark"] body main :is(.participant,.score-panel,.duel-match,.question,.team-qr-card,.modules label){background:#202c3d!important;color:#f8fafc!important;border-color:#58677c!important;box-shadow:none!important}
html[data-tg-theme="dark"] body main :is(.participant,.duel-match,.question){border-left:5px solid #e87991!important}
html[data-tg-theme="dark"] body main :is(.participant.selected,.modules label:has(input:checked)){background:#522a3a!important;border-left:7px solid #fb7185!important;color:#fff!important}
html[data-tg-theme="dark"] body main :is(.round-score,.arrow-slot,.plan-table .team-chip){background:#29384d!important;color:#f8fafc!important;border-color:#596b83!important}
html[data-tg-theme="dark"] body main :is(.round-score.total,.arrow-slot.next){background:#522a3a!important;color:#fff!important;border-color:#fb7185!important}
html[data-tg-theme="dark"] body main :is(.round-score,.arrow-slot,.plan-table .team-chip) :is(strong,small,span){color:inherit!important}
html[data-tg-theme="sun"] body main :is(.participant,.score-panel,.duel-match,.question,.team-qr-card,.modules label){background:#fff!important;color:#111827!important;border:2px solid #344054!important;box-shadow:none!important}
html[data-tg-theme="sun"] body main :is(.participant,.duel-match,.question){border-left:6px solid #99152a!important}
html[data-tg-theme="sun"] body main :is(.round-score,.arrow-slot,.plan-table .team-chip){background:#fff!important;color:#111827!important;border:2px solid #344054!important}
@media print{body main :is(.participant,.score-panel,.duel-match,.question,.team-qr-card,.round-score,.arrow-slot){background:#fff!important;color:#111827!important;box-shadow:none!important}}
