#tvSidebar,.tv-bar,.tv-stand{display:none}.tv-icon{width:25px;height:25px;display:block}.theme-control{width:154px}.journey-counter{right:190px}#tvToggle[aria-pressed=true] .tv-icon{fill:#efb19e}.theme-control #tvToggle:hover{background:transparent}
@media(max-width:1100px),(pointer:coarse){#settings .theme-control{width:154px}#settings{grid-template-columns:154px minmax(0,1fr)}}
body.tv-view{background:#faf9f4;color:#4b282e;overflow:auto}.tv-view #tvLayout{display:grid;grid-template-columns:minmax(0,820px) minmax(230px,280px);gap:clamp(24px,4vw,55px);align-items:center;justify-content:center;min-height:100dvh;padding:70px 5vw}.tv-view .tv-frame{overflow:hidden;border:10px solid #292d2e;border-radius:18px;background:#292d2e;box-shadow:0 16px 36px #292d2e25}.tv-view #board{width:100%;height:auto;aspect-ratio:16/10}.tv-view .tv-bar{display:flex;justify-content:space-between;padding:9px 4px 0;color:#fff;font-size:12px}.tv-view .tv-stand{display:block;width:24%;height:12px;margin:auto;border-radius:0 0 8px 8px;background:#292d2e}.tv-view #tvSidebar{display:grid;gap:22px;min-width:0}.tv-description h1{font-size:28px;letter-spacing:-1px;margin:0 0 12px}.tv-description p{font-size:15px;line-height:1.5;margin:0}.tv-view header,.tv-view .bottom,.tv-view #menuToggle{display:none}.tv-view #settings{display:flex;position:static;flex-direction:column;gap:18px;width:100%;max-height:none;padding:0;border:0;background:transparent;overflow:visible;box-shadow:none}.tv-view #settings .controls{display:none}.tv-view #settings .picker{position:static;width:100%;padding:0;border:0;background:transparent;box-shadow:none;order:0}.tv-view #settings .radio{position:static;width:100%;padding:12px 0 0;border:0;border-radius:0;background:transparent;order:1;color:#4b282e}.tv-view .stations{color:#754646}.tv-view #settings .theme-control{position:static;width:auto;order:2;color:#4b282e;justify-content:flex-start}.tv-view #settings .theme-control button{color:#4b282e}.tv-view #settings .sticker-offer{position:static;order:3;width:100%;transform:none;display:flex;min-height:44px;padding:10px;font-size:11px}.tv-view #settings .sticker-offer span{font-size:11px}.tv-view #settings .sticker-offer strong{font-size:13px;margin-top:4px}.tv-view #settings .sticker-offer img{width:32px;height:32px}.tv-view #settings #seeAll{display:block;order:4}.tv-view .journey-counter{position:static;display:flex;transform:none;width:fit-content;margin-top:16px;max-width:100%;color:#4b282e}.tv-zoom{display:block;font-size:12px}.tv-zoom output{float:right}.tv-zoom input{margin-bottom:0}.tv-view #tvToggle{color:#4b282e}
@media(max-width:760px){.tv-view #tvLayout{grid-template-columns:minmax(0,1fr);gap:28px;padding:28px 18px}.tv-view #tvSidebar{width:100%;max-width:480px;justify-self:center}.tv-view .tv-description{padding-right:55px}.tv-view #tvToggle{position:fixed;right:18px;top:18px;z-index:30;border-radius:12px;background:#faf9f4;padding:8px;width:48px;box-shadow:0 1px 8px #292d2e20}.tv-view .tv-frame{border-width:7px}}

/* High contrast view switch, beside the characters in the TV layout. */
.theme-control #tvToggle{background:#fff;color:#302b2c;border:1px solid #302b2c33;border-radius:12px;padding:7px 5px;box-shadow:0 2px 6px #00000018;min-height:56px;justify-content:center}
.theme-control #tvToggle:hover{background:#fff;box-shadow:0 3px 10px #00000030}
#tvToggle:focus-visible{outline:3px solid #efb19e;outline-offset:4px}
body.tv-view{background:#1e202c;color:#f5eee3;color-scheme:dark}
.tv-view .tv-frame{border-color:#10121a;background:#10121a;box-shadow:0 18px 45px #0005}
.tv-view .tv-stand{background:#10121a}
.tv-view #settings .radio,.tv-view .stations,.tv-view #settings .theme-control,.tv-view #settings .theme-control button{color:#f5eee3}
.tv-view input[type=range]{background:#8b8c9d}
.tv-view #settings .picker button{background:#f5eee3;border:1px solid transparent}
.tv-view #settings .picker button.active{background:#efb19e;border-color:#fff}
.tv-view #settings .sticker-offer{color:#302b2c;border-color:#efb19e}
.tv-view #settings #seeAll{background:#343747;border-color:#707386;color:#f5eee3}
.tv-view .tv-character-row{display:flex;gap:14px;align-items:center;order:0;min-width:0}
.tv-view #settings .tv-character-row .picker{flex:1;min-width:0;gap:5px}
.tv-view #tvToggle{position:static;display:flex;flex:0 0 70px;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:70px;min-height:70px;padding:8px 5px;background:#fff;color:#302b2c;border:1px solid #fff;border-radius:14px;box-shadow:0 3px 12px #0004;font-size:11px;font-weight:600;white-space:nowrap}
.tv-view #tvToggle .tv-icon{width:34px;height:34px;fill:#efb19e}
.tv-view #tvToggle:hover{background:#ffe7dc;transform:translateY(-1px)}
.tv-view .tv-description{padding-right:0}
@media(max-width:760px){.tv-view #tvToggle{position:static;width:70px}.tv-view .tv-character-row{gap:12px}.tv-view #settings .picker button{height:52px}.tv-view #settings .picker img{height:40px}}
/* A crisp silhouette keeps the television distinct from the dark room. */
.tv-view .tv-frame{outline:1px solid #737783;outline-offset:0;box-shadow:inset 0 1px 0 #ffffff12,0 16px 36px #0004}
.tv-view .tv-stand{border:1px solid #737783;border-top:0;height:14px;position:relative;z-index:1}
.tv-view #tvToggle .tv-icon{fill:none}
.tv-view #tvToggle:hover{background:#eceef5}
/* A quiet, contrasting switch for the dark viewer. */
.tv-view #tvToggle{background:#484c60;border-color:#85899b;color:#f0ede6;box-shadow:0 3px 10px #0003}
.tv-view #tvToggle:hover{background:#565b70}

/* Keep related controls together in viewing order. */
.tv-view #settings .tv-zoom{order:2;width:100%}
.tv-view #settings .tv-theme-row{order:3;display:flex;align-items:center;gap:18px;min-width:0}
.tv-view #settings .tv-theme-row .theme-control{order:0;flex:0 0 auto}
.tv-view #settings .tv-theme-row .journey-counter{margin:0;flex:0 1 auto;min-height:44px;white-space:normal}
.tv-view #settings .sticker-offer{order:4}
.tv-view #settings #seeAll{display:none}
.theme-control #tvToggle{background:#484c60;border-color:#85899b;color:#f0ede6}
.theme-control #tvToggle:hover{background:#565b70}
.night .theme-control #tvToggle{color:#f0ede6}

.tv-speed-label{display:none}.tv-view .tv-speed-label{display:block;font-size:12px;line-height:normal;margin-bottom:8px}

/* In the case-study embed, keep the dot total beside the compact menu. */
@media(max-width:1100px), (pointer:coarse){
 .external-controls .journey-counter{position:fixed;top:max(18px,env(safe-area-inset-top));right:calc(max(14px,env(safe-area-inset-right)) + 52px);bottom:auto;transform:none;margin:0;min-height:44px;z-index:20}
}
