/* Light skin only: no geometry, font size, layout, motion or content declarations.
   Viewer ranking reference: viewer-tables.css / viewer-controls.css.
   Navigation, master header and score-board descendants are deliberately outside all control scopes. */

:root{--skin-canvas:#131313;--skin-surface:#1D1D1D;--skin-inset:#181818;--skin-hover:#272727;--skin-ink:#EFEFEF;--skin-muted:#ABABAB;--skin-line:#ffffff18;--skin-control:#707070;--skin-green:#00E5BE;--skin-red:#FF9198;--skin-blue:#8EBAFF;--skin-card-radius:12px;--skin-panel-radius:16px;--skin-nested-radius:8px;--skin-control-radius:8px}

body:has(#master-sidebar),
body.event-terminal-mode,
body.score-desk-standalone,
body:has(>main#app):not(:has(#master-sidebar)){background-color:var(--skin-canvas)}

body:has(#master-sidebar) main#app,
body:has(#master-sidebar) main#app #schedule-planner,
body:not(:has(#master-sidebar))>main#app,
body.event-terminal-mode #checkinView,
body.score-desk-standalone #scoreboardView .pinned-controls,
body.score-desk-standalone #scoreboardView>.control-stack,
body.score-desk-standalone #eventMatchNav,
body:has(#master-sidebar)>#dialog,
body:has(#master-sidebar)>.plan-dialog,
body:has(#master-sidebar)>.plan-pairing-popover,
body:has(#master-sidebar)>dialog.manual-history-dialog,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog),
body.event-terminal-mode>dialog,
body.score-desk-standalone>dialog{color:var(--skin-ink)}

body:has(#master-sidebar) main#app :is(h1,h2,h3,strong,b),
body:has(#master-sidebar) main#app #schedule-planner :is(h1,h2,h3,strong,b),
body:not(:has(#master-sidebar))>main#app :is(h1,h2,h3,strong,b),
body.event-terminal-mode #checkinView :is(h1,h2,h3,strong,b),
body.score-desk-standalone #scoreboardView .pinned-controls :is(h1,h2,h3,strong,b),
body.score-desk-standalone #scoreboardView>.control-stack :is(h1,h2,h3,strong,b),
body.score-desk-standalone #eventMatchNav :is(h1,h2,h3,strong,b),
body:has(#master-sidebar)>#dialog :is(h1,h2,h3,strong,b),
body:has(#master-sidebar)>.plan-dialog :is(h1,h2,h3,strong,b),
body:has(#master-sidebar)>.plan-pairing-popover :is(h1,h2,h3,strong,b),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(h1,h2,h3,strong,b),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(h1,h2,h3,strong,b),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(h1,h2,h3,strong,b),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(h1,h2,h3,strong,b),
body.event-terminal-mode>dialog :is(h1,h2,h3,strong,b),
body.score-desk-standalone>dialog :is(h1,h2,h3,strong,b){color:inherit;font-weight:500}

body:has(#master-sidebar) main#app :is(h1,h2,h3),
body:has(#master-sidebar) main#app #schedule-planner :is(h1,h2,h3),
body:not(:has(#master-sidebar))>main#app :is(h1,h2,h3),
body.event-terminal-mode #checkinView :is(h1,h2,h3),
body.score-desk-standalone #scoreboardView .pinned-controls :is(h1,h2,h3),
body.score-desk-standalone #scoreboardView>.control-stack :is(h1,h2,h3),
body.score-desk-standalone #eventMatchNav :is(h1,h2,h3),
body:has(#master-sidebar)>#dialog :is(h1,h2,h3),
body:has(#master-sidebar)>.plan-dialog :is(h1,h2,h3),
body:has(#master-sidebar)>.plan-pairing-popover :is(h1,h2,h3),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(h1,h2,h3),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(h1,h2,h3),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(h1,h2,h3),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(h1,h2,h3),
body.event-terminal-mode>dialog :is(h1,h2,h3),
body.score-desk-standalone>dialog :is(h1,h2,h3){font-weight:600}

body:has(#master-sidebar) main#app :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:has(#master-sidebar) main#app #schedule-planner :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:not(:has(#master-sidebar))>main#app :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body.event-terminal-mode #checkinView :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body.score-desk-standalone #scoreboardView .pinned-controls :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body.score-desk-standalone #scoreboardView>.control-stack :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body.score-desk-standalone #eventMatchNav :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:has(#master-sidebar)>#dialog :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:has(#master-sidebar)>.plan-dialog :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:has(#master-sidebar)>.plan-pairing-popover :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body.event-terminal-mode>dialog :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status),
body.score-desk-standalone>dialog :is(.help,.muted,.smalltext,.result-summary,.plan-stage-rule,.plan-stage-kpis,.plan-time-brief,.event-checkin-section-heading span,.schedule-boundary-status){color:var(--skin-muted)}

body:has(#master-sidebar) main#app :is(.card,.batch,.terminal-tile,.plan-stage,.plan-time-plan,.plan-preview,.plan-time-block,.standings-group,.standings-bracket-stage),
body:has(#master-sidebar) main#app #schedule-planner :is(.card,.batch,.terminal-tile,.plan-stage,.plan-time-plan,.plan-preview,.plan-time-block,.standings-group,.standings-bracket-stage),
body:not(:has(#master-sidebar))>main#app :is(.card,.batch,.terminal-tile,.plan-stage,.plan-time-plan,.plan-preview,.plan-time-block,.standings-group,.standings-bracket-stage),
body.event-terminal-mode #checkinView :is(.control-panel,.event-checkin-card),
body.score-desk-standalone #scoreboardView .pinned-controls .control-panel,
body.score-desk-standalone #scoreboardView>.control-stack .control-panel,
body.score-desk-standalone #eventMatchNav .control-panel,
body:has(#master-sidebar)>#dialog,
body:has(#master-sidebar)>.plan-dialog,
body:has(#master-sidebar)>.plan-pairing-popover,
body:has(#master-sidebar)>dialog.manual-history-dialog,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog),
body.event-terminal-mode>dialog,
body.score-desk-standalone>dialog{background-color:var(--skin-surface);color:var(--skin-ink);border-color:var(--skin-line);border-radius:var(--skin-card-radius);box-shadow:none}

body.score-desk-standalone #scoreboardView>.preview-panel{background-color:var(--skin-surface);border-color:var(--skin-line);border-radius:var(--skin-card-radius);box-shadow:none}

body:has(#master-sidebar) main#app :is(.tablewrap,.master-match-scroll,.terminal-thumbnail,.plan-team-box,.mode-banner,.standings-bracket-match),
body:has(#master-sidebar) main#app #schedule-planner :is(.tablewrap,.master-match-scroll,.terminal-thumbnail,.plan-team-box,.mode-banner,.standings-bracket-match),
body:not(:has(#master-sidebar))>main#app :is(.tablewrap,.master-match-scroll,.terminal-thumbnail,.plan-team-box,.mode-banner,.standings-bracket-match),
body.event-terminal-mode #checkinView :is(.event-checkin-team-card,.event-checkin-plan-item),
body.score-desk-standalone #scoreboardView .pinned-controls :is(.score-control,.sound-card,.setting-row,.timer-type-toggle,.score-option-toggle,.game-win-side),
body.score-desk-standalone #scoreboardView>.control-stack :is(.score-control,.sound-card,.setting-row,.timer-type-toggle,.score-option-toggle,.game-win-side),
body.score-desk-standalone #eventMatchNav :is(.score-control,.sound-card,.setting-row,.timer-type-toggle,.score-option-toggle,.game-win-side),
body:has(#master-sidebar)>#dialog :is(.simple-team-row,.score-desk-library-row),
body:has(#master-sidebar)>.plan-dialog :is(.simple-team-row,.score-desk-library-row),
body:has(#master-sidebar)>.plan-pairing-popover :is(.simple-team-row,.score-desk-library-row),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(.simple-team-row,.score-desk-library-row),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(.simple-team-row,.score-desk-library-row),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(.simple-team-row,.score-desk-library-row),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(.simple-team-row,.score-desk-library-row),
body.event-terminal-mode>dialog :is(.simple-team-row,.score-desk-library-row),
body.score-desk-standalone>dialog :is(.simple-team-row,.score-desk-library-row){background-color:var(--skin-inset);border-color:var(--skin-line);border-radius:var(--skin-nested-radius);box-shadow:none}

body:has(#master-sidebar) main#app .plan-stage-title,
body:has(#master-sidebar) main#app #schedule-planner .plan-stage-title,
body:not(:has(#master-sidebar))>main#app .plan-stage-title{border-bottom-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(.plan-stage-settings,.plan-stage-matches),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-stage-settings,.plan-stage-matches),
body:not(:has(#master-sidebar))>main#app :is(.plan-stage-settings,.plan-stage-matches){background-color:var(--skin-surface);color:var(--skin-ink);border-color:var(--skin-control);border-radius:var(--skin-card-radius);box-shadow:0 12px 32px #00000040}

body:has(#master-sidebar) main#app :is(input,select,textarea),
body:has(#master-sidebar) main#app #schedule-planner :is(input,select,textarea),
body:not(:has(#master-sidebar))>main#app :is(input,select,textarea),
body.event-terminal-mode #checkinView :is(input,select,textarea),
body.score-desk-standalone #scoreboardView .pinned-controls :is(input,select,textarea),
body.score-desk-standalone #scoreboardView>.control-stack :is(input,select,textarea),
body.score-desk-standalone #eventMatchNav :is(input,select,textarea),
body:has(#master-sidebar)>#dialog :is(input,select,textarea),
body:has(#master-sidebar)>.plan-dialog :is(input,select,textarea),
body:has(#master-sidebar)>.plan-pairing-popover :is(input,select,textarea),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(input,select,textarea),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(input,select,textarea),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(input,select,textarea),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(input,select,textarea),
body.event-terminal-mode>dialog :is(input,select,textarea),
body.score-desk-standalone>dialog :is(input,select,textarea){background-color:var(--skin-inset);color:var(--skin-ink);border-color:var(--skin-control);border-radius:var(--skin-control-radius);caret-color:var(--skin-green);accent-color:var(--skin-green);font-weight:300;box-shadow:none}

body:has(#master-sidebar) main#app :is(input,textarea)::placeholder,
body:has(#master-sidebar) main#app #schedule-planner :is(input,textarea)::placeholder,
body:not(:has(#master-sidebar))>main#app :is(input,textarea)::placeholder,
body.event-terminal-mode #checkinView :is(input,textarea)::placeholder,
body.score-desk-standalone #scoreboardView .pinned-controls :is(input,textarea)::placeholder,
body.score-desk-standalone #scoreboardView>.control-stack :is(input,textarea)::placeholder,
body.score-desk-standalone #eventMatchNav :is(input,textarea)::placeholder,
body:has(#master-sidebar)>#dialog :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.plan-dialog :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.plan-pairing-popover :is(input,textarea)::placeholder,
body:has(#master-sidebar)>dialog.manual-history-dialog :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(input,textarea)::placeholder,
body.event-terminal-mode>dialog :is(input,textarea)::placeholder,
body.score-desk-standalone>dialog :is(input,textarea)::placeholder{color:var(--skin-muted)}

body:has(#master-sidebar) main#app :is(button,.button),
body:has(#master-sidebar) main#app #schedule-planner :is(button,.button),
body:not(:has(#master-sidebar))>main#app :is(button,.button),
body.event-terminal-mode #checkinView :is(button,.button),
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,.button),
body.score-desk-standalone #scoreboardView>.control-stack :is(button,.button),
body.score-desk-standalone #eventMatchNav :is(button,.button),
body:has(#master-sidebar)>#dialog :is(button,.button),
body:has(#master-sidebar)>.plan-dialog :is(button,.button),
body:has(#master-sidebar)>.plan-pairing-popover :is(button,.button),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,.button),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,.button),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,.button),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,.button),
body.event-terminal-mode>dialog :is(button,.button),
body.score-desk-standalone>dialog :is(button,.button){background-color:var(--skin-surface);color:var(--skin-ink);border-color:var(--skin-control);border-radius:var(--skin-control-radius);font-weight:400;box-shadow:none}

body:has(#master-sidebar) main#app :is(button,.button):hover:not(:disabled),
body:has(#master-sidebar) main#app #schedule-planner :is(button,.button):hover:not(:disabled),
body:not(:has(#master-sidebar))>main#app :is(button,.button):hover:not(:disabled),
body.event-terminal-mode #checkinView :is(button,.button):hover:not(:disabled),
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,.button):hover:not(:disabled),
body.score-desk-standalone #scoreboardView>.control-stack :is(button,.button):hover:not(:disabled),
body.score-desk-standalone #eventMatchNav :is(button,.button):hover:not(:disabled),
body:has(#master-sidebar)>#dialog :is(button,.button):hover:not(:disabled),
body:has(#master-sidebar)>.plan-dialog :is(button,.button):hover:not(:disabled),
body:has(#master-sidebar)>.plan-pairing-popover :is(button,.button):hover:not(:disabled),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,.button):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,.button):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,.button):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,.button):hover:not(:disabled),
body.event-terminal-mode>dialog :is(button,.button):hover:not(:disabled),
body.score-desk-standalone>dialog :is(button,.button):hover:not(:disabled){background-color:var(--skin-hover);color:var(--skin-ink);border-color:var(--skin-muted)}

body:has(#master-sidebar) main#app :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar) main#app #schedule-planner :is(button.primary,.button.primary,.button.start),
body:not(:has(#master-sidebar))>main#app :is(button.primary,.button.primary,.button.start),
body.event-terminal-mode #checkinView :is(button.primary,.button.primary,.button.start),
body.score-desk-standalone #scoreboardView .pinned-controls :is(button.primary,.button.primary,.button.start),
body.score-desk-standalone #scoreboardView>.control-stack :is(button.primary,.button.primary,.button.start),
body.score-desk-standalone #eventMatchNav :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>#dialog :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.plan-dialog :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.plan-pairing-popover :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button.primary,.button.primary,.button.start),
body.event-terminal-mode>dialog :is(button.primary,.button.primary,.button.start),
body.score-desk-standalone>dialog :is(button.primary,.button.primary,.button.start){background-color:var(--skin-green);color:var(--skin-canvas);border-color:var(--skin-green);font-weight:500}

body:has(#master-sidebar) main#app :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:has(#master-sidebar) main#app #schedule-planner :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:not(:has(#master-sidebar))>main#app :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body.event-terminal-mode #checkinView :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body.score-desk-standalone #scoreboardView .pinned-controls :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body.score-desk-standalone #scoreboardView>.control-stack :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body.score-desk-standalone #eventMatchNav :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:has(#master-sidebar)>#dialog :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:has(#master-sidebar)>.plan-dialog :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:has(#master-sidebar)>.plan-pairing-popover :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body.event-terminal-mode>dialog :is(button.primary,.button.primary,.button.start):hover:not(:disabled),
body.score-desk-standalone>dialog :is(button.primary,.button.primary,.button.start):hover:not(:disabled){background-color:#39EDCE;color:var(--skin-canvas);border-color:#39EDCE}

body:has(#master-sidebar) main#app :is(button,input,select,textarea):disabled,
body:has(#master-sidebar) main#app #schedule-planner :is(button,input,select,textarea):disabled,
body:not(:has(#master-sidebar))>main#app :is(button,input,select,textarea):disabled,
body.event-terminal-mode #checkinView :is(button,input,select,textarea):disabled,
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,input,select,textarea):disabled,
body.score-desk-standalone #scoreboardView>.control-stack :is(button,input,select,textarea):disabled,
body.score-desk-standalone #eventMatchNav :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>#dialog :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.plan-dialog :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.plan-pairing-popover :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,input,select,textarea):disabled,
body.event-terminal-mode>dialog :is(button,input,select,textarea):disabled,
body.score-desk-standalone>dialog :is(button,input,select,textarea):disabled{background-color:var(--skin-inset);color:#989898;border-color:#494949}

body:has(#master-sidebar) main#app :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:has(#master-sidebar) main#app #schedule-planner :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:not(:has(#master-sidebar))>main#app :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body.event-terminal-mode #checkinView :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body.score-desk-standalone #scoreboardView>.control-stack :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body.score-desk-standalone #eventMatchNav :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:has(#master-sidebar)>#dialog :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:has(#master-sidebar)>.plan-dialog :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:has(#master-sidebar)>.plan-pairing-popover :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body.event-terminal-mode>dialog :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible,
body.score-desk-standalone>dialog :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible{outline-color:var(--skin-green)}

body:has(#master-sidebar) main#app input[type=checkbox],
body:has(#master-sidebar) main#app #schedule-planner input[type=checkbox],
body:not(:has(#master-sidebar))>main#app input[type=checkbox],
body.event-terminal-mode #checkinView input[type=checkbox],
body.score-desk-standalone #scoreboardView .pinned-controls input[type=checkbox],
body.score-desk-standalone #scoreboardView>.control-stack input[type=checkbox],
body.score-desk-standalone #eventMatchNav input[type=checkbox],
body:has(#master-sidebar)>#dialog input[type=checkbox],
body:has(#master-sidebar)>.plan-dialog input[type=checkbox],
body:has(#master-sidebar)>.plan-pairing-popover input[type=checkbox],
body:has(#master-sidebar)>dialog.manual-history-dialog input[type=checkbox],
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) input[type=checkbox],
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) input[type=checkbox],
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) input[type=checkbox],
body.event-terminal-mode>dialog input[type=checkbox],
body.score-desk-standalone>dialog input[type=checkbox]{accent-color:var(--skin-green)}

body:has(#master-sidebar) main#app a,
body:has(#master-sidebar) main#app #schedule-planner a,
body:not(:has(#master-sidebar))>main#app a,
body.event-terminal-mode #checkinView a,
body.score-desk-standalone #scoreboardView .pinned-controls a,
body.score-desk-standalone #scoreboardView>.control-stack a,
body.score-desk-standalone #eventMatchNav a,
body:has(#master-sidebar)>#dialog a,
body:has(#master-sidebar)>.plan-dialog a,
body:has(#master-sidebar)>.plan-pairing-popover a,
body:has(#master-sidebar)>dialog.manual-history-dialog a,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) a,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) a,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) a,
body.event-terminal-mode>dialog a,
body.score-desk-standalone>dialog a{color:var(--skin-green)}

body:has(#master-sidebar) main#app :is(.tabs button.active,.plan-pairing-option:has(input:checked),.manual-lock[aria-pressed=true]),
body:has(#master-sidebar) main#app #schedule-planner :is(.tabs button.active,.plan-pairing-option:has(input:checked),.manual-lock[aria-pressed=true]),
body:not(:has(#master-sidebar))>main#app :is(.tabs button.active,.plan-pairing-option:has(input:checked),.manual-lock[aria-pressed=true]){background-color:#B1B1B120;color:var(--skin-green);border-color:var(--skin-green)}

body:has(#master-sidebar) main#app :is(.tabs,.plan-stage-mini-row,.stage-all-match,.stage-settings-head,.plan-time-list,.plan-time-range,.plan-time-block,.batch-head,.standings-bracket-match>div),
body:has(#master-sidebar) main#app #schedule-planner :is(.tabs,.plan-stage-mini-row,.stage-all-match,.stage-settings-head,.plan-time-list,.plan-time-range,.plan-time-block,.batch-head,.standings-bracket-match>div),
body:not(:has(#master-sidebar))>main#app :is(.tabs,.plan-stage-mini-row,.stage-all-match,.stage-settings-head,.plan-time-list,.plan-time-range,.plan-time-block,.batch-head,.standings-bracket-match>div){border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(th,td),
body:has(#master-sidebar) main#app #schedule-planner :is(th,td),
body:not(:has(#master-sidebar))>main#app :is(th,td){border-color:var(--skin-line)}

body:has(#master-sidebar) main#app table thead th,
body:has(#master-sidebar) main#app #schedule-planner table thead th,
body:not(:has(#master-sidebar))>main#app table thead th{background-color:var(--skin-ink);color:var(--skin-canvas);font-weight:500}

body:has(#master-sidebar) main#app table thead th:first-child,
body:has(#master-sidebar) main#app #schedule-planner table thead th:first-child,
body:not(:has(#master-sidebar))>main#app table thead th:first-child{border-top-left-radius:var(--skin-nested-radius)}

body:has(#master-sidebar) main#app table thead th:last-child,
body:has(#master-sidebar) main#app #schedule-planner table thead th:last-child,
body:not(:has(#master-sidebar))>main#app table thead th:last-child{border-top-right-radius:var(--skin-nested-radius)}

body:has(#master-sidebar) main#app :is(.match-batch-row td,.plan-preview-block-head th,.batch-head),
body:has(#master-sidebar) main#app #schedule-planner :is(.match-batch-row td,.plan-preview-block-head th,.batch-head),
body:not(:has(#master-sidebar))>main#app :is(.match-batch-row td,.plan-preview-block-head th,.batch-head){background-color:#292929;color:var(--skin-green);border-color:var(--skin-line)}

body:has(#master-sidebar) main#app tbody tr:not(.match-batch-row):not(.plan-preview-block-head):hover,
body:has(#master-sidebar) main#app #schedule-planner tbody tr:not(.match-batch-row):not(.plan-preview-block-head):hover,
body:not(:has(#master-sidebar))>main#app tbody tr:not(.match-batch-row):not(.plan-preview-block-head):hover{background-color:var(--skin-hover)}

body:has(#master-sidebar) main#app :is(tr.selected,.selected),
body:has(#master-sidebar) main#app #schedule-planner :is(tr.selected,.selected),
body:not(:has(#master-sidebar))>main#app :is(tr.selected,.selected){background-color:#B1B1B120;color:var(--skin-ink)}

body:has(#master-sidebar) main#app :is(.match-definition-cell,.match-time-cell,.match-result-value,.match-name-window,.plan-time-match-definition,.plan-time-match-number),
body:has(#master-sidebar) main#app #schedule-planner :is(.match-definition-cell,.match-time-cell,.match-result-value,.match-name-window,.plan-time-match-definition,.plan-time-match-number),
body:not(:has(#master-sidebar))>main#app :is(.match-definition-cell,.match-time-cell,.match-result-value,.match-name-window,.plan-time-match-definition,.plan-time-match-number){color:var(--skin-ink)}

body:has(#master-sidebar) main#app :is(.match-team-inline,.match-side-grid,.match-team-result,.plan-stage-mini),
body:has(#master-sidebar) main#app #schedule-planner :is(.match-team-inline,.match-side-grid,.match-team-result,.plan-stage-mini),
body:not(:has(#master-sidebar))>main#app :is(.match-team-inline,.match-side-grid,.match-team-result,.plan-stage-mini){background-color:transparent;color:inherit}

body:has(#master-sidebar) main#app :is(.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.standings-progress),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.standings-progress),
body:not(:has(#master-sidebar))>main#app :is(.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.standings-progress){color:var(--skin-muted)}

body:has(#master-sidebar) main#app :is(.plan-time-side.red,.plan-preview-side.red,.match-team-cell.red .match-name-window,.standings-bracket-match .red),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-side.red,.plan-preview-side.red,.match-team-cell.red .match-name-window,.standings-bracket-match .red),
body:not(:has(#master-sidebar))>main#app :is(.plan-time-side.red,.plan-preview-side.red,.match-team-cell.red .match-name-window,.standings-bracket-match .red){color:var(--skin-red)}

body:has(#master-sidebar) main#app :is(.plan-time-side.blue,.plan-preview-side.blue,.match-team-cell.blue .match-name-window,.standings-bracket-match .blue),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-side.blue,.plan-preview-side.blue,.match-team-cell.blue .match-name-window,.standings-bracket-match .blue),
body:not(:has(#master-sidebar))>main#app :is(.plan-time-side.blue,.plan-preview-side.blue,.match-team-cell.blue .match-name-window,.standings-bracket-match .blue){color:var(--skin-blue)}

body:has(#master-sidebar) main#app :is(.plan-time-side,.plan-preview-side,.plan-time-side-name,.plan-preview-name),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-side,.plan-preview-side,.plan-time-side-name,.plan-preview-name),
body:not(:has(#master-sidebar))>main#app :is(.plan-time-side,.plan-preview-side,.plan-time-side-name,.plan-preview-name){background-color:transparent}

body:has(#master-sidebar) main#app :is(.plan-time-head,.terminal-info,.dialog-head,.history-body,.remote-dialog-body,.manual-history-dialog footer),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-head,.terminal-info,.dialog-head,.history-body,.remote-dialog-body,.manual-history-dialog footer),
body:not(:has(#master-sidebar))>main#app :is(.plan-time-head,.terminal-info,.dialog-head,.history-body,.remote-dialog-body,.manual-history-dialog footer){background-color:var(--skin-surface);color:var(--skin-ink);border-color:var(--skin-line)}

body:has(#master-sidebar) main#app .standings-group tbody td:first-child,
body:has(#master-sidebar) main#app #schedule-planner .standings-group tbody td:first-child,
body:not(:has(#master-sidebar))>main#app .standings-group tbody td:first-child{color:var(--skin-green)}

body:has(#master-sidebar) main#app .standings-group progress,
body:has(#master-sidebar) main#app #schedule-planner .standings-group progress,
body:not(:has(#master-sidebar))>main#app .standings-group progress{accent-color:var(--skin-green)}

body:has(#master-sidebar) main#app .standings-bracket-match summary span,
body:has(#master-sidebar) main#app #schedule-planner .standings-bracket-match summary span,
body:not(:has(#master-sidebar))>main#app .standings-bracket-match summary span{background-color:var(--skin-inset)}

body:has(#master-sidebar) main#app :is(.tag,.tag.gray,.tag.green,.tag.orange,.manual-status-entry),
body:has(#master-sidebar) main#app #schedule-planner :is(.tag,.tag.gray,.tag.green,.tag.orange,.manual-status-entry),
body:not(:has(#master-sidebar))>main#app :is(.tag,.tag.gray,.tag.green,.tag.orange,.manual-status-entry){background-color:var(--skin-inset);color:var(--skin-muted);border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(.plan-warning,.plan-time-alert,.manual-review-warning,.conflict-note,.error,.dialog-error,.plan-dismissible-warning),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-warning,.plan-time-alert,.manual-review-warning,.conflict-note,.error,.dialog-error,.plan-dismissible-warning),
body:not(:has(#master-sidebar))>main#app :is(.plan-warning,.plan-time-alert,.manual-review-warning,.conflict-note,.error,.dialog-error,.plan-dismissible-warning){background-color:#30291A;color:#F2CE82;border-color:#9D8046;border-radius:var(--skin-nested-radius)}

body:has(#master-sidebar) main#app :is(tr.conflict,tr.conflict input),
body:has(#master-sidebar) main#app #schedule-planner :is(tr.conflict,tr.conflict input),
body:not(:has(#master-sidebar))>main#app :is(tr.conflict,tr.conflict input){background-color:#30291A;color:#F2CE82;border-color:#9D8046}

body:has(#master-sidebar) main#app :is(.plan-time-handle,.handle,.ui-action-icon),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-handle,.handle,.ui-action-icon),
body:not(:has(#master-sidebar))>main#app :is(.plan-time-handle,.handle,.ui-action-icon){background-color:transparent;color:var(--skin-muted)}

body:has(#master-sidebar) main#app :is(.plan-stage-mini-row,.plan-time-match),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-stage-mini-row,.plan-time-match),
body:not(:has(#master-sidebar))>main#app :is(.plan-stage-mini-row,.plan-time-match){background-color:transparent}

body.event-terminal-mode #checkinView :is(.panel-header,.event-checkin-head,.event-checkin-section,.event-checkin-section-heading,.event-checkin-team-controls),
body.score-desk-standalone #scoreboardView .pinned-controls :is(.panel-header,.score-control-grid,.sound-grid,.setting-list),
body.score-desk-standalone #scoreboardView>.control-stack :is(.panel-header,.score-control-grid,.sound-grid,.setting-list),
body.score-desk-standalone #eventMatchNav :is(.panel-header,.score-control-grid,.sound-grid,.setting-list){background-color:transparent;border-color:var(--skin-line);color:var(--skin-ink)}

body.event-terminal-mode #checkinView :is(.event-checkin-feedback,.event-checkin-note span,.event-checkin-section-heading span){color:var(--skin-muted)}

body.event-terminal-mode #checkinView :is(.is-red .event-team-side,.is-red .event-checkin-team-title>span){color:var(--skin-red);background-color:transparent}

body.event-terminal-mode #checkinView :is(.is-blue .event-team-side,.is-blue .event-checkin-team-title>span){color:var(--skin-blue);background-color:transparent}

body.event-terminal-mode #checkinView :is(.event-checkin-toggle,.event-checkin-toggle.is-pass,.event-checkin-toggle.is-fail){background-color:var(--skin-inset);color:var(--skin-ink);border-color:var(--skin-line);border-radius:var(--skin-control-radius)}

body.event-terminal-mode #checkinView .event-checkin-toggle:has(input:checked){background-color:#B1B1B120;color:var(--skin-green);border-color:var(--skin-green)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.score-control.red-control,.red-score-control),
body.score-desk-standalone #scoreboardView>.control-stack :is(.score-control.red-control,.red-score-control),
body.score-desk-standalone #eventMatchNav :is(.score-control.red-control,.red-score-control){border-color:var(--skin-red)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.score-control.blue-control,.blue-score-control),
body.score-desk-standalone #scoreboardView>.control-stack :is(.score-control.blue-control,.blue-score-control),
body.score-desk-standalone #eventMatchNav :is(.score-control.blue-control,.blue-score-control){border-color:var(--skin-blue)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.score-button,.score-edit-input,.simple-counter-input,.hotkey-input,.hold-win-button,.timer-type-toggle button),
body.score-desk-standalone #scoreboardView>.control-stack :is(.score-button,.score-edit-input,.simple-counter-input,.hotkey-input,.hold-win-button,.timer-type-toggle button),
body.score-desk-standalone #eventMatchNav :is(.score-button,.score-edit-input,.simple-counter-input,.hotkey-input,.hold-win-button,.timer-type-toggle button){background-color:var(--skin-inset);color:var(--skin-ink);border-color:var(--skin-control)}

body.score-desk-standalone #scoreboardView .pinned-controls :is([data-timer-type-button].is-active,[data-stage-half-button].is-active),
body.score-desk-standalone #scoreboardView>.control-stack :is([data-timer-type-button].is-active,[data-stage-half-button].is-active),
body.score-desk-standalone #eventMatchNav :is([data-timer-type-button].is-active,[data-stage-half-button].is-active){background-color:#B1B1B120;color:var(--skin-green);border-color:var(--skin-green)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.simple-counter label,.hotkey-row label,.setting-row>span,.sound-card label,.timer-controls .button span),
body.score-desk-standalone #scoreboardView>.control-stack :is(.simple-counter label,.hotkey-row label,.setting-row>span,.sound-card label,.timer-controls .button span),
body.score-desk-standalone #eventMatchNav :is(.simple-counter label,.hotkey-row label,.setting-row>span,.sound-card label,.timer-controls .button span){color:var(--skin-muted)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.simple-more-settings,.sound-settings,.match-stage-selector,.game-win-control),
body.score-desk-standalone #scoreboardView>.control-stack :is(.simple-more-settings,.sound-settings,.match-stage-selector,.game-win-control),
body.score-desk-standalone #eventMatchNav :is(.simple-more-settings,.sound-settings,.match-stage-selector,.game-win-control){border-color:var(--skin-line)}

body:has(#master-sidebar)>#dialog :is(header,.panel-header,.dialog-head,footer,.simple-team-options),
body:has(#master-sidebar)>.plan-dialog :is(header,.panel-header,.dialog-head,footer,.simple-team-options),
body:has(#master-sidebar)>.plan-pairing-popover :is(header,.panel-header,.dialog-head,footer,.simple-team-options),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(header,.panel-header,.dialog-head,footer,.simple-team-options),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(header,.panel-header,.dialog-head,footer,.simple-team-options),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(header,.panel-header,.dialog-head,footer,.simple-team-options),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(header,.panel-header,.dialog-head,footer,.simple-team-options),
body.event-terminal-mode>dialog :is(header,.panel-header,.dialog-head,footer,.simple-team-options),
body.score-desk-standalone>dialog :is(header,.panel-header,.dialog-head,footer,.simple-team-options){background-color:var(--skin-surface);color:var(--skin-ink);border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(.tablewrap,.master-match-scroll,.plan-canvas,.time-block-strip,.plan-time-list,.stage-secondary-panel),
body:has(#master-sidebar) main#app #schedule-planner :is(.tablewrap,.master-match-scroll,.plan-canvas,.time-block-strip,.plan-time-list,.stage-secondary-panel),
body:not(:has(#master-sidebar))>main#app :is(.tablewrap,.master-match-scroll,.plan-canvas,.time-block-strip,.plan-time-list,.stage-secondary-panel),
body.event-terminal-mode #checkinView .event-checkin-plan-list,
body.score-desk-standalone #scoreboardView .pinned-controls,
body.score-desk-standalone #scoreboardView>.control-stack,
body.score-desk-standalone #eventMatchNav{scrollbar-color:#707070 #1D1D1D}

body:has(#master-sidebar) main#app :is(.plan-time-plan,.plan-preview,.stage-secondary-panel),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-plan,.plan-preview,.stage-secondary-panel),
body:not(:has(#master-sidebar))>main#app :is(.plan-time-plan,.plan-preview,.stage-secondary-panel),
body.score-desk-standalone #scoreboardView .pinned-controls .control-panel,
body.score-desk-standalone #scoreboardView>.control-stack .control-panel,
body.score-desk-standalone #eventMatchNav .control-panel,
body:has(#master-sidebar)>#dialog,
body:has(#master-sidebar)>.plan-dialog,
body:has(#master-sidebar)>.plan-pairing-popover,
body:has(#master-sidebar)>dialog.manual-history-dialog,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog),
body.event-terminal-mode>dialog,
body.score-desk-standalone>dialog{border-radius:var(--skin-panel-radius)}

body.score-desk-standalone #eventMatchNav{background-color:var(--skin-surface);border-color:var(--skin-line);border-radius:var(--skin-card-radius)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.simple-counter-input,.score-edit-input),
body.score-desk-standalone #scoreboardView>.control-stack :is(.simple-counter-input,.score-edit-input),
body.score-desk-standalone #eventMatchNav :is(.simple-counter-input,.score-edit-input){border-radius:var(--skin-nested-radius)}

body.score-desk-standalone #scoreboardView .pinned-controls .result-table th,body.score-desk-standalone #scoreboardView>.control-stack .result-table th,body.score-desk-standalone #eventMatchNav .result-table th{background-color:var(--skin-ink);color:var(--skin-canvas);border-color:var(--skin-line)}
body.score-desk-standalone #scoreboardView .pinned-controls .result-table td,body.score-desk-standalone #scoreboardView>.control-stack .result-table td,body.score-desk-standalone #eventMatchNav .result-table td{background-color:transparent;color:var(--skin-ink);border-color:var(--skin-line)}
body.score-desk-standalone #scoreboardView .pinned-controls .result-table tr.is-current,body.score-desk-standalone #scoreboardView>.control-stack .result-table tr.is-current,body.score-desk-standalone #eventMatchNav .result-table tr.is-current{background-color:#B1B1B120;box-shadow:inset 3px 0 #00E5BE}
body.score-desk-standalone #scoreboardView .pinned-controls .match-red,body.score-desk-standalone #scoreboardView>.control-stack .match-red,body.score-desk-standalone #eventMatchNav .match-red{color:var(--skin-red)}
body.score-desk-standalone #scoreboardView .pinned-controls .match-blue,body.score-desk-standalone #scoreboardView>.control-stack .match-blue,body.score-desk-standalone #eventMatchNav .match-blue{color:var(--skin-blue)}
body.event-terminal-mode #checkinView .event-team-side.is-red{color:var(--skin-red);background-color:transparent}
body.event-terminal-mode #checkinView .event-team-side.is-blue{color:var(--skin-blue);background-color:transparent}

body.event-terminal-mode #checkinView .event-checkin-section{border-radius:var(--skin-card-radius);background-color:var(--skin-surface)}
body.event-terminal-mode #checkinView .event-checkin-team-card.is-red{border-left-color:var(--skin-red)}
body.event-terminal-mode #checkinView .event-checkin-team-card.is-blue{border-left-color:var(--skin-blue)}
body.score-desk-standalone #scoreboardView .pinned-controls .red-control .score-control-title,body.score-desk-standalone #scoreboardView>.control-stack .red-control .score-control-title,body.score-desk-standalone #eventMatchNav .red-control .score-control-title{color:var(--skin-red)}
body.score-desk-standalone #scoreboardView .pinned-controls .blue-control .score-control-title,body.score-desk-standalone #scoreboardView>.control-stack .blue-control .score-control-title,body.score-desk-standalone #eventMatchNav .blue-control .score-control-title{color:var(--skin-blue)}
body.score-desk-standalone #scoreboardView .pinned-controls :is(.score-lock-notice,.local-score-save-warning),body.score-desk-standalone #scoreboardView>.control-stack :is(.score-lock-notice,.local-score-save-warning),body.score-desk-standalone #eventMatchNav :is(.score-lock-notice,.local-score-save-warning){background-color:#30291A;color:#F2CE82;border-color:#9D8046;border-radius:var(--skin-nested-radius)}
body.score-desk-standalone #scoreboardView .pinned-controls :is(.text-style-popover,.team-autocomplete-panel),body.score-desk-standalone #scoreboardView>.control-stack :is(.text-style-popover,.team-autocomplete-panel),body.score-desk-standalone #eventMatchNav :is(.text-style-popover,.team-autocomplete-panel){background-color:var(--skin-surface);color:var(--skin-ink);border-color:var(--skin-control);border-radius:var(--skin-nested-radius)}

body.event-terminal-mode #checkinView .event-checkin-toggle.is-fail:has(input:checked){background-color:#30291A;color:#F2CE82;border-color:#9D8046}

/* Source-audited component cascade repairs; screenshot findings are not visual acceptance. */
body:has(#master-sidebar) main#app,
body:has(#master-sidebar) main#app #schedule-planner,
body:not(:has(#master-sidebar))>main#app,
body.event-terminal-mode #checkinView,
body.score-desk-standalone #scoreboardView .pinned-controls,
body.score-desk-standalone #scoreboardView>.control-stack,
body.score-desk-standalone #eventMatchNav,
body:has(#master-sidebar)>#dialog,
body:has(#master-sidebar)>.plan-dialog,
body:has(#master-sidebar)>.plan-pairing-popover,
body:has(#master-sidebar)>dialog.manual-history-dialog,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog),
body.event-terminal-mode>dialog,
body.score-desk-standalone>dialog{--red:var(--skin-red);--blue:var(--skin-blue);--ink:var(--skin-ink);--muted:var(--skin-muted);--panel:var(--skin-surface);--panel-strong:var(--skin-inset);--line:var(--skin-line);--ui-ink:var(--skin-ink);--ui-muted:var(--skin-muted);--ui-line:var(--skin-line);--ui-control:var(--skin-control);--op-paper:var(--skin-surface);--op-ink:var(--skin-ink);--op-muted:var(--skin-muted);--op-line:var(--skin-line)}

body:has(#master-sidebar) main#app :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:has(#master-sidebar) main#app #schedule-planner :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:not(:has(#master-sidebar))>main#app :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body.event-terminal-mode #checkinView :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body.score-desk-standalone #scoreboardView .pinned-controls :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body.score-desk-standalone #scoreboardView>.control-stack :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body.score-desk-standalone #eventMatchNav :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:has(#master-sidebar)>#dialog :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:has(#master-sidebar)>.plan-dialog :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:has(#master-sidebar)>.plan-pairing-popover :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:has(#master-sidebar)>dialog.manual-history-dialog :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body.event-terminal-mode>dialog :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b),
body.score-desk-standalone>dialog :where(p,span,label,legend,output,summary,dt,dd,td,small,strong,b){color:inherit}

body:has(#master-sidebar) main#app :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:has(#master-sidebar) main#app #schedule-planner :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:not(:has(#master-sidebar))>main#app :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body.event-terminal-mode #checkinView :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body.score-desk-standalone #scoreboardView .pinned-controls :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body.score-desk-standalone #scoreboardView>.control-stack :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body.score-desk-standalone #eventMatchNav :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:has(#master-sidebar)>#dialog :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:has(#master-sidebar)>.plan-dialog :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:has(#master-sidebar)>.plan-pairing-popover :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body.event-terminal-mode>dialog :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child),
body.score-desk-standalone>dialog :is(.muted,.help,.smalltext,.setting-hint,.result-summary,.schedule-boundary-status,.plan-stage-rule,.plan-stage-kpis,.plan-time-clock,.plan-team-box>span,.text-style-grid label,.safe-area-row label,.setting-row>span:first-child){color:var(--skin-muted)}

body:has(#master-sidebar) main#app :is(input,select,textarea),
body:has(#master-sidebar) main#app #schedule-planner :is(input,select,textarea),
body:not(:has(#master-sidebar))>main#app :is(input,select,textarea),
body.event-terminal-mode #checkinView :is(input,select,textarea),
body.score-desk-standalone #scoreboardView .pinned-controls :is(input,select,textarea),
body.score-desk-standalone #scoreboardView>.control-stack :is(input,select,textarea),
body.score-desk-standalone #eventMatchNav :is(input,select,textarea),
body:has(#master-sidebar)>#dialog :is(input,select,textarea),
body:has(#master-sidebar)>.plan-dialog :is(input,select,textarea),
body:has(#master-sidebar)>.plan-pairing-popover :is(input,select,textarea),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(input,select,textarea),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(input,select,textarea),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(input,select,textarea),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(input,select,textarea),
body.event-terminal-mode>dialog :is(input,select,textarea),
body.score-desk-standalone>dialog :is(input,select,textarea){background-color:var(--skin-inset);background-image:none;color:var(--skin-ink);border-color:var(--skin-control)}

body:has(#master-sidebar) main#app :is(button,.button,.file-button),
body:has(#master-sidebar) main#app #schedule-planner :is(button,.button,.file-button),
body:not(:has(#master-sidebar))>main#app :is(button,.button,.file-button),
body.event-terminal-mode #checkinView :is(button,.button,.file-button),
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,.button,.file-button),
body.score-desk-standalone #scoreboardView>.control-stack :is(button,.button,.file-button),
body.score-desk-standalone #eventMatchNav :is(button,.button,.file-button),
body:has(#master-sidebar)>#dialog :is(button,.button,.file-button),
body:has(#master-sidebar)>.plan-dialog :is(button,.button,.file-button),
body:has(#master-sidebar)>.plan-pairing-popover :is(button,.button,.file-button),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,.button,.file-button),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,.button,.file-button),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,.button,.file-button),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,.button,.file-button),
body.event-terminal-mode>dialog :is(button,.button,.file-button),
body.score-desk-standalone>dialog :is(button,.button,.file-button){background-color:var(--skin-surface);background-image:none;color:var(--skin-ink);border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(button,.button,.file-button):hover:not(:disabled),
body:has(#master-sidebar) main#app #schedule-planner :is(button,.button,.file-button):hover:not(:disabled),
body:not(:has(#master-sidebar))>main#app :is(button,.button,.file-button):hover:not(:disabled),
body.event-terminal-mode #checkinView :is(button,.button,.file-button):hover:not(:disabled),
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,.button,.file-button):hover:not(:disabled),
body.score-desk-standalone #scoreboardView>.control-stack :is(button,.button,.file-button):hover:not(:disabled),
body.score-desk-standalone #eventMatchNav :is(button,.button,.file-button):hover:not(:disabled),
body:has(#master-sidebar)>#dialog :is(button,.button,.file-button):hover:not(:disabled),
body:has(#master-sidebar)>.plan-dialog :is(button,.button,.file-button):hover:not(:disabled),
body:has(#master-sidebar)>.plan-pairing-popover :is(button,.button,.file-button):hover:not(:disabled),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,.button,.file-button):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,.button,.file-button):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,.button,.file-button):hover:not(:disabled),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,.button,.file-button):hover:not(:disabled),
body.event-terminal-mode>dialog :is(button,.button,.file-button):hover:not(:disabled),
body.score-desk-standalone>dialog :is(button,.button,.file-button):hover:not(:disabled){background-color:var(--skin-hover);color:var(--skin-ink);border-color:var(--skin-control)}

body:has(#master-sidebar) main#app :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar) main#app #schedule-planner :is(button.primary,.button.primary,.button.start),
body:not(:has(#master-sidebar))>main#app :is(button.primary,.button.primary,.button.start),
body.event-terminal-mode #checkinView :is(button.primary,.button.primary,.button.start),
body.score-desk-standalone #scoreboardView .pinned-controls :is(button.primary,.button.primary,.button.start),
body.score-desk-standalone #scoreboardView>.control-stack :is(button.primary,.button.primary,.button.start),
body.score-desk-standalone #eventMatchNav :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>#dialog :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.plan-dialog :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.plan-pairing-popover :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button.primary,.button.primary,.button.start),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button.primary,.button.primary,.button.start),
body.event-terminal-mode>dialog :is(button.primary,.button.primary,.button.start),
body.score-desk-standalone>dialog :is(button.primary,.button.primary,.button.start){background-color:var(--skin-green);color:var(--skin-canvas);border-color:var(--skin-green)}

body:has(#master-sidebar) main#app :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:has(#master-sidebar) main#app #schedule-planner :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:not(:has(#master-sidebar))>main#app :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body.event-terminal-mode #checkinView :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body.score-desk-standalone #scoreboardView .pinned-controls :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body.score-desk-standalone #scoreboardView>.control-stack :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body.score-desk-standalone #eventMatchNav :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:has(#master-sidebar)>#dialog :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:has(#master-sidebar)>.plan-dialog :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:has(#master-sidebar)>.plan-pairing-popover :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body.event-terminal-mode>dialog :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg),
body.score-desk-standalone>dialog :is(button.primary,.button.primary,.button.start) :where(span,strong,b,svg){color:inherit}

body:has(#master-sidebar) main#app :is(button,input,select,textarea):disabled,
body:has(#master-sidebar) main#app #schedule-planner :is(button,input,select,textarea):disabled,
body:not(:has(#master-sidebar))>main#app :is(button,input,select,textarea):disabled,
body.event-terminal-mode #checkinView :is(button,input,select,textarea):disabled,
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,input,select,textarea):disabled,
body.score-desk-standalone #scoreboardView>.control-stack :is(button,input,select,textarea):disabled,
body.score-desk-standalone #eventMatchNav :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>#dialog :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.plan-dialog :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.plan-pairing-popover :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,input,select,textarea):disabled,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,input,select,textarea):disabled,
body.event-terminal-mode>dialog :is(button,input,select,textarea):disabled,
body.score-desk-standalone>dialog :is(button,input,select,textarea):disabled{background-color:#131313;background-image:none;color:#9D9D9D;border-color:#474747;opacity:1}

body:has(#master-sidebar) main#app :is(button,.button):disabled:hover,
body:has(#master-sidebar) main#app #schedule-planner :is(button,.button):disabled:hover,
body:not(:has(#master-sidebar))>main#app :is(button,.button):disabled:hover,
body.event-terminal-mode #checkinView :is(button,.button):disabled:hover,
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,.button):disabled:hover,
body.score-desk-standalone #scoreboardView>.control-stack :is(button,.button):disabled:hover,
body.score-desk-standalone #eventMatchNav :is(button,.button):disabled:hover,
body:has(#master-sidebar)>#dialog :is(button,.button):disabled:hover,
body:has(#master-sidebar)>.plan-dialog :is(button,.button):disabled:hover,
body:has(#master-sidebar)>.plan-pairing-popover :is(button,.button):disabled:hover,
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,.button):disabled:hover,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,.button):disabled:hover,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,.button):disabled:hover,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,.button):disabled:hover,
body.event-terminal-mode>dialog :is(button,.button):disabled:hover,
body.score-desk-standalone>dialog :is(button,.button):disabled:hover{background-color:#131313;color:#9D9D9D;border-color:#474747}

body:has(#master-sidebar) main#app :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:has(#master-sidebar) main#app #schedule-planner :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:not(:has(#master-sidebar))>main#app :is(button,input,select,textarea,.file-button,summary):focus-visible,
body.event-terminal-mode #checkinView :is(button,input,select,textarea,.file-button,summary):focus-visible,
body.score-desk-standalone #scoreboardView .pinned-controls :is(button,input,select,textarea,.file-button,summary):focus-visible,
body.score-desk-standalone #scoreboardView>.control-stack :is(button,input,select,textarea,.file-button,summary):focus-visible,
body.score-desk-standalone #eventMatchNav :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:has(#master-sidebar)>#dialog :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:has(#master-sidebar)>.plan-dialog :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:has(#master-sidebar)>.plan-pairing-popover :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:has(#master-sidebar)>dialog.manual-history-dialog :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(button,input,select,textarea,.file-button,summary):focus-visible,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(button,input,select,textarea,.file-button,summary):focus-visible,
body.event-terminal-mode>dialog :is(button,input,select,textarea,.file-button,summary):focus-visible,
body.score-desk-standalone>dialog :is(button,input,select,textarea,.file-button,summary):focus-visible{outline-color:var(--skin-green)}

body:has(#master-sidebar) main#app :is(td,.match-definition-cell,.match-time-cell,.match-name-window,.match-result-value,.plan-preview-name,.fixed-name-content),
body:has(#master-sidebar) main#app #schedule-planner :is(td,.match-definition-cell,.match-time-cell,.match-name-window,.match-result-value,.plan-preview-name,.fixed-name-content),
body:not(:has(#master-sidebar))>main#app :is(td,.match-definition-cell,.match-time-cell,.match-name-window,.match-result-value,.plan-preview-name,.fixed-name-content){color:inherit}

body:has(#master-sidebar) main#app :is(.plan-stage,.plan-team-box,.plan-time-plan,.plan-preview,.plan-time-block,.standings-group,.terminal-tile,.terminal-card,.card),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-stage,.plan-team-box,.plan-time-plan,.plan-preview,.plan-time-block,.standings-group,.terminal-tile,.terminal-card,.card),
body:not(:has(#master-sidebar))>main#app :is(.plan-stage,.plan-team-box,.plan-time-plan,.plan-preview,.plan-time-block,.standings-group,.terminal-tile,.terminal-card,.card){background-color:var(--skin-surface);background-image:none;color:var(--skin-ink);border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(.stage-secondary-panel,.plan-pairing-option,.plan-stage-settings,.plan-stage-matches),
body:has(#master-sidebar) main#app #schedule-planner :is(.stage-secondary-panel,.plan-pairing-option,.plan-stage-settings,.plan-stage-matches),
body:not(:has(#master-sidebar))>main#app :is(.stage-secondary-panel,.plan-pairing-option,.plan-stage-settings,.plan-stage-matches){background-color:var(--skin-surface);background-image:none;color:var(--skin-ink);border-color:var(--skin-control)}

body:has(#master-sidebar) main#app :is(.plan-step,.plan-time-head,.plan-team-box),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-step,.plan-time-head,.plan-team-box),
body:not(:has(#master-sidebar))>main#app :is(.plan-step,.plan-time-head,.plan-team-box){background-color:var(--skin-inset);background-image:none;color:var(--skin-ink)}

body:has(#master-sidebar) main#app .plan-step,
body:has(#master-sidebar) main#app #schedule-planner .plan-step,
body:not(:has(#master-sidebar))>main#app .plan-step{color:var(--skin-green)}

body:has(#master-sidebar) main#app :is(.plan-time-side.red,.plan-preview-side.red,.match-team-cell.red .match-name-window,.standings-bracket-match .red,.plan-time-side.red .plan-time-side-name),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-side.red,.plan-preview-side.red,.match-team-cell.red .match-name-window,.standings-bracket-match .red,.plan-time-side.red .plan-time-side-name),
body:not(:has(#master-sidebar))>main#app :is(.plan-time-side.red,.plan-preview-side.red,.match-team-cell.red .match-name-window,.standings-bracket-match .red,.plan-time-side.red .plan-time-side-name){color:var(--skin-red);background-color:transparent}

body:has(#master-sidebar) main#app :is(.plan-time-side.blue,.plan-preview-side.blue,.match-team-cell.blue .match-name-window,.standings-bracket-match .blue,.plan-time-side.blue .plan-time-side-name),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-side.blue,.plan-preview-side.blue,.match-team-cell.blue .match-name-window,.standings-bracket-match .blue,.plan-time-side.blue .plan-time-side-name),
body:not(:has(#master-sidebar))>main#app :is(.plan-time-side.blue,.plan-preview-side.blue,.match-team-cell.blue .match-name-window,.standings-bracket-match .blue,.plan-time-side.blue .plan-time-side-name){color:var(--skin-blue);background-color:transparent}

body:has(#master-sidebar) main#app table thead th,
body:has(#master-sidebar) main#app #schedule-planner table thead th,
body:not(:has(#master-sidebar))>main#app table thead th{background-color:var(--skin-ink);background-image:none;color:var(--skin-canvas);border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(.match-batch-row td,.plan-preview-block-head th,.batch-head),
body:has(#master-sidebar) main#app #schedule-planner :is(.match-batch-row td,.plan-preview-block-head th,.batch-head),
body:not(:has(#master-sidebar))>main#app :is(.match-batch-row td,.plan-preview-block-head th,.batch-head){background-color:#292929;background-image:none;color:var(--skin-green);border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(.tabs button.active,.plan-pairing-option:has(input:checked),.manual-lock[aria-pressed=true]),
body:has(#master-sidebar) main#app #schedule-planner :is(.tabs button.active,.plan-pairing-option:has(input:checked),.manual-lock[aria-pressed=true]),
body:not(:has(#master-sidebar))>main#app :is(.tabs button.active,.plan-pairing-option:has(input:checked),.manual-lock[aria-pressed=true]){background-color:#B1B1B126;color:var(--skin-green);border-color:var(--skin-green)}

body:has(#master-sidebar) main#app :is(.plan-warning,.plan-time-alert,.manual-review-warning,.conflict-note,.error,.dialog-error,.plan-dismissible-warning,.inline-score-feedback),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-warning,.plan-time-alert,.manual-review-warning,.conflict-note,.error,.dialog-error,.plan-dismissible-warning,.inline-score-feedback),
body:not(:has(#master-sidebar))>main#app :is(.plan-warning,.plan-time-alert,.manual-review-warning,.conflict-note,.error,.dialog-error,.plan-dismissible-warning,.inline-score-feedback){background-color:#30291A;color:#F2CE82;border-color:#9D8046}

body:has(#master-sidebar) main#app .standings-group tbody td:first-child,
body:has(#master-sidebar) main#app #schedule-planner .standings-group tbody td:first-child,
body:not(:has(#master-sidebar))>main#app .standings-group tbody td:first-child{color:var(--skin-green)}

body:has(#master-sidebar) main#app :is(.plan-time-side,.plan-preview-side) .fixed-name-content,
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-time-side,.plan-preview-side) .fixed-name-content,
body:not(:has(#master-sidebar))>main#app :is(.plan-time-side,.plan-preview-side) .fixed-name-content{color:inherit}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.score-match-format,.score-match-format-setting-row,.setting-row,.timer-prestart-toggle,.game-win-control,.match-stage-selector,.simple-sound-item,.sound-card),
body.score-desk-standalone #scoreboardView>.control-stack :is(.score-match-format,.score-match-format-setting-row,.setting-row,.timer-prestart-toggle,.game-win-control,.match-stage-selector,.simple-sound-item,.sound-card),
body.score-desk-standalone #eventMatchNav :is(.score-match-format,.score-match-format-setting-row,.setting-row,.timer-prestart-toggle,.game-win-control,.match-stage-selector,.simple-sound-item,.sound-card){background-color:var(--skin-inset);background-image:none;color:var(--skin-ink);border-color:transparent;border-radius:var(--skin-nested-radius)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.setting-row>span,.safe-area-row label,.text-style-grid label,.hotkey-row label,.simple-counter label,.sound-gain-control label),
body.score-desk-standalone #scoreboardView>.control-stack :is(.setting-row>span,.safe-area-row label,.text-style-grid label,.hotkey-row label,.simple-counter label,.sound-gain-control label),
body.score-desk-standalone #eventMatchNav :is(.setting-row>span,.safe-area-row label,.text-style-grid label,.hotkey-row label,.simple-counter label,.sound-gain-control label){color:var(--skin-muted)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.timer-prestart-toggle span,.score-match-format label,.text-style-title span,.current-match-pill),
body.score-desk-standalone #scoreboardView>.control-stack :is(.timer-prestart-toggle span,.score-match-format label,.text-style-title span,.current-match-pill),
body.score-desk-standalone #eventMatchNav :is(.timer-prestart-toggle span,.score-match-format label,.text-style-title span,.current-match-pill){color:var(--skin-ink)}

body.score-desk-standalone #scoreboardView .pinned-controls .simple-counter-arrows,
body.score-desk-standalone #scoreboardView>.control-stack .simple-counter-arrows,
body.score-desk-standalone #eventMatchNav .simple-counter-arrows{background-color:var(--skin-inset);color:var(--skin-ink);border-color:var(--skin-line)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button.is-active,
body.score-desk-standalone #scoreboardView>.control-stack :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button.is-active,
body.score-desk-standalone #eventMatchNav :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button.is-active{background-color:var(--skin-green);background-image:none;color:var(--skin-canvas);border-color:var(--skin-green)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button.is-active:hover:not(:disabled),
body.score-desk-standalone #scoreboardView>.control-stack :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button.is-active:hover:not(:disabled),
body.score-desk-standalone #eventMatchNav :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button.is-active:hover:not(:disabled){background-color:#39EDCE;color:var(--skin-canvas);border-color:#39EDCE}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button:disabled,
body.score-desk-standalone #scoreboardView>.control-stack :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button:disabled,
body.score-desk-standalone #eventMatchNav :is(.mode-toggle,.fit-toggle,.timer-type-toggle,.match-stage-selector) button:disabled{background-color:#131313;color:#9D9D9D;border-color:#474747}

body.score-desk-standalone #scoreboardView .pinned-controls .safe-area-row.is-disabled,
body.score-desk-standalone #scoreboardView>.control-stack .safe-area-row.is-disabled,
body.score-desk-standalone #eventMatchNav .safe-area-row.is-disabled{opacity:1}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.red-control .score-control-title,.red-win-side>strong,.match-red),
body.score-desk-standalone #scoreboardView>.control-stack :is(.red-control .score-control-title,.red-win-side>strong,.match-red),
body.score-desk-standalone #eventMatchNav :is(.red-control .score-control-title,.red-win-side>strong,.match-red){color:var(--skin-red)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.blue-control .score-control-title,.blue-win-side>strong,.match-blue),
body.score-desk-standalone #scoreboardView>.control-stack :is(.blue-control .score-control-title,.blue-win-side>strong,.match-blue),
body.score-desk-standalone #eventMatchNav :is(.blue-control .score-control-title,.blue-win-side>strong,.match-blue){color:var(--skin-blue)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.text-style-popover,.team-autocomplete-panel),
body.score-desk-standalone #scoreboardView>.control-stack :is(.text-style-popover,.team-autocomplete-panel),
body.score-desk-standalone #eventMatchNav :is(.text-style-popover,.team-autocomplete-panel){background-color:var(--skin-surface);background-image:none;color:var(--skin-ink);border-color:var(--skin-control)}

body.score-desk-standalone #scoreboardView .pinned-controls .simple-match-list th,
body.score-desk-standalone #scoreboardView>.control-stack .simple-match-list th,
body.score-desk-standalone #eventMatchNav .simple-match-list th{background-color:var(--skin-ink);background-image:none;color:var(--skin-canvas)}

body.score-desk-standalone #scoreboardView .pinned-controls .simple-match-list td,
body.score-desk-standalone #scoreboardView>.control-stack .simple-match-list td,
body.score-desk-standalone #eventMatchNav .simple-match-list td{background-color:transparent;color:var(--skin-ink);border-color:var(--skin-line)}

body.score-desk-standalone #scoreboardView .pinned-controls .simple-match-list tr.is-current,
body.score-desk-standalone #scoreboardView>.control-stack .simple-match-list tr.is-current,
body.score-desk-standalone #eventMatchNav .simple-match-list tr.is-current{background-color:#B1B1B120;color:var(--skin-ink)}

body.event-terminal-mode #checkinView :is(.event-checkin-section,.event-checkin-card,.event-checkin-team-card,.event-checkin-plan-item){background-image:none;color:var(--skin-ink);border-color:var(--skin-line)}

body.event-terminal-mode #checkinView :is(.event-team-side.is-red,.is-red .event-checkin-team-title>span){color:var(--skin-red)}

body.event-terminal-mode #checkinView :is(.event-team-side.is-blue,.is-blue .event-checkin-team-title>span){color:var(--skin-blue)}

body.event-terminal-mode #checkinView :is(.event-checkin-toggle:has(input:checked)){background-color:#B1B1B120;color:var(--skin-green);border-color:var(--skin-green)}

body.event-terminal-mode #checkinView .event-checkin-toggle.is-fail:has(input:checked){background-color:#30291A;color:#F2CE82;border-color:#9D8046}

body.score-desk-standalone #scoreDeskStandaloneHeader{--red:var(--skin-red);--blue:var(--skin-blue);--ink:var(--skin-ink);--muted:var(--skin-muted);--line:var(--skin-line)}

body.score-desk-standalone #scoreDeskStandaloneHeader .score-desk-product :is(strong,a,span){color:var(--skin-ink)}

body.score-desk-standalone #scoreDeskStandaloneHeader :is(label,.update-status){color:var(--skin-muted)}

body.score-desk-standalone #scoreDeskStandaloneHeader :is(input,button,.button){color:var(--skin-ink);background-color:var(--skin-surface);border-color:var(--skin-line)}

body.score-desk-standalone #scoreDeskStandaloneHeader .button.primary{color:var(--skin-canvas);background-color:var(--skin-green);border-color:var(--skin-green)}

body:has(#master-sidebar) main#app :is(.tablewrap,.master-match-scroll,.plan-stage-mini-row,.plan-time-match,.plan-time-totals,.plan-stage-overview,.plan-time-match-info,.plan-time-brief,.plan-time-range),
body:has(#master-sidebar) main#app #schedule-planner :is(.tablewrap,.master-match-scroll,.plan-stage-mini-row,.plan-time-match,.plan-time-totals,.plan-stage-overview,.plan-time-match-info,.plan-time-brief,.plan-time-range),
body:not(:has(#master-sidebar))>main#app :is(.tablewrap,.master-match-scroll,.plan-stage-mini-row,.plan-time-match,.plan-time-totals,.plan-stage-overview,.plan-time-match-info,.plan-time-brief,.plan-time-range){color:var(--skin-ink)}

body:has(#master-sidebar) main#app :is(.tablewrap,.master-match-scroll),
body:has(#master-sidebar) main#app #schedule-planner :is(.tablewrap,.master-match-scroll),
body:not(:has(#master-sidebar))>main#app :is(.tablewrap,.master-match-scroll){background-color:var(--skin-inset);background-image:none;border-color:var(--skin-line)}

body.score-desk-standalone #scoreboardView .pinned-controls :is(.result-table,.result-table-wrap),
body.score-desk-standalone #scoreboardView>.control-stack :is(.result-table,.result-table-wrap),
body.score-desk-standalone #eventMatchNav :is(.result-table,.result-table-wrap){background-color:var(--skin-inset);background-image:none;color:var(--skin-ink);border-color:var(--skin-line)}

body.score-desk-standalone #scoreboardView .pinned-controls .timer-controls .button.start span,
body.score-desk-standalone #scoreboardView>.control-stack .timer-controls .button.start span,
body.score-desk-standalone #eventMatchNav .timer-controls .button.start span{color:inherit}

body.score-desk-standalone>#app,
body.event-terminal-mode>#app{background-color:var(--skin-canvas);background-image:none}

body.score-desk-standalone #scoreDeskStandaloneHeader .update-status p{color:var(--skin-ink);background-color:var(--skin-surface);background-image:none;border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(.plan-pairing-field,.output-meta),
body:has(#master-sidebar) main#app #schedule-planner :is(.plan-pairing-field,.output-meta),
body:not(:has(#master-sidebar))>main#app :is(.plan-pairing-field,.output-meta){color:var(--skin-ink)}

body:has(#master-sidebar) main#app :is(.preview-placeholder,#drop-end),
body:has(#master-sidebar) main#app #schedule-planner :is(.preview-placeholder,#drop-end),
body:not(:has(#master-sidebar))>main#app :is(.preview-placeholder,#drop-end){color:var(--skin-muted);background-color:var(--skin-inset);background-image:none;border-color:var(--skin-line)}

body:has(#master-sidebar) main#app :is(.live-preview-box,.terminal-thumbnail,.preview),
body:has(#master-sidebar) main#app #schedule-planner :is(.live-preview-box,.terminal-thumbnail,.preview),
body:not(:has(#master-sidebar))>main#app :is(.live-preview-box,.terminal-thumbnail,.preview){background-color:var(--skin-inset);background-image:none;border-color:var(--skin-line)}

body.event-terminal-mode #checkinView :is(#checkPublishState,#eventCheckinFeedback){color:var(--skin-muted);background-color:var(--skin-inset);background-image:none;border-color:var(--skin-line)}

body.event-terminal-mode #checkinView #eventCheckinFeedback[data-error=true]{color:#F2CE82;background-color:#30291A;border-color:#9D8046}

body:has(#master-sidebar) main#app,
body:has(#master-sidebar) main#app #schedule-planner,
body:not(:has(#master-sidebar))>main#app,
body.event-terminal-mode #checkinView,
body.score-desk-standalone #scoreboardView .pinned-controls,
body.score-desk-standalone #scoreboardView>.control-stack,
body.score-desk-standalone #eventMatchNav,
body:has(#master-sidebar)>#dialog,
body:has(#master-sidebar)>.plan-dialog,
body:has(#master-sidebar)>.plan-pairing-popover,
body:has(#master-sidebar)>dialog.manual-history-dialog,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog),
body.event-terminal-mode>dialog,
body.score-desk-standalone>dialog{color-scheme:dark}

body:has(#master-sidebar) main#app :is(input,textarea)::placeholder,
body:has(#master-sidebar) main#app #schedule-planner :is(input,textarea)::placeholder,
body:not(:has(#master-sidebar))>main#app :is(input,textarea)::placeholder,
body.event-terminal-mode #checkinView :is(input,textarea)::placeholder,
body.score-desk-standalone #scoreboardView .pinned-controls :is(input,textarea)::placeholder,
body.score-desk-standalone #scoreboardView>.control-stack :is(input,textarea)::placeholder,
body.score-desk-standalone #eventMatchNav :is(input,textarea)::placeholder,
body:has(#master-sidebar)>#dialog :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.plan-dialog :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.plan-pairing-popover :is(input,textarea)::placeholder,
body:has(#master-sidebar)>dialog.manual-history-dialog :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) :is(input,textarea)::placeholder,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) :is(input,textarea)::placeholder,
body.event-terminal-mode>dialog :is(input,textarea)::placeholder,
body.score-desk-standalone>dialog :is(input,textarea)::placeholder{color:var(--skin-muted);opacity:1}

body:has(#master-sidebar) main#app .file-button:has(input:disabled),
body:has(#master-sidebar) main#app #schedule-planner .file-button:has(input:disabled),
body:not(:has(#master-sidebar))>main#app .file-button:has(input:disabled),
body.event-terminal-mode #checkinView .file-button:has(input:disabled),
body.score-desk-standalone #scoreboardView .pinned-controls .file-button:has(input:disabled),
body.score-desk-standalone #scoreboardView>.control-stack .file-button:has(input:disabled),
body.score-desk-standalone #eventMatchNav .file-button:has(input:disabled),
body:has(#master-sidebar)>#dialog .file-button:has(input:disabled),
body:has(#master-sidebar)>.plan-dialog .file-button:has(input:disabled),
body:has(#master-sidebar)>.plan-pairing-popover .file-button:has(input:disabled),
body:has(#master-sidebar)>dialog.manual-history-dialog .file-button:has(input:disabled),
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) .file-button:has(input:disabled),
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) .file-button:has(input:disabled),
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) .file-button:has(input:disabled),
body.event-terminal-mode>dialog .file-button:has(input:disabled),
body.score-desk-standalone>dialog .file-button:has(input:disabled){background-color:#131313;color:#9D9D9D;border-color:#474747;cursor:not-allowed}

body:has(#master-sidebar) main#app .file-button input:disabled,
body:has(#master-sidebar) main#app #schedule-planner .file-button input:disabled,
body:not(:has(#master-sidebar))>main#app .file-button input:disabled,
body.event-terminal-mode #checkinView .file-button input:disabled,
body.score-desk-standalone #scoreboardView .pinned-controls .file-button input:disabled,
body.score-desk-standalone #scoreboardView>.control-stack .file-button input:disabled,
body.score-desk-standalone #eventMatchNav .file-button input:disabled,
body:has(#master-sidebar)>#dialog .file-button input:disabled,
body:has(#master-sidebar)>.plan-dialog .file-button input:disabled,
body:has(#master-sidebar)>.plan-pairing-popover .file-button input:disabled,
body:has(#master-sidebar)>dialog.manual-history-dialog .file-button input:disabled,
body:has(#master-sidebar)>.remote-dialog:has(#terminal-name) .file-button input:disabled,
body:has(#master-sidebar)>.remote-dialog:has(#assigned-current) .file-button input:disabled,
body:has(#master-sidebar)>.remote-dialog:is(.master-manual-dialog,.manual-history-dialog,.master-progress-dialog) .file-button input:disabled,
body.event-terminal-mode>dialog .file-button input:disabled,
body.score-desk-standalone>dialog .file-button input:disabled{cursor:inherit}

body:has(#master-sidebar) main#app .plan-stage.editing,
body:has(#master-sidebar) main#app #schedule-planner .plan-stage.editing,
body:not(:has(#master-sidebar))>main#app .plan-stage.editing{border-color:var(--skin-green);box-shadow:0 0 0 1px var(--skin-green)}

body:has(#master-sidebar) main#app :is(.tabs button.active:disabled,.plan-pairing-option:has(input:disabled)),
body:has(#master-sidebar) main#app #schedule-planner :is(.tabs button.active:disabled,.plan-pairing-option:has(input:disabled)),
body:not(:has(#master-sidebar))>main#app :is(.tabs button.active:disabled,.plan-pairing-option:has(input:disabled)){color:#9D9D9D;background-color:#131313;border-color:#474747}

body:has(#master-sidebar)>.master-drag-ghost{color:var(--skin-ink);background-color:var(--skin-surface);border-color:var(--skin-control);border-radius:var(--skin-card-radius)}

body.score-desk-standalone #scoreboardView .pinned-controls .simple-match-list tbody tr:hover,
body.score-desk-standalone #scoreboardView>.control-stack .simple-match-list tbody tr:hover,
body.score-desk-standalone #eventMatchNav .simple-match-list tbody tr:hover{background-color:var(--skin-hover);color:var(--skin-ink)}

body.score-desk-standalone #scoreboardView .pinned-controls .simple-match-list tbody tr.is-current:hover,
body.score-desk-standalone #scoreboardView>.control-stack .simple-match-list tbody tr.is-current:hover,
body.score-desk-standalone #eventMatchNav .simple-match-list tbody tr.is-current:hover{background-color:#B1B1B130;color:var(--skin-ink)}

/* Operator preview chrome; the embedded output retains its own presentation. */
body:has(#master-sidebar)>dialog.terminal-preview-dialog,body:has(#master-sidebar)>dialog.terminal-preview-dialog>.dialog-head,body:has(#master-sidebar)>dialog.terminal-preview-dialog>footer{background:#1D1D1D!important;color:#E8E8E8!important;border-color:#3B3B3B!important}
/* Compact controls preserve readable labels and focus outlines. */
body.event-terminal-mode #checkinView .event-checkin-toggle{font-family:'MiSans VF',sans-serif;font-size:14px;min-height:40px}
body.event-terminal-mode #checkinView .event-checkin-team-card button{width:auto;min-height:40px}
body.event-terminal-mode #teamLibraryDialog{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
body:has(#master-sidebar) dialog.assignment-dialog{width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
body:has(#master-sidebar) dialog.assignment-dialog .assignment-columns{gap:16px}
body:has(#master-sidebar) #schedule-planner input[type=number]{max-width:82px}
body:has(#master-sidebar) #schedule-planner .plan-field>span{white-space:nowrap}
@media(max-width:700px){body:has(#master-sidebar) dialog.assignment-dialog .assignment-columns{grid-template-columns:minmax(0,1fr)}}
/* Keep the short match-number heading on one line; other columns retain flexible widths. */
body:has(#master-sidebar) #app .master-match-list .match-number-col{width:68px}
body:has(#master-sidebar) #app .master-match-list thead th:first-child{white-space:nowrap;overflow-wrap:normal}

/* Match detail hierarchy: score first, compact auxiliary fields. */
body:has(#master-sidebar) .master-manual-dialog .manual-score-banner{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:16px;background:#272727;border-radius:8px;font-family:'MiSans VF',sans-serif}
body:has(#master-sidebar) .master-manual-dialog .manual-score-banner>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
body:has(#master-sidebar) .master-manual-dialog .manual-score-banner span{overflow-wrap:anywhere;font-size:16px}
body:has(#master-sidebar) .master-manual-dialog .manual-score-banner strong{font-size:32px;line-height:1;font-variant-numeric:tabular-nums}
body:has(#master-sidebar) .master-manual-dialog .manual-counter-row input[type=number]{width:76px;max-width:100%;min-width:0}
body:has(#master-sidebar) .master-manual-dialog :is(.manual-field-YellowCards,.manual-field-RedCards,.manual-field-Timeouts){font-size:13px}
@media(max-width:600px){body:has(#master-sidebar) .master-manual-dialog .manual-score-banner span{font-size:14px}body:has(#master-sidebar) .master-manual-dialog .manual-score-banner strong{font-size:26px}}
/* Keep the computed score readable beside its adjustment control. */
body:has(#master-sidebar) .master-manual-dialog .manual-field-Score label{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
body:has(#master-sidebar) .master-manual-dialog .manual-field-Score input[type=number]{flex:0 0 76px}
body:has(#master-sidebar) .master-manual-dialog .manual-total-action{margin-top:0;max-width:100%;white-space:normal}
