/* Compact shared table geometry for scorer schedule and lower-right list. */
html body.score-desk-standalone :is(.result-table-wrap:has(>table.simple-match-list),.simple-schedule-wrap){min-width:0;max-width:100%;max-height:48vh;overflow:auto!important;overscroll-behavior-x:contain;overscroll-behavior-y:none;position:relative}
html body.score-desk-standalone :is(table.simple-match-list,table.simple-schedule-table){display:table;width:100%;min-width:820px!important;max-width:none;table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:'MiSans VF',sans-serif;font-size:12px;line-height:1.4}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) col.match-order{width:62px}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) col.match-stage{width:110px}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) col.match-planned{width:130px}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) :is(col.match-red,col.match-blue){width:150px}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) col.match-score{width:68px}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) col.match-state{width:70px}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) col.match-actions{width:112px}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) thead{display:table-header-group;position:sticky;top:0;z-index:3;background:#242727;width:auto;height:auto;clip:auto;clip-path:none;overflow:visible}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) tbody{display:table-row-group}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) tr{display:table-row}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) :is(th,td){display:table-cell;padding:7px 8px!important;vertical-align:middle;border-bottom:1px solid #3b3b3b;white-space:nowrap;min-width:0}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) thead th{position:sticky;top:0;z-index:2;background:#242727;color:#d8dfdc;font-weight:500}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) .schedule-cell{max-width:100%;min-width:0;overflow-x:auto;white-space:nowrap;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;font-variant-numeric:tabular-nums}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) .match-red{color:#ff9198}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) .match-blue{color:#8ebaff}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) tr.is-current{box-shadow:inset 3px 0 #00e5be}
html body.score-desk-standalone .simple-match-list td.match-actions-cell button{min-height:36px;min-width:42px;padding:5px!important;margin:0;font-size:12px;touch-action:manipulation}
html body.score-desk-standalone .simple-match-list [data-load-hint]{display:inline-block;margin-left:4px}
html body.score-desk-standalone .score-standings-dialog{width:min(1100px,96vw);max-width:96vw;max-height:90vh;overflow:auto}
html body.score-desk-standalone #scoreStandingsBtn{margin-inline-start:8px}

/* 037: the full-schedule dialog owns its shell; shared result dialogs stay unchanged. */
html body.score-desk-standalone dialog.score-schedule-dialog{box-sizing:border-box;width:min(1120px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-block-size:calc(100dvh - 32px);padding:16px;border:1px solid #3B3B3B;border-radius:8px;background:#1D1D1D;color:#EFEFEF;overflow:hidden}
html body.score-desk-standalone dialog.score-schedule-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
html body.score-desk-standalone dialog.score-schedule-dialog>h2{margin:0;font-size:18px;line-height:1.4;color:inherit}
html body.score-desk-standalone dialog.score-schedule-dialog>[data-schedule-list]{display:flex;flex-direction:column;min-width:0;min-height:0}
html body.score-desk-standalone dialog.score-schedule-dialog .simple-schedule-wrap{min-width:0;min-height:0;max-height:min(64dvh,calc(100dvh - 10rem));overflow:auto!important;background:#1D1D1D}
html body.score-desk-standalone dialog.score-schedule-dialog>[data-schedule-close]{justify-self:end;min-height:36px;margin:0;padding:6px 14px;border:1px solid #4A4A4A;border-radius:6px;background:#272727;color:#EFEFEF}

/* 41: completion stays beside this list title, without a separate summary row. */
html body.score-desk-standalone .result-history-panel>.panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-block-end:8px;padding-block:6px}
html body.score-desk-standalone .result-history-panel>.panel-header h2{margin:0;line-height:1.35}
html body.score-desk-standalone .result-history-panel>.panel-header>.result-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
html body.score-desk-standalone .result-history-panel>.panel-header #resultSummary{margin:0;padding:0;white-space:nowrap;font-variant-numeric:tabular-nums}

/* Running retains a static tint; upcoming rows use text instead of a pulsing fill. */
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr.is-running>td{background:#123D34!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr.is-running>td:first-child{box-shadow:inset 3px 0 #00E5BE}

/* 045: both scorer tables use the same bold team-name weight as the full-plan preview. */
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) :is(.schedule-cell.match-red,.schedule-cell.match-blue){font-weight:700!important}

/* A single action per row leaves the match number and Load close together. */
html body.score-desk-standalone :is(table.simple-match-list,table.simple-schedule-table){min-width:760px!important}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) col.match-order{width:46px}
html body.score-desk-standalone .simple-match-list col.match-actions{width:70px}
html body.score-desk-standalone .simple-match-list [data-load-hint]{margin-left:0}
html body.score-desk-standalone .simple-match-list tbody tr[data-match-list-id]{cursor:pointer}
html body.score-desk-standalone .simple-match-list tbody tr[data-match-list-id]:focus-visible{outline:2px solid #8DC9B9;outline-offset:-2px}

/* Team identity stays in the pill; row state owns every readable field colour. */
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr :is(td,.schedule-cell,.schedule-cell *){color:#EFEFEF!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr>td{animation:none!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr>td::before{content:none!important;animation:none!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody td:has(>.schedule-cell:is(.match-red,.match-blue)){position:relative;padding-inline-start:19px!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody td:has(>.schedule-cell:is(.match-red,.match-blue))::after{content:"";position:absolute;inset-inline-start:8px;top:50%;transform:translateY(-50%);width:4px;height:14px;border-radius:999px;pointer-events:none}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody td:has(>.schedule-cell.match-red)::after{background:#FF4D64}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody td:has(>.schedule-cell.match-blue)::after{background:#4A90FF}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr.dt-waiting.dt-next-two:not(.is-current):not([data-status="finished"]) :is(td,.schedule-cell,.schedule-cell *){color:#00E5BE!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr[data-status="finished"]>td{background:#242424!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr[data-status="finished"]{box-shadow:none!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr:is([data-status="finished"],[data-status="history"]) :is(td,.schedule-cell,.schedule-cell *){color:#979E9A!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr[data-status="finished"] button{color:#B6BBB8!important;background:#2E2E2E!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr.is-current:not([data-status="finished"])>td{background:var(--skin-green,#00D6B5)!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr.is-current:not([data-status="finished"]) :is(td,.schedule-cell,.schedule-cell *){color:#111318!important}
html body.score-desk-standalone :is(#app,.score-schedule-dialog) :is(.simple-match-list,.simple-schedule-table) tbody tr.dt-waiting.dt-next-two [data-cell="state"]{display:block;padding:0;border-radius:0;background:transparent}

/* The list header uses the shared single rail in a quieter scale. */
body.score-desk-standalone .result-history-panel>.panel-header>.scorer-match-progress{flex:0 1 220px;min-width:110px;margin-inline-start:auto;overflow:visible}
body.score-desk-standalone .scorer-match-progress[hidden]{display:none!important}
body.score-desk-standalone #scorerMatchProgress>.match-progress{display:block;margin:0;padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none;overflow:visible}
body.score-desk-standalone #scorerMatchProgress .match-progress-line{display:block;position:relative;min-width:0;overflow:visible}
body.score-desk-standalone #scorerMatchProgress .match-progress-rail{height:6px;border-radius:2px;background:#303030;overflow:visible}
body.score-desk-standalone #scorerMatchProgress .match-progress-track.actual{height:100%;gap:1px;border-radius:2px;background:#303030}
body.score-desk-standalone #scorerMatchProgress .match-progress-cell{background:#303030}
body.score-desk-standalone #scorerMatchProgress .actual .match-progress-cell i{background:#00E5BE}
body.score-desk-standalone #scorerMatchProgress .match-progress-tooltip{background:#202020;color:#F2F2F2;border-color:#555}

/* Definition keeps a fixed readable viewport; extra text moves inside, never the column. */
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) col.match-stage{width:140px}
html body.score-desk-standalone :is(.simple-match-list,.simple-schedule-table) :is([data-cell="stage"],td:nth-child(2) .schedule-cell){min-height:1.4em}

/* Load actions keep white labels in every row state; unmet conditions open a notice. */
html body.score-desk-standalone :is(#app,.score-schedule-dialog) .simple-match-list tbody tr td.match-actions-cell button[data-list-load]{color:#FFFFFF!important;background:#2E2E2E!important;opacity:1!important}
html body.score-desk-standalone .simple-match-list button[data-list-load]:not(:disabled){cursor:pointer}
html body.score-desk-standalone .simple-match-list button[data-list-load][aria-busy="true"]{cursor:progress}

/* 081: all eight scorer columns fit the right workspace; long fields keep their own marquee. */
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel table.simple-match-list{--match-order-col:36px;--match-action-col:44px;--match-score-col:40px;--match-state-col:48px;--match-fixed-cols:168px;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed;font-size:12px}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list col.match-order{width:var(--match-order-col)}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list col.match-actions{width:var(--match-action-col)}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list :is(col.match-red,col.match-blue){width:calc((100% - var(--match-fixed-cols)) * .22)}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list col.match-stage{width:calc((100% - var(--match-fixed-cols)) * .27)}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list col.match-planned{width:calc((100% - var(--match-fixed-cols)) * .29)}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list col.match-score{width:var(--match-score-col)}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list col.match-state{width:var(--match-state-col)}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list :is(th,td){box-sizing:border-box;min-width:0;padding:6px 4px!important;font-size:inherit}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list .schedule-cell{width:100%;max-width:100%;min-width:0}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list tbody td:has(>.schedule-cell:is(.match-red,.match-blue)){padding-inline-start:14px!important}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list tbody td:has(>.schedule-cell:is(.match-red,.match-blue))::after{inset-inline-start:4px}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list [data-load-hint]{display:block;width:100%;min-width:0;max-width:100%;margin:0}
html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list td.match-actions-cell button[data-list-load]{box-sizing:border-box;width:100%;min-width:32px;max-width:40px;min-height:32px;padding:4px 2px!important;font-size:inherit;line-height:1.4}
@container operator-settings (max-width:620px){
 html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel table.simple-match-list{--match-order-col:30px;--match-action-col:38px;--match-score-col:34px;--match-state-col:42px;--match-fixed-cols:144px;font-size:11px}
 html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list :is(th,td){padding-inline:3px!important}
 html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list td.match-actions-cell button[data-list-load]{min-width:30px;min-height:30px}
 html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list tbody td:has(>.schedule-cell:is(.match-red,.match-blue)){padding-inline-start:12px!important}
 html body.score-desk-standalone #scoreboardView>.control-stack>.result-history-panel .simple-match-list tbody td:has(>.schedule-cell:is(.match-red,.match-blue))::after{inset-inline-start:3px;width:3px}
}

/* 086: compact court browsing stays beside the list title; own court remains identifiable. */
html body.score-desk-standalone .result-history-panel>.panel-header>div:first-child{display:flex;align-items:center;gap:8px;min-width:0;flex:0 1 auto}
html body.score-desk-standalone .result-history-panel>.panel-header>div:first-child>h2{flex:0 0 auto}
html body.score-desk-standalone .score-court-tabs{display:flex;align-items:center;flex:1 1 auto;flex-wrap:nowrap;gap:4px;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}
html body.score-desk-standalone .score-court-tabs::-webkit-scrollbar{display:none}
html body.score-desk-standalone .score-court-tabs .score-court-tab{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;box-sizing:border-box;width:auto;min-width:76px;max-width:calc(10em + 36px);height:28px;min-height:28px;padding:4px 8px!important;margin:0;border:1px solid #555D59;border-radius:5px;background:transparent!important;color:#EFEFEF!important;box-shadow:none;font-family:"MiSans VF",sans-serif!important;font-size:12px!important;font-weight:700!important;line-height:1.3;cursor:pointer;transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease}
html body.score-desk-standalone .score-court-tabs .score-court-tab svg{display:block;flex:none;width:16px;height:16px}
html body.score-desk-standalone .score-court-tabs .score-court-tab>.score-court-tab-name{position:static;display:block;min-width:0;max-width:10em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:inherit;color:inherit}
html body.score-desk-standalone .score-court-tabs .score-court-tab.is-own{border-color:#00E5BE;color:#00E5BE!important}
html body.score-desk-standalone .score-court-tabs .score-court-tab.is-selected{border-color:#00E5BE;background:#00E5BE!important;color:#10211D!important}
html body.score-desk-standalone .score-court-tabs .score-court-tab:focus-visible{outline:2px solid #00E5BE;outline-offset:2px}
html body.score-desk-standalone .simple-match-list [data-court-claim-label]{display:block;max-width:100%;margin-block-start:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:1.25;font-weight:700;color:inherit}
html body.score-desk-standalone .simple-match-list [data-court-claim-label][hidden]{display:none!important}
@container operator-settings (max-width:620px){
 html body.score-desk-standalone .result-history-panel>.panel-header>div:first-child{gap:5px}
 html body.score-desk-standalone .score-court-tabs{gap:3px}
 html body.score-desk-standalone .score-court-tabs .score-court-tab{flex-basis:auto;width:auto;min-width:68px;height:26px;min-height:26px;padding:3px 6px!important}
 html body.score-desk-standalone .result-history-panel>.panel-header>.scorer-match-progress{flex-basis:150px;min-width:80px}
}
