:root{--bg:#f4f3ef;--surface:#fff;--text:#1b1d21;--muted:#6a6d73;--line:#e1dfd8;--accent:#2f5fd0;--accent-strong:#244aa8;--danger:#c0392b;--ok:#23874a;--chat:#eae8e1;--bubble-out:#d9e4ff;--hover:#0000000d;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0f1114;--surface:#181b20;--text:#ececec;--muted:#9a9da3;--line:#2a2e36;--accent:#6f95f5;--accent-strong:#8aa8f8;--danger:#ff8a7d;--ok:#5fd08a;--chat:#0b0d0f;--bubble-out:#26386f;--hover:#ffffff12}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0}h1,h2,h3,p{margin:0}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--muted)}.accent{color:var(--accent)}.strong{font-weight:700}.italic{font-style:italic}.error{color:var(--danger);font-size:.9rem}.danger-text{color:var(--danger)}.pad{padding:.75rem 1rem}.button{background:var(--accent);color:#fff;border-radius:999px;justify-content:center;align-items:center;padding:.6rem 1.1rem;font-weight:600;display:inline-flex}.button:hover{background:var(--accent-strong)}.button:disabled{opacity:.6}.button.small{padding:.35rem .8rem;font-size:.85rem}.button.danger{border:1px solid var(--line);color:var(--danger);background:0 0}.button.accept{background:var(--ok)}.button.decline{background:var(--danger)}.link{color:var(--accent);padding:.5rem 0;text-decoration:underline}.icon-button{width:40px;height:40px;color:var(--muted);border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover{background:var(--hover);color:var(--text)}.round-button{background:var(--accent);color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:42px;height:42px;display:inline-flex}form{flex-direction:column;gap:.85rem;display:flex}label{flex-direction:column;gap:.3rem;font-size:.9rem;font-weight:600;display:flex}.hint{color:var(--muted);font-weight:400}input,textarea,select{border:1px solid var(--line);background:var(--surface);border-radius:10px;outline:none;width:100%;padding:.6rem .8rem}input:focus,textarea:focus,select:focus{border-color:var(--accent)}.inline-form{flex-flow:wrap;align-items:center}.inline-form input{flex:12rem}.center-screen{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.75rem;min-height:100%;padding:1.5rem 1rem;display:flex;overflow-y:auto}.auth-card{border:1px solid var(--line);background:var(--surface);text-align:left;border-radius:18px;flex-direction:column;gap:.9rem;width:100%;max-width:24rem;padding:1.5rem;display:flex}.brand{color:var(--accent);align-items:center;gap:.4rem;font-weight:700;display:flex}.auth-card h1{font-size:1.5rem}.empty{text-align:center;color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:.7rem;padding:2rem;display:flex}.empty h2{color:var(--text)}.empty p{max-width:24rem}.shell{width:100%;height:100dvh;display:flex}.sidebar{border-right:1px solid var(--line);background:var(--surface);flex-direction:column;flex:none;width:360px;display:flex}.main{flex-direction:column;flex:1;min-width:0;display:flex}.bar{background:var(--surface);border-bottom:1px solid var(--line);align-items:center;gap:.4rem;min-height:58px;padding:.5rem .6rem;display:flex}.bar-title{flex:1;padding-left:.4rem;font-size:1.15rem}.bar-text{flex:1;min-width:0}.bar-text h2{text-overflow:ellipsis;white-space:nowrap;font-size:1rem;overflow:hidden}.bar-text p{text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;overflow:hidden}.community-select{background:0 0;border:0;flex:1;min-width:0;padding:.4rem;font-size:1.05rem;font-weight:700}.banner{background:var(--danger);color:#fff;padding:.4rem .9rem;font-size:.85rem}.search{padding:.5rem .7rem}.search input{background:var(--bg);border-radius:999px}.chat-list,.plain-list{margin:0;padding:0;list-style:none}.chat-list{flex:1;overflow-y:auto}.chat-row{text-align:left;align-items:center;gap:.75rem;width:100%;padding:.6rem .8rem;display:flex}.chat-row:hover,.chat-row.selected{background:var(--hover)}.chat-row-text{flex-direction:column;flex:1;min-width:0;display:flex}.chat-row-top,.chat-row-bottom{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.chat-row strong,.preview{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.preview{color:var(--muted);font-size:.9rem}.chat-row time{color:var(--muted);flex:none;font-size:.75rem}.chat-row time.accent{color:var(--accent);font-weight:600}.badge{background:var(--accent);color:#fff;text-align:center;border-radius:999px;flex:none;min-width:20px;height:20px;padding:0 6px;font-size:.75rem;font-weight:700;line-height:20px}.avatar{color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:600;display:inline-flex}.messages{background:var(--chat);flex:1;min-height:0;padding:.75rem max(.75rem,6%);overflow-y:auto}.e2e-note{background:var(--surface);max-width:26rem;color:var(--muted);text-align:center;border-radius:10px;justify-content:center;align-items:center;gap:.35rem;margin:.25rem auto .75rem;padding:.4rem .8rem;font-size:.8rem;display:flex}.day{text-align:center;margin:.75rem 0}.day span,.typing{background:var(--surface);color:var(--muted);border-radius:8px;padding:.2rem .75rem;font-size:.78rem;box-shadow:0 1px 1px #00000014}.typing{width:-moz-fit-content;width:fit-content;margin-top:.5rem;padding:.35rem .75rem;font-size:.85rem}.line{margin-top:2px;display:flex}.line.gap{margin-top:8px}.line.mine{justify-content:flex-end}.bubble{background:var(--surface);border-radius:12px;max-width:min(85%,34rem);padding:.35rem .6rem .25rem;position:relative;box-shadow:0 1px 1px #0000001a}.bubble[data-mine=true]{background:var(--bubble-out)}.bubble.has-reactions{margin-bottom:14px}.sender{color:var(--accent);font-size:.85rem;font-weight:700}.text{white-space:pre-wrap;overflow-wrap:anywhere}.meta{color:var(--muted);justify-content:flex-end;gap:.25rem;padding-left:1.5rem;font-size:.7rem;line-height:1.2;display:flex}.quote{border-left:4px solid var(--accent);background:var(--hover);border-radius:8px;flex-direction:column;margin-bottom:.25rem;padding:.25rem .5rem;font-size:.88rem;display:flex}.quote strong{color:var(--accent)}.quote span{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.quote.replying{flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:.5rem}.quote.replying>span{flex-direction:column;min-width:0;display:flex}.reactions{border:1px solid var(--line);background:var(--surface);border-radius:999px;gap:.25rem;padding:1px 6px;font-size:.78rem;display:flex;position:absolute;bottom:-14px;left:8px}.bubble-menu-button{background:inherit;width:24px;height:24px;color:var(--muted);opacity:0;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;top:2px;right:2px}.bubble:hover .bubble-menu-button,.bubble-menu-button:focus-visible,.bubble-menu-button[aria-expanded=true]{opacity:1}@media (hover:none){.bubble-menu-button{opacity:.55}}.menu{z-index:30;border:1px solid var(--line);background:var(--surface);border-radius:12px;width:14rem;padding:.35rem;position:absolute;top:28px;box-shadow:0 8px 24px #0003}.menu.right{right:0}.menu.left{left:0}.menu>button{text-align:left;border-radius:8px;width:100%;padding:.5rem .7rem;font-size:.9rem;display:block}.menu>button:hover,.menu-reactions button:hover,.emoji-grid button:hover{background:var(--hover)}.menu-reactions{justify-content:space-between;padding:0 .2rem .25rem;display:flex}.menu-reactions button{border-radius:50%;padding:.2rem;font-size:1.3rem}.menu-backdrop{z-index:20;cursor:default;position:fixed;inset:0}.attachment-image{background:var(--hover);object-fit:contain;border-radius:8px;min-width:6rem;max-width:100%;min-height:6rem;max-height:18rem;margin-bottom:.25rem;display:block}.attachment-audio{width:16rem;max-width:100%;height:40px;margin-bottom:.25rem;display:block}.attachment-file{background:var(--hover);text-align:left;border-radius:8px;align-items:center;gap:.5rem;width:100%;margin-bottom:.25rem;padding:.5rem;display:flex}.attachment-file span{flex-direction:column;min-width:0;display:flex}.attachment-file strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.attachment-file small{color:var(--muted)}.composer{background:var(--surface);border-top:1px solid var(--line);padding:.5rem .6rem}.composer-row{flex-direction:row;align-items:flex-end;gap:.25rem}.composer textarea{resize:none;background:var(--bg);field-sizing:content;border-radius:21px;flex:1;min-height:42px;max-height:8rem}.emoji-grid{border:1px solid var(--line);border-radius:12px;grid-template-columns:repeat(auto-fill,minmax(2.4rem,1fr));gap:.15rem;max-height:10rem;margin-bottom:.5rem;padding:.4rem;display:grid;overflow-y:auto}.emoji-grid button{border-radius:8px;padding:.25rem;font-size:1.3rem}.recording{flex:1;align-self:center}.dot{background:var(--danger);border-radius:50%;width:10px;height:10px;margin-right:.4rem;animation:1s infinite alternate pulse;display:inline-block}@keyframes pulse{to{opacity:.3}}.modal-backdrop{z-index:40;background:#00000073;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border-radius:16px;flex-direction:column;width:100%;max-width:34rem;max-height:100%;display:flex;overflow:hidden}.modal>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:.6rem .6rem .6rem 1.1rem;display:flex}.modal h2{font-size:1.1rem}.modal-body{flex-direction:column;gap:1.1rem;padding:1.1rem;display:flex;overflow-y:auto}.modal section{flex-direction:column;align-items:flex-start;gap:.55rem;display:flex}.modal section>form,.modal section>ul{width:100%}.modal h3{font-size:.95rem}.tabs{flex-wrap:wrap;gap:.3rem;display:flex}.tabs button{border:1px solid var(--line);border-radius:999px;padding:.4rem .9rem}.tabs button[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:#fff}.row{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem 0;display:flex}.row-actions{gap:.35rem;display:flex}.notice{background:var(--hover);border-radius:10px;padding:.5rem .8rem}.copy-row{align-items:center;gap:.5rem;width:100%;display:flex}.copy-row code{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:.85rem;overflow:hidden}.toast{z-index:60;background:var(--text);max-width:calc(100% - 2rem);color:var(--bg);border-radius:999px;padding:.6rem 1rem;font-size:.9rem;position:fixed;bottom:1.25rem;left:50%;transform:translate(-50%)}.incoming{z-index:60;border:1px solid var(--line);background:var(--surface);border-radius:18px;flex-wrap:wrap;align-items:center;gap:.6rem;width:min(28rem,100% - 1.5rem);padding:.7rem;display:flex;position:fixed;top:.75rem;left:50%;transform:translate(-50%);box-shadow:0 12px 32px #00000040}.incoming-text{flex-direction:column;flex:1;min-width:8rem;display:flex}.call{color:#f2f2f2;background:#101216;flex-direction:column;height:100dvh;display:flex}.call-header{text-align:center;padding:.8rem 1rem}.call-header div{flex-direction:column;display:flex}.call-header span{opacity:.7;font-size:.85rem}.call-error{text-align:center;background:#5a1f1a;border-radius:10px;margin:0 1rem .5rem;padding:.5rem .8rem}.call-grid{flex:1;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));grid-auto-rows:1fr;gap:6px;min-height:0;padding:6px;display:grid}.call-grid.count-1{grid-template-columns:1fr}.call-tile{background:#1c2027;border-radius:14px;justify-content:center;align-items:center;min-height:0;display:flex;position:relative;overflow:hidden}.call-tile.screen-share{grid-area:span 2/1/auto/-1}.call-tile video{object-fit:cover;width:100%;height:100%}.call-tile.screen-share video{object-fit:contain}.call-tile video.mirror{transform:scaleX(-1)}.call-name{background:#0000008c;border-radius:6px;padding:2px 8px;font-size:.8rem;position:absolute;bottom:8px;left:8px}.call-controls{padding:.9rem .5rem calc(.9rem + env(safe-area-inset-bottom));justify-content:center;gap:.9rem;display:flex}.call-controls button{color:#fff;background:#2a2f38;border-radius:50%;justify-content:center;align-items:center;width:52px;height:52px;display:flex}.call-controls button.off{color:#101216;background:#f2f2f2}.call-controls button.active{background:var(--accent)}.call-controls button.hangup{background:#d93025}.phone-only{display:none}@media (max-width:760px){.sidebar{border-right:0;width:100%}.hide-on-phone{display:none}.phone-only{display:inline-flex}.messages{padding:.6rem}.call-controls{gap:.6rem}}
