/* Shared, compact settings. Scoped to Arena-enabled presentation screens. */
.pr-arena-controls{position:relative;flex:none;display:inline-flex;align-items:center;--ar-ui-bg:#fff;--ar-ui-text:#172e40;--ar-ui-border:#aebdc9;--ar-ui-muted:#4c6172}
:is([data-theme=dark],.draws-dark) .pr-arena-controls,
html:not(.tablo-light) body.standalone-tablo-print .pr-arena-controls{--ar-ui-bg:#142536;--ar-ui-text:#edf7fc;--ar-ui-border:#40586c;--ar-ui-muted:#b5c8d5}
.pr-arena-controls button,.pr-arena-controls select{font:600 13px/1.2 system-ui,sans-serif;color:var(--ar-ui-text);background:var(--ar-ui-bg);border:1px solid var(--ar-ui-border);border-radius:7px}
.pr-arena-controls .pr-arena-settings-toggle{width:32px;height:32px;font-size:18px;padding:0;cursor:pointer}
.pr-arena-controls .pr-arena-settings-toggle.is-arena{border-color:#159f90}
.pr-arena-settings[hidden]{display:none!important}
.pr-arena-settings{position:fixed;top:54px;right:10px;z-index:10000;display:grid;gap:9px;width:min(310px,calc(100vw - 20px));max-height:calc(100dvh - 66px);overflow:auto;padding:14px;box-sizing:border-box;background:var(--ar-ui-bg);color:var(--ar-ui-text);border:1px solid var(--ar-ui-border);border-radius:12px;box-shadow:0 12px 36px #0003;font:13px/1.35 system-ui,sans-serif;text-align:left}
.pr-arena-settings-head,.pr-arena-setting,.pr-arena-check{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}
.pr-arena-settings-head strong{font-size:16px}
.pr-arena-settings-close{width:28px;height:28px;cursor:pointer;font-size:18px!important}
.pr-arena-setting select{max-width:65%;padding:6px}
.pr-arena-check{justify-content:flex-start;cursor:pointer}
.pr-arena-check input{accent-color:#0d9488;width:17px;height:17px}
.pr-arena-range{display:grid;grid-template-columns:1fr auto;gap:4px;margin:0}
.pr-arena-range input{grid-column:1/-1;width:100%;accent-color:#0d9488}
.pr-arena-static{padding:8px;cursor:pointer}
.pr-arena-hint{color:var(--ar-ui-muted);font-size:11px}
.pr-arena-controls :is(button,select,input):focus-visible{outline:2px solid #0e9c8b;outline-offset:2px}

/* A release notice is small and outside the scoreboard layout; it survives hidden toolbars. */
.pr-arena-update[hidden]{display:none!important}
.pr-arena-update{position:fixed;left:10px;bottom:10px;z-index:9999;max-width:calc(100vw - 20px);padding:7px 11px;border:1px solid #9fb4c2;border-radius:8px;background:#f1f7fa;color:#193949;box-shadow:0 3px 12px #0002;font:600 12px/1.3 system-ui,sans-serif;cursor:pointer}
.standalone-draws-print.pr-arena-footer-visible .pr-arena-update{bottom:calc(var(--pr-arena-footer-height,56px) + 8px)}
:is([data-theme=dark],.draws-dark) .pr-arena-update,html:not(.tablo-light) body.standalone-tablo-print .pr-arena-update{background:#183044;color:#e4f7ff;border-color:#577789}

/* Explicit fallback stays outside the advanced settings; no data reinitialization. */
.pr-arena-controls{gap:5px;max-width:100%}
.pr-arena-quick{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--ar-ui-border);border-radius:9px;background:var(--ar-ui-bg);max-width:100%}
.pr-arena-controls .pr-arena-mode{border:0;border-radius:6px;min-height:26px;padding:4px 7px;white-space:nowrap;cursor:pointer;font-size:12px;font-weight:600}
.pr-arena-controls .pr-arena-mode[aria-pressed=true]{background:#d5efea;color:#13584f}
:is([data-theme=dark],.draws-dark) .pr-arena-controls .pr-arena-mode[aria-pressed=true],html:not(.tablo-light) body.standalone-tablo-print .pr-arena-controls .pr-arena-mode[aria-pressed=true]{background:#23564f;color:#dcfff7}
@media(max-width:520px){.pr-arena-controls .pr-arena-mode{font-size:11px;padding-inline:5px}.pr-arena-quick{gap:0}}

/* Keep view modes beside category and zoom whenever the toolbar has room. */
.tournament-draws-v3 .draws-controls > .pr-arena-controls{flex:0 0 auto;display:flex;justify-content:flex-start;align-self:flex-end;min-height:var(--dw-control-size,38px);min-width:0}
@media(max-width:640px){.tournament-draws-v3 .draws-controls > .pr-arena-controls{flex:1 1 100%;justify-content:flex-start}}
.pr-arena-controls .pr-arena-quick{flex-wrap:wrap;min-width:0}
.pr-arena-controls .pr-arena-mode[data-mode=static]{border-left:1px solid var(--ar-ui-border);border-radius:0 6px 6px 0}
@media print{.pr-arena-controls{display:none!important}}

.tt-tour{
 position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;
 border:0;background:transparent;color:var(--pr-tour-text);overflow:hidden;box-sizing:border-box;z-index:1000
}
.tt-tour:not([open]){display:none}
.tt-tour::backdrop{background:transparent}
.tt-tour.tt-tour-no-target{background:#08121bc7!important}
.tt-tour .tt-tour-spot{position:absolute;pointer-events:none;border:2px solid #78e5c8;border-radius:10px;box-shadow:0 0 0 200vmax #08121bc7;box-sizing:border-box}
.tt-tour .tt-tour-panel{
 position:absolute;left:12px;top:12px;width:min(420px,calc(100% - 24px));max-height:calc(100% - 24px);
 overflow:hidden;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:19px;
 background:var(--pr-tour-bg);color:var(--pr-tour-text);border:1px solid var(--pr-tour-border);border-radius:14px;
 box-shadow:0 18px 56px #0005;font:500 15px/1.48 var(--pr-font-ui, "Segoe UI", sans-serif)
}
.tt-tour .tt-tour-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tt-tour .tt-tour-kicker{font-weight:750;font-size:12px;color:var(--pr-tour-accent)}
.tt-tour .tt-tour-count{font:700 12px/1.2 'Segoe UI',sans-serif;color:var(--pr-tour-muted);font-variant-numeric:tabular-nums}
.tt-tour .tt-tour-progress{height:3px;background:var(--pr-tour-border);border-radius:3px;overflow:hidden}
.tt-tour .tt-tour-progress>div{height:100%;background:var(--pr-tour-accent);border-radius:3px}
.tt-tour h2{color:var(--pr-tour-text);font:750 22px/1.2 var(--pr-font-ui, "Segoe UI", sans-serif);margin:0;letter-spacing:-.3px}
.tt-tour p{margin:0;color:var(--pr-tour-text)}
.tt-tour .tt-tour-tip{padding:9px 11px;border-left:2px solid var(--pr-tour-accent);background:var(--pr-tour-active);color:var(--pr-tour-text);font-size:13px;border-radius:0 6px 6px 0}
.tt-tour .tt-tour-tip[hidden],.tt-tour .tt-tour-spot[hidden]{display:none!important}
.tt-tour .tt-tour-actions{display:flex;gap:8px;align-items:center;margin-top:3px;flex:none;flex-wrap:wrap}
.tt-tour .tt-tour-actions button{font:700 13px/1.2 'Segoe UI',sans-serif;min-height:44px;padding:7px 12px;border-radius:8px;border:1px solid var(--pr-tour-border);background:var(--pr-tour-control);color:var(--pr-tour-text);cursor:pointer}
.tt-tour .tt-tour-actions .tt-tour-skip{margin-right:auto;background:transparent;border-color:transparent;padding-inline:0;color:var(--pr-tour-muted)}
.tt-tour .tt-tour-actions .tt-tour-next{background:var(--pr-tour-accent);border-color:transparent;color:var(--pr-tour-bg);min-width:86px}
.tt-tour .tt-tour-actions button:disabled{opacity:.4;cursor:default}
.tt-tour .tt-tour-actions button:focus-visible{outline:2px solid var(--pr-tour-accent);outline-offset:2px}
@media(max-width:479px){
 .tt-tour .tt-tour-panel{padding:14px;gap:10px;font-size:14px}
 .tt-tour h2{font-size:20px}
 .tt-tour .tt-tour-actions button{padding-inline:8px}
 .tt-tour .tt-tour-actions .tt-tour-next{min-width:70px}
}
@media print{.tt-tour,.tt-schedule-help,.pr-tv-help{display:none!important}}

/* Shared TV help: stable controls and a scrollable reading area, even in
   landscape phone view. The navigation remains reachable while reading. */
.tt-tour{
 --pr-tour-bg:#f4f8fa;--pr-tour-control:#fff;--pr-tour-border:#b9cdd5;
 --pr-tour-text:#183744;--pr-tour-muted:#45636e;--pr-tour-accent:#087968;--pr-tour-active:#d9eee8;
}
:is([data-theme=dark],.draws-dark) .tt-tour,
html:not(.tablo-light) body.standalone-tablo-print .tt-tour{
 --pr-tour-bg:#122331;--pr-tour-control:#1b2e3d;--pr-tour-border:#395363;
 --pr-tour-text:#eef6fa;--pr-tour-muted:#afc4cf;--pr-tour-accent:#73e3cb;--pr-tour-active:#205348;
}
.tt-tour .tt-tour-top,.tt-tour .tt-tour-progress{flex:none}
.tt-tour .tt-tour-body{display:flex;flex-direction:column;gap:10px;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
.tt-tour .tt-tour-actions button{flex:none}
.tt-tour .tt-tour-actions .tt-tour-skip{padding-inline:2px}
.pr-tv-help{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;box-sizing:border-box;border:1px solid var(--dp-border,#b9cdd5);border-radius:8px;background:var(--dp-surface,#fff);color:var(--dp-text,#183744);font:800 18px/1 var(--pr-font-ui, "Segoe UI", sans-serif);cursor:pointer}
.pr-tv-help:hover,.pr-tv-help:focus-visible{outline:2px solid #0d9488;outline-offset:2px}
@media(max-height:400px){
 .tt-tour .tt-tour-panel{padding:10px;gap:6px}
 .tt-tour .tt-tour-body{gap:6px}
 .tt-tour h2{font-size:18px}
 .tt-tour .tt-tour-actions button{min-height:38px}
}
@media(max-width:360px){
 .tt-tour .tt-tour-panel{padding:11px;gap:8px}
 .tt-tour .tt-tour-actions{gap:5px}
 .tt-tour .tt-tour-actions button{padding-inline:6px}
}
