:root{color:#20312e;font-synthesis:none;--green:#245c58;--muted:#63746f;--line:#dce4e0;background:#f3f5f4;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{border:1px solid var(--line);color:inherit;cursor:pointer;background:#fff;border-radius:10px;min-height:40px;padding:9px 13px}button:disabled{opacity:.5;cursor:default}button:hover:not(:disabled){background:#eef4f1}input,textarea{border:1px solid var(--line);color:inherit;background:#fff;border-radius:10px;min-width:0;padding:11px 12px;font-size:16px}input:focus,textarea:focus{outline-offset:1px;outline:2px solid #77aba0}label{flex-direction:column;gap:7px;margin:12px 0;display:flex}a{color:var(--green)}p{line-height:1.6}h1,h2,h3,p{margin-top:0}h1{margin-bottom:4px;font-size:21px}h2{font-size:20px}h3{margin-bottom:10px;font-size:16px}small{color:var(--muted);font-size:12px;line-height:1.5;display:block}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover:not(:disabled){background:#1a4643}.danger{color:#ab3434;border-color:#e9c5c5}.link{color:var(--green);background:0 0;border:0;padding:4px}.tabs{gap:8px;margin-bottom:15px;display:flex}.tabs button{flex:1}.tabs .selected{color:var(--green);background:#e2eeea;border-color:#b5d0c6}.card{border:1px solid var(--line);background:#fff;border-radius:20px;padding:25px;box-shadow:0 10px 40px #18382b08}.brand-mark{background:var(--green);color:#fff;border-radius:20px;place-items:center;width:64px;height:64px;margin:0 auto 20px;font-size:28px;display:grid}.auth-page{text-align:center;max-width:420px;margin:0 auto;padding:60px 20px 30px}.auth-form{text-align:left}.auth-form .primary{width:100%;margin:10px 0}.auth-form .check{flex-flow:wrap;align-items:center;font-size:13px}.check input{width:18px;height:18px}.notice{top:max(10px,env(safe-area-inset-top));z-index:20;background:#fff9e8;border:1px solid #d9cfae;border-radius:12px;align-items:center;gap:10px;width:min(92vw,620px);padding:8px 12px;font-size:14px;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #0001}.notice[hidden]{display:none}.notice span{flex:1}.notice button{background:0 0;border:0}.chat-layout{background:#fff;max-width:1500px;height:100dvh;margin:auto;display:flex}.sidebar{border-right:1px solid var(--line);background:#f8faf9;flex-direction:column;flex-shrink:0;width:340px;display:flex}.sidebar header,.chat-header{border-bottom:1px solid var(--line);padding:18px 16px;padding-top:max(18px,env(safe-area-inset-top));align-items:center;gap:10px;display:flex}.sidebar header>div{flex:1}.connection.online{color:#2a7a55}.connection.offline{color:#a2442a}.new-chat{background:#fff;margin:12px 16px}.conversation-list{flex:1;overflow-y:auto}.conversation{text-align:left;background:0 0;border:0;border-radius:0;align-items:center;gap:12px;width:100%;min-height:80px;padding:15px 16px;display:flex}.conversation.active{background:#e4efea}.avatar{width:45px;height:45px;color:var(--green);background:#e1ebe5;border-radius:14px;flex-shrink:0;place-items:center;font-weight:650;display:grid}.conversation-copy{flex:1;min-width:0}.conversation-copy strong,.conversation-copy small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.conversation-copy small{margin-top:5px}.conversation-time{color:var(--muted);flex-direction:column;align-self:flex-start;align-items:end;gap:8px;font-size:11px;display:flex}.badge{color:#fff;background:#c4554c;border-radius:12px;place-items:center;min-width:20px;height:20px;padding:0 5px;font-size:11px;display:grid}.sidebar footer{padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);justify-content:space-between;align-items:center;display:flex}.chat-panel{flex-direction:column;flex:1;min-width:0;display:flex}.chat-header{min-height:83px}.chat-title{flex:1;min-width:0}.chat-title strong{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.chat-title small{margin-top:5px}.mobile-back{display:none}.messages{overscroll-behavior:contain;background:#eef2f0;flex:1;padding:20px;overflow:auto}.message{margin:10px 0;display:flex}.message.mine{justify-content:flex-end}.bubble{overflow-wrap:anywhere;background:#fff;border-radius:4px 16px 16px;max-width:min(82%,560px);padding:10px 13px;box-shadow:0 1px 2px #172d2010}.mine .bubble{background:#d9ece2;border-radius:16px 4px 16px 16px}.message-meta{color:var(--muted);margin-bottom:6px;font-size:11px}.bubble p{white-space:pre-wrap;margin:0;font-size:15px;line-height:1.5}.attachment-image{border-radius:10px;width:auto;max-width:100%;max-height:320px;display:block}.attachment-video{max-width:100%;max-height:320px}.bubble audio{width:260px;max-width:100%;height:40px}.file-link{font-weight:600;text-decoration:none;display:block}.message-actions{gap:8px;margin-top:3px;display:flex}.message-actions button{color:#697c75;background:0 0;border:0;min-height:26px;padding:0;font-size:11px}.history-button{margin:0 auto 18px;font-size:12px;display:block}.read-state{text-align:right}.composer{border-top:1px solid var(--line);padding:12px 16px max(12px,env(safe-area-inset-bottom));background:#fff}.compose-row{align-items:end;gap:10px;display:flex}.compose-row textarea{resize:none;flex:1;min-height:55px;max-height:160px;line-height:1.45}.compose-row button{min-width:65px}.attachment-bar{flex-wrap:wrap;align-items:center;gap:5px;margin-top:8px;display:flex}.file-button,.attachment-bar button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:9px;align-items:center;min-height:36px;margin:0;padding:6px 11px;font-size:13px;display:inline-flex}.file-button input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.file-button:has(input:disabled){opacity:.5;pointer-events:none}.attachment-bar small{margin-left:auto;font-size:10px}.staged-files{border-bottom:1px solid var(--line);margin-bottom:10px;padding-bottom:10px}.staged-heading{align-items:center;gap:10px;margin-bottom:10px;font-size:13px;display:flex}.staged-heading button{min-height:30px;margin-left:auto;padding:3px 9px;font-size:12px}.staged-grid{gap:10px;padding-top:4px;display:flex;overflow-x:auto}.staged-item{flex-shrink:0;width:128px;position:relative}.staged-item img{object-fit:cover;border-radius:10px;width:128px;height:90px}.staged-item audio{width:220px;height:40px}.staged-item:has(audio){width:220px}.staged-item small{white-space:nowrap;text-overflow:ellipsis;font-size:10px;overflow:hidden}.staged-item>button{border-radius:20px;width:26px;height:26px;min-height:26px;padding:0;position:absolute;top:-4px;right:-3px}.file-preview{background:#eef4f1;border-radius:10px;place-items:center;width:128px;height:70px;display:grid}.recording{color:#bd4242;align-items:center;gap:10px;font-size:14px;display:flex}.recording button:first-of-type{margin-left:auto}.empty{text-align:center;color:var(--muted);padding:30px 24px;font-size:14px}.welcome{flex-direction:column;flex:1;justify-content:center;align-items:center;display:flex}.muted{color:var(--muted);font-size:13px}.modal-backdrop,.call-backdrop{z-index:10;background:#10211bb0;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:20px;width:min(100%,540px);max-height:90dvh;padding:22px;overflow-y:auto}.modal>header{align-items:center;gap:15px;margin-bottom:15px;display:flex}.modal>header h2{flex:1;margin:0}.modal>header button{border:0;font-size:23px}.modal input:not([type=checkbox]){width:100%}.contact-list{max-height:300px;overflow:auto}.contact{border-bottom:1px solid #edf1ef;align-items:center;gap:10px;padding:10px 0;display:flex}.contact>span:not(.avatar){overflow-wrap:anywhere;flex:1;min-width:0}.contact strong{font-size:14px}.contact button{min-height:34px;padding:6px 9px;font-size:12px}.account-card{background:#edf4f0;border-radius:12px;padding:15px}.settings-section{border-bottom:1px solid var(--line);padding:19px 0}.settings-section button{margin:3px 7px 5px 0;font-size:13px}.settings-section p{color:var(--muted);margin:10px 0;font-size:13px}.policy{color:#475b52;font-size:14px;line-height:1.7}.call-backdrop{z-index:15;background:#10211bef}.call-card{color:#fff;text-align:center;width:min(100%,650px)}.call-card p,.call-card small{color:#c4d7d0}.call-controls{justify-content:center;gap:12px;margin:22px 0;display:flex}.call-controls .danger{color:#fff;background:#ba4949;border-color:#ba4949}.video-stage{background:#07100c;border-radius:18px;min-height:200px;position:relative;overflow:hidden}.video-stage>video{width:100%;max-height:55dvh}.video-stage .local-video{border-radius:10px;width:27%;max-height:140px;position:absolute;bottom:10px;right:10px;transform:scaleX(-1)}.audio-stage{padding:30px}.audio-stage .avatar{width:90px;height:90px;margin:auto;font-size:32px}.audio-player{width:240px;height:45px;margin-top:20px}@media (width<=700px){.chat-layout{height:100dvh}.sidebar{border-right:0;width:100%}.chat-panel,.has-conversation .sidebar{display:none}.has-conversation .chat-panel{width:100%;display:flex}.mobile-back{border:0;padding:0 8px;font-size:30px;line-height:1;display:block}.chat-header{padding:10px 9px;padding-top:max(10px,env(safe-area-inset-top));gap:6px;min-height:68px}.chat-header button:not(.mobile-back){min-height:36px;padding:8px;font-size:12px}.chat-title strong{font-size:16px}.messages{padding:12px 10px}.bubble{max-width:87%}.composer{padding:10px 10px max(10px,env(safe-area-inset-bottom))}.attachment-bar{gap:4px}.attachment-bar small{display:none}.modal-backdrop{align-items:flex-end;padding:10px}.modal{width:100%;max-height:90dvh;padding:20px 18px max(20px,env(safe-area-inset-bottom));border-radius:20px 20px 12px 12px}.auth-page{padding-top:max(35px,env(safe-area-inset-top))}.auth-form{padding:20px}.recording{gap:5px;font-size:12px}.recording button{padding:8px;font-size:12px}.call-backdrop{padding:15px}.call-controls button{font-size:13px}.audio-player{height:55px}.staged-grid{max-height:170px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.browser-entry{color:var(--green);background:#edf4f1;margin:0 16px 12px}.browser-address{gap:8px;margin-bottom:8px;display:flex}.browser-address input{flex:1;min-width:0}.browser-toolbar{background:#edf4f1;border-radius:8px;align-items:center;gap:8px;margin-bottom:8px;padding:10px;font-size:12px;display:flex}.browser-toolbar span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.browser-toolbar a{white-space:nowrap}.browser iframe{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;height:55dvh}.browser p{font-size:13px}
