:root{
 --bg:#f4f7fb;--panel:#fff;--ink:#112947;--muted:#667a91;--line:#d4e1ee;
 --navy:#103f6d;--blue:#2677c8;--green:#17845e;--amber:#c57912;--red:#bd3028;
 --soft:#edf5fd;--shadow:0 13px 34px rgba(14,42,75,.09);--radius:20px
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
button,input,select{font:inherit}button{cursor:pointer}
.shell{max-width:1450px;margin:auto;padding:14px}
.topbar{position:sticky;top:6px;z-index:50;border-radius:18px;background:var(--navy);color:#fff;padding:13px 18px;display:flex;justify-content:space-between;align-items:center;gap:15px;box-shadow:var(--shadow)}
.brand h1{font-size:20px;margin:0}.brand .sub{font-size:11px;opacity:.82;margin-top:3px}
.row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.grow{flex:1}
.pill{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900;background:#e8f2fb;color:#174d79}.pill.good{background:#e6f7ee;color:#126341}.pill.demo{background:#fff0c7;color:#825000}.pill.dark{background:#12395d;color:#fff}
.grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:17px;margin-top:17px}
.sidebar,.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.sidebar{padding:15px;height:max-content;position:sticky;top:85px}.progress-ring{width:112px;height:112px;border-radius:50%;margin:0 auto 13px;display:grid;place-items:center;background:conic-gradient(var(--blue) var(--p),#e8eef5 0);position:relative}.progress-ring:before{content:"";position:absolute;inset:10px;background:white;border-radius:50%}.progress-ring b{position:relative;font-size:23px}
.nav{display:grid;gap:7px}.navbtn{border:0;background:#f5f7fa;border-radius:13px;padding:9px 10px;display:grid;grid-template-columns:30px 1fr auto;align-items:center;text-align:left;gap:9px;color:#1d3d5f}.navbtn.active{background:#eaf4ff;outline:1px solid #9fc8ee}.navbtn.done{background:#eff9f4}.num{width:28px;height:28px;border-radius:9px;background:#e1ebf5;display:grid;place-items:center;font-size:12px;font-weight:900}.navbtn.done .num{background:#16855e;color:#fff}.navtitle{font-size:12px;font-weight:900}.navsub{font-size:10px;color:#71849a;margin-top:2px}.navstate{font-size:10px;font-weight:900;color:#17845e}
.main{min-width:0}.card{padding:22px}.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:23px;align-items:center}.hero h2{font-size:42px;line-height:1.03;margin:8px 0 12px;letter-spacing:-.04em}.hero p{font-size:16px;line-height:1.65;color:#445b73}.kicker{display:inline-flex;border-radius:999px;background:#e7f3ff;color:#1762a6;font-weight:900;font-size:11px;padding:6px 9px;letter-spacing:.04em}.hero img,.visual img{width:100%;display:block;border-radius:20px;background:#eef4f8}.hero-points{display:grid;gap:9px;margin:15px 0}.hero-point{display:grid;grid-template-columns:28px 1fr;gap:9px;align-items:start}.hero-point b{width:24px;height:24px;border-radius:8px;background:#e8f7ef;color:#14704d;display:grid;place-items:center;font-size:11px}
.identity{margin-top:17px;border:1px solid var(--line);border-radius:17px;padding:15px;background:#fbfdff}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.field{display:grid;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:900;color:#435b73}input,select{width:100%;padding:10px 11px;border:1px solid #c5d5e5;border-radius:11px;background:#fff;color:var(--ink)}
.btn{border:0;border-radius:12px;background:#e8eef5;color:#1a4167;padding:10px 14px;font-weight:900}.btn.primary{background:var(--blue);color:white}.btn.secondary{background:#174f80;color:#fff}.btn.ghost{background:#fff;border:1px solid #c6d6e6}.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:12px}
.mission-head{display:flex;justify-content:space-between;gap:13px;align-items:flex-start;margin-bottom:14px}.mission-head h1{margin:5px 0 5px;font-size:32px;letter-spacing:-.025em}.mission-head p{margin:0;color:#587086;line-height:1.5}.points{border-radius:15px;background:#eef5ff;border:1px solid #bad6f0;padding:10px 13px;font-weight:900;white-space:nowrap}
.learn-flow-head{display:flex;justify-content:center;gap:11px;align-items:center;border:1px solid #c9dcef;background:#f0f6fd;border-radius:14px;padding:10px;font-weight:900;font-size:12px;color:#274b6e;margin-bottom:14px}
.lesson-grid{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(440px,1.18fr);gap:20px;align-items:start}.lesson-column{display:grid;gap:12px}.learn-intro{border:1px solid #cce0ef;background:linear-gradient(135deg,#eef7ff,#f3fbf7);border-radius:17px;padding:16px}.learn-intro h2{margin:7px 0;font-size:21px}.learn-intro p{margin:0;color:#4c6278;line-height:1.6}.learn-pill{display:inline-flex;border-radius:999px;background:#1d70c3;color:white;padding:5px 9px;font-size:10px;font-weight:950;letter-spacing:.08em}.learn-pill.practice{background:#17845e}
.lesson-card{display:grid;grid-template-columns:34px 1fr;gap:11px;border:1px solid #d7e2ee;background:#fff;border-radius:15px;padding:14px}.lesson-step{width:32px;height:32px;border-radius:10px;background:#e8f2fc;color:#1a639f;display:grid;place-items:center;font-weight:950}.lesson-card h3{margin:0 0 5px;font-size:15px}.lesson-card p{margin:0;color:#4e6377;line-height:1.57;font-size:13px}.lesson-card ul,.lesson-check ul{margin:7px 0 0;padding-left:18px}.lesson-card li,.lesson-check li{margin:6px 0;font-size:13px;line-height:1.5}.lesson-check{border:1px solid #f0d095;background:#fff8e9;border-radius:15px;padding:14px;color:#58441b}
.teacher-box{border:1px solid #c7d9ed;background:#eef5fd;border-radius:16px;padding:13px;display:flex;justify-content:space-between;gap:12px;align-items:center}.teacher-box strong{display:block;font-size:12px}.teacher-text{font-size:12px;color:#385470;line-height:1.55;margin-top:4px}.ready-card{border:1px solid #b9dfcf;background:#eef9f4;border-radius:15px;padding:14px}.ready-card strong{color:#145e45}.ready-card p{font-size:12px;color:#4e6b60}
.info-card{margin-top:10px;border:1px solid #d9e3ed;border-radius:14px;padding:13px;background:#fbfdff}.info-card strong{font-size:12px}.info-card p{font-size:12px;color:#4f6579;line-height:1.55;margin:6px 0 0}.audio-card{margin-top:10px;border:1px solid #cbdced;border-radius:14px;background:#f5f9fd;padding:11px;display:grid;gap:8px}.audio-card .audio-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.audio-card audio{width:100%}.audio-label{font-size:11px;font-weight:900}.audio-sub{font-size:10px;color:#718399}
.practice-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #c6e0d5;background:#f0f9f5;border-radius:15px;padding:11px 13px;margin-bottom:15px}.practice-toolbar>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.practice-toolbar strong{font-size:12px;color:#245a48}
.stage-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(430px,1.2fr);gap:18px}.question-shell{border:1px solid #d5e1ed;border-radius:17px;padding:15px;background:#fff}.question-top{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#5d7085;font-weight:850}.bar{height:8px;background:#e7edf4;border-radius:999px;overflow:hidden;margin:10px 0 14px}.bar span{display:block;height:100%;background:linear-gradient(90deg,#287ac9,#1c9368)}.question-shell h3{font-size:18px;line-height:1.45;margin:0 0 12px}.option-list{display:grid;gap:8px}.option-btn{width:100%;text-align:left;border:1px solid #c7d6e5;background:#fff;border-radius:12px;padding:11px 12px;color:#1a3654}.option-btn:hover{background:#f0f6fd;border-color:#8bb8df}.letter{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#e9f1f8;margin-right:9px;font-size:11px;font-weight:950}.feedback{display:grid;gap:5px;border-radius:13px;padding:12px;margin-top:11px;font-size:12px}.feedback.ok{background:#eaf8f1;color:#175c44;border:1px solid #abd9c4}.feedback.err{background:#fff0ee;color:#8d2921;border:1px solid #efb4af}.feedback.warn{background:#fff8e8;color:#6d4b0b;border:1px solid #ebca86}.option-lock{border:1px dashed #d5a64e;background:#fff8e8;border-radius:13px;padding:14px;color:#68490f;font-size:12px;font-weight:800}
.finish-grid{display:grid;grid-template-columns:260px 1fr;gap:18px;align-items:start}.score-ring{width:210px;height:210px;border-radius:50%;margin:auto;background:conic-gradient(var(--blue) var(--s),#e8eef5 0);display:grid;place-items:center;position:relative}.score-ring:before{content:"";position:absolute;inset:16px;background:white;border-radius:50%}.score-ring div{position:relative;text-align:center}.score-ring b{font-size:52px}.breakdown{display:grid;gap:7px}.break-row{display:flex;justify-content:space-between;gap:10px;border:1px solid #d7e2ee;border-radius:12px;padding:9px 11px;font-size:12px}.submitbox{margin-top:14px;border:1px solid #c8dced;background:#f3f8fd;border-radius:15px;padding:14px}.submitmsg{margin-top:8px;font-size:12px}
.footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#78899b;padding:16px 4px 6px}
.toast{position:fixed;right:18px;bottom:18px;z-index:999;background:#102c48;color:#fff;padding:11px 13px;border-radius:11px;box-shadow:var(--shadow);max-width:420px}
@media(max-width:1000px){.grid{grid-template-columns:1fr}.sidebar{position:static}.lesson-grid,.stage-grid,.hero{grid-template-columns:1fr}.nav{grid-template-columns:1fr 1fr}.finish-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(max-width:650px){.shell{padding:8px}.topbar{position:static}.nav{grid-template-columns:1fr}.mission-head h1{font-size:26px}.hero h2{font-size:34px}.card{padding:15px}.learn-flow-head{flex-wrap:wrap}}


/* v1.0.1 TEST mode */
.test-mode-box{border:2px dashed #e2a43b;background:#fff8e7;border-radius:14px;padding:11px 12px;margin:10px 0}
.test-switch{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.test-switch input{width:20px;height:20px;margin-top:2px;accent-color:#d27c0d;flex:0 0 auto}
.test-switch span{display:grid;gap:3px}
.test-switch b{font-size:13px;color:#7c4d00}
.test-switch small{font-size:11px;color:#6f5a35;line-height:1.45}
.test-switch code{background:#f3e4bd;padding:1px 4px;border-radius:5px}
