:root{color-scheme:light;--paper:#f5eddf;--paper-light:#fffaf1;--paper-deep:#e5d0b1;--ink:#2d2520;--muted:#6f6055;--red:#a10f24;--red-deep:#760b1c;--red-soft:#f2e0dd;--line:#cdb99a;--line-soft:#7057402e}*{box-sizing:border-box}body{min-width:320px;color:var(--ink);background:#dbc6aa;margin:0;font-family:Microsoft YaHei,PingFang SC,sans-serif}.admin-shell{background:linear-gradient(180deg, var(--paper), #efe1ca);width:100%;max-width:840px;min-height:100svh;margin:0 auto;padding:20px 18px 44px}.back{min-height:44px;color:var(--red);align-items:center;font-weight:700;display:inline-flex}header{margin:28px 0 24px}header p,header h1,header span,.queue-head p,.queue-head h2{margin:0}header p,.queue-head p{color:var(--red);letter-spacing:.08em;font-size:.72rem;font-weight:800}h1{margin-top:8px;font-size:1.85rem}header span{color:var(--muted);margin-top:10px;line-height:1.7;display:block}.login-panel,.queue{border:1px solid var(--line);background:color-mix(in srgb, var(--paper-light) 72%, transparent);padding:18px 16px;box-shadow:0 14px 34px #472e191c,0 3px 10px #472e1912}.admin-mode-tabs{background:var(--paper-deep);grid-template-columns:1fr 1fr;gap:4px;margin-bottom:24px;padding:4px;display:grid}.admin-mode-tabs button{color:var(--ink);background:0 0;border:0}.admin-mode-tabs button[aria-selected=true]{color:var(--paper-light);background:var(--red)}h2{margin:5px 0 16px;font-size:1.15rem}label span{color:var(--red);margin-bottom:7px;font-size:.76rem;font-weight:800;display:block}input,select{border:1px solid var(--line);background:var(--paper);width:100%;min-height:46px;font:inherit;border-radius:0;padding:10px;font-size:16px}.login-panel input{letter-spacing:.2em}button{border:1px solid var(--red);min-height:44px;color:var(--paper);background:var(--red);font:inherit;cursor:pointer;padding:9px 14px;font-weight:750}form button{width:100%;margin-top:14px}[role=status]{min-height:1.5em;color:var(--red);margin:10px 0 0;font-size:.8rem}.admin-session-tools{justify-content:flex-end;gap:6px;margin-bottom:10px;display:flex}.admin-session-tools button{min-width:52px;min-height:44px;color:var(--muted);border-color:var(--line);background:0 0;padding:8px 12px;font-size:.78rem}.queue-head{justify-content:space-between;align-items:end;gap:12px;display:flex}.approval-intro{max-width:60ch;color:var(--muted);margin:8px 0 0;font-size:.8rem;line-height:1.65}.selection-tools{background:color-mix(in srgb, var(--paper-deep) 54%, transparent);justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding:9px 10px;display:flex}.selection-tools button{min-width:92px;min-height:40px;color:var(--red);border-color:var(--red);background:0 0;padding:7px 14px}.selection-tools span{color:var(--muted);font-size:.78rem}.selection-tools b{color:var(--red-deep);font-variant-numeric:tabular-nums}.batch-actions{grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 22px;display:grid}.batch-actions [data-batch=rejected]{color:var(--red);background:0 0}.selection-tools button:disabled,.batch-actions button:disabled{color:var(--muted);border-color:var(--line);background:var(--paper-deep);cursor:not-allowed}.correction-list{gap:14px;display:grid}.correction-item{border:1px solid var(--line-soft);background:var(--paper-light);grid-template-columns:32px minmax(0,1fr);gap:10px;padding:14px 12px;transition:border-color .16s,background-color .16s;display:grid}.correction-item:has([data-correction-check]:checked){border-color:color-mix(in srgb, var(--red) 58%, var(--line));background:color-mix(in srgb, var(--red-soft) 36%, var(--paper-light))}.correction-content{min-width:0}.correction-card-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.correction-card-head strong{color:var(--ink);font-size:.98rem;line-height:1.45}.correction-card-head time{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;padding-top:2px;font-size:.74rem}.correction-summary{color:var(--muted);flex-wrap:wrap;gap:3px 6px;margin:8px 0 0;font-size:.82rem;line-height:1.65;display:flex}.correction-summary span{display:inline-block}.correction-summary i{color:var(--line);font-style:normal}.check{cursor:pointer;place-items:start center;width:32px;min-height:44px;display:grid;position:relative}.check input{opacity:0;width:1px;height:1px;position:absolute}.check span{border:1px solid var(--line);background:var(--paper);width:24px;height:24px;margin-top:1px;display:block;position:relative}.check input:checked+span{border-color:var(--red);background:var(--red)}.check input:checked+span:after{border:solid var(--paper-light);content:"";border-width:0 2px 2px 0;width:6px;height:11px;position:absolute;top:4px;left:8px;transform:rotate(45deg)}.check input:focus-visible+span{outline:3px solid color-mix(in srgb, var(--red) 38%, transparent);outline-offset:3px}.profile-diff{border-top:1px dashed var(--line);margin-top:14px;padding-top:13px}.profile-diff-title{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:9px;display:flex}.profile-diff-title strong{color:var(--red-deep);font-size:.82rem}.profile-diff-title span{color:var(--muted);text-align:right;font-size:.72rem}.profile-diff-list,.profile-new-grid{gap:8px;margin:0;display:grid}.profile-diff-row{background:color-mix(in srgb, var(--paper-deep) 32%, transparent);min-width:0;padding:9px 10px 10px}.profile-diff-row dt,.profile-new-grid dt{color:var(--muted);font-size:.72rem;font-weight:700}.profile-diff-row dd{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);align-items:center;gap:7px;margin:6px 0 0;display:grid}.profile-diff-before,.profile-diff-after{gap:3px;min-width:0;padding:8px;display:grid}.profile-diff-before{background:#eee7dc}.profile-diff-after{background:var(--red-soft)}.profile-diff-before small,.profile-diff-after small{color:var(--muted);font-size:.7rem}.profile-diff-before b,.profile-diff-after b{overflow-wrap:break-word;word-break:keep-all;font-size:.82rem;line-height:1.55}.profile-diff-before b{color:var(--muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb, var(--red) 45%, transparent);font-weight:600;text-decoration-thickness:1px}.profile-diff-row[data-long] .profile-diff-before b{line-height:1.7;text-decoration:none}.profile-diff-after b{color:var(--red-deep);font-weight:800}.profile-diff-arrow{color:var(--red);text-align:center;font-size:.64rem;font-weight:750}.profile-new-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-new-grid>div{background:var(--red-soft);min-width:0;padding:9px 10px}.profile-new-grid>div[data-wide]{grid-column:span 3}.profile-new-grid dd{overflow-wrap:anywhere;color:var(--red-deep);margin:4px 0 0;font-size:.8rem;font-weight:800;line-height:1.5}.empty{color:var(--muted)}.teacher-management{margin:0;padding:0}.teacher-management-head{justify-content:space-between;align-items:end;gap:12px;display:flex}.teacher-management-head p,.teacher-management-head h2{margin:0}.teacher-management-head p{color:var(--red);letter-spacing:.08em;font-size:.72rem;font-weight:800}.teacher-management-head>span{color:var(--muted);font-size:.78rem}.teacher-management-tools{align-items:center;gap:10px;display:flex}.teacher-management-tools>span{color:var(--muted);white-space:nowrap;font-size:.78rem}.teacher-management-tools button{min-height:40px}.teacher-search{gap:7px;margin-top:16px;display:grid}.teacher-search input{letter-spacing:0;font-size:16px}.teacher-delete-note{color:var(--muted);margin:10px 0 14px;font-size:.76rem;line-height:1.6}.teacher-editor{border:1px solid var(--red);background:#ffffff52;margin:14px 0 18px;padding:14px}.teacher-editor-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.teacher-editor-head p,.teacher-editor-head h3{margin:0}.teacher-editor-head p{color:var(--red);letter-spacing:.08em;font-size:.7rem;font-weight:800}.teacher-editor-head h3{margin-top:4px;font-size:1rem}.teacher-editor-head button,.teacher-editor-actions button:first-child{color:var(--ink);border-color:var(--line);background:var(--paper-deep)}.teacher-editor-before{border:1px solid var(--line);background:var(--paper);margin:12px 0;padding:10px}.teacher-editor-before strong{color:var(--red);font-size:.72rem}.teacher-editor-before p{color:var(--muted);margin:4px 0 0;font-size:.74rem;line-height:1.55}.teacher-editor-primary{grid-template-columns:1.15fr .7fr 1fr;gap:9px;display:grid}.teacher-editor-classes{border:0;margin:14px 0 0;padding:0}.teacher-editor-classes legend{color:var(--red);font-size:.78rem;font-weight:800}.teacher-editor-phase{border:1px solid var(--line);margin-top:10px;padding:10px}.teacher-editor-phase>div:first-child{justify-content:space-between;align-items:center;gap:12px;display:flex}.teacher-editor-phase>div:first-child>label{grid-template-columns:auto 110px;align-items:center;gap:7px;display:grid}.teacher-editor-phase>div:first-child span{margin:0}.teacher-editor-phase select{min-height:38px;padding:6px;font-size:.78rem}.teacher-editor-class-grid{grid-template-columns:repeat(12,minmax(32px,1fr));gap:4px;margin-top:8px;display:grid}.teacher-editor-class-grid label{min-width:0;position:relative}.teacher-editor-class-grid input{opacity:0;width:1px;height:1px;position:absolute}.teacher-editor-class-grid span{min-height:36px;color:var(--muted);border:1px solid var(--line);background:var(--paper);cursor:pointer;place-items:center;margin:0;font-size:.68rem;display:grid}.teacher-editor-class-grid input:checked+span{color:var(--paper);border-color:var(--red);background:var(--red)}.teacher-editor-actions{grid-template-columns:.7fr 1.3fr;gap:8px;display:grid}.teacher-editor-actions button{width:100%;margin-top:10px}.teacher-admin-list{gap:7px;max-height:48svh;display:grid;overflow-y:auto}.teacher-admin-item{border-bottom:1px solid var(--line);background:#ffffff40;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:10px;display:flex}.teacher-admin-item>div:first-child{gap:3px;min-width:0;display:grid}.teacher-admin-item strong,.teacher-admin-item span{overflow-wrap:anywhere}.teacher-admin-item span{color:var(--muted);font-size:.74rem}.teacher-row-actions{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.teacher-row-actions button{min-height:38px;padding:7px 9px;font-size:.74rem}.teacher-row-actions [data-teacher-edit]{color:var(--paper);background:var(--red)}.teacher-delete{color:var(--red);background:0 0}[data-confirming] .teacher-delete{color:var(--paper);background:var(--red)}.teacher-delete-cancel{color:var(--ink);border-color:var(--line);background:var(--paper-deep)}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb, var(--red) 45%, transparent);outline-offset:2px}@media (width<=380px){.queue-head,.teacher-management-head{flex-direction:column;align-items:flex-start}.teacher-admin-item{align-items:flex-start}.profile-diff-title{flex-direction:column;align-items:flex-start;gap:3px}.profile-diff-title span{text-align:left}}@media (width<=620px){.admin-shell{max-width:none;padding:16px 12px 36px}.login-panel,.queue{padding:16px 12px}.correction-card-head,.profile-diff-title{flex-direction:column;align-items:flex-start;gap:4px}.profile-diff-title span{text-align:left}.profile-diff-row[data-long] dd{grid-template-columns:1fr;gap:5px}.profile-diff-row[data-long] .profile-diff-arrow{text-align:left;padding-left:8px}.profile-new-grid{grid-template-columns:1fr}.profile-new-grid>div[data-wide]{grid-column:span 1}.teacher-editor-primary{grid-template-columns:1fr}.teacher-editor-class-grid{grid-template-columns:repeat(6,1fr)}.teacher-editor-phase>div:first-child{flex-direction:column;align-items:flex-start}}
