
:root{--navy:#101f3d;--navy2:#182c50;--orange:#f47721;--bg:#f3f6fb;--line:#e3e9f2;--ink:#1b2940;--muted:#687890}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:#174b90;text-decoration:none}a:hover{text-decoration:underline}
.app-shell{min-height:100vh;display:grid;grid-template-columns:242px minmax(0,1fr)}
.sidebar{background:var(--navy);color:white;padding:25px 17px;display:flex;flex-direction:column;gap:28px}
.brand{font-weight:900;font-size:26px;letter-spacing:.6px;color:white}.brand em{color:var(--orange);font-style:normal}
.brand-sub{font-size:11px;letter-spacing:1.7px;color:#acbad2;text-transform:uppercase}
.nav-label{font-size:10px;letter-spacing:1.5px;color:#90a3c0;font-weight:800;padding:0 13px;margin-bottom:10px}
.nav a{display:flex;align-items:center;gap:11px;padding:12px 13px;color:#c7d4e7;border-radius:10px;margin-bottom:5px;font-weight:650}
.nav a:hover,.nav a.active{background:#273d62;color:#fff;text-decoration:none}.nav a.active{border-left:3px solid var(--orange)}
.nav svg{width:18px;height:18px;flex-shrink:0}.sidebar-foot{margin-top:auto;color:#a7b8d1;font-size:11px;line-height:1.6;padding:14px;border-top:1px solid #304363}
.workspace{min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 35px;gap:12px}
.topbar-title{font-weight:800;font-size:15px}.topbar-right{display:flex;gap:12px;align-items:center}.avatar{height:35px;width:35px;border-radius:50%;display:grid;place-items:center;background:#ffeadb;color:#b84f0c;font-weight:900}
.role-pill{background:#f0f4f9;color:#425672;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:800}
.page{max-width:1460px;margin:0 auto;padding:32px 35px 60px}.eyebrow{font-size:11px;color:var(--orange);font-weight:900;letter-spacing:1.8px;text-transform:uppercase}
.page h1{font-size:30px;letter-spacing:-.9px;margin:4px 0 4px;color:var(--navy)}.subtitle{margin:0;color:var(--muted)}
.hero{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.hero-badge{border:1px solid #d5e0ed;border-radius:9px;background:white;padding:9px 12px;font-size:12px;color:#52647d}
.notice{background:#fff9ef;border:1px solid #f7dfbd;border-left:4px solid #ef9a2d;padding:12px 16px;border-radius:9px;color:#795521;margin-bottom:23px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.stat{background:white;border:1px solid var(--line);border-radius:15px;padding:20px;box-shadow:0 3px 12px #15253d06;min-height:134px}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.stat-label{font-weight:750;font-size:12px;color:#62738c}
.stat-icon{width:37px;height:37px;border-radius:11px;background:#fff1e8;color:var(--orange);display:grid;place-items:center}
.stat-icon svg{width:19px;height:19px}.stat-value{font-size:26px;letter-spacing:-.7px;font-weight:850;margin:15px 0 0;color:var(--navy)}
.stat-small{font-size:11px;color:#8290a4;margin-top:3px}
.panel{background:white;border:1px solid var(--line);border-radius:15px;box-shadow:0 3px 12px #15253d05;min-width:0}
.panel-head{padding:20px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.panel-head h2{font-size:17px;margin:0;color:var(--navy)}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.panel-body{padding:22px 23px}.columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:20px;margin-bottom:22px}
.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.action{background:#f8faff;border:1px solid #e2e9f5;border-radius:11px;padding:14px;display:flex;gap:10px;align-items:center;font-weight:750;color:#233758}
.action svg{width:19px;height:19px;color:var(--orange)}.action:hover{background:#fff2e9;border-color:#f7bb92;text-decoration:none}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-grid .full{grid-column:1/-1}
label{display:block;font-size:12px;font-weight:750;color:#43536c}input,select{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #ccd7e6;border-radius:9px;background:white;font:inherit;color:#20324e;min-height:43px}
input:focus,select:focus{outline:2px solid #f7b37e;border-color:var(--orange)}.btn{background:var(--orange);border:0;border-radius:9px;padding:12px 18px;color:white;font-weight:800;cursor:pointer;font:inherit}
.btn:hover{background:#e46714}.btn-secondary{display:inline-block;background:#f0f4fa;color:#1d3558;padding:10px 14px;border-radius:9px;font-weight:750}
.form-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:17px}.hint{color:#6e7d92;font-size:11px;max-width:380px}
.alert-error{background:#fff0ef;border:1px solid #f7ceca;color:#a3322b;padding:11px 13px;border-radius:9px;margin-bottom:15px}
.alert-success{background:#eefaf2;border:1px solid #bde6c9;color:#18683b;padding:11px 13px;border-radius:9px;margin-bottom:15px}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{background:#f8fafd;color:#62728a;font-size:11px;letter-spacing:.35px;text-transform:uppercase}
th,td{text-align:left;padding:14px 18px;border-bottom:1px solid #ebeff5}td{font-size:12px;color:#34455f}tr:last-child td{border-bottom:0}
.type-tag{display:inline-block;background:#edf3fc;border-radius:6px;color:#32567d;padding:4px 8px;font-weight:800;font-size:10px}
.empty{padding:30px;text-align:center;color:#8794a8}.fineprint{font-size:11px;color:#73819a;margin-top:12px}
.auth{max-width:440px;margin:8vh auto;background:#fff;padding:32px;border-radius:14px;box-shadow:0 12px 35px #10204216}
.auth h1{color:var(--orange)}.auth button,button:not(.btn){background:var(--orange);color:white;border:0;padding:12px 20px;border-radius:7px;font-weight:700;cursor:pointer}
.auth input{margin-bottom:12px}.wide:not(.app-shell){max-width:960px;margin:35px auto;padding:28px;background:white;border-radius:14px}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.columns{grid-template-columns:1fr}}
@media(max-width:700px){.app-shell{display:block}.sidebar{padding:13px 17px;gap:9px}.sidebar .nav{display:flex;overflow-x:auto;gap:5px}.nav-label,.sidebar-foot{display:none}.nav a{white-space:nowrap;padding:8px 11px}.brand{font-size:19px}.brand-sub{display:none}.topbar{padding:0 17px;height:58px}.page{padding:20px 14px 40px}.page h1{font-size:24px}.hero{align-items:flex-start}.hero-badge{display:none}.stat-grid{gap:9px}.stat{padding:13px;min-height:116px}.stat-value{font-size:20px}.stat-icon{height:30px;width:30px}.panel-head,.panel-body{padding:16px}.field-grid{grid-template-columns:1fr}.field-grid .full{grid-column:auto}.form-actions{align-items:stretch;flex-direction:column}.quick-actions{grid-template-columns:1fr 1fr}.action{padding:11px;font-size:12px}}
