@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Nunito:wght@500;600;700;800;900&display=swap');
:root{--ink:#172c26;--muted:#7b8982;--line:#e7ebe5;--paper:#f7f8f4;--white:#fff;--green:#27845f;--green2:#dff3e8;--lime:#c9ed83;--orange:#f5a34b;--red:#e66c6c;--blue:#6b9be8;--purple:#9a83d8;--shadow:0 12px 32px rgba(32,55,44,.07)}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--paper)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#fff;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;z-index:5}
.brand{display:flex;align-items:center;gap:11px;font:900 22px Nunito,sans-serif;letter-spacing:-.8px;padding:0 10px}
.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:var(--green);color:#fff;font:900 21px Nunito;box-shadow:0 5px 12px #27845f33}
.brand-accent{color:var(--green)}
.side-caption{font-size:9px;letter-spacing:1.7px;color:#9ba69f;font-weight:800;margin:42px 12px 12px}
.side-nav{display:grid;gap:6px}
.nav-item{display:flex;align-items:center;gap:14px;border:0;background:transparent;color:#738079;border-radius:12px;padding:12px 14px;text-align:left;font-weight:700;font-size:13px}
.nav-item span{width:20px;text-align:center;font-size:19px}
.nav-item:hover,.nav-item.active{background:#eaf5ee;color:var(--green)}
.sidebar-bottom{margin-top:auto;display:grid;gap:7px}
.streak-mini{display:flex;align-items:center;gap:12px;background:#fff7e9;border-radius:14px;padding:13px;margin-bottom:12px}
.streak-mini>span{font-size:25px}
.streak-mini b,.streak-mini small{display:block}
.streak-mini b{font-size:13px}
.streak-mini small{font-size:9px;color:#a18b6d;letter-spacing:1px;margin-top:2px}
.main-area{margin-left:248px;min-height:100vh}
.topbar{height:76px;display:flex;align-items:center;gap:10px;padding:0 4.5%;border-bottom:1px solid var(--line);background:#ffffffc9;position:sticky;top:0;z-index:4;backdrop-filter:blur(12px)}
.topbar-spacer{flex:1}
.stat-pill{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:30px;padding:7px 11px;font-size:12px}
.stat-pill span{font-size:14px}
.stat-pill small{font-size:9px;color:var(--muted);font-weight:800;letter-spacing:.5px}
.streak span{color:#ed8b35}
.xp span{color:#dca52d}
.hearts span{color:#e66c6c}
.gems span{color:#5a9cdb}
.avatar-button{border:0;background:#dff3e8;color:var(--green);font-weight:900;border-radius:50%;width:36px;height:36px;margin-left:5px}
.mobile-brand{display:none}
.content-wrap{max-width:1120px;margin:0 auto;padding:34px 4.5% 70px}
.eyebrow{font-size:10px;font-weight:900;letter-spacing:1.6px;color:var(--green);text-transform:uppercase}
.page-title{font:900 clamp(26px,3vw,36px) Nunito,sans-serif;letter-spacing:-1px;margin:7px 0 5px}
.sub-title{color:var(--muted);font-size:13px;line-height:1.6;margin:0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:30px 0 14px}
.section-head h2{font:900 19px Nunito;margin:0}
.section-head p{color:var(--muted);font-size:12px;margin:4px 0 0}
.btn{border:0;border-radius:12px;padding:12px 17px;background:var(--green);color:#fff;font-weight:800;font-size:12px;box-shadow:0 5px 12px #27845f22}
.btn:hover{filter:brightness(.96);transform:translateY(-1px)}
.btn.secondary{background:#edf4ef;color:var(--green);box-shadow:none}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}
.btn.small{padding:9px 12px}
.grid{display:grid;gap:15px}
.grid.two{grid-template-columns:1.45fr 1fr}
.grid.three{grid-template-columns:repeat(3,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}
.welcome-card{background:#1f6049;color:#fff;border-radius:22px;padding:25px 27px;position:relative;overflow:hidden;min-height:190px;display:flex;align-items:center}
.welcome-card:after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;background:#ffffff0d;right:-60px;top:-85px}
.welcome-copy{position:relative;z-index:1;max-width:460px}
.welcome-card .eyebrow{color:#b9e6ca}
.welcome-card h2{font:900 25px Nunito;margin:9px 0}
.welcome-card p{font-size:12px;line-height:1.6;color:#d5ebdf;max-width:380px}
.welcome-art{position:absolute;right:42px;bottom:-5px;font-size:100px;opacity:.9;z-index:1}
.progress-line{height:8px;border-radius:20px;background:#edf1ed;overflow:hidden;margin:12px 0 7px}
.progress-line>i{display:block;height:100%;background:var(--green);border-radius:20px}
.progress-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);font-weight:700}
.goal-card{display:flex;flex-direction:column;justify-content:space-between}
.goal-number{font:900 32px Nunito;margin:12px 0 0}
.goal-number small{font-size:13px;color:var(--muted)}
.goal-ring{width:72px;height:72px;border-radius:50%;border:7px solid #e6f2e9;border-top-color:var(--green);display:grid;place-items:center;font-weight:900;color:var(--green);float:right}
.path-list{display:grid;gap:14px}
.unit-card{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:15px;padding:17px;background:#fff;border:1px solid var(--line);border-radius:17px}
.unit-icon{width:50px;height:50px;border-radius:15px;background:#eaf5ee;display:grid;place-items:center;font-size:24px}
.unit-card.locked{opacity:.65}
.unit-card h3{font:900 15px Nunito;margin:0 0 4px}
.unit-card p{font-size:11px;color:var(--muted);margin:0}
.unit-status{font-size:10px;font-weight:800;color:var(--green);background:#eaf5ee;border-radius:30px;padding:7px 10px}
.unit-status.lock{color:#89948d;background:#f0f2ef}
.lesson-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #eff1ee}
.lesson-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e9f5ed;color:var(--green);font-size:13px;font-weight:900}
.lesson-row.locked .lesson-dot{background:#f0f2ef;color:#a6aea8}
.lesson-row b{font-size:12px}
.lesson-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.mini-stat{display:flex;align-items:center;gap:12px}
.mini-stat .icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:20px;background:#f3f6ef}
.mini-stat strong{font:900 22px Nunito}
.mini-stat small{display:block;color:var(--muted);font-size:10px}
.table{width:100%;border-collapse:collapse}
.table td,.table th{text-align:left;padding:12px 9px;border-bottom:1px solid #eef1ed;font-size:12px}
.table th{font-size:9px;letter-spacing:1px;color:var(--muted)}
.rank{font-weight:900;color:#8d9a91}
.you-row{background:#eef8f0}
.tag{display:inline-flex;align-items:center;border-radius:30px;padding:5px 9px;font-size:10px;font-weight:800;background:#eef5ef;color:var(--green)}
.tag.orange{background:#fff3e5;color:#c57c2e}
.tag.blue{background:#edf3ff;color:#5c83ca}
.empty-state{text-align:center;padding:30px;color:var(--muted);font-size:12px}
.form-card{max-width:620px;margin:26px auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:var(--shadow)}
.form-card h2{font:900 23px Nunito;margin:6px 0}
.form-field{display:grid;gap:7px;margin:17px 0}
.form-field label{font-size:11px;font-weight:800;color:#53635a}
.form-field input,.form-field select,textarea{width:100%;padding:13px 14px;border:1px solid #dfe7df;border-radius:11px;background:#fbfcfa;color:var(--ink);outline:none}
.form-field input:focus,.form-field select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #27845f15}
.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.choice{border:1px solid var(--line);border-radius:12px;padding:13px;text-align:left;background:#fff}
.choice.selected{border:2px solid var(--green);background:#f0f8f2}
.choice b{display:block;font-size:13px}
.choice small{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.hint{font-size:11px;color:var(--muted);margin:4px 0}
.exercise-modal{position:fixed;inset:0;background:#0e1c17a8;z-index:20;display:grid;place-items:center;padding:16px}
.exercise-box{width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;padding:24px;box-shadow:0 20px 80px #0003}
.exercise-top{display:flex;justify-content:space-between;align-items:center}
.exercise-progress{height:6px;background:#edf1ed;border-radius:20px;margin:16px 0 22px}
.exercise-progress i{height:100%;display:block;background:var(--green);border-radius:20px}
.exercise-question{font:900 22px Nunito;line-height:1.35;margin:12px 0 20px}
.answer-option{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);padding:13px 15px;border-radius:12px;margin:9px 0;font-size:13px}
.answer-option.selected{border:2px solid var(--green);background:#eff8f1}
.answer-option.correct{border-color:#41a777;background:#eaf7ef}
.answer-option.wrong{border-color:#e47777;background:#fff0f0}
.answer-input{width:100%;border:1px solid var(--line);border-radius:12px;padding:14px;font-size:14px}
.feedback{padding:13px;border-radius:12px;font-size:12px;margin-top:14px;background:#f1f6f2}
.feedback.good{background:#eaf7ef;color:#28714f}
.feedback.bad{background:#fff0ef;color:#a84c4c}
.modal-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px}
.mobile-nav{display:none}
.loading-state{text-align:center;padding:90px 20px;color:var(--muted);font-size:12px}
.loader{width:32px;height:32px;border:3px solid #e1ebe3;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;margin:auto}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{position:fixed;bottom:25px;right:25px;z-index:40;background:#173c2c;color:#fff;padding:13px 17px;border-radius:12px;box-shadow:var(--shadow);font-size:12px}
.story-card{display:flex;gap:14px;align-items:center}
.story-cover{width:78px;height:86px;border-radius:14px;background:#e8f2e9;display:grid;place-items:center;font-size:30px;flex-shrink:0}
.story-card h3{font:900 15px Nunito;margin:0 0 5px}
.story-card p{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 10px}
@media(max-width:900px){
  .sidebar{width:210px}
  .main-area{margin-left:210px}
  .grid.two{grid-template-columns:1fr}
  .welcome-art{right:20px;font-size:80px}
}
@media(max-width:650px){
  .sidebar{display:none}
  .main-area{margin:0}
  .topbar{height:62px;padding:0 14px;gap:6px}
  .mobile-brand{display:flex;align-items:center;gap:8px;border:0;background:none;font:900 15px Nunito;color:var(--ink);padding:0}
  .mobile-brand .brand-mark{width:29px;height:29px;font-size:16px;border-radius:9px}
  .stat-pill{padding:6px 8px;gap:4px}
  .stat-pill small{display:none}
  .stat-pill b{font-size:11px}
  .stat-pill span{font-size:12px}
  .avatar-button{width:30px;height:30px}
  .content-wrap{padding:23px 15px 100px}
  .welcome-card{padding:20px;min-height:180px}
  .welcome-art{font-size:62px;right:12px;bottom:2px;opacity:.5}
  .welcome-copy{max-width:90%}
  .welcome-card h2{font-size:21px}
  .grid.three{grid-template-columns:1fr}
  .unit-card{grid-template-columns:44px 1fr auto;padding:13px;gap:10px}
  .unit-icon{width:42px;height:42px;font-size:20px}
  .unit-card h3{font-size:13px}
  .unit-status{font-size:9px;padding:6px 7px}
  .mobile-nav{position:fixed;bottom:0;left:0;right:0;height:68px;padding:7px 6px calc(7px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid var(--line);display:flex;justify-content:space-around;z-index:8;backdrop-filter:blur(14px)}
  .mobile-nav button{border:0;background:none;color:#849087;display:grid;place-items:center;gap:2px;min-width:52px}
  .mobile-nav button span{font-size:20px}
  .mobile-nav button small{font-size:9px;font-weight:800}
  .mobile-nav button.active{color:var(--green)}
  .choice-grid{grid-template-columns:1fr}
  .form-card{padding:21px;margin:18px auto}
  .section-head{margin-top:24px}
  .exercise-box{padding:19px}
  .exercise-question{font-size:19px}
}
