/* Home content lives inside the same shared header/sidebar frame as every page. */
[data-enlighten-me].em-home-preview .em-main{padding:0;overflow:hidden}
[data-enlighten-me].em-home-preview .em-main>.em-wisdom{display:none!important}
[data-enlighten-me].em-home-preview .em-menu-bar{display:none}
[data-enlighten-me] .em-home{position:relative;isolation:isolate;min-height:calc(100dvh - 130px);padding:30px 44px 40px;box-sizing:border-box;overflow:hidden;color:#f5f0e1}
.em-home-forest{position:absolute;inset:0;z-index:-2;overflow:hidden;background:#283329;pointer-events:none}
.em-home-forest img{position:absolute;width:100%;height:100%;object-fit:cover;max-width:none!important}
.em-home-forest .landscape{object-position:50% 55%;filter:brightness(.77);transform:scale(1.025)}
.em-home-forest .foreground{object-position:center;opacity:.65;transform:scale(1.08)}
.em-home-forest:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#14211822,#0f1d1555 65%,#101f19aa)}
[data-enlighten-me] .em-home-content{width:100%;max-width:582px;margin:0 auto}
[data-enlighten-me] .em-home-opening{position:relative;isolation:isolate;text-align:center;margin:0;padding:0;color:#fff7e6;text-shadow:0 2px 14px #07120e}
.em-home-opening:before{content:'';position:absolute;z-index:-1;inset:-100px -180px -60px;background:radial-gradient(ellipse,#0b1b12bf 15%,#0b1b1277 48%,transparent 74%);pointer-events:none}
[data-enlighten-me] .em-home-label{font:600 11px/1.5 system-ui;letter-spacing:.22em;text-transform:uppercase;margin:0 0 7px;color:#e3d2aa}
[data-enlighten-me] .em-home-date{display:block;font:12px/1.5 system-ui;color:#e4e4d7;margin:0 0 12px}
.em-home-persona{display:flex;justify-content:center;margin:20px 0 12px;min-height:40px}
.em-home-persona button{background:transparent!important;border:0!important;padding:0!important}
[data-enlighten-me] .em-home-greeting{font:400 clamp(32px,3.2vw,46px)/1.16 Georgia,serif;letter-spacing:-.035em;margin:0 0 20px;color:#fff8e8}
[data-enlighten-me] .em-home-wisdom{font:400 18px/1.8 Georgia,serif;white-space:normal;margin:0;color:#f7f1df}
[data-enlighten-me] .em-home-choices{width:100%;margin:24px 0 0}

.em-home-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:stretch}
[data-enlighten-me] .em-home-grid article{position:relative;box-sizing:border-box;padding:26px 30px;border-radius:2px;box-shadow:0 12px 35px #07110c33;overflow:hidden;text-align:left}
[data-enlighten-me] .em-home-daily{background:linear-gradient(#f3ebdadf,#f3ebdadf),var(--home-paper) center/540px;color:#344032;border:0}
[data-enlighten-me] .em-home-journey{background:linear-gradient(110deg,#172a21f5,#172a21d9),var(--home-woodland) center/cover;color:#f8f0db;border:1px solid #ebdeb72b}
[data-enlighten-me] .em-home-kicker{font:500 10px/1.6 system-ui;text-transform:uppercase;letter-spacing:.14em;margin:0 0 14px;opacity:.8}
[data-enlighten-me] .em-home-grid h3{font:400 27px/1.23 Georgia,serif;letter-spacing:-.025em;margin:0 0 12px;color:inherit;max-width:330px;position:relative;z-index:1}
[data-enlighten-me] .em-home-journey:has(.em-home-book) h3{max-width:75%}
[data-enlighten-me] .em-home-description{font:15px/1.65 system-ui;margin:8px 0 14px;max-width:310px;color:inherit}
[data-enlighten-me] .em-home-meta{font:12px/1.5 system-ui;margin:10px 0;color:inherit;opacity:.85}
[data-enlighten-me] .em-home-method{font:11px/1.6 system-ui;letter-spacing:.025em;margin:16px 0 20px;color:inherit}
[data-enlighten-me] .em-home-action{font:600 13px/1.3 system-ui!important;text-decoration:none!important;background:#efa514!important;color:#262719!important;border:0!important;border-radius:3px!important;padding:13px 23px!important;min-height:44px;cursor:pointer;position:relative;z-index:1}
[data-enlighten-me] .em-home-action:hover{background:#ffbb34!important}
.em-home-action:focus-visible,.em-home-switch select:focus-visible{outline:3px solid #fff1b8;outline-offset:4px}
.em-home-progress{height:2px;max-width:175px;background:#f4dfaa30;margin:12px 0 0}.em-home-progress span{display:block;height:100%;background:#d6bd81}
.em-home-book{position:absolute;right:-14px;top:62px;width:98px;height:155px;transform:rotate(9deg);background:#c3a357 var(--home-paper) center/cover;border-right:4px solid #e4d9b8;box-shadow:0 12px 20px #07120aa6;opacity:.85;display:flex;align-items:center;justify-content:center}.em-home-book img{width:88%;height:92%;object-fit:contain;mix-blend-mode:multiply}
[data-enlighten-me] .em-home-switch{display:block;position:relative;width:145px;font:12px/1.5 system-ui;margin-top:17px;padding:0 0 4px;color:#e5dbc3;border-bottom:1px solid #dacfa666}
.em-home-switch:after{content:' ▾';margin-left:8px}.em-home-switch select{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.em-home-switch:focus-within{outline:2px solid #f2c45b;outline-offset:5px}
@media(min-width:900px) and (prefers-reduced-motion:no-preference){.em-home-forest .foreground{animation:em-home-air 28s ease-in-out infinite alternate}@keyframes em-home-air{from{transform:scale(1.08) translateX(-.3%)}to{transform:scale(1.09) translateX(.3%)}}}
@media(max-width:767px){[data-enlighten-me] .em-home{padding:30px 20px 100px;min-height:100dvh}.em-home-forest .landscape{object-position:58% center}.em-home-forest .foreground{opacity:.35}[data-enlighten-me] .em-home-opening{padding:0}.em-home-opening:before{inset:-45px -80px -15px}[data-enlighten-me] .em-home-greeting{font-size:34px}[data-enlighten-me] .em-home-wisdom{font-size:16px;line-height:1.85}.em-home-wisdom br{display:none}.em-home-wisdom br:after{content:' '}[data-enlighten-me] .em-home-choices{margin-top:24px}.em-home-grid{grid-template-columns:1fr;gap:18px}[data-enlighten-me] .em-home-grid article{padding:24px}[data-enlighten-me] .em-home-grid h3{font-size:27px}[data-enlighten-me].em-home-preview .em-bottom-nav{background:#17271ff5;color:#f7eedb;border-color:#e1d5b52b}[data-enlighten-me].em-home-preview .em-bottom-nav button{color:#f7eedb}.em-home-book{right:-8px}}
@media(prefers-reduced-motion:reduce){.em-home-forest img{animation:none!important}}
/* Journey appearance: Free keeps a plain cream page and navigation shell. */
.em-home[data-theme=plain]{background:#f7f3e9!important;color:#293b30}
.em-home[data-theme=plain] .em-home-forest,.em-home:not([data-theme=forest]) .foreground{display:none}
.em-home[data-theme=plain] .em-home-opening:before{display:none}
[data-enlighten-me] .em-home[data-theme=plain] .em-home-opening,[data-enlighten-me] .em-home[data-theme=plain] .em-home-greeting,[data-enlighten-me] .em-home[data-theme=plain] .em-home-wisdom{color:#293b30;text-shadow:none}
[data-enlighten-me] .em-home[data-theme=plain] .em-home-label,[data-enlighten-me] .em-home[data-theme=plain] .em-home-date{color:#69705d}
[data-enlighten-me] .em-home[data-theme=plain] .em-home-journey{background:#21382b}
[data-enlighten-me] .em-home-settings-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:28px;border:1px solid #d8cbb0;border-radius:14px;background:#f7f1e4;color:#283c30;box-shadow:0 24px 90px #0006}
.em-home-settings-dialog::backdrop{background:#071c14a6;backdrop-filter:blur(5px)}
[data-enlighten-me] .em-home-settings-dialog h2{clear:both;font:28px/1.2 Georgia,serif;margin:24px 0 12px;color:#283c30}
[data-enlighten-me] .em-home-settings-dialog p{font:14px/1.6 system-ui;color:#566151}
.em-home-settings-close{float:right;background:none;border:0;color:#283c30;padding:8px;min-height:44px;text-decoration:underline;cursor:pointer}
.em-home-theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}
[data-enlighten-me] .em-home-theme-choice{padding:0 0 12px;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#eee6d6;color:#293b30;text-align:left;cursor:pointer;min-width:0}
.em-home-theme-choice img{width:100%;height:110px;object-fit:cover;display:block}
.em-home-theme-choice span,.em-home-theme-choice small{display:block;padding:7px 10px 0;font:14px/1.4 system-ui}.em-home-theme-choice small{font-size:11px;color:#64705e}
[data-enlighten-me] .em-home-theme-choice[aria-pressed=true]{border-color:#c98618}
.em-home-theme-choice:focus-visible,.em-home-settings-close:focus-visible{outline:3px solid #e8a52c;outline-offset:3px}
@media(max-width:430px){[data-enlighten-me] .em-home-settings-dialog{padding:20px}.em-home-theme-options{gap:7px}.em-home-theme-choice img{height:100px}.em-home-theme-choice span,.em-home-theme-choice small{padding-left:6px}}
[data-enlighten-me].em-home-preview.em-home-free,
[data-enlighten-me].em-home-preview.em-home-free .em-shell,
[data-enlighten-me].em-home-preview.em-home-free .em-header,
[data-enlighten-me].em-home-preview.em-home-free .em-nav,
[data-enlighten-me].em-home-preview.em-home-free .em-bottom-nav{background:#f7f3e9;color:#293b30;border-color:#e6dfce}
[data-enlighten-me].em-home-preview.em-home-free .em-nav button,
[data-enlighten-me].em-home-preview.em-home-free .em-bottom-nav button{color:#495447}
[data-enlighten-me].em-home-preview.em-home-free .em-nav button[aria-current=page],
[data-enlighten-me].em-home-preview.em-home-free .em-bottom-nav button[aria-current=page]{background:#eee6d6;color:#88621c}
[data-enlighten-me].em-home-preview.em-home-free .em-nav-caption{color:#68705f}
/* Light structure for the plain Free shell. */
[data-enlighten-me].em-home-preview.em-home-free .em-header{border-bottom:1px solid #ded6c5}
[data-enlighten-me].em-home-preview.em-home-free .em-nav{border-right:1px solid #ded6c5}
[data-enlighten-me].em-home-preview.em-home-free .em-bottom-nav{border-top:1px solid #ded6c5}
/* Home reuses the original brand/account nodes and authoritative numeric total.
   The shared quotation node stays intact for other surfaces, but is not shown here. */
[data-enlighten-me].em-home-preview .em-shell .em-header{display:grid;grid-template-columns:minmax(170px,180px) minmax(0,1fr);align-items:center;gap:24px;padding:10px 28px!important;background:#f7f3e9;color:#352c20;border-bottom:1px solid #b6a17b60}
[data-enlighten-me].em-home-preview .em-header .em-brand-block{grid-column:1;grid-row:1;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:12px;width:100%;max-width:180px;min-width:0}
[data-enlighten-me].em-home-preview .em-header .em-logo-home{grid-column:1/-1;grid-row:1;width:100%;min-width:0}
[data-enlighten-me].em-home-preview .em-header .em-logo{display:block;max-height:none;width:100%;height:auto}
[data-enlighten-me].em-home-preview .em-header .em-header-actions{grid-column:2;grid-row:2;margin:0;display:block}
[data-enlighten-me].em-home-preview .em-header .em-login{display:inline-flex;align-items:center;min-height:28px;font-size:12px}
[data-enlighten-me].em-home-preview .em-header .em-status{grid-column:1;grid-row:2;margin:0;font:12px/1.5 system-ui;color:#62553f;letter-spacing:.02em}
[data-enlighten-me].em-home-preview .em-home-header-progress{grid-column:2;grid-row:1;min-width:0;justify-self:end;max-width:100%}
[data-enlighten-me].em-home-preview .em-header .em-heritage{display:none}
[data-enlighten-me] .em-home-counter{box-sizing:border-box;margin:0;padding:0;color:#352c20;text-shadow:none}
.em-home-counter-copy{min-width:0;min-height:54px;display:flex;align-items:center;justify-content:flex-end}
[data-enlighten-me] .em-home-counter-total{margin:0;color:inherit;text-align:right}
[data-enlighten-me] .em-home-counter-day{display:block;white-space:nowrap;font:400 32px/1.1 Georgia,serif;color:inherit}
[data-enlighten-me] .em-home-counter-number{font:inherit;font-variant-numeric:tabular-nums;color:inherit}
[data-enlighten-me] .em-home-counter-label{display:block;margin-top:4px;font:italic 400 13px/1.35 Georgia,serif;color:#62553f;overflow-wrap:anywhere}
@media(max-width:700px){
 [data-enlighten-me].em-home-preview .em-shell .em-header{grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:10px 16px!important}
 [data-enlighten-me].em-home-preview .em-header .em-brand-block{display:block;width:100%;max-width:160px;justify-self:start}
 [data-enlighten-me].em-home-preview .em-header .em-header-actions,[data-enlighten-me].em-home-preview .em-header .em-status,[data-enlighten-me] .em-home-counter-label{display:none}
 [data-enlighten-me] .em-home-counter-day{font-size:28px}
 .em-home-counter-copy{min-height:44px}
 .em-home-persona{margin-top:0}
}

.em-home-journey-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.em-home-explore-secondary{position:relative;z-index:1;min-height:44px;padding:12px 14px!important;background:transparent!important;color:#f3e7c9!important;border:1px solid #dac79377!important;border-radius:3px!important;font:500 13px/1.3 system-ui!important;cursor:pointer}.em-home-explore-secondary:hover{background:#e4d5ac15!important}@media(max-width:450px){.em-home-journey-actions{flex-direction:column;align-items:flex-start}}

/* A pending Journey owns the content surface; legacy daily adapters stay inert. */
[data-enlighten-me].em-journey-pending .em-main>.em-wisdom,[data-enlighten-me].em-journey-pending .em-main>.em-home{display:none!important}
[data-enlighten-me] .em-main>.em-journey-pending{display:flex;min-height:240px;align-items:center;justify-content:center}

/* Stable slots fill independently; no placeholder Journey or full-page wait. */
[data-enlighten-me] .em-home-greeting{min-height:1.16em}
[data-enlighten-me] .em-home-wisdom[aria-busy=true]{min-height:7.2em}
[data-enlighten-me] .em-home-grid article{min-height:290px}
.em-home-skeleton{border-radius:6px;background:linear-gradient(90deg,#a8a69720,#a8a69735,#a8a69720);max-width:100%}
.em-home-local-loading{min-height:150px;display:flex;align-items:center;justify-content:center}
[data-enlighten-me] .em-home-action:disabled{opacity:.5;cursor:wait}

/* Reuse the finished Library cover; reserve its own column beside progress. */
[data-enlighten-me] .em-home-journey:has(.em-home-custom-cover){display:grid;grid-template-columns:minmax(0,1fr) clamp(112px,28vw,150px);column-gap:18px;align-items:start}
[data-enlighten-me] .em-home-journey:has(.em-home-custom-cover)>.em-home-kicker{grid-column:1/-1}
[data-enlighten-me] .em-home-journey:has(.em-home-custom-cover)>h3{grid-column:1;grid-row:2;max-width:100%;font-size:clamp(22px,2.6vw,30px);overflow-wrap:break-word}
[data-enlighten-me] .em-home-journey:has(.em-home-custom-cover)>.em-home-meta{grid-column:1;grid-row:3}
[data-enlighten-me] .em-home-journey:has(.em-home-custom-cover)>.em-home-progress{grid-column:1;grid-row:4;width:100%}
[data-enlighten-me] .em-home-journey:has(.em-home-custom-cover)>.em-home-method{grid-column:1;grid-row:5}
[data-enlighten-me] .em-home-journey:has(.em-home-custom-cover)>.em-home-journey-actions,[data-enlighten-me] .em-home-journey:has(.em-home-custom-cover)>.em-home-switch{grid-column:1/-1;margin-top:20px}
[data-enlighten-me] .em-home-custom-cover{position:static;grid-column:2;grid-row:2/6;align-self:center;width:100%;height:auto;aspect-ratio:2/3;transform:rotate(2deg);opacity:1;background:none;border:0;box-shadow:0 8px 20px #07120a55}
[data-enlighten-me] .em-home-custom-cover .em-library-book{width:100%;height:auto;aspect-ratio:2/3;margin:0}
[data-enlighten-me] .em-home-custom-cover img.em-custom-cover-face{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}

/* One primary practice; focus and discovery remain secondary. */
.em-home-discovery{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
[data-enlighten-me] .em-home-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;box-sizing:border-box;border:1px solid currentColor;border-radius:3px;background:transparent;color:inherit;font:500 13px/1.4 system-ui;text-decoration:none;cursor:pointer}
[data-enlighten-me] .em-home-grid article[data-primary=true]{border-top:3px solid #c5a363}
.em-home-secondary:focus-visible{outline:3px solid #c5a363;outline-offset:4px}






[data-enlighten-me] .em-home-selection{color:inherit}
[data-enlighten-me] .em-home-selection .em-home-switch{color:inherit;min-height:32px}
[data-enlighten-me] .em-home-grid{margin-top:24px}

[data-enlighten-me] .em-home-journey-actions>.em-home-description{flex-basis:100%;max-width:none;margin:0}
[data-enlighten-me] a.em-home-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center}
.em-home-first-welcome{max-width:640px;margin:20px auto;text-align:center}.em-home-first-welcome h2{font:inherit;font-size:1.25em;margin:0 0 12px}.em-home-first-welcome p{font-size:18px;line-height:1.6}.em-home-welcome-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:18px 0}.em-home-first-welcome[hidden],.em-home-grid[hidden],.em-home-wisdom[hidden],.em-home-discovery[hidden]{display:none}
.em-home-tour-spotlight{position:fixed;z-index:10001;pointer-events:none;border-radius:9px;outline:2px solid #e9a621;box-shadow:0 0 0 200vmax #10261999}
.em-home-tour-note{overflow:auto;overscroll-behavior:contain}.em-home-tour-speech{display:flex;align-items:flex-start;gap:10px}.em-home-tour-speech> :first-child:not(p){flex-shrink:0;margin-top:8px}.em-home-tour-speech p{min-width:0;flex:1}.em-home-tour-question textarea{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px;border:1px solid #8a937d;border-radius:8px;background:#fffaf0;color:#253e30;font:16px/1.5 system-ui;resize:vertical}.em-home-tour-question label{font-size:16px}.em-home-tour-question p{font:13px/1.5 system-ui}.em-home-tour-speech p:focus-visible{outline:2px solid #294a34;outline-offset:3px}
.em-home-tour-note{margin:0;box-sizing:border-box;position:fixed;z-index:10002;max-width:350px;width:calc(100vw - 24px);padding:20px;background:#f1e7d0 var(--home-paper) center/cover;color:#253e30;border-radius:4px;box-shadow:0 8px 28px #0003;font:17px/1.5 Georgia,serif}
.em-home-tour-note h2{font:inherit;font-size:23px;margin:6px 0 12px}.em-home-tour-note p{margin:8px 0}.em-home-tour-progress{font-size:13px}.em-home-tour-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}.em-home-tour-note button{cursor:pointer;border:0;padding:9px 12px;border-radius:20px;font-family:inherit;font-size:14px;line-height:1.3}.em-home-tour-note .em-home-action{background:#e89909;color:#213728}.em-home-tour-note .em-home-secondary{background:transparent;color:#384e3a;text-decoration:underline}.em-home-tour-note button:focus-visible{outline:2px solid #294a34;outline-offset:3px}.em-home-tour-note button:disabled{opacity:.45}
