:root{--bg:#f6f7f4;--paper:#fff;--ink:#24362e;--muted:#7a827d;--green:#356b57;--green-dark:#255440;--green-soft:#edf3ed;--border:#e5e9e3;--orange:#c28a4d;--shadow:0 12px 40px #26382c06;font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}svg{flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-weight:650;letter-spacing:-1px}h2{font-size:18px;font-weight:650}h3{font-size:16px}p{line-height:1.8}button{border:0;background:none;color:inherit}.muted{color:var(--muted)}.tiny{font-size:12px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:650;color:#8a9a8d;text-transform:uppercase}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;border-radius:10px;font-weight:600;line-height:1.4;transition:background .15s,transform .15s}.button:hover{transform:translateY(-1px)}.primary{background:var(--green);color:#fff}.primary:hover{background:var(--green-dark)}.secondary{background:#fff;border:1px solid var(--border);color:#4c5c52}.secondary:hover{background:#f3f6f1}.subtle{background:var(--green-soft);color:var(--green)}.danger{background:#a33e3e;color:#fff}.text-button{font-size:13px;color:var(--muted);padding:8px;display:inline-flex;gap:6px;align-items:center}.text-button:hover{color:var(--green)}.full{width:100%}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--green);color:#fff}.brand-name{font-size:17px;font-weight:650;letter-spacing:.5px}.brand-sub{font-size:10px;margin-top:3px;color:#92a397;letter-spacing:1.2px}.connection{display:inline-flex;align-items:center;gap:7px;color:#5b7d64;font-size:12px;white-space:nowrap}.connection:before{content:"";height:6px;width:6px;border-radius:50%;background:#68a47e;box-shadow:0 0 0 4px #68a47e12}.connection.offline{color:#b27e41}.connection.offline:before{background:#c99d63}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:20px;padding:5px 10px;font-size:11px;color:#768478;background:#fff;white-space:nowrap}.error{padding:12px 14px;border:1px solid #eed8cc;border-radius:10px;background:#fff7f0;color:#a66130;font-size:13px;line-height:1.7}.error:empty{display:none}.field{display:flex;flex-direction:column;gap:8px;margin:18px 0}.field label{font-size:13px;color:#526258;font-weight:600}.field input,.field select{width:100%;border:1px solid #dce3d9;border-radius:10px;background:#fff;padding:13px 14px;min-height:46px;color:var(--ink)}.field input:focus,.field select:focus{border-color:var(--green);outline:3px solid #356b5715}.field small{color:var(--muted);line-height:1.7}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:16px}.hidden{display:none!important}.spacer{flex:1}.icon-button{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;color:#7d887f}.icon-button:hover{background:var(--green-soft)}
/* Teacher workspace */
.teacher-shell{min-height:100vh;display:grid;grid-template-columns:218px minmax(0,1fr)}.sidebar{background:#203e32;color:#d5e0d7;padding:31px 22px 24px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:218px}.sidebar .brand-mark{background:#416752}.sidebar .brand-name{font-size:17px;color:#f4f7f0}.sidebar .brand-sub{color:#98afa0;font-size:9px;letter-spacing:1.3px}.side-label{color:#819b8a;font-size:10px;letter-spacing:1.5px;margin:47px 13px 14px}.side-item{display:flex;align-items:center;gap:12px;border-radius:9px;font-size:13px;padding:13px 14px;margin:4px 0;text-align:left;width:100%;color:#b9cdbd;min-height:46px}.side-item.active{background:#385b48;color:#f1f6ec}.side-item:not(.active):hover{background:#2c4a3b}.side-note{border:1px solid #4c69534d;border-radius:11px;padding:16px 13px;margin-top:auto;background:#29473780}.side-note svg{color:#b5c89a}.side-note h3{font-size:12px;color:#d6e1ce;margin:11px 0 5px}.side-note p{color:#93ad9b;font-size:11px;line-height:1.9}.sidebar-bottom{display:flex;gap:10px;align-items:center;margin-top:22px;padding:0 6px}.avatar{width:31px;height:31px;border-radius:50%;background:#54705a;display:grid;place-items:center;font-size:12px;color:#eef3e9}.teacher-workspace{grid-column:2;min-width:0}.topbar{height:75px;background:#ffffffb3;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:12px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:#909a92}.breadcrumb strong{color:#526156;font-weight:500}.topbar-right{display:flex;gap:22px;align-items:center}.date-label{font-size:11px;color:#929b94}.dashboard{max-width:1430px;margin:auto;padding:30px 40px 36px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.page-title h1{font-size:29px}.page-title p{font-size:12px;color:#849087;margin-top:8px}.page-actions{display:flex;gap:9px}.page-actions .button{font-size:12px;min-height:40px;padding:10px 14px}.round-badge{font-size:11px;font-weight:500;margin-left:12px;vertical-align:middle;border:1px solid #dfe6dc;border-radius:6px;color:#8b988c;background:#fff;padding:4px 8px;letter-spacing:0}.class-hero{background:#eaf0e5;border:1px solid #dee6d5;border-radius:15px;padding:25px 28px;position:relative;display:flex;justify-content:space-between;align-items:center;overflow:hidden;margin-bottom:26px;gap:24px}.class-hero:after{content:"";position:absolute;right:37%;top:-100px;width:220px;height:220px;border:1px solid #c5d3b94d;border-radius:50%;pointer-events:none}.hero-copy{position:relative;z-index:1}.hero-copy .eyebrow{font-size:10px;color:#8b9b7e;letter-spacing:1.5px}.hero-copy h2{font-size:21px;letter-spacing:1px;margin:9px 0;color:#36523e}.hero-copy p{color:#78886b;font-size:12px}.phase-control{display:flex;gap:4px;padding:5px;background:#f9fbf5;border:1px solid #dce5d4;border-radius:12px;z-index:1;flex-shrink:0}.phase-button{display:flex;align-items:center;gap:8px;min-height:47px;padding:11px 16px;border-radius:8px;color:#899780;font-size:12px;white-space:nowrap}.phase-button .step-dot{display:grid;place-items:center;width:20px;height:20px;background:#edf0e8;border-radius:50%;font-size:10px}.phase-button.selected{background:var(--green);color:#fff;box-shadow:0 3px 9px #284e3420}.phase-button.selected .step-dot{background:#ffffff2b;color:#fff}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 15px}.section-heading h2{font-size:16px;display:flex;align-items:center;gap:8px}.section-heading h2 svg{color:#819879}.section-heading p{font-size:11px;color:#929c93}.standards-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}.standard-card{background:var(--paper);border:1px solid var(--border);border-radius:13px;padding:19px 18px 16px;box-shadow:var(--shadow);min-width:0}.standard-card .card-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eef3e9;color:#78966b}.standard-card:nth-child(2) .card-icon{background:#eef1f7;color:#7b8eaa}.standard-card:nth-child(3) .card-icon{background:#faf1e6;color:#b69b72}.standard-card:nth-child(4) .card-icon{background:#f2edf5;color:#a08ab2}.card-top{display:flex;align-items:center;justify-content:space-between}.card-index{font-size:10px;color:#bdc4ba;font-family:Georgia,serif}.standard-card h3{font-size:13px;margin:16px 0 9px;font-weight:600}.count-line{display:flex;align-items:baseline;gap:5px}.count-number{font-size:36px;line-height:1.2;font-weight:550;letter-spacing:-1.8px;color:#334d3c;font-variant-numeric:tabular-nums}.count-line .unit{font-size:11px;color:#a1aa9f;margin:0 4px 0 3px}.card-ratio{font-size:10px;color:#98a193}.progress-track{height:4px;background:#eff2ed;border-radius:4px;margin:16px 0 10px;overflow:hidden}.progress-fill{display:block;height:100%;background:#91ad7d;border-radius:4px;width:0%;transition:width .3s}.standard-card:nth-child(2) .progress-fill{background:#91a3be}.standard-card:nth-child(3) .progress-fill{background:#d1b27f}.standard-card:nth-child(4) .progress-fill{background:#b6a1c4}.card-caption{font-size:10px;color:#9ca596;line-height:1.6}.attendance-card{background:white;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.attendance-head{padding:22px 24px 17px;display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.attendance-head h2{font-size:16px}.attendance-head p{font-size:11px;color:#939d92;margin-top:6px}.attendance-stats{display:flex;align-items:center;gap:19px}.mini-stat{font-size:11px;color:#909b8c;white-space:nowrap}.mini-stat strong{font-size:19px;color:var(--green);font-weight:550;margin-right:4px;font-variant-numeric:tabular-nums}.mini-stat+.mini-stat{border-left:1px solid var(--border);padding-left:19px}.number-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:11px;padding:5px 24px 23px}.student-number{border:1px solid #edf0eb;background:#f6f7f4;color:#bdc5ba;border-radius:9px;min-height:48px;font-size:14px;font-weight:500;position:relative;font-variant-numeric:tabular-nums;transition:background .2s,border .2s}.student-number:disabled{opacity:1;cursor:default}.student-number.joined{color:#513600;border:2px solid #e7a900;background:#ffdc45;font-size:17px;font-weight:750;box-shadow:0 0 0 2px #fff3b0,0 3px 9px #dba51638}.student-number.joined:hover{background:#ffd029;transform:translateY(-1px)}.student-number.done:after{content:"";position:absolute;right:7px;top:7px;height:5px;width:5px;background:#568866;border-radius:50%}.student-number.processing{border-color:#cf8500}.student-number.processing:after{content:"";position:absolute;right:6px;top:6px;height:6px;width:6px;background:#8a5300;border-radius:50%;animation:pulse 1.3s infinite}.student-number.issue{border-color:#edddc9}.attendance-footer{border-top:1px solid #eef0eb;padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#fdfefb}.legend{display:flex;gap:17px;align-items:center;font-size:10px;color:#949e90;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;border-radius:3px;background:#e9ede6;display:inline-block}.legend .yellow{background:#ffdc45;border:1px solid #e7a900;box-shadow:0 0 4px #e7a90055}.legend .gold{background:#dbc28f}.legend .complete{background:#527c5c;border-radius:50%;height:5px;width:5px}.attendance-footer .tiny{font-size:10px;color:#a1aa9a}.dashboard-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:10px;color:#a0aa9d;margin-top:21px}.dashboard-footer span{display:inline-flex;gap:6px;align-items:center}.ai-warning{margin-bottom:20px}.mobile-brand{display:none}
/* Student pages */
.student-shell{min-height:100vh;background:radial-gradient(ellipse at 82% 20%,#e9f0e2 0,transparent 45%),#f8f9f5}.student-topbar{max-width:1180px;margin:auto;padding:28px 44px;display:flex;align-items:center;justify-content:space-between;gap:16px}.student-topbar .brand-name{font-size:18px}.student-nav{display:flex;align-items:center;gap:24px}.student-main{max-width:1050px;margin:35px auto 0;padding:0 42px 35px}.join-layout{display:grid;grid-template-columns:1fr 350px;gap:90px;align-items:center;padding:45px 0 30px}.join-intro h1{font-size:43px;line-height:1.5;letter-spacing:1.5px;margin:16px 0}.join-intro h1 span{color:var(--green)}.join-intro>p{color:#82907d;max-width:320px;font-size:13px}.notebook{margin:42px 0 0 15px;width:258px;height:175px;position:relative;transform:rotate(-5deg);background:#fdfef9;border:1px solid #dce4d4;border-radius:8px 18px 18px 8px;box-shadow:10px 14px 0 #dce7d470,0 20px 40px #63725c13;padding:26px 27px 20px 40px}.notebook:before{content:"";position:absolute;top:0;bottom:0;left:22px;border-left:1px solid #dce4d4}.notebook .notebook-title{font-size:13px;font-weight:600;color:#67815e;letter-spacing:2px}.notebook-lines{height:80px;margin-top:14px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 19px,#e7ecdf 20px,#e7ecdf 21px)}.leaf-illustration{position:absolute;right:-15px;top:-29px;color:#78975d;transform:rotate(18deg)}.notebook-tag{position:absolute;right:-37px;bottom:16px;background:#dce9c9;color:#6d8059;border-radius:7px;padding:7px 13px;font-size:10px;letter-spacing:1px;transform:rotate(10deg)}.join-card{background:#fff;border:1px solid #e1e7dc;padding:31px 30px;border-radius:18px;box-shadow:0 18px 60px #405c3710}.join-card h2{font-size:21px;margin:17px 0 7px}.join-card>p{color:#96a08f;font-size:12px}.join-card .field{margin:26px 0 20px}.number-input-wrap{position:relative}.number-input-wrap input{text-align:center;font-size:28px;font-weight:600;letter-spacing:3px;height:72px;background:#fbfcf8;padding-right:39px}.number-input-wrap .number-unit{position:absolute;right:23px;top:27px;font-size:12px;color:#a5b09b}.number-input-wrap input::placeholder{font-size:15px;letter-spacing:0;color:#bdc7b6;font-weight:400}.join-card .button{min-height:49px}.join-hint{text-align:center;font-size:10px;color:#adb6a4;margin-top:18px}.student-footer{text-align:center;color:#a4ae9b;font-size:11px;padding:32px 20px}.journey{display:flex;align-items:center;justify-content:center;gap:16px;font-size:12px;color:#9eaa94;margin:9px 0 36px}.journey-step{display:flex;align-items:center;gap:8px}.journey-step b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e9eee3;color:#92a380;font-size:11px}.journey-step.active{color:var(--green)}.journey-step.active b{background:var(--green);color:#fff}.journey-line{width:65px;height:1px;background:#dde5d6}.student-id{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#5e7e50;padding:8px 13px;border-radius:22px;background:#edf3e6;border:1px solid #dee8d5}.student-id strong{font-size:15px}.wait-card{max-width:680px;margin:auto;background:white;border:1px solid #e0e7d8;border-radius:20px;text-align:center;padding:48px 30px;box-shadow:0 20px 70px #58713e07}.success-ring{display:grid;place-items:center;margin:0 auto 26px;width:76px;height:76px;border-radius:50%;background:#edf4e7;color:#7f9d63;position:relative}.success-ring:after{content:"";position:absolute;inset:-8px;border:1px dashed #dce8d0;border-radius:50%}.wait-card h1{font-size:26px;letter-spacing:.5px;margin:15px 0}.wait-card .wait-message{font-size:17px;color:#67815a;line-height:1.9;margin:0 auto;max-width:460px}.wait-divider{height:1px;background:#edf1e8;margin:30px 20px 21px}.wait-card .muted{font-size:12px}.waiting-dots{display:flex;justify-content:center;gap:5px;margin:18px 0 0}.waiting-dots i{height:4px;width:4px;border-radius:50%;background:#afc297;animation:pulse 1.8s infinite}.waiting-dots i:nth-child(2){animation-delay:.2s}.waiting-dots i:nth-child(3){animation-delay:.4s}.switch-number{text-align:center;margin-top:15px}.upload-page{max-width:790px;margin:auto}.upload-heading{text-align:center;margin-bottom:24px}.upload-heading h1{font-size:27px;margin:12px 0 8px}.upload-heading p{font-size:13px;color:#8c9a80}.upload-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:28px}.photo-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:#f9fbf5;border:1.5px dashed #cfddc1;border-radius:12px;padding:32px 20px;text-align:center;min-height:225px;width:100%;cursor:pointer}.photo-zone:hover{background:#f0f5e9}.photo-zone svg{color:#849f6c}.photo-zone strong{font-size:16px;color:#55784b}.photo-zone span{font-size:11px;color:#9caa90}.photo-preview{max-width:100%;max-height:330px;border-radius:10px;display:block;margin:auto;object-fit:contain}.upload-tips{font-size:11px;color:#a1ac98;text-align:center;margin-top:17px}.upload-actions{display:flex;justify-content:center;gap:12px;margin-top:22px}.upload-actions .button{min-height:48px}.review-checklist{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}.checklist-item{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:#8e9e81;padding:11px 4px;background:#f0f4e9;border-radius:8px}.photo-filename{font-size:11px;color:#8c9c7e;text-align:center;margin:12px 0 0}.processing-card{text-align:center;padding:49px 25px}.spinner{width:46px;height:46px;border:3px solid #e3ebdc;border-top-color:#789760;border-radius:50%;margin:0 auto 26px;animation:spin 1s linear infinite}.processing-card h2{font-size:22px;margin-bottom:12px}.processing-card p{font-size:13px;color:#8d9e80}.feedback-card{background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden}.feedback-intro{padding:26px;border-bottom:1px solid var(--border);background:#f2f6ed;display:flex;align-items:center;gap:15px}.feedback-intro .feedback-symbol{width:46px;height:46px;border-radius:12px;background:#e4edd9;display:grid;place-items:center;color:#7e995f}.feedback-intro h2{font-size:20px;margin-bottom:5px}.feedback-intro p{font-size:12px;color:#81926f}.feedback-list{padding:5px 24px}.feedback-row{padding:21px 0;display:grid;grid-template-columns:34px 1fr 30px;gap:12px;align-items:flex-start}.feedback-row+.feedback-row{border-top:1px solid #edf0e8}.feedback-row .criterion-no{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#f3f5ef;color:#a0ac92;font-size:11px;margin-top:0}.feedback-row h3{font-size:15px;margin:2px 0 6px}.feedback-row p{font-size:12px;color:#8c987f}.feedback-row .evidence{font-size:12px;color:#62844c;background:#f1f6e9;border-left:2px solid #b8cc9e;padding:7px 10px;margin-top:9px;line-height:1.7;word-break:break-word}.feedback-status{font-size:22px;line-height:1.2}.transcription{padding:18px 25px;border-top:1px solid var(--border);background:#fcfdf9;font-size:12px;color:#87977a}.transcription summary{cursor:pointer;padding:3px 0}.transcription p{white-space:pre-wrap;line-height:2;color:#718565;margin-top:14px;word-break:break-word}.feedback-note{font-size:11px;text-align:center;color:#98a58b;margin:16px 0}.retry-note{font-size:11px;color:#a0ac94;text-align:center;margin:14px 0 0}.student-shell .error{margin-bottom:18px}.login-shell{min-height:100vh;background:radial-gradient(ellipse at 50% 40%,#edf3e5 0,transparent 70%),#f8faf4}.teacher-login{max-width:370px;margin:80px auto 0;padding:31px;background:white;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow)}.teacher-login h1{font-size:24px;margin:21px 0 8px}.teacher-login>p{font-size:12px;color:#9aa58f}.teacher-login .field input{letter-spacing:4px;font-size:21px;text-align:center}
/* Modal and toast */
.modal-backdrop{position:fixed;inset:0;background:#1b2f2559;backdrop-filter:blur(3px);z-index:20;padding:30px 18px;display:flex;justify-content:center;align-items:center}.modal{background:#fff;border:1px solid #e4e9dd;box-shadow:0 25px 100px #16332129;width:100%;max-width:510px;border-radius:17px;max-height:calc(100dvh - 60px);overflow:auto}.modal.wide{max-width:680px}.modal-header{padding:22px 25px 17px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;align-items:center}.modal-header h2{font-size:18px}.modal-body{padding:22px 25px}.modal-body>p{font-size:13px;color:#87947f}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:0 25px 24px}.modal .field{margin:17px 0}.reset-option{border:1px solid var(--border);border-radius:11px;margin-top:13px;display:flex;align-items:flex-start;gap:12px;padding:17px;cursor:pointer}.reset-option:has(input:checked){border-color:#89a275;background:#f4f8ef}.reset-option input{accent-color:var(--green);margin:3px 0 0;width:16px;height:16px}.reset-option strong{font-size:13px;display:block;margin-bottom:5px}.reset-option small{font-size:11px;color:#92a084;line-height:1.8;display:block}.modal-hint{background:#f4f7ef;border-radius:9px;padding:12px 14px;font-size:11px;line-height:1.8;color:#8b9a7e;margin:15px 0}.link-box{display:flex;gap:8px;align-items:center;border:1px solid var(--border);border-radius:9px;padding:9px 10px;margin:12px 0;background:#f8faf5}.link-box code{flex:1;font-size:12px;word-break:break-all;color:#5c7850}.detail-status{font-size:12px;color:#869777;margin-top:7px}.detail-empty{padding:24px 0;text-align:center;color:#94a087;font-size:13px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);padding:12px 21px;border-radius:10px;background:#2e503e;color:#f4f7f0;font-size:13px;box-shadow:0 8px 30px #24452b20;z-index:50;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90vw;line-height:1.7}#toast.visible{opacity:1;transform:translate(-50%,0)}@keyframes pulse{0%,100%{opacity:.4}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.dashboard{padding-top:40px}.class-hero{padding:32px}.standard-card{padding:23px}.student-number{min-height:55px}.number-grid{gap:13px;padding-bottom:27px}.attendance-head{padding-top:26px}.standards-grid{margin-bottom:31px}}
@media(max-width:1150px){.teacher-shell{grid-template-columns:184px minmax(0,1fr)}.sidebar{width:184px;padding-left:16px;padding-right:16px}.sidebar .brand-name{font-size:15px}.sidebar .brand-mark{width:32px;height:32px}.sidebar .brand{gap:7px}.topbar{padding:0 25px}.dashboard{padding:26px 25px}.class-hero{padding:23px 20px}.hero-copy h2{font-size:18px}.phase-button{padding:10px 12px;font-size:11px}.standard-card{padding:16px 13px}.card-ratio{font-size:9px}.count-number{font-size:32px}.number-grid{gap:8px}.date-label{display:none}.join-layout{gap:50px}}
@media(max-width:900px){.teacher-shell{display:block}.sidebar{display:none}.topbar{height:65px;padding:0 24px}.breadcrumb{display:none}.mobile-brand{display:block;font-size:15px;font-weight:650}.topbar-right{gap:14px}.dashboard{padding:24px}.hero-copy h2{font-size:20px}.class-hero{align-items:flex-start;flex-direction:column;gap:18px}.class-hero:after{right:-70px}.phase-control{width:100%}.phase-button{flex:1;justify-content:center;font-size:12px}.page-title h1{font-size:26px}.standard-card h3{font-size:12px}.card-caption{font-size:9px}.attendance-stats{gap:12px}.mini-stat+.mini-stat{padding-left:12px}.join-layout{grid-template-columns:1fr 330px;gap:35px}.join-intro h1{font-size:35px}.student-main{padding:0 28px}.student-topbar{padding:25px 28px}.notebook{width:220px;margin-left:0}.join-card{padding:25px}.student-nav{gap:14px}}
@media(max-width:640px){.dashboard{padding:21px 16px}.topbar{padding:0 17px}.topbar .connection{font-size:10px}.topbar .pill{font-size:9px;padding:5px 8px}.topbar-right{gap:10px}.page-title{gap:12px;align-items:flex-start;margin-bottom:20px}.page-title h1{font-size:24px}.page-title p{font-size:10px}.round-badge{font-size:9px;margin-left:8px}.page-actions{gap:5px}.page-actions .button{padding:8px 10px;font-size:10px;min-height:36px}.page-actions .button svg{width:13px}.standards-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}.standard-card{padding:17px}.standard-card h3{font-size:14px;margin-top:14px}.count-number{font-size:35px}.card-ratio{font-size:10px}.card-caption{font-size:10px}.section-heading p{font-size:10px}.class-hero{padding:21px;margin-bottom:24px}.hero-copy p{font-size:11px}.hero-copy h2{font-size:20px}.hero-copy .eyebrow{font-size:9px}.attendance-head{padding:20px 17px 17px;flex-direction:column;gap:15px}.attendance-stats{gap:16px}.mini-stat+.mini-stat{padding-left:16px}.mini-stat strong{font-size:20px}.number-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;padding:0 17px 19px}.student-number{min-height:47px}.attendance-footer{padding:14px 17px;align-items:flex-start}.attendance-footer>.tiny{display:none}.legend{gap:12px;font-size:9px}.dashboard-footer{font-size:9px;align-items:flex-start;margin-top:18px}.dashboard-footer>span:last-child{display:none}.student-topbar{padding:20px;align-items:center}.student-topbar .brand-name{font-size:15px}.student-topbar .brand-sub{font-size:8px;letter-spacing:1px}.student-topbar .brand-mark{width:34px;height:34px;border-radius:10px}.student-nav{gap:7px}.student-nav .connection{font-size:10px}.student-nav .text-button{font-size:10px;padding:6px}.student-main{margin-top:13px;padding:0 22px 25px}.join-layout{display:flex;flex-direction:column;padding-top:10px;gap:26px}.join-intro{width:100%;text-align:center}.join-intro h1{font-size:29px;line-height:1.55;margin:12px 0 10px;letter-spacing:.5px}.join-intro>p{max-width:100%;font-size:12px}.join-intro .eyebrow{font-size:9px;letter-spacing:1.5px}.notebook{display:none}.join-card{width:100%;max-width:360px;padding:25px}.join-card h2{font-size:20px;margin-top:12px}.join-card .field{margin-top:21px}.student-footer{font-size:10px;padding:20px 15px}.journey{margin:18px 0 30px;gap:11px;font-size:11px}.journey-line{width:35px}.journey-step b{height:22px;width:22px}.wait-card{padding:38px 24px 30px}.wait-card h1{font-size:23px}.wait-card .wait-message{font-size:16px}.wait-divider{margin:26px 0 20px}.wait-card .muted{font-size:11px}.upload-heading h1{font-size:24px}.upload-heading p{font-size:11px}.upload-card{padding:20px}.photo-zone{min-height:220px}.upload-actions .button{font-size:12px;padding:12px 15px}.review-checklist{grid-template-columns:repeat(2,1fr);gap:8px;margin-top:15px}.checklist-item{font-size:11px}.feedback-intro{padding:22px 19px;gap:12px}.feedback-intro h2{font-size:18px}.feedback-intro p{font-size:11px}.feedback-list{padding:2px 18px}.feedback-row{grid-template-columns:26px 1fr 25px;gap:9px}.feedback-row h3{font-size:14px}.feedback-row .criterion-no{width:24px;height:24px}.feedback-row p,.feedback-row .evidence{font-size:11px}.feedback-status{font-size:20px}.transcription{padding:17px 20px;font-size:11px}.teacher-login{margin:45px 22px 0;max-width:unset;padding:27px}.modal-backdrop{padding:15px}.modal{max-height:calc(100dvh - 30px)}.modal-header{padding:17px 20px}.modal-body{padding:20px}.modal-actions{padding:0 20px 20px}.modal-actions .button{font-size:12px}.modal-body>p{font-size:12px}.reset-option{padding:14px}}
.qr-entry{border:1px solid var(--border);border-radius:13px;background:#fafcf7;padding:15px;text-align:center;margin-top:18px}.student-qr{display:block;width:min(100%,300px);height:auto;aspect-ratio:1;margin:auto;background:#fff;image-rendering:pixelated}.qr-caption{font-size:13px;color:var(--green);font-weight:600;margin:8px 0 12px}.qr-entry .link-box{text-align:left;background:#fff;margin:12px 0}.qr-entry .button{font-size:12px}.qr-error{font-size:12px;color:#a66130;padding:24px 8px}
.attendance-with-qr{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:18px;align-items:start}.attendance-with-qr .attendance-head{flex-wrap:wrap;row-gap:13px}.teacher-inline-qr{padding:20px 17px;background:#fff;border:1px solid var(--border);border-radius:14px;text-align:center;box-shadow:var(--shadow)}.teacher-inline-qr h2{font-size:16px;color:var(--green)}.teacher-qr-copy p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:8px}.teacher-qr-image{display:grid;place-items:center;min-height:208px;margin:12px 0}.teacher-inline-qr .student-qr{max-width:208px;width:100%;height:auto;aspect-ratio:1}.teacher-qr-url{display:block;font-size:10px;line-height:1.8;color:#83917a;overflow-wrap:anywhere}.teacher-qr-actions{display:flex;justify-content:center;gap:7px;margin-top:15px}.teacher-qr-actions .button{min-height:37px;font-size:11px;padding:9px 10px;white-space:nowrap}
@media(max-width:1100px){.attendance-with-qr{grid-template-columns:minmax(0,1fr)}.teacher-inline-qr{grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 180px;grid-template-areas:"copy image" "url image" "actions image";align-content:center;gap:9px 22px;text-align:left;padding:19px 24px}.teacher-qr-copy{grid-area:copy}.teacher-qr-image{grid-area:image;min-height:180px;margin:0}.teacher-qr-url{grid-area:url}.teacher-qr-actions{grid-area:actions;justify-content:flex-start;margin-top:2px}.teacher-inline-qr .student-qr{max-width:180px}}
@media(max-width:640px){.teacher-inline-qr{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 18px;gap:12px}.teacher-qr-copy p{margin-top:6px}.teacher-qr-image{width:208px;min-height:208px}.teacher-inline-qr .student-qr{max-width:208px}.teacher-qr-actions{justify-content:center}}
.student-nav .teacher-entry-button{font-size:13px;min-height:44px;padding:11px 15px;color:var(--green);border-color:#c9d9c2;white-space:nowrap}.teacher-entry-row{border-top:1px solid var(--border);margin-top:22px;padding-top:18px}.teacher-entry-row .button{font-size:13px;min-height:45px;color:var(--green)}
@media(max-width:640px){.student-nav .teacher-entry-button{font-size:12px;min-height:42px;padding:10px 12px}.student-topbar{flex-wrap:wrap;gap:12px}.student-nav{margin-left:auto}}
.sidebar .brand-sub{white-space:nowrap;font-size:8px;letter-spacing:.8px}.page-actions .button{white-space:nowrap}.dashboard-footer .text-button{white-space:nowrap}
@media(max-width:640px){.page-title{display:block}.page-actions{justify-content:flex-end;margin-top:14px}.page-actions .button{font-size:11px;padding:9px 13px}.page-title p{font-size:11px}.topbar-right .pill{font-size:10px}.dashboard-footer .text-button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.student-work{margin:18px 0 22px;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fafcf7}.student-work-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.student-work-heading h3,.student-fragment h3{font-size:15px;color:var(--green)}.student-work-heading p{font-size:11px;color:var(--muted);margin-top:4px}.student-work-heading .button{font-size:12px;white-space:nowrap;padding:9px 12px;min-height:38px}.student-photo-link{display:block;border-radius:8px;overflow:hidden;background:#f0f3eb;cursor:zoom-in}.student-work-photo{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;background:#fff}.student-photo-hint{font-size:11px;color:var(--muted);margin-top:11px;line-height:1.7}.student-fragment{margin:18px 0 22px;padding:18px;border:1px solid var(--border);border-radius:12px;background:#fff}.student-fragment>p{font-size:15px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;color:#3b503e}.previous-feedback-note{font-size:12px;line-height:1.8;padding:12px 14px;background:#fff7df;color:#805d1d;border:1px solid #f0dfae;border-radius:9px;margin:16px 0}.previous-work>summary{font-size:12px;color:var(--green);cursor:pointer;padding:8px 0}.student-photo-error{padding-top:12px}
@media(max-width:640px){.student-work{padding:12px}.student-work-heading h3,.student-fragment h3{font-size:14px}.student-work-heading .button{font-size:11px;padding:8px 10px}.student-fragment{padding:15px}.student-fragment>p{font-size:14px}.student-work-photo{max-height:360px}}
.saved-photo-retry{background:#fff8e5;border:1px solid #f0dfae;border-radius:10px;padding:14px;margin:12px 0 20px}.saved-photo-retry p{font-size:12px;line-height:1.8;color:#805d1d;margin-bottom:10px}.saved-photo-retry .button{font-size:12px}.teacher-retry{margin:-6px 0 20px}.teacher-retry .button{font-size:12px}.ai-test-message{font-size:12px;line-height:1.8;color:var(--green);margin:15px 0}#ai-settings-modal .modal-actions{flex-wrap:wrap}

.album-actions{margin:14px 0 18px}.album-actions .button{min-height:48px;font-size:15px}.upload-actions{flex-wrap:wrap}

.ai-provider-help{padding:15px;border:1px solid #dce8d5;border-radius:10px;background:#f5f8ef;margin:15px 0}.ai-provider-help p{font-size:12px;line-height:1.8;margin-bottom:12px}.ai-provider-help .button{font-size:12px}.ai-provider-help .tiny{margin:12px 0 0}#ai-advanced{padding:12px 0;color:var(--muted);font-size:12px}#ai-advanced summary{cursor:pointer}#ai-advanced input[readonly]{background:#f4f6f0}#ai-provider{width:100%;font-size:12px}
