/* Result fields scroll locally. Stage selection stays separate from the removed tools. */
body.viewer-body #results-pane{grid-template-rows:minmax(0,1fr);overflow-y:auto;min-width:0}
body.viewer-body #viewer-results-content{min-width:0;max-width:100%;overflow:visible}
body.viewer-body #viewer-results-content .design-results-toolbar{justify-content:flex-end;min-height:40px;margin:0 0 6px}
body.viewer-body #viewer-results-content .design-stage-picker{max-width:100%}
body.viewer-body #viewer-results-content .design-stage-picker select{height:40px;font-size:16px;max-width:100%}
body.viewer-body #viewer-results-content .viewer-result-field{display:block;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;line-height:1.5;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;overscroll-behavior-y:auto;scrollbar-width:thin}
body.viewer-body #viewer-results-content .viewer-result-field:focus-visible{outline:2px solid #00E5BE;outline-offset:-2px}
body.viewer-body #viewer-results-content .viewer-result-field .fixed-name-content{animation:none!important;transform:none!important}
body.viewer-body #viewer-results-content .knockout-placements{margin:0;min-width:0;max-inline-size:min(100%,1040px)}
body.viewer-body #viewer-results-content .knockout-placements .tablewrap{width:100%;max-width:100%;overflow:visible;overscroll-behavior-y:auto}
body.viewer-body #viewer-results-content .knockout-placements-table{width:100%;min-width:0;table-layout:fixed}
body.viewer-body #viewer-results-content .knockout-placements-table :is(th,td){box-sizing:border-box;padding:8px 5px;min-width:0;vertical-align:top}
body.viewer-body #viewer-results-content .knockout-placements-table thead th{background:#202020!important;color:#BDBDBD!important;font-weight:500;white-space:nowrap}
body.viewer-body #viewer-results-content .knockout-placements-table tbody :is(th,td){background:transparent!important;color:#EDEDED!important}
body.viewer-body #viewer-results-content .knockout-placements-table tbody tr.placement-podium,
body.viewer-body #viewer-results-content .knockout-placements-table tbody tr.placement-podium>:is(th,td){background:#00E5BE!important;color:#111318!important}
@media(max-width:600px){body.viewer-body #viewer-results-content .knockout-placements-table :is(th,td){padding:7px 3px;font-size:12px}body.viewer-body #viewer-results-content .knockout-placements-table thead th[data-placement-panel="stats"]{font-size:11px}}

/* 053: keep the original native picker outside the independently scrolling results body. */
body.viewer-body #results-pane:has(>#viewer-results-content>.design-results:is([data-results-type="knockout"],[data-results-type="final"],[data-results-type="bronze"],[data-results-type="placements"]):only-child){overflow:hidden}
body.viewer-body #viewer-results-content:has(>.design-results:is([data-results-type="knockout"],[data-results-type="final"],[data-results-type="bronze"],[data-results-type="placements"]):only-child){display:grid;grid-template-rows:minmax(0,1fr);height:100%;min-height:0;overflow:hidden}
body.viewer-body #viewer-results-content>.design-results:is([data-results-type="knockout"],[data-results-type="final"],[data-results-type="bronze"],[data-results-type="placements"]):only-child{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0}
body.viewer-body #viewer-results-content>.design-results:is([data-results-type="knockout"],[data-results-type="final"],[data-results-type="bronze"],[data-results-type="placements"]):only-child>.design-results-body{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain}
body.viewer-body #viewer-results-content>.design-results:is([data-results-type="knockout"],[data-results-type="final"],[data-results-type="bronze"],[data-results-type="placements"]):only-child>.design-results-body:has(>.design-bracket-scroll){overflow:hidden}
body.viewer-body #viewer-results-content>.design-results:is([data-results-type="knockout"],[data-results-type="final"],[data-results-type="bronze"],[data-results-type="placements"]):only-child>.design-results-body>.design-bracket-scroll{box-sizing:border-box;height:100%;max-height:100%;min-height:0;overflow:auto}
body.viewer-body #viewer-results-content .design-bracket-headings{position:sticky;top:0;z-index:3;height:36px;min-height:36px;background:#101010;pointer-events:none}
body.viewer-body #viewer-results-content .design-bracket-headings>.design-bracket-heading{top:2px}

/* Shared result metrics: the same glyphs and wedges on the control and audience pages. */
html body .standings-metric-icon,
html body .knockout-placements .standings-metric-icon{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;width:1.6em;height:1.6em;min-width:1.6em;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:600;line-height:1;vertical-align:middle;cursor:help}
html body .standings-team-progress{display:inline-flex;width:24px;height:24px;vertical-align:middle;cursor:help}
html body .standings-team-progress>svg{display:block;width:100%;height:100%;overflow:visible}
html body .standings-team-progress path{stroke:#202020;stroke-width:1.2;stroke-linejoin:round}
html body .standings-team-progress .is-complete{fill:#00E5BE}
html body .standings-team-progress .is-pending{fill:#555555}
html body .standings-progress-icon{width:20px;height:20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.4}
html body :is(.standings-team-entry,.standings-team-progress-entry){display:inline-flex;box-sizing:border-box;align-items:center;justify-content:flex-start;min-width:0;max-width:100%;min-height:28px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font:inherit!important;text-align:inherit;cursor:pointer}
html body .standings-team-entry>span{display:block;min-width:0;max-width:100%;overflow:auto;white-space:nowrap;scrollbar-width:thin}
html body .standings-team-progress-entry{justify-content:center}
html body :is(.standings-team-entry,.standings-team-progress-entry):focus-visible{outline:2px solid #00E5BE!important;outline-offset:3px}
html body .standings-stage-progress{position:relative;min-width:0;margin:6px 0 12px;overflow:visible;z-index:4}
html body .standings-stage-progress>.match-progress{width:100%;min-width:0;margin:0!important;padding:8px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body .standings-stage-progress .match-progress-tooltip{top:calc(100% + 5px);bottom:auto}
html body #app .master-stage-results .master-standings-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
html body #app .master-stage-results .master-standings-picker{display:flex;align-items:center;margin-left:auto}
html body #app .master-stage-results .master-standings-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html body #app .master-stage-results .master-standings-picker select{width:auto;min-width:150px;background:#242424!important;color:#EFEFEF!important;border:1px solid #505050!important;padding:8px 30px 8px 12px}
html body #app .standings-stage-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex-wrap:wrap}
html body #app .master-stage-results .standings-group{margin-top:8px}
html body #app .standings-ranking{table-layout:fixed;width:100%}
html body #app .standings-ranking .dr-rank{width:9%}
html body #app .standings-ranking .dr-name{width:43%}
html body #app .standings-ranking .dr-metric{width:12%}
html body #app .standings-ranking.has-team-progress .dr-name{width:35%}
html body #app .standings-ranking.has-team-progress .dr-metric{width:12%}
html body #app .standings-ranking .dr-progress{width:8%}
html body #app .standings-ranking :is(th,td){box-sizing:border-box;min-width:0;padding:9px 10px;vertical-align:middle}
html body:has(#master-sidebar) main#app>.master-knockout-view{grid-template-rows:auto auto minmax(0,1fr)}
body.viewer-body #viewer-results-content>.design-results:is([data-results-type="knockout"],[data-results-type="final"],[data-results-type="bronze"]):only-child{grid-template-rows:auto auto minmax(0,1fr)}
@media(max-width:600px){html body #app .standings-ranking :is(th,td){padding:8px 4px}html body #app .standings-ranking .dr-name{width:35%}html body #app .standings-ranking .dr-metric{width:14%}html body #app .standings-ranking.has-team-progress .dr-name{width:31%}html body #app .standings-ranking.has-team-progress .dr-metric{width:13%}}

/* The qualification cut line shares one meaning in master and spectator tables. */
html body :is(.standings-ranking,.design-ranking) tr[data-advancement="provisional"]>td{background:rgba(0,214,181,.10)!important}
html body :is(.standings-ranking,.design-ranking) tr[data-advancement="confirmed"]>td{background:rgba(0,214,181,.18)!important}
html body :is(.standings-ranking,.design-ranking) tr:is([data-advancement="provisional"],[data-advancement="confirmed"])>td:first-child{box-shadow:inset 3px 0 #00D6B5;color:#00E5BE!important}
html body :is(.standings-ranking,.design-ranking) tr[data-advancement="tied"]>td:first-child{box-shadow:inset 2px 0 #8F9694}

html body .standings-team-readonly{cursor:default}
