:root{color-scheme:dark;--bg:#191714;--panel:#24211d;--higher:#2f2921;--soft:#c7bbab;--cream:#fff4df;--brass:#dbb578;--line:#534838;--leaf:#b6ceb3;--red:#ffb0a0;--deep:#171511;font:16px/1.5 system-ui,sans-serif;background:var(--bg);color:var(--cream)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 48% -10%,#392e21 0,transparent 60%),var(--bg);min-height:100vh}button,input,select,textarea{font:inherit}button,.btn{color:var(--cream);border:1px solid var(--line);border-radius:.56rem;background:var(--higher);padding:.54rem .8rem;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;font-weight:700;white-space:nowrap}button:hover,.btn:hover{background:#46392a}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--brass);color:#231911;border-color:var(--brass)}.primary:hover{background:#ebc88f}.subtle{background:transparent}.danger{color:var(--red)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--brass);outline-offset:3px}a{color:var(--brass)}.mast{display:flex;align-items:center;min-height:74px;padding:.6rem 4vw;gap:1.5rem;border-bottom:1px solid var(--line);background:#211d18}.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--cream);white-space:nowrap}.brand strong{display:block;font:700 1.65rem Georgia,serif}.brand small,.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.68rem;font-weight:800;color:var(--brass)}.mark{display:grid;place-items:center;color:var(--brass);font-size:1.65rem;width:2.6rem;height:2.6rem;border:1px solid #8b6c43;border-radius:50%;background:#33291d}.mast nav{display:flex;align-items:center;gap:.35rem;margin-left:auto}.mast nav a{color:var(--soft);text-decoration:none;font-weight:700;padding:.54rem .64rem;border-radius:.44rem}.mast nav a[aria-current],.mast nav a:hover{color:var(--brass);background:#3c3022}.pill{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:100px;padding:.22rem .58rem;line-height:1.3;color:var(--brass);font-size:.79rem;font-weight:750;white-space:nowrap}.pill.running{color:var(--leaf);border-color:#58704e}.pill.fixture{border-color:#967039;color:#f4ca8b}.pill.finished{color:var(--soft)}main{max-width:1520px;margin:auto;padding:1.5rem 4vw 3rem}h1,h2,h3,p{margin-top:0}h1{font:700 clamp(2rem,4.6vw,3.15rem)/1.08 Georgia,serif;margin:.2rem 0 .65rem}h2{font:700 1.34rem Georgia,serif;margin-bottom:.7rem}h3{font-size:1rem;margin-bottom:.35rem}p{margin-bottom:.7rem}.muted{color:var(--soft)}.micro{font-size:.85rem;color:var(--soft)}.section-head,.row-between,.actions,.toolbar,.work-nav{display:flex;gap:.66rem;align-items:center;flex-wrap:wrap}.section-head,.row-between{justify-content:space-between}.section-head{margin-bottom:1rem}.toolbar{align-items:flex-end;margin-bottom:1rem}.toolbar label{min-width:140px}.tool-end{margin-left:auto}.card{background:var(--panel);border:1px solid var(--line);border-radius:.72rem;padding:1rem;margin-bottom:1rem;box-shadow:0 8px 24px #0002}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.8rem}.cards .card{margin-bottom:0}.scroll{overflow-x:auto}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}.stack>*+*{margin-top:.65rem}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:.63rem .55rem;border-bottom:1px solid var(--line);vertical-align:middle}th{color:var(--brass);font-size:.79rem;text-transform:uppercase;letter-spacing:.05em;text-align:left;white-space:nowrap}td>.actions{flex-wrap:nowrap}tr:last-child td{border-bottom:none}label{display:block;color:var(--soft);font-size:.84rem;font-weight:700}input,select,textarea{color:var(--cream);background:#1b1814;border:1px solid #78664e;border-radius:.44rem;padding:.48rem .56rem;display:block;width:100%;margin-top:.18rem;min-width:0}input[type=checkbox]{width:1rem;height:1rem;accent-color:var(--brass);display:inline-block;vertical-align:middle;margin-right:.38rem}input[type=number]{max-width:12rem}.work-nav{margin:.8rem 0 1rem;border-bottom:1px solid var(--line);gap:.14rem}.work-nav a{display:block;padding:.55rem .68rem;color:var(--soft);text-decoration:none;font-weight:700}.work-nav a[aria-current]{color:var(--brass);border-bottom:2px solid var(--brass)}.breadcrumb{font-size:.86rem;font-weight:740;text-decoration:none}.clock-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,275px);gap:1rem}.watch{border:1px solid #8d704d;background:#1f1b15;border-radius:1rem;box-shadow:0 12px 38px #0007;text-align:center;overflow:hidden;align-self:start}.watch-head,.watch-foot{padding:.86rem 1rem;display:flex;justify-content:space-between;align-items:center;gap:.6rem;color:var(--soft)}.watch-head{border-bottom:1px solid #493c2b}.watch-foot{border-top:1px solid #493c2b}.timer{font:900 clamp(4rem,12vw,11rem)/1.05 ui-monospace,monospace;letter-spacing:-.085em;font-variant-numeric:tabular-nums;padding:.14em .12em .14em 0;color:var(--cream)}.blinds,.metrics{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #493c2b}.blinds div,.metrics div{padding:.65rem .3rem;border-right:1px solid #493c2b}.blinds div:last-child,.metrics div:last-child{border-right:0}.blinds span,.metrics span{display:block;color:var(--brass);font-size:.76rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.blinds strong{display:block;font-size:clamp(1.35rem,3.9vw,3.5rem);line-height:1.12}.metrics strong{font-size:1.1rem}.progress{height:.28rem;width:100%;background:#382e22}.progress div{height:100%;width:0;background:var(--brass)}.timeline{list-style:none;padding:0;margin:0;max-height:370px;overflow:auto}.timeline li{padding:.32rem .45rem;border-radius:.4rem;color:var(--soft);font-size:.88rem;display:flex;gap:.4rem;justify-content:space-between}.timeline .active{background:#3b3325;color:var(--brass)}.modal-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:.8rem;gap:1rem}.modal-title h2{margin:0}.modal-buttons{justify-content:flex-end;margin-top:1rem}.error{color:var(--red)}dialog{border:1px solid #8f7857;border-radius:.9rem;background:#24201a;color:var(--cream);width:min(94vw,670px);max-height:90vh;overflow:auto;padding:1.1rem}dialog::backdrop{background:#100d09b5}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.toast,#notice{position:fixed;right:1rem;bottom:1rem;max-width:min(90vw,28rem);background:#2b241a;border:1px solid #917653;padding:.7rem .9rem;border-radius:.5rem;z-index:4}.note{color:var(--soft);border-left:3px solid #8d7148;padding:.55rem .8rem;background:#2a231a}.tv #mast{min-height:55px;padding:.4rem 2vw}.tv #nav,.tv #private-label,.tv #bluff-sync{display:none!important}.tv main{max-width:none;padding:.7rem 2vw 1rem}.tv .clock-layout{display:block}.tv .timer{font-size:clamp(4.5rem,23vw,43vh)}.tv .watch-head,.tv .watch-foot{font-size:clamp(1rem,2vw,2rem);padding:.9vh 2vw}.tv .blinds strong{font-size:clamp(1.6rem,5vw,5rem)}.tv .blinds span,.tv .metrics span{font-size:clamp(.68rem,1.55vw,1.5rem)}.struck{text-decoration:line-through;opacity:.65}[hidden]{display:none!important}@media(max-width:820px){.mast{gap:.65rem;flex-wrap:wrap}.mast nav{order:3;margin-left:0;overflow:auto;white-space:nowrap;width:100%}#private-label{margin-left:auto}.clock-layout,.grid2{grid-template-columns:1fr}.section-head{align-items:flex-start}.tool-end{margin-left:0}.watch-foot{flex-wrap:wrap}.tv .timer{font-size:clamp(4rem,22vw,31vh)}}@media(max-width:450px){.fields{grid-template-columns:1fr}.mast nav a{padding:.44rem .48rem}.pill{font-size:.72rem}.blinds span,.metrics span{font-size:.61rem}}

/* The TV has a read-only schedule beside the timer, with a sub-clock list on a phone. */
.tv .clock-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(17rem,29%);align-items:start;gap:clamp(.65rem,1.3vw,1.5rem)}
.tv .timer{font-size:clamp(4rem,15.4vw,39vh)}
.tv .watch-foot{font-size:clamp(.86rem,1.45vw,1.65rem);flex-wrap:wrap;text-align:left}
.tv-schedule{border:1px solid #8d704d;background:#1f1b15;border-radius:1rem;min-width:0;overflow:hidden}
.tv-schedule-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid #493c2b;padding:.8rem .85rem;color:var(--brass)}
.tv-schedule-head h3{font-size:clamp(1.05rem,1.65vw,1.85rem);margin:0}
.tv-schedule-head>span{font-size:clamp(.69rem,.95vw,1.1rem);font-weight:800;white-space:nowrap}
.tv-schedule-list{overflow:auto;max-height:clamp(13rem,calc(100vh - 12rem),58rem);list-style:none;padding:.38rem .5rem;margin:0;scrollbar-width:thin;scrollbar-color:#846b4a #211d17}
.tv-schedule-list:focus-visible{outline:2px solid var(--brass);outline-offset:-3px}
.tv-schedule-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:.4rem;align-items:baseline;border-bottom:1px solid #493c2b;padding:.31rem .45rem;min-width:0;color:var(--cream);line-height:1.16}
.tv-schedule-row:last-child{border-bottom:0}
.tv-step-name{font-weight:760;overflow-wrap:anywhere;font-size:clamp(.91rem,1.24vw,1.5rem)}
.tv-step-time,.tv-step-detail{font-size:clamp(.79rem,1.02vw,1.2rem);color:var(--soft)}
.tv-step-time{text-align:right;white-space:nowrap}
.tv-step-detail{font-variant-numeric:tabular-nums}
.tv-schedule-row.break-row .tv-step-name{color:var(--leaf)}
.tv-schedule-row.current{background:#ffe46a;color:#221600;border:1px solid #fff1a5;border-radius:.4rem;box-shadow:inset .35rem 0 #ffb627;padding-left:.62rem}.tv-schedule-row.current .tv-step-name,.tv-schedule-row.current .tv-step-time,.tv-schedule-row.current .tv-step-detail{color:#221600;font-weight:850}
.tv-schedule-row.next{border:1px dashed #8d704d;border-radius:.4rem;background:#30291d}
.tv .tv-empty{margin:.8rem}
@media(max-width:760px){.tv .clock-layout{grid-template-columns:1fr}.tv .timer{font-size:clamp(3.8rem,20vw,33vh)}.tv-schedule-list{max-height:22rem}.tv-schedule-row{padding:.42rem .55rem}}

.template-builder{border-top:1px solid var(--line);margin-top:1.05rem;padding-top:.8rem}
.template-builder h3,.template-builder .micro{margin-bottom:.35rem}
.template-row{min-width:0;border:1px solid var(--line);border-radius:.6rem;margin:.55rem 0;padding:.45rem .6rem .65rem}
.template-row legend{font-weight:750;color:var(--brass);padding:0 .35rem}
.template-row.template-break{border-color:#58704e}
.template-row.template-break legend{color:var(--leaf)}
.template-row-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));gap:.45rem}
.template-row-fields input{width:100%;max-width:none}
.template-row-actions{margin-top:.45rem;justify-content:flex-end}
.template-row-actions button{padding:.28rem .55rem}
.template-add{padding-top:.3rem}
@media(max-width:455px){.template-row-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.template-row-fields label:first-child{grid-column:1/-1}}

.victory{padding:clamp(1.6rem,5vw,5.5rem) 1rem;margin-bottom:1rem}
.victory .eyebrow{font-size:clamp(.9rem,2.3vw,1.7rem)}
.victory h2{font-size:clamp(2.5rem,6.9vw,7rem);line-height:1.08;margin:.45rem 0 .65rem;overflow-wrap:anywhere}
.victory p{font-size:clamp(1rem,1.9vw,1.55rem);color:var(--soft);margin:0}

.scoring-preview{border-top:1px solid var(--line);margin-top:1rem;padding-top:.8rem}
.scoring-preview .scroll{max-height:16rem;border:1px solid var(--line);border-radius:.55rem}
.scoring-preview thead{position:sticky;top:0;background:var(--panel)}

/* Private owner contacts and the independent read-only player portal. */
.crm-status:empty{display:none}.crm-seasons{border:1px solid var(--line);border-radius:.55rem;padding:.6rem 1rem;margin:1rem 0}
.crm-seasons legend{padding:0 .35rem;color:var(--brass);font-weight:780}.crm-seasons label{display:inline-block;margin:.25rem .9rem .25rem 0}
.player-signin{max-width:30rem}.player-signin label{margin-bottom:.8rem}.player-signin .micro{margin-top:1rem}
.player-stats{margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:.65rem}
.player-stats dt{font-weight:800;color:var(--brass)}.player-stats dd{margin:0;font-size:1.35rem}.player-own-row{background:#3c3022}
@media(max-width:965px){.mast nav{order:3;margin-left:0;overflow:auto;white-space:nowrap;width:100%}.mast{flex-wrap:wrap}#private-label{margin-left:auto}}

.imported-table{margin-top:.6rem}.imported-table th,.imported-table td{white-space:nowrap}
.imported-table tbody th{color:var(--cream);text-transform:none;letter-spacing:0;font-size:inherit}
.imported-table-date{display:block;font-size:.7rem;color:var(--soft);letter-spacing:0;text-transform:none}

.series-preview{max-height:57vh;overflow:auto;padding-right:.4rem;scrollbar-width:thin}
.series-preview fieldset:first-child{margin-top:0}
.series-preview .micro:empty{display:none}

.player-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.85rem;margin-bottom:0}
.player-details dt{font-size:.85rem;font-weight:800;color:var(--brass)}
.player-details dd{margin:.15rem 0 0;overflow-wrap:anywhere}

.account-link{margin-left:auto}.mast nav:not([hidden])+.account-link{margin-left:0}.tv #owner-account{display:none!important}@media(max-width:820px){.mast nav:not([hidden])+.account-link{margin-left:auto}#private-label{margin-left:0}}

.roster-picker{min-width:0;padding:.6rem .75rem;margin:0 0 .65rem;border:1px solid var(--line);border-radius:.5rem}
.roster-picker legend{font-size:.9rem;font-weight:750;padding:0 .3rem}
.roster-picker p{margin:.4rem 0 0}
.roster-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.2rem .45rem;max-height:42vh;overflow:auto;margin-top:.45rem;padding:.2rem}
.roster-choice{display:flex;gap:.45rem;align-items:center;padding:.42rem;border-radius:.38rem;cursor:pointer;color:var(--cream);overflow-wrap:anywhere}
.roster-choice:hover,.roster-choice:has(input:checked){background:var(--higher)}
.roster-choice input[type=checkbox]{flex:none;margin:0}

/* Owner controls are part of the timer face; the spectator layout stays passive. */
.operator-clock #mast{display:none}
.operator-clock main{padding:clamp(8px,1.35vh,18px) max(clamp(12px,1.6vw,32px),env(safe-area-inset-right,0px)) max(clamp(8px,1.35vh,18px),env(safe-area-inset-bottom,0px)) max(clamp(12px,1.6vw,32px),env(safe-area-inset-left,0px))}
.operator-clock .clock-layout{grid-template-columns:minmax(0,1fr) minmax(16rem,30%);align-items:stretch}
.operator-clock .clock-layout>div{display:flex;flex-direction:column;min-width:0;min-height:0;gap:clamp(7px,1.1vh,13px)}
.operator-clock .watch{align-self:stretch;display:flex;flex-direction:column;flex:1 0 auto}
.operator-clock .watch-head,.operator-clock .watch-foot{font-size:clamp(.91rem,1.25vw,1.4rem);padding:.55rem .85rem}
.operator-clock .watch-foot{gap:.3rem .6rem;flex-wrap:wrap}
.operator-clock .timer{display:grid;place-items:center;flex:1;font-size:clamp(3.8rem,min(16vw,22vh),17rem);line-height:1;padding:.08em .12em .04em 0}
.operator-clock .blinds div,.operator-clock .metrics div{padding:clamp(5px,1.05vh,12px) .25rem}
.operator-clock .blinds strong{font-size:clamp(1.65rem,3.6vh,3rem)}
.operator-clock .blinds span,.operator-clock .metrics span{font-size:clamp(.72rem,1.09vw,1.02rem)}
.operator-clock .tv-schedule{display:flex;flex-direction:column;min-height:0}
.operator-clock .tv-schedule-list{flex:1;min-height:0;max-height:none;overscroll-behavior:contain}
.operator-clock .tv-eliminations{margin:0}
.operator-clock .tv-elimination-list strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.operator-clock .clock-layout>div>.card{margin:0;min-height:0;overflow:auto;overscroll-behavior:contain}
.clock-icon{width:clamp(1.2rem,3.4vh,2.4rem);height:clamp(1.2rem,3.4vh,2.4rem);display:block}
.tv-schedule-tools{display:flex;gap:.55rem;align-items:center;white-space:nowrap;font-size:.8rem;font-weight:800}
#clock-show-seating{height:2.75rem;min-width:2.75rem;padding:.32rem}
#clock-show-seating svg{width:1.15rem;height:1.15rem}
@media(min-width:761px){
 .operator-clock{min-height:100dvh}
 .operator-clock main{height:100vh;height:100dvh}
 .operator-clock #app,.operator-clock .clock-layout{height:100%;min-height:0}
}
@media(max-width:760px){
 .operator-clock .clock-layout{grid-template-columns:minmax(0,1fr)}
 .operator-clock .timer{font-size:clamp(3.5rem,20vw,29vh)}
 .operator-clock .tv-schedule-list{max-height:22rem}
}
@media(max-height:520px) and (min-width:761px){
 .operator-clock .timer{font-size:clamp(3.1rem,20vh,6rem)}
 .operator-clock .watch-head,.operator-clock .watch-foot{padding:.24rem .55rem}
 .operator-clock .blinds div,.operator-clock .metrics div{padding:.25rem .2rem}
 .operator-clock .tv-eliminations{padding:.35rem}
}

.tv-eliminations{background:#211c16;border:1px solid #795d43;border-radius:.82rem;margin:.65rem 0 1rem;padding:clamp(.55rem,1.05vw,.95rem)}
.tv-eliminations h3{margin:0 0 .38rem;font-size:clamp(1rem,1.55vw,1.75rem);color:var(--brass)}
.tv-eliminations p{margin:0}
.tv-elimination-list{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.38rem;padding:0;margin:0}
.tv-elimination-list li{display:grid;gap:.12rem;padding:.35rem .48rem;background:#2c251c;border:1px solid #514337;border-radius:.42rem;line-height:1.13;min-width:0}
.tv-elimination-list li:first-child{border-color:#a07e4d}
.tv-elimination-list strong{font-size:clamp(.92rem,1.22vw,1.4rem);overflow-wrap:anywhere}
.tv-out-place,.tv-elimination-list small{font-size:clamp(.64rem,.83vw,.87rem);font-weight:740;color:var(--soft)}
.tv-elimination-list li:first-child .tv-out-place{color:var(--brass)}

/* The TV seating board spends the screen on assignments, not the site chrome. */
.tv-seating-screen #mast{display:none}
.tv-seating-screen main{max-width:none;padding:clamp(10px,1.25vw,22px)}
.tv-seating-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding-bottom:10px;margin-bottom:11px;border-bottom:1px solid #795c3c}
.tv-seating-kicker{color:var(--brass);font-size:clamp(.7rem,1.04vw,.92rem);font-weight:800;letter-spacing:.13em;text-transform:uppercase;margin:0 0 2px}
.tv-seating-kicker span{display:inline-block;margin-right:.22em}
.tv-seating-intro{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 14px}
.tv-seating-intro h1{margin:0;font-size:clamp(1.55rem,2.75vw,3.1rem)}
.tv-seating-intro p{margin:0;max-width:min(52vw,55ch);font-size:clamp(.82rem,1.22vw,1.22rem);color:var(--soft);overflow-wrap:anywhere}
.tv-seating-head .actions{gap:6px}
.tv-seating-head button{font-size:.84rem;padding:.38rem .62rem}
.tv-seating-empty p{margin:0}
.tv-seating-grid{
 display:grid;grid-template-columns:repeat(var(--board-columns),minmax(0,1fr));gap:clamp(8px,.85vw,16px);
 /* Account for TV-safe margins, the metadata line, card headings, and row gaps before sizing names. */
 --board-header-budget:calc(78px + min(44px,2.5vw) + min(54px,3.1vw) + var(--board-card-rows) * (22px + min(38px,1.96vw)));
 --seat-line-height:clamp(22px,calc((100vh - var(--board-header-budget) - var(--tv-ticker-reserve,0px)) / var(--board-seat-lines)),45px)
}
.tv-seat-table{min-width:0;border:1px solid #8d704d;border-radius:9px;background:#211c16;overflow:hidden}
.tv-seat-table h2{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0;padding:5px 10px;border-bottom:1px solid #655137;background:#35291b;color:var(--brass);font:800 clamp(1.12rem,1.72vw,2rem)/1.14 system-ui,sans-serif}
.tv-seat-table h2 small{color:var(--soft);font:700 clamp(.7rem,.85vw,.93rem)/1.1 system-ui,sans-serif;white-space:nowrap}
.tv-seat-lists{padding:4px 9px;display:grid;grid-template-columns:minmax(0,1fr);gap:0 10px}
.split-seats .tv-seat-lists{grid-template-columns:repeat(2,minmax(0,1fr))}
.split-seats .tv-seat-lists ol+ol{border-left:1px solid #513f2c;padding-left:9px}
.tv-seat-table ol{min-width:0;margin:0;padding:0;list-style:none}
.tv-seat-table li{min-width:0;display:grid;grid-template-columns:2.65ch minmax(0,1fr);gap:6px;align-items:center;height:var(--seat-line-height);border-bottom:1px solid #493c2b;line-height:1.05}
.tv-seat-table li:last-child{border-bottom:0}
.tv-seat-table li span{font-size:clamp(.77rem,calc(var(--seat-line-height) * .55),1.2rem);font-variant-numeric:tabular-nums;font-weight:800;color:var(--brass)}
.tv-seat-table li strong{min-width:0;color:var(--cream);font-size:clamp(.93rem,calc(var(--seat-line-height) * .69),1.8rem);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.split-seats .tv-seat-table li strong{font-size:clamp(.83rem,calc(var(--seat-line-height) * .62),1.35rem)}
@media(max-width:820px){
 .tv-seating-grid{grid-template-columns:repeat(2,minmax(0,1fr));--seat-line-height:29px}
 .tv-seating-grid[data-table-count="1"]{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:560px){
 .tv-seating-grid{grid-template-columns:minmax(0,1fr)}
 .tv-seating-intro p{max-width:100%}
}

/* League chip setup and read-only clock legend. */
.league-chip{width:1.35em;height:1.35em;display:inline-block;flex:none;vertical-align:middle;border-radius:50%;background:var(--chip-color);border:.14em dashed #ffffffc7;box-shadow:0 0 0 1px #100d0b,0 0 0 2px #b49a7a66,inset 0 0 0 .13em #160d1452}
.chip-white{--chip-color:#f3eadb;border-color:#4c433b}.chip-red{--chip-color:#cb4543}.chip-blue{--chip-color:#347fd1}.chip-green{--chip-color:#48a370}
.chip-black{--chip-color:#242326}.chip-purple{--chip-color:#9261c1}.chip-orange{--chip-color:#e3823c}.chip-yellow{--chip-color:#e2b949;border-color:#473316}
.chip-pink{--chip-color:#e992b5}.chip-gray{--chip-color:#8b8d93}.chip-brown{--chip-color:#855c40}.chip-teal{--chip-color:#41a6a4}
.chip-legend{width:100%;list-style:none;padding:0;margin:.15rem 0;display:flex;flex-wrap:wrap;gap:.32rem .65rem}
.chip-legend li{display:flex;align-items:center;gap:.38rem;font-size:.86rem;white-space:nowrap;color:var(--soft)}
.chip-legend strong{color:var(--cream);font-variant-numeric:tabular-nums}
.league-chips-panel h2,.league-chips-panel .row-between p{margin-bottom:.4rem}
.league-chips-panel .micro{margin:.7rem 0 0}
.chip-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem .63rem}
.chip-setup-color{min-width:0;margin:0;border:1px solid var(--line);border-radius:.52rem;padding:.25rem .6rem .58rem}
.chip-setup-color legend{padding:0 .28rem;color:var(--brass);font-weight:750}
.chip-setup-color legend .league-chip{margin-right:.48rem}
.chip-setup-color>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.chip-setup-total{font-weight:800;margin:.65rem 0;color:var(--brass)}
.tv-chip-legend{padding:.46rem .7rem .56rem;border-bottom:1px solid #493c2b}
.tv-chip-legend h3{font-size:clamp(.83rem,1.11vw,1.32rem);margin:0 0 .25rem;color:var(--brass)}
.tv-chip-legend .chip-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.15em),1fr));gap:.28rem .35rem}
.tv-chip-legend .chip-legend li{font-size:clamp(.74rem,.94vw,1.13rem);line-height:1.15}
.tv-chip-legend .league-chip{width:1.13em;height:1.13em}
.tv-seat-table li{grid-template-columns:2.4ch minmax(0,1fr) auto}
.tv-seat-table .tv-seat-stack{color:var(--brass);font-size:clamp(.75rem,calc(var(--seat-line-height) * .58),1.35rem);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.split-seats .tv-seat-table li{gap:4px}
@media(max-width:410px){.chip-setup-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep extended sign-up countdowns legible without clipping on narrow screens. */
.timer.schedule-long{font-size:clamp(2.3rem,8.2vw,8rem);letter-spacing:-.055em}
.tv .timer.schedule-long{font-size:clamp(2.4rem,min(11vw,21vh),12rem)}

#owner-account{display:flex;align-items:center;gap:.45rem}
.owner-profile-trigger{min-width:44px;min-height:44px}
#owner-profile-dialog{width:min(96vw,78rem);max-width:96vw;max-height:94dvh;padding:clamp(.5rem,1.5vw,1rem)}
#owner-player-frame{display:block;width:100%;height:clamp(240px,73dvh,950px);border:1px solid var(--line);border-radius:.6rem;background:var(--bg,#1d1914)}
#owner-account-details{margin:.2rem 0 .7rem}
#owner-account-details summary{cursor:pointer;padding:.4rem .2rem}
#owner-profile-form{max-width:35rem;margin:0 auto}
#owner-profile-fields{border:0;margin:0;padding:0;min-width:0}
#owner-profile-fields legend{margin:.1rem 0 .65rem}
#owner-profile-fields label{margin-bottom:.7rem}
.owner-profile-login{border-bottom:1px solid var(--line);padding-bottom:.65rem;margin-bottom:.8rem}
.owner-profile-login strong{color:var(--soft);font-size:.84rem}
#owner-profile-email{overflow-wrap:anywhere;margin:.1rem 0;font-weight:700}
.owner-profile-login .micro{margin-bottom:0}
#owner-profile-status:not(:empty){margin:.8rem 0 0}
#owner-profile-status:empty{margin:0}
@media(max-width:510px){.owner-profile-trigger span{display:none}}

/* Photos appear only in the owner-authenticated winner/recent-elimination TV treatments. */
.tv-photo-slot[hidden]{display:none!important}
.tv-photo-slot{display:inline-block;flex:none;aspect-ratio:1;overflow:hidden;border:1px solid var(--brass);border-radius:50%;background:#22170f}
.tv-photo-slot img{display:block;width:100%;height:100%;object-fit:cover}
.tv-photo-slot.is-winner{display:block;width:clamp(3.8rem,min(9vw,12vh),8rem);margin:.42rem auto .1rem;border-width:2px}
.tv-out-person{display:flex;align-items:center;gap:.42rem;min-width:0}
.tv-photo-slot.is-elimination{width:clamp(1.42rem,min(3vw,5vh),3rem)}
.tv-out-person strong{min-width:0}


/* Portal receipts are registrations, not check-ins or seating assignments. */
.online-registrations.compact{margin-top:.62rem;padding:.5rem .75rem;border:1px solid var(--line);border-radius:.72rem;background:var(--panel)}
.online-registrations.compact p{margin:0}
.online-registration-heading{display:flex;align-items:baseline;justify-content:space-between;gap:.2rem .8rem;flex-wrap:wrap;margin:0 0 .35rem}
.online-registration-heading h2,.online-registration-heading h3,.online-registration-heading p{margin:0}
.online-registration-heading h3{color:var(--brass);font-size:clamp(.95rem,1.32vw,1.25rem)}
.online-registration-heading p{font-size:clamp(.83rem,1.18vw,1.08rem)}
.online-registration-list{display:flex;flex-wrap:wrap;gap:.25rem .45rem;list-style:none;margin:0;padding:0}
.online-registration-list li{display:flex;align-items:baseline;min-width:0;max-width:100%;gap:.32rem;border:1px solid var(--line);border-radius:.4rem;padding:.08rem .36rem}
.online-registration-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.online-registration-list span{color:var(--soft);font-size:.85rem;white-space:nowrap}
.online-registrations.compact .online-registration-list{max-height:4.3rem;overflow:auto;overscroll-behavior:contain}
.operator-clock .online-registrations.compact{margin:0;padding:.34rem .62rem}
.operator-clock .online-registrations.compact .online-registration-list{max-height:3.65rem}
.online-registration-counts{display:flex;flex-wrap:wrap;align-items:baseline;gap:.22rem 1rem;margin:0 0 .35rem;font-weight:650}
.online-registration-counts strong{color:var(--brass);font-size:1.16em;font-variant-numeric:tabular-nums}
.online-registration-counts small{color:var(--soft);font-weight:500}

/* Attendance selection remains local until explicit confirmation. */
.portal-checkin-actions{margin:.5rem 0}
.portal-checkin-actions p{margin:0}
#player-checkins-list input[name=portal-checkin-selection]{width:1.2rem;height:1.2rem;cursor:pointer}

.tv-seating-head .online-registrations.compact{margin:0;padding:.3rem .6rem}.tv-seating-head .online-registration-heading{display:none}.tv-seating-head .online-registration-counts{margin:0}

/* Retain a Players panel when the live ticker module or feed is unavailable. */
#tv-player-panel > .bb-ticker-inline:not([hidden]) + .tv-players-fallback{display:none}
.tv-players-fallback{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .9rem;margin-top:.4rem;padding:.45rem .65rem;border:1px solid #876744;border-radius:.45rem;background:#211810;color:#fff4df;max-height:clamp(3.8rem,11vh,6rem);overflow:auto}
.tv-players-fallback h3,.tv-players-fallback p{margin:0}
.tv-players-fallback h3{color:#e7ba7b;font-size:1em}
.tv-players-fallback-group{display:flex;align-items:baseline;gap:.4rem}
.tv-players-fallback-group+div>strong,.tv-players-fallback-group li span{color:#ff9a8d}
.tv-players-fallback-group ul{display:flex;flex-wrap:wrap;gap:.3rem .65rem;list-style:none;padding:0;margin:0}
.tv-players-fallback-group li{white-space:nowrap}

/* Use the space released by pre-deal attendance without obscuring the blinds or ticker. */
.tv .watch-in-play .timer{font-size:clamp(4rem,16.6vw,42vh)}
.tv.operator-clock .watch-in-play .timer{font-size:clamp(3.8rem,min(17vw,25vh),18rem)}
@media(max-width:760px){
 .tv .watch-in-play .timer{font-size:clamp(3.8rem,22vw,35vh)}
 .tv.operator-clock .watch-in-play .timer{font-size:clamp(3.5rem,22vw,31vh)}
}
@media(max-height:520px) and (min-width:761px){
 .tv.operator-clock .watch-in-play .timer{font-size:clamp(3.1rem,22vh,7rem)}
}

/* Full-screen presentation layer. Show and Close controls stay on the private desk. */
.tv-podium{position:fixed;inset:0;z-index:25;display:grid;place-items:center;overflow:auto;text-align:center;background:radial-gradient(ellipse at 50% 30%,#4a361e 0%,#231d16 52%,#14110d 100%);padding:clamp(.75rem,2.4vh,2.5rem) clamp(.65rem,4vw,4rem);color:var(--cream)}
.tv-podium-content{width:min(100%,100rem);margin:auto}
.tv-podium .eyebrow{font-size:clamp(.72rem,1.3vw,1.3rem);margin:0 0 .3rem}
.tv-podium h2{font:700 clamp(1.8rem,min(5.7vw,8vh),5rem)/1.05 Georgia,serif;margin:0;color:#fff3d4}
.tv-podium-event{color:var(--soft);font-size:clamp(.85rem,1.55vw,1.65rem);margin:.45rem auto clamp(.8rem,3vh,2.5rem);overflow-wrap:anywhere}
.tv-podium-cards{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:clamp(.3rem,1.7vw,1.6rem);margin:0;padding:0}
.tv-podium-cards[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,65rem);margin-inline:auto}
.tv-podium-place{display:grid;justify-items:center;align-items:center;gap:clamp(.35rem,2vh,1.5rem);padding:clamp(.6rem,3vh,3rem) clamp(.25rem,1.2vw,1.4rem);border:1px solid #716453;border-radius:clamp(.6rem,1.4vw,1.6rem);background:#231d16}
.tv-podium-place[data-place="1"]{border:2px solid #edb965;background:#352719}
.tv-podium-label{font-weight:900;font-size:clamp(.82rem,min(2.45vw,4.5vh),2.5rem);line-height:1.05;color:#f1dcae}
.tv-podium-place[data-place="1"] .tv-podium-label{color:#ffcd77}
.tv-podium-place[data-place="3"] .tv-podium-label{color:#f7be97}
.tv-podium-portrait{display:grid;place-items:center;width:clamp(3.6rem,min(17vw,29vh),20rem);aspect-ratio:1;border-radius:50%;overflow:hidden;background:#4a3421;border:2px solid #b5925d}
.tv-podium-place[data-place="1"] .tv-podium-portrait{width:clamp(4.2rem,min(20vw,35vh),23rem);border-color:#ffcd77}
.tv-podium-portrait .tv-photo-slot{width:100%;height:100%;border:0;display:block}
.tv-podium-portrait .tv-photo-slot:not([hidden])+.tv-podium-initials{display:none}
.tv-podium-initials{font-size:clamp(1.3rem,min(6vw,12vh),7rem);font-weight:900;letter-spacing:.02em;color:#f6cf91}
.tv-podium-name{font-size:clamp(.81rem,min(2.75vw,5.2vh),3rem);font-weight:850;line-height:1.12;overflow-wrap:anywhere;min-width:0}
.tv-podium-admin{margin-block:.7rem}

.hosted-save-status:not([hidden]) {
 position: fixed;
 z-index: 50;
 inset: auto 1rem 1rem auto;
 max-width: min(28rem, calc(100vw - 2rem));
 padding: .65rem .85rem;
 margin: 0;
 border: 1px solid #70634b;
 border-radius: .45rem;
 background: #1e1c18;
 color: #fff4dc;
 pointer-events: none;
}

/* Club navigation and the selected tournament are separate visual levels. */
.mast{background:#1b2024;border-bottom-color:#465158}
.club-menu-label{padding:.4rem .55rem;color:#c1cbd1;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.game-workspace{min-width:0;margin-top:.7rem;border:1px solid #886b45;border-top:4px solid var(--brass);border-radius:1rem;background:#33291d;padding:clamp(.75rem,2.2vw,1.75rem);box-shadow:0 14px 36px #0004}
.game-workspace .section-head>.actions{min-width:0}
.game-workspace .work-nav{background:#252018;border-radius:.55rem .55rem 0 0}
@media(max-width:540px){.game-workspace .section-head>.actions{width:100%}.game-workspace .work-nav a{padding:.48rem .52rem}.club-menu-label{padding-inline:.25rem}}

.tv .online-registrations.compact:has(.tv-registration-qr){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;align-items:center;column-gap:clamp(.5rem,1.8vw,1.35rem)}
.tv-registration-qr{grid-area:1/2/3/3;display:grid;gap:.12rem;justify-items:center;align-self:center;color:var(--cream);font-size:.75rem;font-weight:800;text-decoration:none}
.tv-registration-code{display:block;width:clamp(5.25rem,13vh,8rem);height:auto;border-radius:.2rem;background:white}
.tv .online-registrations.compact:has(.tv-registration-qr)>.online-registration-counts{grid-area:2/1/3/2}

/* Game Night keeps the host’s next action separate from club navigation. */
.game-feature{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-block:0 1rem;border-color:var(--brass);background:linear-gradient(110deg,#372b1b,var(--panel));}
.game-feature h2,.game-feature p{margin:.18rem 0}
.secondary-actions{position:relative;min-width:max-content}
.secondary-actions summary{cursor:pointer;padding:.55rem .65rem;color:var(--soft);font-weight:650}
.secondary-actions .actions{padding:.25rem .5rem .5rem}
.game-steps{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.9rem 0 1rem}
.game-steps a,.game-step-disabled{padding:.5rem .65rem;border-radius:.45rem}
.game-steps a{border:1px solid var(--line);color:var(--cream);text-decoration:none}
.game-step-disabled{color:var(--soft)}
#game-clock,#game-checkins{scroll-margin-top:1rem}
.game-roster{margin-block:1rem}
.game-roster input[type=search]{width:100%}
.game-player-list{list-style:none;margin:.7rem 0 0;padding:0;display:grid;gap:.35rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
.game-player-list li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border:1px solid var(--line);border-radius:.45rem;padding:.4rem .55rem;min-width:0}
.game-player-list li[hidden]{display:none}
.game-player-list small{display:block;color:var(--soft)}
.game-player-list strong{overflow-wrap:anywhere}
@media(max-width:540px){.game-feature{align-items:stretch;flex-direction:column}.game-feature .btn{text-align:center}.game-steps{gap:.37rem}.game-steps button,.game-steps a{min-height:44px;box-sizing:border-box}}

/* Venue TV: clear countdown and blinds, with check-in before the first deal. */
.tv-clock-layout>div{display:flex;flex-direction:column;gap:clamp(.35rem,1vh,.85rem);min-width:0}
.tv-clock-layout .watch{align-self:stretch}
.tv-clock-layout .watch-pregame .blinds,.tv-clock-layout .watch-pregame .metrics{display:none}
.tv-clock-layout .watch-pregame .progress{display:none}
.tv-clock-layout .watch-head,.tv-clock-layout .watch-foot{padding:clamp(.36rem,1vh,.85rem) clamp(.55rem,1.75vw,1.3rem)}
.tv-clock-layout .watch-head #clock-phase{font-size:clamp(.77rem,1.36vw,1.35rem);letter-spacing:.08em;text-align:left}
.tv-clock-layout .tv-current-phase{padding:.2em .48em;border-radius:.3rem;color:#241600;background:#ffe46a}
.tv-clock-layout .watch-foot{gap:.45rem 1rem}
.tv-clock-layout #game-break.is-upcoming-break{color:#ffe7a8;font-weight:800}
.tv-clock-layout #game-break:empty{display:none}
.tv-clock-layout .watch-in-play .blinds strong{font-size:clamp(1.75rem,5.8vh,4.9rem)}
.tv-clock-layout .watch-in-play .blinds div,.tv-clock-layout .watch-in-play .metrics div{padding:clamp(.25rem,.9vh,.65rem) .25rem}
.tv-clock-layout .watch-in-play .bb-ticker-person{gap:.36em}
.tv-clock-layout #tv-player-panel .bb-ticker-inline{height:clamp(34px,4.35vh,52px);font-size:clamp(.83rem,1.24vw,1.25rem)}
.tv-clock-layout #tv-player-panel .bb-ticker-photo,.tv-clock-layout #tv-player-panel .bb-ticker-initials{height:1.44em;width:1.44em}
.tv-clock-layout .tv-players-fallback{margin:0;padding:.28rem .56rem;max-height:clamp(2.4rem,8vh,4.45rem)}
.tv-clock-layout .online-registrations.compact{margin:0;font-size:clamp(.88rem,1.35vw,1.26rem)}
.tv-clock-layout .online-registration-counts strong{font-size:1.34em}
.tv-clock-layout .tv-schedule-row.current{border-width:2px;box-shadow:inset .42rem 0 #ff981c}
.tv-clock-layout .tv-schedule-row.current .tv-step-name{font-size:clamp(.95rem,1.45vw,1.55rem)}
.tv-clock-layout .schedule-long{font-size:clamp(2.6rem,min(11.2vw,20vh),13rem);letter-spacing:-.075em}
.tv:has(.tv-clock-layout) #mast{display:none}
html:fullscreen .tv .clock-stage-heading{display:none}
@media(min-width:761px){
 .tv:has(.tv-clock-layout) main{height:100dvh;padding-block:clamp(.35rem,1.15vh,.85rem)}
 .tv:has(.tv-clock-layout) #app{display:flex;flex-direction:column;height:100%;min-height:0}
 .tv-clock-layout{flex:1;min-height:0}
 .tv .tv-clock-layout{align-items:stretch;grid-template-columns:minmax(0,1fr) minmax(15rem,27%)}
 .tv-clock-layout .tv-schedule{display:flex;flex-direction:column;min-height:0}
 .tv-clock-layout .tv-schedule-list{min-height:0;flex:1;max-height:none;overscroll-behavior:contain}
 .tv .tv-clock-layout .watch-in-play .timer{font-size:clamp(4rem,min(18.2vw,34vh),21rem);padding:.05em .1em .04em 0}
 .tv .tv-clock-layout .watch-pregame .timer:not(.schedule-long){font-size:clamp(4rem,min(14.6vw,27vh),16rem);padding:.055em .1em .045em 0}
 .tv .tv-clock-layout .watch-pregame .timer.schedule-long{font-size:clamp(2.6rem,min(11.2vw,20vh),13rem)}
 .tv-clock-layout .online-registrations.compact{padding-block:clamp(.32rem,1vh,.7rem)}
}
@media(max-width:760px){
 .tv-clock-layout .watch-in-play .timer{font-size:clamp(3.8rem,23vw,35vh)}
}
@media(max-width:620px){
 #game-checkins .game-checkin-table table,#game-checkins .game-checkin-table tbody{display:block;min-width:0}
 #game-checkins .game-checkin-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
 #game-checkins .game-checkin-table tr{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.15rem .45rem;margin-block:.35rem;border:1px solid var(--line);border-radius:.45rem;padding:.3rem;min-width:0}
 #game-checkins .game-checkin-table td{padding:.15rem;min-width:0;overflow-wrap:anywhere;border:0}
 #game-checkins .game-checkin-table td:nth-child(3){grid-column:3;grid-row:1}
 #game-checkins .game-checkin-table td:nth-child(4){grid-column:2;grid-row:2;color:var(--soft);font-size:.85rem}
 #game-checkins .game-checkin-table td:nth-child(5){grid-column:3;grid-row:2}
 #game-checkins .game-checkin-table td:nth-child(3):not(:empty)::after{content:" chips";font-size:.75em;color:var(--soft)}
 #game-checkins .game-checkin-table input[type=checkbox]{width:1.2rem;height:1.2rem}
}
