.tournament-editor{--tr-line:#dce5ef;--tr-bg:#f8fafc;--tr-ink:#263f60;--tr-muted:#75869a;color:var(--tr-ink);font-size:14px}
.tr-ante-settings{margin:22px 0;padding:20px;border:1px solid #cbb58d;border-radius:12px;background:linear-gradient(135deg,#b58a490b,transparent 70%)}.tr-ante-heading h3{margin:0;font-size:18px;font-weight:700;color:var(--tr-ink)}.tr-ante-heading h3 span{margin-left:7px;font-size:11px;letter-spacing:.15em;color:#a88144}.tr-ante-heading p{margin:9px 0 0;color:var(--tr-muted);font-size:13px;line-height:1.75}.tr-ante-status{margin:14px 0;color:var(--tr-ink);font-size:14px;font-weight:600;line-height:1.8}.tr-ante-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:16px 0}.tr-ante-toolbar label{width:150px;flex:0 0 150px}.tr-ante-toolbar .tr-btn{font-size:12px}.tr-ante-settings details{margin-top:18px}.tr-ante-settings .tr-ante-column{background:#b58a4910}.tr-ante-settings th.tr-ante-column{font-weight:700;color:#9a7235}.tr-ante-settings .tr-ante-column input{border-color:#c8a364;color:var(--tr-ink);font-weight:700}.tr-current-level td:first-child{font-weight:700;color:#9a7235}.tr-ante-settings .tr-table-wrap{margin-bottom:12px}.console-shell .tr-ante-settings{border-color:#b58a4970}.console-shell .tr-ante-settings th.tr-ante-column{color:#dec18b}@media(max-width:560px){.tr-ante-settings{padding:15px}.tr-ante-toolbar label{width:100%;flex-basis:100%}.tr-ante-toolbar .tr-btn{flex:1;min-width:130px}.tr-ante-status{font-size:13px}}
.tournament-editor label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:13px;color:var(--tr-muted)}
.tr-template-basics{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.tr-template-basics>.tr-template-hint{margin:0}.tr-template-basics>label,.tr-player-grid>label{min-width:0}
.tournament-editor input,.tournament-editor select,.tournament-editor textarea{box-sizing:border-box;width:100%;min-width:0;margin:0;border:1px solid var(--tr-line);border-radius:9px;background:var(--tr-bg);color:var(--tr-ink);font:inherit;padding:10px 12px;outline:0}
.tournament-editor input,.tournament-editor select{height:44px}.tournament-editor textarea{line-height:1.7;resize:vertical;min-height:88px}.tournament-editor :is(input,select,textarea):focus{border-color:#b58a49;box-shadow:0 0 0 3px #b58a4918}
.tr-preset-head{margin:0 0 20px}.tr-preset-head select{font-size:16px;font-weight:700}.tr-preset-head p,.tr-muted{color:var(--tr-muted);font-size:12px;line-height:1.7;margin:10px 0 16px}
.tr-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.tr-summary span{padding:6px 10px;border-radius:20px;background:#b58a491a;color:#a0783b;font-size:12px;font-weight:600}
.tr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tr-grid input{width:100%}.tournament-editor details{border-top:1px solid var(--tr-line);padding:16px 0}.tournament-editor summary{cursor:pointer;font-size:14px;font-weight:700;padding:3px 0}.tournament-editor summary span{float:right;color:var(--tr-muted);font-size:12px;font-weight:400}.tournament-editor details>label{margin:16px 0 0}.tournament-editor details>.tr-grid{margin-top:18px}
.tr-checks{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0}.tournament-editor .tr-checks label{flex-direction:row;align-items:center;gap:8px;color:var(--tr-ink);cursor:pointer}.tournament-editor .tr-checks input{width:18px;height:18px;accent-color:#b58a49}.tr-display-grid{margin-top:16px}.tournament-editor h4{margin:24px 0 0;font-size:14px}
.tr-voice-box{margin:20px 0 8px;padding:14px 16px;border:1px solid #dce5ef;border-radius:12px;background:#fbfcfe}.tr-voice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.tr-voice-box strong{font-size:14px;color:var(--tr-ink)}.tr-voice-box .tr-muted{margin:5px 0 0}.tr-voice-box .tr-grid{margin-top:13px}.tr-voice-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin-top:13px!important;color:var(--tr-ink)!important;cursor:pointer}.tr-voice-toggle input{width:18px!important;height:18px!important;accent-color:#b58a49}.tr-voice-vars{line-height:1.8;word-break:break-all}.tr-voice-events{display:grid;gap:16px;margin-top:14px}.tr-voice-category{display:grid;gap:10px}.tr-voice-category h4{margin:0;color:#9a7235;font-size:12px;letter-spacing:.08em}.tr-voice-event{padding:12px;border:1px solid #dce5ef;border-radius:10px;background:#fff}.tr-voice-event-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.tournament-editor .tr-voice-event-toggle{flex-direction:row;align-items:center;gap:8px;color:var(--tr-ink);cursor:pointer}.tr-voice-event-toggle input{width:18px!important;height:18px!important;accent-color:#b58a49}.tr-voice-event-fields{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;margin-top:10px}.tr-voice-template-label textarea{min-height:68px}.console-shell .tr-voice-event{background:#101a17;border-color:#d6ad6540}
.tr-voice-preview{margin-top:13px;border-color:#b58a49;color:#9a7235;background:#b58a4910}.tr-voice-preview:hover{background:#b58a4920}.tr-voice-preview-note{display:inline-block;margin:0 0 0 10px!important}
.tr-table-wrap{width:100%;overflow-x:auto;overscroll-behavior:contain;margin:16px 0}.tournament-editor table{border-collapse:collapse;width:100%;min-width:440px;table-layout:fixed;font-size:12px}.tournament-editor th{text-align:left;padding:8px;color:var(--tr-muted);font-weight:500}.tournament-editor td{padding:5px 6px}.tournament-editor td:first-child{width:55px}.tournament-editor td:last-child{width:52px}.tournament-editor table input{padding:8px;height:40px}.tournament-editor .tr-rewards{min-width:730px}.tournament-editor .tr-rewards th:nth-child(6){width:160px}
.tr-inline{display:flex;align-items:flex-end;gap:12px;margin-top:18px}.tr-inline label{width:150px}.tr-btn{height:auto;min-height:40px;padding:9px 14px;border:1px solid var(--tr-line);border-radius:9px;background:transparent;color:var(--tr-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.tr-btn:hover{border-color:#b58a49;background:#b58a4910}.tr-btn:disabled{opacity:.45;cursor:default}.tr-link{border:0;background:none;color:#bc6459;padding:8px;cursor:pointer;font:inherit}.tr-preset-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.tr-message{min-height:18px;color:#468b60;line-height:1.6;margin-top:10px}.tr-message.tr-error{color:#d07166}.tournament-editor input:disabled{opacity:.4}
.console-shell .tournament-editor{--tr-line:#d6ad6540;--tr-bg:#0b1210;--tr-ink:#f5ead8;--tr-muted:#b4ad9e}.event-card .tournament-editor label{margin-top:0}.event-card .tournament-editor>label{margin-top:12px}.event-card .tr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tournament-modal-card{max-width:860px!important}.tournament-modal-card .modal-foot{position:sticky;bottom:-24px;background:#fff;padding-bottom:12px;z-index:2}
.console-shell .hero-grid{grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr);align-items:start}.console-shell .timer-card{position:sticky;top:24px;min-height:340px;padding:24px 16px}.console-shell .timer-card strong{font-size:clamp(36px,4.8vw,64px)}.console-shell .timer-card strong.mode-text{font-size:clamp(28px,3vw,44px)}.console-shell .control-row{flex-wrap:wrap;justify-content:center}.console-shell .event-card{min-width:0}.console-shell #tournamentEditorHost{margin-top:22px}.console-shell [hidden]{display:none!important}
@media(max-width:880px){.console-shell .hero-grid{grid-template-columns:1fr}.console-shell .timer-card{position:static;min-height:230px}}
@media(max-width:560px){.tr-grid,.event-card .tr-grid{grid-template-columns:1fr}.tr-voice-event-fields{grid-template-columns:1fr}.tr-preset-actions .tr-btn{flex:1}.tr-inline{flex-wrap:wrap}.tournament-editor summary{line-height:1.7}.tournament-modal-card .modal-foot{bottom:-18px;flex-wrap:wrap}}
.global-voice-panel{margin-bottom:24px}.global-voice-panel .panel-head>div{min-width:0}.global-voice-panel .panel-head p{margin:6px 0 0;line-height:1.65}.global-voice-status strong{display:block;font-size:17px;margin-bottom:7px}.global-voice-status>span{display:block;font-size:14px;line-height:1.8}.global-voice-status p{margin:7px 0 0;line-height:1.8}.global-voice-editor{margin-top:20px}.global-voice-editor>summary{cursor:pointer;font-weight:600;line-height:1.8}.global-voice-fields{margin-top:16px}.global-voice-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.global-voice-message{min-height:24px;line-height:1.8;margin:12px 0 0}.global-voice-audio{display:block;width:100%;max-width:520px;height:44px;margin-top:12px}
.global-voice-status progress{display:block;width:min(100%,520px);height:14px;margin-top:10px;accent-color:#ab843e}.global-voice-screen-progress{margin-top:10px;font-size:13px;line-height:1.7}.global-voice-screen-progress summary{cursor:pointer}.global-voice-screen-progress ul{margin:7px 0 0;padding-left:20px;overflow-wrap:anywhere}.global-voice-status [data-global-voice-action="retry"]{margin-top:10px}
.tr-draft-banner{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:14px 16px;border:1px solid rgba(211,174,111,.48);border-radius:14px;background:linear-gradient(115deg,#29251f,#181b19);color:#f3e5c9}
.tr-draft-banner[hidden]{display:none}
.tr-draft-banner>div{flex:1;min-width:0}
.tr-draft-banner strong,.tr-draft-banner small{display:block}
.tr-draft-banner strong{font-size:14px}
.tr-draft-banner small{margin-top:4px;color:#c8bba6;font-size:12px}
.tr-draft-banner .tr-draft-load{white-space:nowrap;border-color:#d3ac6a;background:#d3ac6a;color:#161915;font-weight:700}
.tr-autosave-status{margin:0 0 14px;color:#b6a88c;font-size:12px}
@media(max-width:680px){.tr-draft-banner{flex-wrap:wrap}.tr-draft-banner>div{flex-basis:100%}}
.tr-template-choice{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;background:rgba(12,18,26,.6)}
.tr-template-choice-card{width:min(480px,100%);padding:24px;border:1px solid #dbe3ef;border-radius:16px;background:#fff;color:#26354a;box-shadow:0 20px 70px rgba(0,0,0,.25)}
.tr-template-choice-card h3{margin:0 0 16px;font-size:20px}.tr-template-choice-card p{font-size:14px;line-height:1.7;margin:10px 0}
.tr-template-choice-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:22px}.tr-template-choice .tr-btn{background:#f5f7fb;color:#35445a;border-color:#dbe3ef}
.tr-template-choice .tr-template-overwrite{background:#375fcc;color:#fff;border-color:#375fcc}.tr-template-choice button:focus-visible{outline:3px solid #90b3ff;outline-offset:3px}
.tr-template-manage{display:flex;align-items:flex-end;gap:12px;margin-top:12px}.tr-template-manage:empty{display:none}.tr-template-manage>label{flex:1;min-width:0;margin:0}.tr-template-manage-actions{display:flex;flex-wrap:wrap;gap:8px}.tr-template-manage .tr-template-delete{color:#f4b5ae;border-color:#ad645a;background:#512e2b}.tr-template-manage .tr-btn{min-height:40px;white-space:nowrap}@media(max-width:680px){.tr-template-manage{flex-wrap:wrap}.tr-template-manage>label{flex-basis:100%}}
.br-editor{grid-column:1/-1;display:grid;gap:16px;padding:20px;border:1px solid #424333;border-radius:14px;background:#171e18;color:#eee0c7}.br-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.br-heading strong,.br-heading small{display:block}.br-heading small{margin-top:6px;font-size:12px;color:#bdb5a5}.br-toggle{display:flex!important;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-block:1px solid #363d30}.br-toggle small{display:block;margin-top:5px;color:#bdb5a5;font-size:12px}.br-toggle input{width:22px!important;height:22px!important;accent-color:#c3a168}.br-display{display:grid;gap:14px}.br-preview{display:grid;gap:10px;min-height:140px;align-content:center;text-align:center;padding:22px;background:linear-gradient(140deg,#1e211c,#101510);border-radius:12px;border:1px solid #5a5037;overflow-wrap:anywhere}.br-preview>span{font-size:11px;letter-spacing:2px;color:#9e9f8d}.br-preview>strong{line-height:1.25}.br-preview>small{color:#c5bba8}.br-remove{justify-self:start}.br-editor button,.br-editor button:focus-visible{background:#293226;color:#f2d5a5;border:1px solid #6b6042;min-height:44px}.br-editor button:hover{background:#364030;color:#ffe7bd}.br-editor button:active,.br-editor button[aria-busy=true]{background:#414b36;color:#ffe7bd}.br-editor button:disabled{background:#30382c;color:#ada898;border-color:#474c3e;opacity:.65}.br-editor button:focus-visible{outline:2px solid #d9b97b;outline-offset:3px}@media(max-width:600px){.br-heading{align-items:flex-start;flex-direction:column}.br-editor{padding:16px}.br-heading button{width:100%}}

.br-editor{--tr-line:#465042;--tr-bg:#111a15;--tr-ink:#efe5d2;--tr-muted:#c2b9a6}.tournament-editor .br-toggle{flex-direction:row!important}.br-editor label{color:#c2b9a6}.br-editor :is(input,select,textarea){color-scheme:dark}.br-heading{align-items:flex-start}
.br-selection{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.br-selection>label{min-width:0;margin:0}.br-selection button{min-height:44px;white-space:nowrap}.br-editor button.br-delete{background:#352321;color:#f0b3a9;border:1px solid #775047}.br-editor button.br-delete:hover{background:#432b27;border-color:#bd7f70}.br-editor button.br-delete:active{background:#281b19}.br-editor button.br-delete:disabled{background:#25201e;color:#9c8982;opacity:.65}.br-delete-confirmation{display:grid;gap:14px;padding:16px;border:1px solid #775047;border-radius:10px;background:#241e1a}.br-delete-confirmation[hidden]{display:none!important}.br-delete-confirmation strong,.br-delete-confirmation small{display:block;overflow-wrap:anywhere}.br-delete-confirmation small{margin-top:6px;color:#c6b4a5;line-height:1.6}.br-delete-actions{display:flex;justify-content:flex-end;gap:10px}.br-delete-actions button{min-width:84px;min-height:44px}.br-selection button:focus-visible,.br-delete-actions button:focus-visible{outline:2px solid #d6b477;outline-offset:3px}

/* Timer state remains explicit in both the label and the switch track. */
.br-timer-toggle{cursor:pointer;min-height:44px}.br-timer-copy{min-width:0}.br-timer-copy strong{color:#eee0c7}.br-timer-copy small{line-height:1.7}.br-timer-switch{position:relative;display:inline-flex;align-items:center;flex:0 0 68px;width:68px;height:44px}.br-timer-toggle .br-timer-switch input{position:absolute;inset:0;z-index:1;width:100%!important;height:100%!important;margin:0;padding:0;opacity:0;cursor:pointer}.br-timer-track{box-sizing:border-box;position:relative;display:block;width:68px;height:34px;border:1px solid #70796b;border-radius:20px;background:#384235;color:#f0e9dc;transition:background-color .18s,border-color .18s}.br-timer-state{position:absolute;inset:0 7px 0 32px;display:grid;place-items:center;font-size:13px;font-weight:700;line-height:1}.br-timer-thumb{position:absolute;top:4px;left:4px;width:24px;height:24px;border-radius:50%;background:#ded8cb;box-shadow:0 1px 3px #0005;transition:transform .18s,background-color .18s}.br-timer-switch input:checked+.br-timer-track{border-color:#d3b478;background:#c8a468;color:#181e17}.br-timer-switch input:checked+.br-timer-track .br-timer-state{inset:0 32px 0 7px}.br-timer-switch input:checked+.br-timer-track .br-timer-thumb{transform:translateX(34px);background:#fff3d9}.br-timer-switch input:focus-visible+.br-timer-track{outline:2px solid #edca89;outline-offset:4px}.br-timer-switch input:active+.br-timer-track{background:#283225}.br-timer-switch input:checked:active+.br-timer-track{background:#b08e54}.br-timer-switch input:disabled{cursor:not-allowed}.br-timer-switch input:disabled+.br-timer-track{opacity:.5}.br-timer-toggle:has(input:disabled){cursor:default}@media(prefers-reduced-motion:reduce){.br-timer-track,.br-timer-thumb{transition:none}}

.br-round-fields{display:grid;gap:14px;padding-top:16px}.br-round-fields>.tr-muted{margin:0}.br-round-labels{padding-bottom:0!important}.br-round-labels .tr-grid{margin-top:16px}.br-round-stage input,.br-round-stage select{min-width:0}.br-round-stage .tr-grid>label{min-width:0}

/* Match the existing light desktop workbench; the independent console keeps its dark theme. */
.vben-console .br-editor{--tr-line:#dce5ef;--tr-bg:#fff;--tr-ink:#263f60;--tr-muted:#60758f;background:#f8fafc;border-color:#dce5ef;color:var(--tr-ink)}
.vben-console .br-editor :is(label,.tr-muted,.br-heading small,.br-toggle small){color:var(--tr-muted)}
.vben-console .br-timer-copy strong{color:var(--tr-ink)}.vben-console .br-toggle{border-color:var(--tr-line)}
.vben-console .br-editor :is(input,select,textarea){color-scheme:light}
.vben-console .br-editor button{background:#eef2f8;color:#334d70;border-color:#c9d5e4}
.vben-console .br-editor button:hover{background:#e3eaf4;color:#243e61}.vben-console .br-editor button:active,.vben-console .br-editor button[aria-busy=true]{background:#263f60;color:#fff}.vben-console .br-editor button:disabled{background:#e7edf4;color:#75869a;border-color:#d5dfea}
.vben-console .br-editor button.br-delete{color:#a04f43;border-color:#d3b2a9}.vben-console .br-editor button.br-delete:active{background:#683d35;color:#fff}
.vben-console .br-delete-confirmation{background:#fff7f2;border-color:#dfc9bc}.vben-console .br-delete-confirmation small{color:#795d50}

/* Tournament editing: one working copy, one schedule, explicit save scopes. */
.tr-edit-context{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;color:var(--tr-muted);font-size:12px}.tr-edit-context>span{font-weight:600;color:var(--tr-ink)}.tr-edit-context small{font-size:12px}
.tournament-editor .tr-preset-head{margin:0 0 20px;padding:12px 0;border-block:1px solid var(--tr-line)}.tr-preset-head>summary{font-size:13px}.tr-template-picker{display:flex;align-items:flex-end;gap:10px;margin-top:16px}.tr-template-picker>label{flex:1;min-width:0}.tr-template-picker>.tr-btn{white-space:nowrap;height:44px}.tr-preset-head select{font-size:14px;font-weight:500}.tr-template-manager{margin-top:14px}.tr-template-manager .tr-template-manage{margin:12px 0}.tr-template-newer,.tr-legacy-note{font-size:12px;line-height:1.7;color:var(--tr-muted)}.tr-recovery-link{margin-top:12px;color:var(--tr-ink)}
.tr-basic-title{display:grid;gap:8px}.tr-basic-title>label{font-weight:600;color:var(--tr-ink);font-size:14px}.tr-basic-title input{font-size:16px;font-weight:600}.tr-rule-summary{font-size:12px;color:var(--tr-muted)}.tr-template-basics{gap:16px}.br-editor{gap:12px;padding:16px}.br-heading small{line-height:1.7}.br-selection{grid-template-columns:minmax(0,1fr)}.tournament-editor .br-toggle{padding:9px 0;min-height:44px}.br-display-options>.br-display{margin-top:14px}.br-next-label{max-width:300px}
.tournament-editor .tr-ante-settings{border:0;background:none;padding:0;margin:22px 0 8px;border-radius:0}.tr-ante-settings>[data-tr-levels]{margin:0;border-top:0;padding-top:0}.tr-ante-settings [data-tr-levels]>summary{font-size:16px}.tournament-editor .tr-ante-column{background:none}.tr-ante-settings .tr-ante-column input{border-color:var(--tr-line);font-weight:500}.tr-ante-settings .tr-batch-settings{margin:8px 0 0;padding:10px 0;border-block:1px solid var(--tr-line)}.tr-batch-settings>summary{font-size:13px;font-weight:500}.tr-ante-toolbar{margin:14px 0;gap:8px}.tr-ante-toolbar .tr-btn{font-size:12px}.tr-ante-settings .tr-table-wrap{margin-top:12px}.tr-blind-table th:first-child{width:82px}.tr-blind-table th:last-child{width:44px}.tr-blind-table td:first-child{white-space:nowrap;font-size:12px}.tr-current-level td:first-child{color:var(--tr-ink)}
.tournament-editor details[data-tr-section]>label{margin-top:16px}.tournament-editor details[data-tr-section]>p.tr-muted{margin-bottom:12px}.tr-preset-actions{align-items:center;padding-top:4px}.tr-preset-actions .tr-muted{margin:0}.tr-apply-notice{font-size:12px;line-height:1.8;color:var(--tr-muted);border-top:1px solid var(--tr-line);padding-top:14px;margin:16px 0 0}.tr-message:empty{display:none}.tr-message:not(:empty){padding:11px 14px;margin:0 0 14px;background:#eef7f1;border-radius:8px;color:#35694d;overflow-wrap:anywhere}.tr-message.tr-error{background:#fff1ee;color:#9f4339}.console-shell .tr-message:not(:empty){background:#20382c;color:#d0ead6}.console-shell .tr-message.tr-error{background:#3d2824;color:#f0bab0}
.tr-sync-option{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #dbe3ef;border-radius:9px;margin:18px 0;font-size:14px}.tr-sync-option input{width:18px;height:18px;margin:2px 0 0;accent-color:#375fcc}.tr-sync-option span{min-width:0;overflow-wrap:anywhere}.tr-sync-option small{display:block;font-size:12px;color:#667990;margin-top:6px}.tr-switch-impact{font-weight:700;color:#8c4c2d}.tr-template-choice-actions .tr-btn{min-height:44px}.tr-template-choice .tr-btn:active,.tr-template-choice .tr-btn[aria-busy=true]{background:#243c61;color:#fff;border-color:#243c61}.tr-template-choice .tr-btn:disabled{background:#dfe5ef;color:#78879d;border-color:#d2dbe6}
.tournament-editor .tr-btn:active,.tournament-editor .tr-btn[aria-busy=true],.tournament-modal-card .modal-foot .btn:active,.tournament-modal-card .modal-foot .btn[aria-busy=true]{background:#263f60!important;border-color:#263f60!important;color:#fff!important}.tournament-editor .tr-btn:disabled,.tournament-modal-card .modal-foot .btn:disabled{background:#e7edf4!important;color:#75869a!important;border-color:#d5dfea!important;opacity:.7}.tournament-editor .tr-link:active{background:#51332e;color:#fff;border-radius:6px}.tournament-editor .tr-link:disabled{color:var(--tr-muted);cursor:default;opacity:.5}.tournament-editor :is(button,summary):focus-visible{outline:2px solid #7a9dd1;outline-offset:3px}
.console-shell .tournament-editor .tr-btn:active,.console-shell .tournament-editor .tr-btn[aria-busy=true],.console-shell #save:active,.console-shell #save[aria-busy=true]{background:#384a38!important;border-color:#b9a06a!important;color:#fff1d1!important}.console-shell .tournament-editor .tr-btn:disabled,.console-shell #save:disabled{background:#27322b!important;border-color:#465146!important;color:#a5b09f!important}
.tournament-editor .tr-link{min-width:44px;min-height:44px;padding:8px 6px;white-space:nowrap}.tr-blind-table th:last-child{width:56px}
/* Submission remains visibly active while other controls are disabled. */
.tournament-editor .tr-btn[aria-busy=true]:disabled,.tournament-modal-card .modal-foot .btn[aria-busy=true]:disabled,.tr-template-choice .tr-btn[aria-busy=true]:disabled{background:#263f60!important;border-color:#263f60!important;color:#fff!important;opacity:1}
.console-shell .tournament-editor .tr-btn[aria-busy=true]:disabled,.console-shell #save[aria-busy=true]:disabled{background:#384a38!important;border-color:#b9a06a!important;color:#fff1d1!important;opacity:1}
@media(max-width:560px){.tr-edit-context{align-items:flex-start;flex-direction:column;gap:5px}.tr-template-picker{flex-wrap:wrap}.tr-template-picker>label{flex-basis:100%}.tr-template-picker>.tr-btn{width:100%}.tr-template-choice{padding:14px}.tr-template-choice-card{padding:20px}.tr-template-choice-actions>.tr-btn{flex:1}.tr-blind-table th:first-child{width:70px}.tr-template-choice-actions{gap:8px}.br-editor{padding:14px}.tr-preset-head>summary>span{float:none;display:block;margin-top:5px;max-width:100%;overflow-wrap:anywhere}.tr-template-manage-actions{width:100%}.tr-template-manage-actions>.tr-btn{flex:1}}
