:root{color-scheme:light;--canvas:#fffbf5;--surface:#fff;--ink:#202b40;--muted:#758093;--line:#e9edf0;--nav:#20293b;--orange:#ff7a45;--orange-dark:#d94f21;--orange-soft:#fff0e6;--green:#378366;--green-soft:#eaf6ee;--blue:#467abb;--blue-soft:#edf3fc;--radius:20px;--shadow:0 8px 28px rgba(29,43,65,.045);font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--canvas);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button{color:inherit}a{color:inherit;text-decoration:none}img,svg{max-width:100%}img{object-fit:contain}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,2.4vw,34px);font-weight:750;line-height:1.35;letter-spacing:-1px}h2{font-size:19px;line-height:1.4;letter-spacing:-.3px}h3{font-size:16px;line-height:1.5}p+p{margin-top:8px}button,a,input,select,textarea{touch-action:manipulation}:focus-visible{outline:3px solid #568fc1;outline-offset:4px}::selection{background:#ffdec8}.hidden,[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted{color:var(--muted)}.mobile-label{display:none}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:220px;display:flex;flex-direction:column;background:var(--nav);color:#d1d8e5;padding:30px 18px 22px}.brand{display:flex;align-items:center;gap:11px;padding:0 12px;margin-bottom:39px;font-size:21px;font-weight:750;letter-spacing:.5px;color:#fff}.brand-mark{flex:0 0 36px;width:36px;height:40px;background:var(--orange);color:#fff;display:grid;place-items:center;border-radius:12px 12px 12px 4px;font-size:23px;box-shadow:0 4px 12px #0002}.brand-sub{font-size:10px;font-weight:400;letter-spacing:2px;color:#9ca8ba;margin-top:1px}.nav-items{display:flex;flex-direction:column;gap:9px}.nav-button{width:100%;min-height:48px;border:0;border-radius:12px;background:transparent;color:#a9b5c8;padding:12px 17px;display:flex;align-items:center;gap:13px;font-weight:550;text-align:left;transition:background .18s,color .18s}.nav-button:hover{color:#fff;background:#ffffff0c}.nav-button[aria-current=page]{background:var(--orange);color:#fff;box-shadow:0 5px 14px #f5744526}.nav-icon{width:21px;flex:none;font-size:20px;display:inline-grid;place-items:center;line-height:1}.nav-icon svg{width:21px;height:21px}.sidebar-foot{margin-top:auto;padding:20px 12px 0;font-size:12px;color:#91a0b7;border-top:1px solid #ffffff13}.sidebar-foot strong{color:#d6deea;font-size:13px}.sidebar-foot p{margin-top:8px}.workspace{margin-left:220px;min-width:0}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(24px,3.5vw,52px);border-bottom:1px solid #eeeae5;background:#fffcf8e8}.breadcrumb{display:flex;gap:10px;align-items:center;font-size:13px;color:#8a8e99}.breadcrumb strong{color:#4a5566;font-weight:550}.top-actions{display:flex;align-items:center;gap:14px;min-width:0}.avatar{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;flex:none;color:#a5613d;background:#f7e8d5;font-size:14px;font-weight:700}.grade-select{width:auto;max-width:170px;min-height:36px!important;border:1px solid #e6e3de!important;border-radius:9px!important;padding:6px 28px 6px 12px!important;background:#fff!important;font-size:13px!important}.page{width:100%;max-width:1320px;margin:0 auto;padding:34px clamp(24px,3.5vw,52px) 52px;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-heading p{margin-top:8px}.eyebrow{display:block;text-transform:uppercase;font-size:11px;font-weight:650;letter-spacing:2.4px;color:#a58972;margin-bottom:8px}.page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{border:1px solid transparent;border-radius:10px;padding:10px 18px;min-height:42px;font-size:13px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;gap:8px;line-height:1.5;white-space:nowrap;transition:background .18s,transform .18s,box-shadow .18s;text-align:center}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn.primary{background:var(--orange);color:#fff;box-shadow:0 4px 10px #ff7a4520}.btn.primary:hover:not(:disabled){background:#ed6936;box-shadow:0 5px 14px #ff7a4533}.btn.secondary{border-color:#e5e8ec;background:#fff;color:#405066}.btn.secondary:hover:not(:disabled){border-color:#cdd6e0;background:#fafbfc}.btn.ghost{background:transparent;color:#69788b;padding-inline:10px}.btn.ghost:hover:not(:disabled){background:#f0f2f4}.btn.small{padding:7px 12px;font-size:12px;min-height:34px;border-radius:8px}.btn.danger{color:#b7443b;border-color:#f4d8d3;background:#fff5f2}.btn.danger:hover:not(:disabled){background:#ffebe6}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:22px;margin-bottom:24px}.dashboard-grid>*{min-width:0}.hero-card{display:flex;align-items:center;position:relative;min-height:245px;border:1px solid #f1dfce;background:#fff1e2;border-radius:var(--radius);padding:30px 32px;overflow:hidden}.hero-copy{position:relative;z-index:2;flex:1;min-width:0}.hero-copy h2{font-size:clamp(23px,2.1vw,31px);line-height:1.45;font-weight:750;letter-spacing:-1px}.hero-copy h2 em,.hero-copy h2 span{font-style:normal;color:#e27440}.hero-copy>p{max-width:290px;color:#977d69;margin-top:10px;font-size:13px;line-height:1.8}.hero-copy .btn{margin-top:20px}.hero-meta{display:flex;align-items:center;gap:14px;font-size:11px;color:#ad8568;margin-top:15px}.hero-art{position:relative;flex:0 0 165px;width:165px;height:190px;display:flex;align-items:center;justify-content:center;margin-left:14px}.hero-art>svg{width:155px;height:175px;position:relative;z-index:1;filter:drop-shadow(0 12px 12px #aa723018)}.hero-orbit{position:absolute;inset:5px -12px;border:1px dashed #e9c9a4;border-radius:50%;transform:rotate(-22deg)}.hero-core{width:112px;height:112px;border-radius:32px;background:#fff9f1;display:grid;place-items:center;box-shadow:0 13px 0 #efc49c,0 19px 24px #96662916;font-size:58px;transform:rotate(-8deg);position:relative;z-index:1}.hero-spark{position:absolute;z-index:2;width:34px;height:34px;background:#fff9f0;border:1px solid #eed9bc;display:grid;place-items:center;border-radius:11px;box-shadow:0 5px 15px #9d692510;font-size:16px;top:1px;right:2px;transform:rotate(12deg)}.hero-spark:nth-last-child(2){top:auto;right:auto;left:-2px;bottom:10px;transform:rotate(-14deg)}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 28px}.stat-card{position:relative;background:#fff;border:1px solid #ecebe7;border-radius:16px;padding:21px 23px;box-shadow:var(--shadow);min-width:0}.stat-label{font-size:12px;color:#8a909b;font-weight:500}.stat-value{font-size:30px;font-weight:750;line-height:1.25;letter-spacing:-.8px;margin:10px 0 5px;font-variant-numeric:tabular-nums}.stat-value small{font-size:12px;font-weight:500;color:#9a9fab;letter-spacing:0;margin-left:6px}.stat-card p,.stat-card>.muted{font-size:11px}.stat-icon{position:absolute;right:19px;top:18px;display:grid;place-items:center;background:#f6f7f8;border-radius:10px;width:33px;height:33px;color:#798ca2;font-size:17px}.stat-card:nth-child(1) .stat-icon{background:var(--orange-soft);color:#df804d}.stat-card:nth-child(2) .stat-icon{background:var(--blue-soft);color:var(--blue)}.stat-card:nth-child(3) .stat-icon{background:var(--green-soft);color:var(--green)}.stat-card:nth-child(4) .stat-icon{background:#faf1d9;color:#bc9638}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.section-heading h2{font-size:17px}.section-heading .muted{font-size:12px}.panel{padding:24px;background:#fff;border:1px solid #ecebe7;border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.review-list{display:flex;flex-direction:column;gap:0}.review-row{display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid #f0f1f2;min-width:0}.review-row:first-child{padding-top:3px}.review-row:last-child{border-bottom:0;padding-bottom:2px}.subject-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;font-weight:700;font-size:17px;color:#467bbb;background:#edf3fc}.row-main{flex:1;min-width:0}.row-main h3,.row-main strong{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#939aa5;font-size:11px;margin-top:4px}.badge{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;padding:4px 9px;border-radius:6px;font-size:10px;line-height:1.5;font-weight:550;background:#f3f4f6;color:#7c8796;white-space:nowrap}.badge.orange{background:var(--orange-soft);color:#cc784b}.badge.green{background:var(--green-soft);color:var(--green)}.badge.blue{background:var(--blue-soft);color:#5280b4}.progress-track{height:6px;overflow:hidden;border-radius:99px;background:#f0f1f3;width:100%;margin:12px 0}.progress-fill{height:100%;max-width:100%;background:#ee996c;border-radius:inherit;transition:width .3s}.weekly-bars{height:132px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:5px 3px 0}.day-column{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}.day-bar{width:100%;max-width:29px;min-height:5px;background:#e8eef3;border-radius:6px 6px 3px 3px;position:relative}.day-bar.today,.day-column.today .day-bar{background:#ffa877}.day-bar span{position:absolute;top:-24px;left:50%;transform:translateX(-50%);font-size:11px;color:#ac794e}.day-label{font-size:10px;color:#9ba2ae;white-space:nowrap}.motivation-card{position:relative;background:#eaf1eb;border:1px solid #dfe9e0;border-radius:var(--radius);padding:28px;overflow:hidden;display:flex;flex-direction:column;justify-content:center;min-width:0}.motivation-card h2{font-size:21px;color:#466f58;margin-bottom:9px}.motivation-card p{color:#7a927e;font-size:12px;line-height:1.9}.motivation-card svg{max-height:90px;align-self:flex-end}.motivation-card .progress-track{background:#d7e5d9}.motivation-card .progress-fill{background:#7eab86}.motivation-card .btn{align-self:flex-start;margin-top:18px;background:#fff9;color:#4c765a;border-color:#cadfce}.motivation-card .xp-pill{align-self:flex-start;margin:12px 0 0;background:#fff9;color:#5e8265}
.chip-row{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #e6e8eb;background:#fff;color:#7c8796;min-height:35px;padding:7px 13px;border-radius:9px;font-size:12px;line-height:1.5;white-space:nowrap}.chip:hover{border-color:#edba9a;color:#c5784c}.chip.active{color:#c87648;background:var(--orange-soft);border-color:#f3ccb4;font-weight:650}.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}.search-input{width:240px!important;max-width:100%;min-height:38px!important;background:#fff!important;font-size:12px!important}.wrong-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.wrong-card{border:1px solid #e7e9ed;border-radius:17px;background:#fff;padding:21px;display:flex;flex-direction:column;min-height:230px;box-shadow:var(--shadow);transition:border-color .18s,box-shadow .18s,transform .18s;min-width:0}.wrong-card:hover{border-color:#e8bea3;box-shadow:0 7px 25px #33221409;transform:translateY(-2px)}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.card-top .subject-icon{height:30px;width:30px;flex-basis:30px;border-radius:9px;font-size:13px}.card-top>span{font-size:12px;font-weight:600}.question-stem{font-size:14px;font-weight:550;line-height:1.85;color:#4a5566;overflow-wrap:anywhere;white-space:pre-wrap;margin-bottom:14px}.wrong-card .question-stem{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:78px}.wrong-card img{display:block;width:100%;height:115px;object-fit:contain;border-radius:8px;background:#fbfcfd;margin:0 0 12px}.card-meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:11px;color:#9a9faa;margin-top:auto;padding-top:9px}.card-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:16px;padding-top:13px;border-top:1px solid #f0f1f3}.card-footer>.muted{font-size:10px}.empty-state{text-align:center;padding:55px 24px;border:1px dashed #dde2e7;border-radius:18px;background:#fff8;color:#8e98a7;grid-column:1/-1}.empty-state h2,.empty-state h3{margin:12px 0 7px;color:#58677b}.empty-state p{max-width:370px;margin:0 auto 18px;font-size:13px}.empty-icon{width:70px;height:70px;margin:auto;display:grid;place-items:center;font-size:30px;background:#fff0e2;color:#dda77a;border-radius:22px}.empty-icon svg{width:36px;height:36px}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:#18233273;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:28px;overflow-y:auto;animation:fade-in .15s ease-out}.modal{width:100%;max-width:540px;max-height:calc(100dvh - 56px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #fff9;border-radius:23px;box-shadow:0 30px 90px #17213340;padding:28px;animation:slide-in .2s ease-out}.modal.wide{max-width:760px}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.modal-heading h2{font-size:22px}.modal-heading p{font-size:12px;color:var(--muted);margin-top:6px}.close-button{background:#f4f5f7;border:0;color:#8c96a4;font-size:22px;border-radius:10px;min-width:34px;height:34px;display:grid;place-items:center;line-height:1;flex:none}.close-button:hover{background:#e8ebef;color:#48586f}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{min-width:0}.field.full{grid-column:1/-1}.field label{display:block;font-size:12px;font-weight:600;color:#536177;margin:0 0 8px}.field label span{font-size:11px;font-weight:400;color:#a3a9b3}.field .muted{font-size:11px;margin-top:6px}input,select,textarea{width:100%;max-width:100%;min-width:0;min-height:43px;padding:10px 12px;border:1px solid #dde3e9;background:#fdfefe;border-radius:10px;color:#394b61;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#c9a281;box-shadow:0 0 0 3px #f4e6d74d}input::placeholder,textarea::placeholder{color:#adb4be}input[type=checkbox],input[type=radio]{width:17px;height:17px;min-height:0;accent-color:var(--orange);padding:0;flex:none}input[type=file]{font-size:12px}textarea{min-height:95px;resize:vertical;line-height:1.8}.image-picker{display:flex;align-items:center;justify-content:center;gap:10px;padding:22px;border:1.5px dashed #d8dfe6;border-radius:11px;background:#fafcfd;font-size:12px;color:#8d9aae;cursor:pointer;text-align:center;min-height:90px}.image-picker:hover{border-color:#d9b392;background:#fffcf8}.image-picker input{max-width:100%;border:0;background:none}.image-preview{position:relative;background:#f5f7f9;border-radius:11px;overflow:hidden;margin-top:12px;max-height:240px}.image-preview img{display:block;width:100%;max-height:240px;object-fit:contain}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:26px;padding-top:20px;border-top:1px solid #eef0f2}.detail-stem{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.95;margin-bottom:18px;color:#34455c}.detail-image{display:block;max-width:100%;max-height:450px;object-fit:contain;margin:16px auto;border-radius:10px;background:#f7f9fa}.answer-box{border:1px solid #dce9df;background:#f0f7f1;border-radius:13px;padding:18px;color:#477653;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;margin-top:18px}.answer-box h3{color:#3c6e4d;font-size:13px;margin-bottom:8px}.hint-box{padding:13px 16px;border:1px solid #eddfc4;background:#fff9ec;border-radius:11px;color:#a18850;font-size:12px;line-height:1.8;margin:16px 0}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.detail-grid>div{padding:14px;background:#f6f8fa;border-radius:10px;overflow-wrap:anywhere}.detail-grid label,.detail-grid .muted{font-size:11px;color:#8d98a6;display:block;margin-bottom:5px}
.review-shell{max-width:820px;margin:0 auto}.review-progress{display:flex;align-items:center;gap:16px;margin-bottom:25px;font-size:12px;color:#99a2af}.review-progress .progress-track{flex:1}.review-card{padding:35px;background:#fff;border:1px solid #e6e9ed;border-radius:23px;box-shadow:var(--shadow);margin-bottom:18px}.review-card .question-stem{font-size:20px;margin:20px 0 25px;font-weight:550}.review-card .detail-image{max-height:330px}.option{width:100%;display:flex;align-items:center;gap:14px;min-height:55px;padding:12px 16px;margin-top:11px;border:1px solid #e0e6ec;border-radius:12px;background:#fff;text-align:left;font-size:14px;line-height:1.8;overflow-wrap:anywhere;transition:background .15s,border-color .15s}.option:hover:not(:disabled){border-color:#c6d2df;background:#f8fafc}.option.selected{border-color:#e5a882;background:#fff5eb}.option.correct{border-color:#a2c5ad;background:#eff8f1;color:#3d7551}.option.incorrect{border-color:#e9b1a4;background:#fff2ed;color:#a85643}.option-key{width:27px;height:27px;flex:0 0 27px;border:1px solid #e1e6eb;background:#f7f9fb;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:650;color:#8290a1}.option.selected .option-key{background:var(--orange);border-color:var(--orange);color:#fff}.option.correct .option-key{background:#6caa80;border-color:#6caa80;color:#fff}.option.incorrect .option-key{background:#de927e;border-color:#de927e;color:#fff}.answer-entry{margin-top:24px}.answer-entry label{font-size:12px;color:#8390a3;display:block;margin-bottom:8px}.answer-entry textarea{min-height:100px;background:#fbfcfd}.review-feedback{border-radius:13px;padding:18px 20px;background:#f0f6ef;color:#57745a;margin-top:20px;line-height:1.8}.review-feedback h3{margin-bottom:5px;font-size:15px}.review-feedback p{font-size:13px}.rating-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:20px}.rating-actions .btn{flex:1;min-width:120px}.result-screen{text-align:center;max-width:580px;margin:0 auto;padding:45px 32px;background:#fff;border:1px solid #e8ecea;border-radius:23px}.result-screen h1,.result-screen h2{margin:20px 0 10px}.result-screen p{color:#8994a1;max-width:410px;margin-inline:auto}.result-screen .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:30px 0}.result-screen .stat-card{padding:16px 8px;box-shadow:none;background:#f9fafb;border:0}.result-screen .stat-value{font-size:25px}.result-screen .btn{margin-top:15px}.result-icon{margin:auto;width:85px;height:85px;display:grid;place-items:center;border-radius:27px;background:#fff0d5;font-size:45px}.xp-pill{display:inline-flex;align-items:center;gap:6px;background:#fff4dc;color:#b18b43;border-radius:99px;padding:5px 11px;font-size:11px;font-weight:650;white-space:nowrap}.toast{position:fixed;left:50%;bottom:32px;transform:translateX(-50%);z-index:200;max-width:min(480px,calc(100vw - 32px));padding:13px 22px;border-radius:12px;background:#28384bf2;color:#fff;box-shadow:0 8px 28px #20324724;font-size:13px;text-align:center;pointer-events:none;animation:fade-in .15s ease-out}
.auth-layout{min-height:100dvh;max-width:1140px;margin:0 auto;padding:65px 45px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:85px;align-items:center}.auth-intro{min-width:0}.auth-intro .brand{color:var(--ink);padding:0;margin-bottom:45px}.auth-intro .brand-sub{color:#8f9aab}.auth-intro h1{font-size:clamp(34px,4vw,49px);line-height:1.5;letter-spacing:-2px;margin-bottom:18px}.auth-intro h1 span{color:var(--orange)}.auth-intro>p{font-size:15px;color:#8d918f;line-height:1.9;max-width:390px}.auth-intro>svg{display:block;width:230px;height:210px;max-height:250px;margin:25px auto 0}.auth-intro .hero-art{width:100%;height:230px;margin:20px 0 0}.auth-intro .hero-art>svg{width:230px;height:225px}.auth-card{background:#fff;border:1px solid #eee7df;box-shadow:0 20px 65px #46331c07;border-radius:24px;padding:34px;min-width:0}.auth-card h2{font-size:23px;margin-bottom:7px}.auth-card>.muted{font-size:12px}.auth-tabs{display:flex;background:#f6f6f5;border-radius:10px;padding:4px;gap:4px;margin:25px 0}.auth-tabs button{flex:1;border:0;min-height:37px;border-radius:8px;background:transparent;font-size:13px;color:#9b9c9f;font-weight:550}.auth-tabs button.active,.auth-tabs button[aria-selected=true]{background:#fff;color:#d18152;box-shadow:0 2px 7px #29200e08}.auth-card .field{margin-top:17px}.auth-card .form-grid .field{margin-top:0}.auth-card .btn.primary{width:100%;margin-top:24px;min-height:45px}.auth-card .hint-box{margin:20px 0 0;font-size:11px}.auth-card .form-actions{padding-top:0;margin-top:0;border:0}.settings-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px}.settings-grid .field{margin-bottom:17px}.settings-grid .panel>h2{margin-bottom:20px}.level-card{border:1px solid #eaddc9;background:#fff4df;border-radius:var(--radius);padding:25px}.level-card h2{font-size:22px;color:#a77e48}.level-card p{font-size:12px;color:#aa956f;margin-top:8px}.level-card .progress-track{margin:20px 0 10px;background:#eadec1}.level-card .progress-fill{background:#d6ac61}.milestone{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid #eceef1;color:#a1a9b4;font-size:13px}.milestone:last-child{border:0}.milestone>span:first-child{flex:0 0 37px;display:grid;place-items:center;min-height:37px;font-size:23px;filter:grayscale(1);opacity:.45}.milestone.achieved{color:#4a6758}.milestone.achieved>span:first-child{filter:none;opacity:1}.milestone strong{font-size:13px;display:block}.milestone p{font-size:11px;color:#9aa1ac}.teacher-placeholder{padding:36px;text-align:center;background:#fff;border:1px dashed #dce2e8;border-radius:18px;color:#8f9bab}.teacher-placeholder h2{color:#59697d;margin-bottom:10px}
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes slide-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1550px){.sidebar{padding-top:35px}.topbar{padding-inline:max(52px,calc((100vw - 220px - 1216px)/2))}}
@media(max-width:1190px){.page{padding:28px 25px 40px}.topbar{padding-inline:25px}.hero-card{padding:26px}.hero-art{flex-basis:125px;width:125px;height:165px;margin-left:8px}.hero-core{width:100px;height:100px;font-size:49px}.hero-art>svg{width:130px;height:155px}.motivation-card{padding:24px}.stat-card{padding:19px 17px}.stat-icon{right:14px;top:16px}.wrong-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-layout{gap:45px}}
@media(max-width:1020px){.sidebar{width:190px;padding-inline:13px}.workspace{margin-left:190px}.brand{font-size:19px;padding-inline:9px}.nav-button{padding-inline:14px}.dashboard-grid{grid-template-columns:minmax(0,1fr);gap:18px}.hero-card{min-height:220px}.hero-art{flex-basis:180px;width:180px}.hero-copy>p{max-width:350px}.motivation-card{min-height:150px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-grid{grid-template-columns:1fr}.auth-layout{gap:35px;padding:45px 30px}.auth-card{padding:27px}.auth-intro h1{font-size:37px}.top-actions{gap:9px}}
@media(max-width:720px){body{font-size:14px}.app-shell{padding-bottom:calc(78px + env(safe-area-inset-bottom))}.sidebar{inset:auto 0 0;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:6px 10px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #ececec;box-shadow:0 -4px 22px #1e304507}.sidebar>.brand,.sidebar-foot{display:none}.nav-items{height:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.nav-button{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:5px 1px;font-size:10px;border-radius:11px;color:#959eab;text-align:center;font-weight:550;white-space:nowrap}.nav-button:hover{color:#d8784b;background:#fff5ef}.nav-button[aria-current=page]{background:#fff1e7;color:#df7b48;box-shadow:none}.nav-icon{font-size:19px;height:22px}.nav-icon svg{height:20px;width:20px}.nav-button .desktop-label{display:none}.mobile-label{display:inline}.workspace{margin-left:0;width:100%}.topbar{height:65px;padding:0 20px;gap:10px}.breadcrumb{font-size:11px;gap:6px}.top-actions{gap:8px}.top-actions .btn{padding-inline:8px;min-height:34px;font-size:11px}.top-actions>.muted{display:none}.avatar{width:31px;height:31px;font-size:12px}.grade-select{max-width:118px;padding-left:9px!important;font-size:12px!important;min-height:34px!important}.page{padding:25px 20px 28px}.page-heading{margin-bottom:22px;gap:12px;align-items:flex-start}.page-heading h1{font-size:26px}.page-heading p{font-size:12px;margin-top:7px}.page-heading .eyebrow{font-size:9px;letter-spacing:1.6px}.page-actions{gap:7px;justify-content:flex-end}.page-actions .btn{padding:9px 12px;font-size:12px}.hero-card{padding:24px 23px;min-height:221px}.hero-copy h2{font-size:25px}.hero-copy>p{max-width:240px;font-size:12px}.hero-art{flex:0 0 125px;width:125px;height:170px;margin-left:0}.hero-meta{font-size:10px;gap:9px}.hero-orbit{inset:12px -5px}.hero-spark{width:27px;height:27px;font-size:13px}.hero-core{width:95px;height:100px;font-size:43px}.hero-art>svg{width:122px;height:148px}.stat-grid{gap:12px;margin-bottom:23px}.stat-card{padding:18px 16px}.stat-value{font-size:28px}.stat-label{font-size:11px}.stat-icon{width:29px;height:29px;right:13px;top:14px;font-size:15px}.panel{padding:21px 18px;border-radius:17px}.section-heading{margin-bottom:18px}.section-heading h2{font-size:16px}.section-heading .btn{font-size:11px;padding-inline:6px}.review-row{gap:10px;padding:16px 0}.row-main h3,.row-main strong{font-size:12px}.review-row .btn{padding:7px 11px;font-size:11px;min-height:34px}.review-row .badge{font-size:9px;padding:4px 7px}.subject-icon{width:35px;height:35px;flex-basis:35px;border-radius:10px;font-size:15px}.motivation-card{padding:22px;min-height:155px}.wrong-grid{gap:14px}.wrong-card{padding:17px}.filter-bar{gap:14px}.search-input{width:100%!important}.chip-row{gap:7px}.chip{font-size:11px;padding:7px 11px}.card-footer{flex-wrap:wrap}.modal-backdrop{padding:14px;align-items:center}.modal{padding:23px;max-height:calc(100dvh - 28px);border-radius:18px}.modal-heading h2{font-size:21px}.form-grid{gap:16px}.field label{font-size:12px}.form-actions{gap:9px;margin-top:22px;padding-top:18px}.form-actions .btn{min-height:44px}.detail-stem{font-size:15px}.detail-grid{gap:10px}.detail-image{max-height:320px}.review-card{padding:24px 21px;border-radius:18px}.review-card .question-stem{font-size:17px;line-height:1.85;margin:19px 0}.option{font-size:13px;gap:10px;padding:12px;min-height:53px}.rating-actions{gap:8px}.rating-actions .btn{font-size:12px;min-width:95px}.review-feedback{padding:16px}.result-screen{padding:33px 20px}.result-screen .stat-grid{gap:8px}.result-screen .stat-card{padding:13px 5px}.result-screen .stat-value{font-size:23px}.result-screen .stat-label{font-size:10px}.toast{bottom:calc(89px + env(safe-area-inset-bottom));padding:12px 18px;font-size:12px}.auth-layout{display:flex;flex-direction:column;justify-content:center;gap:28px;padding:33px 22px 40px;min-height:100dvh;max-width:490px}.auth-intro{width:100%;text-align:center}.auth-intro .brand{justify-content:center;display:flex;margin-bottom:24px}.auth-intro h1{font-size:30px;line-height:1.4;letter-spacing:-1px;margin-bottom:12px}.auth-intro>p{font-size:12px;margin-inline:auto;max-width:320px}.auth-intro>.hero-art,.auth-intro>svg{display:none}.auth-card{width:100%;padding:27px 24px;border-radius:20px}.auth-card h2{font-size:21px}.auth-card .btn.primary{min-height:46px}.settings-grid{gap:19px}.level-card{padding:22px}.teacher-placeholder{padding:25px 18px}}
@media(max-width:430px){.topbar{padding-inline:16px}.page{padding:23px 16px 25px}.page-heading{flex-wrap:wrap}.page-heading h1{font-size:25px}.page-heading .page-actions{width:100%;justify-content:flex-start;margin-top:3px}.hero-card{padding:22px 19px;min-height:218px}.hero-copy h2{font-size:24px;letter-spacing:-.7px}.hero-copy>p{max-width:195px;font-size:11px}.hero-copy .btn{padding:10px 14px;margin-top:17px}.hero-art{flex-basis:97px;width:97px;height:148px;margin-left:-4px}.hero-art>svg{width:106px;height:132px;max-width:none}.hero-orbit{inset:9px -2px}.hero-core{width:76px;height:83px;border-radius:24px;font-size:34px}.hero-spark{width:23px;height:23px;border-radius:8px;font-size:11px}.hero-meta{gap:8px;font-size:9px}.wrong-grid{grid-template-columns:minmax(0,1fr)}.wrong-card{padding:20px;min-height:200px}.wrong-card .question-stem{-webkit-line-clamp:3}.card-footer{flex-wrap:nowrap}.stat-icon{width:26px;height:26px;right:11px;top:14px;font-size:13px}.stat-label{max-width:105px;font-size:10px}.stat-card{padding:16px 14px}.stat-value{font-size:26px}.stat-card p,.stat-card>.muted{font-size:10px}.stat-value small{font-size:10px;margin-left:4px}.review-row{gap:9px}.review-row .badge{display:none}.review-row .row-meta{gap:5px;font-size:10px}.review-row .btn{padding-inline:8px}.form-grid,.detail-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal{padding:21px 18px}.modal-heading{gap:12px}.form-actions{flex-wrap:wrap}.rating-actions .btn{flex:1 1 calc(50% - 8px)}.review-card{padding:22px 18px}.auth-layout{padding:26px 18px 35px;gap:23px}.auth-card{padding:25px 21px}.auth-intro h1{font-size:28px}.auth-intro .brand{font-size:20px}.auth-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.breadcrumb{font-size:10px}.top-actions{gap:6px}.top-actions .btn{padding-inline:6px;font-size:10px}.grade-select{max-width:100px}.avatar{width:29px;height:29px}.page-heading .btn{min-height:40px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.btn:hover:not(:disabled),.wrong-card:hover{transform:none}}

/* Live page structure, learning companion and reports. */
.sidebar .brand{font-size:20px;letter-spacing:0}.brand>span:last-child{min-width:0;white-space:nowrap}.brand-sub{white-space:nowrap;letter-spacing:1.2px}.motivation-card .pet-avatar svg{max-height:none}
.brand-sub{display:block}.avatar{border:1px solid #ead9c2}.nav-button small{margin-left:auto;padding:1px 7px;border-radius:5px;background:#ffffff13;font-size:10px;line-height:1.7}.nav-button[aria-current=page] small{background:#fff3;color:#fff}.btn svg{width:17px;height:17px;flex:none}.hero-core svg{width:52px;height:52px;stroke-width:1.3;color:#d68a53}.hero-spark:last-child{top:auto;bottom:11px;right:-8px;background:#ecf1dc;color:#7d995f;transform:rotate(10deg)}.hero-meta svg{width:13px;height:13px;flex:none}.hero-copy>.badge{margin-bottom:11px;background:#fff8;color:#b08664}.stat-icon svg{width:18px;height:18px}.review-row{width:100%;border:0;border-bottom:1px solid #f0f1f2;background:transparent;text-align:left;border-radius:0}.review-row:hover{background:#fcfaf7}.review-row>svg{flex:none;width:15px;height:15px;color:#adb5c1}.subject-icon{color:var(--subject,#467bbb);background:color-mix(in srgb,var(--subject,#467bbb) 10%,white)}.card-top>div{flex:1;min-width:0}.card-top .card-meta{padding-top:1px;font-size:10px}.card-top strong{font-size:12px}.card-top .badge{font-size:9px}.filter-bar .search-input{display:flex;gap:9px;align-items:center;width:min(420px,65%)!important;border:1px solid #e4e7eb;border-radius:10px;padding:0 12px;min-height:43px!important;overflow:hidden}.search-input>svg{flex:none;width:17px;height:17px;color:#9eabbc}.search-input input{border:0;background:none!important;box-shadow:none!important;padding:10px 0;font-size:12px}.search-input:focus-within{outline:2px solid #d3af8a;outline-offset:1px}.filter-bar>select{width:auto;min-width:130px;font-size:12px}.page>.chip-row{margin-bottom:21px}.page>.hero-card,.page>.panel,#report-content>.panel{margin-bottom:24px}.day-column>span:first-child{font-size:10px;color:#a1acb8;font-variant-numeric:tabular-nums}.weekly-bars{height:163px;margin-bottom:24px}.weekly-bars+.muted{font-size:11px;text-align:center}.field{font-size:12px;font-weight:600;color:#536177;display:block}.field input,.field select,.field textarea{margin-top:8px;font-weight:400}.field>.muted{font-weight:400}.auth-card .form-grid .field{margin-top:0}.auth-card #auth-form{margin-top:22px;gap:18px}.auth-card #auth-form .btn{margin-top:1px}.auth-card #auth-error:empty{display:none}.auth-card>.section-heading{margin:24px 0 15px;gap:16px}.auth-card>.section-heading::after{content:"";height:1px;flex:1;background:#edf0f2}.auth-card>.form-grid{align-items:end;grid-template-columns:1fr 1.2fr;gap:13px}.auth-card>.form-grid .btn{min-height:43px}.auth-card>.muted:last-child{font-size:10px;margin-top:19px;line-height:1.9}.image-preview{display:block;max-width:100%;height:auto;object-fit:contain}.detail-stem{margin-top:20px}.answer-box summary{cursor:pointer;font-weight:600;font-size:13px}.answer-box[open] summary{margin-bottom:13px}.detail-grid{margin-top:20px}.detail-grid>.panel{box-shadow:none;border:0;padding:16px}.detail-grid a{font-size:12px;color:#b77951}.review-progress.progress-track{display:block;margin:0 0 25px;height:6px}.review-card h2.detail-stem{font-size:19px;font-weight:550;line-height:1.95}.review-feedback .answer-box{margin:0 0 20px;border:0;background:#fff9}.review-feedback>h3{margin-top:17px}.review-feedback>.muted{margin-top:12px;font-size:11px}.review-shell>.muted{text-align:center;font-size:11px}.result-icon svg{width:40px;height:40px;color:#c59048}.result-screen>.eyebrow{margin-top:26px;font-size:10px}.result-screen>.pet-avatar{width:165px;margin:15px auto}.settings-grid .panel>p{font-size:13px;line-height:1.9}.settings-grid .panel>.btn{margin-top:19px}.settings-grid .level-card{margin:0 0 19px}.level-card>.stat-value{display:inline-block;margin-right:12px;font-size:35px}.settings-grid .form-grid{gap:17px}.settings-grid .form-grid .field{margin:0}.settings-grid .form-grid>.btn{margin-top:4px;justify-self:start}
.pet-avatar{width:190px;max-width:100%;margin:auto;line-height:0}.pet-avatar svg{display:block;width:100%;height:auto;max-height:none;filter:drop-shadow(0 10px 12px #6d7d6010)}.pet-avatar.dead{filter:saturate(.2);opacity:.75}.auth-intro>.pet-avatar{width:260px;margin:24px auto 12px}.auth-intro>.chip-row{justify-content:center;gap:7px}.auth-intro .badge{background:#f2ebdf;color:#a88e6c;font-weight:400;font-size:10px}.motivation-card{padding:24px 26px;display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;column-gap:10px;align-content:center}.motivation-card>.section-heading{grid-column:1/-1;margin-bottom:12px;font-size:13px}.motivation-card>.pet-avatar{grid-column:2;grid-row:2/5;width:125px;align-self:center}.motivation-card>h3{grid-column:1;font-size:14px;color:#52735d;line-height:1.7;margin-bottom:6px}.motivation-card>p{grid-column:1;font-size:11px;line-height:1.8;margin-top:0}.motivation-card>.btn{grid-column:1;justify-self:start;margin-top:15px;min-height:34px;font-size:11px;padding:7px 11px}.pet-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);gap:23px;margin-bottom:24px}.pet-stage{background:#f5f1e6;border:1px solid #e8e1d4;padding:24px 27px 27px;border-radius:22px;text-align:center;min-width:0}.pet-stage .section-heading{margin-bottom:16px}.pet-bubble{display:inline-block;position:relative;background:#fffcf5;color:#9b896d;padding:11px 16px;border-radius:12px;font-size:12px;line-height:1.9;max-width:100%;box-shadow:0 3px 8px #98805805}.pet-bubble::after{content:"";position:absolute;bottom:-7px;left:50%;border-left:7px solid transparent;border-right:7px solid transparent;border-top:8px solid #fffcf5}.pet-canvas{margin:12px 0 5px;min-height:235px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 64%,#fff9e9 0%,#fff9e900 65%)}.pet-canvas .pet-avatar{width:250px}.pet-stage>h2{font-size:21px;display:flex;gap:10px;align-items:center;justify-content:center}.pet-stats{margin:19px auto 0;max-width:290px;font-size:11px;color:#a18f73}.hunger-track{height:7px;background:#e4e0d1;border-radius:99px;overflow:hidden;margin:9px 0 11px}.hunger-fill{height:100%;background:#a4b887;border-radius:inherit}.pet-stats p{font-size:10px;line-height:1.8;color:#a79c88}.pet-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:20px}.pet-actions .btn{font-size:12px;min-height:40px;padding-inline:13px}.chat-panel{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e8ebed;padding:25px;border-radius:22px}.chat-panel .section-heading{align-items:flex-start}.chat-panel .section-heading h2{font-size:16px}.chat-panel .section-heading p{font-size:11px;line-height:1.8;max-width:285px;margin-top:6px}.chat-messages{min-height:225px;max-height:350px;overflow-y:auto;overscroll-behavior:contain;padding:2px 4px 16px 0;display:flex;flex-direction:column;gap:14px;flex:1}.chat-message{padding:14px 16px;border-radius:14px;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;max-width:94%;text-align:left}.chat-message.assistant{background:#f4f6f7;border-top-left-radius:4px;color:#69798a;align-self:flex-start}.chat-message.user{background:#fff0e5;color:#9c6f4f;align-self:flex-end;border-top-right-radius:4px}.chat-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 15px}.chat-suggestions .chip{font-size:10px;min-height:28px;padding:5px 9px}.chat-composer{display:flex;gap:10px;align-items:flex-end;border-top:1px solid #eef0f2;padding-top:16px}.chat-composer textarea{min-height:65px;max-height:150px;background:#fbfcfd;font-size:12px;padding:11px;resize:vertical}.chat-composer .btn{height:43px;min-width:74px;font-size:12px;padding:10px 12px}.chat-panel>p.muted{font-size:10px;margin-top:12px;line-height:1.8}.skin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.skin-card{border:1px solid #e6e8e8;border-radius:16px;background:#fbfcfb;padding:19px 15px 16px;color:#708078;text-align:center;min-width:0;transition:border-color .15s,background .15s}.skin-card:hover{background:#fff9f1;border-color:#e4c9a4}.skin-card.selected{background:#fff6e9;border-color:#e9c79a;box-shadow:0 0 0 1px #f3dfc2}.skin-card .pet-avatar{width:125px;margin:0 auto 9px}.skin-card strong{font-size:13px;display:block;margin-bottom:5px}.skin-card>span{font-size:10px;color:#a7aaa8}.skin-card.selected>span{color:#b99460}.skin-card.locked .pet-avatar{opacity:.65}.report-tabs{margin-bottom:24px!important}.report-table-wrap{overflow-x:auto;max-width:100%;border:1px solid #edf0f2;border-radius:11px}.report-table{width:100%;min-width:380px;border-collapse:collapse;font-size:12px;text-align:left;font-variant-numeric:tabular-nums}.report-table th{font-weight:550;background:#f7f8fa;color:#8b95a4;padding:12px 15px}.report-table td{padding:15px;border-top:1px solid #eef0f2;color:#63758a}.report-table tbody tr:hover{background:#fffcf7}.report-table th:first-child,.report-table td:first-child{padding-left:20px;color:#4b6076}.report-table tr:last-child td{border-bottom:0}#report-content .panel>h2{margin-bottom:15px}#report-content .panel>p{font-size:13px;line-height:1.9;color:#66758a}#report-content .panel>.muted{font-size:11px;color:#98a1ac}#report-content ul{padding-left:20px;margin:14px 0 0;color:#6b7b8f;font-size:13px;line-height:2}#report-content li{margin-bottom:7px;padding-left:3px}#report-content li::marker{color:#d4a581}#report-content .panel>ul+.muted{margin-top:16px}#report-content .panel>.section-heading .muted{font-size:11px}#report-explanation{font-size:13px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}#learning-plan{margin-bottom:24px}#learning-plan>p{font-size:13px;line-height:1.9}#learning-plan>p.muted{font-size:11px}#learning-plan .review-list{margin-top:20px}#learning-plan .form-actions{margin-top:20px}#learning-plan .form-actions+p{margin-top:13px}.katex-display{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:5px 0}.question-stem .katex{font-size:1em}
@media(min-width:1021px) and (max-width:1220px){.motivation-card{grid-template-columns:minmax(0,1fr) 85px;padding:22px}.motivation-card>.pet-avatar{width:100px}.motivation-card .section-heading{font-size:12px}.motivation-card .section-heading .badge{font-size:9px}.hero-card{padding-inline:26px}.hero-copy h2{font-size:26px}}
@media(max-width:1020px){.pet-layout{grid-template-columns:minmax(0,1fr)}.pet-canvas{min-height:210px}.pet-canvas .pet-avatar{width:220px}.chat-messages{min-height:180px;max-height:330px}.motivation-card{grid-template-columns:minmax(0,1fr) 140px;min-height:185px}.motivation-card>.section-heading{grid-column:1;margin-bottom:10px}.motivation-card>.pet-avatar{grid-row:1/5;grid-column:2;width:140px}.motivation-card>h3{font-size:16px}.motivation-card>p{font-size:12px}.motivation-card>.btn{margin-top:13px}}
@media(max-width:720px){.nav-items{grid-template-columns:repeat(5,minmax(0,1fr))}.nav-button[data-route=settings]{display:none}.nav-button small{display:none}.auth-intro>.pet-avatar{display:none}.auth-intro>.chip-row{margin-top:15px}.auth-intro .badge{font-size:9px;padding:4px 7px}.auth-intro .eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:15px}.auth-card #auth-form{gap:17px}.auth-card>.form-grid{grid-template-columns:1fr 1.2fr;gap:12px}.auth-card>.form-grid .btn{font-size:12px;padding-inline:9px}.hero-core svg{width:42px;height:42px}.hero-spark:last-child{right:-3px}.filter-bar .search-input{width:calc(100% - 140px)!important;flex:1}.filter-bar>select{min-width:122px;padding:10px}.weekly-bars{height:160px}.review-card h2.detail-stem{font-size:17px;line-height:1.95}.review-feedback .answer-box{padding:15px}.form-actions{flex-wrap:wrap}.detail-grid{gap:12px}.detail-grid>.panel{padding:16px}.result-screen .form-actions{justify-content:center}.motivation-card{padding:22px;grid-template-columns:minmax(0,1fr) 110px;min-height:195px}.motivation-card>.section-heading{font-size:12px}.motivation-card>.section-heading .badge{font-size:8px;padding:4px 6px}.motivation-card>.pet-avatar{width:120px}.motivation-card>h3{font-size:14px}.motivation-card>p{font-size:11px}.pet-layout{gap:19px}.pet-stage{padding:22px;border-radius:18px}.pet-bubble{font-size:11px;padding:11px 15px}.pet-canvas{min-height:220px}.pet-canvas .pet-avatar{width:225px}.pet-actions .btn{font-size:12px;min-height:44px}.chat-panel{padding:22px 18px;border-radius:18px}.chat-panel .section-heading h2{font-size:16px}.chat-messages{min-height:170px;max-height:330px}.chat-message{font-size:12px;padding:13px 15px}.chat-panel .section-heading{gap:12px}.chat-panel .section-heading p{font-size:10px}.chat-composer .btn{min-width:64px;padding:10px}.skin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.skin-card{padding:17px 10px}.skin-card .pet-avatar{width:112px}.report-table{font-size:11px;min-width:310px}.report-table th,.report-table td{padding:12px 9px}.report-table th:first-child,.report-table td:first-child{padding-left:12px}#report-content .panel>p{font-size:12px}#report-content ul{font-size:12px;padding-left:17px}#learning-plan>p{font-size:12px}#learning-plan .row-main strong{white-space:normal;line-height:1.7}#learning-plan .row-meta{font-size:10px}.page>.panel{margin-bottom:20px}.top-actions>.badge{font-size:9px;padding:4px 7px}}
@media(max-width:430px){.auth-card>.form-grid{grid-template-columns:1fr 1.2fr}.filter-bar{gap:9px}.filter-bar .search-input{padding-inline:10px}.filter-bar .search-input input{font-size:11px}.filter-bar>select{min-width:114px;font-size:11px}.hero-core svg{width:35px;height:35px}.hero-meta svg{width:11px;height:11px}.motivation-card{padding:20px;grid-template-columns:minmax(0,1fr) 95px}.motivation-card>.pet-avatar{width:110px}.motivation-card .section-heading{gap:7px}.motivation-card>h3{font-size:13px}.pet-stage{padding:21px 18px}.pet-actions .btn{padding-inline:11px;font-size:11px}.review-progress.progress-track{height:5px}.result-screen .form-actions .btn{font-size:11px;padding-inline:12px}.settings-grid .form-grid>.btn{width:100%}.form-actions .btn{flex-grow:1}.nav-button{font-size:10px}.review-row>.badge{display:none}}
@media print{@page{size:A4;margin:16mm 14mm}html,body{background:#fff!important;color:#202b40!important;font-size:11pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}.app-shell{padding:0;min-height:0}.sidebar,.topbar,.page-actions,.report-tabs,.toast,#overlay,#toasts,#explain-report,#print-report,#report-content>.panel:last-child,.btn{display:none!important}.workspace{margin:0;width:auto}.page{max-width:none;padding:0;margin:0;width:auto}.page-heading{margin:0 0 7mm;display:block}.page-heading h1{font-size:23pt;letter-spacing:-.5px}.page-heading p{font-size:10pt}.eyebrow{font-size:8pt;margin-bottom:2mm;color:#788493!important}.panel,#report-content>.panel{border:1px solid #dce1e6;box-shadow:none;border-radius:3mm;padding:5mm;margin-bottom:5mm;break-inside:avoid;page-break-inside:avoid;background:#fff!important}.dashboard-grid{display:block;margin:0;gap:0}.dashboard-grid>.panel{margin-bottom:5mm}.stat-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm;margin:5mm 0}.stat-card{box-shadow:none;border:1px solid #dce1e6;border-radius:3mm;padding:4mm;background:#fff!important;break-inside:avoid;page-break-inside:avoid}.stat-label{font-size:8pt;color:#6b7788!important}.stat-value{font-size:20pt;margin:2mm 0 0}.stat-icon{display:none}.section-heading{margin-bottom:4mm;gap:4mm}.section-heading h2,#report-content .panel>h2{font-size:13pt}.badge{font-size:8pt;white-space:normal}.muted{color:#6b7788!important}#report-content .panel>p,#report-content ul{font-size:9pt;line-height:1.8;color:#405066!important}#report-content .panel>.muted{font-size:8pt}.report-table-wrap{overflow:visible;border-radius:0}.report-table{min-width:0;width:100%;font-size:9pt;table-layout:fixed}.report-table thead{display:table-header-group}.report-table th,.report-table td{padding:3mm;overflow-wrap:break-word}.report-table tr{break-inside:avoid;page-break-inside:avoid}.report-table th{background:#f1f3f5!important}.report-table th:first-child,.report-table td:first-child{padding-left:3mm}h1,h2,h3{break-after:avoid;page-break-after:avoid}p,li{orphans:3;widows:3}a{color:inherit;text-decoration:none}}

/* ===== 做题后的 AI 讨论（实时反馈 + 追问） ===== */
.discuss-panel{margin:22px 0 0;padding:18px 18px 14px;border:1px solid #e5dccd;background:linear-gradient(180deg,#fffdf8,#fffbf4);border-radius:16px;box-shadow:var(--shadow)}
.discuss-panel .section-heading{margin-bottom:12px}
.discuss-log{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow-y:auto;padding:4px 2px;margin-bottom:12px;scroll-behavior:smooth}
.discuss-log:empty{display:none}
.discuss-msg{display:flex;gap:10px;align-items:flex-start}
.discuss-msg.user{flex-direction:row-reverse}
.discuss-speaker{flex:none;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:700;background:#eef1f5;color:#758093}
.discuss-speaker.ai-avatar{background:var(--orange-soft);color:var(--orange-dark)}
.discuss-bubble{max-width:78%;padding:10px 14px;border-radius:14px;font-size:13.5px;line-height:1.7;overflow-wrap:break-word}
.discuss-msg.user .discuss-bubble{background:var(--nav);color:#f4f6fa;border-top-right-radius:4px}
.discuss-msg.ai .discuss-bubble{background:#fff;border:1px solid var(--line);border-top-left-radius:4px}
.discuss-msg.ai .discuss-bubble .katex{font-size:1.02em}
.discuss-compose{display:flex;gap:10px;align-items:flex-end}
.discuss-compose textarea{min-height:52px;flex:1;resize:vertical}
.discuss-compose .btn{flex:none;min-height:43px}
@media (max-width:640px){.discuss-bubble{max-width:88%}.discuss-compose{flex-direction:column;align-items:stretch}.discuss-compose .btn{width:100%}}
.passage-panel{margin:14px 0 18px;border:1px solid #dbe5d2;border-left:4px solid #7fa06a;border-radius:12px;background:#f7faf4;padding:13px 17px}
.passage-panel summary{cursor:pointer;font-weight:650;font-size:13px;color:#4c6442}
.passage-body{margin-top:11px;font-size:13.5px;line-height:2;color:#374b2d;white-space:pre-wrap;overflow-wrap:anywhere;max-height:430px;overflow-y:auto;padding-right:6px}
.review-original{margin:12px 0}
.review-original summary{cursor:pointer;font-size:12px;color:#8390a3}
