*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:#F4F5F7;color:#14181F;font-size:15px}
a{color:#B53A0C}
[hidden]{display:none!important}
.muted{color:#4B5361}.small{font-size:12px}
.brand{font-weight:700;font-size:22px;letter-spacing:.5px}.brand span{color:#F07A3C}
.layout{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 240px;max-width:260px;background:#14181F;color:#E7E9ED;padding:28px 20px;display:flex;flex-direction:column;gap:28px}
.side .muted{color:#A9AFBA}
.nav{display:flex;flex-direction:column;gap:4px}
.nav a{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:8px;color:#C9CDD4;text-decoration:none;min-height:44px}
.nav a.active{background:#262C36;color:#fff;font-weight:600}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.badge{background:#B53A0C;color:#fff;border-radius:999px;font-size:12px;font-weight:700;padding:2px 8px}
.main{flex:999 1 560px;min-width:0;padding:32px 40px;display:flex;flex-direction:column;gap:24px}
h1{margin:0;font-size:30px}h2{margin:0;font-size:19px}
.card{background:#fff;border:1px solid #E1E4E8;border-radius:12px;padding:20px 22px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px}
.kpi .v{font-size:30px;font-weight:700}.kpi .l{font-size:13px;color:#4B5361}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.between{justify-content:space-between}
.btn{min-height:44px;padding:0 18px;border-radius:8px;border:1px solid #C9CDD4;background:#fff;font:600 14px inherit;font-family:inherit;color:#14181F;cursor:pointer}
.btn.primary{background:#B53A0C;border-color:#B53A0C;color:#fff}
.btn.dark{background:#14181F;border-color:#14181F;color:#fff}
.btn.ghost{background:transparent;border-color:#343B47;color:#C9CDD4}
.btn:disabled{opacity:.5;cursor:default}
.small-btn{min-height:36px;font-size:13px}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;color:#4B5361;font-size:12px;text-transform:uppercase;letter-spacing:.5px;padding:10px 8px;border-bottom:1px solid #E1E4E8}
td{padding:11px 8px;border-bottom:1px solid #F0F1F3;vertical-align:top}
.scroll{overflow-x:auto}
.pill{display:inline-block;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;background:#EEF0F3;color:#343B47}
.pill.orange{background:#FDE8DC;color:#8A2C09}.pill.green{background:#DCF2E3;color:#135C2E}.pill.blue{background:#E6ECFB;color:#1E3A8A}.pill.red{background:#FBE3E3;color:#8B1C1C}
label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
input,textarea,select{font:inherit;padding:10px 12px;border:1px solid #C9CDD4;border-radius:8px;background:#fff;color:#14181F;min-height:44px}
textarea{min-height:220px;line-height:1.55;resize:vertical}
.msg{border:1px solid #E1E4E8;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:10px}
.msg pre{white-space:pre-wrap;font-family:inherit;margin:0;line-height:1.55;background:#FBFBFC;border:1px solid #F0F1F3;border-radius:8px;padding:12px}
.error{color:#8B1C1C;font-weight:600}
.notice{background:#FDF4E7;border:1px solid #F3D9B1;color:#6B3E00;border-radius:10px;padding:12px 14px;font-size:14px}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}
.login-card{width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px}
.toast{position:fixed;bottom:20px;right:20px;background:#14181F;color:#fff;padding:12px 16px;border-radius:10px;font-weight:600;max-width:420px}
.two{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}.two>*{flex:1 1 360px;min-width:0}
@media (max-width:700px){.main{padding:20px}.side{max-width:none}}
