:root{--green:#00ed91;--ink:#03131b;--text:#edf7f7;--muted:#9ab2b9;--line:#24404a}
html:has(.broadcast-console){background:#030d16!important}
body.broadcast-console{background:radial-gradient(ellipse at 0 0,#07332c 0,transparent 45%),#030d16!important;color:var(--text);font:15px/1.55 Arial,Helvetica,sans-serif;min-height:100vh}
.broadcast-console button,.broadcast-console input,.broadcast-console select{font:inherit}
a{color:var(--green);text-underline-offset:4px}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#102630;color:var(--text);border:1px solid #34505b;border-radius:9px;padding:11px 16px;min-height:45px;font-weight:700;line-height:1.25;cursor:pointer;text-decoration:none;touch-action:manipulation}
button:hover,.button:hover{border-color:var(--green);background:#143b39}
button:disabled{cursor:not-allowed;opacity:.42}
button.primary,.button.primary{background:var(--green);color:#021810;border-color:var(--green)}
button.primary:hover{background:#67fbc3}
button.quiet{background:transparent}
button.danger{color:#fdb2ae;border-color:#713a42;background:#2c1923}
button.text-button{background:none;border-color:transparent;color:var(--green);padding-left:0;text-align:left}
:focus-visible{outline:2px solid #83ffd4;outline-offset:4px}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#bfced4}
input,select{width:100%;min-width:0;padding:12px 13px;min-height:47px;border:1px solid #36505b;border-radius:8px;background:#04121c;color:#eff8f7;outline:none}
input:focus,select:focus{border-color:var(--green)}
input[readonly]{font-size:12px;color:#9ebebc;background:#05131c}
.mast{height:86px;display:flex;align-items:center;gap:25px;border-bottom:1px solid var(--line);padding:0 max(20px,calc((100vw - 1220px)/2));background:#030c16e6}
.mast img{width:174px;height:auto;display:block}.mast-label{color:#8cbdb4;font-size:10px;letter-spacing:.15em;font-weight:800}.back-site{margin-left:auto;color:#bcced2;font-size:13px;text-decoration:none}
.console-shell{max-width:1240px;margin:auto;padding:32px 24px 28px}
.hero{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:12px 0 35px}
.eyebrow{margin:0 0 8px;font-size:10px;letter-spacing:.13em;color:var(--green);font-weight:800}
h1{font-size:clamp(38px,5vw,62px);line-height:1.04;letter-spacing:-.055em;margin:12px 0 18px}h1 span{color:#72efd0}h2{font-size:24px;line-height:1.16;letter-spacing:-.03em;margin:0 0 12px}h3{font-size:20px;line-height:1.2;margin:7px 0;overflow-wrap:anywhere}
p{color:var(--muted);margin:12px 0}.lead{font-size:16px;line-height:1.7}.small{font-size:12px;line-height:1.6}.hero-chip{border:1px solid #14644c;background:#05271f;padding:20px 28px;font-weight:800;letter-spacing:.08em;font-size:13px;border-radius:12px;white-space:nowrap}.hero-chip small{display:block;font-size:9px;color:#93c2b8;margin-top:8px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:6px}
.panel{border:1px solid var(--line);background:linear-gradient(145deg,#0c1f2b,#071622);border-radius:15px;padding:25px;margin-bottom:20px;min-width:0}
.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:55px}.auth-grid form{display:flex;flex-direction:column;gap:15px}.auth-grid h2{font-size:32px}.auth-grid p{max-width:450px}.auth-grid .small{margin:0}
.notice{padding:14px 18px;border:1px solid #286651;background:#062b24;color:#c5fce9;border-radius:9px;margin-bottom:18px;line-height:1.5;font-size:14px;overflow-wrap:anywhere}
.notice.error{border-color:#8b5259;background:#331d24;color:#ffc5c9}.notice.demo{border-color:#a97829;background:#32281b;color:#ffe3a9}
.accountbar{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:30px;background:#071824}
.accountbar>div{min-width:0}.accountbar strong{display:block;font-size:14px;margin:5px 0;overflow-wrap:anywhere}.accountbar small{font-size:11px;color:var(--muted)}.accountbar input{min-height:34px;padding:5px 9px;width:330px;max-width:100%}
.inline-actions{display:flex;gap:10px;flex-wrap:wrap}.tag{font-size:10px;letter-spacing:.06em;font-weight:800;border:1px solid #2c6058;border-radius:5px;padding:5px 9px;color:#93ead0;display:inline-block;white-space:nowrap}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px;flex-wrap:wrap}.section-head h2{margin:0}
.open-form{display:flex;align-items:flex-end;gap:12px;margin:18px 0}.open-form label{flex:1;min-width:0}.match-list{display:grid;gap:10px;margin-bottom:25px}.library-match{display:flex;align-items:center;gap:22px;text-align:left;padding:18px 22px;width:100%;background:#0b202b;border-radius:10px}.library-match strong{font-size:16px;display:block}.library-match small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.library-match>div{flex:1;min-width:0;overflow-wrap:anywhere}.empty-state{padding:34px;text-align:center;border:1px dashed #285047;border-radius:10px;color:var(--muted)}
.control-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.event-heading{display:flex;align-items:flex-start;gap:15px}.event-heading>div{flex:1;min-width:0}.event-heading h2{font-size:20px;overflow-wrap:anywhere}.race-chip{flex:0 0 auto;border:1px solid #237754;color:#9dc8bb;font-size:9px;letter-spacing:.06em;text-align:center;padding:8px 14px;border-radius:7px}.race-chip strong{display:block;font-size:28px;line-height:1.1;color:var(--green)}
.score-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.player-control{padding:15px;background:#03121c;border:1px solid #28434b;border-radius:11px;min-width:0}.player-control h3{min-height:48px;font-size:17px}.player-control output{display:block;font-weight:800;font-size:70px;line-height:1.15;text-align:center;color:#f5fffa;font-variant-numeric:tabular-nums;margin:8px 0 14px}.score-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.score-buttons button{font-size:25px;min-height:60px}.match-actions{display:flex;flex-wrap:wrap;gap:8px}.match-actions button{font-size:11px;padding:10px}
.preview-panel select{width:auto;font-size:12px;padding:6px;min-height:34px}.preview-stage{background-color:#13262e;background-image:linear-gradient(45deg,#1b333c 25%,transparent 25%),linear-gradient(-45deg,#1b333c 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1b333c 75%),linear-gradient(-45deg,transparent 75%,#1b333c 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;padding:16px 8px;border-radius:9px;min-height:190px;display:grid;align-items:center;overflow:hidden}.preview-panel .button{width:100%;font-size:12px}.preview-panel .ob-competition{font-size:13px}.preview-panel .ob-brand{width:70px}.preview-panel .ob-status{font-size:8px}.preview-panel .ob-middle{gap:5px;padding:8px}.preview-panel .ob-player{font-size:14px!important}.preview-panel .ob-score{font-size:29px!important}.preview-panel .ob-race strong{font-size:24px!important}.preview-panel .ob-race small{font-size:7px}.preview-panel .ob-foot{font-size:8px!important;gap:7px}.preview-panel .ob-foot span+span{padding-left:7px}.preview-panel .ob-board.portrait .ob-middle{grid-template-columns:minmax(0,1fr) 44px 45px}.preview-panel .ob-head{padding:9px;gap:8px}.preview-panel .ob-player span{min-height:0}
.link-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.link-grid button{font-size:12px}.link-grid input{font-weight:400;font-size:11px}.help{margin-top:28px;font-size:14px}.help summary{font-weight:700;cursor:pointer;color:#d9eee7}.console-footer{padding-top:17px;border-top:1px solid var(--line);font-size:10px;letter-spacing:.1em;color:#94b6ac;display:flex;justify-content:space-between;gap:20px}.console-footer span{letter-spacing:0;color:#66838b}
dialog{background:#0a1b27;color:var(--text);border:1px solid #2c675b;border-radius:16px;padding:25px;width:min(680px,calc(100% - 28px));max-height:88vh;overflow:auto}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:20px}.dialog-head button{font-size:22px;min-height:35px;padding:3px 11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid .full{grid-column:1/-1}.toggle-row{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid #1d4a43;border-radius:12px;background:#0b202b}.toggle-row input{width:18px;height:18px;min-height:18px;margin-top:2px;accent-color:var(--green)}.toggle-row span{display:block}.toggle-row strong{display:block;font-size:13px;letter-spacing:.04em}.toggle-row small{display:block;font-size:12px;line-height:1.55;color:var(--muted);margin-top:6px}.optional{font-weight:400;color:#78929b;font-size:10px}.wide{width:100%}.form-error{color:#ffc0c6;font-size:13px}
@media(max-width:1000px){.control-grid{grid-template-columns:1fr}.preview-stage{min-height:0}.preview-panel{max-width:100%;}.preview-panel .ob-middle{max-height:none}.hero-chip{display:none}}
@media(max-width:650px){.console-shell{padding:20px 14px}.mast{height:69px;padding:0 17px;gap:12px}.mast img{width:124px}.mast-label{display:none}.back-site{font-size:11px}.hero{padding:8px 0 22px}.lead{font-size:14px}.desktop-only{display:none}.panel{padding:18px}.auth-grid{grid-template-columns:1fr;gap:20px}.accountbar{padding:15px;display:block}.accountbar .inline-actions{margin-top:12px}.accountbar input{width:100%}.inline-actions button{flex:1;font-size:11px}.section-head{gap:12px}.section-head>.inline-actions{width:100%}.open-form{flex-wrap:wrap}.open-form label{flex-basis:100%}.open-form button{flex:1;font-size:12px}.library-match{padding:15px;gap:8px}.library-match strong{font-size:14px}.library-match .tag{font-size:8px;padding:4px}.score-pair{gap:9px}.player-control{padding:12px 9px}.player-control h3{font-size:15px;min-height:54px}.player-control .eyebrow{font-size:8px}.player-control output{font-size:63px}.score-buttons button{min-height:58px;padding:8px}.match-actions{display:grid;grid-template-columns:1fr 1fr}.match-actions button{min-height:46px}.link-grid{grid-template-columns:1fr}.console-footer{display:block}.console-footer span{display:block;margin-top:6px}dialog{padding:19px}.form-grid{gap:12px}.form-grid label{grid-column:1/-1}.notice{font-size:12px}}


/* v418.3.27 — selectable Broadcast Ticker builder */
.ticker-builder{margin:20px 0 26px}
.ticker-builder h3{margin:0;font-size:21px}
.ticker-builder .section-head{align-items:flex-start}
.ticker-builder-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:16px 0}
.ticker-builder-actions button{min-height:38px}
.ticker-toggle{display:flex;align-items:center;gap:8px;margin-left:auto;padding:8px 10px;border:1px solid #254b45;border-radius:9px;background:#091a23;color:#c9ddda;font-size:12px;font-weight:700}
.ticker-toggle input{width:16px;height:16px;min-height:16px;accent-color:var(--green)}
.ticker-match-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 17px}
.ticker-choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid #234b46;border-radius:10px;background:#071a24;cursor:pointer;min-width:0}
.ticker-choice:hover{border-color:#0d8f66}
.ticker-choice.is-selected{border-color:#00d88a;background:#08271f;box-shadow:0 0 0 1px rgba(0,243,154,.08) inset}
.ticker-choice input{width:17px;height:17px;min-height:17px;accent-color:var(--green)}
.ticker-choice-copy{min-width:0}
.ticker-choice-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#eff8f7}
.ticker-choice-copy small{display:block;margin-top:4px;color:#8fa8aa;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticker-choice-score{font-size:14px;font-weight:900;color:#fff;white-space:nowrap}
.ticker-choice-status{font-size:8px!important}
.ticker-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end}
.ticker-link-row label{min-width:0}
.ticker-link-row .button{display:flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;white-space:nowrap}
.ticker-link-row .button[aria-disabled="true"]{opacity:.45;pointer-events:none}
@media(max-width:760px){
 .ticker-match-choices{grid-template-columns:1fr}
 .ticker-toggle{margin-left:0;flex-basis:100%}
 .ticker-link-row{grid-template-columns:1fr}
 .ticker-link-row button,.ticker-link-row .button{width:100%}
}

/* v418.3.39 — stable-base Broadcast Groups + permanent ticker configuration */
.groups-builder{margin:20px 0 26px}.groups-builder h3{margin:0;font-size:21px}.groups-builder code{font:11px/1.4 Consolas,monospace;color:#a6f6dc}
.group-list{display:grid;gap:10px}.group-row{display:flex;align-items:center;gap:18px;width:100%;padding:16px 18px;border:1px solid #234b46;border-radius:10px;background:#071a24;color:var(--text);text-decoration:none;transition:border-color .15s ease,background .15s ease}.group-row:hover{border-color:var(--green);background:#0a252b}.group-row>span:first-child{flex:1;min-width:0}.group-row strong{display:block;font-size:15px;overflow-wrap:anywhere}.group-row small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.group-create-choices{display:grid;gap:8px;max-height:360px;overflow:auto;margin:14px 0 18px;padding-right:3px}.group-create-choice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:11px 12px;border:1px solid #234b46;border-radius:9px;background:#071a24;cursor:pointer}.group-create-choice:hover{border-color:#0d8f66}.group-create-choice input{width:17px;height:17px;min-height:17px;accent-color:var(--green)}.group-create-choice span{min-width:0}.group-create-choice strong{display:block;color:#eff8f7;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-create-choice small{display:block;color:#8fa8aa;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
@media(max-width:650px){.group-row{padding:14px;gap:9px}.group-row .tag{font-size:8px}.group-create-choices{max-height:300px}}

/* Broadcast photo upload: fixed badges and a touch/keyboard accessible cropper. */
.player-edit-card{min-width:0;padding:14px;border:1px solid #24514a;border-radius:13px;background:#071820}
.photo-picker{display:flex;align-items:center;gap:14px;margin-top:16px}
.broadcast-avatar{position:relative;flex:0 0 76px;width:76px;height:76px;border-radius:50%;border:2px solid #00dc94;background:#0d332d;display:grid;place-items:center;overflow:hidden;color:#b4f8df;box-shadow:0 0 18px #00ed9115}
.broadcast-avatar b{font-size:22px;letter-spacing:.03em}
.broadcast-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo-picker-actions{display:flex;flex-direction:column;gap:5px;align-items:stretch;min-width:0;flex:1}
.photo-picker-actions button{font-size:12px;padding:8px;min-height:36px}
.photo-picker-actions .small{margin:0;color:#95cbb8;font-weight:400}
.photo-help{margin:0}.photo-picker input[hidden]{display:none!important}
#photoCropper{width:min(460px,calc(100% - 24px))}
#cropCanvas{display:block;width:min(100%,320px);height:auto;aspect-ratio:1;margin:16px auto;border:2px solid #00ed91;border-radius:16px;touch-action:none;cursor:grab;background:#04151c}
#photoCropper input[type=range]{padding:0;accent-color:#00ed91;min-height:32px}
#photoCropper label{margin:12px 0}#cropZoomValue{color:#00ed91}
.crop-position{display:grid;grid-template-columns:1fr 1fr;gap:18px}.crop-buttons{display:flex;gap:8px;flex-wrap:wrap}.crop-buttons button{flex:1;font-size:12px;padding:10px 12px}
@media(max-width:650px){.player-edit-card{grid-column:1/-1}.photo-picker-actions{flex-direction:row;align-items:center;flex-wrap:wrap}.photo-picker-actions .small{flex-basis:100%}.photo-picker-actions button{flex:1;min-height:42px}}
