:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#17211c;background:#f4f7f5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}.hidden{display:none!important}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#e8f3ec,#f7faf8)}
.login-card{background:white;padding:36px;border:1px solid #e0e9e3;border-radius:18px;width:min(420px,100%);box-shadow:0 18px 60px #183b2912}
.brand-mark{width:54px;height:54px;border-radius:16px;background:#176b45;color:white;display:grid;place-items:center;font-weight:800;font-size:20px}.brand-mark.small{width:38px;height:38px;border-radius:11px;font-size:14px}
h1{font-size:23px;margin:18px 0 4px}p{color:#718078;margin-top:5px;font-size:13px}label{display:block;font-size:13px;font-weight:600;margin:18px 0}input,select{font:inherit}label input{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #dce5df;border-radius:9px}
button{border:0;border-radius:9px;background:#176b45;color:white;padding:11px 16px;font-weight:650;cursor:pointer}button:hover{filter:brightness(.96)}.login-card button{width:100%;margin-top:5px}.error{color:#b42318;font-size:13px;margin-top:10px}
.app{height:100vh;display:flex}.sidebar{width:250px;background:#102d20;color:#e9f3ec;padding:22px 15px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 28px}.brand small{display:block;color:#91b09e;font-size:9px;letter-spacing:2px;margin-top:3px}.nav-title{font-size:10px;letter-spacing:1.5px;color:#84a391;padding:14px 10px 8px}.nav{background:#1d4934;text-align:left;display:flex;justify-content:space-between}.nav span{background:#2b6848;border-radius:20px;padding:1px 7px}.channel{font-size:13px;padding:11px 12px;color:#c8d9ce}.sidebar-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:12px}.secondary{background:#e9f0eb;color:#31533f}.main{flex:1;min-width:0;padding:26px 30px}.main header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.main h2{margin:0;font-size:23px}.main header p{margin-bottom:0}.inbox{height:calc(100vh - 125px);background:white;border:1px solid #e1e9e3;border-radius:14px;display:grid;grid-template-columns:340px 1fr;overflow:hidden}.conversation-list{border-right:1px solid #e6ece8;overflow:auto}.list-head{height:60px;padding:15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1ee}.list-head select,.chat-head select{padding:7px;border:1px solid #dce5df;border-radius:7px;background:white;font-size:12px}.conv{padding:15px;border-bottom:1px solid #f0f3f1;cursor:pointer}.conv:hover,.conv.selected{background:#f0f7f2}.conv-top{display:flex;justify-content:space-between;gap:8px;font-size:13px}.conv p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:7px 0 0}.pill{font-size:10px;color:#176b45;background:#e8f5ed;border-radius:20px;padding:3px 7px}.chat-panel{min-width:0;display:flex;align-items:center;justify-content:center}.empty{color:#89968e;font-size:14px}.chat-content{height:100%;width:100%;display:flex;flex-direction:column}.chat-head{padding:15px 20px;border-bottom:1px solid #e9efeb;display:flex;align-items:center;justify-content:space-between}.chat-head small{display:block;color:#7a8980;margin-top:4px}.messages{flex:1;overflow:auto;padding:22px;background:#fbfcfb;display:flex;flex-direction:column;gap:10px}.bubble{max-width:72%;padding:11px 14px;border-radius:13px;font-size:13px;line-height:1.45;background:#edf2ee;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.outbound{background:#dff2e5;align-self:flex-end}.bubble time{display:block;font-size:9px;color:#87948b;margin-top:5px}.reply{padding:14px;display:flex;gap:10px;border-top:1px solid #e9efeb}.reply input{flex:1;border:1px solid #dce5df;border-radius:9px;padding:12px;min-width:0}
@media(max-width:800px){.sidebar{width:70px;padding:15px 8px}.brand>div:last-child,.nav-title,.nav,.channel,.sidebar-bottom span{display:none}.sidebar-bottom{justify-content:center}.main{padding:15px}.inbox{grid-template-columns:1fr;height:calc(100vh - 110px)}.conversation-list{border-right:0}.chat-panel{display:none}.main header{margin-bottom:12px}}
