[hidden]{display:none!important}
:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:#f5f7fb;color:#15243a;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.shell{min-height:100vh;display:grid;grid-template-columns:238px 1fr}aside{background:#11213a;color:white;display:flex;flex-direction:column;padding:26px 16px;gap:35px}.brand{display:flex;align-items:center;gap:12px;padding:0 10px}.brand strong{font-size:25px}.brand small{display:block;color:#a4b6d1;margin-top:3px}.brand-icon{display:grid;place-items:center;background:#2563eb;color:white;width:42px;height:42px;border-radius:13px;font-size:24px}nav{display:grid;gap:6px}nav button{border:0;border-radius:10px;background:transparent;color:#c7d5ea;text-align:left;padding:13px 14px}nav button.active,nav button:hover{background:#24416a;color:white}.aside-foot{margin-top:auto;padding:10px;color:#a4b6d1;font-size:12px;line-height:1.8}.aside-foot span{color:#93c5fd}.main{min-width:0;padding:28px clamp(18px,4vw,54px)}header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px;flex-wrap:wrap}h1{font-size:27px;margin:0 0 8px}h2{font-size:18px;margin:0 0 18px}h3{font-size:15px;margin:0 0 14px}p{color:#64748b;margin:0 0 15px}.header-actions,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pill{padding:9px 12px;background:#dbeafe;color:#1d4ed8;border-radius:30px;font-size:12px}.pill.ok{background:#dcfce7;color:#166534}.pill.err{background:#fee2e2;color:#991b1b}button.primary{background:#2563eb;color:white;border:1px solid #2563eb;border-radius:9px;padding:11px 16px;font-weight:600}button.ghost,.btn{background:white;color:#334155;border:1px solid #d9e2ed;border-radius:9px;padding:10px 14px}.danger{color:#b91c1c!important}.cards{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:15px;margin-bottom:22px}.metric,.panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:22px}.metric small{color:#64748b}.metric strong{display:block;font-size:29px;margin:15px 0 2px}.panel{margin-bottom:22px;overflow-x:auto}.panel-top{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}.panel-top h2{margin:0}.muted{color:#64748b}.empty{text-align:center;padding:35px;color:#64748b}table{border-collapse:collapse;width:100%;min-width:660px}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid #e8eef5;vertical-align:top}th{color:#64748b;font-weight:600;background:#f8fafc}tr:last-child td{border-bottom:0}form{display:grid;gap:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(190px,1fr));gap:14px}label{display:grid;gap:7px;color:#334155;font-weight:600}input,textarea,select{background:white;border:1px solid #ccd7e5;border-radius:9px;padding:11px 12px;min-width:0;color:#142339}textarea{min-height:110px;resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #93c5fd;border-color:#2563eb}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#e8f0ff,#f8fafc)}.login-card{width:min(410px,100%);background:white;padding:35px;border-radius:20px;box-shadow:0 18px 60px #0f172a16}.login-card .brand-icon{width:56px;height:56px;margin-bottom:20px}.login-card button{width:100%}.login-card small{color:#64748b;line-height:1.6}.error{color:#b91c1c}#notice{position:fixed;right:20px;bottom:20px;max-width:480px;background:#102039;color:white;border-radius:10px;padding:13px 18px;box-shadow:0 10px 30px #0002;display:none;z-index:4}pre{white-space:pre-wrap;word-break:break-word;background:#f1f5f9;padding:15px;border-radius:9px;max-height:400px;overflow:auto}.badge{background:#edf2f7;padding:5px 9px;border-radius:20px;font-size:12px}audio{max-width:100%}@media(max-width:940px){.cards{grid-template-columns:repeat(2,1fr)}.shell{grid-template-columns:1fr}aside{padding:13px;gap:14px}.brand{justify-content:center}nav{display:flex;overflow:auto}nav button{white-space:nowrap}.aside-foot{display:none}.main{padding:22px}}@media(max-width:530px){.cards,.form-grid{grid-template-columns:1fr}.main{padding:14px}header{align-items:flex-start}}