/* Core — forest, paper, sage. Shared controls retain the existing behavior. */
:root{--bg:#f1eef4;--paper:#fcfbfe;--ink:#31233a;--muted:#766a81;--line:#dfdae4;--green:#3c264b;--sage:#cebae1;--sage-light:#ebe6f0;--orange:#a86993;--sans:'Manrope','Segoe UI',sans-serif}
body{font-size:14px}
.sidebar{width:248px;padding:31px 22px 23px;background:#2e1c39;color:#e5dcee;border-right:0}
.brand{gap:12px;margin-bottom:52px;padding:0 7px}
.brand-symbol{display:block;width:43px;height:43px;flex:0 0 43px;color:#cebae1}
.brand-symbol svg{width:100%;height:100%}
.sidebar .brand>.wordmark{font:42px/.92 var(--serif);letter-spacing:-1.8px;color:#efeaf5}
.wordmark-dot{color:#a481ca}
.brand .wordmark small{font:8px/1.5 var(--sans);letter-spacing:2.1px;margin-top:12px;color:#ada0b7}
.workspace-label{color:#95889f;font-size:9px;padding-left:14px;letter-spacing:1.65px}
.sidebar nav{gap:7px}
.sidebar nav a{min-height:46px;padding:13px 14px;gap:12px;color:#bdb4c5;font-size:12px;border-radius:7px}
.sidebar nav a:hover{background:#3e2b4b;color:#ede6f3}
.sidebar nav a.active{background:#cebae1;color:#392746;font-weight:650}
.sidebar nav svg{width:18px;height:18px}
.nav-count{background:#bca4d1;color:#58426c;font-size:10px}
.de-icon{color:inherit;border-color:currentColor;opacity:.9}
.sidebar-note{padding-top:36px;margin:auto 13px 32px}
.note-index{display:inline-block;color:#9988a8;font-size:8px;letter-spacing:2px;margin-bottom:21px}
.sidebar-note p{font-size:25px;line-height:1.35;letter-spacing:-.55px;color:#e0d7e9;margin-bottom:24px}
.sidebar-note p em{color:#b49fc7}
.note-rule{background:#746480;width:29px;margin-bottom:15px}
.sidebar-note small{color:#a597b0;font-size:9px}
.profile{border-color:#493854;padding-top:21px;color:#e5dced;gap:11px}
.profile .avatar{background:#452e54;color:#c2abd7;width:36px;height:36px;font-size:11px}
.profile strong{font-size:11px;font-weight:550}
.profile small{font-size:9px;color:#ab9eb5}
.profile>span:last-child{color:#a898b6}
.app-shell{margin-left:248px}
.topbar{height:78px;background:#f6f3f9;padding:0 44px}
.breadcrumb{align-items:center;font-size:11px;gap:16px}
.topbar-brand{font:23px var(--serif);letter-spacing:-1px;color:#3e2c4a}
.topbar-brand span{color:#8466a6;margin:0}
.breadcrumb strong{color:#70627c;font-size:10px}
.today-date{color:#7b6e87;font-size:10px}
.private-tag{font-size:9px;gap:6px;color:#786788}
.private-tag i{width:5px;height:5px;border-radius:50%;background:#9c86af}
main{padding:33px 44px 22px;max-width:1510px}
.page-intro{margin-bottom:25px}
.eyebrow{color:#7c6e89;font-size:9px;letter-spacing:1.8px;font-weight:550}
.page-intro h1{font-size:34px;line-height:1.2;letter-spacing:-1.1px;margin-top:11px}
.page-intro h1 em{color:#796789}
.page-intro p{font-size:12px;max-width:640px;line-height:1.8;color:#776b82}
.quiet-pill{font-size:9px;padding:9px 12px;border-color:#dbd3e2;background:#f5f2f8;border-radius:20px;gap:7px}
.hero{min-height:310px;border-radius:13px;border:1px solid #d9cfe2;padding:31px 35px 32px;background:#e5dded;color:#3a2747;display:block}
.hero:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 85% 45%,#f0e9f6 0,transparent 55%);pointer-events:none}
.hero>div:first-child{max-width:470px}
.hero .eyebrow{color:#766388;font-size:8px;letter-spacing:2px}
.hero .eyebrow:before{background:#8970a3}
.hero h2{color:#392448;font-size:52px;letter-spacing:-1.8px;line-height:1.08;margin:22px 0 15px;font-weight:400}
.hero h2 em{color:#705b82;font-weight:400}
.hero p{color:#756781;font-size:12px;line-height:1.9;max-width:355px}
.hero-actions{gap:22px;margin-top:25px}
.hero .btn-cream{background:#3d294b;color:#f4eff9;padding:12px 17px;font-size:11px;border-radius:6px}
.hero .btn-cream:hover{background:#32203e}
.hero .btn-text{color:#796888;font-size:11px}
.hero .btn-text:hover{color:#493459}
.hero-art{width:340px;height:315px;right:7px;top:0;opacity:1;z-index:1}
.hero-art text{fill:#877895;font-size:8px;letter-spacing:1.65px;font-family:var(--sans)}
.hero-art .core-word{font:italic 74px var(--serif);fill:#483258;letter-spacing:-4px}
.stat-row{padding:20px 0 0;border:0;gap:13px}
.stat-row>.stat{padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:9px}
.stat-label{font-size:10px;color:#7b6e87;gap:7px}
.stat-label svg{width:12px;height:12px;color:#90819e}
.stat-value{font-size:28px;font-weight:500;margin-top:11px;color:#41304d;letter-spacing:-1.2px}
.stat-value small{font-size:10px;color:#897d94;letter-spacing:0;margin-left:5px}
.stat-meta{font-size:9px;color:#8a7e95;line-height:1.7;margin-top:7px}
.dashboard-grid{gap:23px;margin-top:28px;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr)}
.section-head{margin-bottom:15px}
.section-title{font-size:15px;font-weight:600;color:#483953}
.small-link{font-size:11px;color:#806b92}
.small-link:hover{color:#4a3758}
.card{border-radius:10px;box-shadow:0 2px 4px #33273c03}
.tasks-card{padding:1px 21px}
.task-row{padding:19px 0;gap:12px;min-height:81px;border-color:#e8e2ed}
.task-check{width:19px;height:19px;border-color:#c6b9d1}
.task-check:hover{border-color:#7f6497;background:#e8e0f0}
.task-row.done .task-check{background:#74588d;border-color:#74588d}
.task-name{font-size:12px;font-weight:550;line-height:1.65;color:#493a55}
.task-meta{font-size:10px;color:#897c95;margin-top:5px}
.tag{font-size:8px;padding:3px 6px;color:#7e6b8f;background:#ece6f1}
.tag.blue{color:#83708e;background:#eeeaf0}
.tag.peach{color:#836a9d;background:#e9e1f2}
.task-row>.icon-button{min-width:24px;opacity:.6}
.task-row>.icon-button:hover{opacity:1}
.task-row .remove-task{opacity:0}
.task-tip{color:#837490;font-size:9px;padding-top:11px}
.focus-card{padding:25px 23px;background:#392447;border:1px solid #392447;color:#e9e0f2;border-radius:10px}
.focus-label{color:#b09dc1;font-size:9px;letter-spacing:1.9px}
.timer-number{color:#ece5f3;font-size:62px;font-weight:450;letter-spacing:-3px;margin-top:21px}
.timer-task{color:#a894ba;font-size:10px;margin-top:11px;margin-bottom:21px}
.timer-buttons .btn-dark{background:#d0bde2;color:#42324e;width:169px;font-size:11px;padding:11px}
.timer-buttons .btn-dark:hover{background:#ddcfeb}
.timer-reset{background:#493457;color:#b8a6c8;height:35px;width:35px}
.timer-tabs{margin-top:18px;gap:6px}
.timer-tabs button{color:#a795b6;font-size:9px;padding:6px 9px}
.timer-tabs button.selected{background:#4b3858;color:#ccbbdc}
.focus-bottom{border-color:#523f5f;padding-top:13px;margin-top:16px;gap:20px}
.focus-bottom button{color:#a894ba;font-size:9px}
.continue-section{margin-top:26px}
.system-feature{background:#e3dceb;border-color:#d7cde2;padding:20px;gap:17px;min-height:145px}
.system-emblem{width:48px;color:#846e9b}
.system-emblem svg{width:44px;height:44px}
.system-feature .eyebrow{color:#89789c;font-size:7px}
.system-feature h3{font-size:24px;color:#5f506f;margin:8px 0}
.system-feature p{font-size:10px;color:#7a6c89}
.feature-tags{color:#7c6b8e;font-size:8px;margin-top:11px}
.feature-end .icon-button{border-color:#cabed6;color:#77638d}
.week-mini{margin-top:26px}
.chart-card{padding:20px 22px 13px}
.chart-heading{font-size:10px}
.mini-bars{height:76px;margin-top:14px}
.bar-track{background:#f0ecf4;height:56px;max-width:22px;border:0;border-radius:3px}
.bar-fill{background:#ae97c3}
.bar-column.today .bar-fill{background:#7b6092}
.bar-day{font-size:9px;color:#887996}
.chart-empty{font-size:9px;margin-top:12px;color:#837392}
.mini-german{padding:20px 23px;border-color:#dfdae4;background:#fbfafd}
.german-stamp{background:#e5dcee;color:#8162a4;width:42px;height:43px;font-size:20px}
.mini-german h3{font-size:13px;color:#554662}
.mini-german p{font-size:11px;color:#80718d}
.bottom-quote{font-size:15px;color:#91829e;margin-top:31px}
footer{padding:22px 44px 25px;font-size:9px;color:#897b96}
footer>span:first-child{display:flex;align-items:center;gap:13px}
footer b{color:#7b6c87;font:italic 18px var(--serif);letter-spacing:-.5px}
footer button{color:#7e6c8e;font-size:9px}
.system-card{padding:25px}
.system-card.is-selected{background:#eae3f1;border-color:#a68fba}
.system-card h2{font-size:26px}
.system-card p{font-size:12px;color:#7d6e8b}
.method-strip{background:#e5dded}
.method-strip strong{font-size:12px}
.method-strip small{color:#827390;font-size:11px}
.method-num{color:#947fa6}
.resource-card{padding:24px}
.resource-card h3{font-size:14px}
.resource-card p{font-size:12px;color:#7e6f8b}
.resource-card small{font-size:10px;color:#8a7b98}
.day-card{padding:20px 12px}
.day-card.current{background:#e9e2f0;border-color:#9177a8}
.day-subject{font-size:12px}
.day-detail,.day-course{font-size:10px;color:#897b96}
.day-name{font-size:10px;color:#8b7c99}
.day-time{font-size:10px;color:#705589}
.plan-note{font-size:12px}
.plan-note strong{font-size:14px}
.german-hero{background:#dfd4ea;padding:32px}
.german-hero h2{font-size:36px;color:#59476c}
.german-hero p{font-size:12px;color:#7a6590}
.routine-step strong{font-size:12px}
.routine-step small{font-size:11px;color:#887897}
.exercise-card h3{font-size:26px}
.rule-card p{font-size:13px;color:#7e6e8c}
.rule-card small{color:#8a7b97;font-size:11px}
.mistake-card h3{font-size:15px}
.mistake-card p{font-size:13px}
dialog{border-radius:14px;padding:27px 30px}
dialog h2{font-size:30px}
dialog p{font-size:12px;color:#847591}
dialog label{font-size:12px}
input,textarea,select{font-size:13px;padding:12px}
.module-row label strong{font-size:12px}
.module-row label span{font-size:11px;color:#8a7b98}
.field-help{font-size:10px}
.btn{font-size:12px;padding:12px 17px}
.empty-state p{font-size:12px}
@media(min-width:1550px){main{padding:41px 58px 25px}.topbar{padding:0 58px}.hero{padding:36px 40px;min-height:335px}.hero h2{font-size:59px}.hero-art{width:380px;height:348px;right:35px;top:-3px}.hero p{font-size:13px}.stat-row>.stat{padding:20px 23px}.stat-label{font-size:11px}.stat-meta{font-size:10px}.task-name{font-size:13px}.task-meta{font-size:11px}.task-row{padding:23px 0}.section-title{font-size:16px}.focus-card{padding:26px}.timer-number{font-size:67px}}
@media(max-width:1180px){.sidebar{width:220px;padding-left:16px;padding-right:16px}.app-shell{margin-left:220px}main{padding:29px 29px 22px}.topbar{padding:0 29px}.brand{gap:9px;padding-left:5px}.brand-symbol{width:38px;height:38px;flex-basis:38px}.sidebar .brand>.wordmark{font-size:38px}.brand .wordmark small{font-size:7px;letter-spacing:1.7px}.hero{padding:28px 29px;min-height:310px}.hero h2{font-size:46px}.hero-art{width:290px;right:-41px;opacity:.75}.hero>div:first-child{max-width:360px}.hero p{max-width:300px;font-size:11px}.hero .btn-text{font-size:10px}.stat-row>.stat{padding:16px 12px}.stat-value{font-size:25px}.stat-value small{font-size:9px}.stat-label{font-size:9px}.stat-meta{font-size:8px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(235px,1fr);gap:18px}.focus-card{padding:22px 15px}.timer-number{font-size:56px}.system-feature{gap:10px;padding:18px 14px}.system-feature h3{font-size:21px}.system-emblem{width:38px}.system-emblem svg{width:36px}.section-title{font-size:14px}}
@media(max-width:980px){.sidebar{width:200px;padding:30px 13px 22px}.app-shell{margin-left:200px}.sidebar .brand>.wordmark{font-size:34px}.brand-symbol{width:33px;height:33px;flex-basis:33px}.brand .wordmark small{font-size:6px}.sidebar nav a{padding:12px 10px;font-size:11px;gap:9px}.sidebar-note{margin-left:10px}.sidebar-note p{font-size:24px}.sidebar-note small{font-size:8px}.page-intro h1{font-size:30px}.hero h2{font-size:45px}.hero-art{right:-89px;opacity:.3}.hero>div:first-child{max-width:none}.dashboard-grid{grid-template-columns:1fr;gap:24px}.focus-wrapper{grid-row:2;grid-column:1}.stat-row{grid-template-columns:repeat(2,1fr)}.stat-row>.stat{padding:17px 19px}.stat-value{font-size:28px}.stat-value small{font-size:11px}.stat-label{font-size:11px}.stat-meta{font-size:10px}.continue-section,.week-mini{margin-top:0}.task-name{font-size:13px}.task-meta{font-size:11px}.focus-card{padding:25px}.timer-number{font-size:62px}.timer-task{font-size:11px}.focus-bottom button,.timer-tabs button{font-size:10px}.private-tag{display:none}}
@media(max-width:700px){.sidebar{width:248px;padding:30px 22px 23px}.app-shell{margin-left:0}.brand{gap:12px;margin-bottom:50px}.sidebar .brand>.wordmark{font-size:42px}.brand-symbol{width:43px;height:43px;flex-basis:43px}.brand .wordmark small{font-size:8px}.sidebar nav a{font-size:12px;padding:13px 14px;gap:12px}.sidebar-note p{font-size:25px}.sidebar-note small{font-size:9px}.topbar{padding:0 21px;height:68px}.topbar-brand{font-size:26px}.breadcrumb{gap:11px}.breadcrumb strong{font-size:9px}.topbar-right{gap:11px}.today-date{font-size:8px}main{padding:27px 21px 20px}.page-intro{margin-bottom:23px}.page-intro h1{font-size:31px;line-height:1.23;margin-top:10px}.page-intro p{font-size:12px}.eyebrow{font-size:8px}.hero{min-height:314px;padding:27px 25px;border-radius:11px}.hero h2{font-size:45px;margin-top:23px;letter-spacing:-1.5px}.hero .eyebrow{font-size:7px;letter-spacing:1.5px}.hero p{max-width:280px;font-size:11px;line-height:1.85}.hero-art{width:235px;right:-137px;top:3px;opacity:.15}.hero-actions{margin-top:27px;gap:17px}.hero .btn-cream{font-size:10px;padding:12px 13px}.hero .btn-text{font-size:10px}.stat-row{gap:11px;padding-top:17px}.stat-row>.stat{padding:16px 15px}.stat-label{font-size:10px}.stat-value{font-size:26px}.stat-value small{font-size:9px;margin-left:4px}.stat-meta{font-size:9px;line-height:1.6}.dashboard-grid{margin-top:28px}.section-title{font-size:14px}.section-head{gap:7px}.small-link{font-size:10px}.tasks-card{padding:1px 15px}.task-row{gap:9px;padding:19px 0}.task-name{font-size:12px}.task-meta{font-size:10px}.task-row>.icon-button{min-width:21px;width:21px}.task-row .remove-task{opacity:.5}.task-tip{font-size:9px}.focus-label{font-size:9px}.focus-card{padding:26px 23px 23px}.timer-number{font-size:64px}.timer-task{font-size:10px}.system-feature{padding:21px 16px;gap:13px}.system-feature h3{font-size:23px}.system-feature p{font-size:10px}.system-feature .eyebrow{font-size:7px}.system-emblem{width:36px}.feature-tags{font-size:7px;gap:4px}.feature-tags span+span:before{margin-right:4px}.mini-german{padding:20px 16px}.mini-german h3{font-size:12px}.mini-german p{font-size:10px}.mini-german>a{flex-shrink:0}.german-stamp{width:35px;height:38px;font-size:17px}.bottom-quote{font-size:13px}footer{padding:20px 21px 26px;line-height:1.8}footer b{font-size:18px}.system-card{padding:24px}.system-card h2{font-size:26px}.day-card{padding:19px}.day-detail,.day-course,.day-time{font-size:11px}.german-hero{padding:26px}.german-hero h2{font-size:30px}.german-hero p{font-size:12px}.exercise-card h3{font-size:24px}.exercise-nav{align-items:flex-start;gap:12px}.exercise-nav>.small-link{max-width:120px;text-align:left;line-height:1.7}dialog{padding:23px}}
@media(max-width:370px){main{padding-left:16px;padding-right:16px}.hero{padding-left:21px;padding-right:21px}.hero h2{font-size:42px}.hero-actions{gap:12px}.stat-value small{font-size:8px}}

.hero>div:first-child{z-index:2}.hero-art{pointer-events:none}.hero .btn-cream{min-height:42px}.task-row>.icon-button:focus-visible{opacity:1}.task-row:focus-within .remove-task{opacity:1}

/* Keep the profile inside the viewport as the navigation grows. */
.sidebar{height:100vh;height:100dvh;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto}
.sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#887994 transparent;padding-bottom:8px}
.sidebar nav a{flex-shrink:0}
.sidebar-note{grid-row:4;margin-top:0}
.profile{grid-row:5;align-self:end;min-width:0;min-height:58px;background:#2e1c39}
.profile .avatar{flex-shrink:0}
.profile>span:nth-child(2){min-width:0;flex:1}
.profile strong,.profile small{overflow-wrap:anywhere}
@media(max-height:820px){.sidebar-note{display:none}.sidebar .brand{margin-bottom:24px}.sidebar .workspace-label{margin-bottom:12px}}
@media(max-height:540px){.sidebar{padding-top:18px;padding-bottom:16px}.sidebar .brand{margin-bottom:18px}.profile{padding-top:14px;min-height:51px}}
