:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#25354a;background:#f3f6fa;font-synthesis:none;--navy:#142c48;--blue:#2563eb;--muted:#6b7b8f;--line:#e3e9f1;--red:#b93f45;--green:#16765c}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}input,select,textarea{width:100%;border:1px solid #cfd8e5;border-radius:9px;background:#fff;padding:11px 12px;color:inherit;min-height:44px}input:focus,select:focus,textarea:focus{outline:3px solid #bfdbfe;border-color:#3b82f6}textarea{min-height:100px;resize:vertical}label{display:block;font-size:14px;font-weight:600;margin:17px 0 7px}button{border:1px solid var(--line);background:white;color:#34465e;border-radius:9px;padding:10px 16px;min-height:42px;font-weight:600}button:hover{background:#f0f5fc}.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.primary:hover{background:#1d4ed8}.danger{color:var(--red)}a{color:var(--blue)}h1,h2,h3,p{margin-top:0}h1{font-size:26px;letter-spacing:-.6px;margin-bottom:8px}h2{font-size:19px}h3{font-size:16px}.muted{color:var(--muted);font-size:13px;line-height:1.7}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700;color:#8198b3;margin-bottom:16px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-intro{background:var(--navy);color:white;padding:12vh 9%;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-intro:after{content:'26305';position:absolute;font-size:140px;font-weight:800;opacity:.045;bottom:15px;left:20px;letter-spacing:-8px}.auth-intro h1{font-size:42px;line-height:1.35;letter-spacing:-1px}.auth-intro p{color:#adc0d5;line-height:1.9}.auth-box{padding:55px 24px;display:grid;place-items:center}.auth-card{width:min(100%,390px)}.auth-card .primary{width:100%;margin-top:25px}.brand{display:flex;gap:12px;align-items:center}.mark{background:#2d66b1;color:white;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:18px}.brand strong{font-size:17px}.brand small{display:block;font-size:11px;opacity:.55;margin-top:5px}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:white;padding:30px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar .brand{margin:0 10px 35px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{border:0;text-align:left;background:transparent;color:#b4c3d5;font-weight:500;padding:13px 16px}.nav button.active{background:#284668;color:#fff}.nav button:hover{background:#223f60}.side-note{margin-top:auto;padding:20px 12px 0;border-top:1px solid #ffffff1a;color:#9eb1c8;font-size:12px;line-height:1.8}.workspace{min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 38px;background:#ffffffdd;border-bottom:1px solid var(--line)}.topbar select{max-width:285px;font-size:13px}.identity{text-align:right;font-size:13px}.identity small{color:var(--muted);display:block;margin-top:4px}.content{max-width:1380px;margin:auto;padding:32px 38px 65px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:25px}.page-head p{margin:7px 0 0}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:20px;box-shadow:0 3px 10px #142c4803}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.metric{padding:22px;background:white;border:1px solid var(--line);border-radius:13px}.metric span{font-size:12px;color:var(--muted)}.metric strong{display:block;font-size:29px;color:var(--navy);font-weight:700;margin:13px 0 4px}.metric small{font-size:11px;color:#91a0b2}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.toolbar>div{flex:1;min-width:130px}.toolbar label{margin-top:0}.toolbar button{flex:0 0 auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}th{padding:13px 14px;background:#f6f8fb;color:#718096;font-size:12px;font-weight:500;border-bottom:1px solid var(--line)}td{padding:16px 14px;border-bottom:1px solid #edf0f5}tr:last-child td{border-bottom:0}td.wrap{white-space:normal;min-width:170px;max-width:340px;line-height:1.7}td strong{font-weight:600}td .actions{display:flex;gap:7px}td button{padding:6px 10px;min-height:34px;font-size:12px}.badge{font-size:11px;padding:4px 8px;border-radius:5px;background:#eaf1fc;color:#486990;white-space:nowrap}.badge.void{background:#fcebed;color:var(--red)}.void-row .record-value{text-decoration:line-through;color:#99a4b2}.empty{padding:40px;text-align:center;color:var(--muted);font-size:14px}.notice{padding:14px 17px;border-radius:9px;background:#edf4ff;color:#365a89;font-size:13px;line-height:1.8;margin-bottom:20px}.notice.warn{background:#fff6df;color:#8b651e}.notice.error{background:#fff0f0;color:#a63136}.two-col{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.two-col .card{margin-bottom:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.students{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:420px;overflow:auto;margin:12px 0}.student-check{margin:0;display:flex;gap:9px;align-items:center;font-size:13px;font-weight:400;padding:12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}.student-check:has(input:checked){background:#eff5ff;border-color:#97b8f8}.student-check input{width:17px;min-height:17px;flex-shrink:0;accent-color:var(--blue)}.student-check small{display:block;color:#8b98a8;margin-top:4px;font-size:10px}.selection{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.points-preview{border:1px dashed #b9cceb;padding:20px;border-radius:10px;background:#f7faff;margin:18px 0}.points-preview strong{font-size:29px;display:block;margin-top:8px}.form-footer{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap}.pagination{display:flex;justify-content:flex-end;gap:14px;align-items:center;margin-top:20px;font-size:12px;color:var(--muted)}.log{border-bottom:1px solid var(--line);padding:17px 0}.log:last-child{border:0}.log-head{display:flex;justify-content:space-between;gap:12px;font-size:13px}.log pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9fc;font-size:12px;line-height:1.8;padding:12px;border-radius:7px}.log details{margin-top:12px;font-size:13px}.log summary{cursor:pointer;color:var(--blue)}dialog{border:0;border-radius:15px;padding:30px;width:min(620px,calc(100% - 30px));max-height:90vh;box-shadow:0 20px 100px #142c4840}dialog::backdrop{background:#0b1e36a0}.dialog-close{position:absolute;right:13px;top:10px;border:0;font-size:24px;background:transparent;padding:4px 10px;min-height:32px}.dialog-close:hover{background:#edf3fb}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#142c48;color:white;border-radius:10px;padding:14px 22px;max-width:90vw;font-size:14px;z-index:100;display:none;box-shadow:0 8px 25px #0002}#offline{position:sticky;top:0;z-index:99;background:#fff0c4;color:#785300;text-align:center;padding:10px;font-size:13px}.loading{padding:80px 20px;text-align:center;color:#718096}.mobile-records{display:none}.export-choice{display:flex;gap:10px;flex-wrap:wrap}.credentials{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f6fd;padding:15px;border-radius:8px;font-family:monospace;line-height:1.8;max-height:300px;overflow:auto}.hr{border:0;border-top:1px solid var(--line);margin:24px 0}code{background:#eef2f8;padding:2px 5px;border-radius:4px;font-size:12px}.file-label{background:#f7faff;border:1px dashed #b5c7e0;padding:20px;border-radius:9px}.file-label input{background:transparent;border:0;padding:8px 0}.table-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.table-title h2{margin:0}.mobile-nav-title{display:none}.break{overflow-wrap:anywhere}.hint-list{padding-left:20px;font-size:13px;color:var(--muted);line-height:1.9}.export-progress{margin-top:14px;color:var(--muted);font-size:13px}
@media(max-width:1050px){.shell{grid-template-columns:190px 1fr}.sidebar{padding:25px 12px}.brand strong{font-size:14px}.content{padding:25px 22px}.topbar{padding:18px 22px}.two-col{grid-template-columns:1fr}.students{grid-template-columns:repeat(4,1fr)}.metrics{gap:10px}.metric{padding:17px}.metric strong{font-size:25px}}
@media(max-width:700px){.auth{display:block}.auth-intro{padding:35px 26px 30px}.auth-intro h1{font-size:28px;margin-bottom:12px}.auth-intro p{font-size:13px;margin:0}.auth-intro:after{font-size:100px;bottom:-25px;left:auto;right:15px}.auth-box{padding:30px 24px}.shell{display:block}.sidebar{height:auto;position:static;padding:18px 16px}.sidebar .brand{margin:0 0 18px}.nav{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:3px}.nav button{white-space:nowrap;padding:10px 13px;font-size:13px;min-height:39px}.side-note{display:none}.topbar{padding:13px 16px}.topbar select{font-size:12px;max-width:230px;min-height:40px}.identity{font-size:12px;white-space:nowrap}.identity small{font-size:10px}.content{padding:23px 16px 45px}h1{font-size:23px}.page-head{margin-bottom:20px}.page-head>button{font-size:12px;padding:9px 11px}.metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.metric{padding:17px}.metric strong{font-size:28px;margin:9px 0 3px}.card{padding:18px;border-radius:12px;margin-bottom:15px}.students{grid-template-columns:repeat(2,1fr);max-height:350px}.student-check{padding:10px}.form-row{grid-template-columns:1fr;gap:0}.toolbar{gap:10px}.toolbar>div{min-width:calc(50% - 10px)}.toolbar button{flex:1}.records-table{display:none}.mobile-records{display:block}.record-card{border:1px solid var(--line);border-radius:10px;padding:15px;margin-bottom:12px}.record-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.record-card .muted{margin:8px 0}.record-card p{font-size:13px;line-height:1.8;margin:9px 0}.record-card .actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.record-card .actions button{font-size:12px;min-height:36px;padding:7px 12px}.record-card.void-row .record-value{text-decoration:line-through}.notice{font-size:12px}.log-head{display:block}.log-head time{display:block;margin-top:8px;color:var(--muted)}dialog{padding:26px 20px}.form-footer button{flex:1}.log .form-row{grid-template-columns:1fr}.export-choice button{flex:1}}
@media print{.sidebar,.topbar,.form-footer,button,#toast{display:none}.shell{display:block}.content{padding:0}.card{border:0;box-shadow:none}.records-table{display:block}.mobile-records{display:none}thead{display:table-header-group}tr{break-inside:avoid}}
[hidden]{display:none!important}
.cadre-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:16px}.cadre-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0}.cadre-person .muted{margin:6px 0 0;font-size:11px}.cadre-person button{white-space:nowrap;font-size:12px;padding:9px 12px}.cadre-person strong{font-size:14px}
.reason-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin-top:18px}.reason-card{border:1px solid var(--line);border-radius:11px;padding:18px;min-width:0}.reason-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;line-height:1.6}.reason-card-head strong{overflow-wrap:anywhere;font-size:15px}.reason-card-head>span{white-space:nowrap;font-weight:700;font-size:19px}.reason-card .form-footer{justify-content:flex-start;gap:8px}.reason-card button{font-size:12px;padding:8px 11px}
