:root{color-scheme:dark;--bg:#101820;--panel:#18232d;--line:#2b3841;--orange:#ff8c2b;--muted:#b3bdc6;--white:#f8f6f1;--green:#9ddeac;--red:#ffb9a2;font-family:"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white)}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer;border:1px solid #59616a;border-radius:8px;background:#27333d;color:var(--white);padding:10px 16px}button:hover{background:#3b4853}button.primary{background:var(--orange);border-color:var(--orange);color:#101820;font-weight:800}button:disabled{opacity:.5;cursor:wait}button:focus-visible{outline:3px solid var(--orange)}[hidden]{display:none!important}.eyebrow{font-size:clamp(11px,.85vw,18px);letter-spacing:.13em;font-weight:700;color:var(--muted)}.tv-shell{padding:2.4vh 3vw 1vh;min-height:100vh;display:flex;flex-direction:column;gap:2vh}.tv-header{display:flex;justify-content:space-between;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:1.8vw}.brand>img{width:15vw;max-width:280px;height:auto}.brand-divider{height:62px;width:1px;background:#43515d}h1{font-size:clamp(30px,2.8vw,58px);font-weight:350;margin:0;letter-spacing:-.045em}h1 b{font-weight:800}.spark{font-size:.7em;color:var(--orange);display:inline-block;animation:spark 7s ease-in-out infinite;margin-left:12px}.header-right{text-align:right;display:grid;grid-template-columns:auto auto;align-items:center;gap:10px 24px}.header-right time{font-size:clamp(30px,2.5vw,52px);font-variant-numeric:tabular-nums;font-weight:300}.live{letter-spacing:.08em;font-size:13px;font-weight:700;color:var(--muted)}.live.good{color:var(--green)}.live.good:before{content:"";display:inline-block;width:9px;height:9px;background:var(--green);border-radius:50%;margin-right:9px;box-shadow:0 0 12px #9ddeac80;animation:pulse 3s infinite}.tv-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:7px}.tv-actions button{padding:4px 9px;font-size:12px;background:transparent;border-color:#3e4a54;color:#b6c0c8}.tv-warning{background:#704421;color:#fff0cf;border-left:4px solid var(--orange);border-radius:6px;padding:9px 16px;font-size:clamp(16px,1.15vw,23px)}.tv-main{display:grid;grid-template-columns:1.4fr 1fr;gap:2vw;flex:1;min-height:65vh}.leaderboard{display:flex;flex-direction:column;min-width:0}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:10px 0 2vh}h2{font-size:clamp(25px,2.5vw,50px);line-height:1.12;margin:.15em 0;letter-spacing:-.04em}h2 span{font-weight:350}.pill{border:1px solid #6b4a30;background:#33291f;color:#ffc285;padding:9px 15px;border-radius:30px;font-size:clamp(13px,1vw,22px);max-width:45%;text-align:center}.podium{display:grid;grid-template-columns:1fr;gap:1.25vh;flex:1}.rank{background:linear-gradient(110deg,#23303a,#19252e);border:1px solid #35424c;border-radius:15px;display:flex;align-items:center;gap:1.4vw;padding:1.5vh 1.7vw;min-height:14vh;position:relative;overflow:hidden}.rank.first{border-color:#ff9b45;background:linear-gradient(110deg,#55331d,#282a27);box-shadow:inset 4px 0 var(--orange)}.rank.first:after{content:"";position:absolute;top:-100%;left:-50%;width:25%;height:300%;transform:rotate(30deg);background:linear-gradient(90deg,transparent,#ffffff06,transparent);animation:shine 12s infinite;pointer-events:none}.medal{font-size:clamp(30px,3.1vw,64px);font-weight:900;color:#afbac4;width:1.2em;text-align:center}.first .medal{color:#ffc77d}.rank-person{flex:1;min-width:0}.rank-name{font-size:clamp(20px,2vw,44px);font-weight:700;line-height:1.18;overflow-wrap:anywhere}.rank-caption{font-size:clamp(10px,.85vw,17px);color:#e5c4a4;margin-top:7px}.rank-number{font-size:clamp(32px,3.8vw,78px);font-weight:800;font-variant-numeric:tabular-nums;text-align:right;letter-spacing:-.04em}.rank-unit{font-size:clamp(12px,.9vw,18px);text-align:right;color:var(--muted)}.empty{color:var(--muted);font-size:2vw}.metric-note{font-size:clamp(12px,.85vw,18px);color:var(--muted);margin:1.1vh 0}.evolution{border-top:1px solid #4c4034;display:flex;align-items:center;gap:18px;padding:1.7vh .5vw .3vh}.evo-icon{background:#364035;color:#b5d597;font-size:2.3vw;border-radius:12px;padding:2px 15px}.evolution h3{font-size:clamp(17px,1.4vw,30px);margin:5px 0}.evolution p{margin:0;color:var(--muted);font-size:clamp(12px,.9vw,18px)}.evolution>strong{font-size:3vw;color:var(--green);margin-left:auto}.team-card{background:radial-gradient(ellipse at 70% 80%,#4b3524 0,transparent 70%),linear-gradient(145deg,#27303a,#1a242d);border:1px solid #3f474c;border-radius:22px;padding:2.4vh 2.1vw 1vh;position:relative;overflow:hidden;display:flex;flex-direction:column}.team-card h2{font-size:clamp(25px,2.25vw,45px)}.team-number{color:var(--orange);font-size:clamp(70px,8.9vw,185px);font-weight:900;font-variant-numeric:tabular-nums;line-height:1.1;letter-spacing:-.065em;margin-top:1vh}.team-unit{font-size:clamp(18px,1.4vw,30px);margin:0;color:#e6ddd3}.team-scene{min-height:24vh;flex:1;position:relative;margin-top:1vh}.mascot{height:28vh;max-width:43%;object-fit:contain;position:absolute;right:-1vw;bottom:1.8vh;z-index:3;filter:drop-shadow(0 15px 12px #0006);transform-origin:bottom center;animation:bob 4s ease-in-out infinite}.speech{position:absolute;right:5vw;top:0;font-size:clamp(12px,1vw,22px);line-height:1.45;color:#e6d6c6;transform:rotate(-3deg)}.speech b{color:#ffd2a6}.truck-wrap{position:absolute;bottom:.3vh;left:-1vw;width:84%;animation:truck-bounce 2.2s infinite}.truck{width:100%;overflow:visible;position:relative;z-index:2}.road{position:absolute;bottom:1.2vh;width:100%;height:4px;background:repeating-linear-gradient(90deg,#7d746b 0,#7d746b 30px,transparent 30px,transparent 65px);animation:road 2s linear infinite}.box{animation:box-in .7s cubic-bezier(.2,.9,.2,1.2) both}.scene-dots{position:absolute;inset:15% 0;background-image:radial-gradient(#ffffff12 1px,transparent 1px);background-size:18px 18px;mask-image:linear-gradient(90deg,transparent,#000,transparent)}.scene-note{font-size:clamp(11px,.8vw,16px);color:#bcaea2;margin:0;text-align:center}.goal-wrap{margin-top:1.5vh}.goal-label{display:flex;justify-content:space-between;color:#f8c79a}.progress{height:8px;border-radius:10px;background:#111a22;margin:7px 0;overflow:hidden}.progress>div{height:100%;background:var(--orange);transition:width 2s ease}.goal-wrap small{color:var(--muted)}.tv-footer{display:flex;border-top:1px solid #3e4547;gap:2vw;align-items:center;padding-top:1.6vh;min-height:8vh}.record-label{display:flex;align-items:center;gap:12px;color:#f6be7d;font-size:28px;white-space:nowrap}.record-label span{font-size:clamp(11px,.8vw,17px);letter-spacing:.05em;line-height:1.4}.records{flex:1;font-size:clamp(16px,1.2vw,26px);color:#e4d8ca;min-width:0}.records strong{color:#ffc084}.updated{display:flex;flex-direction:column;text-align:right;color:var(--muted);font-size:clamp(11px,.8vw,17px);gap:4px;max-width:30%}.tv-footnote{font-size:clamp(10px,.7vw,14px);color:#8d9ba5;margin:0}.celebration{position:fixed;inset:0;z-index:20;background:#071018e8;display:grid;place-items:center;backdrop-filter:blur(10px);overflow:hidden}.celebration-card{position:relative;text-align:center;padding:4vh 10vw;animation:pop .6s cubic-bezier(.18,.8,.2,1.3)}.celebration-card .trophy{font-size:9vh}.celebration-card h2{font-size:7vw;color:#ffb055;margin:0}.celebration-card h3{font-size:3vw;margin:1vh}.celebration-card>strong{font-size:6vw}.celebration-card p{font-size:1.5vw}.celebration-card img{position:absolute;right:-8vw;bottom:0;height:40vh;animation:party .65s alternate infinite}.confetti{position:absolute;inset:0;pointer-events:none}.confetti i{position:absolute;top:-5%;width:13px;height:24px;background:var(--orange);animation:fall 4s linear infinite}.confetti i:nth-child(3n){background:#eabf40}.confetti i:nth-child(3n+1){background:#b9ddc0}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-9px) rotate(2deg)}}@keyframes truck-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}@keyframes road{to{background-position:-65px 0}}@keyframes pulse{50%{opacity:.5}}@keyframes spark{0%,75%,100%{transform:rotate(0) scale(1)}85%{transform:rotate(90deg) scale(1.2)}}@keyframes shine{0%,70%{left:-50%}100%{left:150%}}@keyframes box-in{from{transform:translateY(-80px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes pop{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes party{to{transform:translateY(-16px) rotate(5deg)}}@keyframes fall{to{transform:translateY(110vh) rotate(540deg)}}
.manage-shell{max-width:1450px;margin:auto;padding:28px}.manage-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.manage-header img{width:180px}.manage-header h1{font-size:32px}.manage-header a{color:var(--orange)}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:20px}.card h2{font-size:25px;margin:0 0 16px}.login-card{max-width:480px;margin:10vh auto}.login-card input{display:block;width:100%;margin:12px 0}.notice{padding:14px 18px;border-radius:9px;border:1px solid #795133;background:#362a20;color:#ffd9b5;margin-bottom:18px;line-height:1.5}.notice.good{border-color:#45694e;background:#243b2b;color:#bcebc7}.manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.kpi{padding:18px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}.kpi span{color:var(--muted);display:block;font-size:13px}.kpi strong{display:block;font-size:36px;color:var(--orange);margin-top:5px}.kpi small{color:var(--muted)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:20px 0}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin:22px 0}.tabs button.active{background:var(--orange);color:#151b21;border-color:var(--orange)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{color:#d3dce3;font-size:14px;display:block}input,select,textarea{background:#101a23;color:var(--white);border:1px solid #51606b;border-radius:7px;padding:10px;width:100%;margin:6px 0 10px}input[type=checkbox]{width:auto;margin-right:8px}textarea{resize:vertical;min-height:180px;font-family:Consolas,monospace;font-size:13px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;background:#101820;padding:16px;border-radius:8px}.muted{color:var(--muted);font-size:14px;line-height:1.55}.error{color:#ffc0a2}.success{color:var(--green)}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:12px 9px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;letter-spacing:.04em;color:var(--muted)}.table-wrap{overflow:auto}.table-wrap input{min-width:75px}.checkbox-cell{white-space:nowrap}.person-editor{border:1px solid var(--line);border-radius:10px;padding:15px;margin-bottom:12px}.person-editor summary{cursor:pointer;font-weight:700;color:#ffc695}.person-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding-top:15px}.pill.small{font-size:12px;padding:4px 9px}.results h3{font-size:19px;color:var(--orange)}.results ul{line-height:1.7}.roster-note{font-size:12px;color:var(--muted)}.audit-row{padding:10px 0;border-bottom:1px solid var(--line)}details>summary{padding:8px 0}code{color:#ffcd9d}.mode-choice{display:inline-block;margin:0 20px 10px 0}.mode-choice input{margin-left:0}.status-line{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.settings-help{line-height:1.6;font-size:13px;color:#bac6cf}
@media(min-width:901px){.tv-shell{height:100vh;min-height:0;gap:1.3vh}.tv-main{min-height:0}.podium{min-height:0;grid-template-rows:repeat(3,minmax(0,1fr))}.rank{min-height:0}.section-heading{padding-top:0;padding-bottom:1.4vh}.team-scene{min-height:20vh}.tv-footer{min-height:7vh}.evolution{padding-top:1.1vh}.tv-header{flex-shrink:0}.team-card{min-height:0}.metric-note{flex-shrink:0}}
@media(max-width:900px){.tv-main{grid-template-columns:1fr}.tv-shell{padding:20px}.brand>img{width:130px}.brand-divider{display:none}.brand .eyebrow{display:none}.tv-main{min-height:auto}.team-card{min-height:500px}.team-scene{min-height:270px}.mascot{height:250px}.rank{min-height:110px}.rank-name{font-size:26px}.rank-number{font-size:45px}.team-number{font-size:95px}.truck-wrap{width:70%}.header-right{gap:5px}.live{font-size:9px}.tv-footer{flex-wrap:wrap}.updated{max-width:none}.evo-icon{font-size:35px}.kpis{grid-template-columns:1fr 1fr}.manage-grid{grid-template-columns:1fr}.field-grid,.person-fields{grid-template-columns:1fr}.manage-shell{padding:16px}.celebration-card h2{font-size:11vw}.celebration-card h3{font-size:7vw}.celebration-card img{height:25vh;right:0;bottom:-25vh}.celebration-card p{font-size:4vw}.celebration-card>strong{font-size:10vw}}
.logo-crop{display:inline-block;position:relative;overflow:hidden;width:180px;aspect-ratio:471/72;vertical-align:middle;flex-shrink:0}.logo-crop img{position:absolute;width:106.794%;max-width:none;height:auto;left:-2.9724%;top:-11.1111%}.brand>.logo-crop{width:15vw;max-width:280px}@media(max-width:900px){.brand>.logo-crop{width:130px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.truck-wheel{transform-box:view-box;transform-origin:var(--cx) var(--cy);animation:wheel-roll 2.4s linear infinite}.truck{filter:drop-shadow(0 8px 6px #0003)}.rank{animation:rank-enter .55s ease both}.rank:nth-child(2){animation-delay:.09s}.rank:nth-child(3){animation-delay:.18s}@keyframes wheel-roll{to{transform:rotate(360deg)}}@keyframes rank-enter{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:translateX(0)}}

.wheel-0{--cx:94px;--cy:174px}.wheel-1{--cx:149px;--cy:174px}.wheel-2{--cx:446px;--cy:174px}

/* Reserve the footer's own height; long records and status text must wrap in their cells. */
.tv-footer{
 display:grid;
 grid-template-columns:max-content minmax(0,1fr);
 gap:10px 2vw;
 flex:0 0 auto;
 min-height:0;
 padding-top:12px;
 align-items:center;
}
.tv-footer .record-label{min-width:0;line-height:1.4}
.tv-footer .records{
 min-width:0;
 line-height:1.5;
 overflow-wrap:anywhere;
}
.tv-footer .updated{
 grid-column:1/-1;
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
 gap:8px 20px;
 max-width:none;
 min-width:0;
 padding-top:9px;
 border-top:1px solid var(--line);
 text-align:left;
 line-height:1.5;
}
.tv-footer .updated span{min-width:0;overflow-wrap:anywhere}
.tv-footer #updated{text-align:center;font-variant-numeric:tabular-nums}
.tv-footer #provisional{text-align:right}
.tv-footnote{flex:0 0 auto;line-height:1.5;overflow-wrap:anywhere}
.tv-warning{flex-shrink:0}
@media(min-width:901px){
 .leaderboard{min-height:0}
 .section-heading,.evolution{flex-shrink:0}
}
@media(max-width:900px){
 .tv-footer{grid-template-columns:minmax(0,1fr)}
 .tv-footer .updated{grid-template-columns:minmax(0,1fr);gap:5px}
 .tv-footer #updated,.tv-footer #provisional{text-align:left}
}

/* Keep the illustration in its own flexible row, below all production information. */
.team-card>:not(.team-scene){flex:0 0 auto}
.team-card .team-scene{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,.45fr);
 grid-template-rows:auto minmax(0,1fr);
 gap:10px 8px;
 flex:1 1 0;
 min-height:0;
 min-width:0;
 margin-top:12px;
 padding:12px 6px 4px;
 border-top:1px solid #ffffff12;
 overflow:hidden;
 isolation:isolate;
}
.team-scene .speech{
 grid-column:1/-1;
 grid-row:1;
 position:static;
 transform:none;
 text-align:center;
 line-height:1.4;
 z-index:1;
}
.team-scene .speech br{display:none}
.team-scene .speech b{margin-left:.3em}
.team-scene .truck-wrap{
 grid-column:1;
 grid-row:2;
 position:relative;
 inset:auto;
 width:100%;
 height:100%;
 min-height:0;
 min-width:0;
 align-self:end;
}
.team-scene .truck{
 display:block;
 width:100%;
 height:100%;
 overflow:hidden;
}
.team-scene .mascot{
 grid-column:2;
 grid-row:2;
 position:relative;
 inset:auto;
 width:100%;
 height:100%;
 max-width:100%;
 max-height:100%;
 min-height:0;
 min-width:0;
 object-fit:contain;
 object-position:center bottom;
 align-self:end;
 z-index:1;
}
.team-scene .scene-dots{z-index:-1}
.team-scene .road{bottom:2%;width:100%}
.team-card .scene-note{margin-top:8px;line-height:1.4}
@media(max-width:900px){
 .team-card .team-scene{min-height:180px;flex-basis:180px}
}

/* Give both illustrations more room without scaling them over production text. */
@media(min-width:901px){
 .tv-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .team-card{padding-left:1.5vw;padding-right:1.5vw}
 .team-card .team-number{font-size:clamp(70px,8vw,170px)}
 .team-card .team-scene{
  grid-template-columns:minmax(0,1fr) minmax(0,.48fr);
  padding-left:0;
  padding-right:0;
  gap:8px 4px;
 }
}
@media(max-width:900px){
 .team-card{min-height:570px}
 .team-card .team-scene{min-height:250px;flex-basis:250px}
}

.tv-footer .updated{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tv-footer #updated{text-align:left}@media(max-width:900px){.tv-footer .updated{grid-template-columns:minmax(0,1fr)}}

.tv-actions{flex-wrap:wrap}.tv-actions #preview-events{border-color:var(--orange);color:#ffca9c}#evo-detail:empty{display:none}.celebration-card h2{font-size:clamp(32px,5vw,96px)}

.celebration.rank-up{background:radial-gradient(ellipse at center,#123d2aee,#071018f5 75%)}
.rank-up .celebration-card img,.rank-up #celebrate-value{display:none}
.rank-up .trophy{color:#57ed92;font-size:clamp(100px,23vh,260px);font-weight:900;line-height:1;text-shadow:0 0 45px #47e78570;animation:rank-arrow-rise 1.5s ease-in-out infinite}
.rank-up #celebrate-name{font-size:clamp(34px,5.5vw,110px);margin:2vh 0;color:#f3fff7;overflow-wrap:anywhere}
.rank-up .confetti i{background:#57ed92}
.rank-up .confetti i:nth-child(2n){background:#b2f8cf}
@keyframes rank-arrow-rise{0%,100%{transform:translateY(5px);opacity:.8}50%{transform:translateY(-20px);opacity:1}}

.team-card>.team-result{display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0}
.team-result>:not(.team-scene){flex:0 0 auto}
.team-card>.team-achievement{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 flex:1 1 0;min-height:0;min-width:0;text-align:center;gap:1.2vh;
 animation:rank-enter .5s ease both;
}
.team-achievement .highlight-icon{font-size:clamp(55px,10vh,110px);line-height:1.1}
.team-achievement.promotion .highlight-icon{color:#57ed92;font-weight:900;text-shadow:0 0 30px #47e78550;animation:rank-arrow-rise 1.5s ease-in-out infinite}
.team-achievement h2{font-size:clamp(22px,2.1vw,44px);color:#ffc387;margin:0}
.team-achievement h3{font-size:clamp(30px,3.4vw,70px);line-height:1.12;overflow-wrap:anywhere;margin:0}
.team-achievement>strong{font-size:clamp(25px,2.7vw,56px);color:var(--orange);line-height:1.15}
.team-achievement.promotion>strong{color:#8eecb1}
.team-achievement>p{font-size:clamp(13px,1vw,20px);color:var(--muted);margin:0;line-height:1.5}
.highlight-status{display:flex;flex-direction:column;gap:5px;margin-top:1vh;font-size:clamp(12px,.9vw,18px);color:var(--muted);line-height:1.4}
#highlight-countdown{font-variant-numeric:tabular-nums}
#highlight-rotation:empty{display:none}

#clear-demo-highlights{font-size:13px;padding:6px 12px;margin-top:8px}
@media(max-width:900px){.team-card>.team-result{flex-basis:auto}}

.team-achievement>*{flex:0 0 auto}
@media(min-width:901px) and (max-height:800px){
 .team-card>.team-achievement{gap:.7vh}
 .team-achievement .highlight-icon{font-size:8vh}
 .team-achievement h2{font-size:clamp(20px,2.8vh,30px)}
 .team-achievement h3{font-size:clamp(28px,4.8vh,44px)}
 .team-achievement>strong{font-size:clamp(24px,4vh,38px)}
 .highlight-status{font-size:12px;gap:3px;margin-top:.5vh}
}


.mini-player{flex:0 0 auto;min-width:0;border:1px solid #594333;border-radius:14px;background:linear-gradient(110deg,#30291f,#192630);padding:1.1vh 1vw;display:flex;flex-direction:column;gap:.65vh;margin-top:.5vh}
.mini-radio-heading{display:flex;align-items:center;gap:10px;min-width:0}.mini-radio-heading label{font-size:clamp(11px,.75vw,16px);font-weight:800;letter-spacing:.06em;white-space:nowrap;color:#ffc38b}.mini-radio-heading select{min-width:0;flex:1;max-width:100%;font-size:clamp(17px,1.2vw,26px);font-weight:700;background:#1d2a33;color:#fff;border:1px solid #64717b;border-radius:7px;padding:4px 8px}
.radio-led{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#75828a}.radio-led.playing{background:#9ddeac;box-shadow:0 0 10px #9ddeac80;animation:pulse 3s infinite}
.mini-radio-controls{display:flex;align-items:center;gap:.45vw;flex-wrap:wrap}.mini-radio-controls button{font-size:clamp(16px,1.1vw,24px);line-height:1.1;padding:.5vh .75vw;min-height:34px}.mini-radio-controls #music-pause{background:#ff8c2b;border-color:#ff8c2b;color:#101820;font-weight:800;min-width:6.1em}.mini-radio-status{font-size:clamp(11px,.8vw,16px);line-height:1.3;color:var(--muted);margin:0;overflow-wrap:anywhere}.mini-player :focus-visible{outline:3px solid #ffb570;outline-offset:3px}
.celebration.pace-up{background:radial-gradient(ellipse at center,#244448ef,#071018f5 75%)}.pace-up .trophy,.team-achievement.pace .highlight-icon{color:#ffbf5b}.pace-up #celebrate-value{font-size:clamp(35px,5vw,88px)}
@media(max-width:900px){.mini-player{padding:12px}.mini-radio-heading{flex-wrap:wrap}.mini-radio-heading select{flex-basis:70%}.mini-radio-controls{gap:8px}.mini-radio-controls button{padding:8px 12px}}

/* Keep the metric caption inside its own column, even on a 720p TV. */
.rank-values{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:.35vh;align-self:stretch;flex:0 0 auto;min-width:0}
.rank-values .rank-number{font-size:clamp(28px,5.8vh,76px);line-height:1.05;flex:0 0 auto}
.rank-values .rank-unit{display:block;flex:0 0 auto;font-size:clamp(13px,1.65vh,21px);line-height:1.25;min-height:1.25em;color:#e6ddd3;white-space:nowrap}
.team-unit{flex:0 0 auto;line-height:1.3}
.highlight-hero{display:flex;justify-content:center;align-items:center;gap:2vw;width:100%;height:clamp(100px,18vh,220px);min-height:0;flex:0 1 auto!important}
.highlight-hero .highlight-icon{flex:0 0 auto}
.highlight-mascot{display:block;position:static;max-width:55%;height:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 8px 8px #0005);animation:bob 4s ease-in-out infinite}
.team-achievement .highlight-unit{display:block;font-size:clamp(15px,1.7vh,22px);line-height:1.2;color:#e6ddd3;margin-top:-.6vh}
@media(min-width:901px) and (max-height:800px){
 .rank{padding-top:1vh;padding-bottom:1vh}
 .team-card>.team-achievement{gap:.5vh}
 .highlight-hero{height:14vh}
 .team-achievement h3{font-size:clamp(26px,4.2vh,38px)}
 .team-achievement .highlight-unit{font-size:14px}
}

.period-notice{flex:0 0 auto;padding:.7vh 1vw;border:1px solid #d5913c;border-radius:8px;background:#48321c;color:#ffda9b;font-size:clamp(15px,1.3vw,26px);font-weight:700;line-height:1.3;text-align:center}
#team-period{display:block;font-size:clamp(12px,1.2vh,18px);font-weight:400;line-height:1.4;margin-top:.3vh;color:var(--muted)}

.team-number.total-long{font-size:clamp(54px,6.6vw,140px)}

.productivity-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:18px 0}.productivity-heading h2{margin:.3em 0}.productivity-heading p{margin:8px 0 0}.productivity-search{min-width:250px;max-width:380px;flex:1;display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--muted)}.productivity-search input{padding:11px 13px;border:1px solid #56616c;border-radius:9px;color:#fff;background:#1b2833;width:100%}
.productivity-chart-heading,.productivity-person-heading{display:flex;justify-content:space-between;align-items:start;gap:18px}.productivity-chart-heading h3,.productivity-person h3{margin:0 0 5px}.productivity-chart-heading p{margin:6px 0}.productivity-legend{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:13px}.productivity-legend span{display:flex;gap:7px;align-items:center}.productivity-legend i{display:inline-block;width:13px;height:13px;border-radius:3px;background:#ff9238}.productivity-legend i.partial{background:repeating-linear-gradient(45deg,#70502f 0 3px,#ffc88c 3px 5px)}
.productivity-chart{display:block;width:100%;height:auto;overflow:visible}.chart-grid{stroke:#41505c;stroke-width:1;stroke-dasharray:3 5}.chart-axis{fill:#bac7d0;font:13px 'Segoe UI',Arial,sans-serif}.productivity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:18px;margin:20px 0}.productivity-person{margin:0!important;min-width:0;overflow:hidden}.productivity-person h3{font-size:19px;line-height:1.3;overflow-wrap:anywhere}.productivity-person-heading strong{font-size:17px;color:#ffb26e;white-space:nowrap}.productivity-person p{font-size:13px;margin:8px 0 0;line-height:1.5}.productivity-provisional{display:block;color:#e6b77d;margin-top:7px;font-size:12px}.productivity-table th,.productivity-table td{white-space:nowrap;text-align:right}.productivity-table th:first-child{text-align:left}.productivity-method{font-size:14px;line-height:1.7}.productivity-overview{margin-top:20px}
@media(max-width:800px){.productivity-heading,.productivity-chart-heading{align-items:stretch;flex-direction:column}.productivity-search{max-width:none;min-width:0}.productivity-grid{grid-template-columns:1fr}.productivity-person-heading{flex-wrap:wrap}.productivity-overview{padding:14px}}

.productivity-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.productivity-tabs button{background:#1b2833;border-color:#52606a;color:#cbd5dd}.productivity-tabs button.active{background:#ff9238;color:#17212a;border-color:#ff9238;font-weight:800}



.productivity-legend i{height:0;border-top:3px solid #cbd6de;background:none;border-radius:0}.productivity-legend i.partial{background:none;border-top-style:dashed}

.productivity-legend i{height:13px;border:0;background:#ff9238;border-radius:3px}.productivity-legend i.partial{background:repeating-linear-gradient(45deg,#70502f 0 3px,#ffc88c 3px 5px);border:0}#productivity-team-rule{margin:10px 0 16px;line-height:1.7}#productivity-team-table{margin-top:12px}

.productivity-range{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:14px 0}.productivity-range label{display:flex;flex-direction:column;gap:6px}.productivity-range p{flex-basis:100%;margin:0}.productivity-range input{color-scheme:dark}

.release-hero{border:1px solid #9d5726;margin-bottom:18px}.release-hero h2{font-size:clamp(24px,3vw,36px);margin:8px 0}.release-positive{color:#90e4ac}.release-summary{font-weight:700;font-size:18px}.release-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;margin:18px 0}.release-option{background:#18231e;border:1px solid #3b6c4b;border-radius:14px;padding:20px}.release-option h3{font-size:24px}.release-rate{display:flex;flex-direction:column;gap:7px;min-width:150px}.release-rate input[type=number]{width:150px}.release-rate button{font-size:12px;padding:7px}.release-rate label{white-space:nowrap}#release-setup{margin-bottom:18px}#release-form>label{display:block;margin:16px 0}#release-team{margin:20px 0}#release-team td{vertical-align:top}#release-team input[type=time]{min-width:110px}#release-team input[type=number]{max-width:150px}

.team-pace{display:grid;grid-template-columns:minmax(260px,1fr) 1.4fr;gap:25px;align-items:center;margin-bottom:18px}.team-pace-svg{width:100%;max-width:370px;display:block;margin:auto}.team-pace h2{font-size:22px}@media(max-width:760px){.team-pace{grid-template-columns:1fr}}

.team-pace{display:block;text-align:center}.team-pace-svg{max-width:370px}

/* TV WebView with a short viewport (e.g. 960x540): wide but not tall, so tighten vertical space. */
@media(min-width:901px) and (max-height:620px){
 .tv-shell{padding:1.4vh 2.2vw .6vh;gap:.9vh}
 .tv-header{gap:12px}
 .logo-crop{width:130px}
 .brand .eyebrow{display:none}
 h1{font-size:clamp(22px,4.4vh,34px)}
 .tv-warning,.period-notice{padding:3px 12px;font-size:clamp(12px,2.4vh,15px);line-height:1.25}
 .section-heading{padding:2px 0 .8vh}
 .section-heading h2{font-size:clamp(20px,4.4vh,30px)}
 .pill{padding:4px 12px;font-size:12px}
 .podium{gap:.8vh}
 .rank{padding:.5vh 1.2vw;gap:1vw;min-height:0}
 .rank-caption{display:none}
 .rank-number{font-size:clamp(22px,4.6vh,36px)}
 .rank-values{gap:0}
 .rank-values .rank-number{font-size:clamp(20px,4.2vh,30px);line-height:1}
 .rank-values .rank-unit{font-size:10px;line-height:1.1;min-height:0}
 .rank-person{line-height:1.1}
 .mini-player{padding:.6vh 1vw;gap:.4vh 10px;flex-direction:row;flex-wrap:wrap;align-items:center}
 .mini-radio-heading{flex:1 1 55%}
 .mini-radio-controls{flex:0 0 auto;flex-wrap:nowrap}
 .mini-radio-controls button{min-height:0;padding:.3vh .6vw}
 .mini-player .mini-radio-status{flex:1 0 100%}
 .mini-player .mini-radio-status{font-size:11px;margin:0}
 .tv-footer{min-height:0;padding-top:.8vh}
 .tv-footnote{font-size:11px}
 .team-card{padding-top:1.4vh}
 .celebration-card h2{font-size:clamp(28px,9vh,64px)}
 .celebration-card h3{font-size:clamp(20px,6vh,40px)}
 .celebration-card p{font-size:clamp(14px,3.4vh,24px)}
 .celebration-card .trophy{font-size:12vh}
}
