@import url('theme.css');
*{box-sizing:border-box}body{margin:0;font:15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#293244;background:#f3f3f8}button,input,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:default}input,textarea{outline:0;border:1px solid #e3e5ed;border-radius:12px;padding:12px;background:#fff;color:inherit;width:100%}input:focus,textarea:focus{border-color:#8772ee;box-shadow:0 0 0 3px #6B43F212}button:focus-visible{outline:3px solid #a99aef;outline-offset:2px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h2{font-size:24px;letter-spacing:-.6px}h3{font-size:16px}label{display:block;font-size:13px;font-weight:600}label input{margin-top:7px}small,.help{color:#89909e;font-size:12px}.help{line-height:1.65}header{display:flex;align-items:center;justify-content:space-between}header h2{margin:3px 0 0}.primary{padding:13px 20px;background:#6B43F2;color:white;border-radius:12px;font-weight:650;box-shadow:0 4px 12px #6B43F220}.secondary{padding:10px 16px;background:#f0edfc;color:#6650ca;border-radius:10px}.text-button{background:transparent;color:#6B43F2;padding:12px}.danger{color:#d85d6a}.icon{background:transparent;color:#8990a3;border-radius:10px;width:38px;height:38px;font-size:24px;flex-shrink:0;display:grid;place-items:center}.icon:hover{background:#eeeaf9;color:#6B43F2}.eyebrow{display:block;font-size:10px;letter-spacing:2.2px;font-weight:750;color:#9691ae}.auth-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:110px;padding:44px;background:radial-gradient(ellipse at 10% 80%,#e5defc 0,transparent 50%),#f6f5fa}.brand-mark{display:grid;place-items:center;color:white;font-size:60px;width:94px;height:94px;background:#6B43F2;border-radius:28px;margin-bottom:34px;transform:rotate(-6deg)}.auth-intro h1{font-size:64px;line-height:1.05;letter-spacing:-3px;margin:18px 0 24px}.auth-intro p{font-size:18px;color:#858397;line-height:1.7}.intro-pills{display:flex;gap:10px;margin-top:36px;font-size:12px;color:#817495}.intro-pills span{background:#eae6f5;padding:9px 13px;border-radius:20px}.auth-card{width:378px;background:white;padding:34px;border-radius:24px;box-shadow:0 20px 60px #3d26550a;display:flex;flex-direction:column;gap:16px}.auth-card h2{margin:10px 0 0}.auth-card p{font-size:13px;color:#89909e;margin:0}.badge{color:#8e83bc;font-weight:700;letter-spacing:1.2px;font-size:9px}.auth-card small{text-align:center;font-size:10px;margin-top:8px}.auth-card .error{color:#d85d6a}.app{height:100dvh;display:grid;grid-template-columns:340px 1fr;max-width:1800px;margin:auto;background:#fff;overflow:hidden}.sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e9eaf1;background:white}.side-head{padding:17px 13px 11px;gap:10px}.side-head strong{font-size:20px;letter-spacing:-.5px;flex:1}.beta{font-size:9px;background:#eeeafa;color:#8677bb;border-radius:5px;padding:2px 5px}.search{display:flex;align-items:center;background:#f3f4f8;border-radius:12px;margin:6px 18px 18px;padding:0 12px;gap:9px;color:#a1a6b3}.search span{font-size:23px}.search input{border:0;background:transparent;padding:10px 0;font-size:13px}.stories{display:flex;align-items:flex-start;gap:15px;padding:0 20px 20px;overflow:auto;min-height:94px}#story-list{display:flex;gap:14px}.story-circle{border:2px dashed #cfcae5;background:#f7f5fe;position:relative;width:52px;height:52px;border-radius:50%;flex-shrink:0;font-size:21px;color:#897abc;display:grid;place-items:center;margin-bottom:18px}.story-circle small{position:absolute;top:56px;font-size:9px;white-space:nowrap;max-width:70px;overflow:hidden;text-overflow:ellipsis}.story-circle.has-story{border:2px solid #8f78eb;background:#eee9fc;font-size:15px;font-weight:650}.tabs{display:flex;border-bottom:1px solid #eef0f5;padding:0 18px;gap:24px}.tabs button{background:none;font-size:13px;padding:8px 2px 13px;color:#969caf;border-bottom:2px solid transparent}.tabs button.active{color:#6B43F2;font-weight:650;border-color:#6B43F2}.tabs span{font-size:10px;background:#eeeafa;padding:2px 5px;border-radius:5px;margin-left:5px}.chat-list{flex:1;overflow:auto;padding:10px}.chat-row{display:flex;gap:12px;align-items:center;padding:12px 10px;background:none;width:100%;text-align:left;border-radius:12px;margin-bottom:2px}.chat-row:hover{background:#f6f5fb}.chat-row.selected{background:#eeebfb}.avatar{width:47px;height:47px;display:grid;place-items:center;border-radius:16px;background:#e8e0fc;color:#8672ba;font-weight:700;flex-shrink:0;font-size:16px}.chat-row:nth-child(3n+2) .avatar{background:#deefeb;color:#6ba598}.chat-row:nth-child(3n+3) .avatar{background:#fae9e2;color:#bf8a6e}.chat-row .row-body{flex:1;min-width:0}.row-top{display:flex;gap:5px;justify-content:space-between;align-items:center}.row-top strong{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.row-top time{font-size:10px;color:#9e9eb1;flex-shrink:0}.row-preview{display:block;font-size:12px;color:#9b9eac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.list-empty{padding:45px 15px;text-align:center;color:#a1a4b1;font-size:12px;line-height:1.8}.side-footer{display:flex;align-items:center;gap:7px;padding:14px 18px;border-top:1px solid #eff0f5;color:#9fa3b2;font-size:10px}.side-footer #my-name{margin-left:auto;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connection-dot{width:6px;height:6px;border-radius:50%;background:#d8bc70}.connection-dot.online{background:#75ba9f}.conversation{min-width:0;background:#f1f1f7;background-image:radial-gradient(#dcdbe830 .9px,transparent .9px);background-size:20px 20px}.empty{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:35px}.empty-symbol{background:#e8e2fb;color:#9f8adb;border-radius:34px;width:96px;height:96px;display:grid;place-items:center;font-size:64px;margin-bottom:28px;transform:rotate(-8deg)}.empty h2{font-size:30px;margin:14px 0}.empty p{color:#9a99ac;font-size:13px;line-height:1.9;margin-bottom:25px}.empty-notes{display:flex;gap:24px;margin-top:48px;color:#aca6bd;font-size:10px}.chat{height:100%;display:flex;flex-direction:column}.chat-head{background:#fff;padding:13px 26px;gap:14px;min-height:79px;border-bottom:1px solid #ecebf2}.chat-head .avatar{width:44px;height:44px}.chat-heading{flex:1;min-width:0}.chat-heading h2{font-size:15px;letter-spacing:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-heading p{font-size:11px;color:#9d9caf;margin:3px 0 0}.history-notice{font-size:11px;background:#faf9fe;border-bottom:1px solid #eceaf3;color:#9b93b1;text-align:center;padding:9px 14px;line-height:1.5}.history-notice.ephemeral{background:#fff5df;color:#9b7b39}.messages{flex:1;min-height:0;overflow:auto;padding:28px max(25px,calc((100% - 760px)/2));display:flex;flex-direction:column;gap:8px}.bubble{max-width:78%;align-self:flex-start;background:white;border-radius:14px 14px 14px 4px;padding:10px 13px;box-shadow:0 2px 6px #29304403;white-space:pre-wrap;overflow-wrap:anywhere;position:relative}.bubble.mine{align-self:flex-end;background:#e8e1ff;border-radius:14px 14px 4px 14px}.bubble .author{display:block;color:#8b70c4;font-size:10px;font-weight:700;margin-bottom:4px}.bubble .meta{font-size:9px;color:#a69bbd;display:flex;justify-content:flex-end;margin-top:4px;gap:4px}.bubble img,.bubble video{max-width:100%;max-height:320px;border-radius:8px;display:block;margin-bottom:6px}.bubble audio{max-width:100%;width:260px}.bubble a{font-size:12px;color:#6B43F2}.day-label{align-self:center;background:#e6e3ef;color:#9b94ae;font-size:10px;padding:3px 11px;border-radius:20px;margin:12px}.composer{display:flex;align-items:flex-end;gap:8px;margin:12px 24px 22px;background:white;padding:9px 12px;border-radius:16px;box-shadow:0 4px 20px #24203a03}.composer textarea{border:0;resize:none;max-height:140px;min-height:40px;padding:9px 2px;border-radius:0;font-size:13px}.composer textarea:focus{box-shadow:none}.send{width:38px;height:38px;border-radius:12px;background:#6B43F2;color:#fff;font-size:23px;flex-shrink:0}.attachment-preview{display:flex;align-items:center;margin:10px 24px 0;background:#ebe5fc;border-radius:12px;padding:5px 15px;color:#8676b7;font-size:12px}.attachment-preview span{flex:1}.mobile-back{display:none}dialog{border:0;border-radius:22px;padding:27px;width:420px;max-width:calc(100vw - 24px);max-height:90dvh;overflow:auto;box-shadow:0 20px 90px #25203522;color:inherit}dialog::backdrop{background:#211e3940;backdrop-filter:blur(4px)}dialog header{margin-bottom:23px}dialog input,dialog textarea{margin-bottom:12px}dialog .primary{width:100%;margin-top:15px}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:14px;font-size:13px}.switch-row input{width:20px;height:20px;accent-color:#6B43F2;margin:0;box-shadow:none}.user-list{max-height:300px;overflow:auto;margin:10px 0}.user-item{display:flex;gap:12px;align-items:center;padding:10px 0}.user-item input{width:18px;height:18px;accent-color:#6B43F2;margin:0;box-shadow:none}.user-item span{display:block;font-size:11px;color:#9e9aaa;font-weight:400}.setting-block{border-top:1px solid #ecebf3;padding-top:20px;margin-top:20px}.setting-block .secondary{width:100%;margin-bottom:12px}#sync-code{display:block;font:700 28px/1.8 ui-monospace,monospace;letter-spacing:4px;text-align:center;color:#6B43F2}#sync-code:empty{display:none}#profile{font-size:13px;color:#9b92ae}.story-viewer{background:#292238;color:white;padding:20px;width:430px}.story-viewer header{margin-bottom:12px}.story-viewer #story-stage{min-height:300px;display:grid;place-items:center;white-space:pre-wrap;font-size:26px;text-align:center}.story-viewer img,.story-viewer video{max-width:100%;max-height:60dvh;border-radius:10px}.story-viewer #story-caption{font-size:14px;margin-top:15px}.story-viewer footer{display:flex;justify-content:space-between;align-items:center}.call-dialog{width:650px;background:#292238;color:white;text-align:center}.call-dialog header{font-size:12px;color:#b9afce}.call-dialog h2{margin:8px}.call-dialog #call-status{font-size:12px;color:#afa3c4}.video-stage{min-height:160px;position:relative;margin:20px 0}.video-stage #remote-video{width:100%;max-height:55dvh;border-radius:16px}.video-stage #local-video{width:25%;position:absolute;bottom:10px;right:10px;border-radius:12px;background:#3a2c51}.call-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.call-actions .primary{width:auto;margin:0}.end-call{background:#da6173;color:#fff;border-radius:12px;padding:12px 20px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:#302b44;color:white;box-shadow:0 5px 20px #1c1b2622;padding:13px 22px;border-radius:12px;font-size:13px;max-width:90vw;text-align:center}
@media(min-width:1400px){.app{grid-template-columns:370px 1fr}.messages{padding-top:40px}}@media(max-width:700px){.app{grid-template-columns:1fr}.conversation{display:none}.app.chat-open .sidebar{display:none}.app.chat-open .conversation{display:block}.mobile-back{display:grid}.side-head{padding-top:12px}.chat-head{padding:10px 12px;gap:9px}.chat-head .avatar{width:35px;height:35px;border-radius:12px;font-size:12px}.chat-head .icon{width:32px;font-size:22px}.messages{padding:15px 12px}.bubble{max-width:87%}.composer{margin:8px 10px max(12px,env(safe-area-inset-bottom));padding:7px}.history-notice{font-size:10px;padding:8px 12px}.auth-screen{padding:25px 20px;gap:25px;flex-direction:column}.auth-intro{width:100%;max-width:378px;text-align:center}.auth-intro .eyebrow,.auth-intro p,.intro-pills{display:none}.auth-intro h1{font-size:34px;letter-spacing:-1.5px;margin:0}.auth-intro h1 br{display:none}.brand-mark{width:48px;height:48px;font-size:32px;border-radius:15px;margin:0 auto 18px}.auth-card{width:100%;max-width:378px;padding:27px}.call-dialog{padding:18px}.call-actions{gap:6px}.call-actions button{font-size:12px;padding:10px 12px}.attachment-preview{margin:8px 10px 0}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}.auth-card{animation:appear .35s ease-out}@keyframes appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}}

.brand-mark{background:transparent;transform:none}.brand-mark img,.empty-symbol img{width:100%;height:100%;display:block}.brand-mini{flex-shrink:0}.empty-symbol{background:transparent;transform:none}
