:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#17212f;background:#fff}*{box-sizing:border-box}body{margin:0}button,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{text-decoration:none;color:inherit}
.app-shell{height:100dvh;min-height:460px;display:grid;grid-template-columns:240px minmax(0,1fr) 240px;overflow:hidden}.sidebar{background:#142633;color:#f7fbff;display:flex;flex-direction:column;padding:26px 16px 18px}.brand{display:flex;align-items:center;gap:12px;margin:0 6px 43px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#def5e9;color:#18503a;font-size:21px;font-weight:800}.brand strong,.brand small,.sidebar-identity strong,.sidebar-identity small{display:block}.brand strong{font-size:15px}.brand small{font-size:11px;color:#a5b9c5;margin-top:3px}.nav-label{font-size:10px;letter-spacing:.13em;color:#8ca6b4;margin:0 10px 11px;font-weight:800}.sidebar nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#d4e0e6;text-align:left;padding:12px;border-radius:11px;display:flex;align-items:center;gap:10px;font-size:13px}.nav-item>span:first-child{width:20px;text-align:center;font-size:18px}.nav-item.active{background:#2c4755;color:#fff;font-weight:700}.nav-item:disabled{opacity:.6}.soon{margin-left:auto;font-size:10px}.sidebar-bottom{margin-top:auto}.sidebar-identity{border-top:1px solid #345063;padding-top:17px;display:flex;gap:10px;align-items:center}.avatar{border-radius:50%;background:#d9f3e5;color:#18513b;display:grid;place-items:center;font-weight:800}.avatar.small{width:34px;height:34px;flex:none}.sidebar-identity small{font-size:10px;color:#a1b9c8;margin-top:3px}.sidebar-note{font-size:11px;color:#9bb4c2;line-height:1.5;margin:20px 4px 4px}
.main-panel{display:flex;flex-direction:column;min-width:0}.topbar{flex:none;height:74px;border-bottom:1px solid #edf0f2;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:12px}.topbar-title{display:flex;align-items:center;gap:9px}.topbar-title strong,.topbar-title span{display:block}.topbar-title strong{font-size:16px}.topbar-title span{font-size:11px;color:#8998a5;margin-top:3px}.menu-btn{display:none;border:0;background:transparent;font-size:20px}.connection{display:flex;align-items:center;gap:9px;color:#657686;background:#f8fafb;border:1px solid #e6ebee;border-radius:30px;padding:8px 12px;white-space:nowrap;font-size:11px}.status-indicator{width:8px;height:8px;border-radius:50%;background:#c39e42}.connection.connected .status-indicator{background:#249468}.connection.connected{color:#216c46}
.conversation-area{min-height:0;flex:1;overflow:auto;scroll-behavior:smooth}.thread{width:min(100%,820px);min-height:100%;margin:auto;display:flex;flex-direction:column;gap:20px;padding:28px 30px}.welcome{max-width:535px;text-align:center;margin:auto;padding:25px 8px 30px}.welcome-icon{width:62px;height:62px;background:#e2f5ea;color:#225e42;border-radius:19px;display:grid;place-items:center;font-size:30px;font-weight:900;margin:0 auto 26px}.welcome h1{font-size:30px;letter-spacing:-.045em;margin:0 0 14px}.welcome>p{line-height:1.7;font-size:14px;color:#6e8090}.info-pills{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:24px}.info-pills span{border:1px solid #e4eaee;background:#f8fafb;border-radius:20px;padding:7px 11px;color:#607584;font-size:11px}.setup-state{font-size:11px;color:#8796a1;line-height:1.6;margin-top:31px}.setup-state strong{font-weight:600}
.chat-item{display:flex;gap:11px;align-items:flex-start}.chat-item.mine{align-self:flex-end;flex-direction:row-reverse;max-width:90%}.chat-avatar{width:32px;height:32px;flex:none;border-radius:50%;background:#e2f2e9;color:#235844;font-weight:700;display:grid;place-items:center}.chat-text{max-width:640px;min-width:0;line-height:1.6}.chat-item.mine .chat-text{background:#eff5f2;border-radius:15px;padding:12px 15px}.chat-name{font-weight:800;font-size:12px;margin:0 0 5px}.chat-body{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.chat-meta{font-size:10px;color:#8798a1;margin:6px 0 0}
.composer-area{flex:none;background:white;border-top:1px solid #f2f5f6;padding:16px clamp(16px,5%,46px) 20px}.composer{max-width:770px;margin:auto;background:white;border:1px solid #dce4e8;border-radius:20px;box-shadow:0 5px 24px #122c3912;padding:10px 13px}.composer:focus-within{border-color:#a8babf}#message{display:block;width:100%;border:0;outline:0;resize:none;max-height:180px;min-height:56px;padding:10px 8px;color:#20333f;line-height:1.5}#message::placeholder{color:#a6b3bc}.composer-bar,.composer-tools{display:flex;align-items:center;gap:9px}.composer-bar{justify-content:space-between}.composer-tools{min-width:0}.tool-btn{width:31px;height:31px;display:grid;place-items:center;border:0;background:#f0f4f5;color:#8399a5;border-radius:50%;font-size:20px}#composer-hint{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#94a3ad}.send-btn{display:flex;align-items:center;gap:8px;border:0;border-radius:12px;background:#174936;color:#fff;padding:10px 15px;font-size:12px;font-weight:800}.send-btn:disabled{background:#aab7bd;opacity:.8}.feedback{text-align:center;max-width:770px;margin:9px auto 0;color:#8697a1;font-size:10px;min-height:15px}
.participants{background:#fbfcfd;border-left:1px solid #ebeff2;padding:31px 19px;display:flex;flex-direction:column}.participants-heading{display:flex;justify-content:space-between;align-items:center}.participants-heading h2{font-size:14px;margin:0}.count{border-radius:30px;padding:5px 9px;background:#e9eef1;color:#586e7a;font-size:11px;font-weight:800}.participants-intro,.participants-foot p{font-size:11px;line-height:1.6;color:#8898a4}.participants-intro{margin:13px 0 24px}.participant-empty{padding:25px 10px;border:1px dashed #d7e2e7;border-radius:12px;text-align:center;color:#96a5b0;font-size:12px}.participants-foot{margin-top:auto;padding-top:20px;border-top:1px solid #e6ecef}.participants-foot strong{font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1160px){.app-shell{grid-template-columns:230px minmax(0,1fr)}.participants{display:none}}
@media(max-width:720px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:9;width:min(270px,85vw);inset:0 auto 0 0;transform:translateX(-105%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.menu-btn{display:block}.topbar{height:64px;padding:0 17px}.topbar-title strong{font-size:14px}.topbar-title span{display:none}.connection{font-size:10px;padding:7px}.thread{padding:20px 18px}.welcome h1{font-size:25px}.welcome>p{font-size:13px}.composer-area{padding:12px}.composer{border-radius:16px}#composer-hint{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
