/* Compact LMS design layer; takes precedence over legacy spacing and type scales. */
html{font-size:16px}body{font-size:14px;line-height:1.55;--paper:#f3f6fb;--surface:#fff;--ink:#172b46;--muted:#586b82;--line:#e0e7f0;--soft:#eaf0f8;--teal:#4264d8;background:var(--paper)}body.dark{--paper:#111b2d;--surface:#1a2941;--ink:#ebf1fb;--muted:#b2bfd3;--line:#30415c;--soft:#253650;--teal:#9bb0ff}
.container{width:calc(100% - 48px);max-width:1180px;margin-inline:auto;padding-inline:0}.site-header{min-height:68px;height:auto;padding:12px max(24px,calc((100vw - 1180px)/2));gap:22px;box-shadow:0 1px 8px #142f5010}.brand{font-size:17px;white-space:nowrap}.brand-mark{width:30px;height:30px}.brand-logo{width:30px;height:30px}.site-header nav{gap:18px}.site-header nav a{font-size:13px}.header-actions{gap:10px}.header-actions form{margin:0}.header-actions .btn{font-size:12px;min-height:36px;padding:8px 12px}.theme-toggle{font-size:18px}.btn{min-height:38px;padding:9px 15px;font-size:13px;border-radius:8px;box-shadow:none}.btn:not(.ghost):not(.lime){background:#4264d8;color:white}.btn.ghost{border-color:var(--line)}.current-plan{background:var(--soft)!important;color:var(--ink)!important;border:1px solid var(--line);opacity:1;cursor:default}h1,.page-head h1{font-size:30px;line-height:1.2;margin:8px 0 12px}h2{font-size:22px;line-height:1.3}h3{font-size:17px}p{line-height:1.6}.page-head{padding:28px 0 18px!important;margin:0 0 12px!important}.page-head p{font-size:14px;max-width:760px;margin-bottom:0}.eyebrow{font-size:10px;letter-spacing:.1em}.section{margin:28px auto!important;padding-block:0!important}.section-card{margin-top:18px}.section-heading{margin-bottom:16px;gap:16px}.section-heading h2{margin:4px 0 8px}.section-heading p{margin:0;font-size:14px}.grid{gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.card{padding:20px;border-radius:12px;border:1px solid var(--line);box-shadow:0 3px 14px #1a345007;min-width:0}.card h2,.card h3{margin-top:0}.content-card,.service-card{min-height:0!important;height:auto!important;gap:10px;padding:20px}.content-card h3,.service-card h2{font-size:16px;line-height:1.45}.content-card>p,.service-card>p{font-size:13px;line-height:1.6}.content-card .meta{font-size:11px;margin-top:8px}.content-card>.text-link,.service-card>.btn{margin-top:8px!important}.card-top{margin:0 0 4px}.icon-tile{width:34px;height:34px;border-radius:9px;background:#eaf0ff;color:#4264d8}.icon-tile svg{width:18px;height:18px}.badge{font-size:10px;padding:4px 8px}.preview-toggle{font-size:12px;margin-bottom:0}.hero{padding:22px 0 24px!important;min-height:0!important}.search-intro{margin-bottom:10px}.search-form{padding:8px 12px;border-radius:12px;min-height:54px}.search-form input{font-size:14px;padding:8px}.search-form select{font-size:13px;padding:8px}.search-form .btn{padding:9px 15px;min-height:36px}.hero-grid{padding:24px 0 0!important;gap:32px;grid-template-columns:1.1fr 1fr;align-items:center;min-height:0}.hero h1{font-size:38px;line-height:1.14;letter-spacing:-.04em;margin:14px 0 16px}.hero-copy p{font-size:15px;line-height:1.65;margin:0 0 18px;max-width:520px}.hero-illustration{max-height:285px;width:100%;object-fit:contain;border-radius:16px}.hero-footnote{font-size:11px;margin-top:18px;gap:10px}.daily-feature,.premium-feature{min-height:0!important;padding:24px!important;border-radius:14px}.daily-feature h2,.premium-feature h2{font-size:24px;margin:8px 0 10px}.daily-feature p,.premium-feature p{font-size:14px;margin:0 0 16px;max-width:460px}.daily-feature .button-row,.premium-feature .button-row{margin:0}.premium-feature:after{display:none}.editorial{padding-block:12px!important}.newsletter{padding:24px;margin:28px auto}.newsletter h2{font-size:24px}footer{padding:28px max(24px,calc((100vw - 1180px)/2));margin-top:32px}footer p,footer a{font-size:12px}.admin-shell,.dashboard-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;margin-top:24px;align-items:start}.admin-sidebar,.member-sidebar{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);position:sticky;top:18px;max-height:calc(100vh - 100px);overflow:auto}.admin-sidebar h2{font-size:22px;margin:8px 0 16px}.admin-sidebar a,.member-sidebar a{font-size:12px;padding:9px 10px;margin:2px 0;line-height:1.4;border-radius:7px}.admin-main .page-head{padding-top:0!important}.admin-workflow{margin:12px 0}.admin-workflow nav{display:flex;gap:8px;flex-wrap:wrap}.admin-workflow .btn{min-height:34px;font-size:12px;padding:7px 12px}.metric{padding:16px}.metric strong{font-size:24px}.metric span{font-size:12px}.membership-overview{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:18px 0;background:linear-gradient(115deg,var(--surface),var(--soft))}.member-identity{display:flex;align-items:center;gap:14px}.member-identity h2{font-size:20px;margin:0 0 7px}.member-avatar{display:inline-flex;width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;vertical-align:middle;border:2px solid var(--line)}.avatar-initial{align-items:center;justify-content:center;background:#e9eeff;color:#3654b8;font-size:18px;font-weight:700}.member-avatar.avatar-large{width:72px;height:72px;font-size:28px}.membership-expiry{display:block;font-size:15px;margin-top:6px}.badge.premium-badge{background:#fff1ce;color:#79560a;border:1px solid #eed791}.nav-profile{display:flex;align-items:center}.profile-photo-row{gap:12px;margin:14px 0}.profile-photo-row h3{margin:0}.profile-photo-row p{font-size:12px;margin:5px 0}.notification-menu{position:relative}.notification-menu>summary{display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;position:relative;width:38px;height:38px;border-radius:9px;border:1px solid var(--line);background:var(--surface)}.notification-menu>summary::-webkit-details-marker{display:none}.notification-count{position:absolute;top:-6px;right:-6px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#d94f5c;color:white;font-size:10px;display:grid;place-items:center}.notification-panel{position:absolute;right:0;top:46px;width:350px;max-width:calc(100vw - 24px);z-index:1000;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 12px 40px #172b4630;overflow:hidden}.notification-heading{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid var(--line)}.notification-heading .btn{font-size:10px;min-height:28px;padding:5px 8px}.notification-items{max-height:350px;overflow:auto}.notification-items>p{padding:16px;font-size:13px}.notification-item{padding:12px 16px;border-bottom:1px solid var(--line)}.notification-item.is-unread{background:var(--soft);border-left:3px solid #4264d8}.notification-item p{font-size:12px;margin:0 0 6px}.notification-item time{font-size:10px;color:var(--muted)}.notification-menu:focus-within>summary{outline:2px solid var(--teal)}.plan{padding:22px}.plan .price{font-size:32px;margin:16px 0}.feature-list li{font-size:13px;padding:7px 0}.membership-strip{padding:18px}.list-row{padding:12px 0;font-size:13px}label{font-size:12px}input,select,textarea{padding:10px 12px;border-radius:8px}form{gap:12px}textarea{min-height:100px}.reading{font-size:14px}.lesson-row{padding:14px}.lesson-row h3{font-size:15px}.lesson-row p{font-size:12px}.button-row{gap:10px}.notification-menu button:disabled{opacity:.5}
@media(max-width:1050px){.site-header{padding:12px 20px;gap:12px;flex-wrap:wrap}.site-header .brand{margin-right:auto}.site-header #main-nav{order:3;width:100%;justify-content:center}.hero h1{font-size:32px}.admin-shell,.dashboard-layout{grid-template-columns:185px minmax(0,1fr)}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.plan{padding:16px}}
@media(max-width:760px){.container{width:calc(100% - 28px)}.site-header{padding:10px 14px;gap:9px}.site-header .brand{max-width:none;font-size:15px}.site-header .brand-name{font-size:15px}.site-header .brand-logo,.site-header .brand-mark{width:26px;height:26px}.menu-toggle{display:block;order:2;font-size:20px;padding:7px}.header-actions{margin-left:auto;gap:7px}.header-actions .btn{font-size:11px;min-height:32px;padding:7px 9px}.header-actions .theme-toggle{display:none}.member-avatar{width:32px;height:32px}.header-actions>a.btn{display:none}.notification-menu>summary{width:32px;height:32px}.notification-panel{position:fixed;right:12px;top:70px;width:350px}.site-header #main-nav{display:none;order:4;flex-direction:column;align-items:stretch;gap:2px;padding:8px;border:1px solid var(--line);border-radius:10px;margin-top:6px;background:var(--surface)}.site-header #main-nav.open{display:flex}.site-header #main-nav a{padding:10px 12px;font-size:13px}.grid.three,.grid.two,.pricing-grid,.hero-grid,.admin-shell,.dashboard-layout{grid-template-columns:minmax(0,1fr)!important;gap:14px}.hero{padding:16px 0 20px!important}.hero-grid{padding-top:20px!important;gap:20px}.hero h1{font-size:29px}.hero-copy p{font-size:14px;margin-bottom:16px}.hero-illustration{max-height:190px;width:100%;object-fit:contain}.hero-footnote{font-size:10px;margin-top:14px}.hero-grid .button-row{display:flex;flex-wrap:wrap}.hero-grid .btn{font-size:12px;padding:9px 12px}.section{margin:20px auto!important}.daily-feature,.premium-feature{padding:18px!important}.daily-feature h2,.premium-feature h2{font-size:21px}.daily-feature p,.premium-feature p{font-size:13px}.page-head{padding:22px 0 12px!important}.page-head h1,h1{font-size:25px}.page-head p{font-size:13px}h2{font-size:20px}.card,.content-card,.service-card{padding:17px}.card h3,.service-card h2{font-size:16px}.section-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.section-heading .text-link{font-size:12px}.admin-sidebar,.member-sidebar{position:static;max-height:190px;padding:10px;display:flex;gap:6px;flex-wrap:wrap;overflow:auto}.admin-sidebar h2,.admin-sidebar>.eyebrow{display:none}.admin-sidebar a,.member-sidebar a{display:block;flex:0 0 auto;font-size:11px;padding:8px 10px;margin:0;background:var(--soft)}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.metric{padding:12px!important}.metric .icon-tile{display:none}.metric strong{font-size:20px}.metric span{font-size:10px}.membership-overview{align-items:flex-start;flex-direction:column;padding:18px;gap:15px}.member-identity h2{font-size:19px}.member-avatar.avatar-large{width:60px;height:60px}.membership-expiry{font-size:14px}.membership-overview>div:last-child{width:100%;border-top:1px solid var(--line);padding-top:12px}.search-form{grid-template-columns:minmax(0,1fr) auto}.search-form input{font-size:16px}.search-form select{font-size:13px}.search-intro .subtle{display:none}.search-intro .eyebrow{font-size:9px}.profile-photo-row{flex-wrap:wrap}.notification-heading{gap:8px}.notification-items{max-height:60vh}.list-row{gap:10px;flex-wrap:wrap}input,textarea,select{font-size:16px}.plan .price{font-size:30px}.feature-list{margin:14px 0}.newsletter{padding:18px}.newsletter h2{font-size:21px}footer{padding:24px 16px;margin-top:24px}.footer-top,.footer-bottom{display:block}.footer-bottom>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}}
.premium-badge{display:inline-flex;align-items:center;gap:5px;background:#fff1d0;color:#77520b;border:1px solid #f0d38e;font-weight:700}.premium-badge:before{content:'✦';font-size:12px}.avatar-initial{align-items:center;justify-content:center;background:#e5ebff;color:#3555be;font-weight:750;font-size:16px}.avatar-large{width:64px;height:64px;font-size:25px}.nav-profile{display:inline-flex;border-radius:50%;outline-offset:3px}.membership-expiry{display:block;margin-top:6px;font-size:16px;color:var(--ink)}
