:root{font:15px/1.45 Inter,Segoe UI,system-ui,sans-serif;color:#e9f1f8;background:#101923;color-scheme:dark;--panel: #17232f;--muted: #9caebe;--line: #304151;--accent: #68baf4}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{color:inherit;background:none;border:0;cursor:pointer}button:disabled{opacity:.55;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:hover:not(:disabled){filter:brightness(1.14)}h1,h2,p{margin:0}svg{width:22px;height:22px}.icon{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:50%;color:var(--muted)}.icon:hover{background:#ffffff0d}.welcome,.empty,.history{background-color:#101c27;background-image:radial-gradient(ellipse at 76% 40%,#21415266,transparent 58%),radial-gradient(ellipse at 20% 78%,#29364877,transparent 65%)}.welcome{height:100dvh;display:grid;place-items:center;padding:24px}.welcome>header{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:16px 28px}.welcome>header strong{font-size:18px}.card,dialog{background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:34px;width:min(100%,390px);box-shadow:0 20px 60px #03090e45}.plane{height:66px;width:66px;display:grid;place-items:center;border-radius:22px;color:#91d2ff;background:#214b67;margin-bottom:23px}.plane svg{width:34px;height:34px}.card h1{font-size:26px}.card p{color:var(--muted);margin:9px 0 25px}label{display:grid;gap:8px;font-size:14px}input,select{width:100%;background:#101b26;color:inherit;border:1px solid var(--line);border-radius:10px;padding:11px 13px}.primary{background:#71c0f5;color:#0e2637;font-weight:650;border-radius:10px;width:100%;padding:11px;margin-top:16px}footer{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;padding:15px 18px;border-top:1px solid var(--line)}.card footer{padding:18px 0 0;margin-top:24px}i{width:7px;height:7px;border-radius:50%;background:#72c9ad}.layout{height:100dvh;display:grid;grid-template-columns:clamp(275px,30vw,390px) 1fr}.layout aside{display:flex;min-height:0;flex-direction:column;background:var(--panel);border-right:1px solid var(--line)}aside header,.chathead{height:66px;display:flex;align-items:center;padding:0 18px;gap:12px;border-bottom:1px solid var(--line);background:var(--panel)}aside header{justify-content:space-between}h1{font-size:22px}h2{font-size:18px}.chatlist{overflow:auto;flex:1;padding:7px}.chatrow{border-radius:12px;display:flex;align-items:center;gap:12px;padding:9px}.current{background:#2b4e68}.chatlink{min-width:0;flex:1;text-align:left;padding:4px 0}.chatlink strong,.chatlink span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chatlink span{font-size:13px;color:var(--muted)}.avatar{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center}.image{object-fit:cover}.initial{background:#35546a;color:#d9ecff;font-weight:650}.unread,.day,.older{border-radius:20px;padding:3px 9px;font-size:12px}.unread{background:#6bb9ee;color:#15232f}.conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.history{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:flex-start;padding:20px max(16px,calc((100% - 760px)/2));gap:6px}.bubble{max-width:min(85%,520px);background:#233442;border-radius:14px 14px 14px 4px;padding:8px 12px;white-space:pre-wrap;overflow-wrap:anywhere;flex:none}.bubble.out{align-self:flex-end;background:#285574;border-radius:14px 14px 4px}.bubble small{display:block;text-align:right;color:#b1c3d0;font-size:10px}.day,.older{align-self:center;background:#273a49;color:#cddae4;margin:8px auto}.older{padding:6px 14px}.empty{display:grid;place-content:center;justify-items:center;color:var(--muted)}.spoiler{background-color:#334859;background-image:radial-gradient(#a4bbcc77 .8px,transparent 1.1px),radial-gradient(#7891a966 1px,transparent 1.2px);background-size:5px 6px,8px 7px;background-position:1px 2px,4px 3px}.cover,.picture{max-width:100%;border-radius:9px}.cover{width:235px;height:155px;display:grid;place-items:center}.cover span{background:#12212ecd;padding:7px 13px;border-radius:20px;display:flex;align-items:center;gap:7px;font-size:13px}.picture{display:block;max-height:440px}.composer{position:relative;background:var(--panel);padding:10px max(14px,calc((100% - 770px)/2));border-top:1px solid var(--line)}.composeRow,.attachment{display:flex;align-items:center;gap:10px}.composeRow textarea{flex:1;min-width:0;resize:none;border:none;background:#1f303e;border-radius:14px;padding:11px;color:inherit}.send{background:#69b9f0;color:#123043}.attachment{font-size:13px;color:var(--muted);padding:4px 8px}.attachment button{color:var(--accent)}.back{display:none}dialog{position:fixed;inset:0;z-index:3;margin:auto;color:inherit;box-shadow:0 0 0 100vmax #050b12ab}dialog h2{margin-bottom:18px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:#354757;border-radius:12px;padding:10px 16px;box-shadow:0 5px 25px #0004;display:flex;align-items:center;gap:12px;max-width:92vw;z-index:4}.toast button{font-size:19px}@media(max-width:680px){.layout{display:block}.layout aside,.conversation{height:100dvh}.selected aside,.empty{display:none}.back{display:inline-grid}.card{padding:26px}.history{padding:12px}.welcome>header{padding:12px}.chathead{gap:8px}}.mediaframe{display:block;position:relative;overflow:hidden;border-radius:8px;max-width:100%;background:#304150}.mediaframe>img,.mediaframe video,.mediabutton,.mediabutton .blurred{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.mediabutton{display:grid;place-items:center;overflow:hidden;background:#ffffff04}.mediabutton .blurred{object-fit:cover;filter:blur(12px);transform:scale(1.12)}.mediabutton span,.mediabutton small{position:relative;border-radius:18px;padding:5px 12px;background:#172430be;color:#fff}.mediabutton small{position:absolute;inset:auto 8px 8px auto}.sender{color:#87c7f2;display:block;font-size:13px;margin-bottom:4px}.chatrow{width:100%;text-align:left}.chatrow:hover:not(.current){background:#20303e}.rowmeta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.rowmeta time{color:var(--muted);font-size:12px}.messageRow{display:flex;align-items:flex-end;gap:7px;max-width:100%;flex:none}.messageRow.mine{align-self:flex-end}.messageRow>.avatar,.messageRow>.avatar img{width:32px;height:32px}.messageRow .bubble{max-width:min(520px,calc(100% - 39px))}.messageRow.mine .bubble{max-width:100%}.bubble a{color:#8fd0ff;text-decoration:underline;text-underline-offset:2px}.sticker{max-width:100%;position:relative}.sticker>div,.sticker img,.sticker video,.sticker canvas{width:100%;height:100%;object-fit:contain;display:block}.conversation{position:relative}.jumpLatest{position:absolute;right:18px;bottom:calc(100% + 8px);border-radius:20px;padding:8px 14px;color:var(--accent);background:var(--panel);box-shadow:0 2px 10px #0004}.messageMenu{position:fixed;z-index:6;min-width:132px;padding:4px;border-radius:10px;background:var(--panel);box-shadow:0 4px 22px #0007;border:1px solid var(--line)}.messageMenu button{width:100%;text-align:left;padding:7px 12px;border-radius:6px}.messageMenu button:hover,.messageMenu button:focus-visible{background:#294359}.replyQuote{display:grid;min-width:0;gap:1px;border-left:3px solid var(--accent);padding:4px 8px;margin:3px 0 6px;background:#70baf414;border-radius:3px}.replyQuote b,.replyQuote span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.replyQuote b{color:var(--accent)}.replyDraft{display:flex;align-items:center;gap:8px}.replyDraft .replyQuote{flex:1}.restoreSidebar,.sidebarToggle{display:none}@media(min-width:681px){.sidebarToggle{display:inline-grid}aside header h1{flex:1}.layout.collapsed{grid-template-columns:minmax(0,1fr)}.layout.collapsed aside{display:none}.collapsed .restoreSidebar{display:block;position:absolute;left:10px;top:12px;z-index:1}.collapsed .chathead{padding-left:62px}}.replyLink{display:grid;width:100%;text-align:left;cursor:pointer}.replyLink:hover{background:#70baf42a}.bubble.jumpHighlight{animation:quote-highlight 1.5s ease-out}@keyframes quote-highlight{0%,40%{box-shadow:0 0 0 3px var(--accent);background-color:#315b77}to{box-shadow:0 0 0 3px transparent}}@media(prefers-reduced-motion:reduce){.bubble.jumpHighlight{animation:none;outline:3px solid var(--accent)}}.attachmentThumb{width:48px;height:48px;object-fit:contain;border-radius:5px;flex:none}
