/* A quiet, warm palette. This changes the site, never the device's display settings. */
.rest-space{--rest-bg:#201c18;--rest-line:#54473b;--rest-text:#ede0ce;--rest-muted:#c1af9b;--rest-accent:#e5ba85;color:var(--rest-text);max-width:1130px;margin:auto}
.home-rest-space{max-width:none;padding:34px;border:1px solid #54463c;background:linear-gradient(135deg,#201c1b,#171722);border-radius:28px}
.home-rest-space .rest-heading{margin:0 0 28px;gap:24px}.home-rest-space .rest-heading h2{font-size:clamp(32px,3.8vw,48px);line-height:1.18;margin:15px 0 18px;letter-spacing:-.04em;color:#eee0ce}.home-rest-space .rest-heading h2 em{font-family:Georgia,serif;font-weight:400;color:#dbb887}.home-rest-space .rest-heading p{font-size:15px;max-width:590px;margin-bottom:0}
.home-rest-space .rest-sound,.home-rest-space .rest-voice{padding:28px}.home-rest-space .rest-footer-note{margin-bottom:18px}
.home-lab-more{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.home-lab-more a{display:flex;flex-direction:column;justify-content:center;gap:10px;background:#1c2135;border:1px solid #4a4564;border-radius:16px;padding:22px;min-height:110px;line-height:1.6}
.home-lab-more a span{font-size:12px;color:#b4b9d0}.home-lab-more a strong{font-size:16px;color:#e2d5f4}.home-lab-more a:hover{border-color:#ae98c8;background:#29263e}
body.evening-mode .home-lab-more a{background:#2d241b;border-color:#826746}body.evening-mode .home-lab-more a :is(span,strong){color:#dcc4a4}
body.evening-mode .home-rest-space{background:#201a15;border-color:#725638}
@media(max-width:1000px){.home-rest-space{padding:28px}.home-rest-space .rest-duration{display:block}.home-rest-space .rest-duration>div{margin-top:12px}.home-rest-space .rest-duration button{flex:1}}
@media(max-width:760px){.home-rest-space{padding:25px 18px;border-radius:22px;margin:36px 0}.home-rest-space .rest-heading{gap:22px}.home-rest-space .rest-heading h2{font-size:34px}.home-rest-space .rest-sound,.home-rest-space .rest-voice{padding:23px 18px}.home-rest-space .rest-notes details{padding:19px}.home-lab-more{grid-template-columns:1fr}.home-lab-more a{padding:19px 22px;min-height:90px}.home-rest-space .rest-sounds small{font-size:11px}.home-rest-space .rest-sounds strong{font-size:13px}}
@media(max-width:380px){.home-rest-space{padding:23px 12px}.home-rest-space .rest-sound,.home-rest-space .rest-voice{padding:23px 13px}.home-rest-space .rest-sounds{gap:5px}.home-rest-space .rest-sounds button{padding:14px 4px}.home-rest-space .rest-sounds small{font-size:10px}.home-rest-space .rest-sounds strong{font-size:12px}.home-rest-space .rest-heading h2{font-size:30px}}
.hero-copy .rest-home-quick{border:0;border-bottom:1px solid #9e805b;background:transparent;color:#e7c49c;font-size:13px;min-height:44px;padding:8px 2px;line-height:1.6;border-radius:0}
.rest-back{display:inline-flex;align-items:center;min-height:44px;color:#d9bc96;font-size:14px;line-height:1.7;margin:0 0 12px;text-decoration:underline;text-underline-offset:5px}
.home-night-access{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin-top:14px}
.hero-copy .home-night-access .rest-home-link{background:transparent;border:0;padding:8px 0;font-size:13px;min-height:44px;border-radius:0;color:#d9bd9b}
.hero-copy .home-night-access .rest-home-link:hover{background:transparent;text-decoration:underline;text-underline-offset:5px}
.rest-space [hidden],#rest-player-host [hidden]{display:none!important}
.rest-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:35px;margin:18px 0 45px}
.rest-heading .eyebrow,.rest-kicker{color:#c3a786;font-size:11px;letter-spacing:.14em;font-weight:650;line-height:1.7}
.rest-heading h1{font-size:clamp(46px,6vw,76px);font-weight:500;letter-spacing:-.05em;line-height:1.07;margin:20px 0 24px;color:var(--rest-text)}
.rest-heading h1 em{font-family:Georgia,serif;color:#d7af80;font-weight:400}
.rest-heading p{color:var(--rest-muted);font-size:17px;line-height:1.8}
.rest-theme{background:#2b241d;color:#e4c39c;border:1px solid #69513a;border-radius:16px;min-height:52px;padding:14px 20px;font-size:14px;text-align:left;flex:none}
.rest-theme span{display:block;font-size:12px;color:#c6b298;margin:5px 0 0 18px}
.rest-theme[aria-pressed=true]{background:#362b20;border-color:#b89265}
.rest-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}
.rest-sound,.rest-voice{border:1px solid var(--rest-line);border-radius:26px;background:var(--rest-bg);padding:34px}
.rest-sound h2,.rest-voice h2,.rest-finished h2{color:var(--rest-text);font-size:31px;line-height:1.25;margin:17px 0 10px;letter-spacing:-.025em}
.rest-subtle{color:var(--rest-muted);font-size:15px;margin-top:8px}
.rest-sounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:26px 0}
.rest-sounds button{border:1px solid #55493c;border-radius:16px;background:#26211c;color:#d5c7b6;padding:16px 8px;display:flex;flex-direction:column;align-items:center;min-width:0}
.rest-sounds button[aria-pressed=true]{border-color:#d1a776;background:#3c2f24;box-shadow:inset 0 0 0 1px #d1a776}
.rest-sounds strong{font-size:14px;font-weight:650;line-height:1.6}.rest-sounds small{font-size:11px;color:#c6b39d;line-height:1.6;margin-top:3px}
.sound-glyph{font-size:38px;line-height:48px;min-height:55px;color:#c9b395}.pink-glyph{color:#ddabac}.brown-glyph{color:#d5b081}
.rest-duration{display:flex;gap:16px;align-items:center;justify-content:space-between;font-size:14px;margin:24px 0 0;color:#dfd0bd}
.rest-duration>div{display:flex;gap:5px}.rest-duration button{min-height:44px;min-width:56px;background:#29231e;border:1px solid #564637;border-radius:10px;color:#dcc7ae;font-size:13px;padding:10px}
.rest-duration button[aria-pressed=true]{background:#d2ad80;border-color:#d2ad80;color:#211a14}
.rest-space .rest-small,.rest-quiet .rest-small{font-size:13px;line-height:1.75;color:#bbaa96}
.rest-volume{margin:25px 0 20px}.rest-volume label{display:flex;justify-content:space-between;font-size:14px;color:#dcc7ae}
.rest-volume input[type=range]{padding:0;min-height:44px;accent-color:#dbb080;background:transparent;border:0;cursor:pointer}
.rest-volume p{margin:0}.rest-space .btn.rest-primary{width:100%;background:#dab17f;color:#211a13;border:1px solid #dfbb8e;margin-top:10px;min-height:54px;font-weight:750}
.rest-space .btn:disabled{opacity:.6}.rest-space .btn:hover,.rest-quiet .btn:hover{transform:none}
.rest-voice{display:flex;flex-direction:column;background:linear-gradient(145deg,#30261e,#211d19 70%)}
.rest-author{display:flex;gap:15px;align-items:center;margin:34px 0 22px;color:#e1c6a6;font-size:14px}
.rest-author img{object-fit:cover;object-position:center 33%;border-radius:50%;width:70px;height:70px;filter:saturate(.6)}
.rest-author small{display:block;color:#bdaa91;font-size:12px;margin-top:6px}.rest-voice>p{font-size:16px;color:#cbb9a4;line-height:1.8}
.rest-space .rest-voice-start{color:#f0d5b4;background:#483526;border:1px solid #93704e;min-height:54px;margin-top:16px}.rest-voice .rest-text-link{margin-top:auto;padding-top:18px}
.rest-text-link{color:#dcb98d;font-size:14px;text-decoration:underline;text-decoration-color:#806446;text-underline-offset:5px;line-height:1.8;display:inline-block}
.rest-notes{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:28px 0}
.rest-notes details{min-width:0;background:#221e19;border:1px solid #4a4035;border-radius:18px;padding:23px;color:#d5c3ad;align-self:start}
.rest-notes summary{cursor:pointer;font-size:15px;line-height:1.6;font-weight:650;min-height:32px}.rest-notes summary>span{float:right;margin-left:8px}
.rest-notes p,.rest-notes li{font-size:14px;line-height:1.85}.rest-notes h3{font-size:19px;color:#e7ceb0;margin-top:25px}.rest-notes ol{padding-left:24px}.rest-notes li{margin:12px 0}
.rest-notes a{color:#dfbb8d;text-decoration:underline;text-underline-offset:4px;line-height:1.8;font-size:13px;overflow-wrap:anywhere}
.rest-notes label{display:block;margin:18px 0 8px;font-size:14px}.rest-notes select{background:#31271e;color:#ead4b8;border-color:#745a40;font-size:16px}
.rest-sources{display:grid;gap:12px}.rest-footer-note{color:#af9e8a;font-size:12px;line-height:1.8;text-align:center;max-width:630px;margin:32px auto}
.rest-finished{border:1px solid #826749;border-radius:20px;padding:26px;margin-top:28px;background:#2f281f}.rest-finished p{color:#d0bca3}.rest-finished .btn.secondary{background:#3e3023;color:#ecd2af;border:1px solid #98734b}
.rest-dock{position:fixed;z-index:19;bottom:22px;left:50%;transform:translateX(-50%);width:min(460px,calc(100% - 32px));background:#30271fee;color:#efdabe;border:1px solid #9a7956;border-radius:18px;box-shadow:0 8px 32px #0006;padding:10px 12px 10px 18px;display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:4px 10px;align-items:center;backdrop-filter:blur(16px)}
.rest-dock-info{min-width:0;flex:1;padding:4px 0;line-height:1.5}.rest-dock-info>span{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rest-dock-info small{display:block;color:#c8b396;font-size:12px}
.rest-dock button{border:1px solid #886a49;min-width:44px;min-height:44px;border-radius:50%;background:#4a3726;color:#eed1a9;font-size:18px}.rest-dock button[data-rest-stop]{background:transparent;font-size:26px}
.rest-dock .rest-dock-volume{grid-column:1/-1;margin:0;min-width:0}
.rest-dock-volume label{font-size:12px;line-height:1.4;color:#dcc7ae}
.rest-dock-volume input[type=range]{display:block;width:100%;margin:0;min-height:44px;height:44px}
.rest-dock .rest-hardware,.rest-dock-status{grid-column:1/-1;font-size:12px;line-height:1.5;margin:0;color:#dcc7ae}
body.has-rest-player{padding-bottom:160px}body.has-rest-player #toast{bottom:180px}
.rest-quiet{color:#dcc7aa;background:#171410;border:1px solid #51402d;border-radius:24px;width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:26px;box-shadow:0 25px 100px #0009;overscroll-behavior:contain}
.rest-quiet::backdrop{background:#0e0c09f5;backdrop-filter:blur(8px)}
.rest-collapse{color:#c9b395;background:none;border:0;min-height:44px;padding:8px;font-size:14px}
.rest-quiet-content{max-width:440px;margin:auto;text-align:center;padding:32px 8px 20px}
.rest-moon{display:block;font-size:76px;font-family:Georgia,serif;color:#b99562;margin:20px 0;line-height:1.3}
.rest-quiet h2{font-size:clamp(27px,4vw,39px);color:#e4d0b4;letter-spacing:-.04em}.rest-quiet p{color:#bfa98c;font-size:16px;line-height:1.8}
.rest-quiet .rest-quiet-time{font-size:14px;font-variant-numeric:tabular-nums;margin-top:26px}.rest-quiet progress{width:100%;height:4px;accent-color:#b89466;border:0;background:#3b3021}.rest-quiet progress::-webkit-progress-bar{background:#3b3021;border-radius:4px}.rest-quiet progress::-webkit-progress-value{background:#b89466;border-radius:4px}
.rest-quiet .actions{justify-content:center;margin-bottom:22px}.rest-quiet .btn{background:#c6a170;color:#20190f;min-height:48px}.rest-quiet .btn.secondary{background:#30261b;color:#d9bd95;border-color:#735b3b}.rest-quiet .rest-status{font-size:13px}.rest-status:empty{display:none}
.rest-seek-label{display:block;font-size:11px;color:#baa385}.rest-quiet input[type=range]{min-height:36px;padding:0;margin:0;background:transparent;border:0;accent-color:#bb9867}
.tool-shortcuts .rest-shortcut{color:#e3bd8d;margin-left:auto;border-color:#786048}.hero-copy .rest-home-link{display:inline-flex;gap:10px;align-items:center;color:#f0d0a7;text-decoration:none;border:1px solid #a78359;background:#30261dcf;border-radius:12px;padding:13px 17px;min-height:48px;font-size:14px}.hero-copy .rest-home-link:hover{background:#433121}.hero-copy .rest-home-link span{font-size:19px}
body.evening-mode{--ink:#2e241a;--lime:#ddbb88;--line:#584938;--muted:#b5a691;--blue:#3d3021;background:#191613;color:#dfd1bd;color-scheme:dark}
body.evening-mode header,body.evening-mode .tool-shortcuts,body.evening-mode footer{background:#191613;border-color:#4a3e30;color:#c7b8a2}
body.evening-mode .brand,body.evening-mode .brand-icon,body.evening-mode header a,body.evening-mode .tool-shortcuts a{color:#debe96}
body.evening-mode .mobile-nav{background:#201b16f5;border-color:#54432f}body.evening-mode .mobile-nav a{color:#c5b39c}body.evening-mode .mobile-nav a.active{color:#efc48e}
body.evening-mode .cosmic-hero{background:#191613}body.evening-mode .hero-art{filter:sepia(.7)brightness(.55)}body.evening-mode .cosmic-hero::after{background:linear-gradient(90deg,#191613f5,transparent 80%),linear-gradient(0deg,#191613,transparent 35%)}
body.evening-mode .hero-copy h1,body.evening-mode .editorial-heading h2,body.evening-mode .course-invitation h2,body.evening-mode .author-story h2{color:#e4d4bc}body.evening-mode .hero-copy h1 em{color:#d4b185}
body.evening-mode .hero-copy>p,body.evening-mode .hero-author,body.evening-mode .hero-facts,body.evening-mode .section-head>p,body.evening-mode .editorial-heading>p{color:#bdaa92}
body.evening-mode :is(.need-observatory,.featured-tool,.topic-portals>a,.course-invitation,.course-map,.module-row,.author-project,.evening-entry,.learning-card,.card,.panel){background:#262019;color:#dccbb2;border-color:#574834}
body.evening-mode :is(.need-observatory,.featured-tool,.course-invitation,.course-map,.module-row,.author-project,.evening-entry,.learning-card,.card,.panel) p{color:#c1ae95}
body.evening-mode .orbit-node.selected{background:#443422;border-color:#b28c5c;color:#f0d3ad}body.evening-mode .orbit-time{color:#d6b78c;border-color:#836441}
body.evening-mode .btn{background:#d6b07d;color:#281e12}body.evening-mode .btn.secondary{background:#34291e;color:#e2c49b;border-color:#8c6d48}
body.evening-mode .mission-strip,body.evening-mode .donation-card{background:#32261c;border-color:#8a6645}body.evening-mode .mission-strip p,body.evening-mode .donation-card p{color:#d3bba0}
body.evening-mode .reader{background:#ded0b9;color:#332a1e;--muted:#64533d;--line:#b2a087;color-scheme:light}
body.evening-mode .reader :is(h1,h2,h3){color:#3c2e1f}body.evening-mode .reader :is(p,li,.muted,.meta,.eyebrow,.back){color:#5b4935}
body.evening-mode .reader :is(.panel,.card,.note,.step,.translation-content,.publication-abstract){background:#e3d7c3;color:#493822;border-color:#b7a389}body.evening-mode .reader :is(.panel,.card,.note) p{color:#5a4630}
body.evening-mode .reader .btn{background:#61472d;color:#f5e5cc}body.evening-mode .reader .btn.secondary{background:#ece0cc;color:#594027;border-color:#947955}
body.evening-mode .reader :is(input,textarea,select){background:#efe2cc;color:#342617;border-color:#a08764}body.evening-mode .reader .focus-box{background:#2c2318;color:#dfc8a4}body.evening-mode .reader .focus-box :is(h2,p,.meta){color:#dfc8a4}
body.evening-mode .reader.night-reading{background:#262019;color:#dccbb2}body.evening-mode .reader.night-reading :is(h1,h2,h3,p,li,.meta){color:#d5c1a4}body.evening-mode .reader.night-reading :is(.translation-content,.publication-abstract){background:#30281e;color:#d5c1a4}
body.evening-mode .focus-mode,body.evening-mode.focus-mode main{background:#191613}
body.evening-mode :is(.hero-art,.orbit,.hero-copy,.orbit-node,.card,.btn,.topic-portals>a,.rest-theme){animation:none!important;transition:none!important}
body.evening-mode :is(a,button,input,select,textarea):focus-visible,.rest-space :focus-visible,#rest-player-host :focus-visible{outline:3px solid #d8ac71;outline-offset:4px}
body.evening-mode header a.support{color:#302014;background:#dab17f}
body.evening-mode :is(.library-feature,.library-translation-entry,.library-publication-entry,.library-browser,.knowledge-card,.library-end,.evening-card,.skill-link){background:#262019;border-color:#61503b;color:#e0ccb0}
body.evening-mode :is(.library-feature,.library-translation-entry,.library-publication-entry,.knowledge-card,.library-end,.evening-card) :is(h2,h3,p){color:#d5c1a6}
body.evening-mode :is(.library-hero,.learning-header) :is(h1,h2,p,em){color:#dfc4a0}
body.evening-mode .library-browser :is(input,select){background:#32281c;color:#e5ceb0;border-color:#8d704b}
body.evening-mode .reader:is(.learning-reader,.lesson-reader){background:#282118;color:#ddc7a8;border-color:#796143}
body.evening-mode .reader:is(.learning-reader,.lesson-reader) :is(h1,h2,h3,p,li,.eyebrow,.meta,.back){color:#ddc7a8}
body.evening-mode .reader :is(.lesson-nav button,.lesson-practice,.lesson-check,.scenario,.answer-explanation,.next-evening,.skill-section,.finish-support,.learning-answers button,.ritual-options button,.ritual-budget){background:#3a2c1e;color:#e6ceb0;border-color:#8e704d}
body.evening-mode .reader :is(.lesson-nav button,.learning-answers button,.ritual-options button)[aria-pressed=true]{background:#63482f;color:#f4ddbd;border-color:#dbb07a}
body.evening-mode .reader :is(.lesson-check,.scenario,.answer-explanation,.skill-section,.finish-support) :is(p,h2,h3){color:#ddc7a8}
body.evening-mode .reader .partner-card.referral-box :is(h3,p,.eyebrow){color:#d0ddc7}
@media(max-width:760px){.tool-shortcuts{flex-wrap:wrap}.tool-shortcuts .rest-shortcut{margin-left:0;width:100%;justify-content:center;text-align:center;border:1px solid #806341;border-radius:10px;background:#34281b;padding:5px 12px;min-height:44px}.tool-shortcuts .rest-shortcut span{display:inline}.rest-heading{flex-direction:column;gap:12px;margin:6px 0 28px}.rest-heading h1{font-size:55px}.rest-heading p{font-size:16px}.rest-theme{display:flex;width:100%;gap:12px;align-items:center;justify-content:space-between;padding:14px 17px}.rest-theme span{margin:0}.rest-layout,.rest-notes{grid-template-columns:1fr;gap:18px}.rest-sound,.rest-voice{padding:25px 22px;border-radius:22px}.rest-author{margin-top:28px}.rest-voice h2{max-width:270px}.rest-sounds{gap:8px}.rest-notes details{padding:22px}.rest-dock{bottom:calc(80px + env(safe-area-inset-bottom,0px));width:calc(100% - 24px);padding:8px 10px 8px 14px;gap:8px;border-radius:16px}body.has-rest-player #toast{bottom:260px}body.has-rest-player{padding-bottom:220px}.rest-quiet{padding:16px;max-height:calc(100dvh - 24px)}.rest-quiet-content{padding:20px 8px 10px}.rest-moon{font-size:60px;margin:15px 0}.rest-quiet h2{font-size:29px}.rest-quiet-content>p{font-size:15px}.rest-quiet .rest-small{font-size:12px}.rest-quiet .actions{gap:10px}.rest-quiet .btn{font-size:14px}.rest-space .rest-small{font-size:12px}}
@media(max-width:380px){.rest-heading h1{font-size:47px}.rest-sound,.rest-voice{padding:24px 17px}.rest-duration{display:block}.rest-duration>div{margin-top:12px}.rest-duration button{flex:1}.rest-sounds{gap:6px}.rest-sounds strong{font-size:13px}.rest-sounds small{font-size:10px}.rest-dock-info>span{font-size:13px}.rest-dock-info small{font-size:11px}.rest-dock{gap:6px}.rest-quiet .actions{flex-wrap:wrap}.rest-quiet .btn{padding:12px 16px}}
@media print{#rest-player-host,.rest-space{display:none!important}}

.home-rest-space{scroll-margin-top:24px}
.hero-copy>p.hero-course-hint{font-size:14px;line-height:1.7;color:#b9bfd4;margin:16px 0 0;max-width:460px}
body.evening-mode .hero-copy>p.hero-course-hint{color:#cbb79b}
.course-start-panel{max-width:820px;margin:28px 0 38px;padding:28px;border:1px solid #66557f;border-radius:22px;background:#25263c}
.course-start-panel h2{margin:0 0 12px;font-size:28px;color:#eee6fa}
.course-start-panel p{font-size:16px;line-height:1.8;color:#c8c8db;margin:0 0 22px;max-width:680px}
body.evening-mode .course-start-panel{background:#30261d;border-color:#795e42}
body.evening-mode .course-start-panel h2{color:#ecd7b7}body.evening-mode .course-start-panel p{color:#cbb79b}
.nidra-instructions{margin:22px 0;padding:22px;border:1px solid #67533e;border-radius:16px;background:#211c18;color:#d7c5ad}
.nidra-instructions h3{margin:0 0 18px;font-size:23px;line-height:1.3;color:#f0ddc3}
.nidra-instructions ol{padding-left:21px;margin:0}
.nidra-instructions li{padding-left:5px;font-size:14px;line-height:1.8;margin:0 0 14px}
.nidra-instructions li:last-child{margin-bottom:0}
.nidra-instructions strong{color:#ead6ba}
.reader .nidra-instructions{background:#eee4d3;border-color:#baab94;color:#463624}
.reader .nidra-instructions :is(h3,strong){color:#3d2c1a}
.reader .nidra-instructions li{color:#51402c}
body.evening-mode .reader .nidra-instructions{background:#e9dcc5;border-color:#ac9575}
body.evening-mode .reader .nidra-instructions :is(h3,strong){color:#3d2c1a}
body.evening-mode .reader .nidra-instructions li{color:#51402c}
.rest-layout{align-items:start}
.rest-voice .rest-author{margin:12px 0 0}
.rest-instruction-link{white-space:normal;text-align:center;line-height:1.6;margin-bottom:0}
.rest-voice-start{white-space:normal;line-height:1.6}
@media(max-width:640px){.course-start-panel{padding:24px 20px}.course-start-panel .btn{width:100%;text-align:center;white-space:normal}.nidra-instructions{padding:20px 16px}.nidra-instructions h3{font-size:21px}.nidra-instructions li{font-size:14px;padding-left:2px}.rest-voice .rest-author{margin-top:4px}}
