/* Dense coach roster: one appearance per row, details only on request. */
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20373c;background:#f4f6f5;font-size:14px;--navy:#17333a;--teal:#087a69;--muted:#71827f;--border:#dde6e1;--soft:#edf4f0;--gold:#9b702b}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid #cbdcd2;background:white;color:#275f50;border-radius:6px;padding:8px 10px;min-height:36px;font-size:12px;font-weight:600;line-height:1.35}button:hover{background:#f0f7f3}button:active{background:#e4f0e9}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #168970;outline-offset:2px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}input{min-width:0}input::placeholder{color:#7d8b86}button svg{vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px max(16px,calc((100vw - 1040px)/2));background:var(--navy);color:#fff;min-height:50px}.topbar small{font-size:8px;letter-spacing:.08em;color:#adc5c0}.topbar h1{font-size:13px;font-weight:600;line-height:1.4;margin-top:1px}#connection{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap}#connection::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}#connection.online{color:#a3e0c4}#connection.offline{color:#f0cd94}main{max-width:1072px;margin:auto;padding:10px 16px 20px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.stale-state{padding:9px 12px;margin-bottom:10px;border:1px solid #e8c17a;border-radius:6px;background:#fff4dd;color:#825a24;font-size:12px;line-height:1.5}.stale-state strong{display:block}
.event-card{margin-bottom:8px}.event-strip{display:flex;align-items:center;gap:8px;min-height:40px}.event-logo{width:32px;height:32px;object-fit:contain;flex-shrink:0}.event-heading{min-width:0;flex:1}.event-heading h2{font-size:13px;font-weight:650;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-heading small{display:block;color:#75857f;font-size:10px;line-height:1.4}.card-toggle{display:flex;align-items:center;gap:5px;flex-shrink:0;background:transparent;border-color:transparent;font-size:11px;padding:6px;min-height:36px}.card-toggle svg{width:17px;height:17px}
.personal-card{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 12px;padding:18px;background:white;border:1px solid var(--border);border-radius:8px}.personal-card h3{font-size:20px;margin-top:6px}.personal-card p:not(.eyebrow){font-size:13px;line-height:1.5;margin-top:5px}.personal-card small{display:block;max-width:330px;color:var(--muted);font-size:11px;line-height:1.5;margin-top:10px}.partner-logo{width:48px;height:48px;object-fit:contain;margin-top:10px}.qr-area{width:168px;flex-shrink:0;text-align:center;font-size:11px;line-height:1.5;color:var(--muted)}.qr-area img{display:block;width:168px;height:168px;background:white;image-rendering:pixelated}.qr-area button{display:block;margin:8px auto 0}.qr-area .qr-warning{font-size:10px!important;color:#8f6b2e!important}
.search-box{display:flex;align-items:center;gap:8px;padding:0 10px;height:36px;border:1px solid #d3dfd7;border-radius:6px;background:#fff;color:#7b8e82}.search-box svg{width:16px;height:16px}.search-box input{width:100%;border:0;background:transparent;padding:7px 0;color:var(--navy);font-size:14px}.search-box input:focus-visible{outline:none}.search-box:focus-within{outline:2px solid #168970;outline-offset:1px}.coach-filters{display:flex;gap:4px;margin-top:6px;border-bottom:1px solid var(--border)}.coach-filters button{display:flex;align-items:center;gap:6px;min-height:36px;padding:6px 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#718078;font-size:12px}.coach-filters button>span{font-size:10px;font-weight:400}.coach-filters button[aria-pressed=true]{border-bottom-color:var(--teal);color:#176a55}.coach-filters button[aria-pressed=true]>span{color:#176a55}.list-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 26px 6px 10px;font-size:10px;color:#78867f}.list-caption span:last-child{text-align:right;white-space:nowrap}.athletes{border:1px solid #d8e2dc;border-radius:7px;background:white;overflow:hidden}.athlete+.athlete{border-top:1px solid #e5ebe7}.student-row{display:grid;grid-template-columns:minmax(0,1fr) 136px 12px;align-items:center;gap:10px;width:100%;min-height:48px;border:0;border-radius:0;padding:6px 10px;background:transparent;text-align:left;color:var(--navy);font-weight:400}.student-row:hover{background:#f4f8f5}.student-row:focus-visible{outline-offset:-2px}.athlete:nth-child(even)>.student-row{background:#fafcfb}.athlete-current>.student-row,.athlete-current:nth-child(even)>.student-row{background:#edf8f1;box-shadow:inset 3px 0 #38946b}.athlete-expanded>.student-row{background:#edf4f0}.student-identity{min-width:0;display:block}.student-name{display:block;font-size:13px;font-weight:600;line-height:17px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.student-category{display:block;font-size:11px;line-height:15px;color:#78877f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.student-next{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:2px;text-align:right;min-width:0}.queue-summary{font-size:12px;font-weight:600;line-height:16px;color:#315e4c;white-space:nowrap}.queue-current{color:#137c49}.queue-next{color:#137c49}.queue-pending{color:#8c713e;font-size:11px}.student-next>small{font-size:10px;line-height:13px;color:#7b8a81}.queue-caution{color:#986f27}.row-chevron{font-size:15px;color:#96a49c;line-height:1;text-align:center}.compact-result{display:flex;justify-content:flex-end;align-items:baseline;gap:5px;white-space:nowrap;font-size:10px;line-height:15px;color:#6b7b71}.compact-result>span{font-size:10px;font-weight:400}.compact-result strong{font-size:11px;font-weight:600}.student-details{background:#f6f9f7;padding:0 10px 10px;border-top:1px solid #e2ebe4}.student-details-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 4px;font-size:12px}.student-details-heading span{font-size:11px;color:var(--muted)}.student-entries{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px}.student-entries>.entry{border:1px solid #dfe9e1;border-radius:6px;background:white}.queue-help{margin-top:12px;font-size:11px;color:#748279;line-height:1.6}.queue-help summary{cursor:pointer;min-height:30px;width:fit-content}.queue-help p{margin-bottom:6px;max-width:760px}.section-note{margin-top:10px;font-size:11px;color:#748279;line-height:1.6}
.entry{padding:14px 16px;border-top:1px solid #e7ede7}.entry-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.discipline-label{font-size:12px;font-weight:700;line-height:1.4}.status{padding:4px 7px;background:#eef2ef;color:#718477;border-radius:5px;font-size:9px;font-weight:550;line-height:1.4;text-align:right}.status-queued,.status-ready,.status-waiting_opponent{background:#edf3f8;color:#60798c}.status-unassigned,.status-singleton,.status-unscheduled,.status-no_draw{background:#fbf1dc;color:#96733a}.status-current{background:#d9f0e2;color:#21704b}.status-done{background:#e7f3ea;color:#3d7657}.status-eliminated{background:#eff2ee;color:#72806c}.category-label{font-size:11px;line-height:1.55;color:#718175;margin-top:7px}.appearance{display:grid;grid-template-columns:1fr 88px;margin-top:12px;background:#f2f7f2;border:1px solid #e6eee5;border-radius:8px;overflow:hidden;min-height:90px}.queue-position{padding:11px 13px}.queue-position>small,.platform>small{display:block;font-size:9px;color:#788d7b;line-height:1.4}.queue-position>strong{display:flex;align-items:baseline;gap:7px;font-size:25px;font-weight:650;letter-spacing:-.7px;color:#285e43;line-height:1.3;margin-top:2px}.queue-position>strong>span{font-size:12px;font-weight:550;letter-spacing:0;color:#65846a}.queue-position>strong.queue-text{font-size:16px;letter-spacing:-.2px;line-height:1.5}.queue-position>span{display:block;font-size:9px;line-height:1.4;color:#87927d;margin-top:3px}.platform{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:9px 6px;border-left:1px solid #e0eadd}.platform>strong{font-size:25px;font-weight:550;color:#59715b;line-height:1.4}.platform>span{font-size:8px;color:#7c8a79;line-height:1.5}.current{background:#fbfefb;box-shadow:inset 3px 0 #4eaa79}.current .appearance{background:#e8f6ed;border-color:#d8ebdc}.queue-current>strong{font-size:24px;color:#187342;letter-spacing:-.5px}.opponent-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.corner{display:inline-flex;align-items:center;gap:5px;font-size:9px;white-space:nowrap;font-weight:600}.corner:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.red{color:#aa4250}.blue{color:#4679ae}.opponent-line p{font-size:10px;line-height:1.4;text-align:right;min-width:0}.opponent-line small{display:block;color:#8a988b;font-size:9px;font-weight:400}.opponent-line strong{display:block;margin-top:2px;color:#4e6455;font-size:10px;font-weight:550;overflow-wrap:anywhere}.entry-warnings{margin-top:10px;padding-left:9px;border-left:2px solid #e4c58c;color:#978053;font-size:10px;line-height:1.45}.entry-warnings p+p{margin-top:5px}.entry-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.entry-bottom>div{min-width:0}.entry-bottom span,.entry-bottom small{display:block;color:#879382;font-size:9px;line-height:1.6;overflow-wrap:anywhere}.entry-bottom span{color:#6e836b}.bracket-link{display:flex;align-items:center;gap:5px;min-height:34px;font-size:10px;padding:6px 9px;background:#fcfdfb;border-color:#e2e9df;flex-shrink:0;border-radius:6px}.bracket-link svg{width:14px;height:14px}.result-line{display:flex;align-items:center;gap:11px;padding:12px 0 3px;color:#718174}.result-emblem{width:38px;height:38px;display:grid;place-items:center;background:#edf2ed;border:1px solid #e0e8e0;border-radius:50%;font-size:19px;font-weight:650;flex-shrink:0}.result-line>div{min-width:0;flex:1}.result-line strong{display:block;font-size:17px;letter-spacing:-.3px;font-weight:650;line-height:1.4}.result-line small{display:block;margin-top:2px;font-size:9px;line-height:1.5;color:#81927d}.result-line>svg{width:25px;height:25px;opacity:.65}.place-1{color:#997125}.place-1 .result-emblem,.medal-number.place-1{background:#fbf1d6;border-color:#ead8a5}.place-2{color:#6d8190}.place-2 .result-emblem,.medal-number.place-2{background:#edf2f5;border-color:#dce4e9}.place-3{color:#ae7957}.place-3 .result-emblem,.medal-number.place-3{background:#f7ece3;border-color:#ecd8c9}.empty-state{grid-column:1/-1;padding:34px 22px;border:1px dashed #cbd9cd;border-radius:12px;background:#f9fcf8;text-align:center;color:#6c7d68}.empty-state h2,.empty-state h3{font-size:18px;color:#496147;line-height:1.5}.empty-state p{max-width:400px;margin:8px auto 0;font-size:12px;line-height:1.7}.empty-state button{margin-top:14px}.empty-symbol{display:grid;place-items:center;margin:0 auto 14px;width:42px;height:42px;background:#eaf1e6;border-radius:12px;color:#89a080}.empty-symbol svg{width:23px;height:23px}footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:26px;padding-top:14px;border-top:1px solid var(--border);font-size:10px;color:#8a9687;line-height:1.6}
.back-button{margin-top:20px;min-height:38px;background:transparent;border-color:transparent;padding-left:0}.bracket-heading{margin:14px 0}.bracket-heading h2{font-size:21px;line-height:1.4;letter-spacing:-.4px;margin:5px 0}.bracket-heading>p:not(.eyebrow){font-size:12px;color:#72816b;line-height:1.5;margin-top:4px}.finished-label{color:#24774d;font-weight:600}.tree-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin:17px 0 12px;font-size:10px;color:#718268;line-height:1.5}.tree-legend>span{display:flex;align-items:center;gap:5px}.tree-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}.own-legend{border:1px solid #3b8c62;background:#e9f4eb}.red-legend{background:#b5364a}.blue-legend{background:#285da8}.tree-legend small{margin-left:auto;font-size:10px}.tree-scroll{overflow:auto;border:1px solid #d3dfd7;border-radius:10px;background:#f0f4f1;max-height:75vh;overscroll-behavior:contain}.tree-scroll:focus-visible{outline:3px solid #49ad98;outline-offset:2px}.tree{position:relative}.tree svg{position:absolute;inset:0;width:auto;height:auto;stroke-linecap:butt}.tree path{fill:none;stroke:#93aa9d;stroke-width:1.4}.round{position:absolute;top:14px;font-size:11px;color:#63786a}.tree-match{position:absolute;background:#fff;border:1px solid #cbd8d0;border-radius:6px;height:128px;padding:6px}.tree-match>small{display:block;font-size:9px;color:#667b6e;height:17px;line-height:1.4}.tree-person{display:flex;align-items:center;gap:6px;padding:4px 5px;font-size:11px;min-height:38px}.tree-person>span{font-size:10px}.tree-person strong{flex:1;line-height:1.3;min-width:0;overflow-wrap:anywhere}.tree-person.red{border-left:3px solid #b5364a;background:#fff6f7}.tree-person.blue{border-left:3px solid #285da8;background:#f3f7ff}.tree-person.own strong{text-decoration:underline;text-underline-offset:3px}.tree-person.own{outline:1px solid #3b8c62;outline-offset:-1px}.podium{background:#fff;border:1px solid var(--border);padding:16px;border-radius:10px;margin-top:16px}.podium h3{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:13px}.podium h3 svg{color:#ad884b}.podium-person{display:flex;align-items:center;gap:11px;padding:7px 9px;margin:3px 0;border-radius:6px;font-size:12px;line-height:1.5}.podium-person>span{flex:1}.podium-person>small{font-size:9px;color:#40825a}.own-award{background:#f0f8ef}.medal-number{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border:1px solid #dce5dc;border-radius:50%;font-size:13px}

/* Detail views are intentionally larger; the closed roster stays 48px per appearance. */
.category-label{font-size:12px}.opponent-line strong{font-size:12px}.opponent-line small,.corner{font-size:10px}.queue-position>small,.platform>small,.queue-position>span{font-size:10px}.athletes .empty-state{border:0;border-radius:0}.student-next .place-1{color:#997125}.student-next .place-2{color:#617788}.student-next .place-3{color:#a16e4d}footer{margin-top:14px;padding-top:10px}
@media(max-width:700px){.topbar{padding:7px 12px;min-height:48px}.topbar h1{font-size:12px}.topbar small{font-size:8px}#connection{font-size:9px}main{padding:7px 10px 20px}.event-strip{min-height:38px}.event-heading h2{font-size:12px}.event-heading small{font-size:9px}.card-toggle{font-size:10px;padding-right:0}.event-logo{width:28px;height:28px}.search-box{height:38px}.search-box input{font-size:16px}.coach-filters button{min-height:37px;font-size:12px}.list-caption{font-size:9px;padding-right:26px}.student-row{grid-template-columns:minmax(0,1fr) 125px 10px;gap:6px;padding:7px 9px;min-height:50px}.student-name{font-size:12px;line-height:17px}.student-category{font-size:10px;line-height:15px}.queue-summary{font-size:12px}.queue-pending{font-size:10px}.student-next>small{font-size:10px}.compact-result>span{font-size:9px}.compact-result strong{font-size:10px}.personal-card{flex-direction:column;align-items:start;padding:14px}.qr-area{align-self:center}.student-details{padding:0 7px 8px}.entry{padding:12px}.bracket-link{min-height:40px;font-size:11px}.back-button{margin-top:8px;min-height:40px}.bracket-heading h2{font-size:17px}.bracket-heading>p:not(.eyebrow){font-size:11px}.tree-legend{font-size:9px;gap:7px 14px}.tree-legend small{margin-left:0;flex-basis:100%}.podium-person{font-size:11px}footer{display:block;font-size:9px}footer>span{display:block}.appearance{grid-template-columns:1fr 75px}}
@media(max-width:360px){main{padding:6px 7px 18px}.student-row{grid-template-columns:minmax(0,1fr) 113px 9px;gap:4px;padding-left:7px;padding-right:7px}.student-name{font-size:11px}.student-category{font-size:10px}.queue-summary{font-size:11px}.queue-pending{font-size:10px}.topbar{padding:7px 10px}.event-heading h2{font-size:11px}.list-caption{padding-left:7px;font-size:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
