@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--blue:#145da7;--navy:#103b6b;--accent:#11a7aa;--ink:#172a45;--muted:#75859b;--bg:#f3f6fb;--surface:#fff;--line:#e5ebf3;--soft:#eaf3fd;--red:#e34c63;--green:#159775;--shadow:0 12px 42px rgba(24,58,100,.055)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{display:block}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:28px;letter-spacing:-1.1px}h2{font-size:21px;letter-spacing:-.6px}.muted{color:var(--muted)}.small{font-size:12px}.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.icon-lg{width:25px;height:25px}.btn{border:0;border-radius:12px;padding:11px 16px;background:#edf2f9;color:#214369;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s}.btn:hover{filter:brightness(.97);transform:translateY(-1px)}.btn.primary{background:var(--blue);color:#fff}.btn.secondary{background:#e6f4f7;color:#097982}.btn.danger{background:#fff0f1;color:#bd334c}.btn.outline{background:#fff;border:1px solid var(--line)}.btn.block{width:100%}.btn.tiny{padding:7px 10px;font-size:11px;border-radius:9px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#61758e;padding:9px;border-radius:11px}.icon-btn:hover{background:#edf2f9;color:var(--blue)}input,textarea,select{width:100%;outline:0;border:1px solid #dce5f0;background:#fff;border-radius:12px;color:var(--ink);padding:12px 14px;font-size:13px;transition:.2s}input:focus,textarea:focus,select:focus{border-color:#67a8ec;box-shadow:0 0 0 3px #dceeff}textarea{resize:vertical;min-height:100px}label{display:block;color:#42556f;font-size:12px;font-weight:800;margin-bottom:13px}label input,label select,label textarea{margin-top:7px;font-weight:500}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th,td{padding:13px 12px;border-bottom:1px solid #eaf0f5;vertical-align:middle}th{color:#7b8da4;font-size:11px;text-transform:uppercase;letter-spacing:.06em}tr:last-child td{border-bottom:0}.table-wrap{overflow:auto}.card{background:#fff;border:1px solid #e7edf5;border-radius:19px;padding:22px;box-shadow:var(--shadow)}.grid{display:grid;gap:18px}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.flex{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.grow{flex:1}.badge{font-size:10px;font-weight:800;padding:6px 9px;border-radius:999px;background:#eff3f9;color:#617289}.badge.green{background:#e6f7f1;color:#0d8b65}.badge.red{background:#fff0f1;color:#b9425c}.badge.blue{background:#e9f3ff;color:#1c64a5}.badge.orange{background:#fff3e6;color:#b27624}.empty{text-align:center;color:var(--muted);padding:55px 20px}.empty .icon{width:40px;height:40px;margin:0 auto 12px;color:#a7b9cb}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.page-head p{font-size:13px;color:var(--muted);margin:5px 0 0}.section-title{font-size:15px;font-weight:800;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.avatar{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:linear-gradient(145deg,#d8ebff,#bcdaf8);color:#2765a4;font-weight:900;font-size:13px;flex-shrink:0}.avatar.lg{height:52px;width:52px;border-radius:16px;font-size:19px}.avatar.teal{background:#def5f2;color:#128982}.brand{display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:#fff;color:var(--navy);border-radius:13px;font-size:26px;letter-spacing:-2px;font-weight:900}.brand-mark span{font-size:17px;color:var(--accent)}.brand strong{display:block;font:900 13px Manrope;letter-spacing:.09em}.brand small{font-size:10px;opacity:.7}.layout{min-height:100vh;display:flex}.sidebar{width:252px;background:linear-gradient(180deg,#12497f 0%,#0a315d 100%);color:#eef7ff;flex-shrink:0;position:fixed;left:0;top:0;bottom:0;display:flex;flex-direction:column;z-index:20}.sidebar .brand{padding:28px 22px 32px}.nav-overflow{overflow:auto;padding:0 12px 16px;flex:1;scrollbar-width:thin}.nav-group{margin:19px 12px 9px;font-size:9px;letter-spacing:.14em;font-weight:800;color:#8db7db}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 13px;margin:3px 0;border-radius:11px;color:#c1d7ed;font-size:12px;font-weight:700;transition:.16s}.nav-item .icon{width:18px;height:18px}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.12);color:#fff}.nav-item.active{box-shadow:inset 3px 0 var(--accent)}.sidebar-foot{margin:13px;padding:14px 10px;border-top:1px solid #ffffff27}.sidebar-foot .small{color:#9fc1dc}.main{margin-left:252px;min-width:0;flex:1}.topbar{height:78px;background:#fff;border-bottom:1px solid #e7edf4;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:16px;position:sticky;top:0;z-index:10}.top-search{display:flex;align-items:center;gap:12px;background:#f4f7fb;border-radius:12px;padding:0 13px;width:min(430px,48%);color:#8b9ab0}.top-search input{border:0;background:transparent;box-shadow:none;padding:12px 3px}.top-actions{display:flex;align-items:center;gap:13px}.top-user{border-left:1px solid var(--line);padding-left:18px;display:flex;align-items:center;gap:10px}.top-user strong{font-size:12px}.top-user small{display:block;font-size:10px;color:var(--muted)}.content{padding:32px 36px 50px;max-width:1550px;margin:auto}.welcome{border-radius:23px;padding:30px 32px;background:linear-gradient(108deg,#154d86 0%,#1a6cae 72%,#2188bc 100%);color:#fff;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden;margin-bottom:22px;min-height:175px}.welcome:after{content:'';position:absolute;width:320px;height:320px;border:65px solid #ffffff0e;border-radius:50%;right:-90px;top:-165px}.welcome h1{font-size:28px;margin-bottom:8px}.welcome p{font-size:13px;color:#d1e8ff;line-height:1.7;max-width:520px}.welcome .btn{background:#fff;color:var(--navy)}.stat{display:flex;gap:15px;align-items:center}.stat-icon{width:50px;height:50px;display:grid;place-items:center;background:#e9f3ff;color:#2370b7;border-radius:15px}.stat-icon.teal{background:#e2f7f4;color:#039382}.stat-icon.orange{background:#fff0e4;color:#c18b3d}.stat-icon.purple{background:#f0ebfb;color:#8c65c7}.stat-val{font:800 27px Manrope}.stat-label{font-size:11px;color:#7b8ca4;margin-top:3px}.sys-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:10px;min-height:180px}.sys-icon{width:45px;height:45px;background:#eaf3ff;color:#236eb3;display:grid;place-items:center;border-radius:13px}.sys-card h3{font-size:14px;margin:0}.sys-card p{font-size:12px;color:var(--muted);margin:0;flex:1;line-height:1.5}.sys-card .bottom{display:flex;align-items:center;justify-content:space-between}.link{border:0;background:none;font-size:12px;font-weight:800;color:var(--blue);padding:5px 0}.list-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.list-row:last-child{border:0}.list-row h4{font-size:12px;margin:0 0 3px}.list-row p{font-size:11px;color:var(--muted);margin:0;line-height:1.4}.announce{border-left:3px solid #7fb5e7;padding:14px 16px;background:#f8fbff;border-radius:10px;margin-bottom:10px}.announce.urgent{border-left-color:var(--red);background:#fff9fa}.announce h4{margin:0 0 6px;font-size:14px}.announce p{margin:0;white-space:pre-wrap;font-size:12px;line-height:1.7;color:#5a6981}.announce small{display:block;margin-top:8px;color:#8b9db3}.auth-page{min-height:100vh;background:linear-gradient(135deg,#eaf2fb 0%,#f8fbff 53%,#e5f5f6 100%);display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{width:min(450px,100%);background:#fff;padding:38px;border-radius:24px;box-shadow:0 25px 80px #21507c20;border:1px solid #e6eef7}.auth-card .brand{margin-bottom:30px}.auth-card .brand-mark{background:var(--blue);color:#fff}.auth-card h1{font-size:26px;margin-bottom:8px}.auth-card p{line-height:1.7;font-size:13px;margin-bottom:23px}.auth-card form .btn{margin-top:8px}.auth-card .foot{font-size:11px;color:#91a1b5;text-align:center;margin-top:26px}.alert{padding:13px;border-radius:11px;font-size:12px;margin-bottom:14px}.alert.danger{background:#fff0f2;color:#b03b51}.alert.success{background:#e9f8f1;color:#0d8060}.boot-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:90vh;color:#56718d}.loader{width:32px;height:32px;border:3px solid #dae6f4;border-top-color:#1763a8;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:24px;right:24px;background:#12355d;color:#fff;padding:14px 18px;border-radius:13px;box-shadow:0 12px 30px #14345a33;z-index:200;font-size:12px;max-width:360px}.toast.bad{background:#b93d53}.modal-backdrop{position:fixed;inset:0;background:#10253e88;display:grid;place-items:center;z-index:99;padding:20px}.modal{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:19px;padding:24px;box-shadow:0 25px 65px #101e3444}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal h2{margin:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chat-wrap{height:calc(100vh - 200px);min-height:500px;border-radius:19px;background:#fff;display:grid;grid-template-columns:310px minmax(0,1fr);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow)}.chat-sidebar{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.chat-sidebar-head{padding:20px;border-bottom:1px solid var(--line)}.chat-sidebar-head h2{font-size:18px}.chat-list{overflow:auto;flex:1}.chat-item{padding:14px 16px;display:flex;align-items:center;gap:10px;cursor:pointer;border-bottom:1px solid #f1f4f9}.chat-item:hover,.chat-item.active{background:#edf6ff}.chat-item h4{font-size:12px;margin:0 0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-item p{font-size:11px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-pane{display:flex;flex-direction:column;min-width:0}.chat-pane-head{border-bottom:1px solid var(--line);padding:16px 22px;display:flex;align-items:center;gap:12px;min-height:73px}.chat-pane-head h3{font-size:14px;margin:0}.messages{flex:1;overflow:auto;padding:22px;background:radial-gradient(#e8f2ff75 .8px,transparent .8px);background-size:19px 19px;display:flex;flex-direction:column;gap:13px}.bubble{max-width:75%;align-self:flex-start;border-radius:15px 15px 15px 4px;background:#fff;padding:11px 14px;box-shadow:0 3px 10px #18395b0a;border:1px solid #e8eef5;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#dbeeff;border-color:#cbe2fa;border-radius:15px 15px 4px 15px}.bubble .who{font-weight:800;color:#2870ad;font-size:10px}.bubble .time{font-size:10px;text-align:right;color:#93a2b3;margin-top:5px}.bubble a{color:var(--blue);text-decoration:underline}.chat-compose{border-top:1px solid var(--line);padding:13px 17px;display:flex;gap:10px;align-items:center}.chat-compose textarea{min-height:42px;max-height:110px;padding:10px;resize:none}.mobile-menu{display:none}.mobile-back{display:none}.checkrow{display:flex;gap:9px;align-items:center;margin-bottom:10px}.checkrow input{width:auto}.checkrow label{margin:0}.filter{margin-bottom:20px;max-width:370px}.pill-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.pill-nav button{background:#fff;border:1px solid var(--line);color:#62728a;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:800}.pill-nav button.active{background:#e6f1ff;border-color:#8ac0f1;color:var(--blue)}.member-options{max-height:185px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:10px}.service-status{display:flex;gap:8px;align-items:center;font-size:12px}.service-status:before{content:'';width:8px;height:8px;background:#13a77b;border-radius:50%}.footnote{font-size:11px;color:#93a3b7;margin-top:20px}.split{display:grid;grid-template-columns:1.5fr 1fr;gap:19px}.desktop-only{display:block}
@media(max-width:1200px){.grid.four{grid-template-columns:repeat(2,1fr)}.grid.three{grid-template-columns:repeat(2,1fr)}.chat-wrap{grid-template-columns:255px minmax(0,1fr)}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #10233e77}.main{margin-left:0}.topbar{height:66px;padding:0 16px}.mobile-menu{display:flex}.top-search{width:45%}.content{padding:22px 16px 90px}.top-user .desktop-only{display:none}.top-user{padding-left:0;border:0}.split{grid-template-columns:1fr}.welcome{padding:26px}.chat-wrap{height:calc(100dvh - 162px)}}
@media(max-width:600px){.grid.two,.grid.three,.grid.four{grid-template-columns:1fr 1fr;gap:10px}.grid.three .sys-card{min-height:180px}.grid.two .card,.grid.four .card{padding:14px}.stat{gap:9px}.stat-icon{width:39px;height:39px;border-radius:11px}.stat-icon .icon{width:20px}.stat-val{font-size:22px}.stat-label{font-size:10px}.content{padding:18px 12px 94px}.top-search{width:auto;flex:1}.top-search input{width:100%;font-size:11px}.top-actions{gap:2px}.top-user{display:none}.welcome{padding:23px;min-height:166px}.welcome h1{font-size:21px}.welcome p{font-size:11px}.welcome .btn{font-size:11px;padding:10px}.page-head h1{font-size:23px}.page-head{align-items:flex-start}.card{padding:16px}.sys-card{padding:14px}.chat-wrap{grid-template-columns:1fr;height:calc(100dvh - 155px);min-height:340px}.chat-sidebar{display:flex}.chat-wrap.chat-open .chat-sidebar{display:none}.chat-pane{display:none}.chat-wrap.chat-open .chat-pane{display:flex}.mobile-back{display:flex}.bubble{max-width:88%}.chat-pane-head{padding:12px}.chat-compose{padding:9px}.modal{padding:19px}.form-row{grid-template-columns:1fr}.auth-card{padding:25px}.desktop-only{display:none} .grid.three:not(.systems-grid){grid-template-columns:1fr}}
