:root{--ink:#202a44;--muted:#78839a;--blue:#2457d6;--blue2:#1e48b9;--bluefade:#ecf1ff;--line:#e9edf5;--paper:#fff;--bg:#f6f8fc;--green:#1b9970;--red:#cc4c59;--gold:#ffc93d;--shadow:0 8px 32px rgba(25,51,112,.055)}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9db7ff;outline-offset:2px}.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;width:245px;height:100vh;display:flex;flex-direction:column;background:white;border-right:1px solid var(--line);padding:28px 18px 20px;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;padding:4px 12px 30px;font-size:18px;line-height:1.1}.brand strong,.brand small{display:block}.brand small{font-size:13px;font-weight:500;color:var(--muted);margin-top:5px}.brandmark{display:flex;align-items:center;justify-content:center;background:var(--blue);color:white;border-radius:16px;font-size:28px;font-weight:900;letter-spacing:-2px;width:49px;height:49px;transform:rotate(-5deg);flex-shrink:0}.brandmark span{color:var(--gold)}.course{background:#f2f5fd;border-radius:13px;padding:13px 14px;font-weight:700;margin-bottom:20px}.course small{display:block;color:var(--muted);font-size:12px;font-weight:500;margin-top:4px}.nav{display:grid;gap:6px}.navlink{border:0;background:transparent;text-align:left;border-radius:11px;padding:13px 15px;font-weight:650;color:#626f87}.navlink:hover{background:#f5f7fd}.navlink.active{color:var(--blue);background:var(--bluefade)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 9px 0;display:flex;align-items:center;justify-content:space-between}.tiny-pill{padding:5px 10px;background:#eef3ff;border-radius:20px;color:var(--blue);font-size:12px;font-weight:800}.textbutton{border:0;background:none;color:var(--blue);font-weight:700;padding:6px}.textbutton:hover{text-decoration:underline}.main{flex:1;min-width:0}.topbar{height:78px;background:white;border-bottom:1px solid var(--line);padding:0 48px;display:flex;justify-content:space-between;align-items:center}.breadcrumb{font-size:11px;color:#8b94aa;letter-spacing:1.4px;font-weight:800}.breadcrumb span{color:#c4cbda}.breadcrumb span:last-child{color:var(--blue)}.avatar{display:flex;width:36px;height:36px;align-items:center;justify-content:center;background:#fff2cc;border-radius:50%;font-weight:800;color:#8a6500}.menu-toggle{display:none;background:transparent;border:0;font-size:24px}.content{max-width:1170px;padding:40px 48px;margin:0 auto}.page{display:none}.page.active{display:block}.hero{display:flex;justify-content:space-between;align-items:center;min-height:242px;background:linear-gradient(119deg,#2457d6,#316ce5);border-radius:22px;color:white;padding:33px 42px;overflow:hidden;position:relative}.hero>div:first-child{position:relative;z-index:2;max-width:550px}.eyebrow{font-size:11px;letter-spacing:1.55px;color:var(--blue);font-weight:850}.eyebrow.light{color:#d3e2ff}.hero h1{font-size:36px;margin:12px 0 7px;letter-spacing:-1px;line-height:1.2}.hero p{color:#e3ebff;max-width:425px;margin:0 0 20px}.hero-btn{background:white;color:#2457d6;border:0}.hero-btn:hover{background:#fff7df}.hero-btn span{margin-left:14px}.hero-art{position:absolute;right:40px;top:10px;width:260px;height:250px;display:flex;align-items:center;justify-content:center}.circle-large{width:165px;height:165px;border-radius:50%;background:var(--gold);color:#2053cb;font-size:76px;font-weight:900;display:flex;align-items:center;justify-content:center;transform:rotate(13deg);box-shadow:0 15px 30px rgba(0,0,0,.1)}.float-word{position:absolute;background:white;color:var(--blue);padding:7px 14px;border-radius:14px;font-weight:750;box-shadow:0 6px 20px rgba(0,0,0,.08)}.float-one{top:30px;left:0;transform:rotate(-12deg)}.float-two{bottom:27px;right:5px;transform:rotate(8deg)}.button{border-radius:11px;min-height:43px;padding:10px 20px;font-weight:750;border:1px solid transparent;transition:background .12s,transform .12s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--blue);color:white}.button.primary:hover{background:var(--blue2)}.button.outline{border-color:#cdd9f2;background:white;color:var(--blue)}.button.success{background:#e1f8ed;color:#087452}.button.danger{background:#fff0f2;color:#b43d4a}.button.small{font-size:13px;min-height:35px;padding:7px 11px}.button.full{width:100%}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:24px 0 34px}.stat-card{display:flex;flex-direction:column;align-items:flex-start;background:white;padding:20px;border-radius:16px;border:1px solid var(--line);box-shadow:var(--shadow)}.stat-card strong{font-size:29px;letter-spacing:-.7px;margin-top:12px}.stat-card>span:last-child{font-size:12px;color:var(--muted);font-weight:600}.stat-icon{font-size:21px;border-radius:12px;padding:7px 12px}.stat-icon.blue{background:#eaf0ff;color:#2861d8}.stat-icon.violet{background:#f1edff;color:#8862cc}.stat-icon.amber{background:#fff4d9;color:#bb891e}.stat-icon.green{background:#e8f8ee;color:#158764}.section-title{display:flex;align-items:center;justify-content:space-between;margin:2px 0 17px;gap:12px}.section-title h2,.panel h2{font-size:21px;letter-spacing:-.4px;margin:0}.section-title p{margin:3px 0 0;color:var(--muted);font-size:13px}.unit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.unit-card{background:white;border:1px solid var(--line);border-radius:15px;padding:19px 21px;box-shadow:var(--shadow)}.unit-card .unit-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.unit-name{font-weight:850}.unit-count{color:#9aa3b5;font-size:12px}.unit-card p{font-size:13px;color:#738199;margin:7px 0 13px}.meter{height:8px;border-radius:8px;background:#e9edf6;overflow:hidden}.meter-fill{height:100%;background:linear-gradient(90deg,#2c65e6,#33b69a);width:0;transition:width .25s}.unit-action{display:flex;justify-content:space-between;align-items:center;margin-top:14px;color:var(--blue);font-weight:750;font-size:13px}.unit-action button{background:none;border:0;color:var(--blue);font-weight:800}.hint{background:#fff8e9;color:#655128;padding:17px 19px;border-radius:13px;margin-top:26px;font-size:13px;border:1px solid #f6e8c5}.page-head{margin-bottom:25px}.page-head h1{font-size:33px;letter-spacing:-.9px;margin:8px 0 4px}.page-head p{color:var(--muted);margin:0}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:26px 30px;box-shadow:var(--shadow)}.panel>h2{margin-bottom:10px}.spacer-panel{margin-top:22px}.config-panel{max-width:790px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px}.field{margin-bottom:21px}.field label,.flash-card label,.login-card form label{display:block;font-size:13px;font-weight:750;margin-bottom:9px;color:#515e77}.field select,.flash-card input,.login-card input,.grade-fields input,.editor-row input{width:100%;background:#fafbff;border:1px solid #dce3f0;border-radius:10px;padding:12px 13px;color:var(--ink);min-width:0}.narrow{max-width:190px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:22px}.mode-choice{border:2px solid var(--line);border-radius:14px;padding:17px;display:grid;gap:4px;cursor:pointer}.mode-choice.selected{border-color:#4272ea;background:#f5f8ff}.mode-choice input{position:absolute;opacity:0}.mode-icon{font-size:22px;color:var(--blue)}.mode-choice small{font-size:12px;color:var(--muted)}.checkline{display:flex;gap:9px;align-items:center;font-size:13px;margin-bottom:24px;color:#4e5b72}.checkline input{width:17px;height:17px}.stage-top{display:flex;justify-content:space-between;align-items:center;max-width:790px;margin-bottom:14px}.stage-top + .meter{max-width:790px}.pill{border-radius:20px;padding:6px 12px;background:#e9f0ff;color:var(--blue);font-size:12px;font-weight:800}.flash-card{background:white;border-radius:22px;border:1px solid var(--line);box-shadow:var(--shadow);max-width:790px;margin-top:18px;min-height:320px;padding:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:15px}.card-eyebrow{color:var(--muted);letter-spacing:1.7px;font-size:11px;font-weight:800}.prompt{font-size:clamp(24px,3.2vw,39px);font-weight:850;line-height:1.25;overflow-wrap:anywhere}.speak-btn{background:#eef3ff;color:var(--blue);border:none;border-radius:22px;padding:7px 15px;font-size:13px;font-weight:750}.card-answer{border-top:1px dashed #dbe3f0;padding-top:21px;margin-top:10px;width:100%;display:grid;gap:7px}.card-answer span{font-size:11px;letter-spacing:1.4px;color:var(--muted);font-weight:800}.card-answer strong{font-size:27px;color:var(--blue);overflow-wrap:anywhere}.write-area{width:min(100%,480px);text-align:left}.write-area form{display:flex;gap:10px}.write-area input{flex:1;min-width:100px}.rate-row{display:flex;gap:14px;max-width:790px;justify-content:center;margin-top:20px}.next-button{display:block;margin:20px auto 0}.response-message{font-weight:700}.response-message.ok{color:var(--green)}.response-message.fail{color:var(--red)}.finish-panel{max-width:790px;text-align:center;margin-top:20px}.finish-emoji{font-size:50px}.finish-panel h2{font-size:26px;margin:9px 0}.finish-panel p{color:var(--muted)}.flash-card>input{max-width:510px;text-align:center;font-size:19px}.flash-card>label{margin-bottom:-8px}.disclaimer{font-size:12px;color:var(--muted);max-width:620px;margin:0 0 20px}.grade-card{max-width:790px;display:grid;justify-items:center;gap:10px;padding:33px;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);text-align:center}.grade-circle{width:114px;height:114px;background:#eaf8f0;color:#198b65;border-radius:50%;display:grid;place-content:center;font-size:54px;font-weight:900}.grade-card h2{font-size:26px;margin:0}.grade-card p{margin:0;color:var(--muted)}.result-review{max-width:790px;margin-top:24px}.review-item{display:grid;grid-template-columns:30px 1fr auto;gap:12px;border-bottom:1px solid var(--line);padding:12px 3px;align-items:start}.review-item:last-child{border-bottom:0}.review-item strong{font-size:14px}.review-item small{display:block;color:var(--muted);margin-top:4px}.review-item .good{color:var(--green)}.review-item .bad{color:var(--red)}.history-list{display:grid;gap:12px}.history-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:12px 0}.history-row:last-child{border-bottom:0}.history-row strong{font-size:15px}.history-row small{display:block;color:var(--muted);margin-top:3px}.history-note{font-weight:900;color:var(--blue);font-size:20px}.progress-row{display:grid;grid-template-columns:175px 1fr 80px;align-items:center;gap:18px;margin-top:20px;font-size:14px}.progress-row .meter{height:9px}.progress-row small{text-align:right;color:var(--muted)}.footer{margin:38px 0 8px;font-size:12px;text-align:center;color:#a2abbc}.muted{color:var(--muted)}.loading{padding:18px;color:var(--muted)}.hidden{display:none!important}#toast{position:fixed;bottom:25px;right:25px;background:#202a44;color:white;padding:12px 18px;border-radius:12px;box-shadow:0 9px 35px #202a4433;z-index:100;display:none;max-width:360px}#toast.visible{display:block}.editor-list{display:grid;gap:14px}.editor-row{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fafcff}.editor-row .edit-title{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px}.editor-row .edit-title span{color:var(--muted);font-size:12px}.editor-row .edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.editor-row .edit-grid label{font-size:12px;color:var(--muted)}.editor-row button{margin-top:12px}.grade-fields{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:17px}.grade-fields label{font-size:13px;font-weight:750}.grade-fields input{margin-top:7px}#csvForm{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 10%,#dae6ff,transparent 45%),#f7f9fe}.login-card{width:min(440px,calc(100% - 32px));background:white;padding:40px;border:1px solid var(--line);border-radius:24px;box-shadow:0 25px 70px #194ca51b}.login-card h1{font-size:32px;margin:12px 0 2px}.login-card>p{color:var(--muted)}.login-card form{display:grid;gap:11px;margin:28px 0 16px}.login-card .brandmark{margin-bottom:25px}.login-card .small{font-size:12px;margin-top:26px}.error{background:#fff0f0;color:#ad2235;border-radius:9px;padding:10px}
@media(max-width:1050px){.content{padding:30px 28px}.topbar{padding:0 28px}.sidebar{width:220px}.hero-art{right:7px;opacity:.7}.hero>div:first-child{max-width:430px}.stat-grid{gap:10px}.stat-card{padding:15px}}@media(max-width:760px){.sidebar{position:fixed;z-index:30;left:0;top:0;transform:translateX(-100%);transition:transform .2s;box-shadow:0 10px 50px #22334422}.sidebar.open{transform:translateX(0)}.topbar{height:60px;padding:0 18px}.menu-toggle{display:block}.breadcrumb{margin-right:auto;margin-left:14px}.content{padding:20px 16px}.hero{padding:27px 23px;min-height:220px}.hero h1{font-size:29px}.hero-art{right:-135px;top:35px;opacity:.25}.stat-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin:15px 0 25px}.unit-grid{grid-template-columns:1fr}.two-cols,.mode-grid{grid-template-columns:1fr;gap:4px}.mode-grid{gap:10px}.panel{padding:20px}.flash-card{padding:25px 18px;min-height:300px}.prompt{font-size:27px}.rate-row{flex-direction:column}.write-area form{flex-direction:column}.page-head h1{font-size:28px}.grade-fields{grid-template-columns:repeat(3,1fr)}.progress-row{grid-template-columns:100px 1fr 55px;gap:10px}.editor-row .edit-grid{grid-template-columns:1fr}.section-title h2{font-size:19px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
