/* Night listening palette. Loaded last so every feature shares the same surfaces. */
html[data-listening-theme=dark]{color-scheme:dark;--ink:#E8EAF2;--muted:#9AA3BF;--purple:#8B7CF6;--wash:#171D33;--line:#303951;--mint:#203F42;--night-text:#E8EAF2;--night-muted:#9AA3BF;--night-bg:#0F1424;--night-card:#171D33;--night-raised:#202840;--night-teal:#3FC1B0;--night-selected:#302C53}
html[data-listening-theme=dark] body{background:linear-gradient(155deg,#0F1424,#1B1F3B);background-attachment:fixed;color:var(--night-text)}
html[data-listening-theme=dark] :is(header,.app-nav,.focus-shortcuts,.hub-footer,.focus-discovery,.journey-about,.journey-day-extra){border-color:var(--line)!important}
html[data-listening-theme=dark] :is(h1,h2,h3,h4,h5,strong,label,.logo,.header-brand .logo,.header-brand .logo span,.nowtitle,.hub-card h2,.hub-menu-item strong){color:var(--night-text)!important}
html[data-listening-theme=dark] :is(p,small,summary,legend,.small,.lead,.count,.store,.header-signature,.eyebrow,.journey-eyebrow,.journey-lead,.journey-note,.journey-track-name,.journey-status,.journey-footnote,.journey-text-button,.journey-route>summary,.journey-plan-preview>summary,.journey-day-extra>summary,.journey-about>summary,.hub-eyebrow,.hub-kicker,.hub-card>p,.hub-topline p,.hub-footer p,.hub-arrows span,.hub-menu-item small,.hub-menu-groups h3,.hub-feature-heading p,.hub-back,.hub-menu-section-title,.focus-listening-time,.track-meta,.time,.nowlabel){color:var(--night-muted)!important}
html[data-listening-theme=dark] :is(.home-hub,.journey-card,.card,.panel,.steps,.creator-card,.program-card,.music-home,.hub-menu-item,.stats article,.experience-card,.activity-card,.story-card,.reward-wallet,.goal-box,.private-upload,.playlist-box,.routine-card,.archive-hero,.community-card,.order-card,.membership-panel){background:var(--night-card)!important;border-color:var(--line)!important;box-shadow:0 10px 32px #080D1818!important}
html[data-listening-theme=dark] :is(.home-hub,.journey-card){background:radial-gradient(ellipse at 95% 0%,#8B7CF612,transparent 65%),linear-gradient(125deg,#171D33,#1B233B)!important}
html[data-listening-theme=dark] :is(.journey-today,.journey-finale,.journey-days button,.journey-small-step,.journey-tomorrow,.hub-tabs,.music-controls,.music-context,.mixer-channel,.channel-card,.private-invite,.install-banner){background:var(--night-raised)!important;border-color:var(--line)!important;color:var(--night-text)!important}
html[data-listening-theme=dark] :is(button,.pill,.topic,.playall,.share,.list-add,.watch-video,.hub-action,.journey-primary,.journey-like,.hub-arrows button,.hub-tabs button,.focus-shortcuts>button,.app-nav button,.hub-menu-item,.hub-back){color:var(--night-text);border-color:var(--line)}
html[data-listening-theme=dark] :is(button:not(.transport):not(.toggle):not(.journey-primary):not(.hub-action),.pill,.topic,.playall,.share,.watch-video){background-color:var(--night-card);background-image:none}
html[data-listening-theme=dark] :is(.app-nav button,.focus-shortcuts>button,.hub-tabs button,.hub-back,.journey-text-button){background:transparent!important;color:var(--night-muted)!important}
html[data-listening-theme=dark] :is([aria-pressed=true],[aria-selected=true],.app-nav button[aria-current=page],.card.current,.hub-tabs button[aria-selected=true],.journey-goals button[aria-pressed=true]){background:var(--night-selected)!important;color:var(--night-text)!important;border-color:#8B7CF6!important}
html[data-listening-theme=dark] :is(.hub-action,.journey-primary,.card [data-play],.playall#play-all){background:var(--night-teal)!important;color:#0F1424!important;border-color:var(--night-teal)!important;box-shadow:none!important}
html[data-listening-theme=dark] :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){background:var(--night-bg)!important;color:var(--night-text)!important;border-color:var(--line)!important}
html[data-listening-theme=dark] ::placeholder{color:var(--night-muted);opacity:1}
html[data-listening-theme=dark] :is(dialog,#music-modal,#reward-modal,#calm-modal){background:#0F1424;color:var(--night-text);border:1px solid var(--line)}
html[data-listening-theme=dark] dialog::backdrop{background:#080D18BB}
html[data-listening-theme=dark] :is(dialog section,dialog article,dialog details,.order-summary,.order-option,.member-method,.reward-tier,.program-list-item){background-color:var(--night-card);border-color:var(--line);color:var(--night-text)}
html[data-listening-theme=dark] :is(.badge,.tag,.card-topic,.reward-stars,.journey-streak){color:#E8B867!important;background:#E8B86714!important;border-color:#E8B86744!important}
html[data-listening-theme=dark] :is(progress,input[type=range]){accent-color:#3FC1B0}
html[data-listening-theme=dark] #demo-player{--console-ink:#E8EAF2;--console-muted:#9AA3BF;--console-line:#303951;background:linear-gradient(135deg,#1B233B,#0F1424)!important;border-color:#3FC1B04D;box-shadow:0 12px 45px #080D1859}
html[data-listening-theme=dark] #demo-player :is(.transport,.mix-mute,.player-expand,.channel-select,#open-cassette,.sleep-controls button){background:#202840!important;color:#E8EAF2!important;border-color:#303951!important}
html[data-listening-theme=dark] #demo-player :is(#toggle,.transport.toggle),html[data-listening-theme=dark] :is(#calm-toggle,#night-toggle){background:#3FC1B0!important;color:#0F1424!important;border-color:#3FC1B0!important;box-shadow:0 0 0 6px #3FC1B00A!important}
html[data-listening-theme=dark] #demo-player :is(.channel-caption,.channel-note,.mix-caption,.mixer-kicker,.nowlabel,.time,.player-expand){color:#9AA3BF!important}
html[data-listening-theme=dark] .player-orbit{border-color:#3FC1B04D;background:radial-gradient(circle,#3FC1B029,#171D33 75%);box-shadow:0 0 20px #3FC1B014}
html[data-listening-theme=dark] .player-orbit:before{border-color:#3FC1B055}html[data-listening-theme=dark] .player-orbit:after{border-color:#3FC1B029}html[data-listening-theme=dark] .player-orbit span{background:#3FC1B0;box-shadow:0 0 12px #3FC1B044}
html[data-listening-theme=dark] #demo-player[data-playing=true] .player-orbit:after{animation:night-breathe 7s ease-in-out infinite}
@keyframes night-breathe{0%,100%{transform:scale(1);opacity:.4}50%{transform:scale(1.16);opacity:.9}}
html[data-listening-theme=dark] :is(#calm-modal,#night-modal){background:linear-gradient(155deg,#0F1424,#1B1F3B)!important}
html[data-listening-theme=dark] .calm-waves{color:#3FC1B0;opacity:.07}
html[data-listening-theme=dark] :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #3FC1B0!important;outline-offset:4px}
html[data-listening-theme=dark] :is(.error,#error,[role=alert]){color:#F0BFAF!important}
.listening-appearance{display:flex;align-items:center;flex-shrink:0;margin-left:8px}.listening-appearance button,#listening-motion-toggle{min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink);font:600 12px/1.4 Manrope,Arial,sans-serif;white-space:nowrap}
html[data-listening-theme=dark] :is(.hub-topline p,.hub-card>p,.hub-menu-item small,.journey-note,.journey-footnote,.journey-track-name,.small){font-size:max(12px,1em);line-height:1.7}
html[data-listening-theme=dark] :is(.hub-tabs button,.app-nav button,.focus-shortcuts>button){font-size:12px;min-height:44px}
@media(max-width:600px){.listening-appearance{margin-left:auto}.listening-appearance button{font-size:11px;padding:8px}.has-home-hub header{flex-wrap:wrap;gap:10px}.header-signature{display:none}html[data-listening-theme=dark] .hub-card h2{font-size:27px;line-height:1.35}html[data-listening-theme=dark] .hub-card>p{font-size:14px}html[data-listening-theme=dark] .hub-tabs button{font-size:12px}html[data-listening-theme=dark] #demo-player{border-radius:20px}}
html[data-quiet-motion=true] .player-orbit:after{animation:none!important}html[data-quiet-motion=true] .calm-waves{animation:none!important}html[data-quiet-motion=true] #demo-player .mix-visual i{animation:none!important}
@media(prefers-reduced-motion:reduce){.player-orbit:after,.calm-waves,#demo-player .mix-visual i{animation:none!important}}
/* The current discovery/order flow uses its own tokens; override them at body scope too. */
html[data-listening-theme=dark] body.has-order-design{--ink:#E8EAF2;--muted:#9AA3BF;--purple:#8B7CF6;--wash:#171D33;--line:#303951;--mint:#203F42;background:linear-gradient(155deg,#0F1424,#1B1F3B);color:#E8EAF2}
html[data-listening-theme=dark] :is(.order-feature-card,.order-form,.order-creator,.order-selected-product,.order-personal-cta,.order-member-teaser,.fair-stall,.comment-showcase,.community-program-card,.bridge-demo,.fair-listen-nav,#fair-entry,#membership-modal .member-local-note){background:#171D33!important;border-color:#303951!important}
html[data-listening-theme=dark] :is(.order-steps,.order-demo-tools,.order-home-bottom,.fair-nav){border-color:#303951!important}
html[data-listening-theme=dark] .fair-nav{background:#0F1424F2!important}
html[data-listening-theme=dark] :is(.fair-nav button,.order-steps button,.order-text-link,.order-back){background:transparent!important;color:#9AA3BF!important}
html[data-listening-theme=dark] :is(.fair-nav button[aria-current=page],.order-steps button[aria-current=step]){background:#302C53!important;color:#C5BDFF!important}
html[data-listening-theme=dark] :is(.order-steps span,.order-feature-note,.order-hero-facts,.order-album-mark,.order-album-caption,.order-delivery-list,.order-small,.order-quick-track small,.card .duration,.order-demo-description,.order-demo-tools label,.order-form pre){color:#9AA3BF!important}
html[data-listening-theme=dark] :is(.order-hero-copy h1 em,.order-form-intro h1 em){color:#ADA1FF}
html[data-listening-theme=dark] :is(.order-gold,.order-play-controls #order-demo-toggle,.order-feature-copy .order-gold,.order-quick-play,.card .listen,#member-submit,#member-finish){background:#3FC1B0!important;color:#0F1424!important;border-color:#3FC1B0!important;box-shadow:none!important}
html[data-listening-theme=dark] :is(.order-gold strong,.order-gold span,.order-quick-play span){color:#0F1424!important}
html[data-listening-theme=dark] :is(.order-feature-note,.order-feature-copy p,.order-lead,.order-quick-track small,.order-small,.order-contact-consent,.order-payment-note){font-size:13px;line-height:1.7}
html[data-listening-theme=dark] .order-album{background:radial-gradient(ellipse at 35% 25%,#3FC1B01A,transparent 65%),linear-gradient(145deg,#202C48,#171D33);border-color:#303951}
html[data-listening-theme=dark] .order-orbit{background:radial-gradient(circle at 35% 25%,#8ADFD3,#3FC1B0 53%,#243855 54%,#171D33 70%);box-shadow:0 0 55px #3FC1B014}
html[data-listening-theme=dark] .order-orbit:after{border-color:#3FC1B04D;box-shadow:0 0 0 10px #3FC1B00C,0 0 0 22px #3FC1B008}
html[data-listening-theme=dark] .order-album:after{border-color:#8B7CF640;box-shadow:0 0 0 18px #8B7CF608,0 0 0 40px #8B7CF608,0 0 0 65px #8B7CF606}
html[data-listening-theme=dark] .order-creator:has(input:checked){background:#302C53!important;border-color:#8B7CF6!important;box-shadow:none}
html[data-listening-theme=dark] :is(#order-form-status,.order-gift,.order-creator b,.order-creator em){color:#E8B867!important}
html[data-listening-theme=dark] :is(.order-form input,.order-creator input){accent-color:#8B7CF6}
html[data-listening-theme=dark] :is(#install-listened,#install-app){background:#302C53!important;color:#E8EAF2!important;border-color:#8B7CF666!important}
html[data-listening-theme=dark] .order-play-controls #order-demo-toggle[aria-label=Duraklat]{animation:night-breathe 7s ease-in-out infinite}
html[data-quiet-motion=true] #order-demo-toggle{animation:none!important}
@media(prefers-reduced-motion:reduce){#order-demo-toggle{animation:none!important}}
/* Warm daylight option shares the same hierarchy and keeps the listening console dark. */
html[data-listening-theme=light]{color-scheme:light;--ink:#292F43;--muted:#586079;--purple:#6252B8;--wash:#F0F1F6;--line:#D4D9E5}
html[data-listening-theme=light] body.has-order-design{color-scheme:light;--ink:#292F43;--muted:#586079;--purple:#6252B8;--wash:#F0F1F6;--line:#D4D9E5;background:#F5F6FA;color:#292F43}
html[data-listening-theme=light] :is(h1,h2,h3,h4,strong,label,legend,.logo,.header-brand .logo,.header-brand .logo span){color:#292F43!important}
html[data-listening-theme=light] :is(p,small,summary,.small,.count,.store,.eyebrow,.header-signature,.order-eyebrow,.order-hero-facts,.order-feature-note,.order-steps span,.order-delivery-list,.order-small,.order-form pre){color:#586079!important}
html[data-listening-theme=light] :is(.order-feature-card,.order-form,.order-creator,.order-selected-product,.order-personal-cta,.order-member-teaser,.home-hub,.journey-card,.card,.panel,.program-card,.fair-stall,.comment-showcase,.community-program-card,.bridge-demo,.hub-menu-item,.reward-wallet,.stats article,.goal-box,dialog,#fair-entry,#membership-modal .member-local-note){background:#EDEFF6!important;color:#292F43!important;border-color:#D4D9E5!important;box-shadow:none}
html[data-listening-theme=light] :is(button,.pill,.topic,.playall,.share,.watch-video,input:not([type=range]),select,textarea){background:#F5F6FA!important;color:#292F43!important;border-color:#CDD3E1!important}
html[data-listening-theme=light] :is(.fair-nav,.app-nav,.order-steps){background:#F5F6FA!important;border-color:#D4D9E5!important}
html[data-listening-theme=light] :is(.fair-nav button,.order-text-link,.order-back,.order-steps button){background:transparent!important;color:#586079!important}
html[data-listening-theme=light] :is([aria-pressed=true],[aria-selected=true],.fair-nav button[aria-current=page],.order-creator:has(input:checked)){background:#E2DDF7!important;color:#493C83!important;border-color:#8B7CF6!important}
html[data-listening-theme=light] :is(.order-gold,.order-play-controls #order-demo-toggle,.order-quick-play,.hub-action,.journey-primary,.card .listen){background:#3FC1B0!important;color:#0F1424!important;border-color:#3FC1B0!important}
html[data-listening-theme=light] :is(.order-hero-copy h1 em,.order-form-intro h1 em){color:#6252B8}
html[data-listening-theme=light] .order-feature-copy :is(h2,p,small){color:#292F43!important}
html[data-listening-theme=light] #demo-player :is(h3,strong,label,.nowtitle){color:#E8EAF2!important}
html[data-listening-theme=light] #demo-player :is(p,small,.nowlabel,.channel-note){color:#C4BAD2!important}
html[data-listening-theme=light] :is(a,button,input,select,summary):focus-visible{outline:2px solid #6252B8!important;outline-offset:4px}
html[data-listening-theme=light] ::placeholder{color:#586079;opacity:1}
html[data-listening-theme=light] :is(.order-creator b,.order-creator em,.order-tiny-orbit,.order-selected-product a,.order-gift,.order-form label span,.order-album-mark,.order-album-caption){color:#75501C!important}
html[data-listening-theme=light] .order-form input::placeholder{color:#586079!important;opacity:1}
html[data-listening-theme=light] :is(.order-creator,.order-selected-product){border-color:#CDD3E1!important}
html[data-listening-theme=light] .order-creator:has(input:checked){background:#E2DDF7!important;border-color:#8B7CF6!important;box-shadow:inset 0 0 0 1px #8B7CF6}
html[data-listening-theme=dark] .order-creator:has(input:checked){background:#302C53!important;border-color:#8B7CF6!important;box-shadow:inset 0 0 0 1px #8B7CF666}
html[data-listening-theme=dark] :is(.order-selected-product a,.order-form label span){color:#9AA3BF!important}
@media(max-width:600px){body.has-order-design header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:16px 20px}.header-brand{grid-column:1;grid-row:1}#member-entry{grid-column:2;grid-row:1}.store{grid-column:1;grid-row:2;justify-self:start}.listening-appearance{grid-column:2;grid-row:2;margin:0;justify-self:end}body.has-order-design header .store{font-size:12px}#member-entry{min-height:38px}.listening-appearance button{min-height:38px}}
html[data-listening-theme=dark] #demo-player input[type=range]{background:linear-gradient(to right,#3FC1B0 var(--level,0%),#303951 var(--level,0%))!important}
html[data-listening-theme=dark] #demo-player input[type=range]::-webkit-slider-thumb{background:#3FC1B0;border-color:#3FC1B0;box-shadow:0 0 9px #3FC1B026}
html[data-listening-theme=dark] #demo-player input[type=range]::-moz-range-thumb{background:#3FC1B0;border-color:#3FC1B0}
html[data-listening-theme=dark] #demo-player .mix-visual i{background:#3FC1B0}
html[data-quiet-motion=true] #demo-player .player-orbit{animation:none!important}
