/* One source of colour tokens for every page and embedded UI shell. */
.page-progress{position:fixed;inset:0 0 auto;height:3px;background:var(--action);transform:scaleX(0);transform-origin:left;z-index:60;pointer-events:none}
body[data-theme][data-theme] .back-to-top{position:fixed;left:18px;bottom:max(18px,env(safe-area-inset-bottom));width:46px;height:46px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);font:700 24px system-ui;box-shadow:0 5px 18px #0002;z-index:40}
.back-to-top[hidden]{display:none!important}
@media print{.page-progress,.back-to-top{display:none!important}}
body[data-theme][data-view-version=classic] .hero{grid-template-columns:1fr!important;max-width:980px!important;min-height:0!important;gap:28px!important}
body[data-theme][data-view-version=classic] .hero-copy{order:0!important;text-align:center}
body[data-theme][data-view-version=classic] .hero-copy>p{margin-inline:auto!important}
body[data-theme][data-view-version=classic] .hero-actions{justify-content:center}
body[data-theme][data-view-version=classic] .hero-image{order:1!important;width:100%;height:360px!important}
body[data-theme][data-view-version=classic] :is(article,.preview-card,.settings-form){border-radius:8px!important}
body[data-theme][data-view-version=classic] .section-heading{border-left:4px solid var(--action);padding-left:20px}
body[data-theme][data-view-version=lite] :is(*,*::before,*::after){animation:none!important;transition:none!important;backdrop-filter:none!important;box-shadow:none!important}
body[data-theme][data-view-version=lite] .hero{min-height:0!important;padding-block:24px!important;gap:24px!important}
body[data-theme][data-view-version=lite] .hero h1{font-size:clamp(34px,5vw,60px)!important}
body[data-theme][data-view-version=lite] .hero-image{height:280px!important}
body[data-theme][data-view-version=lite] .section{padding-block:28px!important}
body[data-theme][data-view-version=lite] :is(article,.settings-form,.preview-card){border-radius:6px!important}
body[data-theme][data-view-version=lite] .hero-fx{display:none!important}
body[data-theme][data-theme] .hour-update-panel dl>div{background:var(--panel-2)!important;color:var(--ink)!important;border-color:var(--line)!important;min-width:0}
body[data-theme][data-theme] .hour-update-panel :is(dt,dd){color:var(--ink)!important}
body[data-theme][data-theme] [data-live-phase]{background:var(--action)!important;color:var(--action-ink)!important;border-radius:10px;padding:12px}
body[data-theme][data-theme] .hour-update-panel{grid-template-columns:1fr!important}
body[data-theme][data-theme] .hour-update-panel dl{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body[data-theme][data-theme] .copy-code{background:var(--action)!important;color:var(--action-ink)!important;border:1px solid var(--action)!important;min-height:48px;border-radius:12px}
body[data-theme][data-theme] .copy-code span{color:inherit!important}
body[data-theme][data-theme] .copy-code:hover{filter:brightness(1.12)}
body[data-theme][data-theme] .hero-image .image-title{left:20px!important;right:20px!important;bottom:76px!important;padding:16px!important;max-width:none;background:#09121be6!important}
body[data-theme][data-theme] .hero-image .image-title strong{font-size:clamp(30px,4.2vw,60px)!important;line-height:1.05!important}
body[data-theme][data-theme] .hero-image .image-title>span{font-size:11px!important;line-height:1.5!important}
body[data-theme][data-theme] .hero-image .image-link{left:22px!important;bottom:22px!important;padding:8px 12px;border-radius:8px;background:#09121b!important;font-size:14px!important;line-height:1.5}
@media(max-width:820px){
 body[data-theme][data-theme] .header{display:grid!important;grid-template-columns:minmax(36px,1fr) auto 44px auto!important;gap:8px!important;min-height:68px!important;padding:10px 16px!important;align-items:center!important}
 body[data-theme][data-theme] .header>.brand{grid-column:1;grid-row:1;margin:0!important;justify-self:start}
 body[data-theme][data-theme] .header>.menu-toggle{grid-column:2;grid-row:1;display:block!important;margin:0!important}
 body[data-theme][data-theme] .header>.theme-toggle{grid-column:3;grid-row:1;margin:0!important}
 body[data-theme][data-theme] .header>.language-toggle{grid-column:4;grid-row:1;margin:0!important;max-width:76px!important}
 body[data-theme][data-theme] .header>nav{grid-column:1/-1!important;grid-row:2!important;display:none!important;width:100%!important;min-width:0!important;margin:0!important;padding:8px 0 0!important;position:static!important;transform:none!important;max-height:60dvh;overflow-y:auto}
 body[data-theme][data-theme] .header.menu-open>nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body[data-theme][data-theme] .header>nav a{display:flex!important;align-items:center;min-height:48px;white-space:normal!important;overflow-wrap:anywhere;padding:12px!important;width:100%;min-width:0;line-height:1.4!important}
 body[data-theme][data-theme] .header>.nav-cta{display:none!important}
}
body[data-theme][data-theme] :is(footer,.drop-lead,.countdown-main,.sound-progress,.track-actions,.media-toolbar,.remix-card>div){background:var(--surface)!important;background-image:none!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
body[data-theme][data-theme] footer :is(a,span,p){color:var(--ink)!important}
body[data-theme][data-theme] footer a:hover{color:var(--action)!important;text-decoration:underline}
body[data-theme][data-theme] :is(.clock>div,.sound-progress-bar){background:var(--panel-2)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
body[data-theme][data-theme] :is(.loop-button span,.drop-steps article>span){background:var(--action)!important;color:var(--action-ink)!important}
body[data-theme][data-theme] .sound-progress-bar{width:100%;min-height:12px}
body[data-theme][data-theme] #sound-progress-fill{background:var(--action)!important;box-shadow:none!important}
body[data-theme][data-theme] .track-actions{padding:0;border:0;gap:10px;background:transparent!important}
body[data-theme][data-theme] .track-actions>button{flex:1;min-width:160px}
body[data-theme][data-theme] .remix-card{display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)!important;align-items:stretch;min-height:0!important;padding:0!important;gap:0;overflow:hidden;box-shadow:none!important}
body[data-theme][data-theme] .remix-card figure{position:relative!important;inset:auto!important;margin:0;min-height:360px;border-radius:0}
body[data-theme][data-theme] .remix-card picture{display:block;height:100%}
body[data-theme][data-theme] .remix-card img{display:block;width:100%;height:100%;object-fit:cover;object-position:55% center;filter:none!important}
body[data-theme][data-theme] .remix-card figure:after{display:none!important}
body[data-theme][data-theme] .remix-card figcaption{top:auto;bottom:16px;left:16px;right:auto;width:auto;max-width:calc(100% - 32px);padding:8px 12px;background:#101923;color:#fff!important;border-radius:8px;font-size:11px}
body[data-theme][data-theme] .remix-card>div{position:static!important;width:auto!important;padding:clamp(24px,4vw,48px)!important;border:0!important;border-radius:0;backdrop-filter:none;display:flex;flex-direction:column;justify-content:center;gap:18px}
body[data-theme][data-theme] .remix-card h3{font-size:clamp(28px,3vw,44px)!important;line-height:1.12}
body[data-theme][data-theme] .remix-card p{font-size:16px!important;line-height:1.7}
@media(max-width:700px){body[data-theme][data-theme] .remix-card{grid-template-columns:1fr!important}body[data-theme][data-theme] .remix-card figure{height:330px;min-height:0}body[data-theme][data-theme] .clock{gap:8px;grid-template-columns:repeat(4,minmax(0,1fr))}body[data-theme][data-theme] .clock strong{font-size:clamp(26px,7vw,46px)}body[data-theme][data-theme] .clock span{font-size:12px}}
body[data-theme][data-theme] :is(.now-copy,.work-copy,.drop-copy,.eu-panel,.bottom-language-note,.ssl-badge,.join-mail,.certificate-card,.quality-card,.music-meta,.mission-reward){background:var(--surface)!important;background-image:none!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
body[data-theme][data-theme]{--surface-2:var(--panel-2);--line-strong:var(--line)}
.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:32px}
.document-card{padding:28px;border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column;gap:16px}
.document-card .button{margin-top:auto;align-self:flex-start}
.document-card h2{font-size:28px!important;line-height:1.2!important;margin:0}
.document-meta{font-size:12px;letter-spacing:.08em;color:var(--muted)}
.trust-footer{display:flex;align-items:center;flex-wrap:wrap;gap:16px;flex-basis:100%;border-top:1px solid var(--line);padding-top:20px;font-size:12px}
.trust-footer .eu-symbol{font-size:26px;line-height:1}
.settings-advanced{padding:20px;border:1px solid var(--line);border-radius:16px}
.settings-advanced summary{font-weight:700;cursor:pointer;padding:8px}
.settings-advanced[open]>fieldset{margin-top:18px}
.settings-form>.join-submit{position:sticky;bottom:12px;z-index:5;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 30px #0002}
.document-nav{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
@media(max-width:700px){.document-grid{grid-template-columns:1fr}.document-card{padding:22px}.settings-form>.join-submit{position:static}.trust-footer{gap:10px}}
body[data-theme]{--bg:#0b1016;--surface:#141d27;--panel-2:#1c2835;--ink:#f3f7fc;--muted:#b9c8d8;--line:#526477;--lime:#bce8eb;--action:#bce8eb;--action-ink:#10272c;color-scheme:dark}
body[data-theme=light]{--bg:#f3f6fa;--surface:#ffffff;--panel-2:#e7eef5;--ink:#172637;--muted:#42576c;--line:#899cad;--lime:#175f67;--action:#175f67;--action-ink:#ffffff;color-scheme:light}
body[data-theme][data-theme]{--learn-panel:var(--surface);--learn-panel-2:var(--panel-2);--learn-text:var(--ink);--learn-text-soft:var(--muted);--learn-border-strong:var(--line);--learn-border:var(--line);--learn-soft:var(--surface);background:var(--bg)!important;color:var(--ink)!important}
body[data-theme] :is(main,footer,.learn-shell){color:var(--ink)}
body[data-theme][data-theme] :is(.section,.settings-hero,.join-hero,.legal-hero,.stats-hero,.live-hero,.learn-page){background:var(--bg)!important;color:var(--ink)!important}
body[data-theme][data-theme] :is(article,fieldset,details,.settings-form,.settings-copy,.preview-card,.radio-card,.track-body,.music-deck,.custom-player,.loop-panel,.join-form,.now-actions a,.drop-panel,.work-panel,.live-signal-card,.hour-update-panel,.plan-board>div,.stats-table>div,.app-strip,.legal-grid,.certificate-list,.learn-card,.learn-flow>div,.learn-appbar,.learn-app-status,.learn-tabs,.learn-question,.learn-resource,.learn-ai-panel,.learn-ai-panel-head,.learn-ai-note,.learn-privacy-mini,.learn-app-intro,.learn-saving,.code-system,.consent-dialog,.toast){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;text-shadow:none!important}
body[data-theme][data-theme] :is(h1,h2,h3,h4,p,label,legend,summary,small,em,strong,b,li,td,th,.eyebrow,.section-note,.track-count,.player-info,.player-info span,.learn-flow span,.learn-app-status,.learn-badge,.live-pill,.feed-list time,.stats-table span,.now-copy,.drop-copy,.work-copy){color:var(--ink)!important;text-shadow:none!important}
body[data-theme][data-theme] :is(input,textarea,select,option,.button.outline,.small-button,.nav-cta,.icon-button,.favorite-button,.filter-group button,.player-mini,.loop-button,.learn-button.secondary,.learn-text-button,.radio-card,.language-toggle,.theme-toggle,.menu-toggle){color:var(--ink)!important;background:var(--surface)!important;border-color:var(--line)!important}
body[data-theme][data-theme] :is(input,textarea)::placeholder{color:var(--muted)!important;opacity:1}
body[data-theme][data-theme] :is(.lime,.light.button,.learn-button.primary,.filter-group button[aria-pressed=true],.learn-tabs button[aria-current],.music-toggle,.learn-floating-ai){background:var(--action)!important;color:var(--action-ink)!important;border-color:var(--action)!important}
body[data-theme][data-theme] :is(.lime,.learn-button.primary,.learn-tabs button[aria-current],.learn-floating-ai) :is(strong,span,b){color:inherit!important}
body[data-theme][data-theme] :is(.hero-image,.video-start,.track-art,.join-photo,.safe-map,.intro-gate,.afterlight-hero,.screen){color:#fff!important;background-color:#0b141c!important}
body[data-theme][data-theme] :is(.hero-image,.video-start,.track-art,.join-photo,.safe-map,.intro-gate,.afterlight-hero,.screen) :is(p,span,strong,b,em,h1,h2,h3,figcaption,.eyebrow){color:#fff!important}
body[data-theme] :is(.header,.learn-appbar){border-color:var(--line)!important}
body[data-theme] .header nav a{color:var(--muted)!important}
body[data-theme] .header nav a:is(:hover,[aria-current]){color:var(--ink)!important}
body[data-theme][data-theme] .learn-option{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-theme][data-theme] .learn-option:has(input:checked){background:var(--panel-2)!important;border-color:var(--lime)!important}
body[data-theme][data-theme] .learn-tabs button{color:var(--ink);background:var(--surface)}
body[data-theme][data-theme] :is(.section,.settings-form,.join-form,.learn-card) span{color:var(--ink)}
body[data-theme][data-theme] :is(.live-pill,.learn-badge,.learn-ai-chip,.timer>div,.server-grid article,.feed-list article,.stats-table>div,.now-actions a,.drop-steps>div){background:var(--panel-2)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-theme][data-theme] .learn-floating-ai{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;width:auto;height:54px;padding:0 20px;border-radius:18px;box-shadow:0 10px 34px #0004;font:700 14px system-ui;z-index:46}
body[data-theme][data-theme] .learn-ai-panel{position:fixed;right:18px;bottom:86px;width:min(430px,calc(100vw - 36px));height:min(650px,calc(100dvh - 110px));max-height:calc(100dvh - 110px);border:1px solid var(--line)!important;border-radius:22px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 80px #0005;z-index:47}
body[data-theme][data-theme] .learn-ai-panel[hidden]{display:none!important}
body[data-theme] .learn-ai-panel-head{display:flex;align-items:center;justify-content:space-between;padding:16px;gap:12px;border-bottom:1px solid var(--line);flex:none}
body[data-theme] .learn-ai-panel-head>div:first-child{display:grid;gap:4px}
body[data-theme] .learn-ai-panel-head strong{font:700 17px system-ui}
body[data-theme] .learn-ai-panel-head span{font:12px/1.4 system-ui;color:var(--muted)}
.chat-tools{display:flex;gap:6px}
body[data-theme] .chat-tools button{border:1px solid var(--line);border-radius:10px;background:var(--panel-2);color:var(--ink);width:40px;height:40px;font-size:22px;min-width:40px;cursor:pointer}
body[data-theme] .learn-jotform-ai{flex:1 1 auto;min-height:180px;width:100%;height:auto;border:0;background:white;color-scheme:light}
body[data-theme] .learn-ai-note{padding:12px 16px;margin:0;font-size:12px!important;border-top:1px solid var(--line);flex:none}
body[data-theme] .learn-ai-panel .media-placeholder{margin:18px;overflow:auto;flex:1}
body[data-theme] .learn-ai-panel.is-expanded{width:min(900px,calc(100vw - 36px));height:calc(100dvh - 110px)}
body[data-theme] .code-system{position:fixed;right:18px;bottom:18px;border:1px solid var(--line);max-width:220px;padding:16px;border-radius:16px;box-shadow:0 12px 35px #0003}
body[data-theme] .code-system strong{display:block;padding-right:20px;font-size:12px}
body[data-theme] .code-system-close{width:30px;height:30px;color:var(--ink);background:var(--panel-2);border:1px solid var(--line);border-radius:8px;top:8px;right:8px;font-size:19px}
@media(max-width:600px){body[data-theme][data-theme] .learn-ai-panel,body[data-theme] .learn-ai-panel.is-expanded{inset:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));width:auto;height:auto;max-height:none}body.chat-open .learn-floating-ai{visibility:hidden}body[data-theme] .learn-ai-panel-head{padding:12px}body[data-theme] .learn-ai-note{font-size:11px!important}}
@media print{body[data-theme][data-theme],body[data-theme] #print-sheet,body[data-theme] #print-sheet *{color:#000!important;background:#fff!important}.learn-ai-chat{display:none!important}}
