@font-face{font-family:Comfortaa;src:url('/comfortaa-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Comfortaa;src:url('/comfortaa-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{font-family:Comfortaa,system-ui,sans-serif;color:#193646;background:#f5f9fb;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:.67rem;font-weight:700;color:#0b99c6;margin:0 0 12px}.muted{color:#667d88;font-size:.84rem;line-height:1.6}.error{color:#b63c3c;font-size:.78rem;margin:0}.primary{border:0;border-radius:12px;background:#0b99c6;color:white;padding:13px 18px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:16px}.primary:hover,.send-button:hover{background:#087da7}.stack{display:grid;gap:14px}.stack label{display:grid;gap:7px;color:#334f5c;font-size:.76rem;font-weight:700}.stack input,.stack select,.search-input{width:100%;height:44px;border:1px solid #d5e4ea;border-radius:10px;padding:0 13px;background:#fff;color:#193646;outline:none}.stack input:focus,.stack select:focus,.search-input:focus,textarea:focus{border-color:#0b99c6;box-shadow:0 0 0 3px #0b99c622}
.login-screen{min-height:100dvh;display:grid;grid-template-columns:minmax(420px,50%) 1fr;background:#fff}.login-card{width:min(390px,calc(100% - 48px));align-self:center;justify-self:center;padding:48px 0}.login-logo{width:215px;height:auto;margin-bottom:70px}.login-card h1{font-size:clamp(1.7rem,3vw,2.45rem);line-height:1.28;letter-spacing:-.05em;margin:0 0 16px;color:#173d53}.intro{font-size:.89rem;line-height:1.7;color:#68818e;margin:0 0 36px}.login-foot{font-size:.68rem;color:#95aab3;margin-top:50px}.login-art{position:relative;overflow:hidden;background:linear-gradient(155deg,#0b99c6,#087aaf 65%,#096a94);border-radius:0 0 0 100px}.login-art p{position:absolute;bottom:11%;left:14%;font-size:clamp(2rem,4vw,4.8rem);font-weight:700;line-height:1.1;color:#fff;letter-spacing:-.06em;z-index:2}.art-orb{position:absolute;border-radius:50%;background:#ffffff15}.orb-one{width:640px;height:640px;top:-260px;right:-180px}.orb-two{width:430px;height:430px;bottom:-220px;left:-90px}.art-card{position:absolute;top:23%;left:17%;width:280px;height:86px;border-radius:20px;background:#fff;box-shadow:0 25px 75px #073c6440;transform:rotate(-10deg);display:flex;gap:17px;align-items:center;padding:18px}.art-card.second{top:37%;left:34%;width:310px;transform:rotate(8deg)}.art-dot{width:48px;height:48px;border-radius:15px;background:#a7e0f2;flex:none}.art-dot.orange{background:#ffd9b9}.art-lines{display:grid;gap:10px;flex:1}.art-lines i{height:9px;border-radius:10px;background:#d9e9ee}.art-lines i:last-child{width:65%}
.app-shell{height:100dvh;display:grid;grid-template-columns:290px minmax(0,1fr);background:#fff}.sidebar{background:#f3f8fa;border-right:1px solid #dce9ee;display:flex;flex-direction:column;min-height:0}.brand{height:85px;display:flex;align-items:center;gap:11px;padding:20px 25px;border-bottom:1px solid #e2ebef}.brand img{width:145px}.brand span{font-size:.58rem;color:#78929e;border-left:1px solid #c5d9e1;padding-left:10px;white-space:nowrap}.sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:26px 24px 14px}.sidebar-title .eyebrow{margin-bottom:5px}.sidebar-title strong{font-size:.94rem;color:#203f50}.new-chat{margin:12px 20px 24px;padding:12px 15px;text-align:left;border:1px solid #bddde9;border-radius:11px;color:#087da7;background:#e8f6fb;font-size:.79rem;font-weight:700}.new-chat:hover{background:#d9eff8}.sidebar nav{overflow:auto;flex:1;padding:0 12px 20px}.section-heading{display:flex;justify-content:space-between;padding:13px 14px 9px;color:#7c97a3;font-size:.66rem;text-transform:uppercase;letter-spacing:.12em;font-weight:700}.nav-list{display:grid;gap:3px}.nav-item{border:0;background:transparent;color:#385463;width:100%;padding:11px 12px;border-radius:10px;display:flex;align-items:center;gap:10px;text-align:left;font-size:.77rem;min-width:0}.nav-item:hover{background:#e8f2f6}.nav-item.active{background:#d5eef7;color:#075b7c;font-weight:700}.nav-item .nav-icon{width:25px;height:25px;display:grid;place-items:center;background:#dcebf0;border-radius:8px;flex:none;font-weight:700;font-size:.8rem}.nav-item.active .nav-icon{background:#b5e0f0}.nav-item .nav-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-subtitle{display:block;font-size:.58rem;color:#8ca2ac;margin-top:3px}.sidebar-bottom{border-top:1px solid #dce9ee;padding:13px 19px}.bottom-action{background:transparent;border:0;color:#5d7885;font-size:.73rem;display:block;padding:10px 5px;width:100%;text-align:left}.bottom-action:hover{color:#0b99c6}
.chat-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff}.chat-header{height:85px;border-bottom:1px solid #e6eef1;padding:16px 30px;display:flex;align-items:center;gap:16px}.chat-heading{min-width:0;flex:1}.chat-heading span{font-size:.65rem;color:#89a1ac}.chat-heading h2{font-size:1.04rem;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-badge{font-size:.62rem;color:#258167;background:#e5f7ef;padding:7px 10px;border-radius:30px}.status-badge.offline{color:#9d6a20;background:#fff1d8}.empty-state{margin:auto;text-align:center;padding:30px;max-width:440px}.empty-icon{width:75px;height:75px;margin:auto auto 24px;background:#e4f5fb;color:#0b99c6;border-radius:24px;display:grid;place-items:center;font-size:2.3rem}.empty-state h2{font-size:1.4rem;line-height:1.4}.empty-state p{font-size:.8rem;color:#7a919c;line-height:1.7}.messages{flex:1;overflow:auto;padding:25px min(5vw,70px) 18px;background:linear-gradient(180deg,#fff,#fafdfe)}.older-button{display:block;margin:0 auto 22px;border:1px solid #cce3eb;background:#fff;color:#087da7;border-radius:20px;padding:8px 14px;font-size:.67rem}.message{display:flex;gap:11px;margin:0 0 22px;max-width:790px}.message.mine{flex-direction:row-reverse;margin-left:auto}.avatar{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:#e4f2f7;color:#087da7;font-size:.72rem;font-weight:700;flex:none}.mine .avatar{background:#ffe9d9;color:#ba641f}.message-content{max-width:min(78%,620px)}.message-meta{display:flex;align-items:baseline;gap:10px;margin:0 0 6px;font-size:.68rem}.mine .message-meta{justify-content:flex-end}.message-meta strong{color:#2c4d5d}.message-meta time{color:#9eafb6;font-size:.58rem}.bubble{display:inline-block;background:#f2f6f8;border:1px solid #edf2f4;border-radius:4px 15px 15px 15px;padding:12px 15px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.79rem;line-height:1.6}.mine .bubble{background:#e4f5fb;border-color:#d9eff7;border-radius:15px 4px 15px 15px}.composer{margin:0 min(5vw,70px) 22px;display:flex;align-items:end;gap:10px;border:1px solid #d8e8ee;border-radius:16px;padding:8px;box-shadow:0 8px 30px #0b66880b}.composer:focus-within{border-color:#0b99c6}.composer textarea{resize:none;max-height:120px;min-height:36px;border:0;outline:0;box-shadow:none!important;flex:1;padding:8px 10px;line-height:1.5;font-size:.78rem}.send-button{width:38px;height:38px;border:0;border-radius:11px;background:#0b99c6;color:#fff;font-size:.9rem;flex:none}.mobile-only{display:none}.icon-button{border:0;background:transparent;color:#2d5669;font-size:1.15rem}
.dialog{width:min(480px,calc(100vw - 24px));border:1px solid #deebf0;border-radius:20px;box-shadow:0 25px 90px #163d5060;padding:30px;max-height:90dvh}.dialog::backdrop{background:#0a2e3b8c}.dialog h2{margin:0 0 19px;font-size:1.2rem}.dialog-close{position:absolute;right:18px;top:17px;border:0;background:transparent;color:#67818d}.dialog .eyebrow{margin-bottom:8px}.search-input{margin-bottom:16px}.people-list{max-height:50vh;overflow:auto;display:grid;gap:4px}.person{width:100%;display:flex;align-items:center;gap:11px;padding:10px;border:0;border-radius:10px;background:transparent;text-align:left}.person:hover{background:#ecf7fb}.person strong{display:block;font-size:.76rem}.person small{font-size:.64rem;color:#7a939f}.admin-dialog{width:min(920px,calc(100vw - 24px))}.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px}.admin-grid section{background:#f5f9fa;border-radius:14px;padding:19px}.admin-dialog h3{font-size:.82rem;margin:0 0 17px}.admin-dialog .stack{gap:12px}.admin-dialog .stack input,.admin-dialog .stack select{height:38px}.admin-dialog .primary{font-size:.7rem;padding:11px 13px}.check-row{display:flex!important;align-items:center;gap:8px}.check-row input{width:auto!important;height:auto!important}.admin-bottom{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.admin-list{display:grid;gap:8px;max-height:240px;overflow:auto}.admin-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e5edef;font-size:.7rem}.admin-item small{display:block;color:#8ca1aa;margin-top:4px}.admin-item button{border:1px solid #d7e5eb;background:#fff;border-radius:8px;padding:6px 9px;font-size:.64rem;color:#386476}.admin-item button:hover{background:#eef7fa}.admin-message{font-size:.7rem;color:#067c60;min-height:16px}
@media(max-width:800px){.login-screen{grid-template-columns:1fr}.login-art{display:none}.login-logo{margin-bottom:60px}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:10;inset:0 auto 0 0;width:min(310px,85vw);box-shadow:10px 0 35px #103b4b30;transform:translateX(-110%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.mobile-only{display:block}.chat-header{height:70px;padding:12px 18px}.messages{padding:20px 17px}.composer{margin:0 13px 13px}.admin-grid{grid-template-columns:1fr}.admin-bottom{grid-template-columns:1fr}.dialog{padding:23px}.status-badge{font-size:.55rem}}
.composer{flex-wrap:wrap}.attach-button{height:38px;width:38px;display:grid;place-items:center;cursor:pointer;border-radius:11px;color:#087da7;background:#e8f6fb;flex:none;font-size:1.05rem}.attach-button:hover{background:#d9eff8}.attach-button:focus-within{outline:2px solid #0b99c6}.photo-preview{width:100%;display:flex;align-items:center;gap:10px;background:#f1f8fa;border-radius:10px;padding:7px 9px;font-size:.68rem;color:#385463;min-width:0}.photo-preview img{width:48px;height:48px;object-fit:cover;border-radius:8px}.photo-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.photo-preview button{border:0;background:transparent;color:#5d7885;font-size:1rem;padding:5px}.message-photo-link{display:block;width:fit-content;max-width:100%;margin:0 0 6px}.message-photo{display:block;width:min(360px,100%);max-height:420px;object-fit:contain;border-radius:14px;border:1px solid #e2edf1;background:#f2f6f8}.message-photo-link:focus-visible{outline:2px solid #0b99c6;outline-offset:3px}
