/* Approved luminous sanctuary direction. Functional visibility stays owned by app.js. */
/* Component display rules must not override application visibility. */
#listeningGate[hidden], #miniPlayer[hidden] { display:none!important; }
#homeScreen .home-feature-head h2 { color:#15313b!important;-webkit-text-fill-color:#15313b!important;background:none!important;opacity:1!important; }
body:has(#miniPlayer:not([hidden])) .screen:not(.player) { padding-bottom:calc(176px + env(safe-area-inset-bottom, 0px))!important; }
:root { --ink:#15313b; --muted:#526775; --canvas:#edf5f6; --sanctuary-teal:#126c72; }
body, .app-shell, #appShell { background:radial-gradient(ellipse at 8% 0%,#d9f5f3 0,transparent 48%),radial-gradient(ellipse at 95% 24%,#ece5f7 0,transparent 48%),#f4f8f8!important; color:var(--ink); }
.topbar { padding:calc(16px + env(safe-area-inset-top)) 20px 14px!important; }
.brand-button > .brand-lockup-mark { display:block!important; width:36px; height:36px; margin-right:10px; }
.brand-button .brand-word { letter-spacing:.12em!important; color:#183640!important; }
h1,h2,h3,.home-question,.page-title { color:#15313b!important; letter-spacing:-.035em!important; }
.home-question,.page-title { font-size:clamp(30px,4vw,46px)!important; line-height:1.12!important; }
.page-intro p,.home-lead { color:#526775!important; line-height:1.6; }
.for-you { height:clamp(300px,43vw,480px); border-radius:28px; box-shadow:0 18px 50px #174e6126!important; }
.for-you::after,.home-feature::after { content:''; position:absolute; inset:35% 0 0; background:linear-gradient(transparent,#092d37b8); pointer-events:none; }
.for-you-copy,.home-feature-copy,.for-you-play { z-index:1; }
.for-you-copy { bottom:26px; left:24px; }
.for-you-copy b { font-size:clamp(30px,4vw,44px); }
.for-you-play { width:56px;height:56px;right:24px;bottom:24px;box-shadow:0 6px 20px #092d3726; }
.home-feature { height:210px;border-radius:24px;box-shadow:0 10px 28px #174e611a!important; }
.home-feature-copy { left:18px;bottom:18px; }
.home-feature-copy b { font-size:21px; }
.primary-cta { background:linear-gradient(125deg,#126c72,#205c72)!important;color:#fff!important;border:1px solid #ffffff55!important;border-radius:18px!important;min-height:52px;box-shadow:0 8px 24px #126c7226!important; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #126c72!important;outline-offset:4px; }
.brainwave-feature,.activity-card,.home-resume,.composer-invitation,.journey-return,.membership-card { background:rgba(255,255,255,.85)!important;border:1px solid #fff!important;border-radius:24px!important;box-shadow:0 8px 30px #25485f0d!important;padding:22px; }
#miniPlayer { background:#f6fbfc!important;color:#15313b!important;border:1px solid #cfdee2!important;border-radius:22px!important;box-shadow:0 8px 35px #173e6333!important; }
#miniPlayer button { color:#15313b!important; }
#miniPlayer #miniPlayButton { color:#fff!important; }
dialog { background:#f5f9fa!important;color:#15313b!important;border:1px solid #fff!important;border-radius:28px!important;box-shadow:0 24px 100px #16394b40!important; }
dialog::backdrop { background:#092b3d66;backdrop-filter:blur(10px); }
input,select,textarea { accent-color:#126c72; }
#librarySearch,#libraryReset { border-color:#c4d9df;background:#ffffffeb; }
#libraryScreen .sonara-filter-row button.is-selected { background:#126c72!important;color:#fff!important; }
.visitor-hero { position:relative;overflow:hidden;background:#eaf5f6!important; }
.landing-hero-art { display:block!important;opacity:1!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important; }
.visitor-hero-copy { position:relative;z-index:1;background:rgba(247,252,252,.92);border:1px solid #fff;border-radius:32px;padding:32px!important;box-shadow:0 20px 70px #153e5426;max-width:560px;backdrop-filter:blur(18px); }
.landing-brand { z-index:2; }
.landing-copy { color:#15313b; }
.landing-feel-panel { border-radius:28px;overflow:hidden;box-shadow:0 12px 36px #173e631a; }
#player .np-layers .player-layer-button { background:rgba(245,251,252,.94)!important;color:#183c48!important;border:1px solid #d3e5e7!important; }
#player .np-layers .player-layer-button.is-active { background:#126c72!important;color:#fff!important; }
#player .np-layers .player-layer-button.is-active span,#player .np-layers .player-layer-button.is-active b { color:#fff!important; }
@media(max-width:600px) { .visitor-hero-copy { padding:26px 22px!important;margin:76px 16px 24px!important; } .home-feature {height:180px;} .for-you {height:340px;} .home-features {gap:14px;} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after {scroll-behavior:auto!important;} }
/* Editorial typography from the approved concept; controls remain sans serif. */
.home-question,.page-title,.home-feature-head h2,.for-you-copy b,.home-feature-copy b,.guide-page h1,.guide-page h2 { font-family:Fraunces,Georgia,serif!important;font-weight:500!important; }
body.guide-page main { max-width:1000px;padding-top:32px; }
body.guide-page header { padding:16px 20px;border:1px solid #fff;border-radius:24px;background:#ffffffb8;box-shadow:0 8px 30px #23425a08; }
body.guide-page h1 { max-width:760px;font-size:clamp(36px,6vw,64px)!important; }
body.guide-page h2 { border-top:1px solid #cddfe4;padding-top:30px; }
body.guide-page .guide-note { color:#526775; }
body.guide-page .primary-cta { min-width:180px; }
@media(prefers-reduced-transparency:reduce) { dialog,.visitor-hero-copy,body.guide-page header {background:#f5f9fa!important;backdrop-filter:none!important;} }
.landing-hero-art,.for-you-art[src$="experience-deep-reset-card.webp"],.home-feature-art[src$="experience-deep-reset-card.webp"] { content:url('/assets/sanctuary-lake-v2.webp');object-position:center; }
/* Match the concept across navigation and secondary screens without changing layout visibility. */
@font-face { font-family:Fraunces;src:url('./assets/fonts/fraunces-latin.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap; }
#homeScreen .mood-card { min-height:48px;border:1px solid #ffffffd9!important;border-radius:28px!important;background:#ffffff8c!important;color:#243f50!important;box-shadow:0 3px 12px #21475c0a!important; }
#homeScreen .mood-card.is-selected { background:#126c72!important;color:#fff!important;border-color:#126c72!important; }
#appShell .bottom-nav { background:#f4fafbeF!important;border-top:1px solid #d3e3e8!important;box-shadow:0 -6px 28px #153e540a!important; }
#appShell .nav-button { color:#526775!important;min-height:52px;border-radius:14px!important; }
#appShell .nav-button.is-active { color:#126c72!important;background:#deeff0!important; }
#libraryScreen .library-card,.collection-card,#programsScreen .program-card,#homePrograms .program-card,#progressScreen .memory-card,#togetherScreen .circle-card { background:#ffffffd9!important;border:1px solid #d7e5e8!important;border-radius:22px!important;box-shadow:0 6px 24px #163b5308!important;padding:16px!important;margin-bottom:12px; }
#progressScreen .journey-metrics,#progressScreen .progress-studio,#togetherScreen .moment-invitation,#togetherScreen .circle-invitation,#profileDialog .membership-card,#profileDialog .creator-offer-entry { background:linear-gradient(130deg,#ffffffed,#eff8fbed)!important;border:1px solid #d7e5e8!important;border-radius:24px!important;box-shadow:0 10px 30px #153e540a!important; }
#sessionsScreen .page-intro h1,#libraryScreen .page-intro h1,#progressScreen .page-intro h1,#programsScreen .page-intro h1,#togetherScreen .page-intro h1 { color:#15313b!important;opacity:1!important; }
#player .player-intro h2 { font-family:Fraunces,Georgia,serif!important;font-weight:500!important; }
#player .now-playing .main-play { background:linear-gradient(130deg,#e9fffe,#f5edff)!important;color:#15313b!important;border:1px solid #fff!important;box-shadow:0 4px 24px #bfeaf244!important; }
#player .now-playing .main-play svg,#player .now-playing .main-play svg path { fill:#15313b!important;color:#15313b!important; }
#player .np-layers .player-layer-button:not(.is-active) span,#player .np-layers .player-layer-button:not(.is-active) b { color:#183c48!important; }
@media(max-width:360px) { #homeScreen .mood-card {font-size:13px;padding-inline:8px!important;} #libraryScreen .library-card,.collection-card {padding:12px!important;} }

/* Home composition follows the approved Runway reference. Keep DOM/tab order aligned. */
#homeScreen .home-question { font-size:clamp(28px,5vw,42px)!important;font-weight:500!important; }
#homeScreen .home-lead { font-size:14px!important;max-width:none!important; }
#homeScreen #moodRow { display:flex!important;gap:8px!important;overflow-x:auto;padding:4px 2px 10px;margin:0!important; }
#homeScreen #moodRow .mood-card { display:flex!important;align-items:center;justify-content:center;gap:7px;flex:1 0 78px;padding:10px!important; }
#homeScreen #moodRow .mood-card svg { width:20px;height:20px;flex-shrink:0; }
#homeScreen .for-you { width:100%!important;max-width:100%!important;height:clamp(350px,60vw,460px)!important;min-height:350px!important;margin:8px 0 22px!important;border-radius:26px!important; }
#homeScreen .for-you::after { inset:40% 0 0;background:linear-gradient(transparent,#072937ed); }
#homeScreen .for-you-copy { left:20px!important;right:20px!important;width:auto!important;max-width:none!important;bottom:86px!important;overflow:visible!important; }
#homeScreen .for-you-copy b { font-size:clamp(28px,5vw,40px)!important;font-weight:500!important;white-space:normal!important; }
#homeScreen #forYouWhy { font-size:15px!important;line-height:1.4!important;max-width:42ch!important; }
#homeScreen #forYouDuration { margin-top:8px;font-weight:400!important; }
#homeScreen .for-you-play { top:auto!important;bottom:18px!important;right:18px!important;transform:none!important;display:flex!important;align-items:center;justify-content:center;gap:10px;width:auto!important;height:auto!important;min-height:50px;padding:12px 20px;border-radius:30px!important;background:linear-gradient(120deg,#d8fcff,#f2e6ff)!important;border:1px solid #fff;box-shadow:0 0 18px #d2effb66; }
#homeScreen .for-you-play svg { width:24px;height:24px; }
#homeScreen .for-you-play span { font-size:15px;font-weight:600; }
#homeScreen .home-feature-head h2 { font-size:clamp(22px,4vw,30px)!important; }
#homeScreen .home-layers { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0;padding:10px;border:1px solid #fff;border-radius:24px;background:#ffffffa6; }
#homeScreen .layer-card { min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:6px;background:none;border:0; }
#homeScreen .layer-card-main { display:flex;align-items:center;gap:8px;min-height:44px;text-align:left;color:#15313b; }
#homeScreen .layer-glyph { width:26px;height:26px;flex-shrink:0; }
#homeScreen .layer-copy { display:grid;gap:3px; }
#homeScreen .layer-copy strong { font-size:14px; }
#homeScreen .layer-copy b { font-size:13px;font-weight:400;color:#526775; }
#homeScreen .reference-switch { min-height:44px;min-width:44px; }
@media(prefers-reduced-transparency:reduce) { #homeScreen .home-layers { background:#f5f9fa; } }

#homeScreen #resumeButton[hidden] { display:none!important; }

/* Keep location and keyboard orientation consistent across all app screens. */
#menuDrawer [data-go][aria-current="page"] {
  background:#deeff0;color:#126c72;border-color:#bad8db;
}
#menuDrawer [data-go][aria-current="page"] svg { color:currentColor; }
.screen .page-title:focus-visible,.screen .home-question:focus-visible {
  outline:3px solid #126c72;outline-offset:6px;border-radius:6px;
}
