.ttp{--brand: #0b6bd6;--brand-2: #10b9c8;--brand-soft: #e6f0fd;--bg: #f3f5f8;--panel: #ffffff;--panel-2: #f7f9fb;--line: #e3e7ee;--text: #17202b;--muted: #667085;--bubble-me: #dbeafe;--bubble-other: #ffffff;--danger: #d92d20;--ok: #12b76a;--warn: #f79009;--radius: 10px;--rail: 64px;--list: 320px;--fs: 14px;font-family:Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;font-size:var(--fs);color:var(--text);background:var(--bg);line-height:1.45;-webkit-font-smoothing:antialiased;box-sizing:border-box}.ttp *,.ttp *:before,.ttp *:after{box-sizing:inherit}.ttp[data-theme=dark]{--brand: #3b8cf0;--brand-soft: #16304f;--bg: #0f141a;--panel: #171d24;--panel-2: #1d242c;--line: #2a323c;--text: #e6ebf1;--muted: #98a2b3;--bubble-me: #1d3b5f;--bubble-other: #222a33}.ttp[data-font=small]{--fs: 13px}.ttp[data-font=large]{--fs: 16px}.ttp button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}.ttp input,.ttp textarea,.ttp select{font:inherit;color:var(--text)}.ttp a{color:var(--brand)}.ttp .muted{color:var(--muted)}.ttp .small{font-size:.86em}.ttp .ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ttp .grow{flex:1;min-width:0}.ttp .row{display:flex;align-items:center;gap:8px}.ttp .col{display:flex;flex-direction:column}.ttp .scroll{overflow-y:auto;overscroll-behavior:contain}.ttp .scroll::-webkit-scrollbar{width:8px}.ttp .scroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:4px}.ttp .btn{padding:7px 14px;border-radius:8px;background:var(--panel-2);border:1px solid var(--line)}.ttp .btn:hover{border-color:var(--brand)}.ttp .btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}.ttp .btn.primary:disabled{opacity:.55;cursor:default}.ttp .btn.danger{color:var(--danger)}.ttp .icon-btn{width:34px;height:34px;border-radius:8px;display:inline-grid;place-items:center;color:var(--muted)}.ttp .icon-btn:hover{background:var(--panel-2);color:var(--text)}.ttp .icon-btn svg{width:20px;height:20px}.ttp .field{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);outline:none}.ttp .field:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.ttp .badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;font-weight:600;display:inline-grid;place-items:center}.ttp .badge.grey{background:var(--muted)}.ttp .tag{font-size:11px;padding:1px 6px;border-radius:4px;background:var(--brand-soft);color:var(--brand)}.ttp .av{position:relative;flex:none;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;overflow:visible}.ttp .av img{width:100%;height:100%;border-radius:50%;object-fit:cover}.ttp .av .dot{position:absolute;right:0;bottom:0;width:28%;height:28%;border-radius:50%;background:var(--ok);border:2px solid var(--panel)}.ttp.shell{display:flex;height:100%;width:100%;overflow:hidden}.ttp .rail{width:var(--rail);flex:none;background:linear-gradient(180deg,#0a58b8,#0b7fbf 70%,#0fa7b8);display:flex;flex-direction:column;align-items:center;padding:10px 0;gap:4px}.ttp[data-theme=dark] .rail{background:#0c1218;border-right:1px solid var(--line)}.ttp .rail .me{margin-bottom:10px}.ttp .rail button{position:relative;width:46px;height:46px;border-radius:10px;display:grid;place-items:center;color:#ffffffd1}.ttp .rail button svg{width:24px;height:24px}.ttp .rail button:hover{background:#ffffff1f;color:#fff}.ttp .rail button.on{background:#ffffff38;color:#fff}.ttp .rail button .badge{position:absolute;top:3px;right:2px}.ttp .rail .spacer{flex:1}.ttp .side{width:var(--list);flex:none;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.ttp .side-head{padding:12px;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--line)}.ttp .side-head h2{font-size:1.1em;margin:0}.ttp .main{flex:1;min-width:0;display:flex;background:var(--bg)}.ttp .empty{margin:auto;text-align:center;color:var(--muted);padding:24px}.ttp .empty img{width:96px;height:96px;opacity:.9;margin-bottom:12px}.ttp .conn-bar{padding:4px 10px;font-size:12px;text-align:center;background:#fff4e5;color:#8a4b00}.ttp[data-theme=dark] .conn-bar{background:#3b2a12;color:#f5c27a}.ttp .tabs{display:flex;gap:14px;font-size:.93em}.ttp .tabs button{padding:2px 0;color:var(--muted);border-bottom:2px solid transparent}.ttp .tabs button.on{color:var(--brand);border-color:var(--brand);font-weight:600}.ttp .conv{display:flex;gap:10px;align-items:center;padding:9px 12px;cursor:pointer}.ttp .conv:hover{background:var(--panel-2)}.ttp .conv.on{background:var(--brand-soft)}.ttp .conv .name{font-weight:500}.ttp .conv.unread .name,.ttp .conv.unread .last{font-weight:600;color:var(--text)}.ttp .conv .last{color:var(--muted);font-size:.9em}.ttp .conv .meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:11px;color:var(--muted)}.ttp .conv svg.pin,.ttp .conv svg.mute{width:13px;height:13px;color:var(--muted)}.ttp .chat{flex:1;min-width:0;display:flex;flex-direction:column}.ttp .chat-head{height:60px;flex:none;display:flex;align-items:center;gap:10px;padding:0 12px;background:var(--panel);border-bottom:1px solid var(--line)}.ttp .chat-head .title{font-weight:600;font-size:1.05em}.ttp .back-btn{display:none}.ttp .pinbar{display:flex;gap:8px;align-items:center;padding:6px 12px;background:var(--panel);border-bottom:1px solid var(--line);font-size:.9em;cursor:pointer}.ttp .msgs{flex:1;padding:12px 16px 6px;display:flex;flex-direction:column;gap:2px}.ttp .day{align-self:center;margin:10px 0;font-size:12px;color:var(--muted);background:var(--panel);padding:2px 10px;border-radius:10px}.ttp .sys{align-self:center;max-width:80%;text-align:center;font-size:12px;color:var(--muted);margin:4px 0}.ttp .sys .ent{color:var(--brand);cursor:pointer}.ttp .m{display:flex;gap:8px;align-items:flex-end;max-width:100%}.ttp .m.me{flex-direction:row-reverse}.ttp .m .av-slot{width:32px;flex:none}.ttp .bubble{position:relative;max-width:min(620px,72%);padding:7px 10px 5px;border-radius:12px;background:var(--bubble-other);border:1px solid var(--line);word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-wrap}.ttp .m.me .bubble{background:var(--bubble-me);border-color:transparent}.ttp .bubble .who{font-size:12px;font-weight:600;margin-bottom:2px}.ttp .bubble .time{font-size:11px;color:var(--muted);margin-top:2px;display:flex;gap:6px;justify-content:flex-end}.ttp .bubble.revoked{color:var(--muted);font-style:italic}.ttp .bubble .quote{border-left:3px solid var(--brand);padding:2px 8px;margin-bottom:4px;font-size:.9em;color:var(--muted);background:#00000008;border-radius:4px}.ttp .bubble .entity{color:var(--brand);text-decoration:underline;cursor:pointer;font-weight:500}.ttp .bubble .mention{color:var(--brand);font-weight:600}.ttp .bubble img.pic{display:block;max-width:280px;max-height:280px;border-radius:8px;margin:2px 0;cursor:zoom-in;background:var(--panel-2)}.ttp .file{display:flex;gap:10px;align-items:center;padding:8px;border-radius:8px;background:var(--panel-2);border:1px solid var(--line);margin:2px 0;min-width:220px;white-space:normal}.ttp .file .ext{width:36px;height:40px;border-radius:6px;background:var(--brand);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;text-transform:uppercase}.ttp .reacts{display:flex;gap:4px;margin-top:2px}.ttp .reacts span{font-size:12px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:0 6px;cursor:pointer}.ttp .reacts span.mine{border-color:var(--brand)}.ttp .m .tools{visibility:hidden;display:flex;gap:2px;align-self:center}.ttp .m:hover .tools{visibility:visible}.ttp .m .tools .icon-btn{width:28px;height:28px}.ttp .m .tools .icon-btn svg{width:16px;height:16px}.ttp .seen{align-self:flex-end;font-size:11px;color:var(--muted);margin:2px 4px 0}.ttp .failed{color:var(--danger);font-size:12px}.ttp .typing{font-size:12px;color:var(--muted);padding:0 18px 4px;height:18px}.ttp .menu{position:absolute;z-index:30;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #10182824;padding:4px;min-width:170px}.ttp .menu button{display:block;width:100%;text-align:left;padding:7px 10px;border-radius:6px}.ttp .menu button:hover{background:var(--panel-2)}.ttp .menu .emojis{display:flex;gap:2px;padding:2px 4px 6px;border-bottom:1px solid var(--line);margin-bottom:4px}.ttp .menu .emojis button{width:auto;padding:2px 4px;font-size:18px}.ttp .composer{flex:none;background:var(--panel);border-top:1px solid var(--line);padding:6px 10px 10px;position:relative}.ttp .composer.drag{outline:2px dashed var(--brand);outline-offset:-6px}.ttp .composer textarea{width:100%;border:0;outline:none;resize:none;background:transparent;max-height:160px;min-height:22px;padding:6px 4px}.ttp .composer .bar{display:flex;align-items:center;gap:2px}.ttp .composer .reply{display:flex;gap:8px;align-items:center;padding:6px 8px;margin-bottom:4px;border-left:3px solid var(--brand);background:var(--panel-2);border-radius:4px;font-size:.9em}.ttp .composer .chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.ttp .composer .chip{display:flex;align-items:center;gap:4px;background:var(--panel-2);border:1px solid var(--line);border-radius:6px;padding:2px 4px 2px 8px;font-size:12px;max-width:220px}.ttp .composer .send{color:var(--brand)}.ttp .mention-pop{position:absolute;bottom:100%;left:10px;width:280px;max-height:240px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #10182824}.ttp .mention-pop div{padding:6px 10px;cursor:pointer;display:flex;gap:8px;align-items:center}.ttp .mention-pop div.on,.ttp .mention-pop div:hover{background:var(--brand-soft)}.ttp .info{width:300px;flex:none;background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column}.ttp .info section{padding:12px;border-bottom:1px solid var(--line)}.ttp .info h4{margin:0 0 8px;font-size:.95em}.ttp .grid-imgs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.ttp .grid-imgs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px;cursor:zoom-in}.ttp .overlay{position:fixed;inset:0;background:#10182873;display:grid;place-items:center;z-index:100}.ttp .dialog{width:min(480px,94vw);max-height:86vh;background:var(--panel);border-radius:12px;display:flex;flex-direction:column;box-shadow:0 20px 50px #0000004d}.ttp .dialog header{padding:14px 16px;font-weight:600;border-bottom:1px solid var(--line);display:flex;align-items:center}.ttp .dialog .body{padding:12px 16px;overflow:auto}.ttp .dialog footer{padding:10px 16px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.ttp .pick{display:flex;align-items:center;gap:10px;padding:6px 4px;border-radius:6px;cursor:pointer}.ttp .pick:hover{background:var(--panel-2)}.ttp .viewer{position:fixed;inset:0;background:#000000e0;z-index:120;display:grid;place-items:center}.ttp .viewer img{max-width:94vw;max-height:88vh}.ttp .viewer .bar{position:absolute;top:10px;right:14px;display:flex;gap:8px}.ttp .viewer .bar a,.ttp .viewer .bar button{color:#fff;background:#ffffff26;padding:6px 12px;border-radius:6px;text-decoration:none}.ttp.login{min-height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#0a58b8,#10b9c8);padding:16px}.ttp .login-card{width:min(380px,100%);background:var(--panel);border-radius:16px;padding:28px 26px;box-shadow:0 24px 60px #00000040;display:flex;flex-direction:column;gap:12px}.ttp .login-card img{width:72px;height:72px;align-self:center}.ttp .login-card h1{margin:0;text-align:center;font-size:1.4em}.ttp .login-card .err{color:var(--danger);font-size:.9em}.ttp .divider{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.ttp .divider:before,.ttp .divider:after{content:"";flex:1;height:1px;background:var(--line)}.ttp .item{display:flex;gap:10px;align-items:center;padding:8px 12px;cursor:pointer}.ttp .item:hover{background:var(--panel-2)}.ttp .section-title{padding:10px 12px 4px;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.02em}.ttp .notif.unread{background:var(--brand-soft)}.ttp .settings{padding:12px;display:flex;flex-direction:column;gap:14px}.ttp .settings label.opt{display:flex;align-items:center;justify-content:space-between;gap:10px}@media(max-width:760px){.ttp .back-btn{display:inline-grid}.ttp .side{width:100%;border-right:0}.ttp.shell.has-active .side{display:none}.ttp.shell:not(.has-active) .main{display:none}.ttp .info{position:absolute;inset:0;width:auto;z-index:20}.ttp .rail{--rail: 52px}}@media(max-width:1100px){.ttp .info{position:absolute;right:0;top:0;bottom:0;z-index:20;box-shadow:-8px 0 24px #0000001f}}.ttp.compact .rail{display:none}.ttp.compact .side{width:100%;border-right:0}.ttp.compact.has-active .side{display:none}.ttp.compact:not(.has-active) .main{display:none}.ttp.compact .back-btn{display:inline-grid}.ttp.compact .info{position:absolute;inset:0;width:auto;z-index:20}.ttp.compact .bubble{max-width:82%}.ttp.compact .bubble img.pic{max-width:200px}.ttp .avatar-edit{padding:0;border:0;background:none;border-radius:50%;cursor:pointer;position:relative}.ttp .avatar-edit:hover:after{content:"✎";position:absolute;right:-2px;bottom:-2px;width:20px;height:20px;border-radius:50%;background:var(--panel-2);border:1px solid var(--line);font-size:12px;line-height:18px;text-align:center}.ttp .avatar-edit:disabled{opacity:.6;cursor:wait}
