/* All overrides are screen-only. Light mode retains the original event design. */
#allstarsAppearanceControl{display:inline-flex;align-items:center;flex:0 0 auto;vertical-align:middle;gap:.5rem;margin:.25rem .5rem;max-width:100%}
#allstarsAppearance{font:600 14px/1.2 system-ui;min-height:42px;padding:9px 13px;border:1px solid #81777b;border-radius:9px;background:#fff;color:#211d20;cursor:pointer;white-space:nowrap;width:auto}
#allstarsAppearance:focus-visible{outline:3px solid #e8a0b4;outline-offset:3px}
.allstars-appearance-fallback{display:flex!important;justify-content:flex-end;position:relative;margin:0!important;padding:8px 16px;background:transparent;z-index:2}
@media screen{
html[data-allstars-theme=dark]{color-scheme:dark;background:#000!important;color:#fff!important;--bg:#000;--background:#000;--surface:#111;--panel:#111;--card:#111;--text:#fff;--ink:#fff;--muted:#ccc;--line:#484145;--border:#484145;--accent:#750d28;--primary:#750d28}
html[data-allstars-theme=dark] body{background:#000!important;color:#fff!important}
html[data-allstars-theme=dark] :where(main,header,footer,nav,aside,section,article,div,span,p,label,strong,small,h1,h2,h3,h4,h5,h6,summary,legend,fieldset,form,table,thead,tbody,tr,th,td,ul,ol,li,details,pre,code,a){color:inherit!important}
html[data-allstars-theme=dark] :where(main,header,footer,nav,form,div,span,section,article,aside,table,thead,tbody,tr,th,td,details,summary,fieldset,pre,code){background-color:transparent!important;border-color:#484145!important;box-shadow:none!important}
html[data-allstars-theme=dark] :where(.panel,.card,.row,.tile,.criterion,.criteria,.summary,.scorecard,.notice,.dialog,dialog,[role=dialog],.modal,.popover,.dropdown,.table-wrap,#panel,#sync,#card,#conflict,#staffPanel,#activePanel,#signedIn,#signIn){background-color:#111!important;color:#fff!important;border-color:#484145!important;background-image:none!important}
html[data-allstars-theme=dark] :where(.warning,.error,.danger,[role=alert]){color:#ffbdad!important}
html[data-allstars-theme=dark] :where(.success,.ok){color:#a6e4ba!important}
html[data-allstars-theme=dark] :where(.muted,.note,.footnote,.eyebrow,small){color:#ccc!important}
html[data-allstars-theme=dark] a{color:#fff!important;text-decoration-color:#d87b95!important;text-underline-offset:3px}
html[data-allstars-theme=dark] a:hover{color:#ffb5c9!important}
html[data-allstars-theme=dark] :where(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),textarea,select,option){background:#161416!important;color:#fff!important;border-color:#81777b!important}
html[data-allstars-theme=dark] input::placeholder,html[data-allstars-theme=dark] textarea::placeholder{color:#bfb6bc!important;opacity:1}
html[data-allstars-theme=dark] :where(input[type=range],input[type=checkbox],input[type=radio],progress){accent-color:#a41d42!important}
html[data-allstars-theme=dark] :where(button,input[type=submit],input[type=button],.button,.btn){background:#750d28!important;color:#fff!important;border-color:#b84e6d!important;background-image:none!important}
html[data-allstars-theme=dark] :where(button.secondary,button.ghost,.button.secondary,.btn-secondary,#allstarsAppearance){background:#191619!important;color:#fff!important;border-color:#81777b!important}
html[data-allstars-theme=dark] :where([aria-selected=true],[aria-current]:not([aria-current=false]),button[aria-pressed=true]:not(#allstarsAppearance),.selected,.active,.is-active){background-color:#750d28!important;color:#fff!important;border-color:#d77995!important}
html[data-allstars-theme=dark] :where(button:disabled,input:disabled,textarea:disabled,select:disabled){opacity:.65!important}
html[data-allstars-theme=dark] :where(input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible){outline:3px solid #e8a0b4!important;outline-offset:3px}
html[data-allstars-theme=dark] ::selection{background:#a41d42;color:#fff}
html[data-allstars-theme=dark] iframe{background:#000!important;border-color:#484145!important}
html[data-allstars-theme=dark] audio{color-scheme:dark}
html[data-allstars-theme=dark] hr{border-color:#484145!important}
}
@media(max-width:600px){#allstarsAppearance{font-size:12px;min-height:38px;padding:8px}#allstarsAppearanceControl{margin:.2rem}header:has(#allstarsAppearanceControl){flex-wrap:wrap;gap:8px} .allstars-appearance-fallback{padding:6px 10px}}
@media print{#allstarsAppearanceControl{display:none!important}}

@media screen {
  /* Pair dark text rules with an opaque surface on controls and status panels. */
  html[data-allstars-theme=dark] :where(
    mark, output, .pill, .primeDates span,
    .divisionCards, .divisionCompletionBar, .stage-queue-panel, .result,
    .financial-summary, .readiness-summary, .deadlineCard, .workspaceBar,
    .workspaceEmpty, .scoreSaveStatus, .readinessSummary, .readinessManual,
    .deviceCheck, .rehearsalNotice, .feedbackRecovery, .wristbandEntry,
    .wristbandSummary, .counts p, .paper-panel
  ) {
    background-color: #111 !important;
    background-image: none !important;
    color: #fff !important;
  }
  html[data-allstars-theme=dark] :where(
    #message, #notice, #liveNotice, #networkStatus.disconnected, .stage-warning,
    .warning, .offline, [role=alert]
  ) {
    background-color: #26171b !important;
    background-image: none !important;
    color: #ffe5dc !important;
  }
  html[data-allstars-theme=dark] :where(.current, .entranceChoice[aria-pressed=true]) {
    background-color: #750d28 !important;
    color: #fff !important;
  }
  html[data-allstars-theme=dark] label {
    background-color: #000 !important;
  }
  html[data-allstars-theme=dark] input::file-selector-button {
    background-color: #191619 !important;
    border-color: #81777b !important;
    color: #fff !important;
  }
}
