:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172139;background:#f6f7fc;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dce0eb;background:white;color:#293453;padding:10px 14px;border-radius:9px;font-weight:600}button:hover{background:#f0edff}button.primary{background:#5949b7;color:white;border-color:#5949b7}button.primary:hover{background:#483c9b}button.danger{color:#af3d42}button.ghost{border:0;background:transparent}button:disabled{opacity:.5;cursor:default}input,select,textarea{border:1px solid #ced5e5;padding:10px 12px;border-radius:8px;background:white;width:100%;color:#1c2743}textarea{min-height:75px}input[type=checkbox]{width:auto}label{display:block;font-weight:600;color:#44506b;font-size:12px}label input,label select,label textarea{display:block;margin-top:6px}.hidden{display:none!important}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:16px;background:linear-gradient(130deg,#eeeafd,#f7fafc)}.login-card{width:min(100%,430px);padding:36px;background:white;border-radius:20px;box-shadow:0 16px 70px #28315122;display:grid;gap:13px;text-align:center}.login-card label{text-align:left}.login-card h1{margin:0}.login-card p{margin:0 0 14px;color:#7a849e}.brand-icon{display:grid;place-items:center;background:#5949b7;color:white;font:bold 22px Georgia;border-radius:12px;width:42px;height:42px}.login-card .brand-icon{margin:auto}header{height:76px;padding:12px 27px;background:white;border-bottom:1px solid #e6e9f3;display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{display:flex;align-items:center;gap:11px}.brand small{display:block;color:#8893a7;margin-top:4px}.header-right{display:flex;align-items:center;gap:14px}.header-right .inline{display:flex;align-items:center;gap:8px}.header-right select{width:155px}.topnav{background:#fff;display:flex;padding:0 27px;gap:7px;border-bottom:1px solid #e8eaf3;overflow:auto}.tab{border:0;border-radius:0;padding:16px 23px;white-space:nowrap}.tab.active{color:#5747b3;border-bottom:3px solid #5747b3;background:#f5f3ff}.shell{display:grid;grid-template-columns:230px minmax(0,1fr) 105px;gap:18px;max-width:1800px;margin:auto;padding:20px}aside#sidebar,.tools{background:white;border:1px solid #e7e9f3;border-radius:14px;padding:16px;align-self:start}aside#sidebar{display:grid;gap:9px}aside#sidebar button{text-align:left;border:0;background:transparent;font-weight:500}aside#sidebar button.active{background:#eeebff;color:#5845af}main{min-width:0}.tools{display:grid;gap:12px;text-align:center}.tools a{padding:10px 5px;border-radius:8px;border:1px solid #e3e4ee;text-decoration:none;font-weight:700;color:#5747b3}.tools small{color:#8790a1;font-size:10px}.card{background:white;border:1px solid #e7e9f3;border-radius:14px;padding:20px;margin-bottom:16px}.card h2,.card h3{margin:0 0 14px}.muted{color:#748098}.small{font-size:12px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:2px 0 16px}.section-title h2{margin:0}.filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:13px 0}.filters label{min-width:130px;flex:1}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.m-row{display:flex;gap:10px;margin:16px 0}.m-row button{flex:1;min-width:0;padding:17px 4px}.m-row button.active{background:#5747b3;color:white}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.table-scroll{overflow:auto;border:1px solid #e7eaf2;border-radius:10px}table{border-collapse:collapse;width:100%;min-width:610px}th,td{padding:10px 11px;text-align:left;border-bottom:1px solid #edf0f5;white-space:nowrap}th{background:#f1f3f9;color:#4b5570;font-weight:700;font-size:12px}tr:hover td{background:#faf9ff}td button{padding:6px 8px;font-size:12px}td input,td select{min-width:90px;padding:6px 8px}.pills{display:flex;gap:7px;flex-wrap:wrap}.pill{background:#eeebff;border-radius:20px;padding:4px 10px;color:#5747b3;font-size:11px;font-weight:600}.badge-red{color:#b6383d;font-weight:700}.badge-green{color:#167c57;font-weight:700}.empty{text-align:center;color:#8a93a7;padding:32px}.hint{border-left:3px solid #8b7fe0;background:#f6f4ff;padding:11px 14px;border-radius:6px;color:#5f5c79;margin:12px 0;line-height:1.5}.warning{background:#fff5e8;border-left-color:#e5a047}#notice{display:none;margin-bottom:15px;padding:12px;border-radius:9px;background:#edf9f1;color:#236c48}#notice.error{display:block;background:#fdeeee;color:#9b3333}#notice.show{display:block}dialog{border:0;border-radius:18px;box-shadow:0 20px 100px #19254455;width:min(90vw,760px);max-height:90vh;padding:26px}dialog::backdrop{background:#17203985}.modal-close{float:right;font-size:21px;padding:4px 11px}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.stats{display:flex;gap:12px;flex-wrap:wrap}.stat{flex:1;min-width:130px;background:#f6f5fc;border-radius:12px;padding:15px}.stat strong{display:block;font-size:22px;margin-top:6px}.wide{width:100%}input[type=file]{padding:8px}.bar{display:flex;align-items:center;gap:14px}.bar input{max-width:330px}@media(max-width:1000px){.shell{grid-template-columns:180px minmax(0,1fr)}.tools{grid-column:1/-1;display:flex;align-items:center;justify-content:center}.tools a{min-width:70px}}@media(max-width:700px){header{padding:10px 12px;height:auto}.header-right{gap:3px}.header-right .inline{font-size:0}.header-right select{width:125px}.topnav{padding:0 6px}.tab{padding:12px 13px;font-size:12px}.shell{display:block;padding:10px}aside#sidebar{display:flex;overflow:auto;margin-bottom:12px;padding:8px}aside#sidebar button{white-space:nowrap}.tools{margin-top:12px}.card{padding:13px}.grid2,.grid3{grid-template-columns:1fr}.m-row button{font-size:11px;padding:13px 5px}.filters label{flex:1 1 135px}dialog{width:96vw;padding:15px}}
