:root{color-scheme:light;--bg:#f7f8f4;--surface:#fff;--text:#263d32;--muted:#586a5d;--line:#d9e1d5;--accent:#305f45;--accent-text:#fff;--soft:#e9efdf;--hero:#e6eedb;--warm:#f1e8da;--shadow:0 12px 35px #263d3207}
[data-theme=paper]{--bg:#f9f5ed;--surface:#fffdf8;--text:#493a2e;--muted:#766350;--line:#e1d5c4;--accent:#775238;--soft:#eee2d1;--hero:#f0e4d3;--warm:#f0e5d8}
[data-theme=dusk]{color-scheme:dark;--bg:#1b2026;--surface:#242b33;--text:#eeeade;--muted:#c0c3bd;--line:#414b52;--accent:#b8d1ac;--accent-text:#18241d;--soft:#303d36;--hero:#303d36;--warm:#443b34;--shadow:none}
[data-theme=ocean]{--bg:#f1f7f8;--surface:#fff;--text:#183e50;--muted:#486978;--line:#c9dce2;--accent:#20627b;--soft:#deedf0;--hero:#dbecef;--warm:#f0e9db}
[data-theme=contrast]{--bg:#fff;--surface:#fff;--text:#111;--muted:#333;--line:#333;--accent:#111;--soft:#eee;--hero:#eee;--warm:#eee;--shadow:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:inherit;text-decoration:none}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--accent);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;line-height:1.12;letter-spacing:-.035em}h1{font-size:clamp(38px,4.4vw,64px)}h2{font-size:38px}h3{font-size:17px;letter-spacing:-.02em}p{color:var(--muted)}.brand{display:flex;align-items:center;gap:9px;font-size:29px;letter-spacing:-1.7px;font-weight:700}.brand-mark{display:inline-grid;place-items:center;background:var(--accent);color:var(--accent-text);width:34px;height:34px;border-radius:11px;font-family:Georgia,serif;font-size:30px;font-weight:400;line-height:1}.brand-dot{color:var(--accent);margin-left:-9px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.9px;line-height:1.6;color:var(--muted)}.pill{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:20px;padding:5px 12px;font-size:10px;font-weight:650;letter-spacing:1px}.primary,.secondary{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:48px;padding:12px 22px;border-radius:12px;border:1px solid var(--accent);background:var(--accent);color:var(--accent-text);font-size:14px;font-weight:650;box-shadow:0 3px 0 color-mix(in srgb,var(--accent) 65%,#000)}.primary:hover{filter:brightness(1.08)}.primary:active{transform:translateY(2px);box-shadow:none}.secondary{background:var(--surface);color:var(--text);box-shadow:none}label{display:block;font-size:12px;font-weight:650;margin:20px 0 7px}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);padding:12px 14px;min-height:46px}textarea{resize:vertical}.theme-select{font-size:12px;min-height:38px;padding:7px 12px}.welcome{display:grid;grid-template-columns:1.05fr 1fr;min-height:100vh}.welcome-story{background:var(--soft);padding:36px 8% 24px;position:relative;overflow:hidden;display:flex;flex-direction:column}.welcome-copy{margin:58px 0 0;position:relative;z-index:1}.welcome-copy h1{font-size:clamp(40px,4.6vw,65px);margin-bottom:20px}.welcome-copy>p:last-child{max-width:390px;font-size:15px}.mascot-stage{position:relative;min-height:260px;flex:1;display:flex;align-items:center;justify-content:center;isolation:isolate}.mascot-halo{position:absolute;width:280px;height:280px;border-radius:50%;background:color-mix(in srgb,var(--surface) 45%,transparent);z-index:-1}.mascot-stage img{height:290px;width:auto;max-width:75%;object-fit:contain;transform:rotate(-6deg);margin:18px 0}.hello-note{position:absolute;top:30%;right:0;transform:rotate(7deg);background:var(--surface);padding:10px 15px;border-radius:14px 14px 14px 0;font-family:Georgia,serif;font-size:18px;box-shadow:var(--shadow)}.gentle-note{font-size:12px;margin:0}.signin{padding:30px 10%;display:flex;flex-direction:column;justify-content:space-between;gap:40px}.theme-control{display:flex;align-items:center;justify-content:flex-end;gap:12px}.theme-control label{margin:0;font-size:11px;font-weight:400}.theme-control select{width:130px}.login-card{max-width:360px;width:100%;margin:auto;align-self:center;padding:20px 0}.login-card h2{font-size:43px;margin:23px 0 14px}.login-card>p{font-size:14px}.login-card .primary{width:100%}.login-card .login-foot{font-size:11px;line-height:1.7;max-width:290px;margin:22px auto 0;text-align:center}.error{color:#a92b32;min-height:20px;margin:10px 0;font-size:12px}.signin-footer{text-align:center;font-size:11px;margin:0}.sidebar{width:225px;position:fixed;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:33px 25px;display:flex;flex-direction:column}.sidebar .brand{font-size:27px}.sidebar nav{margin-top:52px;display:grid;gap:9px}.nav-item{display:flex;align-items:center;gap:16px;background:none;border:1px solid transparent;border-radius:11px;color:var(--muted);padding:13px;font-size:13px;text-align:left}.nav-item span{font-size:23px;line-height:1;width:20px}.nav-item.active{background:var(--soft);color:var(--text);border-color:var(--line);font-weight:650}.nav-item:hover{background:var(--soft)}.sidebar-bottom{margin-top:auto}.sidebar-bottom p{font-family:Georgia,serif;font-style:italic;font-size:15px}.sidebar-bottom label{font-size:10px}.text-button{border:none;background:none;color:var(--muted);padding:14px 0;font-size:12px}.workspace{margin-left:225px;padding:0 5%;max-width:1650px}.topbar{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.topbar>.eyebrow{font-size:9px}.greeting{padding:40px 0 24px}.greeting h1{font-size:43px;margin:10px 0}.greeting>p:last-child{font-size:13px;margin-bottom:0}.today-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:22px}.hero-card{background:var(--hero);border:1px solid var(--line);border-radius:21px;padding:30px;display:flex;align-items:center;position:relative;overflow:hidden;min-height:285px}.hero-card>div{flex:1;z-index:1}.hero-card h2{font-size:35px;margin:20px 0 15px;max-width:300px}.hero-card p{font-size:12px;max-width:265px;line-height:1.7}.hero-card .primary{font-size:12px;padding:11px 15px;gap:20px;min-height:44px;max-width:290px}.hero-card img{object-fit:contain;width:40%;height:auto;max-height:250px;align-self:flex-end;transform:rotate(5deg);margin:0 -14px -15px 0}.pace-card{border:1px solid var(--line);border-radius:21px;padding:25px;background:var(--surface)}.small-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--warm);font-size:24px;margin-bottom:16px}.pace-card h3{margin-bottom:9px}.pace-card p{font-size:12px}.time-options{display:flex;gap:7px;margin:20px 0 14px}.time-options button{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);padding:8px 9px;flex:1;white-space:nowrap;font-size:12px}.time-options button[aria-pressed=true]{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.subtle{color:var(--muted);font-size:11px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:34px 0 17px}.section-heading h2{font-size:25px;margin:0}.section-heading>span{font-size:11px;color:var(--muted)}.activity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.activity{padding:23px;background:var(--surface);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}.activity-icon{display:grid;place-items:center;border-radius:12px;background:var(--warm);width:40px;height:40px;font-size:29px;margin-bottom:16px}.activity:nth-child(2) .activity-icon{background:var(--soft)}.activity h3{font-size:15px;margin-bottom:8px}.activity p{font-size:12px;line-height:1.75}.status-tag{font-size:10px;color:var(--muted)}.workspace-footer{padding:35px 0 22px;font-family:Georgia,serif;font-style:italic;font-size:12px;color:var(--muted);text-align:center}.plan-card{max-width:650px;border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:15px 30px 25px}.plan-card .primary{margin-top:25px}.plan-card .subtle{margin-top:22px}.empty-card{border:1px dashed var(--line);border-radius:20px;text-align:center;padding:60px 25px;background:var(--surface)}.empty-card h2{font-size:30px}.empty-card p{font-size:14px;max-width:450px;margin:0 auto 25px}.empty-card .secondary{margin:auto}.empty-symbol{display:block;font-size:45px;color:var(--muted);margin-bottom:20px}.notice{padding:12px 16px;background:var(--soft);border:1px solid var(--line);border-radius:10px;margin-top:20px;font-size:13px}
@media(min-width:1500px){.workspace{padding:0 6%}.hero-card{min-height:325px}.hero-card img{max-height:285px}}
@media(max-width:1100px){.sidebar{width:190px;padding:25px 18px}.workspace{margin-left:190px;padding:0 4%}.today-grid{grid-template-columns:1fr}.pace-card{display:block}.pace-card .time-options{max-width:300px}.hero-card img{max-height:240px}.activity-grid{gap:12px}.activity{padding:18px}.welcome-story{padding-left:7%;padding-right:7%}.signin{padding-left:8%;padding-right:8%}.hello-note{right:-20px;font-size:15px}}
@media(max-width:700px){.welcome{grid-template-columns:1fr}.welcome-story{padding:24px 7%}.welcome-copy{margin-top:34px}.welcome-copy h1{font-size:43px}.welcome-copy>p:last-child{max-width:320px}.mascot-stage{min-height:185px;position:absolute;right:8px;bottom:15px;width:160px;opacity:.9}.mascot-stage img{height:180px;max-width:100%}.mascot-halo{width:150px;height:150px}.hello-note{display:none}.gentle-note{max-width:160px;margin:30px 0 5px}.welcome-copy{padding-bottom:30px}.signin{padding:22px 7% 28px;gap:20px}.theme-control label{display:none}.login-card{padding-top:0;max-width:none}.login-card h2{font-size:35px;margin-top:20px}.login-card h2 br{display:none}.sidebar{position:relative;width:100%;padding:17px 6%;border-right:none;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:24px}.sidebar nav{margin-top:18px;grid-template-columns:repeat(4,1fr);gap:5px}.nav-item{justify-content:center;gap:6px;padding:8px 3px;font-size:11px;white-space:nowrap}.nav-item span{font-size:17px;width:auto}.sidebar-bottom{display:flex;align-items:center;gap:10px;margin-top:12px}.sidebar-bottom p,.sidebar-bottom label{display:none}.sidebar-bottom select{width:140px}.sidebar-bottom .text-button{margin-left:auto;padding:0}.workspace{margin:0;padding:0 6%}.topbar{min-height:65px}.topbar .eyebrow{max-width:140px;font-size:8px}.greeting{padding-top:30px}.greeting h1{font-size:34px}.today-grid{gap:16px}.hero-card{padding:23px;min-height:260px}.hero-card h2{font-size:30px}.hero-card img{width:33%;margin-right:-10px}.hero-card p{max-width:230px}.hero-card .primary{font-size:11px}.pace-card{padding:22px}.activity-grid{grid-template-columns:1fr}.section-heading>span{display:none}.activity{display:block;padding:22px}.activity-icon{float:left;margin:0 18px 30px 0}.plan-card{padding:10px 20px 20px}.empty-card{padding:40px 20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.connection-consent{max-width:600px;margin:7vh auto;padding:30px;background:var(--surface);border:1px solid var(--line);border-radius:22px}.connection-consent>img{object-fit:contain}.connection-consent h1{font-size:44px}.connection-consent form{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.connection-card h2{font-size:29px;margin:20px 0}.connection-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:20px 0}.lesson-list{display:grid;gap:18px}.lesson-list p{white-space:pre-wrap}.activity details{font-size:13px}.activity summary{cursor:pointer;color:var(--accent);font-weight:600}.activity details p{margin-top:12px;white-space:pre-wrap}.activity h3{overflow-wrap:anywhere}@media(max-width:700px){.sidebar nav{grid-template-columns:repeat(5,1fr)}.nav-item{gap:3px;font-size:10px}.connection-consent{margin:20px;padding:23px}.connection-consent h1{font-size:35px}}
