/* Accessible light and gold-plum themes. */
:root{color-scheme:light;--surface:#fffcf8;--surface-soft:#f1e5df;--field:#fffdfa;--action:#80505b;--action-ink:#fffaf6;--focus:#80505b;--muted:#685b62;--accent:#80505b}
:root[data-theme=dark]{color-scheme:dark;--bg:#241329;--ink:#f5eee8;--muted:#c7b9c1;--rose:#42264a;--sage:#402548;--line:#80634e;--green:#e1c184;--gold:#e1c184;--surface:#321c38;--surface-soft:#402548;--field:#29162f;--action:#e1c184;--action-ink:#2a1530;--focus:#f3d79e;--accent:#e1c184}
body{background:radial-gradient(ellipse at 95% 20%,#c1948020,transparent 45%),var(--bg);color:var(--ink)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0;font-size:20px;border-radius:50%;border-color:var(--line);background:var(--surface);color:var(--ink)}
header>div{align-items:center}.card p,.intro,.music-credit{color:var(--muted)}
a,.text,.tag,.eyebrow{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.primary,.ai-welcome-start{background:var(--action);color:var(--action-ink);border-color:var(--action);box-shadow:none}.primary:hover,.ai-welcome-start:hover{background:var(--action);filter:brightness(.94);color:var(--action-ink)}
button:disabled{cursor:not-allowed;opacity:.65}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
:root[data-theme=dark] :is(.card,.studio,.ai-panel,.ai-chat-window,.ai-chat-window #ai-form,.ai-welcome-dialog,#ai-upgrade,#player,.skip){background:var(--surface);color:var(--ink);border-color:var(--line)}
:root[data-theme=dark] :is(.notice,.checkin,.gift,.ai-memory,.ai-panel>.ai-consent,.ai-status,.status-pill,.ai-message,.ai-chat-window .ai-message,.ai-upgrade-plans .card,.ritual-links button,.upload-zone){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
:root[data-theme=dark] :is(input,textarea,select,.studio input:not([type=checkbox]),.studio textarea,.studio select,.ai-welcome-dialog input,#ai-input,.ai-chat-window #ai-input){background:var(--field);color:var(--ink);border-color:var(--line)}
:root[data-theme=dark] .ai-chat-window #ai-input{background:transparent}
:root[data-theme=dark] :is(.card p,.ai-memory p,.ai-preview-note,.ai-quota,.ai-message span,.ai-consent,.ai-panel>.notice,.ai-panel>.ai-preview-note,.ai-welcome-copy,.ai-welcome-line,.ai-welcome-trial,.ai-welcome-disclosure,.ai-welcome-dialog-copy,.ai-welcome-privacy,.ai-welcome-dialog label,.ai-welcome-dialog label small,.ai-welcome-steps,.billing-note,.price small,.ai-upgrade-plans .card .price small,#ai-upgrade>p,.ai-upgrade-plans .billing-note,.studio label,.aside-note,.ai-identity .tag){color:var(--muted)!important}
:root[data-theme=dark] :is(.text,a,.eyebrow,.tag,.ai-entry-back,.ai-welcome-signin,.ai-welcome-eyebrow,.ai-welcome-steps .current,.ai-quota strong,.ai-upgrade-plans .card .price){color:var(--accent)}
:root[data-theme=dark] :is(h1,h2,h3,.ai-welcome h1,.ai-welcome-dialog h2,.ai-panel>.notice strong){color:var(--ink)}
:root[data-theme=dark] .demo{background:#301b36;color:#dbcba9}
:root[data-theme=dark] nav{background:var(--bg)}
:root[data-theme=dark] nav button{color:var(--muted)}
:root[data-theme=dark] nav button.active{background:#50315a;color:#f4dba8}
:root[data-theme=dark] button:not(.primary):not(.ai-welcome-start):hover{background:#51325b;color:var(--ink)}
:root[data-theme=dark] .hero{background:linear-gradient(115deg,#412449,#301a38);border-color:var(--line)}
:root[data-theme=dark] .favorite{background:#493052;color:#ecd096}
:root[data-theme=dark] .favorite[aria-pressed=true]{background:#61416b;color:#fff0d1}
:root[data-theme=dark] .chips button{background:var(--surface);color:var(--ink);border-color:var(--line)}
.chips button[aria-pressed=true]{background:var(--action);color:var(--action-ink)}
:root[data-theme=dark] .cover:not(.custom){background:radial-gradient(circle at 30% 70%,#e1c18425 0 25%,transparent 26%),linear-gradient(130deg,#4a2d51,#705378);color:#f4dba8}
:root[data-theme=dark] .cover.rose{background:radial-gradient(ellipse at 55% 90%,#e1c18425 0 35%,transparent 36%),linear-gradient(130deg,#593560,#38213f);color:#f4dba8}
:root[data-theme=dark] .cover:before{border-color:#e1c18480}
:root[data-theme=dark] .ai-message.user,:root[data-theme=dark] .ai-chat-window .ai-message.user{background:#50315a;border-color:#927453;color:#f5eee8}
:root[data-theme=dark] .ai-welcome{background:radial-gradient(ellipse at 50% 28%,#71437a4d,transparent 65%)}
:root[data-theme=dark] .ai-welcome-halo{background:radial-gradient(circle,#bd914f40,transparent 70%)}
:root[data-theme=dark] :is(.ai-welcome-portrait,.ai-welcome-mini,.ai-chat-portrait){border-color:#80634e;box-shadow:0 0 0 1px #d0ab6c}
:root[data-theme=dark] :is(.ai-welcome-close,#ai-upgrade-close){color:var(--ink);border-color:var(--line)}
:root[data-theme=dark] :is(.ai-quota,.ai-panel>.notice,.ai-chat-window #ai-form,.ai-upgrade-plans .billing-note){border-color:var(--line)}
:root[data-theme=dark] .progress{background:#54345d} :root[data-theme=dark] .progress div{background:#e1c184}
:root[data-theme=dark] #toast{background:#e1c184;color:#2a1530}
:root[data-theme=dark] dialog::backdrop{background:#110d14b8}
@media(max-width:700px){header>div{gap:6px}.theme-toggle{width:40px;min-width:40px;height:44px}header>div>button:not(.theme-toggle){padding:8px 10px}header .brand{font-size:18px;letter-spacing:1.5px}}
@media(max-width:390px){header{padding-left:4%;padding-right:4%}header .brand{font-size:16px}header>div>button:not(.theme-toggle){font-size:10px;padding:8px}header>div{gap:4px}}

:root[data-theme=dark] a.primary,:root[data-theme=dark] .primary{color:var(--action-ink)!important}

header>div>button{white-space:nowrap}

:root[data-theme=dark] body{background:radial-gradient(ellipse at 95% 20%,#6e3d7026,transparent 45%),var(--bg)}
:root[data-theme=dark] .brand,:root[data-theme=dark] .theme-toggle{color:var(--gold)}
:root[data-theme=dark] .journey-feature{background:radial-gradient(ellipse at 95% 10%,#65416f,#36203f 65%)}

.plan-free{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;margin:30px 0}.plan-free-actions{display:flex;flex-direction:column;justify-content:center;gap:12px}.plan-free-actions button{margin:0}.plans-detail .card{display:flex;flex-direction:column;min-width:0}.plans-detail ul{padding-left:20px;margin:8px 0 24px;color:var(--muted);font-size:13px;line-height:1.85}.plans-detail li{padding-left:4px;margin-bottom:10px}.plans-detail .price{font-size:42px}.plans-detail .price small{display:block;font:12px Manrope,Arial,sans-serif}.plans-detail .plan-status{border-top:1px solid var(--line);padding-top:16px;margin-top:auto}.plans-detail button{width:100%;min-height:46px}.plan-explained{margin-top:32px}.plan-explained details{border-top:1px solid var(--line);padding-top:16px}.plan-explained summary{min-height:44px;display:list-item}.plan-explained p{margin-top:10px;max-width:650px}@media(max-width:700px){.plan-free{grid-template-columns:1fr;gap:12px}nav button{padding-left:7px;padding-right:7px}.plans-detail .card{padding:24px}.plans-detail .card h2{font-size:34px}}

.library-search{margin:28px 0 0;max-width:680px}.library-search label{color:var(--ink);font-size:13px}.library-search input{width:100%;min-height:50px;background:var(--field);border-color:var(--line)}.library-search p{font-size:11px;color:var(--muted);margin:8px 0}.practice-cover svg{width:85%;height:100%;position:relative;z-index:2;transition:transform .8s var(--ease-soft)}.practice-cover .art-halo{opacity:.3}.practice-cover:before{display:none}.cover.practice-cover{background:linear-gradient(145deg,#e9dfcc,#ccba9e);color:#775a32}.cover.art-moon,.cover.art-stars{background:linear-gradient(145deg,#eadada,#c9adae);color:#765363}.cover.art-flower{background:linear-gradient(145deg,#e8ded1,#cdb9a8);color:#765442}.cover.art-cloud,.cover.art-ripples{background:linear-gradient(145deg,#dfe5dc,#b6c6be);color:#4b665a}.cover.art-sunrise{background:linear-gradient(145deg,#f1e3ca,#d6b48c);color:#7b5832}.cover.art-horizon{background:linear-gradient(145deg,#e5cfd0,#c7a9b7);color:#705164}.cover.art-branch{background:linear-gradient(145deg,#e3e1d0,#bbbea3);color:#606344}.cover.art-pause{background:linear-gradient(145deg,#ecdcd0,#c8b3a6);color:#77594b}:root[data-theme=dark] .cover.practice-cover{background:linear-gradient(145deg,#503459,#735979);color:#efd39c}:root[data-theme=dark] .cover.art-ripples,:root[data-theme=dark] .cover.art-cloud,:root[data-theme=dark] .cover.art-branch{background:linear-gradient(145deg,#34423e,#616450);color:#ead19d}:root[data-theme=dark] .cover.art-sunrise,:root[data-theme=dark] .cover.art-door{background:linear-gradient(145deg,#583c43,#88704f);color:#f7dfb2}:root[data-theme=dark] .cover.art-stars,:root[data-theme=dark] .cover.art-moon{background:linear-gradient(145deg,#34213e,#5a3d69);color:#f5d69a}@media(hover:hover){.card:hover .practice-cover svg{transform:translateY(-3px) scale(1.035)}}@media(prefers-reduced-motion:reduce){.practice-cover svg{transition:none}.card:hover .practice-cover svg{transform:none}}
