:root{--green: #1f6b3b;--green-light: #2e8b4f;--gold: #d4a429;--ink: #1a1a1a;--muted: #6b7280;--bg: #f5f5f4;--card: #ffffff;--red: #dc2626;--amber: #d97706;--line: #e5e7eb}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--ink)}.shell{max-width:480px;margin:0 auto;min-height:100dvh;padding:20px 18px 40px;display:flex;flex-direction:column;gap:16px}header{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 0}.logo{font-weight:800;letter-spacing:1px}.tag{font-size:12px;letter-spacing:3px;color:var(--muted)}.home-header{flex-direction:row;justify-content:space-between;align-items:flex-start}.greeting{font-size:20px;font-weight:700;margin:0}.sub{color:var(--muted);font-size:14px;margin:2px 0}.sub.small{font-size:12px}.section-title{font-size:16px;margin:8px 0 0}.card{background:var(--card);border-radius:16px;padding:20px;box-shadow:0 1px 3px #00000012}.card.center{text-align:center}.card h1{font-size:18px;margin:0 0 12px}button{font:inherit;cursor:pointer}.primary{background:var(--green);color:#fff;border:none;border-radius:12px;padding:12px 16px;font-weight:700}.primary:disabled{opacity:.45;cursor:default}.primary.big,.ghost.big{width:100%;padding:16px;border-radius:14px;font-size:16px}.ghost{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 16px;font-weight:600}.link{background:none;border:none;color:var(--green);font-weight:600;padding:0;align-self:flex-start}.error{color:var(--red);font-size:14px;margin:6px 0}.list,.people{display:flex;flex-direction:column;gap:10px;margin-top:12px}.row-btn{text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;font-weight:600}.person{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-weight:600}.avatar{width:36px;height:36px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:700}.avatar.lg{width:48px;height:48px;font-size:20px}.dots{display:flex;gap:14px;justify-content:center;margin:18px 0}.dot{width:16px;height:16px;border-radius:50%;border:2px solid var(--green)}.dot.filled{background:var(--green)}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.keypad button{padding:18px;font-size:22px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:600}.level-card{background:linear-gradient(135deg,#1f6b3b,#14532d);color:#fff}.level-card .sub{color:#d1fae5}.level-row{display:flex;align-items:center;gap:12px;margin-bottom:12px}.level-num{font-weight:800;font-size:18px;margin:0}.bar{height:8px;border-radius:99px;background:#ffffff40;overflow:hidden}.bar>span{display:block;height:100%;background:var(--gold);border-radius:99px}.course-list{display:flex;flex-direction:column;gap:12px}.course-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;text-align:left}.thumb{width:84px;height:60px;border-radius:10px;flex-shrink:0;background:var(--green) center/cover no-repeat;position:relative;overflow:hidden}.thumb-score{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0f4d2999;color:#fff;font-weight:800;font-size:18px}.course-body{flex:1;min-width:0}.course-title{font-weight:700;margin:0 0 6px;font-size:15px}.course-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chevron{color:var(--muted);font-size:22px}.pill{font-size:11px;font-weight:700;padding:3px 8px;border-radius:99px}.pill.open{background:#e0f2fe;color:#0369a1}.pill.due_soon{background:#fef3c7;color:var(--amber)}.pill.overdue{background:#fee2e2;color:var(--red)}.pill.done{background:#dcfce7;color:var(--green)}.pill.mand{background:#ede9fe;color:#6d28d9}.course-hero{height:170px;border-radius:16px;background:var(--green) center/cover no-repeat}.lesson-title{font-weight:700;margin:0 0 10px}.lesson-img{width:100%;border-radius:10px;display:block}.lesson-caption{font-size:13px;color:var(--muted);margin:8px 2px 0;line-height:1.5}.md{font-size:14px;line-height:1.6}.md p{margin:0 0 12px}.md p:last-child{margin-bottom:0}.md h3{font-size:14px;font-weight:800;color:var(--green);text-transform:uppercase;letter-spacing:.5px;margin:16px 0 8px}.md ul,.md ol{margin:0 0 12px;padding-left:22px}.md li{margin:0 0 7px;padding-left:4px}.md li::marker{color:var(--green);font-weight:700}.md strong{font-weight:700}.md em{color:var(--muted);font-style:italic}.video{position:relative;width:100%;aspect-ratio:16 / 9;border-radius:10px;overflow:hidden}.video iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0}.quiz-progress{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.question{font-size:17px}.options{display:flex;flex-direction:column;gap:10px}.option{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:2px solid var(--line);border-radius:12px;padding:14px;font-weight:600}.option.selected{border-color:var(--green);background:#f0fdf4}.opt-letter{width:26px;height:26px;border-radius:50%;background:#f3f4f6;display:grid;place-items:center;font-size:13px;flex-shrink:0}.option.selected .opt-letter{background:var(--green);color:#fff}.quiz-nav{display:flex;gap:12px}.complete-hero{position:relative;height:240px;border-radius:18px;overflow:hidden;background:var(--green) center/cover no-repeat;display:grid;place-items:center}.complete-hero .hero-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f4d298c}.complete-hero.fail .hero-overlay{background:#78350f80}.hero-badge{position:relative;width:150px;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35));animation:pop .5s ease-out}.hero-score{position:absolute;bottom:14px;right:16px;text-align:right;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.4)}.score-pct{display:block;font-size:40px;font-weight:800;line-height:1}.score-sub{font-size:13px;opacity:.9}.xp-gain{color:var(--green);font-weight:800;font-size:22px;margin:8px 0}.badge-line{font-weight:600;margin:4px 0}.complete .card .primary{margin-top:14px}.complete .card .link{margin:12px auto 0}@keyframes pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08)}to{transform:scale(1);opacity:1}}
