/* LittleKits — an editorial library, shared across the public experience. */
:root{--paper:#f5f3ed;--ink:#173f3a;--muted:#63736b;--line:#d9dfd4;--gold:#a77748;--surface:#fffefa;--surface-soft:#ecefe5;--accent:#e4bc94;--radius:16px}
html[data-theme=dark]{--paper:#101c1a;--ink:#e9efe4;--muted:#a2b4ab;--line:#30463e;--gold:#dfba8e;--surface:#192923;--surface-soft:#22372e;--accent:#c7956b}
.storefront{background:var(--paper)}.storefront .wrap{width:min(1280px,calc(100% - 96px))}.storefront .site-header{background:var(--paper);border-bottom:1px solid var(--line);box-shadow:none}.storefront .header-inner{min-height:82px;gap:24px}.storefront .site-header nav{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:5px;gap:4px;box-shadow:none}.storefront .site-header nav a{padding:10px 19px;border-radius:7px;font-size:12px;color:var(--muted);transition:background .2s,color .2s,transform .2s}.storefront .site-header nav a::after{display:none}.storefront .site-header nav a:hover{background:var(--surface-soft);color:var(--ink);transform:translateY(-1px)}.storefront .site-header nav a[aria-current=page]{background:var(--ink);color:var(--paper)}.storefront .theme-toggle{width:42px;height:42px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:none;transition:transform .3s,background .3s}.storefront .theme-toggle:hover{transform:rotate(-12deg)}.storefront .header-cta{background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:9px;font-size:11px;padding:13px 18px}.storefront .button{background:var(--ink);border-color:var(--ink);color:var(--paper);border-radius:9px;min-height:48px;box-shadow:0 4px 0 #0000000b;transition:background .2s,transform .25s,box-shadow .25s}.storefront .button:hover{background:#295c4b;border-color:#295c4b;color:#fff;box-shadow:0 7px 18px #173f3a20;transform:translateY(-3px)}html[data-theme=dark] .storefront .button{background:#cce0cb;color:#173a2d;border-color:#cce0cb}.storefront .button:active{transform:translateY(0);box-shadow:none}.storefront .eyebrow{letter-spacing:.16em;font-size:10px;color:var(--muted)}.storefront .site-header::after{content:'';position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:var(--gold);transform:scaleX(var(--reading-progress,0));transform-origin:left;pointer-events:none}
/* Opening: brand, purpose, then the books. */
.home-page .home-opening{background:radial-gradient(ellipse at 0% 80%,#cddab64a,transparent 50%),var(--paper);padding-bottom:22px}.home-page .home-wordmark{display:flex;align-items:center;justify-content:space-between;gap:50px;height:auto;padding:55px 0 36px;margin-top:0;border-bottom:1px solid var(--line);overflow:visible}.home-wordmark h1{font-size:clamp(76px,10.6vw,152px);line-height:1.05;letter-spacing:-.065em}.home-wordmark>p{position:static;text-align:left;max-width:260px;font-size:14px;line-height:1.9;letter-spacing:0;color:var(--muted)}#home-waves-root::before{opacity:.16;background-size:15px 15px}.book-shelf{padding-top:32px}.shelf-header{margin-bottom:20px}.shelf-header h2{font-size:clamp(29px,3vw,40px);max-width:22ch;line-height:1.15}.shelf-filter{border-radius:9px;background:var(--surface);padding:4px}.shelf-filter button{font-size:11px;min-height:43px;padding:10px 18px}.shelf-filter-indicator{top:4px;height:calc(100% - 8px);border-radius:6px}.shelf-caption h3{font-size:34px}.shelf-caption p{font-size:11px}.shelf-controls{max-width:780px}.shelf-arrow{width:48px;height:48px;background:var(--surface);border-radius:12px}.shelf-open{font-size:13px;padding:8px 0}.shelf-help{font-size:11px;gap:24px}.shelf-disclaimer{font-size:10px}.shelf-detail-sheet{background:var(--paper)}.shelf-detail-bar{padding:20px 4vw}.shelf-detail-line h2{font-size:clamp(42px,5.5vw,74px)}
/* Collection entrances */
.niche-choices{padding:65px 0 50px}.niche-intro{max-width:650px;margin-bottom:30px}.niche-intro h2{font:400 clamp(33px,3.4vw,46px)/1.15 var(--serif);letter-spacing:-.035em}.niche-intro>p:last-child{font-size:14px}.niche-choice-grid{gap:24px}.niche-choice{min-height:300px;border-radius:16px;padding:36px;background:linear-gradient(120deg,#dce6ce,#ecf0e4);border-color:#cdd9c0;box-shadow:none;transition:transform .35s,border-color .3s,box-shadow .3s}.niche-choice--lifestyle{background:linear-gradient(120deg,#eddfcc,#f3eade);border-color:#e1d0b7}.niche-choice h3{font-size:45px;line-height:1.1;letter-spacing:-.04em;margin:18px 0}.niche-choice p{font-size:13px;max-width:30ch}.niche-choice-link{font-size:12px}.niche-choice-covers img{width:105px;transition:transform .5s cubic-bezier(.2,.8,.2,1)}.niche-choice:hover .niche-choice-covers img:first-child{transform:rotate(-14deg) translate(-3px,-8px)}.niche-choice:hover .niche-choice-covers img+img{transform:rotate(12deg) translate(5px,4px)}.niche-choice:hover{box-shadow:0 16px 35px #173f3a12;border-color:var(--gold)}html[data-theme=dark] .niche-choice{background:linear-gradient(120deg,#253e2d,#1b2e25);border-color:#3b5240}html[data-theme=dark] .niche-choice--lifestyle{background:linear-gradient(120deg,#41382b,#2c2c23);border-color:#544939}
.home-library{padding:24px 0 70px}.home-library-heading{gap:40px;padding-top:35px}.home-library-heading h2{font:400 clamp(36px,4vw,51px)/1.14 var(--serif);letter-spacing:-.035em}.home-library-heading>p{font-size:14px;max-width:340px}.home-library-toolbar{margin:30px 0}.home-library-filters{padding:4px;background:var(--surface-soft);border-radius:10px;gap:4px}.home-library-filters button{border:0;border-radius:7px;background:transparent;font-size:12px;min-height:44px;padding:10px 19px;transition:background .25s,color .25s}.home-library-filters button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.home-library-groups{gap:40px}.home-niche-heading{border:0;margin-bottom:22px;padding-top:0}.home-niche-heading h3{font-size:32px}.home-niche-heading .eyebrow{font-size:9px}.home-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.home-material{display:grid;grid-template-columns:42% minmax(0,1fr);border-radius:16px;border:1px solid var(--line);background:var(--surface);box-shadow:none;transition:border-color .3s,box-shadow .3s,transform .35s}.home-material:hover{border-color:var(--gold);box-shadow:0 15px 35px #173f3a10}.home-material-art{min-height:330px;padding:30px 24px;align-self:stretch}.home-material-art .home-book{width:145px;max-width:100%;transform:perspective(900px) rotateY(-11deg) rotateZ(-2deg) translate3d(var(--art-x,0px),var(--art-y,0px),0);transition:transform .4s cubic-bezier(.2,.8,.2,1)}.home-material:hover .home-book{transform:perspective(900px) rotateY(-4deg) rotateZ(1deg) translate3d(var(--art-x,0px),calc(var(--art-y,0px) - 8px),0)}.home-material-copy{padding:29px 25px}.home-material-category{font-size:9px;letter-spacing:.1em}.home-material-copy h3,.niche-page .home-material-copy h2{font:400 26px/1.18 var(--serif);letter-spacing:-.025em;margin-top:14px}.home-material-copy>p:not(.home-material-category){font-size:12px;line-height:1.85;margin-top:14px}.home-material-preview{background:var(--surface-soft);border-radius:8px;font-size:11px;padding:12px;min-height:46px;transition:background .2s,border-color .2s}.home-material-preview:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}.home-material-details{font-size:11px}.home-library-note{font-size:11px;border-top:1px solid var(--line);padding-top:20px;margin-top:32px}.niche-page-hero{padding:58px 0 42px}.niche-page-hero h1{font:400 clamp(54px,7vw,90px)/1.1 var(--serif);letter-spacing:-.045em}.niche-page-tags span{border-radius:7px;background:var(--surface);font-size:11px}.niche-other-area{padding:30px 0 55px}
/* Material pages */
.storefront .hero{padding-block:64px;gap:65px}.storefront .hero h1{font:400 clamp(43px,4.8vw,67px)/1.08 var(--serif);letter-spacing:-.04em}.storefront .hero-description{font-size:15px;line-height:1.9}.storefront .hero-display{border-radius:18px;background:radial-gradient(ellipse at 50% 20%,#456c51,#183c33 75%);border:1px solid #50715b;box-shadow:0 18px 35px #173f3a15}.storefront .collection{padding-top:40px}.storefront .product{border-radius:18px;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:0 5px 20px #173f3a04}.storefront .product-art{min-height:330px}.storefront .product-body{padding:32px}.storefront .product-body h3{font:400 34px/1.15 var(--serif);letter-spacing:-.035em}.storefront .product-description{font-size:14px;line-height:1.85}.storefront .product-details{border-radius:9px}.storefront .preview-trigger{border-radius:8px;min-height:46px}.storefront .simple-help{border-radius:18px;background:var(--surface-soft);border:1px solid var(--line)}.storefront .how{padding-block:50px 65px}.storefront .faq-section{background:#183e33;border-radius:24px 24px 0 0}.storefront .faq-layout{gap:70px}.storefront .site-footer{border-top:1px solid var(--line);background:var(--surface);padding-block:35px}.storefront .medicine-hero{gap:65px;padding-block:60px}.storefront .medicine-copy h1{font:400 clamp(44px,4.8vw,66px)/1.12 var(--serif);letter-spacing:-.035em}.storefront .medicine-description{font-size:15px;line-height:1.9}.storefront .study-hero-figure{border-radius:18px;background:var(--surface-soft);box-shadow:none;border:1px solid var(--line)}.storefront .study-hero-facts li{border-radius:6px;background:var(--surface);border-color:var(--line)}.storefront .study-preview-card{border-radius:16px;background:var(--surface);box-shadow:none;border:1px solid var(--line)}.storefront .study-preview-card button{border-radius:8px;min-height:48px}.storefront .guide-panel{border-radius:18px}.storefront .medicine-faq summary{font-size:15px;padding-block:24px}.storefront .home-jarvis-invite{border:1px solid var(--line);border-radius:18px;background:var(--surface-soft)}
/* JARVIS and owner workspace share the same finish. */
.lk-chat-panel{border-radius:18px!important;border-color:var(--line)!important;box-shadow:0 22px 70px #001e1a30!important}.lk-chat-header{padding:20px!important;background:var(--surface-soft)!important}.lk-chat-launch{border-radius:12px!important;box-shadow:0 5px 20px #173f3a20!important}.lk-chat-message{border-radius:12px!important;font-size:13px!important;line-height:1.8!important}.lk-chat-message.user{border-radius:12px 12px 3px 12px!important}.lk-chat-suggestions button{border-radius:8px!important;min-height:40px}.lk-chat-form input{border-radius:9px!important}.lk-chat-log{scroll-behavior:smooth}.admin-page .login-card{border-radius:18px;padding:38px;border-color:var(--line);box-shadow:0 20px 65px #00000014}.admin-page .login-editorial h2{font-family:var(--serif);font-weight:400;font-size:clamp(44px,4.5vw,66px)}.admin-page .sidebar{padding-top:24px;background:var(--surface)}.admin-page #tabs button{border-radius:8px;min-height:45px;font-size:12px}.admin-page #tabs button[aria-selected=true]{border-color:var(--line);box-shadow:inset 3px 0 0 var(--gold)}.admin-page .panel{border-radius:14px;box-shadow:none;border-color:var(--line)}.admin-page .topbar{backdrop-filter:none;background:var(--paper);min-height:80px}.admin-page .metric{border-radius:12px;background:var(--surface)}.admin-page .main{padding:32px 36px}.admin-page .login-preview{opacity:.8}.admin-page .btn{border-radius:8px;min-height:44px}.admin-page :is(input,textarea,select){border-radius:8px}.admin-page .chat-panel{border-radius:16px}.admin-page .view h1{font-family:var(--serif);font-weight:400}
/* Small interactive details: no continuous rendering. */
.interface-reveal{transition:transform .7s cubic-bezier(.2,.75,.25,1),opacity .65s ease;transition-delay:var(--enter-delay,0ms)}.interface-reveal.is-waiting{opacity:0;transform:translateY(26px)}.interface-top{position:fixed;bottom:24px;left:24px;z-index:12;width:44px;height:44px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;cursor:pointer;box-shadow:0 5px 18px #173f3a10}.interface-top[hidden]{display:none}.interface-top:hover{background:var(--ink);color:var(--paper)}.storefront :is(.button,.header-cta){translate:var(--button-x,0px) var(--button-y,0px)}@view-transition{navigation:auto}::view-transition-old(root){animation:lk-page-out .16s ease-in both}::view-transition-new(root){animation:lk-page-in .32s cubic-bezier(.2,.8,.2,1) both}@keyframes lk-page-out{to{opacity:0;transform:translateY(-5px)}}@keyframes lk-page-in{from{opacity:0;transform:translateY(10px)}}
@media(max-width:1000px){.storefront .wrap{width:calc(100% - 56px)}.home-wordmark>p{max-width:220px}.home-material{grid-template-columns:37% minmax(0,1fr)}.home-material-copy{padding:25px 20px}.home-material-art{padding:25px 16px;min-height:320px}.home-material-copy h3{font-size:23px}.niche-choice{padding:28px}.storefront .hero,.storefront .medicine-hero{gap:32px}.admin-page .main{padding:25px}}
@media(max-width:700px){.storefront .wrap{width:calc(100% - 40px)}.storefront .header-inner{min-height:108px;gap:10px;padding-block:12px}.storefront .site-header nav{width:100%;justify-content:center}.storefront .site-header nav a{font-size:11px;padding:9px 17px;flex:1;text-align:center}.storefront .theme-toggle{width:36px;height:36px}.home-page .home-wordmark{display:block;text-align:center;padding:30px 0 26px}.home-wordmark h1{font-size:clamp(64px,18vw,110px)}.home-wordmark>p{font-size:12px;line-height:1.7;max-width:29ch;margin:18px auto 0;text-align:center}.book-shelf{padding-top:26px;padding-bottom:22px}.shelf-header{gap:18px}.shelf-header h2{font-size:29px}.shelf-filter button{font-size:10px;padding:10px 16px}.shelf-caption h3{font-size:25px}.shelf-caption p{font-size:10px}.shelf-controls{grid-template-columns:38px minmax(0,1fr) 38px;gap:7px}.shelf-arrow{width:36px;height:42px;border-radius:10px}.shelf-help{font-size:10px;gap:12px;line-height:1.8}.shelf-disclaimer{font-size:9px}.niche-choices{padding:38px 0 25px}.niche-intro h2{font-size:34px}.niche-intro>p:last-child{font-size:13px}.niche-choice-grid{gap:16px}.niche-choice{min-height:250px;padding:25px 20px;grid-template-columns:1fr 100px}.niche-choice h3{font-size:36px}.niche-choice p{font-size:12px}.niche-choice-covers img{width:70px}.home-library{padding-bottom:40px}.home-library-heading{padding-top:28px}.home-library-heading h2{font-size:36px}.home-library-heading>p{font-size:13px;max-width:100%}.home-library-toolbar{margin:22px 0}.home-library-filters{display:inline-flex}.home-library-filters button{padding:10px 14px;font-size:11px}.home-library-grid,.home-niche-group[data-home-group=academic] .home-library-grid{grid-template-columns:1fr;gap:16px}.home-material{grid-template-columns:35% minmax(0,1fr);border-radius:13px}.home-material-art{min-height:280px;padding:20px 12px}.home-material-art .home-book{width:100px}.home-material-copy{padding:23px 18px}.home-material-copy h3,.niche-page .home-material-copy h2{font-size:24px;line-height:1.2}.home-material-copy>p:not(.home-material-category){font-size:12px}.home-material-category{font-size:8px}.home-material-preview{font-size:11px;padding:11px 9px}.home-material-details{font-size:10px}.home-niche-heading h3{font-size:29px}.home-niche-heading>a{font-size:10px}.niche-page-hero{padding:35px 0}.niche-page-hero h1{font-size:57px}.storefront .hero,.storefront .medicine-hero{padding-block:35px;gap:30px}.storefront .hero h1,.storefront .medicine-copy h1{font-size:42px}.storefront .product-body{padding:25px 22px}.storefront .product-body h3{font-size:32px}.storefront .product-description{font-size:13px}.storefront .product-art{min-height:290px}.storefront .faq-section{border-radius:18px 18px 0 0}.storefront .faq-layout{gap:30px}.storefront .study-preview-card{border-radius:13px}.interface-top{left:16px;bottom:18px;width:40px;height:40px}.admin-page .main{padding:20px 16px}.admin-page .login-card{padding:28px 23px}.admin-page .topbar{min-height:72px}}
@media(max-width:360px){.storefront .wrap{width:calc(100% - 32px)}.home-material-copy{padding:20px 14px}.home-material-copy h3{font-size:22px}.home-material-category{font-size:7px}.shelf-caption h3{font-size:23px}.niche-choice{grid-template-columns:1fr 78px}.niche-choice h3{font-size:33px}.home-wordmark h1{font-size:17.5vw}}
@media(prefers-reduced-motion:reduce){.interface-reveal,.niche-choice-covers img,.storefront .button,.home-material-art .home-book{transition:none!important}.interface-reveal.is-waiting{opacity:1;transform:none}::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}.storefront :is(.button,.header-cta){translate:none!important}}
/* Separate destinations, separate identities. */
body[data-niche=academic]{--paper:#f0f4fa;--ink:#193c61;--muted:#5d7188;--line:#cedbe8;--surface:#fff;--surface-soft:#e2ecf7;--gold:#4e79a7}html[data-theme=dark] body[data-niche=academic]{--paper:#101c2d;--ink:#e2edf9;--muted:#a2b5ce;--line:#30465e;--surface:#182a40;--surface-soft:#21374f;--gold:#a2c6ed}body[data-niche=lifestyle]{--paper:#faf1e8;--ink:#63351f;--muted:#846b59;--line:#e6d2be;--surface:#fffaf4;--surface-soft:#f0dfcc;--gold:#b75a33}html[data-theme=dark] body[data-niche=lifestyle]{--paper:#261b17;--ink:#f3e2cf;--muted:#c6ae98;--line:#533d2e;--surface:#33261f;--surface-soft:#453225;--gold:#eab081}.storefront[data-niche] .site-header{background:var(--paper)}.storefront[data-niche] .button{background:var(--ink);border-color:var(--ink);color:var(--paper)}.semester-collection{padding-block:45px 65px}.semester-collection>h2{font:400 clamp(32px,4vw,48px)/1.2 var(--serif);margin:14px 0}.semester-collection>p{font-size:13px;color:var(--muted);line-height:1.8}.semester-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0 18px}.semester-card{padding:30px 24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);transition:transform .3s,border-color .3s}.semester-card:hover{transform:translateY(-5px);border-color:var(--gold)}.semester-card>span{font:9px var(--sans);letter-spacing:.13em;color:var(--muted)}.semester-card h3{font:400 29px/1.3 var(--serif);margin:18px 0 22px}.semester-card p{font:12px/1.7 var(--sans);text-decoration:underline;text-underline-offset:5px}.semester-note{font-size:11px!important}.niche-page .book-shelf{border-block:1px solid var(--line);margin-block:10px 40px;padding-block:30px}.home-page:not(.niche-page) .home-opening{padding-bottom:0}.home-page:not(.niche-page) .niche-choices{padding-top:45px}.shelf-spine{background:linear-gradient(90deg,#0003,transparent 14%,transparent 85%,#0004),var(--book-ink)!important;box-shadow:inset 1px 0 #ffffff30!important}.shelf-spine::before{display:none}.shelf-spine-brand{border:0;border-radius:0;box-shadow:none;background:none;width:auto;height:auto;font-size:calc(var(--bh) * .025);letter-spacing:.13em}.shelf-spine-title{font:400 calc(var(--bh) * .05)/1.2 var(--sans);border:0;letter-spacing:.02em;text-shadow:none;padding:0}.shelf-spine-number{border-top:1px solid #ffffff55;width:45%;font-size:calc(var(--bh) * .025)}.shelf-spine{border-radius:1px}.shelf-front>img{transform:translateZ(.1px);backface-visibility:hidden;-webkit-backface-visibility:hidden}.shelf-front{background-image:var(--book-art);background-size:cover}.home-page .niche-choice--lifestyle{color:#63351f}.home-page .niche-choice:not(.niche-choice--lifestyle){background:linear-gradient(120deg,#dce8f5,#edf3fa);border-color:#c7d8e9;color:#193c61}html[data-theme=dark] .home-page .niche-choice:not(.niche-choice--lifestyle){background:#1a2d44;color:#e2edf9;border-color:#34506b}html[data-theme=dark] .home-page .niche-choice--lifestyle{color:#f3e2cf}
@media(max-width:700px){.semester-grid{grid-template-columns:1fr;gap:12px}.semester-card{padding:24px}.semester-card h3{font-size:30px;margin:12px 0 16px}.semester-collection{padding-block:30px 40px}}

html[data-theme=dark] .storefront[data-niche] .header-cta{background:var(--ink);border-color:var(--ink);color:var(--paper)}

html{scrollbar-gutter:stable}

/* Night edition: layered charcoal, restrained niche accents and readable controls. */
html[data-theme=dark]{color-scheme:dark;--paper:#131719;--ink:#f0eeea;--muted:#b0b7bb;--line:#354045;--gold:#d6c2a4;--surface:#1c2327;--surface-soft:#283237;--header:#131719;--night-accent:#d6c2a4;--night-button-ink:#202426;--night-glow:#d6c2a40a}
html[data-theme=dark] body[data-niche=academic]{--paper:#131719;--ink:#f0eeea;--muted:#b0b7bb;--line:#354045;--surface:#1c2327;--surface-soft:#283237;--gold:#b5cbe1;--night-accent:#b5cbe1;--night-button-ink:#202426;--night-glow:#b5cbe10a}
html[data-theme=dark] body[data-niche=lifestyle]{--paper:#131719;--ink:#f0eeea;--muted:#b0b7bb;--line:#354045;--surface:#1c2327;--surface-soft:#283237;--gold:#dfbfa7;--night-accent:#dfbfa7;--night-button-ink:#202426;--night-glow:#dfbfa70a}
html[data-theme=dark] .storefront{color:var(--ink);background:var(--paper)}
html[data-theme=dark] .storefront .site-header{background:var(--paper);border-color:var(--line);box-shadow:0 8px 28px #0000001c}
html[data-theme=dark] .storefront .site-header nav{background:var(--surface);border-color:var(--line);box-shadow:inset 0 1px 0 #ffffff05}
html[data-theme=dark] .storefront .site-header nav a{color:var(--muted)}
html[data-theme=dark] .storefront .site-header nav a[aria-current=page]{background:var(--surface-soft);color:var(--night-accent);box-shadow:inset 0 0 0 1px var(--line)}
html[data-theme=dark] .storefront .site-header nav a:hover{color:var(--ink);background:var(--surface-soft)}
html[data-theme=dark] .storefront .theme-toggle{background:var(--surface-soft);color:var(--night-accent);border-color:var(--line);border-radius:12px;box-shadow:inset 0 1px 0 #ffffff0a,0 3px 10px #0002}
html[data-theme=dark] .storefront .theme-toggle:hover{border-color:var(--night-accent);background:var(--surface)}
html[data-theme=dark] .storefront :is(.header-cta,.button){background:var(--night-accent);color:var(--night-button-ink);border-color:var(--night-accent);box-shadow:0 5px 16px #0002}
html[data-theme=dark] .storefront :is(.header-cta,.button):hover{background:var(--ink);color:var(--night-button-ink);border-color:var(--ink);box-shadow:0 8px 22px #0003}
html[data-theme=dark] .storefront :is(.eyebrow,.home-material-category,.niche-back,.niche-breadcrumb,.breadcrumb){color:var(--muted)}
html[data-theme=dark] .storefront :is(.brand-mark>span,.tiny-rule){color:var(--night-accent)}
html[data-theme=dark] .home-page .home-opening{background:radial-gradient(ellipse at 12% 15%,#d6c2a406,transparent 60%),var(--paper);border-color:var(--line)}
html[data-theme=dark] #home-waves-root::before{opacity:.13;background-image:radial-gradient(circle,#d2d8e24d 1px,transparent 1.5px)}
html[data-theme=dark] .home-page .home-wordmark{border-color:var(--line)}
html[data-theme=dark] .home-page .home-wordmark h1{color:var(--ink);text-shadow:0 6px 36px #0002}
html[data-theme=dark] .home-page .niche-choice:not(.niche-choice--lifestyle){background:radial-gradient(ellipse at 100% 0%,#b5cbe109,transparent 70%),var(--surface);color:var(--ink);border-color:var(--line);box-shadow:inset 0 1px 0 #ffffff06,0 12px 30px #0002}
html[data-theme=dark] .home-page .niche-choice--lifestyle{background:radial-gradient(ellipse at 100% 0%,#dfbfa709,transparent 70%),var(--surface);color:var(--ink);border-color:var(--line);box-shadow:inset 0 1px 0 #ffffff06,0 12px 30px #0002}
html[data-theme=dark] .niche-choice:not(.niche-choice--lifestyle) :is(p,.niche-choice-label){color:var(--muted)}
html[data-theme=dark] .niche-choice--lifestyle :is(p,.niche-choice-label){color:var(--muted)}
html[data-theme=dark] .niche-choice:not(.niche-choice--lifestyle) .niche-choice-link{color:#b5cbe1}
html[data-theme=dark] .niche-choice--lifestyle .niche-choice-link{color:#dfbfa7}
html[data-theme=dark] .home-page .niche-choice:hover{border-color:var(--gold);box-shadow:0 18px 40px #0004}
html[data-theme=dark] .storefront :is(.home-material,.product,.study-preview-card,.semester-card){background:var(--surface);border-color:var(--line);box-shadow:inset 0 1px 0 #ffffff05,0 12px 28px #00000024}
html[data-theme=dark] .storefront :is(.home-material,.semester-card):hover{border-color:var(--gold);box-shadow:0 18px 35px #0003}
html[data-theme=dark] .storefront :is(.home-material-art,.product-art,.study-preview-cover,.study-hero-figure){background:radial-gradient(ellipse at 50% 12%,var(--night-glow),transparent 80%),var(--surface-soft);border-color:var(--line)}
html[data-theme=dark] .storefront .home-material[data-home-category=psicologia] .home-material-art{background:radial-gradient(ellipse at 50% 10%,#b3a3c510,transparent 75%),var(--surface-soft)}
html[data-theme=dark] .storefront .home-material[data-home-category=medicina] .home-material-art{background:radial-gradient(ellipse at 50% 10%,#b5cbe110,transparent 75%),var(--surface-soft)}
html[data-theme=dark] .storefront :is(.home-material-preview,.preview-trigger,.shelf-arrow,.flip-reader button,.home-library-search input,.niche-page-tags span){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .storefront :is(.home-material-preview,.preview-trigger,.shelf-arrow):hover{background:var(--surface);color:var(--night-accent);border-color:var(--night-accent)}
html[data-theme=dark] .storefront :is(.home-material-details,.shelf-open,.niche-other-area a,.semester-card p){color:var(--night-accent)}
html[data-theme=dark] .storefront :is(.shelf-filter,.home-library-filters){background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .storefront :is(.shelf-filter-indicator,.home-library-filters button[aria-pressed=true]){background:var(--surface-soft)}
html[data-theme=dark] .storefront :is(.shelf-filter button[aria-pressed=true],.home-library-filters button[aria-pressed=true]){color:var(--night-accent)}
html[data-theme=dark] .storefront :is(.shelf-caption p,.shelf-disclaimer,.shelf-help,.home-library-note){color:var(--muted)}
html[data-theme=dark] .storefront .shelf-viewport::after{opacity:.3}
html[data-theme=dark] .storefront .shelf-detail-sheet{background:radial-gradient(ellipse at 75% 40%,var(--night-glow),transparent 60%),var(--paper)}
html[data-theme=dark] .storefront .shelf-detail-art{background:transparent}
html[data-theme=dark] .storefront :is(.guide-access,.simple-help,.home-jarvis-invite){background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .storefront :is(.medicine-figure,.hero-display){background:radial-gradient(ellipse at 50% 20%,var(--surface-soft),var(--surface));border-color:var(--line)}
html[data-theme=dark] .storefront .medicine-figure>img{filter:none}
html[data-theme=dark] .storefront :is(.platform-label,.medicine-product-label,.product-body>.eyebrow,.product-index,.art-label){color:var(--muted)}
html[data-theme=dark] .storefront .faq-section{background:var(--surface);color:var(--ink);border-top:1px solid var(--line)}
html[data-theme=dark] .storefront .faq-section :is(p,.eyebrow,details p){color:var(--muted)}
html[data-theme=dark] .storefront .faq-section details{border-color:var(--line)}
html[data-theme=dark] .storefront .site-footer{background:var(--paper);border-color:var(--line)}
html[data-theme=dark] .storefront .flip-shell{background:radial-gradient(ellipse at 50% 45%,var(--night-glow),transparent 70%),var(--paper)}
html[data-theme=dark] .storefront .flip-bar{background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .storefront .flip-reader button:disabled{opacity:.5}
html[data-theme=dark] .storefront .interface-top{background:var(--surface-soft);border-color:var(--line);color:var(--night-accent);box-shadow:0 6px 18px #0004}
html[data-theme=dark] .storefront .lk-chat-panel{background:var(--surface);border-color:var(--line)!important;box-shadow:0 24px 80px #0009!important}
html[data-theme=dark] .storefront .lk-chat-log{background:var(--paper)}
html[data-theme=dark] .storefront .lk-chat-message.assistant{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .storefront .lk-chat-message.user{background:#233b50;color:#ecf4ff;border:1px solid #3b5770}
html[data-theme=dark] .storefront .lk-chat-suggestions button{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .storefront .lk-chat-suggestions button:hover{background:var(--surface-soft);border-color:var(--night-accent)}
html[data-theme=dark] .storefront :is(.lk-chat-form,.lk-chat-note,.lk-chat-status){background:var(--surface)}
html[data-theme=dark] .storefront .lk-chat-form textarea{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .storefront .lk-chat-form>button{background:var(--night-accent);color:var(--night-button-ink)}
html[data-theme=dark] .storefront .lk-chat-launch{background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] .storefront :is(a,button,summary,input,textarea):focus-visible{outline:2px solid var(--night-accent);outline-offset:4px}
/* Entrance uses opacity/translate only; no loading screen or continuous rendering. */
@media(prefers-reduced-motion:reduce){.storefront .site-header,.storefront main{scroll-behavior:auto}}
html[data-theme=dark] .storefront[data-niche] :is(.button,.header-cta){background:var(--night-accent);border-color:var(--night-accent);color:var(--night-button-ink)}
html[data-theme=dark] .storefront[data-niche] :is(.button,.header-cta):hover{background:var(--ink);border-color:var(--ink);color:var(--night-button-ink)}

html[data-theme=dark] .storefront .lk-chat-header{background:radial-gradient(ellipse at 12% 50%,#8fc9dd12,transparent 65%),var(--surface-soft)!important;border-bottom:1px solid var(--line)}

/* Shared motion rhythm; book-reader transforms remain independent. */
@media(prefers-reduced-motion:no-preference){
 .interface-reveal{transition-timing-function:cubic-bezier(.16,1,.3,1);transition-duration:.8s}
 .interface-reveal.is-waiting{transform:translateY(32px)}
 .niche-choice-link>span,.home-material-preview>span{display:inline-block;transition:transform .32s cubic-bezier(.16,1,.3,1)}
 .niche-choice:hover .niche-choice-link>span,.home-material-preview:hover>span{transform:translate(3px,-3px)}
 .storefront .site-header nav a{transition:background .25s,color .25s,transform .32s cubic-bezier(.16,1,.3,1)}
 .storefront :is(.button,.preview-trigger,.home-material-preview):active{scale:.98}
 ::view-transition-old(root){animation:lk-site-depart .16s ease-out both}
 ::view-transition-new(root){animation:lk-site-arrive .22s ease-out both}
}
@keyframes lk-site-depart{to{opacity:0}}
@keyframes lk-site-arrive{from{opacity:0}to{opacity:1}}

@media(max-width:700px){.storefront .site-header nav a{padding-inline:10px}}

.home-page .home-wordmark[data-wordmark-ready] h1{opacity:0}.home-page .home-wordmark #home-wordmark-root{inset:auto;z-index:2}.tech-text,.tech-text-canvas{display:block;position:relative;width:100%;height:100%}.tech-text{touch-action:pan-y;user-select:none}@media(prefers-reduced-motion:reduce){#home-wordmark-root{display:none}.home-page .home-wordmark[data-wordmark-ready] h1{opacity:1}}

.home-how{padding-block:36px 48px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 2fr;gap:40px;align-items:start}.home-how h2{font:400 34px/1.15 var(--serif);letter-spacing:-.025em;margin:15px 0 22px}.home-how a{font:12px var(--sans);text-decoration:underline;text-underline-offset:5px}.home-how ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.home-how li>span{display:block;color:var(--gold);font:12px var(--sans);margin-bottom:25px}.home-how strong{display:block;font:600 13px/1.6 var(--sans)}.home-how li>p{font:12px/1.8 var(--sans);color:var(--muted);margin-top:9px}.footer-areas{flex-wrap:wrap}@media(max-width:760px){.home-how{grid-template-columns:1fr;gap:24px;padding-block:30px}.home-how ol{grid-template-columns:1fr;gap:20px}.home-how li{border-top:1px solid var(--line);padding-top:16px}.home-how li>span{margin-bottom:8px}}
.product-impact{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);margin:22px 0}.impact-label{font:600 8px var(--sans);letter-spacing:.13em;color:var(--muted)}.product-impact h4{font:400 25px/1.2 var(--serif);margin:12px 0}.product-impact>p:not(.impact-label){font:13px/1.85 var(--sans);color:var(--muted)}.product-impact ul{margin:16px 0 0;padding-left:17px;display:grid;gap:6px;font:12px/1.7 var(--sans)}.material-value{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;border-block:1px solid var(--line);padding-block:38px;margin-bottom:35px}.material-value h2{font:400 clamp(29px,3vw,42px)/1.15 var(--serif);margin:15px 0}.material-value p:not(.eyebrow){font:14px/1.85 var(--sans);color:var(--muted);max-width:50ch}.material-value a{display:inline-block;margin-top:20px;font:12px var(--sans);text-decoration:underline;text-underline-offset:5px}.material-value ul{display:grid;gap:18px;list-style:none;padding:0;font:14px/1.8 var(--sans)}.material-value li{padding:16px 20px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}@media(max-width:760px){.material-value{grid-template-columns:1fr;gap:24px;padding-block:28px}.product-impact{padding:17px}.material-value ul{gap:10px}}
