:root{font-family:-apple-system,BlinkMacSystemFont,Hiragino Kaku Gothic ProN,Yu Gothic,sans-serif;color:#172638;background:#f5f7f9;--primary:#c85c1b;--primary-pale:#fff2e8;--border:#d9e0e6;--muted:#627183}*{box-sizing:border-box}html[data-theme=blue]{--primary:#1468ad;--primary-pale:#eaf4fc}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);border-radius:8px;background:#fff;color:#172638;padding:10px 15px;font-weight:700}button:hover{border-color:var(--primary)}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--primary);border-color:var(--primary);color:#fff}.ghost{background:transparent}.danger{color:#b22828}.app{min-height:100vh}header{height:72px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));gap:16px}header strong{display:block;color:var(--primary);font-size:20px}header small{color:var(--muted)}.header-right{display:flex;align-items:center;gap:16px;font-size:13px}.header-right .ghost{padding:7px 10px}main{max-width:1180px;margin:32px auto;padding:0 24px}h1{font-size:30px;margin:0 0 7px;line-height:1.3}h2{font-size:20px;margin:0 0 20px}h3{font-size:16px;margin:24px 0 12px}p{line-height:1.6}.page-title,.panel-head{display:flex;justify-content:space-between;align-items:start;gap:16px}.page-title{margin-bottom:24px}.page-title p{color:var(--muted);margin:0}.tabs{display:flex;overflow-x:auto;gap:4px;border-bottom:1px solid var(--border);margin-bottom:22px}.tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;white-space:nowrap;background:transparent;padding:13px 18px;color:var(--muted)}.tabs button.active{border-bottom-color:var(--primary);color:var(--primary)}.toolbar{display:flex;gap:16px;align-items:end;margin-bottom:22px;flex-wrap:wrap}.toolbar label{min-width:220px}.panel{background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px;box-shadow:0 2px 10px #10203008;min-width:0}.grid-two,.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-grid .full{grid-column:1/-1}label{display:block;font-weight:700;font-size:13px;margin-bottom:15px}input,select,textarea{display:block;width:100%;padding:11px 12px;margin-top:6px;border:1px solid #bac5cf;border-radius:8px;background:#fff;color:#172638}input:focus,select:focus,textarea:focus{outline:3px solid #f7bf9c;border-color:var(--primary)}.form-row{display:flex;gap:14px}.form-row>*{flex:1;min-width:0}.hint{font-size:13px;color:var(--muted)}.action-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.pill{background:var(--primary-pale);border-radius:100px;padding:6px 12px;color:var(--primary);font-size:13px;font-weight:700}.alert,.notice{max-width:1180px;margin:14px auto;padding:12px 18px;border-radius:8px;display:flex;justify-content:space-between;gap:16px}.alert{background:#fff0ef;color:#9d2424;border:1px solid #efb3ae}.notice{background:#e6f7eb;color:#216339;border:1px solid #bce7c7}.alert button,.notice button{background:transparent;border:0;padding:0;color:inherit}.login-wrap{min-height:100vh;display:grid;place-items:center;margin:0;max-width:none;background:linear-gradient(145deg,#fff7ed,#ecf2f7)}.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--border);border-radius:18px;padding:36px;box-shadow:0 15px 45px #14243718}.login-card h1{font-size:27px}.login-card p{color:var(--muted);margin-bottom:28px}.login-card .primary{width:100%;margin-top:12px}.brand-mark{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:var(--primary);color:#fff;font-size:30px;margin-bottom:20px}.narrow{max-width:520px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:30px;margin-top:50px}.narrow .primary{width:100%}.secret{background:#fff6dc;border:1px solid #efdb91;border-radius:10px;padding:15px;margin:18px 0;overflow-wrap:anywhere}.secret code{font-size:16px}.scan-result{margin:20px 0;padding:20px;border-radius:10px;display:flex;gap:8px;flex-direction:column}.scan-result strong{font-size:24px}.scan-result span{font-size:21px}.success{background:#e4f6e9;border:2px solid #62b875;color:#1f6c32}.duplicate{background:#f0f2f4;border:2px solid #acb8c2}.pending{border-top:1px solid var(--border);margin-top:20px}.check-row{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;margin:8px 0}.check-row input{width:auto;margin:0}.checkbox-group{max-height:180px;overflow:auto;border:1px solid var(--border);padding:10px;margin-bottom:16px;border-radius:8px}.camera{min-height:250px;margin:18px 0}.missing-list{max-height:540px;overflow:auto}.missing-list>div{border-bottom:1px solid var(--border);padding:10px 0;display:flex;gap:8px;align-items:center}.missing-list>div span{margin-left:auto;color:#ad3c26;font-size:13px}.count{background:var(--primary-pale);color:var(--primary);border-radius:100px;padding:4px 9px;font-size:13px}.list-card{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding:14px 0;gap:12px}.list-card p{margin:4px 0 0;color:var(--muted);font-size:13px}.list-card button{flex:none}.block-button{display:block;width:100%;text-align:left;margin:8px 0}.table-wrap{overflow:auto;max-height:65vh;border:1px solid var(--border);border-radius:8px}table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px}th,td{text-align:left;padding:12px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);white-space:nowrap}thead th{position:sticky;top:0;background:#f0f3f6;z-index:2}tbody th{background:#fff;font-weight:700}.roster tbody th:nth-child(1){position:sticky;left:0;z-index:1}.roster tbody th:nth-child(2){position:sticky;left:70px;z-index:1}.roster thead th:nth-child(1){left:0;z-index:4}.roster thead th:nth-child(2){left:70px;z-index:4}.roster th:nth-child(1){min-width:70px}.roster th:nth-child(2){min-width:120px}.cell{font-size:12px;padding:7px 9px;white-space:nowrap}.badge{font-size:12px;font-weight:700;padding:5px 8px;border-radius:6px}.submitted{background:#e4f6e9;color:#1d6b35}.late{background:#fff2d9;color:#865100}.missing{background:#fff0ef;color:#a13128}.editor-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:#17263880;overflow-y:auto}.editor-dialog{width:min(440px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;background:#fff;border-radius:14px;padding:24px;box-shadow:0 16px 48px #10203040}.editor-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.editor-heading h2{margin:0 0 8px}.editor-heading p{margin:2px 0;color:var(--muted);overflow-wrap:anywhere}.editor-close{flex:none;font-size:22px;line-height:1;padding:6px 11px}.editor-current{margin:18px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.editor-actions{display:flex;gap:10px;flex-wrap:wrap}.editor-actions button{flex:1 1 120px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}.metric{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px}.metric span{display:block;color:var(--muted)}.metric strong{font-size:32px}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.dashboard-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.dashboard-card h3{margin:8px 0}.dashboard-card p,.dashboard-card small{color:var(--muted)}.donut{width:94px;height:94px;border-radius:50%;display:grid;place-items:center;flex:none}.donut span{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:#fff;font-weight:800}.empty{text-align:center;color:var(--muted);padding:24px}.mono{font-family:ui-monospace,monospace;font-size:11px}.inline-form{background:#fff;border:1px solid var(--border);border-radius:10px;padding:20px;margin-bottom:20px}.center{text-align:center;margin-top:20vh}@media(max-width:750px){header{height:auto;padding:14px 18px}header small{display:none}.header-right .account-name{max-width:48vw;font-size:12px}main{margin:20px auto;padding:0 14px}h1{font-size:25px}.grid-two,.admin-grid,.cards{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(3,1fr)}.metric{padding:12px}.metric strong{font-size:23px}.panel{padding:18px}.form-row{display:block}.login-wrap{padding:18px}.login-card{padding:26px}.roster tbody th:nth-child(2),.roster thead th:nth-child(2){left:70px}}:root .selection-panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px 20px;margin-bottom:20px}.selection-panel>strong{display:block;font-size:17px;color:#172638}.selection-panel>p{color:var(--muted);font-size:13px;margin:5px 0 12px}.selection-panel .toolbar{margin-bottom:0}.assignment-picker{display:grid;gap:9px;max-height:290px;overflow:auto;margin:18px 0}.assignment-choice{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:9px;padding:11px 12px;margin:0;cursor:pointer}.assignment-choice.selected{border-color:var(--primary);background:var(--primary-pale)}.assignment-choice input{width:auto;margin:0;flex:none}.assignment-choice span{display:block;min-width:0}.assignment-choice strong{display:block;font-size:14px}.assignment-choice small{display:block;color:var(--muted);margin-top:3px;font-size:12px}.step-divider{border-top:1px solid var(--border);padding-top:20px;margin-top:18px}.step-divider h2{margin-bottom:5px}.check-target{background:var(--primary-pale);color:#172638;border-radius:8px;padding:10px 12px;font-size:13px;margin:18px 0 0}.scanner-status{background:#eef6fc;border:1px solid #b5d7ef;border-radius:8px;padding:12px;margin:16px 0;display:flex;flex-direction:column;gap:4px;font-size:13px}.scanner-status strong{font-size:15px;color:#205b84}.password-rules{list-style:none;padding:0;margin:8px 0 18px;display:grid;gap:7px}.password-rules li{padding:8px 11px;border-radius:7px;font-size:14px}.rule-ok{background:#e4f6e9;color:#1d6b35}.rule-pending{background:#f0f3f6;color:#617083}.assignment-entry{flex-wrap:wrap}.assignment-status{flex-basis:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:14px}.status-group{border:1px solid var(--border);border-radius:9px;overflow:hidden;background:#fff}.status-group h3{display:flex;justify-content:space-between;align-items:center;margin:0;padding:12px 14px;font-size:15px}.status-missing h3{background:#fff0ef;color:#a13128}.status-submitted h3{background:#e4f6e9;color:#1d6b35}.status-group h3 span{font-size:13px}.status-group ul{list-style:none;margin:0;padding:0;max-height:280px;overflow:auto}.status-group li{padding:10px 14px;border-top:1px solid var(--border);font-size:14px}.status-group li strong{display:inline-block;min-width:48px}.status-group li small{display:block;color:var(--muted);margin-left:48px}.status-group p{padding:12px 14px;margin:0;color:var(--muted);font-size:14px}@media(max-width:750px){.assignment-status{grid-template-columns:1fr}}.header-right .account-name{display:flex;align-items:center;gap:8px;max-width:48vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.header-right .account-role{display:inline;color:var(--muted);font-size:11px;border:1px solid var(--border);border-radius:12px;padding:2px 6px;flex:none}@media(max-width:750px){.header-right{gap:8px}.header-right .account-name{max-width:48vw}.header-right .account-role{display:inline}header strong{font-size:16px}}@media(max-width:750px){.editor-backdrop{padding:0;place-items:end center}.editor-dialog{width:100%;max-height:calc(100dvh - 8px);border-radius:16px 16px 0 0;padding:20px max(16px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.editor-actions button{flex:1 1 100%}}@media(max-width:750px){input,select,textarea{font-size:16px}}.student-card{flex-wrap:wrap}.student-card .student-info{flex:1 1 220px;min-width:0}.student-card .secret{flex-basis:100%;min-width:0}.guardian-account{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.guardian-account code{overflow-wrap:anywhere}.guardian-account button{font-size:13px;padding:7px 10px}.feedback-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:16px;background:#17263880}.feedback-dialog{width:min(440px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;background:#fff;border:1px solid #efb3ae;border-radius:14px;padding:24px;box-shadow:0 16px 48px #10203040}.feedback-dialog h2{margin:0 0 12px;color:#9d2424}.feedback-dialog p{margin:0 0 20px;overflow-wrap:anywhere}.feedback-dialog .primary{width:100%}
