:root{
  --navy:#0B1220; --navy-hi:#1B2336; --pri:#4F46E5; --pri-soft:#EEF0FE;
  --ink:#0F172A; --sub:#475569; --subtle:#94A3B8; --line:#EEF1F4; --border:#E3E6EB;
  --bg:#F4F6F9; --card:#FFFFFF; --input:#F1F3F7;
  --green:#16A34A; --green-soft:#E7F6EC; --orange:#F59E0B; --orange-soft:#FEF3E2;
  --red:#DC2626; --red-soft:#FCE9E9;
  --side-text:#AEB2BD; --side-mut:#6B7180;
  --radius:14px; --shadow:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.04);
  --shadow-lg:0 10px 30px rgba(16,24,40,.12);
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',system-ui,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
.app{display:flex;min-height:100vh}
.sidebar{width:248px;background:var(--navy);color:var(--side-text);display:flex;flex-direction:column;padding:20px 14px;flex:none}
.brand{display:flex;align-items:center;gap:11px;padding:8px 10px 22px}
.brand-mark{width:34px;height:34px;border-radius:9px;background:var(--pri);color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}
.brand-name{font-size:14px;font-weight:700;color:#fff;line-height:1.15}
.brand-name span{color:#9FA2AD;font-weight:600}
.nav{display:flex;flex-direction:column;gap:2px;margin-top:6px}
.nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:9px;color:var(--side-text);font-weight:500;font-size:13.5px}
.nav a .ico{width:18px;height:18px;border-radius:5px;background:#2A3344;flex:none}
.nav a:hover{background:var(--navy-hi);color:#fff}
.nav a.active{background:var(--pri);color:#fff}
.nav a.active .ico{background:rgba(255,255,255,.35)}
.side-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 10px;border-top:1px solid #1E2638}
.side-user .avatar{width:32px;height:32px;border-radius:50%;background:var(--pri);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:600;flex:none}
.side-user b{color:#fff;font-size:13px;font-weight:600}
.side-user small{color:var(--side-mut);font-size:11px}
.main{flex:1;display:flex;flex-direction:column;min-width:0}
.topbar{height:62px;background:var(--card);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:16px;padding:0 26px;flex:none}
.crumb{font-size:13px;color:var(--subtle);font-weight:500}
.crumb b{color:var(--ink);font-weight:600}
.search{margin-left:8px;flex:1;max-width:420px;height:38px;background:var(--input);border-radius:9px;display:flex;align-items:center;padding:0 14px;color:var(--subtle);font-size:13px}
.icon-btn{width:38px;height:38px;border-radius:9px;background:var(--input);display:grid;place-items:center;cursor:pointer}
.me{width:36px;height:36px;border-radius:50%;background:var(--pri);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:600}
.content{padding:26px;overflow-y:auto}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}
.page-head h1{font-size:22px;font-weight:700}
.page-head p{color:var(--sub);font-size:13.5px;margin-top:4px}
.row{display:flex;gap:16px}
.grid{display:flex;flex-direction:column}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.card-pad{padding:18px 20px}
.card-title{font-size:15px;font-weight:600}
.card-sub{color:var(--subtle);font-size:12px;font-weight:500;margin-top:2px}
.between{display:flex;align-items:center;justify-content:space-between}
.muted{color:var(--subtle);font-weight:500}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}
.w-100{width:100%}
.btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:9px;font-size:13.5px;font-weight:600;border:none;cursor:pointer;font-family:inherit}
.btn-sm{height:34px;padding:0 12px;font-size:12.5px}
.btn-primary{background:var(--pri);color:#fff}
.btn-primary:hover{background:#4338CA}
.btn-soft{background:var(--pri-soft);color:var(--pri)}
.btn-ghost{background:var(--input);color:var(--sub)}
.chip{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:6px;background:var(--input);color:var(--sub);font-size:11.5px;font-weight:600}
.chip .d{width:6px;height:6px;border-radius:50%;background:currentColor}
.chip.pri{background:var(--pri-soft);color:var(--pri)}
.chip.green{background:var(--green-soft);color:var(--green)}
.chip.orange{background:var(--orange-soft);color:var(--orange)}
.chip.red{background:var(--red-soft);color:var(--red)}
.feu{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600}
.feu .d{width:9px;height:9px;border-radius:50%}
.feu.green{color:var(--green)}.feu.green .d{background:var(--green)}
.feu.orange{color:var(--orange)}.feu.orange .d{background:var(--orange)}
.feu.red{color:var(--red)}.feu.red .d{background:var(--red)}
.link{color:var(--pri);font-weight:600;cursor:pointer}
.field{margin-bottom:0}
.field>label{display:block;font-size:12px;font-weight:600;color:var(--sub);margin-bottom:6px}
.input{width:100%;background:var(--input);border:1px solid transparent;border-radius:8px;padding:10px 12px;font:inherit;font-size:12.5px;color:var(--ink)}
.input.bordered{background:#fff;border-color:var(--border)}
.input.ph{color:var(--subtle)}
textarea.input{resize:vertical;min-height:72px;line-height:1.5}
.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}
.auth-brand{background:var(--navy);color:var(--side-text);padding:72px}
.auth-brand .big{font-size:34px;font-weight:700;color:#fff;line-height:1.18;margin-top:110px}
.auth-brand .big span{color:#9FA2AD}
.auth-feat{display:flex;align-items:center;gap:14px;margin-top:18px;font-size:13.5px;font-weight:500}
.auth-feat .c{width:22px;height:22px;border-radius:6px;background:var(--navy-hi);color:#8B8DF7;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.auth-foot{color:var(--side-mut);font-size:11px;font-weight:500;margin-top:64px}
.auth-form{display:flex;flex-direction:column;justify-content:center;padding:0 13%;background:#fff}
.auth-form h1{font-size:28px;font-weight:700}
.auth-form .sub{color:var(--sub);font-size:13.5px;margin:8px 0 28px}
.or{display:flex;align-items:center;gap:14px;color:var(--subtle);font-size:11px;font-weight:500;margin:18px 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--border)}
.err{background:var(--red-soft);color:var(--red);border-radius:8px;padding:10px 12px;font-size:12.5px;font-weight:500;margin-bottom:16px}
