:root{color-scheme:light}*{box-sizing:border-box}.tht-body{margin:0;background:#f4f7f5;color:#20332b;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}.tht-shell{max-width:1140px;margin:0 auto;padding:0 16px 70px}.tht-header{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:20px 0;border-bottom:1px solid #dce7e1}.tht-header a{text-decoration:none;color:#135039}.tht-brand{font-weight:900;font-size:17px;white-space:nowrap}.tht-brand small{font-weight:600;font-size:10px;letter-spacing:2px}.tht-header nav{display:flex;gap:15px;font-size:13px;font-weight:700}.tht-title{display:flex;justify-content:space-between;gap:10px;margin:24px 0 19px}.tht-title small,.tht-section-head small,.tht-pool-head small{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#548370}.tht-title h1{margin:5px 0;font-size:clamp(25px,4vw,35px);line-height:1.18}.tht-title p,.tht-section-head p{color:#667d71;margin:7px 0}.tht-card{background:#fff;border:1px solid #dbe5df;border-radius:16px;padding:20px;margin:14px 0;box-shadow:0 2px 8px #173c2a08}.tht-card h2{font-size:19px;margin:0 0 14px}.tht-card h3{font-size:18px;margin:4px 0}.tht-card h4{margin:18px 0 9px;font-size:15px}.tht-alert{padding:12px 14px;border-radius:12px;background:#e8f5ec;color:#11623a;margin:12px 0}.tht-error{background:#fff0ee;color:#a7342b}.tht-back{display:inline-block;margin:15px 0 0;color:#135039}.tht-share{display:flex;justify-content:space-between;align-items:center;gap:15px}.tht-share img{background:#fff;border:1px solid #e4e4e4;border-radius:9px;flex-shrink:0}.tht-public-link{display:block;word-break:break-word;color:#146447;font-weight:700}.tht-buttons,.tht-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tht-buttons{margin-top:12px}.tht-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.tht-form{margin:10px 0}.tht-form label{display:grid;gap:5px;font-size:13px;font-weight:700;flex:1}.tht-form input,.tht-form select,.tht-form textarea{width:100%;border:1px solid #bfd0c7;background:#fff;border-radius:9px;padding:10px;color:#1c3327;font:inherit;font-weight:400;min-width:0}.tht-form input:focus,.tht-form textarea:focus,.tht-form select:focus{outline:2px solid #74ad97;outline-offset:1px}.tht-form button,.tht-buttons button,.tht-buttons a{font:inherit;cursor:pointer;border-radius:9px;padding:10px 15px;text-decoration:none}.tht-primary{background:#176b49;border:1px solid #176b49;color:#fff;font-weight:800}.tht-secondary,.tht-copy{background:#eff8f3;border:1px solid #b5d6c4;color:#176b49;font-weight:700}.tht-plain{background:transparent;border:0;color:#b34242;padding:2px;cursor:pointer;font-size:11px}.tht-section{margin:24px 0}.tht-section-head{padding:0 4px;border-bottom:1px solid #dce7e1}.tht-section-head h2{font-size:24px;margin:2px 0}.tht-pool{border-left:4px solid #4d9c78}.tht-pool-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.tht-pool-head span{font-size:13px;color:#678175}.tht-meter{text-align:right;font-size:20px;font-weight:900;color:#176b49}.tht-bar{display:block;min-width:95px;height:7px;background:#e8efe9;border-radius:8px;overflow:hidden;margin-top:5px}.tht-bar i{display:block;height:100%;background:#35a373}.tht-pill{display:inline-block;white-space:nowrap;border-radius:20px;padding:3px 10px;background:#eff2f0;color:#63776c;font-size:12px;font-weight:750}.tht-pill.tht-live{background:#e6f7ec;color:#147843}.tht-pill.tht-finished{background:#eaf1fa;color:#285c9c}.tht-pill.tht-scheduled{background:#f1f2f1;color:#63736b}.tht-note,.tht-live-note{font-size:12px;color:#778b80;line-height:1.55}.tht-live-note{margin:10px 0}.tht-stat{background:#fff;border:1px solid #dae7de;padding:15px;border-radius:14px;display:grid;gap:2px}.tht-stat b{font-size:24px;color:#176b49}.tht-stat span{font-size:12px;color:#668075}.tht-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.tht-list-item{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:15px;border-bottom:1px solid #e7eee9;text-decoration:none;color:#21392c}.tht-list-item strong{display:block}.tht-list-item small{display:block;color:#809084}.tht-list-item:hover{background:#f5faf6}.tht-list-item .tht-pill{margin-left:auto}.tht-name-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.tht-name-grid>span,.tht-name-grid>div{display:block;background:#f6faf7;border:1px solid #e1ede4;border-radius:8px;padding:10px}.tht-name-grid small{font-size:11px;color:#6f897a}.tht-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0}.tht-team-grid>div{border:1px solid #dcebe3;border-radius:10px;padding:11px;background:#f7fbf8}.tht-team-grid small{display:block;color:#6f8c7d}.tht-team-grid b{display:block;font-size:14px}.tht-overflow{overflow-x:auto;margin:10px 0}.tht-overflow table{width:100%;border-collapse:collapse;text-align:left;min-width:620px;font-size:13px}.tht-overflow th{background:#eff5f1;color:#497260}.tht-overflow th,.tht-overflow td{padding:10px;border-bottom:1px solid #e5eee9;vertical-align:middle}.tht-rank tbody tr:first-child{background:#f4fbf4}.tht-score{font-size:16px;font-weight:900;white-space:nowrap}.tht-match-ops{min-width:215px}.tht-match-ops .tht-form{margin:3px 0;display:flex;align-items:center;gap:5px}.tht-match-ops .tht-score-edit{display:flex;align-items:center;gap:3px;white-space:nowrap}.tht-match-ops .tht-score-edit input{width:45px;padding:6px}.tht-small{background:#176b49;border:0;border-radius:6px;color:white;padding:7px 9px;white-space:nowrap}.tht-draw{background:#f5faf7;border:1px dashed #a9d6bc;padding:14px;border-radius:12px;margin:13px 0}.tht-draw h4{margin:0}.tht-subform{margin-top:18px}.tht-danger{padding:10px;margin-top:15px;border:1px solid #f0dad5;border-radius:10px}.tht-danger-button{background:#b93729;color:white;border:0;padding:9px 12px;border-radius:8px}.tht-card summary{cursor:pointer;font-weight:800;color:#1d6444}.tht-card details[open]>summary{margin-bottom:15px}.tht-card details details summary{font-weight:600}.tht-public-list .tht-list-item{margin:10px 0}.tht-public-list .tht-card{padding:15px}@media(max-width:720px){.tht-shell{padding:0 12px 45px}.tht-header{padding:14px 0}.tht-brand{font-size:13px}.tht-brand small{display:none}.tht-header nav{gap:9px;font-size:12px}.tht-card{padding:14px;margin:12px 0;border-radius:12px}.tht-fields{grid-template-columns:1fr}.tht-share{align-items:flex-start}.tht-share img{width:108px;height:108px}.tht-name-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tht-team-grid{grid-template-columns:1fr}.tht-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tht-pool-head{align-items:flex-start}.tht-title h1{font-size:26px}.tht-section-head h2{font-size:21px}}

.tht-court-edit{display:flex!important;gap:4px!important;align-items:center;flex:0 0 auto!important}.tht-match-ops .tht-court-edit input{width:50px;padding:6px}

.tht-gender-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.tht-gender-summary>div{background:#e9f3eb;border:1px solid #d0e2d4;border-radius:10px;padding:12px;font-size:13px;color:#185f42}.tht-form label small{font-size:11px;font-weight:400;color:#627e70}.tht-card .tht-form textarea{min-height:100px}@media(max-width:720px){.tht-gender-summary{grid-template-columns:1fr 1fr}.tht-gender-summary>div:last-child{grid-column:span 2}}

/* v3.50: optional install for the standalone tournament-only PWA */
.tht-install-banner{display:flex;align-items:center;gap:12px;background:#ebf7f0;border:1px solid #b8dfc8;border-radius:14px;padding:12px 14px;margin:12px 0 4px}
.tht-install-banner[hidden],.tht-install-help[hidden]{display:none!important}
.tht-install-message{flex:1;display:grid;gap:2px}
.tht-install-message strong{font-size:14px;color:#155e3c}
.tht-install-message span{font-size:12px;color:#4d6c5a}
#tht-install-button{border:0;border-radius:9px;padding:11px 14px;background:#147849;color:white;font-weight:800;cursor:pointer;white-space:nowrap}
#tht-install-dismiss{border:0;background:none;color:#63806f;font-size:25px;cursor:pointer;line-height:1;align-self:flex-start}
.tht-install-help{position:fixed;inset:0;z-index:99999;background:#101d17a6;display:flex;align-items:center;justify-content:center;padding:20px}
.tht-install-panel{background:#fff;border-radius:18px;max-width:420px;width:100%;padding:24px;position:relative;box-shadow:0 20px 55px #0b2e2250}
.tht-install-panel h2{font-size:20px;margin:0 0 12px}
.tht-install-panel p{line-height:1.65;color:#3a5446}
.tht-install-panel button.tht-primary{border:0;border-radius:9px;padding:10px 18px;cursor:pointer}
.tht-install-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:26px;color:#64786c;cursor:pointer}
@media(max-width:600px){.tht-install-banner{flex-wrap:wrap;gap:8px;padding:11px}.tht-install-message{flex-basis:calc(100% - 34px)}#tht-install-button{width:100%;order:3}#tht-install-dismiss{margin-left:auto;order:2}}

.tht-group-heading{font-size:17px;margin:24px 0 8px;color:#1c573a}.tht-group-heading small{font-weight:600;font-size:12px;color:#879b8c}

/* v3.50.3 – resource-aware match running order */
.tht-sub-match{display:block;font-size:11px;font-weight:500;color:#73897c;margin-top:3px;white-space:nowrap}
.tht-court-timetable{border-left:4px solid #277f58}
.tht-court-timetable .tht-overflow{max-height:680px;overflow:auto}
.tht-court-timetable table{min-width:760px}
.tht-court-timetable tr.tht-now{background:#eaf8ee}
.tht-court-timetable tr.tht-next{background:#fef8e8}
.tht-court-timetable td:nth-child(1),.tht-court-timetable td:nth-child(2){white-space:nowrap}
.tht-court-settings{border:1px solid #b8d5c6;background:#f8fcf9}
.tht-court-settings .tht-form{margin-bottom:0}


/* v3.50.4 – public category tabs, live courts and readable mobile scorecards */
.tht-division-panel[hidden]{display:none!important}
.tht-public-category-heading{padding:13px 2px 8px}
.tht-public-category-heading h2{font-size:clamp(21px,3vw,28px);margin:0 0 3px;color:#134e39}
.tht-public-category-heading p{font-size:13px;color:#6b8575;margin:0}
.tht-public-block{background:#fff;border:1px solid #dbe7df;border-radius:16px;padding:18px;margin:15px 0;box-shadow:0 2px 8px #173c2a08}
.tht-public-block-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.tht-public-block-head small{font-size:10px;letter-spacing:1.3px;color:#648b75;font-weight:850}
.tht-public-block-head h3{margin:1px 0;font-size:18px;line-height:1.3;color:#19452f}
.tht-public-block-head>span{font-size:12px;color:#698072;white-space:nowrap}
.tht-live-courts{border-left:4px solid #19834e}
.tht-live-court-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:12px}
.tht-live-court{background:#f9fcfa;border:1px solid #dcebe1;border-radius:14px;padding:13px;min-width:0}
.tht-live-court>h4{margin:0 0 11px;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#194b32;font-size:16px}
.tht-court-state{font-size:11px;color:#738b7b;font-weight:650}
.tht-court-state.tht-court-playing{color:#0a8545}
.tht-court-idle{font-size:12px;color:#819188;margin:8px 0;line-height:1.45}
.tht-court-upcoming{margin-top:13px;padding-top:10px;border-top:1px solid #dfebe3}
.tht-court-upcoming h5{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:#667c6e;margin:0 0 9px}
.tht-public-match-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),1fr));gap:10px}
.tht-public-match{border:1px solid #e0ebe3;border-radius:11px;padding:11px 12px;background:#fff;margin:8px 0;min-width:0}
.tht-public-match-list>.tht-public-match{margin:0}
.tht-public-match-live{border-color:#8fd1aa;background:#effcf2}
.tht-public-match-done{background:#f5f8f6}
.tht-public-match-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;color:#597362;font-size:11px;margin-bottom:10px}
.tht-public-match-meta strong{color:#1a6843}
.tht-public-match-meta>.tht-pill{font-size:10px;padding:2px 8px}
.tht-public-match-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:9px;font-size:13px;line-height:1.35}
.tht-public-match-teams span{min-width:0;overflow-wrap:anywhere;font-weight:700;color:#1b3829}
.tht-public-match-teams span:last-child{text-align:right}
.tht-public-match-teams strong{color:#176c45;font-size:16px;white-space:nowrap}
.tht-public-match-live .tht-public-match-teams strong{color:#be5b13}
.tht-public-pool-rank{border:1px solid #e3ede6;border-radius:12px;padding:13px 12px;margin:12px 0;background:#fff}
.tht-public-pool-title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tht-public-pool-title h4{margin:0;font-size:16px;color:#1c5d3d}
.tht-public-pool-title>span{color:#718779;font-size:12px}
.tht-public-pool-rank .tht-overflow{margin-bottom:0}
.tht-public-pool-rank .tht-overflow table{min-width:540px}
.tht-public-empty{color:#829084;font-size:13px}
.tht-public-gender-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tht-public-gender-col{min-width:0;border:1px solid #e4ede6;border-radius:11px;overflow:hidden}
.tht-public-gender-col h4{font-size:15px;margin:0;background:#edf7f0;padding:11px 13px;color:#215c3c}
.tht-public-gender-col h4 span{font-size:12px;font-weight:600;color:#6d8676}
.tht-public-gender-col ol{list-style:none;margin:0;padding:5px 12px}
.tht-public-gender-col li{font-size:13px;min-width:0;overflow-wrap:anywhere;padding:8px 0;border-bottom:1px solid #edf2ee}
.tht-public-gender-col li:last-child{border-bottom:0}
.tht-public-footnote{margin-bottom:24px}
.tht-category-tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:1140px;width:100%;display:flex;align-items:stretch;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -6px 28px #123c2a1e;border:1px solid #dce8df;border-bottom:0;border-radius:14px 14px 0 0;z-index:950}
.tht-division-tab{font:inherit;border:1px solid #d5e6d9;background:#f6f9f7;border-radius:10px;padding:10px 14px;color:#335c46;font-size:13px;font-weight:750;min-width:118px;flex:1 0 auto;cursor:pointer;max-width:240px;white-space:normal;text-align:center;line-height:1.25}
.tht-division-tab[aria-selected="true"]{background:#176b49;border-color:#176b49;color:#fff;box-shadow:0 2px 8px #176b4933}
.tht-division-tab:focus-visible{outline:3px solid #e5aa43;outline-offset:-2px}
.tht-body:has(.tht-category-tabs) .tht-shell{padding-bottom:calc(98px + env(safe-area-inset-bottom))}
.tht-embedded-results .tht-category-tabs{position:sticky;bottom:0;transform:none;left:auto;box-shadow:0 -2px 15px #123c2a19}
@media(max-width:720px){.tht-public-block{padding:13px;margin:12px 0}.tht-public-category-heading{padding:13px 1px 5px}.tht-public-block-head h3{font-size:16px}.tht-live-court-grid{grid-template-columns:1fr}.tht-public-match-list{grid-template-columns:1fr}.tht-public-match-meta{font-size:10px}.tht-public-match-teams{font-size:12px;gap:7px}.tht-public-gender-grid{gap:8px}.tht-public-gender-col h4{padding:10px}.tht-public-gender-col ol{padding:3px 9px}.tht-public-gender-col li{font-size:12px}.tht-category-tabs{padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:6px;border-radius:12px 12px 0 0}.tht-division-tab{min-width:108px;padding:11px 8px;font-size:12px}}

.tht-public-standings{overflow-x:auto}
.tht-public-standings table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;text-align:left}
.tht-public-standings thead{background:#eff6f1;color:#52745e}
.tht-public-standings th,.tht-public-standings td{padding:9px 6px;border-bottom:1px solid #edf1ec;vertical-align:top}
.tht-public-standings th:first-child,.tht-public-standings td:first-child{width:29px;text-align:center}
.tht-public-standings th:nth-child(2){width:48%}
.tht-public-standings th:nth-child(n+3),.tht-public-standings td:nth-child(n+3){text-align:center;width:15%}
.tht-public-standings td:nth-child(2) strong{font-weight:650;overflow-wrap:anywhere}
.tht-public-standings td:nth-child(2) small{display:block;color:#819384;font-size:10px;margin-top:2px}
.tht-public-standings tbody tr:first-child{background:#f1faf3}
@media(max-width:420px){.tht-public-standings table{font-size:11px}.tht-public-standings th,.tht-public-standings td{padding:8px 3px}.tht-public-standings th:nth-child(2){width:46%}}

/* v3.50.5: all registered athletes appear in tables before any draw/score. */
.tht-public-standings table{min-width:312px;table-layout:fixed}
.tht-public-standings th:first-child,.tht-public-standings td:first-child{width:34px}
.tht-public-standings th:nth-child(2){width:39%}
.tht-public-standings th:nth-child(n+3),.tht-public-standings td:nth-child(n+3){width:auto;white-space:nowrap;text-align:center}
.tht-public-standings .tht-points{font-variant-numeric:tabular-nums;font-weight:650}
.tht-public-standings td:nth-child(2) small{font-size:10px;line-height:1.3}
@media(max-width:420px){.tht-public-standings th:nth-child(2){width:37%}.tht-public-standings th,.tht-public-standings td{padding:8px 3px;font-size:11px}}

/* v3.50.7: independent male/female leaderboards and qualifying cut lines. */
.tht-qualify-settings{margin:14px 0 20px;padding:13px 15px;background:#f6faf7;border:1px solid #d5e9dc;border-radius:12px}
.tht-qualify-settings h4{margin:0 0 6px;color:#17573b}
.tht-qualify-settings .tht-form label small{font-size:11px;font-weight:500;color:#6a8173}
.tht-gender-rank{margin:12px 0 18px;min-width:0}
.tht-gender-rank h5{font-size:14px;color:#176b49;margin:0 0 5px}
.tht-gender-rank h5 small{color:#708578;font-size:11px;font-weight:500}
.tht-quota-line{margin:3px 0 9px;font-size:12px;font-weight:650;color:#3d6d50}
.tht-rank tbody tr.tht-qualification-row,.tht-public-standings tbody tr.tht-qualification-row{background:#e7f6eb}
.tht-qualification-badge{display:block;margin-top:3px;font-size:10px;font-weight:700;color:#167047;line-height:1.3}
.tht-public-pool-rank .tht-gender-rank:last-of-type{margin-bottom:0}
@media(max-width:500px){.tht-qualify-settings{padding:11px}.tht-gender-rank h5{font-size:13px}}

/* v3.50.9 knockout draw */
.tht-playoff-block { margin-top: 16px; }
.tht-playoff-block .tht-playoff-match { margin: 10px 0; padding: 14px 16px; border: 1px solid #d6e5dc; border-radius: 12px; background: #fff; }
.tht-playoff-match .tht-form { display:flex; flex-wrap:wrap; gap:8px; align-items:end; margin:12px 0 0; }
.tht-playoff-match .tht-form label { display:flex; gap:6px; align-items:center; font-size:13px; }
.tht-playoff-match .tht-form input { width:75px; max-width:100%; padding:7px; }
.tht-playoff-winner { color:#176b49; font-weight:650; margin:10px 0 0; font-size:13px; }
.tht-playoff-reset { margin-top:18px; }
.tht-playoff-block select { width:100%; margin:8px 0 12px; }
@media(max-width:640px){.tht-playoff-block .tht-playoff-match {padding:10px 8px}.tht-playoff-match .tht-form label { flex:1 1 auto; justify-content:space-between; }}

/* v3.51.2 – standalone referee bottom tab + scorekeeper */
.tht-referee-tab{font:inherit;border:1px solid #b8d9ca;background:#eaf6ee;border-radius:10px;padding:10px 16px;color:#15553a;font-size:13px;font-weight:850;min-width:124px;flex:1 0 auto;cursor:pointer;max-width:240px;white-space:normal;text-align:center;line-height:1.25}
.tht-referee-tab[aria-selected="true"]{background:#175f46;border-color:#175f46;color:#fff}
.tht-referee-tab:focus-visible{outline:3px solid #e5aa43;outline-offset:-2px}
.tht-referee-panel[hidden],.tht-ref-box [hidden]{display:none!important}
.tht-referee-panel{max-width:950px;margin:16px auto 105px}
.tht-ref-box{border:1px solid #cce2d3;border-radius:18px;padding:20px;background:#fff;box-shadow:0 4px 16px #15412a10}
.tht-ref-box label{display:grid;gap:5px;color:#294a39;font-size:13px;font-weight:700}
.tht-ref-box select,.tht-ref-box input{background:#fff;border:1px solid #c6d6cb;border-radius:10px;padding:10px;min-height:42px;width:100%;font-size:14px;color:#173c2a;box-sizing:border-box}
.tht-ref-box button{font:inherit;border-radius:12px;font-weight:800;cursor:pointer;min-height:46px;padding:12px 14px}
.tht-ref-box button:disabled{opacity:.45;cursor:not-allowed}
.tht-ref-box button.tht-primary{border:0;background:#176b49;color:#fff}
.tht-ref-box button.tht-secondary{border:1px solid #c4d6c9;background:#f8faf8;color:#285a40}
.tht-ref-muted{color:#74887a;line-height:1.5;font-size:12px}
.tht-ref-setup{margin-top:16px}
.tht-ref-player-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tht-ref-player-grid fieldset{border:1px solid #d5e7db;border-radius:13px;padding:12px;display:grid;gap:11px;min-width:0}
.tht-ref-player-grid legend{color:#16583c;font-weight:850;padding:0 6px}
.tht-ref-setup-serve{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0}
.tht-ref-serve-draw{grid-column:1/-1;display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 12px;background:#f0f8f2;border:1px dashed #8ec5a2;border-radius:12px}
.tht-ref-serve-draw button{flex:0 1 auto}
.tht-ref-serve-draw span{flex:1 1 200px}
.tht-ref-rule{display:flex;gap:10px;align-items:end}
.tht-ref-rule label{flex:1;min-width:0}
.tht-ref-board{margin-top:16px}
.tht-ref-state{border-radius:999px;padding:9px 14px;text-align:center;background:#e8f5eb;color:#235d3e;font-weight:800;font-size:13px;margin:12px 0}
.tht-ref-score-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:stretch}
.tht-ref-team{background:#f1f7f3;border:2px solid #dde9e0;border-radius:15px;padding:12px 6px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.tht-ref-team.is-serving{border-color:#48b77a;background:#e7f8eb;box-shadow:0 0 0 2px #b9e7c9}
.tht-ref-team-title{font-size:13px;font-weight:950;color:#275c3c}
.tht-ref-team strong{font-size:clamp(48px,10vw,90px);font-weight:900;line-height:1.15;color:#154d35;font-variant-numeric:tabular-nums}
.tht-ref-team span{font-size:12px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.tht-ref-score-sep{align-self:center;color:#648874;font-size:34px;font-weight:900}
.tht-ref-serve-banner{background:#164b39;color:white;border-radius:12px;margin:12px 0;padding:14px;text-align:center;font-size:15px;font-weight:850;line-height:1.65}
.tht-ref-courts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}
.tht-ref-court{display:flex;flex-direction:column;gap:6px;border:1px solid #d6e7dc;background:#fbfdfb;border-radius:10px;padding:10px;font-size:12px}
.tht-ref-court.is-serving{background:#e8f8ed;border-color:#64ba83}
.tht-ref-court b{color:#155b3c}
.tht-ref-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.tht-ref-actions button{min-height:76px;color:white;border:0;font-size:16px!important;line-height:1.3}
.tht-ref-a{background:#176b49}.tht-ref-b{background:#254f90}
.tht-ref-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tht-ref-controls button{border:1px solid #c9d9cc;background:#fff;color:#30533e;font-size:12px!important;min-height:45px;padding:9px!important}
.tht-ref-board #tht-ref-finish{display:block;width:100%;margin:14px 0}
.tht-ref-feedback{font-size:13px;margin:12px 0;color:#205e3c;line-height:1.4}
.tht-ref-feedback.is-error{color:#ac2d2d}
@media(max-width:640px){.tht-ref-box{padding:13px}.tht-ref-setup-serve{grid-template-columns:1fr}.tht-ref-player-grid{gap:8px}.tht-ref-player-grid fieldset{padding:9px}.tht-ref-box select{font-size:13px;padding:8px}.tht-ref-team span{font-size:11px}.tht-ref-serve-banner{font-size:13px}.tht-ref-actions button{font-size:14px!important}.tht-referee-tab{min-width:108px;padding:11px 8px;font-size:12px}}
.tht-ref-link{display:inline-block;text-decoration:none;border:1px solid #b6d9c4;color:#176343;background:#eaf8ef;border-radius:8px;padding:8px 12px;margin:7px 0;font-size:12px;font-weight:750}

/* v3.51.3 – Referee Vietnamese voice readout; compact on mobile */
.tht-ref-audio{margin:12px 0 16px;padding:12px;border:1px solid #c4dfcd;border-radius:13px;background:#f3faf5;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end}
.tht-ref-audio-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.tht-ref-audio-actions button{font-size:12px;min-height:42px;padding:9px 11px}
.tht-ref-audio .tht-ref-muted{grid-column:1/-1;margin:0}
@media(max-width:640px){.tht-ref-audio{grid-template-columns:1fr;gap:8px}.tht-ref-audio .tht-ref-muted{grid-column:1}.tht-ref-audio-actions button{flex:1 1 auto}}

/* v3.51.4: category → pool → match filters for the referee panel */
.tht-ref-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 8px}
.tht-ref-roster-hint{margin:4px 0 13px;line-height:1.5}
@media(max-width:420px){.tht-ref-filters{gap:8px}.tht-ref-filters label{font-size:12px}}

/* v3.51.7 – make schedule reconciliation visible on public QR/live pages */
.tht-schedule-totals{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;margin-top:10px}
.tht-schedule-totals span,.tht-schedule-totals strong{font-size:12px;line-height:1.4;border-radius:8px;padding:7px 10px;background:#eaf5ed;border:1px solid #cde5d5;color:#215c3b}
.tht-schedule-totals strong{background:#176b49;color:#fff;border-color:#176b49}
.tht-court-preview-notice{background:#f3faf4;border-left:3px solid #2a8c57;padding:8px 10px;margin:0 0 12px}
.tht-court-preview-notice a{color:#116a41;font-weight:750;text-decoration:underline}
.tht-public-match-list .tht-public-match-meta strong{font-size:11px}
#tht-live-results [id^="tht-all-matches-"],.tht-embedded-results [id^="tht-all-matches-"]{scroll-margin-top:16px}

/* v3.52.1: late participant selection by category */
.tht-late-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;margin:12px 0}
.tht-late-person{display:flex!important;align-items:flex-start;gap:10px;border:1px solid #d7e5d9;padding:10px;border-radius:10px;cursor:pointer;background:#fbfdfb}
.tht-late-person input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex-shrink:0}
.tht-late-person span{display:grid;gap:3px;font-size:13px;font-weight:700}
.tht-late-person small{font-weight:400;color:#637a68;font-size:11px}
@media(max-width:640px){.tht-ref-serve-draw{flex-direction:column;align-items:stretch}.tht-ref-serve-draw button{width:100%}}

/* v3.52.2: check in attendees and prioritize matches with four present players */
.tht-checkin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px;margin:12px 0}
.tht-checkin-person{display:flex!important;align-items:center;gap:9px;border:1px solid #cddfd4;border-radius:10px;padding:11px;background:#f8faf8;cursor:pointer;flex-wrap:wrap}
.tht-checkin-person.tht-is-arrived{background:#e9f7ed;border-color:#87caa1}
.tht-checkin-person input{width:20px;height:20px;flex-shrink:0}
.tht-checkin-person span{flex:1;min-width:105px;display:flex;flex-direction:column;gap:3px;font-size:13px}
.tht-checkin-person small{color:#637567;font-size:11px;font-weight:400}
.tht-checkin-person em{font-style:normal;font-size:11px;color:#176b49;font-weight:700}
.tht-checkin-totals{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:13px}
.tht-checkin-totals strong{color:#166c41}
.tht-checkin-totals span{color:#6b756d}
.tht-presence-flag{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:6px;font-size:11px}
.tht-presence-yes{color:#176b49;background:#e4f6e9}.tht-presence-no{color:#846b38;background:#fff5df}

.tht-fixture-presence{display:block;color:#8b6b30;font-size:11px;margin-top:4px}.tht-fixture-ready{color:#177348;font-weight:800}

/* v3.52.4 – official referee quick score and incident controls */
.tht-ref-quick{margin:14px 0;padding:14px;border:1px solid #94a3b8;border-radius:12px;background:#f8fafc}.tht-ref-quick-inputs{display:flex;align-items:center;gap:12px;margin-bottom:12px}.tht-ref-quick-inputs label{flex:1;font-weight:700}.tht-ref-quick-inputs input{width:100%;min-height:46px;font-size:22px;text-align:center}.tht-ref-quick h3{margin-top:0}.tht-subform summary{cursor:pointer}

/* v3.52.6: event management tabs, one common tab plus one per category. */
.tht-admin-tab-panel[hidden]{display:none!important}
.tht-admin-tabs .tht-admin-tab{min-width:105px}
.tht-admin-tab-panel{min-width:0;scroll-margin-top:14px}
.tht-admin-tab-panel .tht-section{margin-top:14px}
.tht-admin-tab-panel .tht-section-head h2{font-size:clamp(20px,3vw,26px)}
.tht-admin-tab-panel .tht-section-head p{overflow-wrap:anywhere}
.tht-admin-tab-panel .tht-pool{scroll-margin-top:14px}
@media(max-width:640px){.tht-admin-tabs .tht-admin-tab{min-width:92px;font-size:12px;padding:10px 9px}}

/* v3.53.9 – live tournament control panel */
.tht-ops-console{border:1px solid #a2d4b7;background:#fff;margin:15px 0 20px}
.tht-ops-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tht-ops-head h3{margin:3px 0 12px;font-size:19px;color:#15593d}
.tht-ops-head small{font-weight:800;color:#599073;letter-spacing:.1em;font-size:10px}
.tht-ops-live{display:inline-block;padding:5px 9px;border-radius:12px;background:#e5f5ed;color:#14603f;font-size:12px;font-weight:750;white-space:nowrap}
.tht-ops-stat{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:8px 0 13px}
.tht-ops-stat>div{background:#f0f7f2;border:1px solid #dceae0;border-radius:10px;padding:12px 7px;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.tht-ops-stat strong{font-size:22px;color:#15623e}.tht-ops-stat small{font-size:11px;color:#64796e}
.tht-ops-courts{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px}
.tht-ops-court{border:1px solid #dbe8df;background:#f9fcfa;border-radius:13px;padding:12px;min-width:0}
.tht-ops-court h4{margin:0 0 10px;color:#135a3b;font-size:16px}
.tht-ops-game{background:#eaf5ed;border-radius:10px;padding:11px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}
.tht-ops-court form{margin:9px 0}.tht-ops-court label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650}
.tht-ops-court select{width:100%;min-height:42px;max-width:100%;font-size:13px}
.tht-ops-court button{width:100%;white-space:normal;line-height:1.4;min-height:38px}
.tht-ops-actions{display:flex;gap:8px}.tht-ops-actions form{flex:1;min-width:0}
.tht-ops-link{font-size:12px;color:#126943;font-weight:700;display:inline-block;padding:5px 0}
.tht-ops-panel{border:1px solid #dbe8df;border-radius:10px;padding:11px;margin:12px 0;background:#fafdfa}
.tht-ops-panel>summary{font-weight:750;cursor:pointer;color:#145a3d}
.tht-ops-form-row{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:13px}
.tht-ops-form-row label{display:flex;flex:1;min-width:165px;flex-direction:column;gap:6px;font-size:12px;font-weight:700}
.tht-ops-form-row select{width:100%;min-height:40px}
.tht-ops-form-row button{min-height:41px}
.tht-ops-queue>div{padding:10px 0;border-bottom:1px solid #e2ebe4;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tht-ops-queue>div>b{font-size:13px;flex:2;min-width:200px;overflow-wrap:anywhere}
.tht-ops-queue>div>span{font-size:12px;color:#5d6f62;flex:1}
.tht-ops-queue>div>details{font-size:12px}
.tht-ops-queue>div:last-child{border-bottom:0}
.tht-ops-panel form label{display:flex;flex-direction:column;gap:5px;margin:8px 0}
.tht-ops-panel form select,.tht-ops-panel form input{max-width:100%;min-height:38px}
@media(max-width:620px){.tht-ops-stat{grid-template-columns:repeat(3,minmax(0,1fr))}.tht-ops-courts{grid-template-columns:1fr}.tht-ops-form-row{align-items:stretch}.tht-ops-form-row button{width:100%}.tht-ops-head h3{font-size:17px}}

/* v3.54.8: compact, searchable tournament-roster multi-select inside divisions. */
.tht-division-existing .tht-existing-vdv input[type="checkbox"]{width:20px!important;height:20px!important;flex:0 0 20px;padding:0!important;margin:0}
.tht-division-existing .tht-existing-vdv[hidden]{display:none!important}
.tht-division-existing .tht-existing-vdv{min-width:0}
.tht-division-existing .tht-existing-vdv-list{padding:2px;scrollbar-width:thin}

/* v3.54.9: four-person groups remain visually inside their table. */
.tht-table-group-set{border:2px solid #d4e8dc;border-radius:18px;background:#f6faf7;padding:12px;margin:18px 0}
.tht-table-group-set>h3{margin:5px 4px;color:#15543b;font-size:1.12rem}
.tht-table-group-set>.tht-note{margin:4px 4px 12px}
.tht-table-group-set>.tht-pool{margin:12px 0;background:#fff}
@media(max-width:680px){.tht-table-group-set{padding:8px}}

/* v3.54.12 – desktop-first tournament management workspace (admin only) */
.tht-admin-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start;margin:8px 0 32px}
.tht-body:has(.tht-admin-workspace) .tht-shell{max-width:1520px;padding-left:22px;padding-right:22px}
.tht-body:has(.tht-admin-workspace .tht-category-tabs) .tht-shell{padding-bottom:70px}
.tht-admin-workspace [hidden]{display:none!important}
.tht-admin-sidebar{background:#123c2d;color:#e5f6ed;border:1px solid #10412f;border-radius:18px;box-shadow:0 8px 24px #0e342217;padding:15px;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;scrollbar-width:thin}
.tht-admin-sidebar-brand{display:flex;flex-direction:column;gap:5px;padding:5px 10px 16px;border-bottom:1px solid #48715e;margin-bottom:12px}
.tht-admin-sidebar-brand>span,.tht-sidebar-divisions>small{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#abd2ba}
.tht-admin-sidebar-brand>strong{font-size:16px;line-height:1.3;color:#fff;word-break:break-word}
.tht-admin-sidebar-brand>small{font-size:11px;color:#c6e3d2}
.tht-admin-sidebar-brand .tht-pill{font-size:10px;padding:2px 7px}
.tht-workspace-nav{display:grid;gap:4px}
.tht-workspace-item,.tht-sidebar-division{font:inherit;text-align:left;cursor:pointer;border:0;transition:background .15s ease,color .15s ease}
.tht-workspace-item{display:flex;align-items:center;gap:10px;width:100%;padding:11px 10px;border-radius:10px;background:transparent;color:#c9e4d5;font-size:13px;font-weight:700}
.tht-workspace-item>span:first-child{font-size:16px;width:23px;flex:0 0 23px;text-align:center}
.tht-workspace-item:hover,.tht-workspace-item:focus-visible{background:#245943;color:#fff}
.tht-workspace-item[aria-pressed="true"]{background:#edfaf2;color:#0d5f40;box-shadow:0 2px 6px #03281724}
.tht-sidebar-divisions{border-top:1px solid #477160;margin-top:15px;padding:15px 3px 0;display:grid;gap:6px}
.tht-sidebar-division{padding:8px 10px;border-radius:9px;font-weight:650;font-size:12px;background:#1c4d3a;color:#d8f3e4;overflow-wrap:anywhere}
.tht-sidebar-division[aria-pressed="true"]{background:#3c8e63;color:#fff}
.tht-sidebar-divisions p{color:#c2d6c9;font-size:12px;margin:3px}
.tht-sidebar-return{display:block;color:#d1eddc!important;font-size:12px;text-decoration:none;margin:18px 8px 4px}
.tht-admin-main{min-width:0}
.tht-admin-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #dbe5df;border-radius:16px;padding:18px 22px;margin-bottom:14px;scroll-margin-top:16px}
.tht-admin-page-heading small{letter-spacing:1.4px;color:#53806a;font-size:10px;font-weight:800}
.tht-admin-page-heading h2{font-size:24px;line-height:1.2;margin:3px 0 5px}
.tht-admin-page-heading p{margin:0;color:#698073;font-size:13px;max-width:550px}
.tht-workspace-division-label{display:grid;gap:6px;color:#49705d;font-weight:750;font-size:12px;min-width:190px}
.tht-workspace-division-label select{padding:10px 11px;width:100%;border:1px solid #b9d3c4;border-radius:10px;background:#f7fbf8;color:#1b5138;font:inherit;font-weight:650}
.tht-admin-overview{margin:14px 0}
.tht-workspace-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.tht-workspace-metrics>div{background:#fff;border:1px solid #dbe5df;border-radius:14px;padding:15px;display:grid;gap:5px;min-width:0}
.tht-workspace-metrics strong{font-size:25px;color:#155e3e;line-height:1.2;font-weight:850}
.tht-workspace-metrics span{font-size:11px;color:#6b8175;font-weight:700}
.tht-workspace-steps{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 0}
.tht-workspace-steps button{border:1px solid #bfd9ca;background:#eff8f3;color:#176444;padding:9px 12px;border-radius:9px;font-size:12px;font-weight:700;cursor:pointer}
.tht-workspace-steps button:hover{background:#d9f0e1}
.tht-admin-workspace .tht-card{margin:12px 0}
.tht-admin-workspace .tht-pool{margin:10px 0}
.tht-admin-workspace .tht-section{margin:6px 0 15px}
.tht-admin-workspace .tht-section-head{background:#edf5f0;padding:14px;border-radius:12px;border:1px solid #d6e4da;margin:10px 0}
.tht-admin-workspace .tht-section-head h2{font-size:19px}
.tht-admin-workspace .tht-table-group-set{margin-top:12px}
.tht-admin-workspace .tht-pool-ranking-zone>.tht-overflow{max-width:100%}
.tht-admin-workspace button:focus-visible,.tht-admin-workspace select:focus-visible{outline:3px solid #65b98b;outline-offset:2px}
@media(min-width:1240px){.tht-admin-workspace{grid-template-columns:260px minmax(0,1fr);gap:24px}.tht-admin-workspace .tht-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.tht-admin-workspace{grid-template-columns:204px minmax(0,1fr);gap:12px}.tht-body:has(.tht-admin-workspace) .tht-shell{padding-left:12px;padding-right:12px}.tht-workspace-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tht-admin-page-heading{padding:14px}}
@media(max-width:720px){.tht-admin-workspace{display:block}.tht-admin-sidebar{position:static;max-height:none;margin-bottom:12px;padding:9px;border-radius:13px}.tht-admin-sidebar-brand,.tht-sidebar-divisions,.tht-sidebar-return{display:none}.tht-workspace-nav{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;padding:3px 2px 7px}.tht-workspace-item{flex:0 0 auto;width:auto;white-space:nowrap;font-size:12px;padding:9px 11px}.tht-workspace-item>span:first-child{width:auto;flex:0 0 auto}.tht-admin-page-heading{align-items:stretch;flex-direction:column;gap:9px}.tht-admin-page-heading h2{font-size:20px}.tht-workspace-division-label{min-width:0}.tht-workspace-metrics{gap:8px}.tht-workspace-metrics>div{padding:11px}.tht-workspace-metrics strong{font-size:21px}}

/* Desktop tournament list navigation */
.tht-admin-home{margin-top:12px}
.tht-admin-home .tht-admin-main>.tht-card{margin-top:0}
.tht-admin-home [hidden]{display:none!important}
.tht-admin-home .tht-quick-list-row{padding:8px 10px 14px!important;border-bottom:1px solid #e5ede7;border-radius:9px}
.tht-admin-home .tht-quick-list-row:hover{background:#f8fbf9}
.tht-admin-home .tht-list-item{padding:9px 5px}
.tht-admin-home .tht-quick-list-row summary{font-size:12px}

.tht-home-search{display:grid;gap:5px;font-size:12px;font-weight:700;color:#446d56;margin:12px 0}
.tht-home-search input{border:1px solid #bed5c4;border-radius:9px;font:inherit;padding:10px;width:100%;max-width:440px}
.tht-sidebar-division small{color:#badcc8;font-size:10px}

/* v3.54.13 – colorful, readable cards for the ACTIVE desktop tournament list only. */
.tht-admin-home .tht-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;margin:18px 0 4px}
.tht-admin-home .tht-event-grid>.tht-event-card{--event-accent:#167b65;--event-ink:#0f4e42;--event-tint:#e7f7ee;position:relative;isolation:isolate;overflow:hidden;min-width:0;margin:0;padding:21px 21px 14px!important;border:1px solid color-mix(in srgb,var(--event-accent) 22%,white)!important;border-radius:18px!important;background:linear-gradient(125deg,var(--event-tint),#fff 85%)!important;box-shadow:0 5px 20px #183c2a12;transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}
.tht-admin-home .tht-event-card::before{content:"";position:absolute;z-index:-1;width:160px;height:160px;right:-83px;top:-90px;border-radius:50%;background:var(--event-accent);opacity:.10;pointer-events:none}
.tht-admin-home .tht-event-card:hover{transform:translateY(-3px);box-shadow:0 13px 30px #183c2a20;border-color:color-mix(in srgb,var(--event-accent) 43%,white)!important}
.tht-admin-home .tht-event-card--color-0{--event-accent:#19866d;--event-ink:#10533f;--event-tint:#e6f7ee}
.tht-admin-home .tht-event-card--color-1{--event-accent:#2879c4;--event-ink:#1d4f85;--event-tint:#eaf4ff}
.tht-admin-home .tht-event-card--color-2{--event-accent:#8761c5;--event-ink:#563b92;--event-tint:#f2eefe}
.tht-admin-home .tht-event-card--color-3{--event-accent:#cf7c27;--event-ink:#805018;--event-tint:#fff4e4}
.tht-admin-home .tht-event-card--color-4{--event-accent:#ce5f80;--event-ink:#884159;--event-tint:#fff0f4}
.tht-admin-home .tht-event-card-header{display:flex;align-items:center;gap:9px;margin:0 0 17px;min-width:0}
.tht-admin-home .tht-event-card-emblem{display:grid;place-items:center;flex:none;width:37px;height:37px;border-radius:12px;background:color-mix(in srgb,var(--event-accent) 14%,white);font-size:20px}
.tht-admin-home .tht-event-card-eyebrow{font-size:10px;letter-spacing:1.1px;font-weight:850;color:var(--event-ink);flex:1;min-width:0}
.tht-admin-home .tht-event-card-header .tht-pill{font-size:11px;font-weight:800;padding:6px 10px;margin:0;white-space:nowrap;box-shadow:0 1px 4px #132f2012}
.tht-admin-home .tht-event-card-header .tht-pill.tht-draft{background:#fff;color:#5c675f;border:1px solid #d9e4d9}
.tht-admin-home .tht-event-card-header .tht-pill.tht-live{background:#d9f6e7;color:#0c6c3a;border:1px solid #a6e0bd}
.tht-admin-home .tht-event-card-title{margin:0 0 13px!important;font-size:clamp(18px,1.65vw,22px)!important;line-height:1.35;letter-spacing:-.3px;overflow-wrap:anywhere;min-height:2.5em}
.tht-admin-home .tht-event-card-title a{text-decoration:none;color:#1b3027}
.tht-admin-home .tht-event-card-title a:hover{color:var(--event-ink)}
.tht-admin-home .tht-event-card-title a:focus-visible{outline:3px solid var(--event-accent);outline-offset:3px;border-radius:4px}
.tht-admin-home .tht-event-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;min-height:25px;font-size:12px;color:#4d6156;font-weight:650}
.tht-admin-home .tht-event-card-meta span{overflow-wrap:anywhere}
.tht-admin-home .tht-event-card-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;padding:17px 0 15px;margin-top:16px;border-top:1px solid color-mix(in srgb,var(--event-accent) 17%,white)}
.tht-admin-home .tht-event-card-open,.tht-admin-home .tht-event-card-quick-finish{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none!important;border-radius:10px;padding:10px 14px;font-size:12px;font-weight:850;line-height:1.35;transition:filter .15s ease}
.tht-admin-home .tht-event-card-open{background:var(--event-ink);color:white!important;box-shadow:0 3px 7px #173c2a16}
.tht-admin-home .tht-event-card-open:hover{filter:brightness(1.14)}
.tht-admin-home .tht-event-card-quick-finish{background:#fff;color:var(--event-ink);border:1px solid color-mix(in srgb,var(--event-accent) 30%,white)}
.tht-admin-home .tht-event-card-quick-finish:hover{filter:brightness(.97)}
.tht-admin-home .tht-event-card-tools{margin:0;border-top:1px solid color-mix(in srgb,var(--event-accent) 13%,white);font-size:12px}
.tht-admin-home .tht-event-card-tools>summary{font-size:11px!important;font-weight:700;color:#596e61;padding:11px 1px;list-style-position:inside}
.tht-admin-home .tht-event-card-tools[open]>summary{color:var(--event-ink)}
.tht-admin-home .tht-event-card-tools-body{background:#fff;border:1px solid #e5eee8;border-radius:11px;padding:8px 12px 12px;margin-bottom:8px}
.tht-admin-home .tht-event-card-tools-body>.tht-subform{margin:0!important;padding:5px 0 10px}
.tht-admin-home .tht-event-card-tools-body>.tht-danger{margin:6px 0 0;padding:9px 10px}
.tht-admin-home .tht-event-card-tools-body>.tht-subform>summary,.tht-admin-home .tht-event-card-tools-body>.tht-danger>summary{font-size:12px!important}
.tht-admin-home .tht-event-card-tools .tht-fields{grid-template-columns:1fr}
.tht-admin-home .tht-event-card-tools input,.tht-admin-home .tht-event-card-tools button{max-width:100%}
@media(max-width:1120px){.tht-admin-home .tht-event-grid{grid-template-columns:1fr}}
@media(max-width:720px){.tht-admin-home .tht-event-grid{gap:11px;margin-top:12px}.tht-admin-home .tht-event-grid>.tht-event-card{padding:17px 16px 9px!important}.tht-admin-home .tht-event-card-title{font-size:18px!important;min-height:0}.tht-admin-home .tht-event-card-header{margin-bottom:12px}.tht-admin-home .tht-event-card-actions{margin-top:12px;padding:13px 0}}
@media(prefers-reduced-motion:reduce){.tht-admin-home .tht-event-grid>.tht-event-card{transition:none}.tht-admin-home .tht-event-card:hover{transform:none}}


/* v3.54.14 – rich-color active tournament cards (full-surface gradient, white lettering).
   The earlier v3.54.13 tint faded to white, making colors imperceptible on desktop. */
.tht-admin-home .tht-event-grid>.tht-event-card{
  --event-start:#075b50;--event-end:#0c806f;--event-ink:#075b50;
  background:linear-gradient(135deg,var(--event-start) 0%,var(--event-end) 100%)!important;
  color:#fff!important;border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 8px 22px rgba(24,46,40,.19),inset 0 1px 0 rgba(255,255,255,.16)
}
.tht-admin-home .tht-event-grid>.tht-event-card:hover{
  background:linear-gradient(135deg,var(--event-start) 0%,var(--event-end) 100%)!important;
  box-shadow:0 13px 31px rgba(24,46,40,.24),inset 0 1px 0 rgba(255,255,255,.2);
  border-color:rgba(255,255,255,.35)!important
}
.tht-admin-home .tht-event-grid>.tht-event-card.tht-event-card--color-0{--event-start:#075b50;--event-end:#0c806f;--event-ink:#075b50}
.tht-admin-home .tht-event-grid>.tht-event-card.tht-event-card--color-1{--event-start:#144780;--event-end:#1e69af;--event-ink:#164c86}
.tht-admin-home .tht-event-grid>.tht-event-card.tht-event-card--color-2{--event-start:#56318e;--event-end:#7343b3;--event-ink:#56318e}
.tht-admin-home .tht-event-grid>.tht-event-card.tht-event-card--color-3{--event-start:#79430e;--event-end:#a7681e;--event-ink:#79430e}
.tht-admin-home .tht-event-grid>.tht-event-card.tht-event-card--color-4{--event-start:#832d56;--event-end:#ad3d72;--event-ink:#832d56}
.tht-admin-home .tht-event-card::before{
  z-index:0;right:-92px;top:-103px;width:188px;height:188px;
  background:rgba(255,255,255,.12);opacity:1;
  border:1px solid rgba(255,255,255,.12)
}
.tht-admin-home .tht-event-card-header,
.tht-admin-home .tht-event-card-title,
.tht-admin-home .tht-event-card-meta,
.tht-admin-home .tht-event-card-actions,
.tht-admin-home .tht-event-card-tools{position:relative;z-index:1}
.tht-admin-home .tht-event-card-emblem{
  background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.24)
}
.tht-admin-home .tht-event-card-eyebrow{color:#fff!important}
.tht-admin-home .tht-event-card-title a,
.tht-admin-home .tht-event-card-title a:hover{color:#fff!important}
.tht-admin-home .tht-event-card-title a:focus-visible{outline-color:#fff}
.tht-admin-home .tht-event-card-meta{color:rgba(255,255,255,.94)!important}
.tht-admin-home .tht-event-card-actions,
.tht-admin-home .tht-event-card-tools{border-top-color:rgba(255,255,255,.25)!important}
.tht-admin-home .tht-event-card-open{
  background:#fff!important;color:var(--event-ink)!important;
  box-shadow:0 3px 10px rgba(0,0,0,.1)
}
.tht-admin-home .tht-event-card-quick-finish{
  background:rgba(255,255,255,.16)!important;color:#fff!important;
  border:1px solid rgba(255,255,255,.65)!important
}
.tht-admin-home .tht-event-card-quick-finish:hover{background:rgba(255,255,255,.26)!important}
.tht-admin-home .tht-event-card-tools>summary,
.tht-admin-home .tht-event-card-tools[open]>summary{color:#fff!important}
.tht-admin-home .tht-event-card-tools-body{
  background:#fff;color:#20332b!important;border-color:#dce8e0;
  box-shadow:0 2px 10px rgba(0,0,0,.09)
}
.tht-admin-home .tht-event-card-tools-body input,
.tht-admin-home .tht-event-card-tools-body select,
.tht-admin-home .tht-event-card-tools-body textarea{background:#fff;color:#20332b}


/* v3.54.15 – direct Clone/Delete actions in the active tournament card toolbar. */
.tht-admin-home .tht-event-card-actions{gap:8px;align-items:stretch;padding-bottom:14px}
.tht-admin-home .tht-event-card-actions>a,
.tht-admin-home .tht-event-card-actions>.tht-event-card-toggle{
  flex:1 1 auto;min-width:88px;min-height:42px;max-width:100%;white-space:nowrap;
  display:inline-flex;justify-content:center;align-items:center;gap:5px;
  padding:10px 11px;font-size:11px;line-height:1.25;font-weight:800;
  border-radius:10px;text-align:center;text-decoration:none!important;
}
.tht-admin-home .tht-event-card-actions>.tht-event-card-toggle{
  appearance:none;cursor:pointer;background:rgba(255,255,255,.17)!important;
  color:#fff!important;border:1px solid rgba(255,255,255,.7)!important;
  font-family:inherit;transition:background .15s ease,box-shadow .15s ease;
}
.tht-admin-home .tht-event-card-actions>.tht-event-card-toggle:hover,
.tht-admin-home .tht-event-card-actions>.tht-event-card-toggle[aria-expanded="true"]{
  background:rgba(255,255,255,.30)!important;
}
.tht-admin-home .tht-event-card-actions>.tht-event-card-delete{
  background:#fff1ef!important;color:#992e25!important;border-color:#ffc7c1!important;
}
.tht-admin-home .tht-event-card-actions>.tht-event-card-delete:hover,
.tht-admin-home .tht-event-card-actions>.tht-event-card-delete[aria-expanded="true"]{
  background:#ffddd8!important;color:#86251d!important;
}
.tht-admin-home .tht-event-card-actions>.tht-event-card-toggle:focus-visible{
  outline:3px solid #fff;outline-offset:3px;
}
.tht-admin-home .tht-event-card-panels{position:relative;z-index:2}
.tht-admin-home .tht-event-card-panel[hidden]{display:none!important}
.tht-admin-home .tht-event-card-panel{
  padding:15px;margin:3px 0 8px;border:1px solid #e4ece7;border-radius:12px;
  background:#fff;color:#20332b;box-shadow:0 7px 16px rgba(8,38,28,.14);
}
.tht-admin-home .tht-event-card-panel--delete{border:2px solid #f5c0b7;background:#fffafa}
.tht-admin-home .tht-event-card-panel h4{margin:0 0 10px!important;font-size:14px!important;color:#163e2c}
.tht-admin-home .tht-event-card-panel--delete h4{color:#a33426}
.tht-admin-home .tht-event-card-panel .tht-fields{grid-template-columns:1fr}
.tht-admin-home .tht-event-card-panel input:not([type="checkbox"]){max-width:100%;width:100%}
.tht-admin-home .tht-event-card-panel .tht-form{margin:0}
.tht-admin-home .tht-event-card-panel .tht-note{color:#4b6258}
@media(max-width:720px){
  .tht-admin-home .tht-event-card-actions{gap:7px}
  .tht-admin-home .tht-event-card-actions>a,
  .tht-admin-home .tht-event-card-actions>.tht-event-card-toggle{flex:1 1 calc(50% - 4px);font-size:11px;padding:10px 8px;min-width:0}
}

/* Keep the decorative circle from turning a clipped card into a sideways scroll container. */
.tht-admin-home .tht-event-grid>.tht-event-card{overflow:clip!important}
.tht-admin-home .tht-event-card-panel label:has(input[type="checkbox"]){display:flex!important;align-items:center;gap:9px;flex-wrap:wrap}
.tht-admin-home .tht-event-card-panel input[type="checkbox"]{width:16px;height:16px;min-width:16px;flex:none;margin:0}

/* v3.54.16: one compact, actionable event-wide VĐV list. */
.tht-roster-card{border-color:#bfd9cd}
.tht-roster-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:13px}
.tht-roster-heading h2{margin:0 0 5px}
.tht-roster-search-label{display:grid;gap:4px;min-width:220px;color:#256045;font-size:12px;font-weight:700}
.tht-roster-search-label input{padding:10px 11px;border:1px solid #b7d4c5;border-radius:9px;min-width:180px}
.tht-roster-list{display:grid;border:1px solid #e0eae3;border-radius:12px;overflow:hidden}
.tht-roster-row{display:grid;grid-template-columns:minmax(155px,.9fr) minmax(160px,1.35fr) minmax(275px,1.7fr);gap:13px;align-items:center;padding:11px 13px;border-bottom:1px solid #e0eae3;background:#fff;min-width:0}
.tht-roster-row:nth-child(even){background:#f5faf7}
.tht-roster-row:last-child{border-bottom:0}
.tht-roster-header{background:#e9f4ed!important;color:#31634c;font-size:12px;font-weight:800;padding:10px 13px}
.tht-roster-identity{display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap;min-width:0}
.tht-roster-identity b{color:#193e2d;font-size:14px}
.tht-roster-identity small{color:#668071;white-space:nowrap;font-size:11px}
.tht-roster-categories{font-size:12px;color:#4d685b;line-height:1.6}
.tht-roster-late-tag,.tht-roster-present-tag{font-style:normal;border-radius:20px;font-size:10px;font-weight:800;padding:3px 7px;background:#fff2d8;color:#946011;white-space:nowrap}
.tht-roster-present-tag{background:#e0f7e9;color:#1c7749}
.tht-roster-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tht-roster-actions .tht-form{margin:0}
.tht-roster-action{font:inherit!important;font-size:12px!important;font-weight:760!important;padding:8px 10px!important;border-radius:9px!important;border:1px solid #a8cfb9!important;background:#e8f6ee!important;color:#155f3e!important;cursor:pointer;white-space:nowrap}
.tht-roster-action-late{background:#fff6e4!important;color:#8b5b11!important;border-color:#eddaa3!important}
.tht-roster-action-remove{background:#fff1ef!important;color:#9c302b!important;border-color:#f0c3be!important}
.tht-roster-action[aria-expanded=true]{outline:2px solid #267c59;outline-offset:1px}
.tht-roster-panel{grid-column:1/-1;background:#f4f8f5;border:1px solid #d3e5d8;padding:14px 16px;border-radius:10px;min-width:0}
.tht-roster-panel[hidden],.tht-roster-row[hidden]{display:none!important}
.tht-roster-panel .tht-form{max-width:680px;display:grid;gap:9px}
.tht-roster-panel .tht-form>label{max-width:480px}
.tht-roster-panel .tht-primary,.tht-roster-panel .tht-danger-button{justify-self:start;cursor:pointer}
.tht-roster-confirm{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px}
.tht-roster-confirm input{width:18px!important;flex:0 0 18px}
@media(max-width:980px){.tht-roster-row{grid-template-columns:minmax(145px,1fr) minmax(190px,1.3fr)}.tht-roster-header span:nth-child(3){display:none}.tht-roster-actions{grid-column:1/-1}.tht-roster-panel{grid-column:1/-1}}
@media(max-width:600px){.tht-roster-row{display:flex;flex-direction:column;align-items:stretch;gap:7px}.tht-roster-header{display:none}.tht-roster-search-label{width:100%}.tht-roster-actions{display:flex}.tht-roster-action{font-size:11px!important;padding:8px!important}.tht-roster-panel{width:100%}}

/* v3.54.17: desktop-focused roster checkboxes and bulk toolbar. */
.tht-roster-card .tht-roster-row{grid-template-columns:36px minmax(220px,1.4fr) minmax(240px,1.2fr);gap:12px}
.tht-roster-select-col{display:flex;align-items:center;justify-content:center}
.tht-roster-select-col input{width:19px!important;height:19px!important;accent-color:#137350;cursor:pointer;margin:0!important}
.tht-roster-identity{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.tht-roster-person-top{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px}
.tht-roster-categories{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.tht-roster-category-tag{background:#e9f3ff;border:1px solid #c4ddfa;color:#205385;display:inline-block;font-size:11px;font-weight:700;padding:3px 8px;border-radius:7px;line-height:1.4}
.tht-roster-category-empty{font-size:11px;color:#938048;font-style:italic}
.tht-roster-row.tht-roster-is-selected{background:#eaf9ee!important;box-shadow:inset 3px 0 #249662}
.tht-roster-bulk-form{border:1px solid #c7dfd0;padding:12px 14px;border-radius:13px;background:#f1faf5;margin:10px 0 14px!important}
.tht-roster-bulk-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.tht-roster-bulk-status{display:flex;align-items:center;gap:10px;font-size:12px;color:#205c3e}
.tht-roster-bulk-status button{background:transparent;border:0;text-decoration:underline;color:#345f4d;cursor:pointer;font-weight:600}
.tht-roster-bulk-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.tht-roster-bulk-actions button:disabled,.tht-roster-bulk-form button:disabled{opacity:.4;cursor:not-allowed!important}
.tht-roster-bulk-categories{margin-top:12px;border-top:1px solid #cfe3d7;padding-top:12px}
.tht-roster-bulk-categories[hidden]{display:none!important}
.tht-roster-bulk-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:7px}
.tht-roster-category-option{display:flex!important;align-items:flex-start!important;gap:9px;background:#fff;border:1px solid #d5e6da;border-radius:9px;padding:10px!important;cursor:pointer}
.tht-roster-category-option input,.tht-roster-assignment-modes input{width:17px!important;height:17px!important;flex:none;margin:1px 0!important;accent-color:#168057}
.tht-roster-category-option span{display:flex;flex-direction:column;gap:3px;min-width:0}
.tht-roster-category-option b{font-size:12px;color:#1e5135}
.tht-roster-category-option small{font-size:10px;color:#557263}
.tht-roster-assignment-modes{display:flex;gap:10px 20px;flex-wrap:wrap;margin:12px 0}
.tht-roster-assignment-modes label{display:flex!important;align-items:center!important;gap:7px;font-size:12px;font-weight:600;color:#275541;cursor:pointer}
.tht-roster-bulk-categories>.tht-primary{margin-top:1px;cursor:pointer}
@media(max-width:980px){.tht-roster-card .tht-roster-row{grid-template-columns:28px minmax(200px,1fr)}.tht-roster-card .tht-roster-actions{grid-column:2/-1}.tht-roster-card .tht-roster-panel{grid-column:1/-1}}
@media(max-width:600px){.tht-roster-card .tht-roster-header{display:none!important}.tht-roster-card .tht-roster-row{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:start;gap:6px 10px}.tht-roster-card .tht-roster-row .tht-roster-select-col{grid-column:1;grid-row:1}.tht-roster-card .tht-roster-identity{grid-column:2;grid-row:1}.tht-roster-card .tht-roster-actions{grid-column:2;grid-row:2}.tht-roster-card .tht-roster-panel{grid-column:1/-1}.tht-roster-bulk-actions{width:100%}.tht-roster-bulk-actions button{flex:1 1 auto;white-space:normal}}

/* v3.54.18 — tournament operations: action-focused navigation and unified physical courts. */
.tht-workspace-checklist{background:linear-gradient(140deg,#f6fbf8,#fff)!important;border:1px solid #c8e0d2!important}
.tht-workspace-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:9px;margin:12px 0 5px}
.tht-check-step{appearance:none;width:100%;display:flex;gap:10px;align-items:flex-start;text-align:left;border:1px solid #d5e8dc;border-radius:12px;padding:13px!important;background:#fff;color:#1e4332;cursor:pointer;line-height:1.45;font-family:inherit}
.tht-check-step:hover{border-color:#16805b;background:#f1faf5;box-shadow:0 4px 16px rgba(12,82,58,.08)}
.tht-check-step>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.tht-check-step strong{font-size:13px;color:#174634}
.tht-check-step small{font-size:12px;color:#567466}
.tht-check-step em{font-size:11px;font-style:normal;color:#687f73}
.tht-check-symbol{border-radius:50%;width:23px;height:23px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:#f1f5f0;color:#647a68;font-weight:800}
.tht-check-step.is-done .tht-check-symbol{background:#c8ead7;color:#136441}
.tht-check-step.is-next .tht-check-symbol{background:#fff0c7;color:#8a6510}
.tht-hub-warning{padding:8px 11px;border:1px solid #f1d7a7!important;background:#fff8e8!important;color:#7b5318!important;border-radius:9px;font-size:12px;line-height:1.55;margin:7px 0}
.tht-event-court-hub{padding:20px!important;border:1px solid #bcd7ca!important;background:#f9fdfb!important}
.tht-hub-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.tht-hub-heading small{color:#17714e;font-size:10px;letter-spacing:.12em;font-weight:800}
.tht-hub-heading h3,.tht-hub-heading h2{font-size:20px;margin:3px 0 5px;color:#174735}
.tht-hub-heading p{font-size:12px;margin:4px 0 12px;color:#587164}
.tht-refresh-hub{white-space:nowrap;cursor:pointer}
.tht-global-courts{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:13px 0 16px}
.tht-global-court{border-radius:13px;background:#fff;border:1px solid #cce1d5;box-shadow:0 3px 11px rgba(21,79,53,.06);padding:12px 13px;min-width:0}
.tht-global-court--free{background:#f4fbf6;border-color:#bbdfc5}
.tht-global-court--called{background:#f3f7ff;border-color:#b5d2f7}
.tht-global-court--live{background:#fffbf1;border-color:#eed29c}
.tht-global-court--conflict{background:#fff3f2;border:2px solid #e3978e}
.tht-global-court-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:9px}
.tht-global-court-title b{font-size:15px;color:#173f2e}
.tht-global-court-title span{font-size:10px;font-weight:800;padding:5px 8px;border-radius:25px;background:#e2eee6;color:#2a694b}
.tht-global-court--live .tht-global-court-title span{background:#ffebbd;color:#79510a}
.tht-global-court--called .tht-global-court-title span{background:#d8e9ff;color:#21548a}
.tht-global-court--conflict .tht-global-court-title span{background:#ffdddd;color:#a62d2d}
.tht-global-court>p{font-size:12px;line-height:1.5;color:#6b7c71;margin:8px 0}
.tht-global-game{border-top:1px solid #dce8df;padding-top:9px;margin-top:8px;display:grid;gap:5px}
.tht-global-game small{color:#51715c;font-size:11px}
.tht-global-game strong{line-height:1.55;overflow-wrap:anywhere;font-size:12px;color:#173b2c}
.tht-global-game button{border:1px solid #bad8c7;background:#fff;border-radius:8px;padding:8px 10px;color:#145439;font-weight:800;cursor:pointer;font-size:11px;justify-self:start}
.tht-event-court-hub h4{font-size:14px;margin:12px 0 8px;color:#214d37}
.tht-hub-division-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:9px}
.tht-hub-division{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:11px 12px;background:#fff;border:1px solid #dceae0;border-radius:10px}
.tht-hub-division>div{display:grid;gap:3px;min-width:0}
.tht-hub-division b{font-size:12px;color:#1b4833}
.tht-hub-division small{font-size:11px;color:#56725e}
.tht-hub-division button{white-space:nowrap;font-size:11px;padding:7px 9px!important;cursor:pointer}
.tht-hub-footnote{font-size:11px;line-height:1.6;border-top:1px solid #d8e9dd;margin:13px 0 0;padding-top:11px;color:#597161}
.tht-ops-court-conflict{border:2px solid #e6bf82!important;background:#fffaf1!important}
.tht-pool-navigator{background:#f5f9f7;border:1px solid #cddfd5;border-radius:13px;padding:13px;margin:10px 0 17px}
.tht-pool-nav-title{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin-bottom:11px}
.tht-pool-nav-title b{font-size:13px;color:#184f37}
.tht-pool-nav-title span{font-size:11px;color:#668170}
.tht-pool-nav-items{display:flex;flex-wrap:wrap;gap:7px}
.tht-pool-nav-items button{display:grid;gap:3px;min-width:105px;max-width:260px;text-align:left;font-family:inherit;font-size:12px;line-height:1.35;font-weight:750;background:#fff;color:#24604a;border:1px solid #c7decf;padding:9px 12px;border-radius:10px;cursor:pointer}
.tht-pool-nav-items button small{font-size:10px;color:#647f6c;font-weight:500}
.tht-pool-nav-items button[aria-pressed="true"]{background:#155c42;border-color:#155c42;color:#fff;box-shadow:0 2px 8px rgba(15,88,61,.14)}
.tht-pool-nav-items button[aria-pressed="true"] small{color:#e6f4e9}
.tht-pool[data-tht-pool-id]{scroll-margin-top:20px}
.tht-ops-console{scroll-margin-top:20px}
@media(max-width:720px){.tht-global-courts{grid-template-columns:1fr}.tht-hub-division-list{grid-template-columns:1fr}.tht-event-court-hub{padding:13px!important}.tht-workspace-check-grid{grid-template-columns:1fr}.tht-hub-division{flex-wrap:wrap}.tht-pool-nav-items button{flex:1 1 calc(50% - 8px);min-width:0}}
.tht-timetable-folder{margin:12px 0;border:1px solid #d8e4dc;border-radius:12px;padding:12px 14px;background:#fff}
.tht-timetable-folder>summary,.tht-pool-advanced>summary{font-size:13px;font-weight:800;color:#275e45;cursor:pointer;padding:4px 2px;list-style-position:inside}
.tht-timetable-folder>.tht-card{margin:10px 0 0!important;box-shadow:none}
.tht-pool-advanced{padding:12px;border:1px solid #e1eae3;border-radius:11px;background:#fafdfb;margin:12px 0}
.tht-pool-advanced[open]{background:#f5faf6}
.tht-inline-go{font:inherit;font-size:12px;font-weight:800;color:#156d4c;text-decoration:underline;background:transparent;border:0;cursor:pointer;padding:0 2px}

/* v3.54.19: compact three-level tournament setup. Presentation only. */
.tht-admin-workspace .tht-sidebar-divisions{display:none!important} /* single category selector in the header */
.tht-structure-guide{border:1px solid #cbded2;border-radius:14px;padding:13px 15px;margin:10px 0;background:linear-gradient(110deg,#eaf6ef,#f9fcfa)}
.tht-structure-path{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;color:#245f44;font-size:12px;font-weight:750}
.tht-structure-path span:not(.tht-structure-chevron){display:flex;align-items:center;gap:6px}
.tht-structure-path b{background:#176b49;color:white;border-radius:50%;width:21px;height:21px;display:inline-grid;place-items:center;font-size:11px}
.tht-structure-guide p{font-size:12px;color:#557365;margin:9px 0 0}
.tht-pool-navigator{background:#fff;border:1px solid #d9e7de;padding:16px;margin:13px 0}
.tht-structure-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}
.tht-structure-head h3{margin:0 0 3px;font-size:18px;color:#173f2d}
.tht-structure-head p{margin:0;font-size:12px;color:#668075}
.tht-structure-view{display:flex;gap:6px;align-items:center}
.tht-structure-view button{border:1px solid #c4d9cd;border-radius:9px;background:#f5faf7;padding:8px 10px;color:#236449;cursor:pointer;font-family:inherit;font-size:12px;line-height:1.3;font-weight:700;white-space:nowrap}
.tht-structure-view button[aria-pressed="true"]{background:#175e43;color:white;border-color:#175e43}
.tht-structure-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tht-structure-table{border:1px solid #cfdfd4;border-radius:13px;padding:12px;background:#f7fbf8;min-width:0}
.tht-structure-table-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px 10px;padding:0 2px 9px;border-bottom:1px solid #dce8e0}
.tht-structure-table-head strong{font-size:14px;color:#1b513a}
.tht-structure-table-head small{font-size:11px;color:#5b7566}
.tht-structure-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.tht-structure-group{position:relative;min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;border:1px solid #d4e4da;border-radius:10px;background:white;padding:11px 23px 11px 10px;cursor:pointer;font:inherit}
.tht-structure-group strong{font-size:13px;color:#21543b}
.tht-structure-group small{font-size:11px;color:#6e8577}
.tht-structure-group>span{position:absolute;right:9px;top:11px;color:#7c9d88}
.tht-structure-group:hover,.tht-structure-group:focus-visible{border-color:#39896a;outline:2px solid #d8f0e3;outline-offset:1px}
.tht-structure-group[aria-pressed="true"]{background:#176b49;border-color:#176b49}
.tht-structure-group[aria-pressed="true"] strong,.tht-structure-group[aria-pressed="true"] small,.tht-structure-group[aria-pressed="true"]>span{color:white}
.tht-structure-tip{font-size:11px;color:#6a8072;margin:12px 2px 0}
.tht-admin-workspace[data-active-screen="tables"] .tht-pool{border-left-width:3px;border-left-color:#2b9c69}
.tht-admin-workspace[data-active-screen="tables"] .tht-table-group-set{background:transparent;border:0;padding:0;margin:0}
.tht-admin-workspace[data-active-screen="tables"] .tht-table-group-set>.tht-pool{margin:10px 0}
.tht-plan-advanced{border:1px solid #e0eae3;border-radius:10px;background:#f8fbf9;padding:10px 12px;margin:9px 0}
.tht-plan-advanced summary{font-size:13px;color:#2b6045;cursor:pointer;font-weight:750}
@media(max-width:900px){.tht-structure-board{grid-template-columns:1fr}.tht-structure-head{flex-direction:column}.tht-structure-view{width:100%}}
@media(max-width:540px){.tht-structure-guide{padding:11px}.tht-structure-groups{grid-template-columns:1fr 1fr}.tht-structure-group{padding:9px 20px 9px 8px}}

/* v3.54.34 – Desktop tournament drag/drop cockpit. */
.tht-dnd-board{margin:16px 0 22px!important;border:1px solid #d7e4ef!important;background:#f8fbfe!important}
.tht-dnd-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.tht-dnd-head h3,.tht-dnd-head h2{margin:0 0 4px;color:#16394f}.tht-dnd-head p{margin:0}
.tht-dnd-totals{padding:8px 14px;border-radius:11px;background:#e1f5ec;color:#10563f;display:flex;gap:7px;align-items:center}
.tht-dnd-totals strong{font-size:21px}.tht-dnd-totals span{font-size:12px}
.tht-dnd-subhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;font-size:14px}
.tht-dnd-subhead span{color:#64748b}
.tht-dnd-waiting{padding:12px;border:1px dashed #9cb6c7;background:#fff;border-radius:12px;margin-bottom:14px}
.tht-dnd-people{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px;min-height:34px}
.tht-dnd-chip{display:inline-flex;gap:7px;align-items:center;border:1px solid #d6e4ee;background:white;color:#183748;border-radius:9px;padding:7px 9px;font-size:12px;line-height:1.25;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.tht-dnd-chip small{font-size:10px;white-space:nowrap;color:#167a58}.tht-dnd-chip.is-pending{background:#fff8e8;color:#7d562e}.tht-dnd-chip.is-pending small{color:#af7234}
.tht-dnd-chip.is-draggable{cursor:grab;touch-action:pan-y}.tht-dnd-chip.is-dragging{opacity:.36}.tht-dnd-grip{font-size:14px;color:#64748b;letter-spacing:-3px}
.tht-dnd-table-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:12px}
.tht-dnd-table{background:white;border:1px solid #d4e3ee;border-radius:12px;min-width:0;padding:12px}
.tht-dnd-table h4{margin:0 0 10px;font-size:14px;font-weight:800;color:#183e50}
.tht-dnd-pools{display:grid;gap:9px}.tht-dnd-pool{border:1px solid #d7e5ed;border-radius:10px;background:#f8fafc;padding:9px;min-height:97px;transition:background .15s,border-color .15s}
.tht-dnd-pool.is-drop-target{outline:2px solid #0e8a68;background:#e5f9f1;border-color:#0e8a68}.tht-dnd-pool-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:9px}
.tht-dnd-pool-head strong{font-size:13px;color:#14516a}.tht-dnd-pool-head small{color:#64748b;font-size:11px;white-space:nowrap}
.tht-dnd-placeholder{color:#94a3b8;font-size:11px}.tht-dnd-pool-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px}.tht-dnd-pool-actions form{margin:0}
.tht-dnd-pool-actions button{font-size:11px!important;padding:6px 9px!important;line-height:1.3}
.tht-dnd-empty{padding:20px;background:#f0f6fa;border-radius:12px;color:#64748b}.tht-dnd-foot{margin-top:14px!important;font-size:12px}
.tht-action-arrived{background:#dff5e9!important;border:1px solid #9fd8b9!important;color:#1b6c4b!important}
.tht-roster-pending-tag{font-style:normal;color:#92642e;background:#fff2db;border-radius:6px;font-size:11px;padding:3px 6px}
.tht-fixture-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:14px}
.tht-fixture-toolbar label{display:grid;gap:5px;font-size:12px;font-weight:700}.tht-fixture-toolbar select,.tht-fixture-toolbar input{border:1px solid #d8e3ed;border-radius:9px;min-height:38px;padding:7px 10px}
.tht-fixture-grid{display:grid;gap:7px}.tht-fixture-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid #e0e9ef;border-radius:11px;background:#fff}
.tht-fixture-row small{display:block;font-size:11px;color:#64748b;margin-bottom:5px}.tht-fixture-row strong{color:#183748;font-size:13px}.tht-fixture-row strong span{font-size:10px;color:#94a3b8;padding:0 4px}
.tht-fixture-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.tht-fixture-pill{font-size:11px;padding:5px 7px;border-radius:7px;background:#f1f5f9;color:#475569}.tht-fixture-live{background:#fee2e2;color:#ae2929}.tht-fixture-finished{background:#dcfce7;color:#166534}
.tht-fixture-counts{background:#eff6fb;border-radius:9px;padding:9px 12px;font-size:12px}
[data-active-screen="groups"] .tht-dnd-board [data-tht-group-card="0"]{display:none}
@media(max-width:700px){.tht-dnd-table-grid{grid-template-columns:1fr}.tht-dnd-head{align-items:stretch}.tht-fixture-row{align-items:flex-start;flex-direction:column}.tht-fixture-right{width:100%;justify-content:space-between}.tht-dnd-pool-actions button{padding:9px!important}}

.tht-dnd-late-box{margin:12px 0;padding:12px 14px;background:#eaf6f1;border:1px solid #b1d9c8;border-radius:12px}.tht-dnd-late-box b{color:#136447}.tht-dnd-late-box p{margin:6px 0 11px}.tht-dnd-late-box form{margin:0}

/* v3.54.35: event-wide category → table → group board */
.tht-structure-unified{background:#f6f9fc!important;border-color:#d7e4ed!important}
.tht-structure-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:14px;margin-top:14px;align-items:start}
.tht-structure-category{padding:14px;border:1px solid #cadde8;border-radius:14px;background:#fff;min-width:0;box-shadow:0 2px 5px #0c32500a}
.tht-structure-category-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.tht-structure-category-head h3{font-size:16px;margin:0;color:#10425a}
.tht-structure-category-head span{display:block;font-size:12px;color:#64748b;margin-top:4px}
.tht-structure-category-head button{white-space:nowrap;font-size:12px!important;padding:7px 9px!important}
.tht-structure-free,.tht-structure-wait,.tht-structure-group{background:#f7fafc;border:1px dashed #b1c9d6;border-radius:10px;padding:10px;min-height:80px}
.tht-structure-free{margin-bottom:14px;background:#edf8f4}
.tht-structure-free>summary{font-weight:700;cursor:pointer;padding:3px 0 8px;color:#155c53}
.tht-structure-chips{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;min-height:34px}
.tht-structure-person{font-size:12px;display:flex;gap:7px;align-items:center;border:1px solid #d2e0e7;border-radius:8px;padding:7px 8px;background:#fff;color:#153d4f;box-shadow:0 1px 2px #0a345010}
.tht-structure-person small{font-size:10px;color:#168362}.tht-structure-person.is-draggable{cursor:grab}.tht-structure-person.is-dragging{opacity:.4}
.tht-structure-person.is-pending{background:#fff6e7;color:#865922}.tht-structure-person.is-pending small{color:#c17d2d}
.tht-structure-wait{margin-bottom:10px}.tht-structure-tables{display:grid;gap:10px}
.tht-structure-table{padding:10px;background:#eff5f9;border:1px solid #d3e1ec;border-radius:11px}
.tht-structure-table-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:13px;color:#194c65}
.tht-structure-table-head small{color:#668296;font-size:11px}.tht-structure-groups{display:grid;gap:7px}
.tht-structure-group{border-style:solid;background:#fff;min-height:77px}.tht-structure-add-table{margin-top:12px}
.tht-structure-add-table summary{cursor:pointer;font-size:13px;font-weight:700;color:#0d6773}
.tht-structure-add-table form{margin-top:10px}.tht-structure-target-active{outline:3px solid #15916d!important;background:#e6faf2!important;border-color:#15916d!important}
@media(min-width:1450px){.tht-structure-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.tht-structure-categories{grid-template-columns:minmax(0,1fr)}.tht-structure-category{padding:10px}.tht-structure-category-head{flex-wrap:wrap}}

[data-active-screen="structure"] .tht-sidebar-divisions{display:none}

/* v3.54.41 – Seeded athletes: one pinned anchor per group, visible in unified tables. */
.tht-structure-person.is-anchored,.tht-dnd-chip.is-anchored{background:#fff7dc!important;border:1px solid #e5b94a!important;color:#77510b!important;cursor:default!important}
.tht-structure-person.is-anchored small,.tht-dnd-chip.is-anchored small{color:#91620b!important;font-weight:700}
.tht-anchor-panel{flex:1 1 180px;margin:4px 0;padding:5px 8px;border:1px solid #d7dfeb;border-radius:9px;background:#fff;max-width:100%}
.tht-anchor-panel summary,.tht-anchor-preselect summary{cursor:pointer;font-weight:700;font-size:12px;color:#8a5712;list-style:auto}
.tht-anchor-panel form{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px;align-items:end}
.tht-anchor-panel label{font-size:12px;min-width:145px;flex:1}
.tht-anchor-panel select{display:block;max-width:100%;width:100%;margin-top:4px}
.tht-anchor-panel button{font-size:12px!important}
.tht-anchor-panel .tht-note{font-size:11px;margin:0;flex-basis:100%}
.tht-anchor-preselect{flex:1 1 100%;padding:8px;border:1px dashed #e0bf79;border-radius:9px;background:#fffaf0;min-width:0}
.tht-anchor-preselect .tht-note{font-size:11px}
.tht-anchor-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:6px;margin-top:6px}
.tht-anchor-option{display:flex;align-items:center;gap:5px;font-size:12px;padding:5px;border-radius:7px;background:#fff;border:1px solid #f0e1c1}
.tht-anchor-option input{margin:0}
.tht-anchor-current{font-size:12px;padding:7px 9px;background:#fff7df;border:1px solid #efd28d;color:#7d530e;border-radius:9px;margin:8px 0}

/* v3.54.42: arrived male/female roster summary inside category cards. */
.tht-structure-attendance{margin:8px 0;padding:9px 12px;background:#ecfdf5;border:1px solid #b6e7d1;border-radius:10px;color:#125842;font-size:13px;line-height:1.5}
.tht-structure-attendance small{color:#38665a;font-size:12px;display:inline-block}
.tht-structure-attendance-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.tht-structure-attendance-actions form{display:inline-flex;margin:0}.tht-structure-attendance-actions button:disabled{opacity:.48;cursor:default}

.tht-structure-sync{border:1px solid #d5e9df;border-radius:10px;background:#fafefb;padding:9px 12px;max-width:100%}
.tht-structure-sync summary{font-weight:700;color:#146342;cursor:pointer}.tht-structure-sync form{margin-top:9px}.tht-structure-sync .tht-anchor-options{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px;max-height:160px;overflow:auto}
.tht-structure-sync button{margin:4px 6px 4px 0}

/* v3.54.43 – staged pinned groups for dynamic tournaments */
.tht-structure-seed-groups{margin:12px 0;padding:12px;border-radius:10px;border:1px dashed #8aaec2;background:#f0f7fb}
.tht-structure-seed-groups summary{cursor:pointer;font-weight:750;color:#185276}
.tht-group-ready-status{font-size:12px;display:inline-flex;align-items:center;background:#edf7f0;border-radius:8px;padding:6px 9px;color:#27624a}
.tht-group-adjust{border:1px solid #d9e3e9;border-radius:8px;padding:8px}
.tht-group-adjust summary{cursor:pointer;font-size:12px;font-weight:700}
.tht-structure-seed-groups .tht-anchor-options{max-height:230px;overflow:auto}
.tht-structure-seed-guide{margin:10px 0;padding:12px;border:1px solid #d7e7ef;border-radius:10px;background:#f6fbff;color:#23445c}
.tht-structure-seed-guide summary{cursor:pointer;font-weight:700}.tht-structure-seed-guide ol{padding-left:24px;line-height:1.65}

/* v3.54.45 – spectator hierarchy: category > board > ready groups. */
.tht-body .tht-category-tabs{position:sticky;top:0;left:auto;bottom:auto;transform:none;width:100%;max-width:none;margin:0 0 16px;padding:10px;z-index:70;border:1px solid #c5dfd0;border-radius:14px;background:#fff;box-shadow:0 5px 22px #123c2a18;gap:8px}
.tht-body .tht-division-tab{font-size:15px;min-width:125px;max-width:300px;padding:13px 16px;background:#eef7f1;border-color:#cfe3d4;color:#19583d}
.tht-body .tht-division-tab[aria-selected="true"]{background:#136947;color:#fff;border-color:#136947}
.tht-body .tht-shell:has(.tht-category-tabs){padding-bottom:30px}
.tht-body .tht-embedded-results .tht-category-tabs{position:sticky;top:0;bottom:auto;left:auto;transform:none;box-shadow:0 5px 22px #123c2a18}
.tht-board-tabs{display:flex;gap:9px;align-items:stretch;overflow-x:auto;margin:8px 0 14px;padding:4px 1px 8px;scrollbar-width:thin}
.tht-board-tab{flex:0 0 auto;min-width:150px;max-width:270px;text-align:left;padding:12px 16px;border:1px solid #d2e6d8;border-radius:12px;background:#f6faf7;color:#234e38;cursor:pointer;font:inherit;line-height:1.3}
.tht-board-tab strong,.tht-board-tab small{display:block}
.tht-board-tab strong{font-size:15px}
.tht-board-tab small{font-size:11px;color:#647d6f;margin-top:3px;font-weight:550}
.tht-board-tab[aria-selected="true"]{background:#e5f5eb;border:2px solid #15794c;padding:11px 15px;box-shadow:0 2px 8px #15794c18}
.tht-board-tab[aria-selected="true"] strong{color:#0e633e}
.tht-board-tab:focus-visible{outline:3px solid #efc361;outline-offset:2px}
.tht-board-panel[hidden]{display:none!important}
.tht-ready-board-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:9px 0 13px}
.tht-ready-board-heading h3{color:#164a33;font-size:20px;margin:0}
.tht-ready-board-heading span{color:#657e6f;font-size:12px}
.tht-board-empty{border:1px dashed #c1d8ca;border-radius:12px;background:#f6faf7;padding:18px;color:#607869}
.tht-public-ready-group{border:1px solid #d7e7dc;border-radius:15px;background:#fff;padding:16px;margin:13px 0 18px;box-shadow:0 2px 8px #173c2a09}
.tht-public-ready-group.is-live{border-left:5px solid #d25443}
.tht-public-ready-group.is-ready{border-left:5px solid #169d65}
.tht-public-ready-group.is-finished{border-left:5px solid #89a899}
.tht-public-ready-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.tht-public-ready-head h4{font-size:17px;color:#184d35;margin:0}
.tht-public-ready-head small{font-size:12px;color:#788a7d}
.tht-group-state{font-size:12px;font-weight:700;background:#eaf7ef;color:#1a794c;border-radius:99px;padding:6px 10px}
.tht-public-ready-group.is-live .tht-group-state{background:#fff0e9;color:#ae402c}
.tht-public-ready-group.is-finished .tht-group-state{background:#edf2ef;color:#597164}
.tht-ready-players{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 16px}
.tht-ready-players>span{background:#edf6f0;border:1px solid #dce9e0;border-radius:99px;font-size:12px;padding:5px 9px;color:#375c44}
.tht-public-ready-group>h5{font-size:14px;color:#195b3b;margin:8px 0 10px}
.tht-public-ready-group .tht-public-match-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,335px),1fr))}
.tht-ready-rank{margin-top:12px;border-top:1px solid #e5eee8;padding-top:12px}
.tht-ready-rank summary{cursor:pointer;font-size:13px;font-weight:750;color:#1b744b}
.tht-category-overview{margin:24px 0;border:1px solid #d7e5da;border-radius:14px;padding:12px;background:#f9fcfa}
.tht-category-overview>summary{font-size:14px;font-weight:700;color:#326248;cursor:pointer}
.tht-category-overview[open]>summary{margin-bottom:12px}
@media(max-width:720px){.tht-body .tht-category-tabs{padding:8px;gap:6px}.tht-body .tht-division-tab{font-size:13px;min-width:110px;padding:12px 10px}.tht-board-tab{min-width:135px;padding:10px 13px}.tht-board-tab[aria-selected="true"]{padding:9px 12px}.tht-public-ready-group{padding:12px}.tht-ready-board-heading h3{font-size:18px}}

/* v3.54.47 — Athlete name lookup on the public tournament page */
.tht-player-finder{position:relative;z-index:90;background:#fff;border:1px solid #c9dfd2;border-radius:16px;padding:16px;margin:14px 0 20px;box-shadow:0 4px 16px #163c2e0d;max-width:100%}
.tht-player-finder-label{display:block;font-size:16px;font-weight:800;color:#164e35;margin-bottom:10px}
.tht-player-finder-controls{display:flex;gap:8px}
.tht-player-finder-input{flex:1;min-width:0;padding:12px 14px;border:1px solid #aac6b5;border-radius:10px;font:inherit;font-size:15px;background:#fff;color:#183c2c}
.tht-player-finder-input:focus{outline:3px solid #9ed6b866;outline-offset:0;border-color:#147e51}
.tht-player-find-clear{border:1px solid #ccdbd0;background:#f5f9f6;color:#244b37;border-radius:10px;min-width:55px;padding:0 13px;font-size:13px;font-weight:700;cursor:pointer}
.tht-player-suggestions{position:absolute;top:calc(100% - 14px);left:16px;right:16px;z-index:85;border:1px solid #c7dacd;border-radius:0 0 12px 12px;max-height:340px;overflow-y:auto;background:#fff;box-shadow:0 14px 23px #133b2b25;padding:6px}
.tht-player-suggestions[hidden]{display:none!important}
.tht-player-search-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;text-align:left;background:#fff;border:0;border-radius:9px;padding:11px 12px;font:inherit;cursor:pointer;color:#193d2c}
.tht-player-search-item:hover,.tht-player-search-item.is-focused{background:#e9f5ed}
.tht-player-search-item strong{display:block;font-size:14px}
.tht-player-search-item small{display:block;color:#647e6e;font-size:12px;margin-top:3px}
.tht-player-search-state{font-size:11px;font-weight:700;color:#207449;flex:none;white-space:nowrap}
.tht-player-search-empty{color:#557563;margin:9px 10px;font-size:13px}
.tht-player-finder-feedback{font-size:13px;color:#496a58;margin:9px 1px 0;line-height:1.5}
.tht-public-ready-group.tht-player-found{border:2px solid #148552;box-shadow:0 0 0 4px #a6e0be66;scroll-margin-top:135px}
.tht-public-ready-group.tht-player-found .tht-ready-players span.tht-player-chip-found{background:#d5f4df;border-color:#148552;color:#0b5e35;font-weight:800}
@media(max-width:720px){.tht-player-finder{padding:12px;margin:10px 0 14px}.tht-player-finder-label{font-size:14px}.tht-player-suggestions{left:12px;right:12px;max-height:50vh}.tht-player-search-item{padding:12px 8px}.tht-player-search-state{font-size:10px}}

/* v3.54.52 – compact roster assignment without long-range drag and drop */
.tht-structure-quick{background:#fff;border:2px solid #9acdb5;border-radius:13px;padding:16px;margin:14px 0;box-shadow:0 5px 18px #184f2d0c}
.tht-quick-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.tht-quick-head h3{margin:0 0 5px;font-size:17px;color:#145a3b}
.tht-quick-head p{margin:0 0 12px;font-size:12px;color:#58746a;line-height:1.45}
.tht-quick-counter{white-space:nowrap;border-radius:99px;background:#e3f5ec;color:#146342;font-weight:750;padding:7px 11px;font-size:12px}
.tht-quick-tools{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}
.tht-quick-tools label,.tht-quick-destination label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:750;color:#214d3a}
.tht-quick-tools input,.tht-quick-tools select,.tht-quick-destination select{width:100%;box-sizing:border-box;padding:10px;border-radius:8px;border:1px solid #bdd5c8;background:white;color:#163f30;min-width:0}
.tht-quick-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;overflow:auto;max-height:290px;padding:10px;border:1px solid #d7e8db;border-radius:9px;background:#f8fcfa;margin-top:10px}
.tht-quick-person{display:flex;align-items:flex-start;gap:7px;background:white;border:1px solid #dce9df;border-radius:8px;padding:9px;font-size:12px;cursor:pointer;min-width:0}
.tht-quick-person:has(input:checked){border-color:#239269;background:#e8f9ef}
.tht-quick-person[hidden]{display:none!important}
.tht-quick-person input{flex:0 0 auto;width:16px;height:16px;margin:0}
.tht-quick-person-info{display:flex;flex-direction:column;min-width:0;gap:3px;overflow-wrap:anywhere}
.tht-quick-person-info strong{color:#173f2f}
.tht-quick-person-info small{font-size:10px;color:#6b7e71;line-height:1.4}
.tht-quick-controls{display:flex;gap:8px;margin:9px 0;flex-wrap:wrap}
.tht-quick-destination{display:flex;align-items:end;gap:10px;padding:11px;border-radius:10px;background:#eff8f2}
.tht-quick-destination label{flex:1;min-width:0}
.tht-quick-destination button{white-space:nowrap}
@media(max-width:1000px){.tht-quick-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.tht-quick-head{flex-direction:column}.tht-quick-tools{grid-template-columns:1fr 1fr}.tht-quick-tools label:first-child{grid-column:1/-1}.tht-quick-results{grid-template-columns:1fr 1fr;max-height:250px}.tht-quick-destination{flex-direction:column;align-items:stretch}.tht-quick-destination button{width:100%}}
@media(max-width:430px){.tht-quick-results{grid-template-columns:1fr}}

.tht-quick-person.is-pinned{background:#fff7df;border-color:#ead4a0;cursor:not-allowed}.tht-quick-person.is-pinned strong{color:#81581a}

/* v3.54.53 – presence is distinct from whether a person may be pre-assigned. */
.tht-structure-person.is-arrived,.tht-dnd-chip.is-arrived{background:#dff8e9!important;border:1px solid #58b885!important;color:#0a633e!important;box-shadow:0 1px 4px #0b70401c}
.tht-structure-person.is-arrived small,.tht-dnd-chip.is-arrived small{color:#096239!important;font-weight:800}
.tht-structure-person.is-not-arrived,.tht-dnd-chip.is-not-arrived{background:#fff3e2!important;border:1px solid #e8cfa9!important;color:#895321!important}
.tht-structure-person.is-not-arrived small,.tht-dnd-chip.is-not-arrived small{color:#aa6829!important}
.tht-structure-person.is-late,.tht-dnd-chip.is-late{background:#fff1d4!important;border:1px solid #dda64f!important;color:#88520d!important}
.tht-structure-person.is-anchored,.tht-dnd-chip.is-anchored{background:#fff7dc!important;border:1px solid #e5b94a!important;color:#77510b!important}
.tht-structure-person.is-anchored.is-arrived,.tht-dnd-chip.is-anchored.is-arrived{background:#dff8e9!important;color:#0a633e!important;border:1px solid #58b885!important;border-left:5px solid #d8a52f!important}
.tht-structure-person.is-draggable,.tht-dnd-chip.is-draggable{cursor:grab;user-select:none}
.tht-structure-person.is-draggable:active,.tht-dnd-chip.is-draggable:active{cursor:grabbing}
.tht-structure-person.is-selected{outline:3px solid #157e62!important;outline-offset:2px;box-shadow:0 0 0 4px #e2faf0!important}
.tht-structure-person.is-locked{cursor:default}
.tht-quick-person.is-arrived:not(.is-pinned){background:#e2f7e8;border-color:#8ecda4}
.tht-quick-person.is-arrived small{color:#137044;font-weight:650}
.tht-quick-person.is-not-arrived:not(.is-pinned){background:#fff7ec;border-color:#f1dbc2}
.tht-quick-person.is-late:not(.is-pinned){background:#fff2d9;border-color:#eed094}
.tht-structure-selection-toast{position:fixed;right:18px;bottom:18px;max-width:min(460px,calc(100vw - 36px));display:flex;flex-wrap:wrap;gap:10px;align-items:center;z-index:9999;background:#124c3a;color:white;border-radius:12px;padding:13px 15px;box-shadow:0 6px 24px #153e3277;font-size:13px;line-height:1.4}
.tht-structure-selection-toast[hidden]{display:none!important}
.tht-structure-selection-toast button{padding:6px 12px!important;border:1px solid #fff!important;color:#fff!important;background:transparent!important;border-radius:7px!important;cursor:pointer}
.tht-structure-target[data-tht-structure-enabled="1"]{cursor:pointer}

/* v3.54.54: compact inline scoring desk on desktop and mobile */
.tht-fixture-main{flex:1;min-width:220px}
.tht-fixture-right{flex-wrap:wrap;justify-content:flex-end;flex-shrink:1;max-width:100%}
.tht-fixture-score{font-variant-numeric:tabular-nums;font-size:13px;min-width:34px;text-align:center}
.tht-fixture-right .tht-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:5px;margin:0;padding:0;border:0;background:transparent}
.tht-fixture-points{display:flex;flex-direction:column;gap:2px;font-size:10px;color:#566477;font-weight:600}
.tht-fixture-points input{width:64px;min-width:0;max-width:70px;padding:7px 5px;text-align:center;border:1px solid #bacbd3;border-radius:7px;font-size:14px;font-variant-numeric:tabular-nums}
.tht-fixture-ref-hint{font-size:11px;color:#a16207;max-width:130px}
@media(max-width:850px){.tht-fixture-right{justify-content:flex-start;width:100%}.tht-fixture-main{min-width:0}.tht-fixture-row{flex-wrap:wrap}.tht-fixture-right .tht-form{flex:1}}

/* v3.54.55 — Inline, multi-select transfer from the table's waiting pool into a group. */
.tht-structure-chips>.tht-form:has([data-tht-table-bulk]){width:100%;max-width:100%;margin:0;min-width:0}
.tht-table-bulk{display:flex;flex-direction:column;gap:10px;min-width:0;width:100%}
/* v3.54.57: one athlete per horizontal row. Never let the flexible label shrink to a letter-wide chip. */
.tht-table-bulk-people{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:6px;max-height:310px;overflow-y:auto;overflow-x:hidden;padding:3px;min-width:0;width:100%;box-sizing:border-box}
.tht-table-bulk-person{display:flex!important;flex-direction:row!important;flex:0 0 auto;gap:10px;align-items:center;width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #d4e2d9;border-radius:9px;background:#fff;cursor:pointer;font-size:13px;line-height:1.4;white-space:normal;word-break:normal;overflow-wrap:break-word;text-align:left}
.tht-table-bulk-person input{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#137b4e}
.tht-table-bulk-person span{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0;width:auto;font-weight:650;white-space:normal;word-break:normal;overflow-wrap:break-word}
.tht-table-bulk-person small{display:block;font-size:11px;line-height:1.35;color:#678270;font-weight:400;white-space:normal;word-break:normal}
.tht-table-bulk-person.is-arrived{background:#dff8e9;border-color:#58b885;color:#096239}
.tht-table-bulk-person.is-not-arrived{background:#fff3e2;border-color:#e8cfa9;color:#895321}
.tht-table-bulk-person.is-late{background:#fff1d4;border-color:#dda64f;color:#88520d}
.tht-table-bulk-person:has(input:checked){outline:2px solid #16875a;outline-offset:1px}
.tht-table-bulk-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.tht-table-bulk-actions button{font-size:11px!important;padding:6px 9px!important}
.tht-table-bulk-count{font-size:11px;color:#216a49;font-weight:700;white-space:nowrap}
.tht-table-bulk-destination{display:flex;align-items:end;gap:8px;flex-wrap:wrap;border-top:1px solid #e4eee7;padding-top:9px}
.tht-table-bulk-destination label{display:flex;flex:1;flex-direction:column;gap:4px;min-width:140px;font-size:12px;font-weight:700;color:#24583b}
.tht-table-bulk-destination select{width:100%;min-width:0;border:1px solid #afcbbb;border-radius:7px;padding:8px;background:white;color:#20513a}
.tht-table-bulk-destination button{flex:0 1 auto;min-width:145px}
.tht-table-bulk .tht-note{font-size:11px!important;line-height:1.45;margin:0}
@media(max-width:760px){.tht-table-bulk-destination{align-items:stretch;flex-direction:column}.tht-table-bulk-destination label,.tht-table-bulk-destination button{width:100%;box-sizing:border-box}.tht-table-bulk-people{max-height:225px}}
.tht-structure-group[data-tht-structure-capacity="0"]:has([data-tht-table-bulk]){grid-column:1/-1;background:#f9fffa;border-color:#a9d5b9}

/* v3.54.59: change members from one 4-8-person group to another in-place. */
.tht-group-switch{display:block;width:100%;min-width:0;margin-top:7px;border-top:1px dashed #bbd7c7;padding-top:7px}
.tht-group-switch>summary{font-size:12px;line-height:1.5;font-weight:750;color:#14613f;cursor:pointer;list-style-position:inside}
.tht-group-switch[open]>summary{margin-bottom:9px}
.tht-group-switch .tht-form{width:100%;min-width:0;max-width:100%;margin:0}
.tht-group-switch .tht-table-bulk{width:100%;min-width:0}
.tht-group-switch .tht-table-bulk-person{padding:7px 8px;font-size:12px}
.tht-group-switch .tht-table-bulk-destination{flex-direction:column;align-items:stretch}
.tht-group-switch .tht-table-bulk-destination label,.tht-group-switch .tht-table-bulk-destination button{width:100%;min-width:0;box-sizing:border-box}
.tht-group-move-locked{display:block;font-size:11px;color:#815c19}
/* Expand only the group being edited to the table's full width, so names stay readable. */
.tht-structure-group:has(.tht-group-switch[open]){grid-column:1/-1;min-width:0}
