:root{color-scheme:light;--bg:#f7f8f1;--paper:#fff;--ink:#182e24;--dim:#59675f;--line:#e3e9df;--green:#215e40;--lime:#dcf191;--shadow:0 3px 0 #ecf0e8;--radius:24px;font-family:Inter,"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.55}button,a{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}a{text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #6462b4;outline-offset:4px}.skip{position:fixed;left:16px;top:-100px;background:white;padding:10px;z-index:3}.skip:focus{top:12px}
.layout{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}.sidebar{background:white;border-right:1px solid var(--line);position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:29px 18px 22px;z-index:1}.brand{display:flex;align-items:center;gap:11px;padding:0 7px;font-size:23px;line-height:1.12;font-weight:900;letter-spacing:-.09em;width:max-content}.brand small{display:block;margin-top:6px;font-size:10px;color:#3e6654;letter-spacing:.17em;font-weight:800}.brand-icon{display:grid;place-items:center;position:relative;width:41px;height:41px;background:#245940;border-radius:13px;color:#e5f593}.brand-icon i{width:3px;height:19px;background:currentColor;border-radius:3px;position:absolute;top:13px}.brand-icon:before,.brand-icon:after{content:"";position:absolute;top:11px;background:currentColor;width:12px;height:8px}.brand-icon:before{left:9px;border-radius:8px 2px 8px 2px;transform:rotate(35deg)}.brand-icon:after{right:8px;top:9px;border-radius:2px 8px 2px 8px;transform:rotate(-43deg)}nav{display:grid;gap:7px;margin-top:47px}.nav-link{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid transparent;background:none;border-radius:13px;min-height:50px;padding:10px 12px;font-size:.91rem;font-weight:750;color:var(--dim)}.nav-link:hover{background:#f6f8f2}.nav-link.active{background:#e8f3dd;border-color:#d8e8cf;color:#245a3e;font-weight:850}.ico{width:21px;height:21px;flex:none;display:inline-block;vertical-align:middle}.sidebar-end{margin-top:auto;display:flex;align-items:center;gap:11px;border:1px solid #e6ecdf;background:#f6f8f0;border-radius:17px;padding:13px;font-size:.83rem;color:#496052;font-weight:800;line-height:1.35}.today-mark{display:grid;place-items:center;width:36px;height:36px;background:#e8efda;color:#397954;border-radius:12px;font-size:23px}
.shell{width:100%;max-width:1430px;padding:0 clamp(22px,3.2vw,54px);margin:0 auto}.top{min-height:82px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:26px}.breadcrumb{font-size:1rem;font-weight:850}.top-stats{display:flex;gap:8px}.pill{display:flex;align-items:center;gap:7px;background:white;border:1px solid var(--line);border-radius:100px;padding:5px 11px;font-size:.82rem;font-weight:850;white-space:nowrap}.pill .ico{width:16px;height:16px}.flame{color:#b84c18}.bolt{color:#6950a5}.top-stats .flame,.top-stats .bolt{background:white}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(248px,300px);gap:24px;align-items:start}.main-column,.right-column{min-width:0}.right-column{display:grid;gap:18px}.hero{background:#ddf199;border:1px solid #d4e688;isolation:isolate;position:relative;overflow:hidden;min-height:292px;border-radius:27px;padding:31px 29px;display:flex;align-items:center}.hero:before,.hero:after{content:"";position:absolute;z-index:-1;border:1px solid #c5dc7b;border-radius:50%;width:325px;height:325px;right:-40px;top:-28px}.hero:after{width:276px;height:276px;right:-16px;top:-4px}.hero-art{position:absolute;right:-3%;width:52%;height:99%;bottom:-8%;object-fit:contain;pointer-events:none;z-index:-1}.hero-copy{max-width:68%;position:relative}.hero-tag{display:inline-flex;align-items:center;gap:6px;background:#edf7c4;border:1px solid #cddd95;padding:4px 10px;border-radius:100px;font-size:.76rem;font-weight:850;color:#375a3c;margin-bottom:12px}.hero-tag .ico{width:15px;height:15px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.25;letter-spacing:-.06em}.hero h1{font-size:clamp(2rem,3.2vw,3.45rem);font-weight:950;line-height:1.12;letter-spacing:-.085em}.hero h1 em{font-style:normal;color:#2c6845}.hero p{font-size:.91rem;color:#39533b;margin:11px 0 21px;font-weight:650}.primary,.secondary,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border-radius:12px;padding:8px 14px;font-size:.9rem;font-weight:850}.primary{background:#245a3e;border:1px solid #245a3e;color:white;box-shadow:0 3px 0 #16402b}.primary:hover{background:#194a33}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #16402b}.primary:disabled{background:#dce6dc;border-color:#dce6dc;color:#59675f;box-shadow:none}.secondary{border:1px solid #d7e3d6;background:#f6f9f3;color:#28543c}.secondary:hover{background:#eaf3e6}.quiet{background:none;border:1px solid transparent;color:#41604d}.quiet:hover{background:#eef3eb}.primary .ico,.secondary .ico,.quiet .ico{width:17px;height:17px}
.section{margin-top:29px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:13px}.section-head h2,.section h2{font-size:1.37rem;font-weight:900}.section-head p,.section p,.muted{color:var(--dim);font-size:.9rem;margin-top:4px}.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.course-card{background:white;border:1px solid var(--line);border-radius:17px;min-height:112px;padding:12px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;position:relative;box-shadow:var(--shadow)}.course-card:hover{border-color:#82a68e}.course-card.active{border:2px solid #559172;padding:11px;background:#fcfefb;box-shadow:0 3px 0 #dcead9}.course-card strong{font-size:.96rem}.course-card small{color:var(--dim);font-size:.73rem;font-weight:730}.course-card .selected{position:absolute;top:12px;right:11px;color:#2d6849}.course-card .selected .ico{width:17px;height:17px}.badge{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:none}.mint{background:#dcf0e1;color:#21674d}.lavender{background:#eee8ff;color:#624ca4}.peach{background:#fce7d8;color:#9e4a28}.gold{background:#fff0ca;color:#855109}.badge .ico{width:20px;height:20px}.tag{display:inline-flex;align-items:center;padding:2px 7px;border-radius:6px;background:#edf4e9;color:#396048;font-size:.72rem;font-weight:850;white-space:nowrap}
.panel,.unit-row{background:white;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.panel{padding:17px}.panel-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.panel-heading h2{font-size:1.04rem;font-weight:900}.panel-heading p{font-size:.78rem;color:var(--dim);margin-top:2px}.goal-count{display:flex;align-items:center;justify-content:space-between;font-weight:850;font-size:.91rem}.meter{height:9px;border-radius:100px;background:#ebefe8;overflow:hidden;margin:9px 0}.meter i{display:block;height:100%;background:#61996a;border-radius:inherit}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-top:12px}.day{text-align:center;font-size:.72rem;font-weight:750;color:#69776e}.day i{height:23px;width:23px;margin:4px auto 0;display:grid;place-items:center;background:#f1f4ee;border-radius:8px;font-style:normal;color:#67776c}.day.is-today i{outline:1px solid #7b9b83}.day.done i{background:#ddefcb;color:#245a3e}.review-panel{background:#f8f4ff;border-color:#ece4fa;box-shadow:0 3px 0 #eee9f5}.review-panel .secondary{margin-top:13px;width:100%;background:white;border-color:#e7dcf7;color:#56388c}.review-panel .secondary:hover{background:#f4edff}.review-panel p,.panel>.muted{font-size:.83rem}.mini-score{display:flex;justify-content:space-between;align-items:center;font-size:.84rem;color:var(--dim);padding:7px 0;border-bottom:1px solid #edf0eb}.mini-score:last-child{border:0;padding-bottom:0}.mini-score strong{color:var(--ink)}
.unit-list{display:grid;gap:9px}.unit-row{display:flex;align-items:center;gap:12px;padding:12px}.unit-copy{flex:1;min-width:0}.unit-copy h3{font-size:1rem;font-weight:900}.unit-copy p{font-size:.79rem;margin-top:3px}.unit-row .secondary,.unit-row .quiet{min-height:37px;padding:6px 11px;white-space:nowrap;font-size:.8rem}.unit-row .quiet{padding:5px}.unit-action{display:flex;gap:3px;align-items:center}.icon-button{width:40px;height:40px;padding:0;display:grid;place-items:center;background:white;border:1px solid var(--line);border-radius:12px}.icon-button:hover{background:#eef3eb}.wide-page{max-width:850px}.wide-page>h1{font-size:clamp(1.8rem,4vw,2.8rem);margin-bottom:7px}.wide-page>.panel{margin-top:18px}.wide-page p{margin-top:6px}.wide-page .unit-list{margin-top:13px}.wide-page .course-grid{margin-top:16px}.control-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:16px 0}.empty{padding:22px}.empty .badge{margin-bottom:12px}.empty h2{font-size:1.16rem}.empty .primary{margin-top:14px}footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:31px 0 0;padding:17px 0 22px;border-top:1px solid var(--line);font-size:.77rem;color:var(--dim)}
dialog{padding:0;border:1px solid #dce5d9;border-radius:25px;background:#fafbf7;color:var(--ink);width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 22px);overflow:auto;box-shadow:0 18px 85px #112b1b44}dialog::backdrop{background:#13291ed0}.quiz-top{display:flex;align-items:center;gap:13px;padding:16px 22px;border-bottom:1px solid var(--line);background:white}.quiz-top .meter{flex:1}.quiz-top span{font-size:.84rem;font-weight:780}.quiz-body{padding:21px 23px 23px}.quiz-body h2{font-size:clamp(1.2rem,4vw,1.64rem);margin:10px 0 15px}.passage{background:#edf3e9;border:1px solid #dfe9db;border-radius:13px;padding:12px 14px;margin:0 0 12px;font-weight:650}.choices{display:grid;gap:7px}.choice{display:flex;align-items:center;gap:10px;text-align:left;padding:7px 11px;min-height:45px;background:white;border:1px solid #dce5d9;border-radius:12px;box-shadow:0 2px #e8eee6;font-size:.93rem;font-weight:730}.choice span{color:#557062;background:#f1f5ef;border-radius:7px;min-width:26px;height:27px;display:grid;place-items:center;font-size:.8rem}.choice:not(:disabled):hover,.choice.selected{border-color:#5b9470;background:#f0f8e8}.choice.correct{border-color:#548e69;background:#e4f3db}.choice.wrong{border-color:#c57057;background:#fcebe4}.feedback{border-radius:12px;padding:8px 11px;margin-top:11px;font-size:.85rem}.feedback.good{background:#e4f3db;color:#25573b}.feedback.bad{background:#fcebe4;color:#813c29}.feedback p{margin:2px 0 0}.quiz-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:13px}.quiz-actions .primary{margin-left:auto}.result{text-align:center;padding:33px 23px}.result .badge{margin:0 auto 13px;width:62px;height:62px;border-radius:20px}.result .badge .ico{width:34px;height:34px}.result p{margin:8px 0}.result .quiz-actions{justify-content:center}.result .quiz-actions .primary{margin-left:0}
@media(max-width:1100px){.layout{grid-template-columns:181px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.dashboard{grid-template-columns:minmax(0,1fr) 235px;gap:17px}.hero{padding:25px 23px}.hero-art{right:-6%;width:57%}}
@media(max-width:900px){.dashboard{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr}.right-column .score-panel{grid-column:1/-1}.hero-art{right:0;width:47%}.shell{padding:0 22px}.top{min-height:67px}}
@media(max-width:640px){.layout{display:block}.shell{padding:0 14px 64px}.sidebar{position:fixed;top:auto;bottom:0;width:100%;height:auto;padding:3px 5px max(4px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line)}.sidebar .brand,.sidebar-end{display:none}nav{display:flex;justify-content:space-around;margin:0;gap:3px}.nav-link{flex:1;min-width:0;justify-content:center;flex-direction:column;gap:2px;padding:4px 2px;min-height:50px;border-radius:10px;font-size:.68rem;white-space:nowrap}.nav-link .ico{height:18px;width:18px}.top{min-height:57px;margin-bottom:13px}.breadcrumb{font-size:.9rem}.pill{padding:4px 7px;font-size:.73rem;gap:4px}.hero{min-height:230px;padding:19px 14px;border-radius:20px}.hero:before{right:-123px}.hero:after{right:-99px}.hero-copy{max-width:71%}.hero h1{font-size:clamp(1.72rem,8vw,2.18rem)}.hero p{font-size:.78rem;margin:9px 0 13px}.hero-art{right:-11%;width:65%;height:84%;bottom:-3%}.hero-tag{margin-bottom:8px;font-size:.68rem}.course-grid{gap:6px}.course-card{padding:8px;min-height:98px;gap:5px;border-radius:13px}.course-card.active{padding:7px}.course-card strong{font-size:.87rem}.course-card .selected{top:8px;right:6px}.course-card .selected .ico{width:14px}.section{margin-top:23px}.section-head h2,.section h2{font-size:1.18rem}.section-head p{font-size:.78rem}.unit-row{gap:7px;padding:8px;border-radius:14px;flex-wrap:wrap}.unit-row .secondary{min-height:34px;padding:5px 7px}.unit-copy h3{font-size:.92rem}.unit-copy p{font-size:.72rem}.unit-row .badge{width:31px;height:31px}.right-column{grid-template-columns:1fr;gap:11px}.right-column .score-panel{grid-column:auto}.quiz-top{padding:9px 13px}.quiz-body{padding:15px 13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}

.mobile-brand{display:none}
body:has(#quiz[open]){overflow:hidden}
dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.quiz-top{flex:none}
.quiz-top .meter{height:11px}
.quiz-top .meter i{background:#649c62;transition:width .22s ease}
.quiz-count{background:#edf3e9;color:#355d47;border-radius:100px;padding:4px 9px;white-space:nowrap}
.quiz-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.quiz-topic{display:flex;gap:9px;align-items:center;color:#4e6256;font-size:.86rem;font-weight:850}
.quiz-topic .badge{width:31px;height:31px;border-radius:9px}
.quiz-topic .ico{width:17px;height:17px}
.quiz-footer{flex:none;background:white;border-top:1px solid var(--line);padding:12px 23px 16px}
.quiz-footer.good{background:#e9f5e1;border-top-color:#d6e8cf}
.quiz-footer.bad{background:#fff0e9;border-top-color:#f1ded3}
.quiz-footer .feedback{margin:0;padding:1px 0 9px;display:flex;gap:9px;align-items:flex-start;background:none;max-height:24dvh;overflow:auto}
.quiz-footer .feedback .badge{width:30px;height:30px;border-radius:9px}
.quiz-footer .feedback .ico{width:18px;height:18px}
.quiz-footer .quiz-actions{margin-top:0}
.quiz-footer.bad .primary{background:#943f2c;border-color:#943f2c;box-shadow:0 3px 0 #71301f}
.quiz-footer.bad .primary:hover{background:#7e3323}
.choice.selected:not(.correct):not(.wrong) span{background:#d7ebc9;color:#245a3e}
.choice.correct span{background:#cde8c2;color:#245a3e}
.choice.wrong span{background:#f6d2c4;color:#813c29}
.result{overflow:auto}
@media(max-width:640px){
  .top{padding-top:env(safe-area-inset-top)}
  .mobile-brand{display:flex;align-items:center;gap:6px;font-size:.92rem;font-weight:900;letter-spacing:-.06em;white-space:nowrap}
  .mobile-brand .brand-icon{width:28px;height:28px;border-radius:8px}
  .mobile-brand .brand-icon i{height:12px;width:2px;top:9px}
  .mobile-brand .brand-icon:before,.mobile-brand .brand-icon:after{width:8px;height:5px;left:6px;top:8px}
  .mobile-brand .brand-icon:after{left:14px;top:6px}
  .top .breadcrumb{display:none}
  .hero{box-shadow:0 4px 0 #e8edda}
  dialog[open]{width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;background:#fafbf6}
  .quiz-top{padding:calc(11px + env(safe-area-inset-top)) 17px 11px;gap:11px}
  .quiz-top .meter{height:13px}
  .quiz-top .icon-button{width:44px;height:44px}
  .quiz-count{padding:5px 9px}
  .quiz-body{width:100%;padding:20px 18px 24px}
  .quiz-topic{font-size:.83rem}
  .quiz-body h2{font-size:clamp(1.34rem,5.7vw,1.72rem);margin:13px 0 17px;line-height:1.35}
  .quiz-body .passage{font-size:.99rem;padding:13px 14px;margin-bottom:16px}
  .choices{gap:10px}
  .choice{width:100%;min-height:55px;padding:9px 12px;border-radius:15px;border-width:1px;box-shadow:0 3px 0 #e5ece2;font-size:.98rem;overflow-wrap:anywhere}
  .choice span{min-width:31px;height:32px;font-size:.86rem}
  .choice:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #dce7d8}
  .quiz-footer{padding:12px 17px calc(14px + env(safe-area-inset-bottom))}
  .quiz-footer .primary{width:100%;min-height:51px;border-radius:15px;font-size:1rem}
  .quiz-footer .feedback{font-size:.88rem}
  .result{margin:auto 0;max-height:100%;padding:calc(26px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom))}
  .result .badge{width:73px;height:73px;border-radius:23px}
  .result h2{font-size:1.77rem}
  .result .quiz-actions{display:grid;gap:10px;margin-top:20px}
  .result .quiz-actions button{min-height:47px}
}

.hero-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hero-diagnosis,.group-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border-radius:12px;font-weight:850;font-size:.86rem}
.hero-diagnosis{padding:7px 11px;border:1px solid #abc36d;background:#ebf7bd;color:#2e5a3d}
.hero-diagnosis:hover{background:#f2fad6}
.hero-diagnosis .ico,.group-button .ico{height:17px;width:17px}
.course-groups{display:flex;gap:5px;width:max-content;padding:4px;background:#e9eee4;border:1px solid var(--line);border-radius:14px;margin:12px 0 10px}
.group-button{background:transparent;border:1px solid transparent;padding:4px 13px;min-height:34px;color:#536557}
.group-button:hover{background:#f3f7ed}
.group-button[aria-pressed="true"]{background:white;border-color:#dce7d9;color:#255a3e;box-shadow:0 2px 0 #dae5d7}
.course-grid [data-course="history"] strong{font-size:.88rem}
.diagnosis-entry{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:11px}
.diagnosis-entry .panel-heading{margin-bottom:0}
.diagnosis-score{display:flex;align-items:center;gap:13px;background:#edf5e4;border:1px solid #dfead5;border-radius:17px;padding:12px 14px}
.diagnosis-score>strong{display:flex;align-items:center;justify-content:center;gap:2px;min-width:64px;height:59px;background:#245c40;color:white;border-radius:13px;font-size:1.55rem;font-weight:900}
.diagnosis-score small{font-size:.85rem}
.diagnosis-score h3{font-size:1.05rem}
.diagnosis-score p{font-size:.83rem}
.diagnosis-areas{display:grid;gap:9px;margin:13px 0}
.diagnosis-area{border-bottom:1px solid var(--line);padding:2px 0 6px}
.diagnosis-area .meter{margin-bottom:1px}
.diagnosis-note{font-size:.82rem}
.diagnosis-result .section-head{margin-bottom:9px}
.diagnosis-result .section-head h2{margin-top:1px}
@media(max-width:640px){
  .hero{min-height:254px}
  .hero-copy{max-width:68%}
  .hero-actions{flex-direction:column;align-items:flex-start;gap:7px}
  .hero-actions .primary{min-height:40px}
  .hero-diagnosis{min-height:34px;font-size:.8rem;padding:4px 10px}
  .wide-page .course-grid{margin-top:0}
  .group-button{min-height:38px}
  .course-grid [data-course="history"] strong{font-size:.81rem;overflow-wrap:anywhere}
  .diagnosis-entry>.primary,.diagnosis-result .quiz-actions>.primary{width:100%;min-height:48px}
}

.home-picker{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 12px}
.home-picker .course-groups{margin:0}
.unit-hero{min-height:236px}
.unit-hero h1{font-size:clamp(1.82rem,3.15vw,3rem);line-height:1.17}
.unit-hero .hero-copy{max-width:64%}
.unit-hero .hero-art{right:-2%;width:48%;bottom:-8%}
.sound-toggle{color:#416353}
.xp-pop{display:inline-block;background:#ffedaa;color:#775003;border-radius:100px;font-weight:900;padding:2px 7px;margin-left:7px;white-space:nowrap;animation:feedback-pop .35s both}
@keyframes feedback-pop{0%{transform:scale(.65)}55%{transform:scale(1.13)}100%{transform:scale(1)}}
@media(max-width:640px){
  .home-picker{margin-bottom:10px}
  .unit-hero{min-height:185px}
  .unit-hero .hero-copy{max-width:67%}
  .unit-hero .hero-art{right:-7%;width:58%;height:96%;bottom:-6%}
  .unit-hero h1{font-size:clamp(1.48rem,6.4vw,1.9rem)}
  .unit-hero .hero-actions{flex-direction:row;gap:6px}
  .unit-hero .hero-actions .primary,.unit-hero .hero-actions .hero-diagnosis{min-height:36px;padding:4px 8px;font-size:.76rem}
  .unit-hero .hero-actions .ico{width:14px;height:14px}
}

.commute-card{margin-top:15px;border:1px solid #dce8d5;border-radius:21px;background:#fffefa;padding:15px;box-shadow:0 3px 0 #e9eee4}
.commute-heading{display:flex;align-items:start;justify-content:space-between;gap:8px;margin-bottom:12px}
.commute-heading h2{margin:0;font-size:1.13rem;color:#203e2c}
.commute-heading p{margin:4px 0 0;font-size:.82rem;color:#586c5d}
.routine-count{background:#e9f2e1;color:#305a3e;font-size:.74rem;font-weight:850;padding:5px 8px;border-radius:100px;white-space:nowrap}
.routine-grid,.routine-extra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.routine-button{display:flex;align-items:center;gap:8px;text-align:left;color:#483b24;background:#fff6dc;border:1px solid #edddad;border-radius:13px;min-height:58px;padding:8px;font:inherit;cursor:pointer}
.routine-button:nth-child(2){background:#f1ebff;border-color:#e2d9f8;color:#483675}
.routine-button.routine-done{background:#eaf4e3;border-color:#d8e8d0;color:#285d3c}
.routine-button:hover{filter:brightness(.98)}
.routine-button .badge{width:33px;height:33px;border-radius:10px;flex:none}
.routine-button strong,.routine-button small{display:block}
.routine-button strong{font-size:.91rem;line-height:1.25}
.routine-button small{font-size:.72rem;line-height:1.25;margin-top:4px;color:inherit}
.routine-extra{margin-top:9px}
.routine-arcade,.routine-check{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #e2e8dd;background:#f5f7f1;color:#365642;border-radius:10px;min-height:38px;font-size:.79rem;font-weight:850;padding:5px}
.routine-arcade{background:#e5dbff;color:#3e266f;border-color:#d5c3fb}
.routine-arcade .ico,.routine-check .ico,.coverage-actions .ico{width:16px;height:16px}
.coverage-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:10px}
.coverage-actions .quiet,.coverage-actions .secondary{font-size:.75rem;padding:7px 8px}
.combo-strip{padding:9px 11px;margin:0 0 12px;background:#ebdfff;border:1px solid #decdfc;border-radius:12px;color:#4f3183}
.combo-strip>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.83rem}
.combo-strip .ico{width:15px;height:15px}
.combo-strip span{font-size:.74rem;font-weight:800}
.combo-pips{display:flex;gap:5px;margin-top:8px}
.combo-pips i{flex:1;height:6px;background:#d9c9f3;border-radius:50px}
.combo-pips .lit{background:#8557d5}
.quiz-footer.good{background:#dff2cc;border-top-color:#c3dfb0}
.quiz-footer.bad{background:#feeadf;border-top-color:#f4cebc}
.quiz-footer .feedback{gap:11px;max-height:34dvh;padding:4px 0 11px;overflow:auto}
.feedback>div{min-width:0;overflow-wrap:anywhere}
.feedback strong{font-size:1.06rem}
.answer-token{display:grid;place-items:center;position:relative;flex:none;width:47px;height:47px;background:#fff0a4;border:1px solid #e6c86b;border-radius:16px;color:#684e11;box-shadow:0 3px 0 #e4c973}
.answer-token .ico{width:26px;height:26px;animation:feedback-pop .36s both}
.feedback.bad .answer-token{color:#8c4529;background:#ffdbc6;border-color:#edb99c;box-shadow:0 3px 0 #edc5ad}
.answer-correction{font-weight:900;color:#783c26}
.feedback .answer-explanation{margin-top:4px}
.review-tag{display:inline-flex;align-items:center;gap:4px;margin-top:7px;padding:4px 8px;background:#ffe0cd;border-radius:30px;font-size:.73rem;font-weight:850}
.review-tag .ico{width:14px;height:14px}
.celebration-result{margin:0;min-height:0;padding:15px 20px 26px;background:linear-gradient(180deg,#f6f2ff 0%,#fcfaf2 62%,#fffefa 100%)}
.celebration-result.flawless{background:linear-gradient(180deg,#ebf8dd 0%,#fbfae8 63%,#fffefa 100%)}
.result-scene{position:relative;isolation:isolate;display:grid;place-items:center;width:min(100%,355px);height:clamp(130px,31dvh,232px);margin:0 auto 7px;border-radius:26px;background:radial-gradient(ellipse,#f6eec8 5%,#eee3ff 66%,#ede3fb 100%)}
.flawless .result-scene{background:radial-gradient(ellipse,#fff0a5 5%,#dfedba 68%,#e5f1cc 100%)}
.result-scene img{position:relative;width:100%;height:100%;max-height:232px;object-fit:contain;filter:drop-shadow(0 9px 8px #66441425);animation:reward-arrival .55s both}
.result-course{display:inline-block;margin:5px 0;color:#5f4a80;font-size:.77rem;font-weight:850;background:#ece5f6;border-radius:99px;padding:4px 9px}
.celebration-result h2{color:#263c2a;font-size:clamp(1.65rem,6vw,2rem)}
.celebration-result p{font-size:.84rem;color:#526459}
.result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:350px;margin:13px auto}
.result-stats>div{display:grid;justify-items:center;gap:3px;background:#fff;border:1px solid #e1deec;border-radius:12px;padding:8px 4px;color:#4e3b73}
.result-stats .ico{width:18px;height:18px}
.result-stats span{font-size:.7rem;font-weight:800}
.result-stats strong{font-size:1.18rem;line-height:1.2;color:#253e2c}
.celebration-result .quiz-actions{max-width:350px;margin:12px auto 0}
@keyframes reward-arrival{0%{transform:translateY(13px) scale(.72);opacity:.45}65%{transform:translateY(-4px) scale(1.06)}100%{transform:translateY(0) scale(1);opacity:1}}
@media(max-width:640px){
  .commute-card{padding:12px 10px;margin-top:12px}
  .routine-grid,.routine-extra{gap:6px}
  .routine-button{padding:7px 5px;gap:5px}
  .routine-button .badge{width:27px;height:27px}
  .routine-button .badge .ico{width:15px;height:15px}
  .routine-button strong{font-size:.86rem}
  .routine-button small{font-size:.68rem}
  .quiz-footer .feedback{max-height:36dvh}
  .celebration-result{display:flex;flex:1;flex-direction:column;align-items:center;padding:calc(14px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom))}
  .celebration-result .result-stats{width:100%}
  .celebration-result .quiz-actions{display:grid;width:100%;margin: auto auto 0;padding-top:12px}
  .celebration-result .quiz-actions .primary,.celebration-result .quiz-actions .secondary{width:100%}
}

body:has(#coursePicker[open]){overflow:hidden}
.course-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:43px;max-width:55%;border:1px solid #dbe5d8;border-radius:13px;background:white;padding:8px 10px;color:#214934;font:inherit;font-size:.85rem;font-weight:850;text-align:left}
.course-picker-trigger:hover{border-color:#aacfaa;background:#f8fcf5}
.course-picker-trigger .ico{width:17px;height:17px}
#coursePicker[open]{width:min(470px,calc(100% - 24px));max-height:86dvh;padding:12px 19px 20px;background:#f9faf4;border:1px solid #dfe8d9}
#coursePicker header{display:flex;align-items:center;justify-content:space-between;gap:11px;padding:3px 0 13px}
#coursePicker header h2{font-size:1.24rem;color:#254332}
.picker-handle{width:34px;height:4px;background:#cfdcc7;margin:0 auto 9px;border-radius:12px}
.picker-options{display:grid;gap:8px;overflow:auto;overscroll-behavior:contain;padding:3px}
.picker-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:61px;border:1px solid #e1e9dd;background:white;border-radius:14px;padding:8px 10px;color:#243d2e;text-align:left;font:inherit}
.picker-option[aria-pressed="true"]{background:#e9f5de;border-color:#a8c89b}
.picker-option:hover{border-color:#a8c89b}
.picker-option strong,.picker-option small{display:block}
.picker-option strong{font-size:.97rem}
.picker-option small{color:#4b6153;font-size:.76rem;line-height:1.35}
.picker-check{width:24px;height:24px;display:grid;place-items:center;color:#fff;background:#35694a;border-radius:50%}
.picker-check .ico{width:15px;height:15px}
.review-filters{display:flex;flex-wrap:wrap;gap:6px}
.filter-pill{border:1px solid #dce7d9;background:white;color:#355346;border-radius:30px;min-height:36px;padding:4px 10px;font-size:.8rem;font-weight:800}
.filter-pill[aria-pressed="true"]{background:#dff0d3;border-color:#b8d4ab;color:#244e33}
.mock-intro>.primary{margin-top:13px}
.exam-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.exam-size{display:grid;justify-items:center;gap:2px;background:#f6f5f9;border:1px solid #e5deef;border-radius:13px;min-height:57px;color:#514575;padding:6px;font-size:.92rem}
.exam-size span{font-size:.75rem}
.exam-size[aria-pressed="true"]{border-color:#aa8ddd;background:#ebdfff;color:#3d246e}
.exam-clock{display:flex;align-items:center;gap:5px;margin-left:auto;background:#eae2f8;color:#4a3673;border-radius:100px;padding:5px 10px;font-size:1.02rem;font-weight:900;font-variant-numeric:tabular-nums}
.exam-clock .ico{width:17px;height:17px}
.exam-clock .urgent{color:#a33924}
.exam-answer-count{font-weight:800;font-size:.79rem;color:#526a59;margin-bottom:6px}
.exam-numbers{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;margin-bottom:9px}
.exam-number{display:grid;place-items:center;min-width:0;min-height:29px;padding:2px;border:1px solid #e0e9dd;border-radius:7px;background:#f7faf4;color:#4e6557;font-size:.75rem;font-weight:850}
.exam-number.answered{background:#e5efdc;border-color:#c8dabf;color:#265439}
.exam-number[aria-current="step"]{background:#366c4e;color:#fff;border-color:#366c4e}
.exam-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.exam-actions button:disabled{opacity:.55}
.exam-confirm{border:1px solid #e7d5ad;border-radius:10px;background:#fff5df;padding:8px;color:#5a492c;font-size:.82rem}
.exam-confirm>div{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-top:5px}
.exam-result-head{display:flex;align-items:center;gap:10px;margin-bottom:13px}
.exam-result-head h2{margin:0 0 3px}
.exam-result-head p{color:#4d6355;font-size:.83rem}
.exam-score p{font-size:.81rem;margin-top:4px}
.exam-solutions{margin-top:10px;border:1px solid #dce5d9;border-radius:12px;background:white;padding:8px 10px}
.exam-solutions summary{cursor:pointer;font-size:.88rem;font-weight:850;color:#28573b}
.exam-solutions ol{list-style:none;padding:0;margin:11px 0 0;display:grid;gap:8px}
.exam-solutions li{border-top:1px solid #e4ece0;padding:6px 0;font-size:.8rem}
.exam-results .quiz-actions{justify-content:flex-start}
@media(max-width:640px){
  .home-picker .group-button{padding:4px 6px;gap:3px;font-size:.75rem}
  .home-picker .group-button .ico{width:14px;height:14px}
  .home-picker{align-items:stretch}
  .course-picker-trigger{max-width:47%;padding:7px 7px;font-size:.77rem}
  #coursePicker[open]{inset:auto 0 0;width:100%;max-width:none;height:auto;max-height:min(86dvh,590px);margin:0;border-radius:23px 23px 0 0;padding:12px 15px calc(17px + env(safe-area-inset-bottom))}
  #coursePicker header{padding-bottom:10px}
  .exam-numbers{gap:3px}
  .exam-number{min-height:31px}
  .exam-actions button{min-height:45px}
  .exam-results .quiz-actions button{flex:1}
}
@media(max-width:350px){
  .home-picker .group-button .ico{display:none}
  .nav-link{font-size:.62rem}
}

.exam-clocks{margin-left:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.exam-clocks .exam-clock{margin-left:0;gap:4px;font-size:.86rem}
.exam-clock>span:first-child{font-size:.72rem;font-weight:800}
.question-clock{background:#e5f2df;color:#2d6144}
.exam-number.expired{background:#f4eee6;color:#795941;border-color:#e7d9ca;text-decoration:line-through;opacity:.72}
.exam-time-message,.exam-per-question{font-size:.8rem;color:#415e4c;background:#edf5e7;border:1px solid #dce9d5;border-radius:10px;padding:6px 9px;margin:0 0 9px}
.exam-per-question .ico{width:15px;height:15px}
.mock-intro .exam-per-question{margin:0 0 9px}
@media(max-width:380px){.exam-top{gap:6px;padding-left:10px;padding-right:10px}.exam-clocks .exam-clock{padding:5px 6px;font-size:.8rem}}

.coach-panel{background:#fbf8ff;border-color:#e6dcf4;padding:clamp(14px,3vw,23px)}
.coach-panel h3{font-size:clamp(1.08rem,3vw,1.32rem);line-height:1.4}
.coach-areas{display:grid;gap:8px;list-style:none;padding:0;margin:14px 0 0}
.coach-areas li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #ede4f6;border-radius:13px;background:white}
.coach-areas li p{font-size:.85rem;color:var(--dim);margin-top:2px}
.coach-areas button{flex-shrink:0}
.coach-panel .coach-sample{font-size:.87rem;margin-top:9px}
.coach-example{padding:10px 12px;background:#eee6f7;border-radius:12px;font-size:.93rem;overflow-wrap:anywhere}
.coach-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.coach-ai{margin-top:16px;padding-top:13px;border-top:1px solid #e6dcf4}
.coach-ai summary{font-weight:850;cursor:pointer;min-height:38px;padding:5px 0}
.coach-ai textarea{width:100%;margin-top:8px;padding:10px 12px;border:1px solid #d9cde7;border-radius:10px;font:inherit;color:var(--ink);background:white;resize:vertical}
#coach-result{white-space:pre-wrap;overflow-wrap:anywhere}
#coach-result:empty,#coach-status:empty{display:none}
.account-shortcut{display:grid;place-items:center;width:36px;height:36px;border:1px solid #d7e5d4;border-radius:12px;background:#e9f3e2;color:#2d6347}
.account-shortcut:hover{background:#dbebd3}
.account-shortcut .ico{width:18px;height:18px}
.account-panel>h2{margin:0 0 6px}
.account-panel>p,.account-identity p{color:#4b6153;font-size:.89rem}
.account-identity{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.account-identity h2{margin:0;overflow-wrap:anywhere}
.account-identity .badge{width:44px;height:44px}
.account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:13px}
.account-actions a,.account-actions button{white-space:normal}
#nicknameForm label{display:block;font-weight:850;font-size:.83rem;margin-bottom:5px}
#nicknameForm>div{display:flex;align-items:stretch;gap:8px;max-width:440px}
#nicknameForm input{min-width:0;flex:1;border:1px solid #c9dbca;border-radius:12px;background:#fafdf8;color:#244334;padding:8px 11px;font:inherit}
#nicknameForm button{flex:none}
.account-panel .account-status{width:fit-content;background:#e9f3e2;border-radius:20px;padding:4px 9px;font-size:.78rem;font-weight:850;color:#2a5e3e;margin-top:13px}
#shareDialog[open]{width:min(465px,calc(100% - 24px));height:auto;border-radius:22px;background:#f9faf5;padding:13px 17px 18px;max-height:86dvh;overflow:auto}
#shareDialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
#shareDialog h2{font-size:1.22rem;margin:0}
.share-preview{display:flex;align-items:center;gap:10px;background:#efebfa;border:1px solid #e3dbf3;border-radius:14px;padding:10px;margin-bottom:9px}
.share-preview p{margin:3px 0 0;color:#49385f;font-size:.85rem}
#shareDialog .muted,#shareStatus{font-size:.78rem;color:#435c4d}
#shareStatus:not(:empty){margin-top:10px}
#shareStatus label{display:block;font-weight:800;margin-bottom:4px}
#shareCopyText{width:100%;min-height:85px;resize:vertical;border:1px solid #d5e3d2;border-radius:10px;background:#fff;padding:8px;font:inherit}
@media(max-width:640px){
  .account-shortcut{width:32px;height:32px}
  .top-stats{gap:5px;align-items:center}
  #shareDialog[open]{inset:auto 0 0;width:100%;max-width:none;margin:0;border-radius:23px 23px 0 0;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
}

.mastery-home,.mastery-recent{background:#f0f8ef;border-color:#d0e6cd}
.coach-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.mastery-scores{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0}
.mastery-scores div{flex:1 1 132px;background:#fff;border:1px solid #d0e6cd;border-radius:12px;padding:10px 12px}
.mastery-scores dt{font-size:.88rem;color:var(--dim)}
.mastery-scores dd{margin:2px 0 0;font-weight:850}
.mastery-note{margin-top:8px;font-size:.9rem}
.mastery-result{width:min(100%,430px);margin:0 auto 12px}
@media(max-width:520px){
  .coach-areas li:has(.coach-row-actions){display:block}
  .coach-row-actions{justify-content:flex-start;margin-top:8px}
}

.goal-card{margin:14px 0 12px;background:#f0f7e9;border-color:#dbe9d4}
.goal-card:not(.goal-active){display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}
.goal-card .panel-heading{margin:0}
.goal-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}
.goal-deadline{background:#ded3f5;color:#442c71;border-radius:100px;padding:5px 10px;font-size:.84rem;font-weight:900;white-space:nowrap}
.goal-card .goal-count{gap:10px;color:#365943;font-size:.83rem}
.goal-card .goal-count strong{white-space:nowrap}
.goal-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}
.goal-form{display:grid;gap:10px}
.goal-form>label,.goal-form legend{font-weight:850;color:#304c3a}
.goal-form>label .muted{font-size:.75rem;margin-left:5px;font-weight:650}
.goal-form fieldset{border:0;padding:0;margin:0;min-width:0}
.goal-form legend{padding:0;margin-bottom:7px}
.goal-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:485px}
.goal-choice{position:relative}
.goal-choice input{position:absolute;opacity:0;margin:0;width:100%;height:100%;cursor:pointer}
.goal-choice span{display:grid;place-items:center;min-height:43px;border:1px solid #e0e8da;background:#f7faf4;color:#476251;border-radius:10px;font-size:.83rem;font-weight:850}
.goal-choice input:checked + span{color:#fff;background:#356a4d;border-color:#356a4d}
.goal-choice input:focus-visible + span{outline:2px solid #244d35;outline-offset:2px}
#goalError{color:#942b26;font-size:.84rem;font-weight:800}
#goalError:empty{display:none}
@media(max-width:640px){
  .goal-card{padding:12px}
  .goal-card .panel-heading h2{font-size:1rem}
  .goal-card .panel-heading p{font-size:.76rem}
  .goal-card .goal-actions button{min-height:41px}
.garden-hero {
  background: radial-gradient(ellipse at 91% 71%, #ffe694 1%, #fff0c1 42%, #f9e9cb 80%);
  border-color: #e8d9b1;
}
.garden-hero .hero-copy h1 { color: #273d2c; }
.garden-hero .hero-tag { background: #fff8df; color: #3f6143; }
.garden-hero .hero-actions .primary { min-height: 46px; }
.garden-daily-card {
  margin-top: 12px;
  padding: 11px 13px 6px;
  border: 1px solid #e5dcc4;
  border-radius: 16px;
  background: #fffcf3;
}
.garden-goal-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: #3b503a;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: .78rem;
  font-weight: 800;
}
.garden-daily {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: #3b503a;
  font-size: .86rem;
  font-weight: 850;
}
.garden-daily > div { display: flex; justify-content: center; gap: 5px; }
.garden-daily i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #e2e8d8;
  border-radius: 8px;
  background: #f4f6eb;
  color: #557456;
}
.garden-daily i.grown { background: #fce9a3; border-color: #ead278; color: #745312; }
.garden-daily .ico { width: 15px; height: 15px; }
.garden-path { display: grid; gap: 10px; }
.garden-path .section-head { margin-bottom: 0; }
.garden-chapter {
  display: grid;
  grid-template-columns: minmax(125px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 0 18px;
  padding: 13px 16px;
  border: 1px solid #e2e6d8;
  border-radius: 19px;
  background: #fdfcf6;
}
.garden-chapter.active { background: #eef5e5; border-color: #bdd6ae; }
.garden-chapter-title h3 { margin: 0; color: #284433; font-size: 1.05rem; }
.garden-chapter-title p { margin-top: 3px; color: #4b6254; font-size: .84rem; }
.garden-stones { list-style: none; margin: 0; padding: 0; }
.garden-step {
  display: grid;
  position: relative;
  grid-template-columns: 49px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 65px;
}
.garden-step:nth-child(even) { margin-left: 15px; }
.garden-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 46px auto -15px 28px;
  border-left: 2px dashed #aac0a1;
  transform: rotate(-24deg);
  pointer-events: none;
}
.garden-stone {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 47px;
  height: 45px;
  border: 1px solid #c8d3bf;
  border-radius: 15px 17px 14px 17px;
  background: #edf1e6;
  color: #4d6251;
  box-shadow: 0 3px 0 #d7e0d0;
  cursor: pointer;
}
.garden-stone .ico { width: 23px; height: 23px; stroke-width: 2; }
.garden-stone:disabled { cursor: default; opacity: 1; }
.garden-step.current .garden-stone {
  background: #346b4e;
  border-color: #2c5d43;
  color: #fff9d5;
  box-shadow: 0 4px #214f37, 0 0 0 4px #cfe4b9;
}
.garden-step.completed .garden-stone {
  background: #fbe7a5;
  border-color: #e1ca80;
  color: #77581d;
  box-shadow: 0 4px #e2c776;
}
.garden-step .garden-stone:active:not(:disabled) { translate: 0 2px; box-shadow: 0 1px #859e78; }
.garden-step-copy { display: grid; gap: 1px; min-width: 0; }
.garden-step-copy strong { font-size: .93rem; color: #273f2f; }
.garden-step-copy small { color: #4d6251; font-size: .78rem; overflow-wrap: anywhere; }
.garden-step-now { color: #24563c; font-size: .75rem; font-weight: 900; }
.quiz-trail { display: flex; flex: 1; gap: clamp(2px, 1vw, 6px); min-width: 0; }
.quiz-trail i { flex: 1; min-width: 0; height: 12px; border-radius: 5px; background: #e5ede1; }
.quiz-trail i.current { background: #d8e5d1; outline: 1px solid #879f7f; outline-offset: -1px; }
.quiz-trail i.correct { background: #3e845a; }
.quiz-trail i.wrong { background: #b96243; }
.quiz-trail .just-answered { animation: feedback-pop .26s both; }
.quiz-footer.good .primary { background: #315f47; border-color: #315f47; }

@media(max-width: 640px) {
  .garden-hero .hero-actions .primary,.garden-hero .hero-actions .hero-diagnosis {
    font-size: .85rem;
    min-height: 44px;
    padding-inline: 8px;
  }
  .garden-daily-card { padding: 10px 9px 3px; }
  .garden-daily { gap: 5px; font-size: .77rem; }
  .garden-daily > div { gap: 3px; }
  .garden-daily i { width: 20px; height: 22px; }
  .garden-daily .ico { width: 13px; height: 13px; }
  .garden-chapter { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .garden-chapter-title { padding: 1px 2px 8px; }
  .garden-stones { margin-left: 4px; }
  .garden-step { min-height: 59px; }
  .garden-step:nth-child(even) { margin-left: 13px; }
  .quiz-trail i { height: 11px; }
}

.path-overview {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  background:#e9f3dc;
  border:1px solid #d2e2c5;
  border-radius:19px;
  padding:13px 16px;
}
.path-overview h2 { font-size:1.15rem; }
.path-overview p { color:#405b43; font-size:.9rem; }
.path-progress { text-align:right; min-width:112px; font-size:.85rem; color:#2d563c; }
.path-progress .meter { margin:5px 0 0; background:#d6e6cc; }
.guide-link {
  display:inline-flex;
  align-items:center;
  justify-self:start;
  gap:6px;
  min-height:38px;
  color:#2a603c;
  padding:3px 7px;
  border:0;
  background:transparent;
  text-decoration:underline;
  text-underline-offset:3px;
  font-size:.9rem;
  font-weight:800;
}
.guide-link .ico { width:15px; height:15px; }
.unit-action { flex-wrap:wrap; }
#unitGuide .guide-header, #unitGuide .guide-footer {
  margin:0;
  display:flex;
  flex:0 0 auto;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px clamp(14px,4vw,24px);
}
#unitGuide .guide-header { border-bottom:1px solid var(--line); }
.guide-header p { color:#415f49; font-size:.9rem; font-weight:750; }
.guide-header h2 { line-height:1.3; font-size:clamp(1.4rem,4vw,1.8rem); }
.guide-body { display:grid; gap:12px; overflow:auto; padding:16px clamp(14px,4vw,24px); }
.guide-card { display:flex; align-items:flex-start; gap:12px; padding:14px; background:white; border:1px solid var(--line); border-radius:16px; }
.guide-card h3 { margin:0 0 5px; font-size:1rem; }
.guide-card .badge { flex:none; }
.guide-card p { font-size:1rem; line-height:1.65; overflow-wrap:anywhere; }
.guide-sources { padding:6px 2px; }
.guide-sources summary { min-height:36px; cursor:pointer; font-weight:750; }
.guide-sources ul { padding-left:22px; }
.guide-sources a { text-decoration:underline; text-underline-offset:3px; }
#unitGuide .guide-footer { border-top:1px solid var(--line); padding-bottom:max(14px,env(safe-area-inset-bottom)); }
.guide-footer .primary { min-height:46px; width:100%; }
@media(max-width:640px) {
  .path-overview { padding:12px 13px; }
  .path-overview h2 { font-size:1rem; }
  #unitGuide .guide-body { flex:1; }
}

:root {
  --study-accent:#55408c;
  --study-deep:#382867;
  --study-outline:#bfa9e3;
  --study-wash:#f2edfc;
  --study-hero:#e7ddfa;
  --study-paper:#faf7fd;
}
:root[data-study-theme="school"] {
  --study-accent:#21695c;
  --study-deep:#10473e;
  --study-outline:#95c4b5;
  --study-wash:#e5f5ed;
  --study-hero:#d6f2e2;
  --study-paper:#f4faf6;
}
:root[data-study-theme="exam"] {
  --study-accent:#2b5690;
  --study-deep:#183761;
  --study-outline:#9db8df;
  --study-wash:#eaf1fd;
  --study-hero:#d7e6fb;
  --study-paper:#f4f8fd;
}
:root[data-study-theme="cert"] {
  --study-accent:#865018;
  --study-deep:#61340d;
  --study-outline:#deba88;
  --study-wash:#fff2df;
  --study-hero:#fae5c4;
  --study-paper:#fcf8f0;
}
body { background:var(--study-paper); }
.brand-icon,.nav-link.active,.group-button[aria-pressed="true"] { border-color:var(--study-outline); }
.brand-icon { background:var(--study-accent); color:white; }
.nav-link.active,.group-button[aria-pressed="true"],.course-picker-trigger {
  background:var(--study-wash);
  color:var(--study-deep);
}
.hero.garden-hero,.path-overview { background:var(--study-hero); border-color:var(--study-outline); }
.hero:before,.hero:after,.hero-tag { border-color:var(--study-outline); }
.garden-hero .hero-tag { background:var(--study-wash); color:var(--study-deep); }
.hero p,.path-overview p,.path-progress,.guide-link { color:var(--study-deep); }
.hero-actions .primary,.guide-footer .primary,.garden-step.current .garden-stone {
  background:var(--study-accent);
  border-color:var(--study-accent);
  color:white;
  box-shadow:0 4px 0 var(--study-deep);
}
.hero-actions .primary:hover,.guide-footer .primary:hover,.garden-step.current .garden-stone:hover { background:var(--study-deep); }
.garden-chapter.active,#unitGuide .guide-header { background:var(--study-wash); border-color:var(--study-outline); }
.path-progress .meter { background:var(--study-wash); }
.path-progress .meter i { background:var(--study-accent); }
.guide-header p { color:var(--study-deep); }
.picker-scroll { overflow:auto; min-height:0; }
.picker-scroll .picker-options { overflow:visible; }
.academic-track { margin-top:14px; }
.academic-track h3 { margin:0 0 8px; font-size:1rem; color:var(--study-deep); }
.academic-track .course-grid { margin-top:6px; }
@media(max-width:640px) {
  .academic-track .course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.garden-step.current .garden-stone {
  box-shadow:0 4px 0 var(--study-deep),0 0 0 4px var(--study-outline);
}
.garden-step.completed .garden-stone,.garden-step-now {
  background:var(--study-wash);
  border-color:var(--study-outline);
  color:var(--study-deep);
}
.garden-step:not(:last-child)::after { border-color:var(--study-outline); }

.question-arrive > :is(.quiz-topic, #quizTitle, .passage, .choices) {
  animation: garden-question-in .24s ease-out both;
}
@keyframes garden-question-in {
  from { opacity: .4; translate: 10px 0; }
  to { opacity: 1; translate: 0 0; }
}
.feedback.good .answer-token {
  --petal-color: #d78d36;
  --petal-distance: 35px;
  isolation: isolate;
}
.feedback.good .answer-token .ico {
  animation: garden-flower-open .45s cubic-bezier(.24,.9,.32,1.22) both;
}
.answer-token.recovery {
  background: #f4eaff;
  border-color: #dfcaf2;
  color: #604082;
  box-shadow: 0 3px 0 #d6bde9;
  --petal-color: #9a69c6;
}
.answer-token.milestone { --petal-distance: 47px; }
.answer-token.combo-3 { background: #ecf5d1; color: #426539; --petal-color: #79a051; }
.answer-token.combo-5 { background: #ffe8b8; color: #82511a; --petal-color: #ca7a31; --petal-distance: 56px; }
.answer-token.combo-8 { background: #ebddff; color: #63428a; --petal-color: #9364bc; --petal-distance: 65px; }
.answer-petals,.garden-result-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.answer-petals i,.garden-result-burst i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 12px;
  border-radius: 70% 0 70% 30%;
  background: var(--petal-color,#d3973b);
  opacity: 0;
  animation: garden-petal-fly .63s var(--lag) ease-out both;
}
.answer-petals i:nth-child(3n),.garden-result-burst i:nth-child(3n) { background: #85a955; }
.answer-petals i:nth-child(3n+1),.garden-result-burst i:nth-child(3n+1) { height: 8px; border-radius: 50%; }
.feedback.bad .reset-sprout .ico {
  transform-origin: 50% 84%;
  animation: garden-sprout-reset .44s ease-in-out both;
}
.celebration-result .result-scene { isolation: isolate; overflow: hidden; }
.garden-result-burst { z-index: 1; --petal-distance: 100px; }
.garden-result-burst i { width: 9px; height: 15px; animation-duration: .95s; }
.parade .garden-result-burst { --petal-distance: 135px; }
.parade .garden-result-burst i:nth-child(2n) { --petal-color: #aa7bd8; }
.parade .result-scene img { animation: garden-hamster-hop .82s cubic-bezier(.18,.8,.25,1.1) both; }
.celebration-result [data-start="bonus"] {
  background: #fff4ce;
  border-color: #ebd186;
  color: #654611;
}
@keyframes garden-flower-open {
  0% { transform: translateY(5px) rotate(-28deg) scale(.35); }
  65% { transform: translateY(-3px) rotate(11deg) scale(1.18); }
  100% { transform: none; }
}
@keyframes garden-petal-fly {
  0% { transform: rotate(var(--ray)) translateX(9px) scale(.5); opacity: 0; }
  23% { opacity: 1; }
  100% { transform: rotate(var(--ray)) translateX(var(--petal-distance)) rotate(120deg) scale(.72); opacity: 0; }
}
@keyframes garden-sprout-reset {
  0% { transform: rotate(-24deg) scaleY(.65); }
  55% { transform: rotate(11deg) scaleY(1.14); }
  100% { transform: none; }
}
@keyframes garden-hamster-hop {
  0% { transform: translateY(24px) scale(.84) rotate(-5deg); opacity: .5; }
  42% { transform: translateY(-14px) scale(1.04) rotate(5deg); opacity: 1; }
  69% { transform: translateY(6px) scale(1.08,.94); }
  100% { transform: none; }
}

.curriculum-card{display:grid;gap:10px;margin-top:14px;background:#f3f8eb;border-color:#d6e5c8}
.curriculum-card h2{margin:0}
.curriculum-card p{color:#425e48;font-size:.92rem}
.curriculum-card-head{display:flex;gap:8px;align-items:start;justify-content:space-between}
.curriculum-card-head p{margin-top:4px}
.curriculum-count{padding:5px 8px;border-radius:12px;background:#e2edd3;color:#365744;white-space:nowrap;font-size:.78rem;font-weight:850}
.curriculum-actions{display:flex;flex-wrap:wrap;gap:8px}
.curriculum-actions a,.curriculum-actions button{min-height:44px}
.curriculum-page>.curriculum-card{margin-bottom:14px}
.curriculum-phase+.curriculum-phase{margin-top:10px}
.curriculum-phase summary,.curriculum-week summary{cursor:pointer;min-height:44px;padding-block:8px}
.curriculum-phase summary span,.curriculum-week summary span{margin-left:10px;color:#4b6353;font-size:.9rem}
.curriculum-week{border-top:1px solid #e3e9dd}
.curriculum-week ul{display:grid;gap:6px;list-style:none;margin:0 0 10px;padding:0}
.curriculum-week li{display:flex;align-items:center;gap:6px;border-radius:9px;padding:6px 9px;background:#f6f8f3}
.curriculum-week li.current{background:#e7f2d8}
.curriculum-week li.done .ico{width:16px;height:16px;color:#306247}
.curriculum-week li small{margin-left:auto;color:#52644f}

.sqld-routine {
  display: grid;
  gap: .9rem;
  border-color: #bfdad0;
  background: #f2faf5;
}
.sqld-routine-header, .sqld-routine-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .65rem;
}
.sqld-routine-header { justify-content: space-between; }
.sqld-routine h2 { margin: 0 0 .35rem; }
.sqld-routine p, .sqld-pass p { margin: 0; }
.sqld-deadline {
  padding: .4rem .7rem;
  border-radius: 999px;
  background: #d7eee1;
  color: #204536;
  font-size: .875rem;
  font-weight: 800;
}
.sqld-verified {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #295241;
  font-size: .9rem;
}
.sqld-verified .ico { flex: none; }
.sqld-pass summary { cursor: pointer; font-weight: 800; }
.sqld-pass[open] summary { margin-bottom: .75rem; }
.sqld-pass li + li { margin-top: .3rem; }
.sqld-result { color: #245944; font-weight: 750; }
.sqld-entry { justify-self: start; }

.simple-home{max-width:760px;margin-inline:auto}
.simple-home .garden-hero{min-height:218px}
.simple-home .hero-actions .primary{min-height:46px;padding:8px 17px;font-size:1rem}
.simple-today,.home-details{margin-top:14px}
.simple-today .meter{margin-bottom:0}
.home-details>summary,.home-path-details>summary{cursor:pointer;font-size:1rem;font-weight:850;padding-block:4px}
.home-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.home-details .coverage-panel,.home-path-details{margin-top:14px}
.home-path-details .garden-path{margin-top:12px}
@media(max-width:640px){
  .simple-home .garden-hero{min-height:188px}
  .simple-home .hero-actions .primary{min-height:46px}
}

.weekly-report{margin:12px 0;padding:14px;border:1px solid #d6e5c8;border-radius:15px;background:#f3f8eb}
.weekly-report h2,.weekly-report h3{margin:0 0 6px;color:#244536}
.weekly-report p{margin:5px 0}
.weekly-report>ul{display:grid;gap:3px;list-style:none;padding:0;margin:8px 0}
.weekly-report>ul li{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;background:#fff;border-radius:8px}
.weekly-report>ul li strong{white-space:nowrap}
.weekly-report button{margin-top:6px;min-height:44px}
.garden-path{isolation:isolate}
.path-group-heading,.path-group-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}
.path-group-heading{color:var(--dim);font-size:.85rem}
.path-group-controls .secondary{min-height:44px;padding-inline:10px;white-space:nowrap}
.path-group-controls strong{font-size:.85rem;text-align:center}
.path-current-link{justify-self:center}
.goal-date{width:min(100%,420px)}
.goal-date>summary{display:flex;align-items:center;gap:10px;min-height:60px;padding:10px 13px;border:1px solid var(--line);border-radius:14px;background:var(--study-soft,#eef5e9);cursor:pointer;list-style:none}
.goal-date>summary::-webkit-details-marker{display:none}
.goal-date>summary span{flex:1;font-size:.85rem}
.goal-date>summary small{color:var(--dim)}
.goal-date>summary strong{display:block;font-size:1rem}
.goal-date>summary b{font-size:.84rem;color:var(--study-deep,#28573b)}
.goal-date>summary:focus-visible{outline:3px solid #6462b4;outline-offset:3px}
.goal-calendar{padding:8px;margin-top:6px;border:1px solid var(--line);border-radius:14px;background:#fff}
.goal-calendar-head,.goal-calendar-actions{display:flex;justify-content:space-between;align-items:center;gap:6px}
.goal-calendar-head button,.goal-calendar-actions button{min-height:38px;padding-inline:5px}
.goal-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center;margin-block:6px}
.goal-calendar-grid>span{color:var(--dim);font-size:.8rem;padding:4px}
.goal-calendar-grid button:first-of-type{grid-column-start:var(--calendar-offset)}
.goal-calendar-grid button{min-height:38px;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;font-weight:750}
.goal-calendar-grid button:hover,.goal-calendar-grid button[aria-current=date]{border-color:var(--study-outline,#a4bda7)}
.goal-calendar-grid button[aria-pressed=true]{background:var(--study-deep,#28573b);color:white}
@media(max-width:640px){
  .sidebar{z-index:5}
  .shell{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .garden-step{min-height:53px}
  .garden-step:nth-child(even){margin-left:8px}
  .path-group-controls .secondary{font-size:.8rem;padding-inline:7px}
}
#learningSummary{width:min(420px,calc(100% - 24px))}
.learning-summary-heading{display:flex;align-items:center;gap:10px}
.learning-summary-heading h2{flex:1;margin:0}
.learning-summary-value{display:block;margin:12px 0 3px;color:var(--study-deep,#27543a);font-size:1.85rem}
#learningSummary p{margin-top:0;color:var(--dim)}
#learningSummary .week{margin-top:12px}
