/* Explicitly authorized small refinements, separate from palette-only rules. */
body.score-desk-standalone #moreMatchSettings>summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px 0;cursor:pointer;color:var(--skin-muted);border-radius:var(--skin-control-radius)}
body.score-desk-standalone #moreMatchSettings>summary::-webkit-details-marker{display:none}
body.score-desk-standalone #moreMatchSettings>summary::marker{content:''}
body.score-desk-standalone #moreMatchSettings>summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform 150ms ease,color 150ms ease}
body.score-desk-standalone #moreMatchSettings[open]>summary svg{transform:rotate(180deg)}
body.score-desk-standalone #moreMatchSettings>summary:is(:hover,:focus-visible){color:var(--skin-green);background-color:#B1B1B112}
body.score-desk-standalone #moreMatchSettings>summary:focus-visible{outline:2px solid var(--skin-green);outline-offset:2px}
/* One separator between time-range and details, rather than two adjacent rules. */
body:has(#master-sidebar) #schedule-planner .plan-time-range+.plan-time-list{border-top:0}
/* Keep table actions/numbers centered while names remain readable on their own alignment. */
body:has(#master-sidebar) #app .master-match-list :is(td:first-child,td:nth-child(2),.match-time-cell,td:last-child){text-align:center}
body:has(#master-sidebar) #app .master-match-list .match-select-actions{justify-content:center}
body:has(#master-sidebar) #app .standings-group :is(th,td):not(:nth-child(2)){text-align:center}
body:has(#master-sidebar) #app .standings-group :is(th,td):nth-child(2){text-align:left}
body.event-terminal-mode #checkinView .event-checkin-team-controls{gap:8px}
body.event-terminal-mode #checkinView .event-checkin-toggle{align-items:center}
@media(prefers-reduced-motion:reduce){body.score-desk-standalone #moreMatchSettings>summary svg{transition:none}}
/* Header and status keep their intrinsic heights in the existing flex column.
   Independent pane scrolling remains below them; no guessed fixed-header offset. */
body.score-desk-standalone #app>#scoreDeskStandaloneHeader{position:relative;inset:auto;flex:0 0 auto;z-index:2;align-items:center;background-color:var(--skin-surface);color:var(--skin-ink);border-color:var(--skin-line);box-shadow:none}
body.score-desk-standalone #app>.browser-workspace-feedback{position:relative;flex:0 0 auto;margin:0;z-index:1;white-space:normal;overflow-wrap:anywhere;line-height:1.5;background-color:var(--skin-inset);color:var(--skin-muted)}
body.score-desk-standalone #scoreboardView{padding-top:12px;min-height:0}
body.score-desk-standalone #scoreDeskStandaloneHeader .score-desk-standalone-actions{align-items:center}
body.score-desk-standalone #scoreDeskStandaloneHeader :is(button,.button){background-color:var(--skin-surface);color:var(--skin-ink);border-color:var(--skin-control);border-radius:var(--skin-control-radius)}
body.score-desk-standalone #scoreDeskStandaloneHeader .button.primary{background-color:var(--skin-green);color:var(--skin-canvas);border-color:var(--skin-green)}
body.score-desk-standalone #scoreDeskStandaloneHeader :is(button,.button):focus-visible{outline-color:var(--skin-green)}
body.score-desk-standalone #resultDetailDialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border-radius:var(--skin-panel-radius);background-color:var(--skin-surface);color:var(--skin-ink)}
body.score-desk-standalone #resultDetailDialog .result-dialog-card{display:flex;flex-direction:column;gap:12px;max-height:calc(100dvh - 32px);box-sizing:border-box;padding:16px;border:0;border-radius:var(--skin-panel-radius);background-color:var(--skin-surface);color:var(--skin-ink)}
body.score-desk-standalone #resultDetailDialog :is(.result-dialog-header,.result-dialog-actions){flex:0 0 auto;margin:0}
body.score-desk-standalone #resultDetailContent{display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--skin-control) var(--skin-surface);padding:2px 4px 2px 0;overflow-wrap:anywhere}
body.score-desk-standalone #resultDetailContent :is(h3,h4,p,dl,ul){margin:0}
body.score-desk-standalone #resultDetailContent h3{font-size:inherit;font-weight:500;line-height:1.5}
body.score-desk-standalone #resultDetailContent section{margin-top:12px;padding-top:12px;border-top:1px solid var(--skin-line)}
body.score-desk-standalone #resultDetailContent :is(h4,dt){font-weight:400;color:var(--skin-muted)}
body.score-desk-standalone #resultDetailContent .result-detail-score{font-size:28px;font-weight:600;line-height:1.3;color:var(--skin-green);font-variant-numeric:tabular-nums;margin:8px 0 12px}
body.score-desk-standalone #resultDetailContent .result-detail-fields{display:grid;gap:8px}
body.score-desk-standalone #resultDetailContent .result-detail-fields>div{display:grid;grid-template-columns:minmax(84px,.4fr) minmax(0,1fr);gap:12px;align-items:baseline}
body.score-desk-standalone #resultDetailContent dd{margin:0;font-variant-numeric:tabular-nums}
body.score-desk-standalone #resultDetailContent :is(li,p,dd){line-height:1.5}
body.score-desk-standalone #resultDetailContent :is(h4+ul,h4+p){margin-top:6px}
body.score-desk-standalone #resultDetailDialog .result-dialog-header :is(h2,span){margin:0;color:inherit}
body.score-desk-standalone #resultDetailDialog .result-dialog-header span{color:var(--skin-muted);font-weight:400}
/* Native summary remains the disclosure control; it sits below the disclosed fields. */
body.score-desk-standalone #moreMatchSettings{display:flex;flex-direction:column}
body.score-desk-standalone #moreMatchSettings>summary{order:1}
body.score-desk-standalone #scoreDeskStandaloneHeader .update-status{color:var(--skin-muted)}
/* Avoid a redundant inner outline inside the already framed current-checkin section. */
body.event-terminal-mode #checkinView #checkCurrent>.event-checkin-card{border:0}
/* File inputs are transparent overlays; the visible label needs its own keyboard ring. */
body.score-desk-standalone #scoreboardView .control-stack .file-button:focus-within,
body.score-desk-standalone>dialog .file-button:focus-within{outline:2px solid var(--skin-green);outline-offset:2px}
body:has(#master-sidebar) #schedule-planner .plan-pairing-option:has(input:focus-visible){outline-color:var(--skin-green)}
/* Dark operator surfaces; borders and white lines remain available. */
body:has(#master-sidebar) #master-sidebar :is(nav,.sidebar-links){background:#242424;color:#ECECEC}
body:has(#master-sidebar) .terminal-hover-preview{background:#242424;color:#ECECEC;border-color:#626262;box-shadow:0 14px 40px #0008}
body:has(#master-sidebar) .terminal-hover-preview .terminal-hover-title{color:#ECECEC;border-color:#626262}
body:has(#master-sidebar) .terminal-hover-preview .terminal-hover-body{background:#242424;color:#ECECEC}
body:has(#master-sidebar) .terminal-hover-preview .live-preview-box{background:#242424}
/* Retain the outer group panel; flatten the nested table surface. */
body:has(#master-sidebar) #app #team-group-card>.tablewrap{background:transparent;border:0;border-radius:0;box-shadow:none}
body:has(#master-sidebar) #app #team-group-card>.tabs{background:transparent;border:0;box-shadow:none}
/* Secondary copy on dark operator surfaces remains legible. */
body:has(#master-sidebar) #app :is(.operator-action-note,.help,.muted):not(:disabled):not(button *):not(a *),
body.event-terminal-mode #checkinView :is(.help,.muted):not(:disabled),
body.score-desk-standalone #scoreboardView :is(.help,.muted,.setting-hint):not(:disabled){color:#C5C5C5}
/* Headings in operator content sit on dark surfaces. */
body:has(#master-sidebar) main#app :is(h1,h2,h3){color:#EFEFEF}
