*{box-sizing:border-box}html{min-width:320px}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173b60}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}
:root{--ink:#173b60;--muted:#8198ad;--blue:#2684d9;--line:#e4edf6;--bg:#f3f8fd;--green:#16865d;--red:#c64c61;--shadow:0 10px 32px rgba(39,91,139,.055)}
.app-body{background:var(--bg)}.app-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:27px 18px 20px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:12px;padding:0 8px 35px}.brand-mark{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:21px;font-weight:800;background:linear-gradient(145deg,#53b5f4,#1767b4);box-shadow:0 8px 18px #2684d93d}
.brand-text{display:flex;flex-direction:column;gap:4px}.brand-text strong{letter-spacing:.06em;font-size:14px;color:#155d9e}.brand-text small{letter-spacing:.13em;color:#91a8be;font-size:9px;font-weight:700}
.side-caption,.eyebrow{color:#8ba2b8;font-size:10px;letter-spacing:.14em;font-weight:800}.side-caption{padding:0 12px 12px}.side-nav{display:grid;gap:6px}.side-nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:11px;color:#6d879f;font-size:13px;font-weight:600;transition:.18s}.side-nav a:hover{background:#f4f9fe;color:#1767b4}.side-nav a.active{background:#eaf4ff;color:#176cba;box-shadow:inset 3px 0 #2d91e3}.nav-icon{width:19px;text-align:center;font-size:18px}
.sidebar-bottom{margin-top:auto}.admin-chip{border:1px solid var(--line);border-radius:13px;padding:11px;display:flex;align-items:center;gap:10px;margin-bottom:10px}.admin-avatar{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#e3f1ff;color:#2075bd;font-weight:800}.admin-chip span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}.admin-chip b{font-size:12px;overflow-wrap:anywhere}.admin-chip small{font-size:10px;color:var(--muted)}.logout-btn{width:100%;padding:10px 11px;border:0;background:transparent;color:#8499ad;font-size:12px;text-align:left;border-radius:9px}.logout-btn:hover{background:#fff2f3;color:var(--red)}.sidebar-version{color:#b0bfcd;font-size:9px;letter-spacing:.08em;line-height:1.8;padding:20px 11px 0}
.main-content{min-width:0}.topbar{height:69px;background:#ffffffd1;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{display:flex;gap:10px;align-items:center;font-size:11px;color:#9aafc2}.breadcrumb i{font-style:normal;color:#c2d0dc}.breadcrumb b{color:#4c6b87}.topbar-right{display:flex;align-items:center;gap:17px}.live-pill{display:flex;align-items:center;gap:7px;background:#edfaf4;color:#25845f;border-radius:20px;padding:7px 10px;font-size:9px;font-weight:800;letter-spacing:.06em}.live-pill i,.status-dot{width:6px;height:6px;background:#28b47d;border-radius:50%;box-shadow:0 0 0 4px #28b47d1f}.top-admin{font-size:11px;color:#6d879e;font-weight:700}
.page-wrap{max-width:1440px;margin:0 auto;padding:34px 38px 25px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading h1{margin:9px 0 7px;color:#183e62;font-size:clamp(23px,3vw,31px);letter-spacing:-.045em}.page-heading p{margin:0;color:#8198ad;font-size:13px}.heading-badge{background:#e7f3ff;color:#287dc0;padding:9px 12px;border-radius:9px;font-size:9px;font-weight:800;letter-spacing:.09em;white-space:nowrap}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.stat-card,.panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.stat-card{padding:17px 18px;min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#8097ad;font-size:11px;font-weight:600;gap:8px}.stat-icon{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;font-size:16px}.stat-icon.blue{color:#247dca;background:#e9f4ff}.stat-icon.gold{color:#c68b25;background:#fff6e4}.stat-icon.violet{color:#7d71cf;background:#f0edff}.stat-icon.cyan{color:#2494a7;background:#e6f9fc}.stat-card>strong{display:block;margin:12px 0 4px;color:#194c7b;font-size:27px;letter-spacing:-.04em}.stat-card>small{color:#a0b0bf;font-size:10px}
.content-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:16px;margin-bottom:17px;align-items:stretch}.panel{padding:20px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.panel-heading h2{margin:6px 0 0;color:#244967;font-size:16px;letter-spacing:-.025em}.panel-heading-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#eaf4ff;color:#287fc7;font-size:19px}.panel-heading-icon.gold{background:#fff6e4;color:#c68b25}
.form-stack{display:grid;gap:12px}label{display:grid;gap:7px;color:#597690;font-size:11px;font-weight:700}input{width:100%;min-width:0;border:1px solid #dfe9f2;border-radius:9px;background:#fbfdff;color:#244967;padding:11px 12px;outline:none;font-size:12px;transition:.18s}input::placeholder{color:#b0bfcc}input:focus{border-color:#75b6ed;box-shadow:0 0 0 3px #2684d91a;background:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:9px;padding:11px 14px;font-size:11px;font-weight:800;transition:.18s;white-space:nowrap}.btn-primary{color:#fff;background:linear-gradient(135deg,#369de8,#176bbb);box-shadow:0 6px 14px #2684d92b}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 9px 18px #2684d938}.btn-full{width:100%}.btn-soft{background:#eaf4ff;color:#2877b9}.btn-soft:hover{background:#dceeff}.btn-small{padding:9px 11px;font-size:10px}.btn-positive{background:#e9f8f1;color:#17835a}.btn-positive:hover{background:#d8f2e6}.btn-negative{background:#fff0f1;color:#c14e60}.btn-negative:hover{background:#ffe2e5}
.form-note{display:flex;gap:8px;margin-top:15px;color:#96aabd;font-size:10px;line-height:1.5}.form-note span{color:#46a0dd}.leader-list{display:grid;gap:2px}.leader-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f0f4f8}.leader-row:last-child{border-bottom:0}.leader-rank{width:19px;color:#a0b2c2;font-size:10px;font-weight:800;text-align:center}.leader-avatar,.staff-avatar{display:grid;place-items:center;flex:0 0 auto;color:#2879ba;background:linear-gradient(145deg,#e9f5ff,#d7eaff);font-weight:800}.leader-avatar{width:31px;height:31px;border-radius:10px;font-size:12px}.leader-info{flex:1;min-width:0;display:grid;gap:3px}.leader-info b{color:#345875;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader-info small{color:#98aabd;font-size:9px}.leader-row>strong{color:#bd872a;font-size:11px;white-space:nowrap}.text-link{display:flex;justify-content:space-between;margin-top:14px;padding-top:13px;border-top:1px solid #edf2f7;color:#3887c5;font-size:10px;font-weight:800}
.staff-panel{padding:20px}.staff-heading{margin-bottom:14px}.count-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:7px;background:#eaf4ff;color:#287fc7;font-size:10px;vertical-align:2px;margin-left:5px}.search-wrap{display:flex;align-items:center;gap:7px;width:min(290px,48%);border:1px solid #e2ebf4;border-radius:9px;padding-left:10px;color:#8ca7bf}.search-wrap input{border:0;box-shadow:none;background:transparent;padding-left:0}.staff-list{display:grid;gap:10px}.staff-card{border:1px solid #e8eff6;border-radius:13px;padding:14px;background:linear-gradient(110deg,#fff,#fbfdff)}.staff-main{display:flex;align-items:center;gap:11px}.staff-avatar{width:39px;height:39px;border-radius:12px;font-size:15px}.staff-identity{flex:1;min-width:0}.staff-identity h3{margin:0 0 4px;color:#315674;font-size:13px;overflow-wrap:anywhere}.staff-identity span{color:#8ca2b6;font-size:10px}.rep-display{text-align:right;white-space:nowrap}.rep-display small{display:block;color:#a0afbd;font-size:8px;letter-spacing:.1em;font-weight:800;margin-bottom:4px}.rep-display strong{color:#b98227;font-size:17px}.rep-display strong span{color:#e3a83b}
.staff-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid #edf2f7;margin-top:12px;padding-top:12px}.role-form,.rep-form,.rename-form{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.role-form input{width:145px;padding:9px 10px;font-size:10px}.rep-amount{width:55px;padding:9px 7px;text-align:center}.rep-reason{width:145px;padding:9px;font-size:10px}.edit-details{color:#7b96ad;font-size:10px}.edit-details summary{cursor:pointer;padding:8px 5px;font-weight:700}.rename-form input{width:140px;padding:8px 9px;font-size:10px}.icon-btn{width:32px;height:32px;border:0;border-radius:9px;font-size:18px}.icon-btn.danger{margin-left:auto;background:#fff1f2;color:#c44d60}.icon-btn.danger:hover{background:#ffe0e4}
.empty-mini{color:#96aabd;font-size:11px;line-height:1.6;padding:12px 0}.empty-state{padding:40px 15px;text-align:center}.empty-icon{width:52px;height:52px;margin:0 auto 13px;display:grid;place-items:center;border-radius:16px;background:#eaf4ff;color:#60a4dc;font-size:25px}.empty-state h3{margin:0 0 7px;color:#3b607d;font-size:14px}.empty-state p{max-width:360px;margin:0 auto;color:#94a9bb;font-size:11px;line-height:1.6}
.history-list{display:grid}.history-row{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-bottom:1px solid #edf2f7}.history-row:first-child{padding-top:2px}.history-row:last-child{border-bottom:0}.history-icon{flex:0 0 auto;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#287fc7;background:#eaf4ff;font-weight:800}.history-info{flex:1;min-width:0}.history-info b{color:#385a76;font-size:11px}.history-info p{margin:5px 0;color:#7891a8;font-size:10px;overflow-wrap:anywhere}.history-info small{color:#a0b0bf;font-size:9px}.history-delta{font-size:12px;white-space:nowrap}.history-delta.up{color:#16865d}.history-delta.down{color:#c64c61}
.page-footer{display:flex;justify-content:space-between;gap:12px;padding:22px 3px 0;color:#a6b6c5;font-size:8px;letter-spacing:.08em}.alert{padding:12px 14px;border-radius:10px;margin-bottom:16px;font-size:11px;font-weight:600}.alert-success{background:#eaf8f1;color:#197d58;border:1px solid #d6f0e3}.alert-error{background:#fff0f1;color:#b94557;border:1px solid #f8dfe2}.hidden{display:none!important}
.auth-body{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(circle at 20% 15%,#d9efff 0,transparent 35%),radial-gradient(circle at 90% 90%,#dceeff 0,transparent 32%),#f3f8fd}.auth-wrap{width:min(100%,420px)}.auth-brand{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:25px}.auth-brand>div:last-child{display:grid;gap:4px}.auth-brand strong{color:#155d9e;font-size:15px;letter-spacing:.06em}.auth-brand span{color:#91a8be;font-size:9px;letter-spacing:.13em;font-weight:700}.auth-card{padding:32px;background:#fff;border:1px solid #e3edf6;border-radius:20px;box-shadow:0 20px 55px #285b871a}.auth-card h1{margin:9px 0 7px;color:#173e63;font-size:25px;letter-spacing:-.04em}.auth-card>p{margin:0 0 24px;font-size:12px;line-height:1.6}.muted{color:#8299ae}.stack{display:grid;gap:15px}.stack input{padding:13px}.auth-foot{display:flex;justify-content:center;align-items:center;gap:9px;margin-top:22px;color:#91a8be;font-size:9px;font-weight:800;letter-spacing:.1em}.auth-copy{margin:17px 0 0;color:#9cafbf;font-size:10px;text-align:center}
@media(max-width:1100px){.app-shell{grid-template-columns:215px minmax(0,1fr)}.page-wrap{padding:27px 24px 22px}.topbar{padding:0 24px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:static;height:auto;min-height:0;padding:13px 14px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 3px 12px}.brand-mark{width:37px;height:37px}.side-caption,.sidebar-bottom{display:none}.side-nav{display:flex;gap:7px;overflow-x:auto}.side-nav a{white-space:nowrap;padding:9px 11px;font-size:11px}.topbar{height:52px;padding:0 15px}.topbar-right{gap:8px}.top-admin{display:none}.live-pill{font-size:8px;padding:6px 8px}.page-wrap{padding:23px 13px 18px}.page-heading{align-items:flex-start;margin-bottom:18px}.page-heading h1{font-size:23px}.page-heading p{max-width:270px;font-size:11px;line-height:1.5}.heading-badge{font-size:8px;padding:7px 8px}.stats-grid{gap:9px}.stat-card{padding:13px;border-radius:13px}.stat-top{font-size:9px}.stat-card>strong{font-size:23px;margin-top:10px}.stat-card>small{font-size:9px}.panel{padding:15px;border-radius:14px}.panel-heading h2{font-size:14px}.staff-heading{align-items:flex-start;flex-direction:column}.search-wrap{width:100%}.staff-card{padding:12px}.staff-controls{align-items:stretch}.role-form{width:100%}.role-form input{flex:1;width:80px}.rep-form{width:100%}.rep-reason{flex:1;width:90px}.rep-amount{width:48px}.edit-details{width:calc(100% - 42px)}.rename-form{width:100%}.rename-form input{flex:1;width:80px}.page-footer{flex-direction:column;font-size:7px}}
@media(max-width:380px){.rep-form{gap:5px}.rep-form .btn{flex:1}.staff-main{gap:8px}.staff-avatar{width:34px;height:34px}.rep-display strong{font-size:15px}}
