/* Nymvo - premium dark chat UI */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root {
  --bg:#0b0b14; --panel:rgba(255,255,255,.045); --stroke:rgba(255,255,255,.09);
  --txt:#f2f2fa; --dim:#9a9ab2; --accent1:#7c5cff; --accent2:#4f8cff; --accent3:#c05cff;
  --grad:linear-gradient(135deg,#7c5cff,#4f8cff);
  --danger:#ff5c7a;
}
html,body { height:100%; }
body {
  background:var(--bg); color:var(--txt);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  overflow:hidden; overscroll-behavior:none;
}

/* ambient orbs */
.bg-orbs { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.orb { position:absolute; border-radius:50%; filter:blur(90px); opacity:.28; animation:drift 18s ease-in-out infinite alternate; }
.o1 { width:340px; height:340px; background:#7c5cff; top:-80px; left:-100px; }
.o2 { width:300px; height:300px; background:#4f8cff; bottom:-60px; right:-90px; animation-delay:-6s; }
.o3 { width:220px; height:220px; background:#c05cff; top:40%; left:60%; opacity:.16; animation-delay:-12s; }
@keyframes drift { from { transform:translate(0,0) scale(1);} to { transform:translate(50px,40px) scale(1.15);} }

.glass { background:var(--panel); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border:1px solid var(--stroke); }

/* views */
.view { position:fixed; inset:0; z-index:1; display:flex; flex-direction:column; opacity:0; pointer-events:none; transform:translateY(12px); transition:opacity .28s ease, transform .28s ease; }
.view.active { opacity:1; pointer-events:auto; transform:none; }
.hidden { display:none !important; }

/* ===== auth ===== */
#authView { align-items:center; justify-content:center; padding:20px; }
.auth-card { width:100%; max-width:400px; border-radius:26px; padding:34px 28px 26px; box-shadow:0 24px 60px rgba(0,0,0,.45); animation:cardIn .5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes cardIn { from { opacity:0; transform:translateY(26px) scale(.96);} to { opacity:1; transform:none;} }
.brand { text-align:center; margin-bottom:22px; }
.brand-logo { width:74px; height:74px; border-radius:22px; box-shadow:0 10px 30px rgba(124,92,255,.45); }
.brand h1 { font-size:30px; font-weight:800; letter-spacing:.5px; margin-top:12px; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tagline { color:var(--dim); font-size:13.5px; margin-top:3px; }
.auth-tabs { position:relative; display:flex; background:rgba(255,255,255,.05); border-radius:14px; padding:4px; margin-bottom:20px; }
.auth-tab { flex:1; z-index:1; background:none; border:0; color:var(--dim); font:600 14px 'Inter',sans-serif; padding:10px 0; cursor:pointer; transition:color .25s; }
.auth-tab.active { color:#fff; }
.tab-ink { position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); border-radius:11px; background:var(--grad); transition:transform .3s cubic-bezier(.4,1.4,.4,1); }
.auth-tabs.signup .tab-ink { transform:translateX(100%); }
.auth-form { display:flex; flex-direction:column; gap:14px; }
.auth-form label { display:flex; flex-direction:column; gap:6px; font:600 13px 'Inter',sans-serif; color:var(--dim); }
.auth-form small { font-weight:400; opacity:.75; }
.auth-form input {
  background:rgba(255,255,255,.055); border:1px solid var(--stroke); border-radius:13px;
  padding:13px 15px; color:var(--txt); font:500 15px 'Inter',sans-serif; outline:none; transition:border-color .2s, box-shadow .2s;
}
.auth-form input:focus { border-color:var(--accent1); box-shadow:0 0 0 3px rgba(124,92,255,.22); }
.btn-primary {
  margin-top:6px; border:0; border-radius:14px; padding:14px; cursor:pointer;
  background:var(--grad); color:#fff; font:700 15.5px 'Inter',sans-serif; letter-spacing:.3px;
  box-shadow:0 10px 26px rgba(96,110,255,.4); transition:transform .15s, box-shadow .2s, opacity .2s;
}
.btn-primary:active { transform:scale(.97); }
.btn-primary:disabled { opacity:.55; cursor:default; }
.auth-error { min-height:20px; margin-top:12px; text-align:center; color:var(--danger); font-size:13.5px; font-weight:500; }
.auth-note { margin-top:10px; text-align:center; color:var(--dim); font-size:12.5px; }

/* ===== topbar ===== */
.topbar { display:flex; align-items:center; gap:12px; padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 12px; border-radius:0 0 22px 22px; border-top:0; z-index:5; }
.topbar-logo { width:38px; height:38px; border-radius:12px; }
.topbar-title { flex:1; min-width:0; }
.topbar-title h1 { font-size:18px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-title p { font-size:12.5px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-title p.typing { color:#3ddc84; font-style:italic; }
.icon-btn { display:grid; place-items:center; width:40px; height:40px; border-radius:13px; border:1px solid var(--stroke); background:rgba(255,255,255,.05); color:var(--txt); cursor:pointer; transition:background .2s, transform .15s; flex:none; }
.icon-btn:active { transform:scale(.92); }

/* ===== user list ===== */
.user-list { flex:1; overflow-y:auto; padding:14px 14px 24px; display:flex; flex-direction:column; gap:8px; }
.user-row { display:flex; align-items:center; gap:13px; padding:12px 14px; border-radius:18px; border:1px solid transparent; background:rgba(255,255,255,.035); cursor:pointer; transition:background .2s, transform .15s; animation:rowIn .35s ease backwards; }
.user-row:active { transform:scale(.98); background:rgba(255,255,255,.07); }
@keyframes rowIn { from { opacity:0; transform:translateY(10px);} to { opacity:1; transform:none;} }
.avatar { position:relative; display:grid; place-items:center; width:50px; height:50px; border-radius:16px; font:700 19px 'Inter',sans-serif; color:#fff; flex:none; text-transform:uppercase; }
.avatar.sm { width:42px; height:42px; border-radius:14px; font-size:16px; }
.avatar .dot { position:absolute; right:-2px; bottom:-2px; width:13px; height:13px; border-radius:50%; background:#3ddc84; border:2.5px solid #101018; display:none; }
.avatar.online .dot { display:block; }
.user-meta { flex:1; min-width:0; }
.user-meta .name { font:600 15.5px 'Inter',sans-serif; display:flex; align-items:center; gap:7px; }
.user-meta .preview { font-size:13px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.user-side { text-align:right; flex:none; }
.user-side .time { font-size:11.5px; color:var(--dim); }
.user-side .unread { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; margin-top:5px; border-radius:10px; background:var(--grad); font:700 11.5px 'Inter',sans-serif; }
.empty-state { flex:1; display:grid; place-items:center; text-align:center; color:var(--dim); font-size:14.5px; line-height:1.7; padding:20px; }

/* ===== chat ===== */
#chatView .topbar { flex:none; }
.messages { flex:1; overflow-y:auto; padding:16px 14px 10px; display:flex; flex-direction:column; gap:4px; }
.msg { max-width:78%; padding:9px 13px 7px; border-radius:18px; font-size:15px; line-height:1.45; word-break:break-word; white-space:pre-wrap; animation:msgIn .22s ease backwards; position:relative; }
@keyframes msgIn { from { opacity:0; transform:translateY(8px) scale(.97);} to { opacity:1; transform:none;} }
.msg .meta { display:flex; justify-content:flex-end; align-items:center; gap:4px; font-size:10.5px; margin-top:3px; opacity:.75; }
.msg .edited-tag { font-style:italic; opacity:.7; font-size:10px; }
.msg code.mono { background:rgba(255,255,255,.09); border-radius:4px; padding:1px 5px; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.92em; }
.vspeed { background:rgba(255,255,255,.08); border:none; color:inherit; border-radius:10px; padding:2px 8px; font-size:11px; font-weight:600; cursor:pointer; opacity:.85; }
.vspeed:hover { opacity:1; background:rgba(255,255,255,.14); }
.search-bar { display:flex; align-items:center; gap:8px; margin:0 12px 8px; padding:8px 12px; border-radius:14px; }
.search-bar input { flex:1; background:none; border:none; outline:none; color:inherit; font-size:14.5px; }
.search-bar button { background:none; border:none; color:inherit; opacity:.6; cursor:pointer; font-size:14px; }
.search-bar.hidden { display:none; }
.fwd-tag { font-size:11px; font-style:italic; opacity:.6; margin-bottom:2px; }
.fwd-list { max-height:50vh; overflow-y:auto; margin:10px -6px 4px; }
.avatar.lg { width:84px; height:84px; font-size:34px; }
.avatar-img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.pf-photo-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:14px; }
.pf-label { display:block; font-size:12px; opacity:.6; margin:10px 0 4px; }
.pf-input { width:100%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:10px 12px; color:inherit; font-size:14.5px; outline:none; }
.pf-input:focus { border-color:rgba(124,92,255,.6); }
.pf-user { text-align:center; font-size:12.5px; opacity:.55; margin-top:12px; }
#meLine { cursor:pointer; }
#meLine:hover { opacity:.85; }
.msg.them { align-self:flex-start; background:rgba(255,255,255,.07); border:1px solid var(--stroke); border-bottom-left-radius:6px; }
.msg.me { align-self:flex-end; background:var(--grad); border-bottom-right-radius:6px; box-shadow:0 6px 18px rgba(96,110,255,.3); }
.msg .ticks { font-size:11px; letter-spacing:-2px; }
.msg .ticks.read { color:#a5f3c8; opacity:1; }
.day-sep { align-self:center; margin:10px 0 6px; padding:4px 13px; border-radius:11px; background:rgba(255,255,255,.06); color:var(--dim); font-size:11.5px; font-weight:600; }

/* composer */
.composer { display:flex; gap:9px; align-items:center; margin:8px 12px calc(env(safe-area-inset-bottom,0px) + 12px); padding:8px 8px 8px 16px; border-radius:22px; }
.composer input { flex:1; background:none; border:0; outline:none; color:var(--txt); font:500 15.5px 'Inter',sans-serif; min-width:0; }
.composer input::placeholder { color:var(--dim); }
.send-btn { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:16px; background:var(--grad); color:#fff; cursor:pointer; box-shadow:0 6px 16px rgba(96,110,255,.4); transition:transform .15s, opacity .2s; flex:none; }
.send-btn:active { transform:scale(.9); }
.send-btn:disabled { opacity:.45; }

/* group chat extras */
.msg .sender { font-size:12px; font-weight:700; margin-bottom:2px; }
.mention { color:#8fb7ff; font-weight:700; background:rgba(124,92,255,.16); border-radius:5px; padding:0 3px; }
.msg.me .mention { color:#fff; background:rgba(255,255,255,.2); }

/* modal */
.modal-overlay { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:20px; background:rgba(4,4,10,.6); backdrop-filter:blur(6px); opacity:0; pointer-events:none; transition:opacity .25s; }
.modal-overlay.open { opacity:1; pointer-events:auto; }
.modal { width:100%; max-width:400px; border-radius:22px; padding:24px 22px; box-shadow:0 24px 60px rgba(0,0,0,.5); transform:translateY(14px) scale(.97); transition:transform .25s cubic-bezier(.2,.9,.3,1.15); }
.modal-overlay.open .modal { transform:none; }
.modal h2 { font-size:19px; font-weight:700; margin-bottom:14px; }
.modal input[type=text] { width:100%; background:rgba(255,255,255,.055); border:1px solid var(--stroke); border-radius:13px; padding:13px 15px; color:var(--txt); font:500 15px 'Inter',sans-serif; outline:none; margin-bottom:14px; }
.modal input[type=text]:focus { border-color:var(--accent1); box-shadow:0 0 0 3px rgba(124,92,255,.22); }
.member-list { max-height:220px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.member-pick { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:13px; background:rgba(255,255,255,.04); border:1px solid transparent; cursor:pointer; font:500 14.5px 'Inter',sans-serif; transition:background .15s; }
.member-pick:has(input:checked) { background:rgba(124,92,255,.16); border-color:rgba(124,92,255,.45); }
.member-pick small { color:var(--dim); font-weight:400; }
.member-pick input { accent-color:var(--accent1); width:17px; height:17px; }
.modal .dim { color:var(--dim); font-size:13.5px; text-align:center; }
.modal-actions { display:flex; gap:10px; }
.modal-actions .btn-primary { flex:1; margin-top:0; }
.btn-ghost { flex:1; border:1px solid var(--stroke); border-radius:14px; padding:14px; cursor:pointer; background:rgba(255,255,255,.05); color:var(--txt); font:600 15px 'Inter',sans-serif; transition:background .2s; }

/* toast */
.toast { position:fixed; left:50%; bottom:88px; transform:translate(-50%,20px); z-index:50; background:#1c1c2b; border:1px solid var(--stroke); color:var(--txt); padding:11px 20px; border-radius:14px; font-size:13.5px; font-weight:500; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; box-shadow:0 12px 30px rgba(0,0,0,.5); }
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (min-width:640px) {
  #homeView .user-list, #homeView .stories-rail, #chatView .messages, #chatView .composer, .topbar { max-width:640px; width:100%; margin-left:auto; margin-right:auto; }
  .topbar { border-radius:0 0 22px 22px; }
  #chatView .composer { margin-bottom:16px; }
}

/* ===== batch 4: media (photos + voice notes) ===== */

/* attach button in composer */
.attach-btn { display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:14px; background:transparent; color:var(--dim); cursor:pointer; transition:color .2s, background .2s, transform .15s; flex:none; }
.attach-btn:active { transform:scale(.88); color:var(--txt); }
.composer { padding-left:8px; }

/* attach bottom sheet */
.attach-option.is-disabled{opacity:.42;cursor:not-allowed;filter:saturate(.4)}
.attach-sheet { position:fixed; left:50%; bottom:calc(env(safe-area-inset-bottom,0px) + 84px); transform:translate(-50%,16px) scale(.95); display:flex; gap:14px; padding:16px 18px; border-radius:24px; box-shadow:0 20px 50px rgba(0,0,0,.5); opacity:0; transition:opacity .22s, transform .22s cubic-bezier(.2,.9,.3,1.15); }
.modal-overlay.open .attach-sheet { opacity:1; transform:translate(-50%,0) scale(1); }
#attachSheet { display:block; place-items:initial; background:transparent; backdrop-filter:none; }
.attach-option { display:flex; flex-direction:column; align-items:center; gap:8px; border:0; background:none; color:var(--txt); font:600 12.5px 'Inter',sans-serif; cursor:pointer; }
.attach-ico { display:grid; place-items:center; width:58px; height:58px; border-radius:20px; color:#fff; box-shadow:0 8px 20px rgba(0,0,0,.35); transition:transform .15s; }
.attach-option:active .attach-ico { transform:scale(.9); }
.attach-ico.photo { background:linear-gradient(135deg,#7c5cff,#4f46e5); }
.attach-ico.voice { background:linear-gradient(135deg,#22c55e,#0d9488); }

/* photo preview modal */
#photoPreview { width:100%; max-height:46vh; object-fit:contain; border-radius:16px; margin-bottom:14px; background:rgba(0,0,0,.3); }

/* voice recorder modal */
.voice-modal { max-width:330px; }
.rec-row { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.rec-dot { width:13px; height:13px; border-radius:50%; background:#ef4444; animation:recPulse 1.1s ease-in-out infinite; flex:none; }
@keyframes recPulse { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(1.35); opacity:.55; } }
.rec-time { font:700 21px 'Inter',sans-serif; font-variant-numeric:tabular-nums; }
.rec-hint { color:var(--dim); font-size:13px; margin-left:auto; }

/* image message bubble */
.msg.has-img { padding:5px; max-width:min(74vw,330px); }
.msg .msg-img { display:block; width:100%; max-width:318px; border-radius:13px; cursor:pointer; }
.msg .media-cap { padding:7px 8px 2px; }
.msg.has-img .meta { padding:0 7px 3px; }

/* voice message bubble */
.voice-bubble { display:flex; align-items:center; gap:10px; min-width:190px; }
.vplay { display:grid; place-items:center; width:38px; height:38px; border:0; border-radius:50%; background:rgba(255,255,255,.18); color:#fff; cursor:pointer; flex:none; transition:transform .15s, background .2s; }
.msg.them .vplay { background:var(--grad); }
.vplay:active { transform:scale(.88); }
.vtrack { flex:1; height:4px; border-radius:4px; background:rgba(255,255,255,.22); overflow:hidden; }
.msg.them .vtrack { background:rgba(255,255,255,.12); }
.vfill { display:block; height:100%; width:0%; border-radius:4px; background:#fff; transition:width .25s linear; }
.msg.them .vfill { background:var(--accent1); }
.vdur { font-size:12px; opacity:.85; font-variant-numeric:tabular-nums; flex:none; }

/* fullscreen image viewer */
.img-viewer { position:fixed; inset:0; z-index:80; display:grid; place-items:center; background:rgba(2,2,8,.92); backdrop-filter:blur(8px); opacity:0; pointer-events:none; transition:opacity .25s; cursor:zoom-out; }
.img-viewer.open { opacity:1; pointer-events:auto; }
.img-viewer img { max-width:94vw; max-height:88vh; border-radius:14px; box-shadow:0 30px 80px rgba(0,0,0,.6); }

/* reply quote inside bubble */
.reply-quote { display:block; border-left:3px solid rgba(255,255,255,.45); background:rgba(0,0,0,.25); border-radius:8px; padding:5px 9px; margin-bottom:5px; font-size:12.5px; }
.msg.them .reply-quote { border-left-color:#7c5cff; background:rgba(124,92,255,.13); }
.reply-quote b { display:block; font-size:11.5px; margin-bottom:1px; }
.reply-quote span { display:block; opacity:.8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:52vw; }

/* deleted tombstone */
.msg.is-deleted { background:rgba(255,255,255,.045) !important; border:1px dashed var(--stroke); box-shadow:none; }
.deleted-body { font-style:italic; opacity:.6; font-size:13.5px; }

/* reactions pill */
.msg:has(.react-pill) { margin-bottom:13px; }
.react-pill { position:absolute; bottom:-12px; right:10px; display:flex; gap:3px; z-index:2; }
.react-pill .chip { background:#191a2b; border:1px solid var(--stroke); border-radius:11px; padding:1px 7px; font-size:12.5px; box-shadow:0 3px 10px rgba(0,0,0,.5); }
.react-pill .chip.mine { border-color:#7c5cff; background:rgba(124,92,255,.25); }

/* context menu */
.ctxmenu { position:fixed; z-index:90; min-width:215px; border-radius:16px; padding:8px; box-shadow:0 18px 50px rgba(0,0,0,.6); animation:msgIn .16s ease backwards; }
.ctx-reacts { display:flex; gap:2px; padding:2px 2px 7px; border-bottom:1px solid var(--stroke); margin-bottom:6px; }
.ctx-reacts button { background:none; border:0; font-size:21px; padding:4px 6px; cursor:pointer; border-radius:10px; transition:transform .12s, background .12s; }
.ctx-reacts button:hover { background:rgba(255,255,255,.09); transform:scale(1.18); }
.ctx-item { display:block; width:100%; text-align:left; background:none; border:0; color:var(--txt); font:500 14px 'Inter',sans-serif; padding:9px 12px; border-radius:11px; cursor:pointer; }
.ctx-item:hover { background:rgba(255,255,255,.08); }
.ctx-item.danger { color:#ff7d92; }

/* reply bar above composer */
.reply-bar { display:flex; align-items:center; gap:10px; margin:8px 12px 0; padding:9px 12px; border-radius:14px; }
.reply-bar-line { width:3px; align-self:stretch; border-radius:2px; background:linear-gradient(135deg,#7c5cff,#4f8cff); }
.reply-bar-body { flex:1; min-width:0; font-size:13px; }
.reply-bar-body b { display:block; font-size:12px; color:#9db4ff; }
.reply-bar-body span { display:block; opacity:.72; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#replyCancel { background:none; border:0; color:var(--dim); font-size:15px; cursor:pointer; padding:6px; }

/* stories rail */
.stories-rail { display:flex; gap:14px; overflow-x:auto; padding:14px 14px 6px; scrollbar-width:none; }
.stories-rail::-webkit-scrollbar { display:none; }
.story-card { display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer; flex:none; width:62px; }
.story-card span { font-size:11px; color:var(--dim); max-width:62px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.story-ring { position:relative; width:56px; height:56px; border-radius:50%; padding:2.5px; display:grid; place-items:center; }
.story-ring.fresh { background:conic-gradient(from 210deg, #7c5cff, #ff5c8a, #ffb35c, #4f8cff, #7c5cff); }
.story-ring.seen { background:rgba(255,255,255,.14); }
.story-ring.empty { background:rgba(255,255,255,.09); border:1.5px dashed rgba(255,255,255,.25); }
.story-ring .avatar { width:100%; height:100%; border:2.5px solid #0c0c16; }
.story-plus { position:absolute; bottom:0; right:0; width:19px; height:19px; border-radius:50%; background:var(--grad); color:#fff; font-size:14px; font-weight:700; display:grid; place-items:center; border:2px solid #0c0c16; line-height:1; }

/* story composer */
.sc-tabs { display:flex; gap:6px; margin-bottom:12px; }
.sc-tab { flex:1; padding:8px; border:1px solid var(--stroke); background:none; color:var(--dim); border-radius:11px; font:600 13.5px 'Inter',sans-serif; cursor:pointer; }
.sc-tab.active { background:rgba(124,92,255,.16); border-color:#7c5cff; color:var(--txt); }
.sc-preview { border-radius:14px; min-height:120px; display:grid; place-items:center; padding:18px; margin-bottom:10px; text-align:center; }
.sc-preview span { color:#fff; font:600 16px/1.5 'Inter',sans-serif; word-break:break-word; text-shadow:0 1px 8px rgba(0,0,0,.3); }
#scText, #scCaption { width:100%; background:rgba(255,255,255,.055); border:1px solid var(--stroke); border-radius:12px; padding:11px 13px; color:var(--txt); font:500 14.5px 'Inter',sans-serif; outline:none; resize:none; margin-bottom:10px; }
#scText:focus, #scCaption:focus { border-color:var(--accent1); }
.sc-bgs { display:flex; gap:8px; margin-bottom:4px; }
.sc-bg { width:30px; height:30px; border-radius:50%; border:2px solid transparent; cursor:pointer; }
.sc-bg.sel { border-color:#fff; transform:scale(1.12); }
.sc-photo-preview { border-radius:14px; overflow:hidden; margin-bottom:10px; }
.sc-photo-preview img { width:100%; max-height:240px; object-fit:cover; display:block; }
.sc-actions { display:flex; gap:9px; justify-content:flex-end; margin-top:6px; }
.sc-btn { padding:10px 20px; border:0; border-radius:13px; background:var(--grad); color:#fff; font:600 14px 'Inter',sans-serif; cursor:pointer; box-shadow:0 4px 14px rgba(96,110,255,.35); }
.sc-btn.ghost { background:rgba(255,255,255,.07); box-shadow:none; border:1px solid var(--stroke); }
.sc-btn:disabled { opacity:.5; }

/* story viewer */
.story-viewer { position:fixed; inset:0; z-index:80; background:#06060d; display:flex; flex-direction:column; }
.sv-progress { display:flex; gap:4px; padding:calc(env(safe-area-inset-top,0px) + 10px) 10px 6px; }
.sv-seg { flex:1; height:3px; border-radius:2px; background:rgba(255,255,255,.22); overflow:hidden; }
.sv-seg i { display:block; height:100%; width:0; background:#fff; border-radius:2px; }
.sv-seg i.done { width:100%; }
.sv-head { display:flex; align-items:center; gap:10px; padding:6px 14px 10px; }
.sv-meta { flex:1; display:flex; flex-direction:column; }
.sv-meta b { font-size:14.5px; }
.sv-meta span { font-size:11.5px; color:rgba(255,255,255,.55); }
.sv-icon { background:rgba(255,255,255,.09); border:0; color:#fff; width:34px; height:34px; border-radius:50%; font-size:14px; cursor:pointer; }
.sv-body { flex:1; display:grid; place-items:center; overflow:hidden; position:relative; }
.sv-img { max-width:100%; max-height:100%; object-fit:contain; }
.sv-cap { position:absolute; bottom:34px; left:0; right:0; text-align:center; color:#fff; font-size:15px; text-shadow:0 1px 10px rgba(0,0,0,.8); padding:0 22px; }
.sv-text { position:absolute; inset:0; display:grid; place-items:center; padding:36px; }
.sv-text span { color:#fff; font:600 23px/1.55 'Inter',sans-serif; text-align:center; word-break:break-word; text-shadow:0 1px 10px rgba(0,0,0,.3); }
.sv-foot { min-height:38px; display:flex; align-items:center; justify-content:center; padding-bottom:calc(env(safe-area-inset-bottom,0px) + 6px); }
.sv-views { color:rgba(255,255,255,.75); font-size:13px; }
.sv-tap { position:absolute; top:90px; bottom:50px; left:0; width:34%; background:none; border:0; cursor:pointer; z-index:2; }
.sv-tap.right { left:auto; right:0; width:34%; }

/* multi-photo strip */
.photo-strip { display:flex; gap:8px; overflow-x:auto; padding:4px 2px; margin-top:10px; }
.photo-strip.hidden { display:none; }
.strip-thumb { width:56px; height:56px; object-fit:cover; border-radius:12px; cursor:pointer; opacity:.6; border:2px solid transparent; transition:opacity .15s, border-color .15s; flex-shrink:0; }
.strip-thumb.sel { opacity:1; border-color:var(--acc,#7c5cff); }

/* group info */
.modal-sub { color:var(--dim); font-size:14px; margin:-6px 0 12px; }
.gi-members { max-height:180px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.gi-member { padding:9px 12px; border-radius:12px; background:rgba(255,255,255,.04); font-size:14.5px; display:flex; justify-content:space-between; align-items:center; }
.gi-member span { color:var(--dim); font-size:12px; }
.btn-ghost.wide { width:100%; margin-bottom:10px; }
.btn-ghost.danger { color:#ff6b81; }

/* Public channels */
.home-nav { display:flex; padding:10px 14px 0; gap:8px; }
.home-nav button { padding:8px 16px; border-radius:20px; font-size:13px; }
.channel-about { color:var(--dim); padding:12px 18px; font-size:13px; line-height:1.5; white-space:pre-wrap; }
.channel-updates { flex:1; overflow:auto; padding:10px 14px 24px; display:flex; flex-direction:column; gap:12px; }
.channel-update { padding:16px; border:1px solid var(--stroke); border-radius:18px; background:rgba(255,255,255,.045); }
.channel-update p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; font-size:14px; }
.channel-update img { width:100%; max-height:350px; object-fit:contain; border-radius:12px; margin-bottom:10px; }
.channel-update footer { margin-top:12px; display:flex; align-items:center; gap:10px; color:var(--dim); font-size:11px; }
.channel-like { border:1px solid var(--stroke); color:var(--txt); background:transparent; border-radius:20px; padding:5px 12px; cursor:pointer; }
.channel-like.mine { color:#ff8eb1; background:rgba(255,92,138,.12); border-color:rgba(255,92,138,.35); }
.channel-composer { padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); border-radius:20px 20px 0 0; }
.channel-composer textarea { resize:vertical; min-height:65px; max-height:150px; width:100%; color:var(--txt); background:rgba(255,255,255,.04); border:1px solid var(--stroke); border-radius:12px; padding:12px; font:14px 'Inter',sans-serif; }
#channelPhotoPreview { max-width:130px; max-height:80px; border-radius:10px; }
#channelFollow { padding:8px 12px; font-size:12px; }
.channel-row { width:100%; color:var(--txt); text-align:left; font-family:inherit; }
#channelFollow { flex:none; }
.broadcast-members { max-height:36vh; overflow:auto; margin:12px 0; display:flex; flex-direction:column; gap:5px; }
.broadcast-members label { display:flex; gap:10px; align-items:center; padding:9px 8px; color:var(--txt); font-size:13px; background:rgba(255,255,255,.03); border-radius:10px; }
.broadcast-members small { color:var(--dim); }
#broadcastText { width:100%; min-height:100px; max-height:200px; resize:vertical; color:var(--txt); background:rgba(255,255,255,.05); border:1px solid var(--stroke); border-radius:12px; font:14px 'Inter',sans-serif; padding:12px; margin:8px 0 16px; }
/* Keep message actions legible over bright media and outgoing bubbles. */
.ctxmenu.glass { background:rgba(23,22,39,.97); border:1px solid rgba(255,255,255,.15); backdrop-filter:blur(18px); }
.ctx-reacts button { color:var(--txt); }
#giSuccessorWrap { display:block; color:var(--dim); font-size:12px; margin:8px 0 12px; }
#giSuccessor { display:block; width:100%; margin-top:6px; padding:10px; border:1px solid var(--stroke); border-radius:12px; background:#201d35; color:var(--txt); }
.broadcast-tools { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.broadcast-tools button { padding:8px 10px; font-size:12px; }
#broadcastPhotoPreview { max-width:150px; max-height:100px; border-radius:12px; }
#broadcastPhotoWrap { margin-bottom:12px; }
#giLeaveNote { margin-top:10px; }
.msg-video { display:block; width:100%; max-width:280px; max-height:360px; border-radius:12px; background:#000; }
#videoPreview { width:100%; max-height:38vh; border-radius:14px; margin-bottom:14px; background:#000; }
#videoStatus { line-height:1.5; min-height:22px; margin-top:8px; }

/* Calling: separate, deliberate permission surface. */
.call-eyebrow {color:#b9a9ff;letter-spacing:.12em;font-size:10px;font-weight:700;margin-bottom:12px;}
.call-start-buttons {display:flex;gap:10px;margin:18px 0 8px;}.call-start-buttons button {flex:1;}
#chatView .topbar {gap:8px;}#chatView .topbar .icon-btn {flex-shrink:0;width:36px;height:38px;}
.call-overlay {position:fixed;inset:0;z-index:120;display:flex;align-items:center;flex-direction:column;padding:calc(env(safe-area-inset-top,0px) + 30px) 22px calc(env(safe-area-inset-bottom,0px) + 28px);background:radial-gradient(ellipse at 50% 20%,#332551 0%,#100f1d 60%);overflow:auto;}
.call-overlay header {text-align:center;flex:none;}.call-overlay h1 {font-size:26px;max-width:90vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.call-overlay #callStatus {color:#c8c2d6;margin:12px 0;font-size:14px;}
.call-stage {position:relative;flex:1;min-height:180px;max-height:65vh;width:100%;max-width:680px;display:grid;place-items:center;margin:12px 0;border-radius:24px;overflow:hidden;}
.call-avatar {display:grid;place-items:center;width:120px;height:120px;font-size:48px;font-weight:700;border-radius:40px;background:linear-gradient(135deg,#8a62ff,#4c88e2);box-shadow:0 0 90px #8a62ff40;}
#callRemote:not(.hidden) {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#0b0b12;}
#callLocal {position:absolute;bottom:12px;right:12px;width:28%;max-width:140px;min-height:80px;border-radius:16px;object-fit:cover;border:2px solid #ffffff30;transform:scaleX(-1);}
.call-note {color:#a49db8;font-size:11px;text-align:center;margin:12px 0 24px;}.call-controls {display:flex;justify-content:center;gap:12px;flex-wrap:wrap;}.call-controls button {border:1px solid #ffffff20;border-radius:18px;background:#ffffff14;color:white;min-height:54px;padding:12px 20px;font:600 13px Inter,sans-serif;}.call-controls .call-end {background:#d34567;}.call-controls .call-accept {background:#167f6e;}.call-controls button[aria-pressed=true] {background:#7660ba;}
.call-history {max-height:85dvh;overflow:auto;}.call-history-row {padding:14px 0;border-bottom:1px solid #ffffff12;}.call-history-row b,.call-history-row span,.call-history-row small {display:block;}.call-history-row span {color:#c7c0d9;font-size:12px;margin:6px 0;}.call-history-row small {color:#a69dbb;font-size:10px;}#callHistoryClose {margin-top:16px;}
.call-history {display:flex;flex-direction:column;overflow:hidden;}
#callHistoryList {overflow:auto;min-height:0;}
.call-history h2,.call-history>p,#callHistoryClose {flex:none;}

.chat-filters {display:flex;gap:8px;padding:10px 14px;overflow-x:auto;flex:none;}.chat-filters button {border:1px solid #ffffff15;border-radius:20px;padding:8px 14px;background:#ffffff07;color:#bdb6cf;white-space:nowrap;font:600 12px Inter,sans-serif;}.chat-filters .selected {background:#8b65ff2d;color:#d5c5ff;border-color:#9e7cff66;}
.chat-options {display:grid;gap:8px;margin-bottom:16px;}.chat-options button {text-align:left;}.blocked-banner {padding:12px 18px;background:#6b294a44;color:#ffbfd6;font-size:12px;line-height:1.6;flex:none;}.star-tag {color:#ffd47b;margin-right:5px;}.star-row {display:block;width:100%;border:0;border-bottom:1px solid #ffffff18;padding:14px 0;background:none;color:#e4dcf5;text-align:left;font:13px Inter,sans-serif;overflow-wrap:anywhere;}#starsList,#blockedList {max-height:45vh;overflow:auto;}#blockedList button {display:block;}
@media(min-width:700px){.chat-filters{max-width:640px;width:100%;margin:auto;}}

#loadOlderBtn {flex:none;font-size:12px;padding:10px;margin:4px 20px;background:#ffffff08;border-radius:12px;}

.export-format-label {display:grid;gap:8px;font-size:13px;margin:16px 0;}#exportFormat {padding:12px;background:#292239;border:1px solid #ffffff20;color:#ede9f5;border-radius:12px;font:14px Inter,sans-serif;}.export-media-label {display:flex;align-items:start;gap:10px;font-size:12px;line-height:1.6;margin:12px 0 20px;}.export-media-label input {margin-top:3px;}#exportStatus {min-height:20px;}

.home-nav {overflow-x:auto;flex-shrink:0;}.home-nav button {white-space:nowrap;flex-shrink:0;}.privacy-toggle {display:flex;gap:18px;justify-content:space-between;align-items:start;margin:20px 0;font-size:14px;}.privacy-toggle span {flex:1;}.privacy-toggle small {display:block;font-size:11px;line-height:1.5;color:#b4abc5;margin-top:7px;}.privacy-toggle input {margin-top:3px;width:18px;height:18px;accent-color:#8b6bff;}#privacyStatus {min-height:20px;}

.document-download {display:grid;grid-template-columns:30px 1fr;gap:6px 8px;align-items:center;max-width:260px;width:100%;text-align:left;border:1px solid #ffffff18;border-radius:13px;padding:12px;background:#00000018;color:inherit;font:13px Inter,sans-serif;}.document-download span {grid-row:span 2;font-size:24px;color:#c1b0ff;}.document-download b {font-weight:600;overflow-wrap:anywhere;min-width:0;}.document-download small {font-size:10px;opacity:.75;}.attach-sheet {max-height:85dvh;overflow:auto;}

#groupInfoModal .modal,#groupEditModal .modal {max-height:90dvh;overflow:auto;}#groupEditDescription {width:100%;resize:vertical;max-height:160px;padding:10px;background:#ffffff08;color:var(--txt);border:1px solid var(--stroke);border-radius:10px;font:13px Inter,sans-serif;}#groupEditSendMode {background:#292239;color:#ede9f5;border:1px solid #ffffff20;padding:12px;border-radius:12px;}.group-photo-preview img {display:block;width:70px;height:70px;object-fit:cover;border-radius:22px;margin:12px 0;}.group-photo-tools {display:flex;gap:8px;margin-bottom:12px;}

:root[data-theme=ocean]{--bg:#07131b;--accent1:#20bba5;--accent2:#468ef3;--grad:linear-gradient(135deg,#159d9a,#417deb);--panel:rgba(120,200,220,.055);}
:root[data-theme=rose]{--bg:#180d17;--accent1:#dc72aa;--accent2:#9670e3;--grad:linear-gradient(135deg,#bd6194,#8367d7);--panel:rgba(230,150,200,.05);}
:root[data-theme=graphite]{--bg:#101115;--accent1:#8a94af;--accent2:#637499;--grad:linear-gradient(135deg,#77849f,#536487);--panel:rgba(200,210,240,.045);}
:root[data-theme=ocean] .o1{background:#159d9a;}:root[data-theme=rose] .o1{background:#bd6194;}:root[data-theme=graphite] .orb{opacity:.08;}
.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
.theme-choices {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0;}.theme-choices button {border:1px solid #ffffff20;border-radius:14px;padding:18px 12px;background:#ffffff08;color:var(--txt);font:600 12px Inter,sans-serif;}.theme-choices button.selected {border-color:#c0a4ff;background:#9874ff30;}
#messages[data-wallpaper=dots]{background-image:radial-gradient(circle,#afa0f526 1px,transparent 1.6px);background-size:22px 22px;}
#messages[data-wallpaper=mist]{background:radial-gradient(ellipse at top left,#a36fe72d,transparent 65%),radial-gradient(ellipse at bottom right,#698ae02b,transparent 65%);}
#messages[data-wallpaper=leaves]{background:repeating-linear-gradient(135deg,#3b867c0a 0,#3b867c0a 14px,transparent 14px,transparent 28px),radial-gradient(ellipse at 20% 50%,#1d675429,transparent 70%);}
#emojiBtn{width:24px;min-width:24px;flex-shrink:0;font-size:22px;color:#bab0d2;padding:0;}.composer{gap:7px;}.emoji-choices{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;max-height:50vh;overflow:auto;margin:16px 0;}.emoji-choices button{border:0;border-radius:12px;background:#ffffff08;font-size:25px;padding:8px 0;}
.notes-modal{max-height:85dvh;display:flex;flex-direction:column;}#notesList{min-height:0;overflow:auto;margin:10px 0;}.note-row{display:block;width:100%;text-align:left;border:1px solid #ffffff12;background:#ffffff06;color:var(--txt);padding:14px;border-radius:14px;margin-bottom:9px;}.note-row b,.note-row span{display:block;overflow-wrap:anywhere;}.note-row b{font:600 14px Inter,sans-serif;}.note-row span{font:12px/1.5 Inter,sans-serif;color:var(--dim);margin-top:7px;white-space:pre-wrap;}#noteBody{width:100%;max-height:35vh;resize:vertical;padding:12px;border-radius:12px;background:#ffffff08;border:1px solid var(--stroke);color:var(--txt);font:14px/1.5 Inter,sans-serif;}.note-tools{margin:10px 0;}#noteEditModal .modal{max-height:90dvh;overflow:auto;}

.poll-card{min-width:200px;max-width:300px;}.poll-label{font-size:8px;letter-spacing:.13em;opacity:.7;margin:2px 0 10px;}.poll-question{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:12px;}.poll-card>small{font-size:9px;opacity:.7;}.poll-option{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;border:1px solid #ffffff30;background:linear-gradient(90deg,#ffffff20 var(--vote-fill),#ffffff05 var(--vote-fill));border-radius:11px;color:inherit;padding:11px;margin-bottom:8px;text-align:left;font:12px/1.4 Inter,sans-serif;}.poll-option.chosen{border-color:#d8ccff;}.poll-option span{overflow-wrap:anywhere;min-width:0;}.poll-option b{font-size:9px;white-space:nowrap;opacity:.8;}.poll-footer{font-size:10px;opacity:.8;padding:2px 0 8px;}.poll-undo{font-size:10px;padding:5px 0;}#pollModal .modal{max-height:90dvh;overflow:auto;}

.poll-voters{font-size:10px;line-height:1.6;margin:8px 0;}.poll-voters p{padding:4px 0;overflow-wrap:anywhere;}.poll-voters summary{cursor:pointer;color:inherit;}

.library-modal{max-height:88dvh;display:flex;flex-direction:column;}.library-tabs{display:flex;gap:8px;margin:8px 0 14px;}.library-tabs button{flex:1;background:#ffffff08;border:1px solid var(--stroke);color:var(--txt);border-radius:12px;padding:11px;font:600 12px Inter,sans-serif;}.library-tabs button.selected{background:#8c72ee30;border-color:#b7a0ed;}#libraryList{overflow:auto;min-height:0;margin-bottom:12px;}.library-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;}.library-item{display:block;width:100%;border:1px solid #ffffff15;border-radius:13px;padding:11px;background:#ffffff06;color:var(--txt);text-align:left;margin-bottom:9px;overflow:hidden;}.library-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px;display:block;margin-bottom:8px;}.library-item b,.library-item span{display:block;overflow-wrap:anywhere;}.library-item b{font:600 12px/1.5 Inter,sans-serif;}.library-item span{font:10px/1.5 Inter,sans-serif;color:var(--dim);margin-top:5px;}.library-icon{height:65px;display:grid;place-items:center;font-size:32px;color:#b5a4ee;}.library-found{outline:2px solid var(--accent1);outline-offset:3px;}

.library-grid{align-content:start;grid-auto-rows:max-content;}.library-item{min-height:fit-content;flex-shrink:0;}#libraryList>.modal-sub{margin:8px 0;}.library-modal>h2,.library-modal>.modal-sub,.library-tabs,.library-modal>#libraryClose{flex-shrink:0;}

@font-face{font-family:'Nymvo Emoji';src:url('../fonts/baatein-emoji.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap;}
#emojiChoices button{font-family:'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;color:var(--txt);}

.msg,.deleted-body,.reaction-pill,#emojiBtn,#toast{font-family:Inter,'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}

#voicePreview{width:100%;margin:10px 0 18px;}#voiceStatus{line-height:1.5;margin:5px 0 16px;}.voice-modal .modal-actions{flex-wrap:wrap;}#voiceConfirmSend{margin-top:0;flex:1;}

.pinned-banner{display:block;width:100%;border:0;border-bottom:1px solid var(--stroke);border-left:3px solid var(--accent1);padding:10px 15px;text-align:left;background:#a58be512;color:var(--txt);font:12px/1.4 Inter,sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;}.pin-content{max-height:35vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#ffffff08;border-left:3px solid var(--accent1);border-radius:10px;padding:14px;margin:12px 0 18px;font:14px/1.6 Inter,sans-serif;}#pinJump{margin:0 0 12px;}#pinModal .modal{max-height:90dvh;overflow:auto;}#pinStatus{line-height:1.5;}

.ctxmenu{max-height:calc(100dvh - 24px);overflow:auto;}.selection-bar{display:flex;align-items:center;gap:8px;padding:9px 12px;flex-shrink:0;border-bottom:1px solid var(--stroke);}.selection-bar span{font:600 12px Inter,sans-serif;flex:1;}.selection-bar button{border:1px solid var(--stroke);border-radius:9px;background:#ffffff0b;color:var(--txt);font:11px Inter,sans-serif;padding:9px 7px;}.msg.is-selecting{cursor:pointer;}.msg.is-selected{outline:2px solid #c9b8ff;outline-offset:2px;box-shadow:0 0 0 6px #a788f326;}.msg.is-selecting::before{content:'○';display:block;font-size:14px;line-height:1;margin-bottom:6px;opacity:.7;}.msg.is-selected::before{content:'✓ selected';font:600 9px Inter,sans-serif;}

#storyComposer .modal{max-height:90dvh;overflow:auto;}#storyComposer .modal-sub{font-size:12px;line-height:1.5;margin:0 0 15px;}

.sv-reply{position:relative;z-index:3;flex-shrink:0;margin:8px 18px 2px;padding:13px;border:1px solid rgba(255,255,255,.23);border-radius:22px;background:rgba(255,255,255,.09);color:#fff;font:600 13px 'Inter',sans-serif;cursor:pointer}.sv-reply:disabled{opacity:.4;cursor:not-allowed}

.sv-text span,.sv-cap,.reply-quote{font-family:Inter,'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}

#replyText{font-family:Inter,'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}.contact-card{text-align:center;overflow-y:auto;max-height:calc(100dvh - 24px)}.contact-card canvas{display:block;width:min(100%,224px);height:auto;margin:12px auto 18px;border-radius:12px;image-rendering:pixelated;}.contact-card .modal-sub{margin-top:9px}.contact-card>.btn-ghost{margin-top:12px}

.boot-status{font-size:12px;line-height:1.4;color:var(--dim);margin-top:10px}.boot-status:empty{display:none}
.auth-card{max-height:calc(100dvh - 40px);overflow-y:auto;flex-shrink:0;}

.photo-edit-tools{display:flex;gap:5px;margin:9px 0;flex-wrap:wrap}.photo-edit-tools button{padding:9px 11px;font-size:12px}.photo-crop-box{width:100%;aspect-ratio:1;overflow:hidden;border-radius:16px;margin:12px 0;background:#080810}.photo-crop-box img{width:100%;height:100%;object-fit:cover}#photoCropPosition{width:100%;accent-color:var(--accent1);margin:12px 0}#photoCropModal{z-index:62}.photo-modal{overflow-y:auto;max-height:calc(100dvh - 24px)}
#chatOptionsModal>.modal{max-height:calc(100dvh - 40px);overflow-y:auto;}

.message-link{color:#a9c8ff;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.message-link:focus-visible{outline:2px solid #a9c8ff;outline-offset:3px}#locationModal>.modal{max-height:calc(100dvh - 40px);overflow-y:auto}#locationFixInfo{margin:14px 0;overflow-wrap:anywhere}#locationModal .modal-sub{font-size:12px;line-height:1.5}

.forward-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;padding:12px;border:1px solid var(--stroke);border-radius:12px;font-size:14px;line-height:1.5}.channel-forward{background:rgba(124,92,255,.15);color:var(--txt);border:1px solid var(--stroke);border-radius:10px;padding:8px 10px}.channel-update footer{flex-wrap:wrap}.fwd-modal{max-height:90dvh;overflow-y:auto}

.fwd-row{width:100%;color:var(--txt);text-align:left;font:inherit}.fwd-row:focus-visible{outline:2px solid #9a87ff;outline-offset:-3px}

.channel-delete{background:transparent;border:1px solid var(--stroke);border-radius:10px;padding:8px 10px;color:#ff7797;cursor:pointer}

#notesSearch{width:100%;padding:12px;color:var(--txt);font:14px Inter,sans-serif;background:#ffffff08;border:1px solid var(--stroke);border-radius:12px;margin:12px 0 4px}#notesSearch:focus{outline:2px solid var(--accent1);outline-offset:2px}#installModal .modal{max-height:calc(100dvh - 40px);overflow-y:auto}#installModal details{margin:14px 0;font-size:13px;line-height:1.5}#installModal summary{cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#notesSearchCount{margin:8px 0 4px;flex-shrink:0}.notes-modal>h2,.notes-modal>.modal-sub,.notes-modal>button,.notes-modal>input{flex-shrink:0}

#photoStatus:not(:empty){margin:8px 0 12px;line-height:1.4}

.unconfirmed-texts-btn{color:#ffd38b;background:#6b401a66;border:1px solid #d69d4b55;border-radius:10px;padding:10px;margin:4px 12px;font:600 12px Inter,sans-serif}.unconfirmed-row{border:1px solid var(--stroke);padding:12px;border-radius:12px;margin-bottom:12px}.unconfirmed-row>p:not(.modal-sub){white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5;margin:10px 0}.unconfirmed-row button{margin:4px;font-size:12px;padding:10px}#unconfirmedTextsModal .modal{max-height:90dvh;overflow:auto}#unconfirmedTextsList{margin:16px 0}.unconfirmed-row .modal-sub{margin:0}
.language-control{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:12px 0}.language-control select{min-width:120px;max-width:180px;background:#171625;color:var(--txt);border:1px solid var(--stroke);border-radius:12px;padding:9px 12px;font:inherit;min-height:40px}.language-control select:focus{outline:2px solid var(--accent1);outline-offset:2px}.home-language{padding:0 18px}.home-language .language-control{margin:4px 0}.language-note{font-size:10px;line-height:1.6;color:var(--muted);text-align:center;margin:12px 0}html[lang=hi] .btn-primary,html[lang=hi] .btn-ghost{line-height:1.55}html[lang=hi] .auth-note{line-height:1.8}
.service-notice{flex-shrink:0;background:#3c2d19;color:#ffdfad;border:1px solid #8a642f;border-radius:10px;padding:10px 12px;margin:6px 10px;font-size:11px;line-height:1.65;overflow-wrap:anywhere}.service-notice[hidden]{display:none}.auth-card .service-notice{margin:12px 0}

/* Preserve content direction independently of the interface and timestamp controls. */
.message-text,.media-cap,.reply-quote span,.sender {text-align:start;unicode-bidi:plaintext;overflow-wrap:anywhere;}
#msgInput,#chatSearchInput,#signupName,#pfName,#pfAbout,#noteBody,#noteTitle {text-align:start;}
.message-text,.media-cap,#msgInput,#chatSearchInput,#signupName,#pfName,#pfAbout {font-family:Inter,'Noto Sans','Noto Sans Devanagari','Noto Naskh Arabic','Noto Sans Bengali','Noto Sans Tamil','Noto Sans Telugu','Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}
@font-face{font-family:'Nymvo Korean';src:url('../fonts/noto-sans-kr.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+1100-11FF,U+3130-318F,U+A960-A97F,U+AC00-D7AF,U+D7B0-D7FF;}
.message-text,.media-cap,#msgInput,#chatSearchInput{font-family:Inter,'Nymvo Korean','Noto Sans','Noto Sans Devanagari','Noto Naskh Arabic','Noto Sans Bengali','Noto Sans Tamil','Noto Sans Telugu','Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}
/* Native-language emoji sequences use the full bundled font when system fonts lack them. */
.message-text,.media-cap,#msgInput,#chatSearchInput{font-family:Inter,'Nymvo Korean','Nymvo Emoji','Noto Sans','Noto Sans Devanagari','Noto Naskh Arabic','Noto Sans Bengali','Noto Sans Tamil','Noto Sans Telugu','Apple Color Emoji','Segoe UI Emoji',sans-serif;}
/* Heavy optional fonts are NOT precached. CSS loads them only for missing glyphs. */
@font-face{font-family:'Nymvo Full Emoji';src:url('../fonts/emoji-full.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+200D,U+20E3,U+2300-23FF,U+2600-27BF,U+FE0F,U+1F000-1FAFF;}
.message-text,.media-cap,#msgInput,#chatSearchInput{font-family:Inter,'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji','Noto Sans','Noto Sans Devanagari','Noto Naskh Arabic','Noto Sans Bengali','Noto Sans Tamil','Noto Sans Telugu','Nymvo Korean','Nymvo Full Emoji',sans-serif;}
/* v4.92 review candidate: focused chat shell, no GPU-heavy ambient effects. */
:root{--bg:#10121a;--panel:#181b27;--stroke:#2b2f40;--txt:#f6f4ff;--dim:#a2a8bd;--accent1:#9a85ff;--accent2:#8270ed;--grad:linear-gradient(120deg,#8e77f7,#7764da);}
body{background:#0c0e15;letter-spacing:-.015em;}
.bg-orbs{display:none}.orb{animation:none;filter:none;}
.glass{background:#181b27;backdrop-filter:none;-webkit-backdrop-filter:none;}
.view{background:var(--bg);transform:none;transition:opacity .12s ease;}
.modal-overlay{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(4,6,12,.78);}
.modal{box-shadow:0 24px 70px #0006;border-radius:22px;border-color:#34394c;}
.auth-card{border-radius:24px;background:#171a25;box-shadow:0 24px 80px #0004;padding:30px 26px 24px;animation:none;}
.brand-logo{width:60px;height:60px;border-radius:18px;box-shadow:none}.brand h1{font-size:29px;letter-spacing:-1px;color:#f6f2ff;background:none;}.brand{margin-bottom:24px}.tagline{margin-top:6px;line-height:1.5;}
.auth-form input,.pf-input{background:#202432;border-color:#34394c;min-height:48px;}.auth-form label{color:#c2c8d9;font-weight:500;}.auth-form small{font-size:11px;line-height:1.6;opacity:.9;}
.btn-primary{box-shadow:none;border-radius:12px;letter-spacing:0;min-height:46px;font-weight:600;}.btn-ghost{min-height:44px;border-radius:12px;box-shadow:none;}
.auth-tabs{border-radius:12px;background:#232737;}.tab-ink{border-radius:9px}.auth-error:empty{display:none}.language-note{font-size:11px;line-height:1.6;color:var(--dim);margin-top:20px}.auth-note{font-size:11px;line-height:1.6;margin-top:10px;}
.screen-eyebrow{font:600 10px/1.4 Inter,sans-serif;letter-spacing:.15em;color:#9c92c2;padding:22px 22px 0;flex-shrink:0;}
.topbar{background:transparent!important;border:0;border-radius:0;gap:10px;padding:14px 18px 16px;flex-shrink:0;}
#homeView>.topbar{padding-top:8px;}.topbar-title h1{font-size:27px;letter-spacing:-1px;font-weight:700;}.topbar-title p{font-size:12px;line-height:1.65;color:var(--dim);}.topbar-title .screen-eyebrow{padding:0;margin-bottom:7px;font-size:9px;}
.icon-btn{width:42px;height:42px;min-width:42px;background:#202433;border:1px solid #30364a;border-radius:13px;}.icon-btn:hover{background:#292f43}.icon-btn:focus-visible,button:focus-visible{outline:2px solid #b3a3ff;outline-offset:3px;}
#homeView,#statusView,#channelsView,#settingsView{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px));}
.home-search{padding:0 18px 12px;}.home-search input{width:100%;border:1px solid var(--stroke);background:#1b1f2d;padding:13px 15px;border-radius:12px;color:var(--txt);font:14px Inter,sans-serif;}
.chat-filters{padding:0 18px 12px;gap:6px;overflow:hidden;min-height:44px;flex-shrink:0;margin:0;max-width:none;}.chat-filters button{min-width:0;min-height:34px;padding:8px 11px;border:0;border-radius:9px;font:500 11px Inter,sans-serif;color:#a4abc2;background:transparent;}.chat-filters button.selected{background:#9a85ff1c;color:#c8bcff;border:0;}
.user-list{padding:0 12px 20px;gap:0;}.user-list:empty{display:none;}.user-row{border-radius:0;background:none;border:0;border-bottom:1px solid #ffffff08;padding:16px 8px;gap:12px;animation:none!important;min-height:85px;}.user-row:hover{background:#ffffff04}.user-meta .name{font-size:15px;font-weight:600;line-height:1.5}.user-meta .preview{font-size:12px;margin-top:4px;line-height:1.5}.user-side .time{font-size:10px;}.avatar{width:50px;height:50px;border-radius:18px;font-size:18px;}.avatar.sm{border-radius:50%;}.avatar .dot{width:11px;height:11px;right:0;bottom:0;border-width:2px;}.user-side .unread{background:#a895ff;color:#151021;font-size:10px;min-width:18px;height:18px;}
.empty-state{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:34px 30px;text-align:center;min-height:240px;}.empty-state h2{color:#eeeafa;font-size:21px;line-height:1.35;letter-spacing:-.6px;max-width:270px;margin:0 auto;}.empty-state p{font-size:13px;line-height:1.7;max-width:260px;margin:0 auto;}.empty-state .btn-primary{margin-top:10px;padding:13px 23px;font-size:13px;align-self:center;}.empty-art{position:relative;display:grid;place-items:center;width:84px;height:84px;margin:0 auto 10px;background:#232439;border:1px solid #3d3856;border-radius:29px;transform:rotate(-7deg);box-shadow:10px 12px 0 #1a1c2c;}.empty-art svg{width:37px;height:37px;color:#c6b7ff;transform:rotate(7deg)}.empty-art span{position:absolute;right:-8px;top:-8px;color:#dbd1ab;font-size:28px;}
.bottom-nav{position:fixed;z-index:9;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;padding:9px 8px calc(10px + env(safe-area-inset-bottom,0px));background:#181c29;border-top:1px solid #303548;box-shadow:0 -8px 28px #080a101c;}.nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:52px;padding:5px 2px;border:0;background:transparent;color:#8c95b0;font:500 10px Inter,sans-serif;cursor:pointer;}.nav-item svg{width:22px;height:22px;stroke-width:1.7;}.nav-item.selected{color:#c4b7ff}.nav-item.selected:before{content:'';position:absolute;top:-9px;width:24px;height:3px;background:#ae9aff;border-radius:0 0 5px 5px;}
.settings-scroll{overflow:auto;padding:4px 18px 24px;}.settings-profile{width:100%;display:flex;align-items:center;gap:12px;padding:18px 0;border:0;border-bottom:1px solid var(--stroke);background:transparent;color:var(--txt);text-align:left;}.settings-profile>span:nth-child(2){flex:1}.settings-profile b{display:block;font:600 17px Inter,sans-serif;}.settings-profile small{display:block;font:12px/1.6 Inter,sans-serif;color:var(--dim);margin-top:5px}.settings-avatar{display:grid;place-items:center;width:53px;height:53px;border-radius:18px;background:#37304e;color:#c7b6ff;}.settings-heading{margin:25px 0 10px;font:600 10px Inter,sans-serif;color:#969fbc;text-transform:uppercase;letter-spacing:.12em;}.settings-group{border:1px solid #2b3042;border-radius:14px;overflow:hidden;background:#191d2b;}.settings-group>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;min-height:49px;background:transparent;color:var(--txt);border:0;border-bottom:1px solid #ffffff08;border-radius:0;text-align:left;font:500 13px Inter,sans-serif;}.settings-group>button:after{content:'›';font-size:20px;color:#8089a4}.settings-group>.settings-logout{color:#f899a6}.settings-group .home-language{padding:14px 16px}.settings-group .language-control{margin:0;width:100%;}.settings-footnote{text-align:center;font-size:11px;line-height:1.7;color:#7d86a0;margin-top:28px;}
.status-intro{margin:4px 18px 18px;padding:24px 20px;border:1px solid #40374e;border-radius:20px;background:linear-gradient(130deg,#30283f,#1c2234);}.status-intro h2{font-size:23px;letter-spacing:-.6px;line-height:1.3}.status-intro p{font-size:12px;line-height:1.7;color:#b6b3c7;margin-top:10px;}.section-heading{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#949db6;margin:26px 22px 10px;}#statusCreateSlot{padding:0 18px;}#statusCreateSlot button{width:100%;background:#28243d;color:#cfc3ff;border:1px solid #463960;font-size:13px;}
#statusView{overflow:auto;}#statusRailSlot .stories-rail{display:flex;flex-direction:column;align-items:stretch;padding:0 18px;gap:0;overflow:visible;max-width:none;border:0;}#statusRailSlot .story-card{width:100%;display:flex;align-items:center;gap:14px;flex-direction:row;padding:14px 0;border-bottom:1px solid #ffffff08;}#statusRailSlot .story-card>span{font-size:14px;font-weight:500;max-width:none;text-align:left;}#statusRailSlot .story-ring{width:55px;height:55px;padding:3px;}#statusRailSlot .story-ring .avatar{width:45px;height:45px;border-radius:50%;}.status-empty{padding:30px 22px;color:var(--dim);font-size:13px;line-height:1.7;text-align:center;}
.messages{background:radial-gradient(ellipse at 0 0,#22203335,transparent 55%),#10131c;}.msg{animation:none;border-radius:16px;font-size:14px;line-height:1.5;padding:10px 12px 8px;}.msg.me{background:#57438c}.msg.them{background:#252a3a;border-color:#33394e}.msg .meta{font-size:10px;line-height:1.2;}.composer{background:#191e2c;border-color:#30374b;border-radius:18px;margin:8px 10px 12px;padding:8px;box-shadow:none;}.toast{max-width:calc(100vw - 32px);width:max-content;line-height:1.5;bottom:100px;z-index:100;}
@media(min-width:900px){.view:not(#authView){max-width:900px;width:calc(100vw - 64px);left:50%;right:auto;top:24px;height:calc(100dvh - 48px);bottom:auto;transform:translateX(-50%);border:1px solid #2d3245;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px #0004;}.bottom-nav{max-width:900px;width:calc(100vw - 64px);left:50%;right:auto;transform:translateX(-50%);bottom:24px;border-radius:0 0 24px 24px;padding:11px 80px 12px;}.topbar,#homeView .user-list,#homeView .stories-rail,#chatView .messages,#chatView .composer{max-width:none;width:auto;margin-left:0;margin-right:0;}.topbar{width:100%;}.settings-scroll{max-width:620px;width:100%;margin:0 auto;}.status-intro{max-width:600px;width:calc(100% - 60px);margin:8px auto 20px;}#statusCreateSlot,#statusRailSlot{max-width:600px;width:100%;margin:auto;}.section-heading{max-width:600px;width:100%;margin:22px auto 10px;}.user-list{padding:0 26px 24px}.auth-card{max-width:420px;}#chatView .composer{margin:8px 18px 18px}.messages{padding:18px 24px;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
/* Quiet onboarding: the form leads, explanations are available on request. */
.auth-card .brand{margin-bottom:30px}.auth-card .brand h1{margin-top:14px}.auth-tabs{justify-content:center;align-items:center;gap:4px;margin:20px 0 0;padding:0;background:transparent;border-radius:0;}.auth-tab{flex:none;font-size:12px;padding:8px 14px;color:#a2a8bd;}.auth-tab.active{color:#d0c6f8;text-decoration:underline;text-underline-offset:5px}.tab-ink{display:none}.auth-more{margin-top:20px;text-align:center;color:#8d96b0;font-size:11px;line-height:1.6;}.auth-more summary{display:inline-block;cursor:pointer;list-style:none;padding:4px 12px}.auth-more summary::-webkit-details-marker{display:none}.auth-more[open]{border-top:1px solid var(--stroke);padding-top:12px;}.auth-more-body{text-align:left}.auth-more .language-control{margin:10px 0;}.auth-more .language-note{margin-top:12px}.auth-more .auth-note{text-align:left;}.auth-card .auth-form{gap:17px}#homeView>.topbar{padding-top:22px;}.empty-art{font-size:37px;color:#c6b7ff}.settings-scroll .settings-profile{margin-top:0}.settingsView .topbar{padding-top:24px}
#statusRailSlot .story-card>span small{display:block;font-size:11px;color:var(--dim);font-weight:400;margin-top:5px}.user-meta .name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}.settings-footnote{padding-bottom:12px}.bottom-nav.inert{pointer-events:none}
/* Brand finish: quieter chrome, clear hierarchy, fuller conversation rows. */
#homeView>.topbar{padding:23px 20px 17px;gap:9px;}#homeView .topbar-title h1{font-weight:700;font-size:28px;letter-spacing:-1.25px;color:#c7bbff;}#homeView .topbar-title h1::after{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-left:4px;background:#a1d5c1;vertical-align:baseline;}
.bottom-nav{background:#171c29}.nav-item{gap:7px;min-height:54px}.nav-item svg{box-sizing:content-box;padding:4px 13px;border-radius:13px}.nav-item.selected svg{background:#a28aff22;stroke:#cdbfff;stroke-width:2}.nav-item.selected:before{display:none}.nav-item span{font-size:10px;letter-spacing:.01em}.nav-item.selected span{font-weight:600;color:#e0d7ff;}
.user-row{min-height:88px;padding:17px 8px;gap:14px}.user-meta .name{font-size:15.5px;font-weight:600;letter-spacing:-.2px}.user-meta .preview{font-size:12.5px;color:#959fb8}.avatar{border-radius:50%;box-shadow:inset 0 0 0 1px #ffffff15}.user-side .unread{margin-top:8px;min-width:19px;height:19px;background:#b9a7ff;font-weight:700;}.user-side .time{font-size:10px;color:#8d98b4}.chat-filters{padding-bottom:12px;border-bottom:1px solid #ffffff05;margin-bottom:4px;}.chat-filters button{font-size:11.5px;padding:9px 13px}.chat-filters button.selected{background:#a68bff21;color:#d0c0ff;}
.auth-card{box-shadow:none;border-color:#2b3041}.auth-card .brand h1{font-size:30px;font-weight:700}.auth-card .auth-form input{border-radius:12px;background:#1d2230;border-color:#33394d}.auth-card .btn-primary{margin-top:10px;min-height:49px;background:#9c85f7;color:#14101e;font-weight:700;}.auth-card .brand-logo{width:60px;height:60px}.auth-card .auth-more{margin-top:18px}
@media(max-width:600px){.auth-card{background:transparent;border:0;max-width:380px;padding:28px 22px;}.auth-card .brand{margin-bottom:40px}.auth-card .brand-logo{width:68px;height:68px;border-radius:21px}.auth-card .brand h1{margin-top:18px;font-size:32px}.auth-card .auth-tabs{margin-top:22px}.auth-card .btn-primary{margin-top:12px}.auth-card .auth-form{gap:20px}}
#chatView .topbar{padding:14px 14px;gap:8px;border-bottom:1px solid #ffffff08;background:#151925!important;}#chatView .topbar-title h1{font-size:17px;letter-spacing:-.4px;line-height:1.5}#chatView .topbar-title p{font-size:11px}#chatView .topbar .icon-btn{width:33px;height:36px;min-width:33px;border-radius:11px;background:transparent;border:0;}#chatView .topbar .avatar{width:39px;height:39px;font-size:15px;}.msg.me{box-shadow:none;background:#554181;border-bottom-right-radius:5px}.msg.them{border-bottom-left-radius:5px}.send-btn{box-shadow:none;border-radius:50%;width:43px;height:43px;background:#9d85f8;color:#1a1230}.composer{border-radius:26px;min-height:59px;padding:7px}.composer input{font-size:14px;line-height:1.5}.attach-btn{width:33px;height:36px}.msg{max-width:82%}

.messages:not([data-wallpaper]),.messages[data-wallpaper=default]{background-color:#11141f;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23a69ec8%22%20stroke-opacity%3D%22.055%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M22%2035h22a5%205%200%200%201%205%205v12a5%205%200%200%201-5%205H32l-8%206v-6h-2a5%205%200%200%201-5-5V40a5%205%200%200%201%205-5z%22/%3E%3Cpath%20d%3D%22m130%2020%203%207%207%203-7%203-3%207-3-7-7-3%207-3zM80%20130c12-14%2026%202%200%2018-26-16-12-32%200-18z%22/%3E%3Ccircle%20cx%3D%22145%22%20cy%3D%22105%22%20r%3D%228%22/%3E%3Cpath%20d%3D%22M32%20125v10m-5-5h10M83%2068h2m0%200v2%22/%3E%3C/g%3E%3C/svg%3E');}
#emojiBtn{background:transparent;border:0;border-radius:50%;box-shadow:none;color:#b6bed3;min-width:32px;width:32px;height:36px;}#emojiBtn svg{width:23px;height:23px}#chatOptionsBtn{color:#e3e7f1}#chatOptionsBtn svg{width:22px;height:22px}.msg{touch-action:pan-y;}.msg.swipe-reply-ready::after{content:'↩';position:absolute;right:calc(100% + 13px);top:50%;transform:translateY(-50%);color:#cbbbff;font-size:22px}
#blockedList{font-size:14px;line-height:1.6;margin:14px 0 8px;}#blockedListModal .modal-sub{line-height:1.6;margin:0 0 16px;}#passwordModal .modal-actions button{font-size:14px;padding:14px 10px;}#channelsList{min-height:0;}#channelsView .topbar-title p{font-size:11px;}
.support-sheet{text-align:center}.support-name{font-size:17px;font-weight:650;letter-spacing:-.2px;margin:16px 0 6px}.support-sheet .modal-sub{font-size:13px;line-height:1.65;margin:0}.support-qr-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;width:150px;height:150px;margin:24px auto 20px;border:1px dashed #555c73;border-radius:20px;background:#ffffff03;color:#929bb4;font-size:12px}.support-qr{display:block;width:198px;height:198px;object-fit:contain;margin:24px auto 20px;background:#fff;padding:13px;border-radius:20px;box-shadow:0 16px 38px #00000059,0 0 0 1px #ffffff0d}.support-upi{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ffffff09;border:1px solid #ffffff17;border-radius:15px;padding:7px 7px 7px 16px;margin:0}#supportUpiId{overflow-wrap:anywhere;user-select:text;font-size:13.5px;font-weight:600;letter-spacing:.015em;color:var(--txt);text-align:left}.support-upi button{flex:none;padding:11px 20px;font-size:12.5px;font-weight:600;border-radius:12px}.support-upi button:disabled{opacity:.4;cursor:default}.support-sheet .support-copy-status{min-height:22px;margin:12px 0 0;font-size:12px}.support-india{font-size:12px;letter-spacing:.02em;color:#bfc8d8;margin:18px 0}.support-sheet>button{width:100%}
/* Auth direction4.93: quiet material, precise spacing, no animated decoration. */
#authView{background:radial-gradient(ellipse at 50% -15%,#2e25434d,transparent 58%),#0e111b;padding:24px 20px;overflow-y:auto;}.auth-card{max-width:390px!important;padding:32px 26px 25px!important;background:linear-gradient(155deg,#1d213052,#12151f05)!important;border:1px solid #ffffff0b!important;border-radius:28px!important;box-shadow:0 30px 70px #00000026!important;position:relative;}.auth-card:before{content:'';position:absolute;top:-1px;left:25%;right:25%;height:1px;background:linear-gradient(90deg,transparent,#c1aaff70,transparent)}.auth-card .brand{margin-bottom:32px}.auth-card .brand-logo{width:62px;height:62px;border-radius:20px;box-shadow:0 8px 24px #7f63ef18}.auth-card .brand h1{font-size:32px;font-weight:650;letter-spacing:-1.4px;margin-top:18px}.auth-card .auth-form{gap:21px}.auth-card .auth-form label{font-size:12px;letter-spacing:.01em;color:#bbc0d2;line-height:1.6}.auth-card .auth-form input{min-height:50px;background:#1b202e;border:1px solid #353b50;border-radius:13px;padding:13px 15px;font-size:14px;box-shadow:inset 0 1px 0 #ffffff03;margin-top:7px;color:#eef0fa}.auth-card .auth-form input::placeholder{color:#737d96}.auth-card .auth-form input:focus{outline:2px solid #bba6ff50;outline-offset:2px;border-color:#b29aef;background:#1f2433}.auth-card .auth-form>.btn-primary{background:linear-gradient(110deg,#aa93fa,#8f77ed);border:1px solid #c2afff33;border-radius:13px;color:#160f2a;min-height:50px;font-size:14px;font-weight:650;box-shadow:0 6px 20px #8461ef15;margin-top:6px}.auth-card .auth-tabs{margin-top:18px}.auth-card .auth-more{margin-top:15px}.auth-card .auth-form small{font-size:10px;line-height:1.5;color:#8f98af}.auth-error:not(:empty){line-height:1.6;font-size:12px;margin-top:14px}.boot-status:empty{display:none}@media(max-width:360px){.auth-card{padding:28px 21px 22px!important}.auth-card .brand{margin-bottom:27px}.auth-card .auth-form{gap:18px}}@media(max-height:690px){#authView{justify-content:flex-start}.auth-card{margin:auto 0}.auth-card .brand-logo{width:48px;height:48px}.auth-card .brand{margin-bottom:20px}.auth-card .brand h1{margin-top:12px;font-size:28px}.auth-card .auth-form{gap:12px}}
.support-contact{border-top:1px solid #ffffff0d;padding-top:18px;margin-top:18px}.support-contact a{display:block;text-decoration:none;color:#cbbcff;font-size:13px;font-weight:600}.support-contact a small{display:block;font-size:11px;font-weight:400;color:#9eacc8;margin-top:6px;overflow-wrap:anywhere}.support-contact p{font-size:11px;line-height:1.65;color:#9da5bc;margin:12px 0 0}.support-sheet .support-india{margin:16px 0}.support-sheet .support-qr{width:222px;height:222px;margin:26px auto 22px}.support-sheet .support-qr-placeholder{width:130px;height:130px;margin:20px auto 16px}.modal.support-sheet{max-width:430px}.support-sheet{max-height:calc(100dvh - 40px);overflow-y:auto}
/* New start direction: editorial wordmark, sculpted dialogue, open composition. */
#authView{background:#101116;background-image:radial-gradient(ellipse at 75% 8%,#5f456a24,transparent 50%);padding:0 26px;justify-content:center;align-items:center}.auth-card{display:flex;flex-direction:column;width:100%;max-width:420px!important;padding:28px 0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-height:100dvh;overflow-x:hidden;overflow-y:auto}.auth-card:before{display:none}.auth-card .brand{position:relative;text-align:left;height:252px;min-height:252px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin:0 0 36px;padding:0 0 28px;border-bottom:1px solid #ffffff18;overflow:hidden}.auth-card .brand-logo{position:absolute;top:3px;left:0;width:38px;height:38px;border-radius:12px;box-shadow:none;opacity:.95}.auth-card .brand h1{font-size:66px;line-height:1;letter-spacing:-4px;font-weight:600;margin:0;color:#f5f0e8;position:relative;z-index:1}.auth-tagline{font-size:14px;letter-spacing:.02em;color:#b4a9bc;margin:13px 0 0;position:relative;z-index:1}.auth-dialogue-art{position:absolute;right:-3px;top:-6px;width:188px;height:177px;transform:rotate(-12deg);filter:drop-shadow(0 16px 15px #0004);opacity:.93}.auth-dialogue-art svg{width:100%;height:100%}.auth-card .auth-form{gap:20px}.auth-card .auth-form label{font-size:11px;color:#a7a4b2;letter-spacing:.035em}.auth-card .auth-form input{background:#1c1d25;border:1px solid #36343f;border-radius:11px;font-size:14px;min-height:52px;margin-top:8px}.auth-card .auth-form>.btn-primary{background:#d3c0ef;color:#261a34;border:1px solid #ead9ff4d;min-height:52px;border-radius:11px;box-shadow:inset 0 1px #fff4;font-size:14px;margin-top:5px}.auth-card .auth-form>.btn-primary:hover{background:#e1cef9}.auth-card .auth-tabs{margin-top:19px;justify-content:flex-start;gap:18px}.auth-card .auth-tab{padding:8px 0;font-size:12px}.auth-card .auth-tab.active{color:#e5d5f7;text-decoration-color:#ae91c4;text-underline-offset:7px}.auth-card .auth-more{margin-top:10px;text-align:right;font-size:10px}.auth-card .auth-more summary{padding-right:0}.auth-card .auth-form small{font-size:10px}.auth-card .auth-error{order:0}
@media(min-width:900px){#authView{padding:50px 7vw}.auth-card{max-width:1080px!important;display:grid;grid-template-columns:1.3fr 1fr;column-gap:100px;padding:60px 0!important;overflow:visible}.auth-card .brand{grid-column:1;grid-row:1/9;height:540px;align-self:center;border:0;border-right:1px solid #ffffff15;justify-content:center;min-height:0;margin:0;padding-right:60px;overflow:visible}.auth-card .brand-logo{top:0;left:0;width:44px;height:44px}.auth-card .brand h1{font-size:88px;letter-spacing:-5px}.auth-card .auth-dialogue-art{top:10px;right:35px;width:220px;height:210px;opacity:.9}.auth-card .auth-wordmark{margin-top:130px}.auth-tagline{font-size:19px;margin-top:20px}.auth-card .auth-form,.auth-card .auth-tabs,.auth-card .auth-error,.auth-card .auth-more,.auth-card .boot-status,.auth-card .service-notice{grid-column:2}.auth-card .auth-form{align-self:end;margin-top:85px}.auth-card .auth-tabs{margin-top:25px}.auth-card .auth-more{margin-top:28px}.auth-card .auth-more-body{text-align:left}}
@media(max-width:360px){#authView{padding:0 23px}.auth-card .brand{height:209px;min-height:209px;margin-bottom:25px;padding-bottom:22px}.auth-card .brand h1{font-size:58px;letter-spacing:-3.5px}.auth-dialogue-art{width:158px;height:148px;right:-5px;top:-1px}.auth-card .brand-logo{width:33px;height:33px;border-radius:10px}.auth-card .auth-form{gap:15px}.auth-tagline{font-size:13px}.auth-card .auth-form input{min-height:49px}}
@media(max-height:690px) and (max-width:899px){#authView{justify-content:flex-start}.auth-card{padding:22px 0!important;max-height:none;flex-shrink:0}.auth-card .brand{height:150px;min-height:150px;margin-bottom:21px;padding-bottom:17px}.auth-card .brand h1{font-size:48px;letter-spacing:-2.5px}.auth-card .brand-logo{width:28px;height:28px;border-radius:9px}.auth-dialogue-art{width:130px;height:122px;top:-8px;right:4px}.auth-tagline{font-size:12px;margin-top:10px}.auth-card .auth-form{gap:13px}.auth-card .auth-form input{min-height:46px}.auth-card .auth-tabs{margin-top:14px}}
.auth-forgot{align-self:flex-end;color:#bca9d0;background:none;border:0;font:11px Inter,sans-serif;padding:12px 0 2px;cursor:pointer;text-align:right}.account-email-sheet{max-height:calc(100dvh - 30px);overflow:auto}.account-email-sheet .modal-sub{font-size:12px;line-height:1.7;margin:12px 0 16px;overflow-wrap:anywhere}.recovery-notice{border-left:2px solid #c2a4e9;padding:12px 13px;background:#bb93ee10;color:#d0c3dc;font-size:12px;line-height:1.7;margin:16px 0}.account-email-sheet .modal-actions button{font-size:12px;padding:13px 10px}.recovery-refresh{width:100%;margin-top:12px;font-size:12px}.account-email-sheet .pf-input{width:100%;margin:7px 0 15px}.auth-forgot.hidden{display:none}@media(min-width:900px){.auth-forgot{grid-column:2}.auth-card .auth-form{grid-row:1}.auth-card .service-notice:not([hidden]){grid-row:1}.auth-card:has(.service-notice:not([hidden])) .auth-form{grid-row:2}}
/* All long sheets must scroll when a mobile keyboard shortens the viewport. */
#profileModal>.modal{max-height:calc(100dvh - 30px);overflow:auto}
/* Start4.97: sculpted dialogue, a warm ink canvas and restrained light. */
#authView{background:#101015;background-image:radial-gradient(ellipse at 96% 0%,#9e6cbb24,transparent 49%),radial-gradient(ellipse at 0% 100%,#555d7820,transparent 60%)}.auth-card .brand{border-color:#d8c4ec1b;height:267px;min-height:267px;padding-bottom:28px;margin-bottom:31px;overflow:visible}.auth-card .brand-logo{width:33px;height:33px;border-radius:11px;opacity:.9;top:1px}.auth-card .brand h1{font-size:70px;font-weight:600;letter-spacing:-4.6px;line-height:1.03;color:#f2ebe4;text-shadow:0 2px 22px #dac4e50b}.auth-card .auth-dialogue-art{width:275px;height:218px;right:-34px;top:-20px;transform:none;opacity:1;filter:none}.auth-dialogue-art img{display:block;width:100%;height:100%;object-fit:contain}.auth-tagline{color:#b6a9c2;font-size:14px;letter-spacing:.02em;margin-top:12px}.auth-card .auth-form label{font-size:11px;color:#bab1c6;letter-spacing:.055em}.auth-card .auth-form input{background:linear-gradient(120deg,#21212bf0,#1b1b24);border:1px solid #aaa0c02e;border-top-color:#c9b6dd35;box-shadow:inset 0 1px #fff03,0 3px 10px #00000014;border-radius:13px;min-height:53px;padding-left:16px;color:#f5eefc}.auth-card .auth-form input::placeholder{color:#7e778d}.auth-card .auth-form input:focus{background:#262330;outline:2px solid #d7b6ed20;outline-offset:3px;border-color:#bc97d6}.auth-card .auth-form>.btn-primary{min-height:53px;border-radius:13px;background:linear-gradient(100deg,#eddbf8,#c3a4df);border:1px solid #f4deff57;border-bottom-color:#9f7dbf;color:#291b34;box-shadow:inset 0 1px 0 #fff7,0 7px 18px #0002;font-weight:700}.auth-card .auth-form>.btn-primary:hover{background:linear-gradient(100deg,#f2e5fb,#cdb1e6)}.auth-card .auth-tabs{gap:23px}.auth-card .auth-tab.active{color:#e9d8f8}.auth-forgot{color:#bdabc9;font-size:10px;padding-top:13px}.auth-card .auth-more{font-size:10px;color:#918298}.auth-card .auth-more summary{color:#918298}
@media(min-width:900px){.auth-card .brand{height:540px;min-height:0;margin:0;padding-bottom:0;border-color:#d8c4ec1b}.auth-card .brand h1{font-size:96px;letter-spacing:-6.2px}.auth-card .brand-logo{width:38px;height:38px;top:0}.auth-card .auth-dialogue-art{width:365px;height:289px;right:10px;top:-34px}.auth-card .auth-wordmark{margin-top:166px}.auth-card .auth-tagline{font-size:18px}.auth-card .auth-form{gap:24px}}
@media(max-width:360px){.auth-card .brand{height:218px;min-height:218px;padding-bottom:24px;margin-bottom:27px}.auth-card .brand h1{font-size:61px;letter-spacing:-3.8px}.auth-card .auth-dialogue-art{width:235px;height:186px;right:-33px;top:-16px}.auth-card .brand-logo{width:29px;height:29px;border-radius:10px}.auth-card .auth-tagline{font-size:13px}.auth-card .auth-form input{min-height:50px}.auth-card .auth-form{gap:16px}}
@media(max-height:690px) and (max-width:899px){.auth-card .brand{height:158px;min-height:158px;padding-bottom:18px;margin-bottom:21px}.auth-card .brand h1{font-size:48px;letter-spacing:-3px}.auth-card .auth-dialogue-art{width:190px;height:150px;right:-23px;top:-22px}.auth-card .brand-logo{width:25px;height:25px;border-radius:8px}.auth-card .auth-tagline{font-size:12px;margin-top:9px}.auth-card .auth-form{gap:13px}.auth-card .auth-form input{min-height:46px}}
@media(min-width:361px) and (max-width:899px) and (min-height:691px){.auth-card .auth-dialogue-art{top:-33px}}
@media(max-width:360px) and (min-height:691px){.auth-card .auth-dialogue-art{width:190px;height:150px;right:-18px;top:-48px}}
@media(max-width:360px) and (min-height:691px){.auth-card .auth-dialogue-art{width:168px;height:133px;right:-12px;top:-25px}}
/* Phone500: a new ribbon-N identity, quiet spotlight and a grounded sign-in surface. */
@media(max-width:899px){#authView{padding:0 25px;background:radial-gradient(ellipse at 50% 8%,#72508244,transparent 47%),radial-gradient(ellipse at 5% 97%,#53536d1c,transparent 55%),#121017}.auth-card{padding:30px 0 24px!important;max-width:410px!important}.auth-card .brand{height:255px;min-height:255px;align-items:center;justify-content:flex-end;padding-bottom:25px;margin-bottom:27px;text-align:center;border-bottom:1px solid #d7b6eb1c;overflow:visible}.auth-card .auth-dialogue-art{display:none}.auth-card .brand-logo{position:relative;top:auto;left:auto;width:100px;height:100px;min-height:100px;object-fit:contain;border-radius:25px;opacity:1;margin-bottom:22px;box-shadow:0 15px 25px #0004,0 0 65px #b783d323;border:1px solid #f1d9ff1c;transform:rotate(-5deg)}.auth-card .auth-wordmark{position:relative}.auth-card .brand h1{font-size:45px;letter-spacing:-2.3px;line-height:1;font-weight:600;text-shadow:none}.auth-card .auth-tagline{font-size:12px;letter-spacing:.045em;margin-top:12px;color:#b4a1bf}.auth-card .auth-form{gap:20px;padding:0 1px}.auth-card .auth-form label{font-size:11px;letter-spacing:.04em;color:#bbaec7}.auth-card .auth-form input{min-height:54px;border-radius:15px;background:linear-gradient(110deg,#282130,#211d29);border-color:#a185b72f;box-shadow:inset 0 1px #fff03}.auth-card .auth-form>.btn-primary{min-height:54px;border-radius:15px;margin-top:8px;background:linear-gradient(105deg,#efddf8,#bea0d9);box-shadow:inset 0 1px #fff8,0 10px 28px #0003}.auth-card .auth-tabs{justify-content:center;margin-top:22px;gap:30px}.auth-card .auth-more{text-align:center;margin-top:14px}.auth-card .auth-more summary{padding:5px 12px}.auth-forgot{margin-right:2px;padding-top:13px}.auth-card .auth-error{text-align:center}.auth-card .service-notice{margin-bottom:15px}}
@media(max-width:360px) and (min-height:691px){.auth-card .brand{height:225px;min-height:225px;margin-bottom:23px;padding-bottom:22px}.auth-card .brand-logo{width:84px;height:84px;min-height:84px;border-radius:23px;margin-bottom:20px}.auth-card .brand h1{font-size:41px}.auth-card .auth-form{gap:15px}.auth-card .auth-form input{min-height:50px}.auth-card .auth-form>.btn-primary{min-height:51px}}
@media(max-height:690px) and (max-width:899px){.auth-card{padding:21px 0!important}.auth-card .brand{height:167px;min-height:167px;padding-bottom:18px;margin-bottom:19px}.auth-card .brand-logo{width:64px;height:64px;min-height:64px;border-radius:18px;margin-bottom:15px}.auth-card .brand h1{font-size:34px;letter-spacing:-1.7px}.auth-card .auth-tagline{font-size:11px;margin-top:9px}.auth-card .auth-form{gap:12px}.auth-card .auth-form input{min-height:47px}.auth-card .auth-form>.btn-primary{min-height:48px}.auth-card .auth-tabs{margin-top:15px}}

/* Phone501: a tactile conversation mark and editorial, human-first welcome. */
.auth-intro{display:none}
@media(max-width:899px){
#authView{padding:0 26px;background:radial-gradient(ellipse at 90% 10%,#71508728,transparent 52%),radial-gradient(ellipse at 0% 85%,#40364c20,transparent 56%),#111016}
.auth-card{padding:26px 0 22px!important;max-width:390px!important}
.auth-card .brand{height:226px;min-height:226px;display:block;border:0;margin:0;padding:0;overflow:visible}
.auth-card .brand-logo{position:absolute;top:0;left:0;width:29px;height:29px;min-height:29px;border:0;border-radius:8px;box-shadow:none;transform:none;margin:0}
.auth-card .auth-wordmark{position:absolute;top:3px;left:39px;margin:0;text-align:left}
.auth-card .brand h1{font-size:23px;line-height:1;letter-spacing:-.9px;font-weight:600;color:#f0e9f8}
.auth-card .auth-tagline{display:none}
.auth-card .auth-dialogue-art{display:block;position:absolute;width:162px;height:162px;top:57px;right:calc(50% - 81px);transform:rotate(-8deg);opacity:1;filter:drop-shadow(0 18px 25px #0005)}
.auth-card .auth-dialogue-art img{width:100%;height:100%;object-fit:contain}
.auth-intro{display:block;text-align:center;margin:16px 0 28px}
.auth-intro p{font-size:8px;font-weight:600;letter-spacing:.22em;color:#a991bb;margin:0 0 12px}
.auth-intro h2{font-size:35px;line-height:1.12;font-weight:500;letter-spacing:-1.5px;color:#f4edf9;margin:0}
.auth-card .auth-form{gap:17px;padding:0}.auth-card .auth-form label{font-size:10px;letter-spacing:.04em;color:#b5a7c1}.auth-card .auth-form input{min-height:50px;padding:12px 15px;border-radius:14px;background:linear-gradient(110deg,#26212f,#201c28);border-color:#a99ab62b;border-top-color:#bdb0cb38;box-shadow:inset 0 1px #ffffff03;margin-top:7px}
.auth-card .auth-form>.btn-primary{min-height:51px;border-radius:14px;margin-top:4px;background:linear-gradient(100deg,#f0e0ff,#c9a6ed);color:#35213f;box-shadow:inset 0 1px #fff9,0 9px 25px #0003}
.auth-card .auth-tabs{margin-top:15px;gap:32px}.auth-card .auth-more{margin-top:7px}.auth-forgot{padding-top:11px}.auth-card .auth-tab{font-size:11px}.auth-card .brand:after{content:'';position:absolute;top:52px;left:calc(50% - 100px);width:200px;height:180px;border-radius:50%;background:radial-gradient(ellipse,#c695ff12,transparent 68%);z-index:-1}
.auth-card:has(#signupForm:not(.hidden)) .brand{height:154px;min-height:154px}.auth-card:has(#signupForm:not(.hidden)) .auth-dialogue-art{width:104px;height:104px;top:45px;right:calc(50% - 52px)}.auth-card:has(#signupForm:not(.hidden)) .auth-intro{margin-top:12px;margin-bottom:24px}.auth-card:has(#signupForm:not(.hidden)) .auth-intro h2{font-size:29px}
}
@media(max-width:360px){.auth-card .brand{height:205px;min-height:205px}.auth-card .auth-dialogue-art{width:143px;height:143px;right:calc(50% - 71.5px)}.auth-intro{margin:12px 0 25px}.auth-intro h2{font-size:31px}.auth-card .auth-form{gap:15px}}
@media(max-height:690px) and (max-width:899px){.auth-card .brand{height:129px;min-height:129px}.auth-card .auth-dialogue-art{width:92px;height:92px;top:34px;right:calc(50% - 46px)}.auth-intro{margin:10px 0 20px}.auth-intro h2{font-size:28px}.auth-intro p{margin-bottom:9px}.auth-card .auth-form{gap:12px}.auth-card .auth-form input{min-height:46px}.auth-card:has(#signupForm:not(.hidden)) .brand{height:105px;min-height:105px}.auth-card:has(#signupForm:not(.hidden)) .auth-dialogue-art{width:70px;height:70px;top:32px;right:calc(50% - 35px)}.auth-card:has(#signupForm:not(.hidden)) .auth-intro h2{font-size:25px}}

/*503: selected cobalt/pearl ribbon identity. Existing inside screens unchanged. */
#authView{background:radial-gradient(ellipse at 90% 10%,#313e9e26,transparent 52%),radial-gradient(ellipse at 0% 85%,#292f5520,transparent 56%),#101117}
.auth-card .auth-form label{color:#b0b5cd}.auth-card .auth-form input{background:linear-gradient(110deg,#222634,#1b1e2a);border-color:#a4aec22d;border-top-color:#b8c5e43d;color:#f1f3ff}.auth-card .auth-form input::placeholder{color:#7f89a5}.auth-card .auth-form input:focus{background:#242a3d;border-color:#aab9ff;outline-color:#8199ff30}.auth-card .auth-form>.btn-primary{background:linear-gradient(105deg,#edf1ff,#b0bfff);border-color:#d5dfff70;border-bottom-color:#7889ce;color:#18254a}.auth-card .auth-form>.btn-primary:hover{background:linear-gradient(105deg,#f8faff,#c0cdff)}.auth-card .auth-tab.active{color:#dbe3ff;text-decoration-color:#9caff0}.auth-forgot{color:#b5bed8}.auth-card .auth-more summary{color:#909ab8}.auth-card .auth-intro p{color:#9aaad4}.auth-card .auth-intro h2{color:#f0f3ff}.auth-card .brand h1{color:#f0f3ff}.auth-card .auth-dialogue-art{filter:drop-shadow(0 18px 25px #0005)}
@media(max-width:899px){.auth-card .brand:after{background:radial-gradient(ellipse,#637fff12,transparent 68%)}.auth-card .auth-dialogue-art{transform:rotate(-6deg)}}

/*504: one shared language control and no duplicate icon in either layout. */
.auth-language{margin:19px 0 0;display:flex;justify-content:center}.auth-language .language-control{display:flex;align-items:center;gap:10px;margin:0;font:11px Inter,sans-serif;color:#a7b1cc}.auth-language select{font:11px Inter,sans-serif;color:#dfe6ff;background:#202432;border:1px solid #3b435b;border-radius:9px;padding:10px 13px;min-height:40px}.auth-language select:focus-visible{outline:2px solid #b5c5ff;outline-offset:3px}.auth-card .auth-more{margin-top:7px}
@media(max-width:899px){.auth-card .auth-wordmark{left:0;top:3px}.auth-card .auth-dialogue-art{top:57px}}
@media(min-width:900px){.auth-language{grid-column:2;justify-content:flex-start}.auth-card .auth-more{margin-top:13px}.auth-card .auth-tagline{display:none}.auth-card .auth-intro{display:block;grid-column:1;grid-row:1/9;align-self:end;margin:0 0 25px;pointer-events:none}.auth-intro p{font:600 9px Inter,sans-serif;letter-spacing:.17em;color:#9aaad4;margin:0 0 12px}.auth-intro h2{font:500 26px/1.25 Inter,sans-serif;letter-spacing:-.9px;color:#f0f3ff;margin:0}.auth-card .brand{height:550px}.auth-card .auth-wordmark{margin-top:112px}}

/* ===== Desktop split shell (5.05): chats list left, open chat right ===== */
#chatEmpty{display:none}
@media(min-width:900px){
:root{--shell-x:max(28px,calc((100vw - 1320px)/2));--side-w:clamp(350px,31vw,430px)}
.view#homeView,.view#statusView,.view#channelsView,.view#settingsView{left:var(--shell-x);right:auto;top:24px;width:var(--side-w);max-width:none;height:calc(100dvh - 48px);transform:none;border:1px solid #2d3245;border-right-width:0;border-radius:24px 0 0 24px;overflow:hidden;box-shadow:0 30px 90px #0004}
.view#chatView{left:calc(var(--shell-x) + var(--side-w));right:var(--shell-x);top:24px;width:auto;max-width:none;height:calc(100dvh - 48px);transform:none;border:1px solid #2d3245;border-radius:0 24px 24px 0;overflow:hidden;box-shadow:0 30px 90px #0004}
.bottom-nav{max-width:none;width:var(--side-w);left:var(--shell-x);right:auto;transform:none;bottom:24px;border-radius:0 0 0 24px;padding:11px 22px 12px;border-right:0}
#chatEmpty{position:fixed;left:calc(var(--shell-x) + var(--side-w));right:var(--shell-x);top:24px;height:calc(100dvh - 48px);z-index:1;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(ellipse at 50% 30%,#232a41,transparent 75%),var(--bg);border:1px solid #2d3245;border-left-width:0;border-radius:0 24px 24px 0;box-shadow:0 30px 90px #0004}
#homeView.active ~ #chatEmpty,#statusView.active ~ #chatEmpty,#channelsView.active ~ #chatEmpty,#settingsView.active ~ #chatEmpty{display:flex}
#homeView.active ~ #chatView.active ~ #chatEmpty{display:none}
#chatView .topbar #backBtn{display:none}
.chat-empty-logo{width:88px;height:88px;border-radius:25px;box-shadow:0 18px 44px #0007;margin-bottom:12px}
#chatEmpty h2{font-size:26px;font-weight:700;letter-spacing:-1.1px;color:#c7bbff;margin:0}
#chatEmpty p{font-size:13px;color:var(--dim);margin:2px 0 0}
#chatView .messages{padding:18px 30px}
#chatView .msg{max-width:68%}
#chatView .composer{margin:8px 26px 20px}
#statusView .status-intro{max-width:none;width:auto;margin:6px 20px 18px}
#statusView #statusCreateSlot{max-width:none;width:auto;margin:0 20px}
#statusView #statusRailSlot{max-width:none;width:auto;margin:0 8px}
#statusView .section-heading{max-width:none;width:auto;margin:22px 22px 10px}
#homeView,#statusView,#channelsView,#settingsView{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
#settingsView .settings-scroll{max-width:none;flex:1;min-height:0}
}

/* ===== 5.06 themes: Daylight, Midnight black (AMOLED), Emerald, Sunset ===== */
:root[data-theme=amoled]{--bg:#000;--panel:#0a0a10;--stroke:#1e212e;--txt:#f4f2ff;--dim:#9aa0b8;--accent1:#a68fff;--accent2:#8a72f2;--grad:linear-gradient(135deg,#9a80fa,#7c64e6);--panel:rgba(150,140,220,.05)}
:root[data-theme=amoled] body{background:#000}
:root[data-theme=amoled] .glass{background:#0a0a10}
:root[data-theme=amoled] .auth-card{background:#0c0c13}
:root[data-theme=amoled] .bottom-nav{background:#06060b;border-top-color:#1e212e}
:root[data-theme=amoled] .home-search input{background:#0f1019}
:root[data-theme=amoled] .auth-form input,:root[data-theme=amoled] .pf-input{background:#11131d;border-color:#252938}
:root[data-theme=amoled] .messages:not([data-wallpaper]),:root[data-theme=amoled] .messages[data-wallpaper=default]{background-color:#040406}
:root[data-theme=amoled] .toast{background:#0f0f18}
:root[data-theme=amoled] .react-pill .chip{background:#0d0d15}
:root[data-theme=amoled] .ctxmenu.glass{background:rgba(9,9,16,.97)}
:root[data-theme=amoled] .language-control select{background:#0d0e17}
:root[data-theme=amoled] #chatEmpty{background:radial-gradient(ellipse at 50% 30%,#12141f,transparent 75%),#000}
:root[data-theme=emerald]{--bg:#07120e;--panel:#0e1b15;--stroke:#1e352a;--txt:#f1faf5;--dim:#8fa89d;--accent1:#35d692;--accent2:#14a37c;--grad:linear-gradient(135deg,#22bd82,#0f9370);--panel:rgba(110,220,180,.05)}
:root[data-theme=emerald] .o1{background:#12a274}
:root[data-theme=sunset]{--bg:#170d0a;--panel:#221311;--stroke:#3b241e;--txt:#fff4ef;--dim:#b39a91;--accent1:#ff9d68;--accent2:#e8607c;--grad:linear-gradient(135deg,#ef8a4c,#d84f70);--panel:rgba(255,170,130,.05)}
:root[data-theme=sunset] .o1{background:#d86a4a}
:root[data-theme=light]{--bg:#eef0f6;--panel:#ffffff;--stroke:#dde1ec;--txt:#181b28;--dim:#5c6376;--accent1:#7558f0;--accent2:#6147dd;--grad:linear-gradient(135deg,#8266f4,#684fe6);--panel:rgba(255,255,255,.7)}
:root[data-theme=light] body{background:#eef0f6}
:root[data-theme=light] .glass{background:#ffffff}
:root[data-theme=light] .view{background:var(--bg)}
:root[data-theme=light] .auth-card{background:#ffffff;box-shadow:0 24px 70px #3a3f6014}
:root[data-theme=light] .auth-card .brand{border-color:#181b2812}
:root[data-theme=light] .auth-card .brand h1{color:#181b28}
:root[data-theme=light] .auth-tagline{color:#5c6376}
:root[data-theme=light] .auth-intro p{color:#7a8098}
:root[data-theme=light] .auth-intro h2{color:#181b28}
:root[data-theme=light] .bottom-nav{background:#ffffff;border-top-color:#e2e5ef;box-shadow:0 -8px 28px #3a3f6012}
:root[data-theme=light] .nav-item{color:#6b7288}
:root[data-theme=light] .nav-item.selected{color:#6147dd}
:root[data-theme=light] .nav-item.selected:before{background:#7558f0}
:root[data-theme=light] .home-search input{background:#ffffff}
:root[data-theme=light] .auth-form input,:root[data-theme=light] .pf-input{background:#f6f7fb;border-color:#d6dae8;color:#181b28}
:root[data-theme=light] .auth-form label{color:#4a5165}
:root[data-theme=light] .messages:not([data-wallpaper]),:root[data-theme=light] .messages[data-wallpaper=default]{background-color:#e9ebf3;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23181b28%22%20stroke-opacity%3D%22.06%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M22%2035h22a5%205%200%200%201%205%205v12a5%205%200%200%201-5%205H32l-8%206v-6h-2a5%205%200%200%201-5-5V40a5%205%200%200%201%205-5z%22/%3E%3Cpath%20d%3D%22m130%2020%203%207%207%203-7%203-3%207-3-7-7-3%207-3zM80%20130c12-14%2026%202%200%2018-26-16-12-32%200-18z%22/%3E%3Ccircle%20cx%3D%22145%22%20cy%3D%22105%22%20r%3D%228%22/%3E%3Cpath%20d%3D%22M32%20125v10m-5-5h10M83%2068h2m0%200v2%22/%3E%3C/g%3E%3C/svg%3E')}
:root[data-theme=light] .msg.them{background:#ffffff;border-color:var(--stroke)}
:root[data-theme=light] .msg code.mono{background:rgba(20,24,44,.08)}
:root[data-theme=light] .toast{background:#ffffff;color:#181b28;box-shadow:0 12px 30px rgba(30,34,60,.18)}
:root[data-theme=light] .react-pill .chip{background:#ffffff;box-shadow:0 3px 10px rgba(30,34,60,.12)}
:root[data-theme=light] .ctxmenu.glass{background:rgba(255,255,255,.97);border-color:rgba(20,24,44,.12)}
:root[data-theme=light] .language-control select{background:#f6f7fb}
:root[data-theme=light] .user-row{background:rgba(24,27,40,.04)}
:root[data-theme=light] .user-row:active{background:rgba(24,27,40,.08)}
:root[data-theme=light] .note-row,:root[data-theme=light] #noteBody,:root[data-theme=light] .emoji-choices button,:root[data-theme=light] .pin-content{background:rgba(24,27,40,.05);border-color:rgba(24,27,40,.1)}
:root[data-theme=light] .channel-composer textarea{background:rgba(24,27,40,.045)}
:root[data-theme=light] .pinned-banner{background:#7558f012}
:root[data-theme=light] .reply-bar-body b{color:#6147dd}
:root[data-theme=light] #chatEmpty{background:radial-gradient(ellipse at 50% 30%,#dde1f0,transparent 75%),#eef0f6}
:root[data-theme=light] .view#homeView,:root[data-theme=light] .view#statusView,:root[data-theme=light] .view#channelsView,:root[data-theme=light] .view#settingsView,:root[data-theme=light] .view#chatView,:root[data-theme=light] #chatEmpty{border-color:#dde1ec;box-shadow:0 30px 80px #3a3f6016}
:root[data-theme=light] .service-notice{color:#5c6376}
:root[data-theme=light] .settings-group{background:#ffffff;border-color:#dde1ec}
:root[data-theme=light] .settings-group>button{border-bottom-color:rgba(24,27,40,.07)}
:root[data-theme=light] .status-intro{background:linear-gradient(130deg,#efeaff,#e2ecff);border-color:#ddd6f3}
:root[data-theme=light] .status-intro p{color:#5c6376}
:root[data-theme=light] .empty-state h2{color:#181b28}
/* ===== 5.06 wallpapers: original CSS/SVG art, no assets ===== */
#messages[data-wallpaper=space]{background:radial-gradient(ellipse at 70% 15%,#3b2a6e59,transparent 60%),radial-gradient(ellipse at 20% 80%,#143a5e4d,transparent 60%),radial-gradient(ellipse at 55% 55%,#5e2a4f33,transparent 55%),url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cg%20fill%3D%22%23cfd6ff%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2224%22%20r%3D%221.1%22%20opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%2262%22%20cy%3D%2212%22%20r%3D%22.8%22%20opacity%3D%22.35%22/%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2230%22%20r%3D%221.3%22%20opacity%3D%22.55%22/%3E%3Ccircle%20cx%3D%22145%22%20cy%3D%2214%22%20r%3D%22.7%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%2266%22%20r%3D%22.9%22%20opacity%3D%22.4%22/%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2258%22%20r%3D%221.2%22%20opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%2280%22%20r%3D%22.8%22%20opacity%3D%22.35%22/%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%22110%22%20r%3D%221%22%20opacity%3D%22.45%22/%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%22100%22%20r%3D%22.7%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%22105%22%20cy%3D%22128%22%20r%3D%221.1%22%20opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%22118%22%20r%3D%22.8%22%20opacity%3D%22.35%22/%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%22142%22%20r%3D%221.2%22%20opacity%3D%22.5%22/%3E%3Cpath%20d%3D%22M120%2052l1.2%203%203%201.2-3%201.2-1.2%203-1.2-3-3-1.2%203-1.2z%22%20opacity%3D%22.6%22/%3E%3C/g%3E%3C/svg%3E'),#0a0c18}
#messages[data-wallpaper=drive]{background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20700%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Crect%20width%3D%22400%22%20height%3D%22700%22%20fill%3D%22%23080a13%22/%3E%3Crect%20width%3D%22400%22%20height%3D%22440%22%20fill%3D%22%230b0e1c%22/%3E%3Ccircle%20cx%3D%22316%22%20cy%3D%2284%22%20r%3D%2230%22%20fill%3D%22%23e8ecf8%22%20opacity%3D%22.07%22/%3E%3Ccircle%20cx%3D%22316%22%20cy%3D%2284%22%20r%3D%2215%22%20fill%3D%22%23e8ecf8%22%20opacity%3D%22.38%22/%3E%3Ccircle%20cx%3D%22322%22%20cy%3D%2280%22%20r%3D%2213%22%20fill%3D%22%230b0e1c%22/%3E%3Cg%20fill%3D%22%23cfd6ff%22%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2260%22%20r%3D%221%22%20opacity%3D%22.4%22/%3E%3Ccircle%20cx%3D%22120%22%20cy%3D%2230%22%20r%3D%22.8%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%22210%22%20cy%3D%2280%22%20r%3D%221.1%22%20opacity%3D%22.35%22/%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%22160%22%20r%3D%22.8%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%22170%22%20cy%3D%22200%22%20r%3D%221%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%22260%22%20cy%3D%22160%22%20r%3D%22.8%22%20opacity%3D%22.28%22/%3E%3Ccircle%20cx%3D%22340%22%20cy%3D%22200%22%20r%3D%221%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%22260%22%20r%3D%22.8%22%20opacity%3D%22.25%22/%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22300%22%20r%3D%221%22%20opacity%3D%22.25%22/%3E%3Ccircle%20cx%3D%22240%22%20cy%3D%22280%22%20r%3D%22.8%22%20opacity%3D%22.22%22/%3E%3C/g%3E%3Cpath%20d%3D%22M0%20440h400v3H0z%22%20fill%3D%22%23161c2e%22/%3E%3Cpath%20d%3D%22M150%20700l40-260h20l40%20260z%22%20fill%3D%22%23101320%22/%3E%3Cpath%20d%3D%22M150%20700l40-260h4l-36%20260zM250%20700l-40-260h-4l36%20260z%22%20fill%3D%22%23273249%22/%3E%3Cpath%20d%3D%22M197%20700l4-260h1l4%20260z%22%20fill%3D%22%23e8d57a%22%20opacity%3D%22.35%22/%3E%3Cellipse%20cx%3D%22176%22%20cy%3D%22490%22%20rx%3D%226%22%20ry%3D%222.6%22%20fill%3D%22%23ff4d4d%22%20opacity%3D%22.55%22/%3E%3Cellipse%20cx%3D%22176%22%20cy%3D%22490%22%20rx%3D%2216%22%20ry%3D%226%22%20fill%3D%22%23ff4d4d%22%20opacity%3D%22.12%22/%3E%3Cellipse%20cx%3D%22228%22%20cy%3D%22520%22%20rx%3D%227%22%20ry%3D%223%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.5%22/%3E%3Cellipse%20cx%3D%22228%22%20cy%3D%22520%22%20rx%3D%2218%22%20ry%3D%227%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.1%22/%3E%3C/svg%3E'),#080a13;background-size:cover;background-position:center}
#messages[data-wallpaper=pixel]{background-color:#0b0d16;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2296%22%20height%3D%2296%22%20viewBox%3D%220%200%2096%2096%22%3E%3Cg%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%237c5cff%22%20opacity%3D%22.16%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2216%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%237c5cff%22%20opacity%3D%22.12%22/%3E%3Crect%20x%3D%2232%22%20y%3D%228%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%233ddc84%22%20opacity%3D%22.13%22/%3E%3Crect%20x%3D%2264%22%20y%3D%2216%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%234f8cff%22%20opacity%3D%22.15%22/%3E%3Crect%20x%3D%2272%22%20y%3D%2224%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%234f8cff%22%20opacity%3D%22.1%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2256%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%23ff5c8a%22%20opacity%3D%22.12%22/%3E%3Crect%20x%3D%2248%22%20y%3D%2248%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%233ddc84%22%20opacity%3D%22.1%22/%3E%3Crect%20x%3D%2280%22%20y%3D%2264%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%237c5cff%22%20opacity%3D%22.14%22/%3E%3Crect%20x%3D%2240%22%20y%3D%2280%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%23ffd25c%22%20opacity%3D%22.11%22/%3E%3Crect%20x%3D%228%22%20y%3D%2280%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%234f8cff%22%20opacity%3D%22.09%22/%3E%3C/g%3E%3C/svg%3E')}
#messages[data-wallpaper=peaks]{background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20700%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Crect%20width%3D%22400%22%20height%3D%22700%22%20fill%3D%22%230b101d%22/%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%2290%22%20r%3D%2226%22%20fill%3D%22%23e8ecf8%22%20opacity%3D%22.14%22/%3E%3Cpath%20d%3D%22M0%20420l90-150%2070%20100%2060-80%20180%20210v200H0z%22%20fill%3D%22%23132033%22/%3E%3Cpath%20d%3D%22M90%20270l26%2036-16-4-10%2014-10-14-16%204zM220%20290l20%2028-12-3-8%2010-8-10-12%203z%22%20fill%3D%22%23c9d4ea%22%20opacity%3D%22.3%22/%3E%3Cpath%20d%3D%22M0%20520l120-120%2080%2080%2060-50%20140%20130v140H0z%22%20fill%3D%22%230d1524%22/%3E%3Cpath%20d%3D%22M0%20640l150-90%20110%2060%20140-50v140H0z%22%20fill%3D%22%23091018%22/%3E%3C/svg%3E'),#0b101d;background-size:cover;background-position:center}
#messages[data-wallpaper=gradient]{background:linear-gradient(155deg,#141a30 0%,#10131f 38%,#181326 68%,#0e1018 100%)}
#messages[data-wallpaper=geo]{background-color:#0c0e17;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238a94c8%22%20stroke-opacity%3D%22.09%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M60%208l46%2026v52l-46%2026-46-26V34z%22/%3E%3Cpath%20d%3D%22M60%2028l32%2018v36l-32%2018-32-18V46z%22/%3E%3Cpath%20d%3D%22M60%208v20m0%2048v18M14%2034l32%2018m28%2052l32%2018M106%2034L74%2052M46%20104l-32%2018%22/%3E%3C/g%3E%3C/svg%3E')}

/* ===== 5.06b theme surface cohesion: header, chat bg, bubbles, nav per new theme ===== */
:root[data-theme=amoled] #chatView .topbar{background:#050508!important;border-bottom-color:#ffffff10}
:root[data-theme=amoled] .messages:not([data-wallpaper]),:root[data-theme=amoled] .messages[data-wallpaper=default]{background-color:#000}
:root[data-theme=amoled] .msg.me{background:#5b4a9e}
:root[data-theme=emerald] body{background:#050d0a}
:root[data-theme=emerald] .glass{background:#0e1b15}
:root[data-theme=emerald] .auth-card{background:#0d1a14}
:root[data-theme=emerald] .bottom-nav{background:#0b1510;border-top-color:#1e352a}
:root[data-theme=emerald] .nav-item.selected{color:#5fe6ad}
:root[data-theme=emerald] .nav-item.selected:before{background:#2fd38e}
:root[data-theme=emerald] .home-search input{background:#0f1c16}
:root[data-theme=emerald] .auth-form input,:root[data-theme=emerald] .pf-input{background:#10201a;border-color:#1e352a}
:root[data-theme=emerald] #chatView .topbar{background:#0a1710!important;border-bottom-color:#ffffff10}
:root[data-theme=emerald] .messages:not([data-wallpaper]),:root[data-theme=emerald] .messages[data-wallpaper=default]{background-color:#08130e}
:root[data-theme=emerald] .msg.me{background:#177a5a}
:root[data-theme=emerald] .send-btn{background:#2fd38e;color:#06231a}
:root[data-theme=sunset] body{background:#120a08}
:root[data-theme=sunset] .glass{background:#221311}
:root[data-theme=sunset] .auth-card{background:#1e1210}
:root[data-theme=sunset] .bottom-nav{background:#180e0b;border-top-color:#3b241e}
:root[data-theme=sunset] .nav-item.selected{color:#ffb08a}
:root[data-theme=sunset] .nav-item.selected:before{background:#ff9d68}
:root[data-theme=sunset] .home-search input{background:#1d1210}
:root[data-theme=sunset] .auth-form input,:root[data-theme=sunset] .pf-input{background:#241511;border-color:#3b241e}
:root[data-theme=sunset] #chatView .topbar{background:#1a0f0c!important;border-bottom-color:#ffffff10}
:root[data-theme=sunset] .messages:not([data-wallpaper]),:root[data-theme=sunset] .messages[data-wallpaper=default]{background-color:#150c09}
:root[data-theme=sunset] .msg.me{background:#b8475a}
:root[data-theme=sunset] .send-btn{background:#ff9d68;color:#2a1408}
:root[data-theme=light] #chatView .topbar{background:#ffffff!important;border-bottom-color:#dde1ec}
:root[data-theme=light] .msg.me{background:#684fe6}
:root[data-theme=light] .send-btn{background:#7558f0;color:#ffffff}
:root[data-theme=light] #homeView .topbar-title h1{color:#181b28}
:root[data-theme=light] .icon-btn{background:#f2f3f9;border-color:#dde1ec;color:#181b28}
:root[data-theme=light] .icon-btn:hover{background:#e8eaf3}
:root[data-theme=emerald] .icon-btn{background:#122019;border-color:#1e352a}
:root[data-theme=sunset] .icon-btn{background:#251612;border-color:#3b241e}
:root[data-theme=amoled] .icon-btn{background:#101119;border-color:#1e212e}

#appearanceModal .btn-ghost,#wallpaperModal .btn-ghost{width:100%;margin-top:6px}
/* Daylight bubble + header contrast fixes */
:root[data-theme=light] .msg.me{color:#ffffff}
:root[data-theme=light] .msg.me .meta,:root[data-theme=light] .msg.me .ticks{color:#ffffffd9}
:root[data-theme=light] .msg.me .ticks.read{color:#b8f5d0}
:root[data-theme=light] #chatView .topbar .icon-btn,:root[data-theme=light] #chatView .topbar-title h1{color:#181b28}
:root[data-theme=light] #chatView .topbar .icon-btn:hover{background:#eef0f6}

/*5.08: long script labels must never collide with the next control. */
html:not([lang=en]):not([lang=hi]) .nav-item span{display:block;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.25;min-height:25px;text-align:center;letter-spacing:0}
html:not([lang=en]):not([lang=hi]) .nav-item{justify-content:flex-start;gap:5px}
html:not([lang=en]):not([lang=hi]) :is(#homeView,#statusView,#channelsView,#settingsView){padding-bottom:calc(101px + env(safe-area-inset-bottom,0px))}
html:not([lang=en]):not([lang=hi]) .chat-filters{overflow-x:auto;scrollbar-width:thin}
html:not([lang=en]):not([lang=hi]) .chat-filters button{flex-shrink:0;font-family:inherit}
.auth-legal{font-size:12.5px;color:var(--muted,#8696a0);margin:10px 2px 0;text-align:center;line-height:1.5}
.auth-legal a{color:var(--accent,#f0b429);text-decoration:none}
.auth-legal a:hover{text-decoration:underline}

.suspended-overlay{position:fixed;inset:0;background:#0b141a;z-index:999;display:flex;align-items:center;justify-content:center;padding:24px}
.suspended-card{max-width:420px;text-align:center}
.suspended-card h1{font-size:22px;margin:0 0 10px}
.suspended-card p{color:#8696a0;font-size:14.5px;line-height:1.6}
.suspended-card .suspended-hint{margin:14px 0 22px}
.suspended-card .suspended-hint a{color:#53bdeb}
.vtick{display:inline-block;vertical-align:-2px;margin-left:3px}
.report-shot-thumb{max-width:180px;max-height:120px;border-radius:8px;border:1px solid var(--line,#2a3942);margin:8px 0}
.appeal-form textarea{width:100%;background:var(--panel,#111b21);color:var(--text,#e9edef);border:1px solid var(--line,#2a3942);border-radius:10px;padding:10px;font:inherit;margin-top:8px}
.announce-bar{position:fixed;top:0;left:0;right:0;z-index:900;display:flex;align-items:center;gap:8px;background:var(--accent1);color:#fff;padding:8px 12px;font-size:14px}
.announce-bar.hidden{display:none}
.announce-x{margin-left:auto;background:none;border:0;color:#fff;font-size:20px;cursor:pointer;line-height:1}
.suspended-overlay{background:radial-gradient(1200px 600px at 50% -10%,rgba(124,92,255,.18),transparent 60%),var(--bg,#0b141a)}
.suspended-card{background:linear-gradient(160deg,rgba(124,92,255,.14),rgba(83,189,235,.06) 55%,transparent);border:1px solid rgba(124,92,255,.35);border-radius:22px;padding:36px 28px;box-shadow:0 18px 60px rgba(0,0,0,.45);max-width:420px;text-align:center}
.susp-icon{display:inline-flex;padding:16px;border-radius:50%;margin-bottom:10px;color:#8f7bff;background:rgba(124,92,255,.12);border:1px solid rgba(124,92,255,.4)}
.susp-icon.banned{color:#ff6b6b;background:rgba(255,107,107,.1);border-color:rgba(255,107,107,.4)}
.susp-icon.deleted{color:#f0a35e;background:rgba(240,163,94,.1);border-color:rgba(240,163,94,.4)}
.susp-icon.maint{color:#53bdeb;background:rgba(83,189,235,.1);border-color:rgba(83,189,235,.4)}
.h-icon{display:flex;align-items:center;gap:8px}
.h-ic{color:var(--accent1)}
.appeal-form textarea,.modal textarea,.modal input[type=text]{border-radius:12px}
/* ---- premium status screens v2 ---- */
@keyframes suspIn{from{opacity:0;transform:translateY(16px) scale(.975)}to{opacity:1;transform:none}}
@keyframes suspGlow{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes barDrop{from{transform:translateY(-100%)}to{transform:none}}
@keyframes modalPop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.suspended-overlay{background:radial-gradient(900px 500px at 50% -8%,color-mix(in srgb,var(--accent1) 20%,transparent),transparent 62%),var(--bg);display:flex;align-items:center;justify-content:center;padding:20px}
.suspended-card{position:relative;background:linear-gradient(165deg,color-mix(in srgb,var(--accent1) 13%,transparent),color-mix(in srgb,var(--accent2) 5%,transparent) 55%,transparent),var(--panel,#111b21);border:1px solid color-mix(in srgb,var(--accent1) 38%,transparent);border-radius:24px;padding:40px 32px 32px;box-shadow:0 24px 70px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.06);max-width:430px;width:100%;text-align:center;animation:suspIn .45s cubic-bezier(.22,.9,.3,1) both}
.susp-icon{position:relative;display:inline-grid;place-items:center;width:84px;height:84px;border-radius:50%;margin-bottom:14px;color:#8f7bff;background:color-mix(in srgb,#8f7bff 12%,transparent);border:1px solid color-mix(in srgb,#8f7bff 45%,transparent)}
.susp-icon::after{content:"";position:absolute;inset:-12px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,currentColor 34%,transparent),transparent 68%);z-index:-1;animation:suspGlow 2.8s ease-in-out infinite}
.susp-icon svg{width:46px;height:46px}
.susp-icon.banned{color:#ff6b6b;background:rgba(255,107,107,.1);border-color:rgba(255,107,107,.42)}
.susp-icon.deleted{color:#f0a35e;background:rgba(240,163,94,.1);border-color:rgba(240,163,94,.42)}
.susp-icon.maint{color:#53bdeb;background:rgba(83,189,235,.1);border-color:rgba(83,189,235,.42)}
.susp-chip{display:inline-block;padding:3px 13px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;margin-bottom:12px;color:#8f7bff;background:color-mix(in srgb,#8f7bff 12%,transparent);border:1px solid color-mix(in srgb,#8f7bff 40%,transparent)}
.susp-chip.banned{color:#ff6b6b;background:rgba(255,107,107,.1);border-color:rgba(255,107,107,.4)}
.susp-chip.deleted{color:#f0a35e;background:rgba(240,163,94,.1);border-color:rgba(240,163,94,.4)}
.susp-chip.maint{color:#53bdeb;background:rgba(83,189,235,.1);border-color:rgba(83,189,235,.4)}
.suspended-card h1{font-size:25px;font-weight:700;letter-spacing:-.4px;margin:0 0 8px;color:var(--txt)}
.suspended-card p{font-size:14px;line-height:1.65;color:var(--dim);margin:0 auto 6px;max-width:300px}
.suspended-hint{font-size:13px!important}
.suspended-card .btn-primary{background:var(--grad);border:0;box-shadow:0 8px 24px color-mix(in srgb,var(--accent1) 40%,transparent);transition:transform .15s,box-shadow .15s,opacity .15s}
.suspended-card .btn-primary:hover{transform:translateY(-1px);box-shadow:0 12px 30px color-mix(in srgb,var(--accent1) 50%,transparent)}
.suspended-card .btn-primary:active{transform:scale(.98)}
.suspended-card .btn-primary:disabled{opacity:.55;transform:none;box-shadow:none}
.suspended-card .btn-ghost{border:1px solid var(--stroke);transition:border-color .15s,background .15s}
.suspended-card .btn-ghost:hover{border-color:color-mix(in srgb,var(--accent1) 55%,transparent)}
.appeal-form{margin-top:14px;text-align:left}
.appeal-form textarea{border-radius:14px;transition:border-color .15s,box-shadow .15s}
.appeal-form textarea:focus{outline:none;border-color:var(--accent1);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent1) 22%,transparent)}
.appeal-form .btn-primary{background:var(--grad);border:0;width:100%;margin-top:10px;box-shadow:0 8px 24px color-mix(in srgb,var(--accent1) 40%,transparent);transition:transform .15s,opacity .15s}
.appeal-form .btn-primary:hover{transform:translateY(-1px)}
.appeal-form .btn-primary:disabled{opacity:.55;transform:none;box-shadow:none}
.report-shot-thumb{border-radius:12px;border:1px solid var(--stroke);box-shadow:0 6px 18px rgba(0,0,0,.35)}
/* announcement bar */
.announce-bar{background:var(--grad);box-shadow:0 4px 20px color-mix(in srgb,var(--accent1) 35%,transparent);backdrop-filter:blur(8px);animation:barDrop .35s cubic-bezier(.22,.9,.3,1) both;font-weight:500;z-index:1200}
.announce-x{border-radius:50%;width:26px;height:26px;display:grid;place-items:center;transition:background .15s}
.announce-x:hover{background:rgba(255,255,255,.18)}
/* modal entrance + premium inputs (report/appeal etc.) */
.modal-overlay.open .modal{animation:modalPop .3s cubic-bezier(.22,.9,.3,1) both}
.modal select,.modal textarea{transition:border-color .15s,box-shadow .15s}
.modal select:focus,.modal textarea:focus{outline:none;border-color:var(--accent1);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent1) 22%,transparent)}
#reportModal .btn-primary,#reportSend{background:var(--grad);border:0;box-shadow:0 8px 22px color-mix(in srgb,var(--accent1) 38%,transparent);transition:transform .15s,opacity .15s}
#reportSend:hover{transform:translateY(-1px)}
#reportSend:disabled{opacity:.55;transform:none;box-shadow:none}
.reduce-motion .suspended-card,.reduce-motion .announce-bar,.reduce-motion .modal-overlay.open .modal{animation:none!important}
.reduce-motion .susp-icon::after{animation:none!important;opacity:.5}

/* v5.14 notices: official one-way channel */
.icon-btn{position:relative;}
.notice-dot{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,#f43f5e,#fb7185);box-shadow:0 0 6px rgba(244,63,94,.8);border:1.5px solid var(--bg);}
.notice-dot.hidden{display:none;}
.notices-scroll{overflow-y:auto;height:calc(100% - 56px);padding:14px 14px 28px;display:flex;flex-direction:column;gap:12px;}
.notices-official{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:color-mix(in srgb,var(--accent1) 10%,transparent);border:1px solid color-mix(in srgb,var(--accent1) 25%,transparent);}
.notices-official-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff;background:linear-gradient(135deg,var(--accent1),#4f8cff);box-shadow:0 4px 14px color-mix(in srgb,var(--accent1) 40%,transparent);}
.notices-official b{font-size:16px;display:flex;align-items:center;gap:4px;}
.notices-official small{display:block;color:var(--dim);font-size:12px;margin-top:2px;}
.notice-card{border-radius:16px;padding:12px 14px;background:var(--panel);border:1px solid color-mix(in srgb,var(--accent1) 14%,transparent);box-shadow:0 2px 10px rgba(0,0,0,.12);animation:modalPop .25s ease both;}
.notice-card.warning{border-color:color-mix(in srgb,#f43f5e 45%,transparent);}
.notice-card.help{border-color:color-mix(in srgb,#10b981 45%,transparent);}
.notice-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.notice-chip{font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;padding:3px 9px;border-radius:999px;color:#fff;background:linear-gradient(135deg,#4f8cff,#7c5cff);}
.notice-chip.warning{background:linear-gradient(135deg,#f43f5e,#fb7185);}
.notice-chip.help{background:linear-gradient(135deg,#10b981,#34d399);}
.notice-when{font-size:11px;color:var(--dim);}
.notice-text{margin:0;color:var(--txt);font-size:14.5px;line-height:1.45;white-space:pre-wrap;word-break:break-word;}
.notices-empty{text-align:center;color:var(--dim);margin-top:32px;font-size:14px;}
.notices-foot{text-align:center;color:var(--dim);font-size:12px;margin-top:8px;padding:0 18px;line-height:1.5;}
@media (prefers-reduced-motion:reduce){.notice-card{animation:none;}}

/* v5.16 verification request - premium pass */
.verify-scroll{overflow-y:auto;height:calc(100% - 56px);padding:22px 16px 40px;display:flex;flex-direction:column;background:radial-gradient(420px 300px at 50% -60px,color-mix(in srgb,var(--accent1) 9%,transparent),transparent 70%);}
.verify-card{position:relative;background:linear-gradient(160deg,color-mix(in srgb,var(--panel) 92%,transparent),var(--panel));border:1px solid var(--stroke);border-radius:22px;padding:30px 22px;text-align:center;box-shadow:0 12px 36px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05);animation:verifyIn .45s cubic-bezier(.2,.8,.25,1) both;}
.verify-card.vstate::before{content:'';position:absolute;inset:-1px;border-radius:22px;padding:1px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent1) 45%,transparent),transparent 40%,transparent 60%,color-mix(in srgb,var(--accent1) 30%,transparent));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;}
@keyframes verifyIn{from{opacity:0;transform:translateY(16px) scale(.97);}to{opacity:1;transform:none;}}
.verify-card h2{margin:16px 0 10px;font-size:23px;font-weight:700;letter-spacing:-.5px;background:linear-gradient(120deg,var(--txt),color-mix(in srgb,var(--txt) 70%,var(--accent1)));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
.verify-card p{color:var(--dim);font-size:13.5px;line-height:1.6;margin:0 auto 16px;max-width:340px;}
.verify-consent{font-size:12px;border-left:2px solid var(--accent1);padding:12px 14px;background:color-mix(in srgb,var(--accent1) 8%,transparent);border-radius:10px;text-align:left;max-width:340px;}
.verify-icon{position:relative;display:grid;place-items:center;width:96px;height:96px;margin:0 auto;border-radius:50%;color:var(--accent1);background:radial-gradient(circle at 32% 28%,color-mix(in srgb,var(--accent1) 26%,transparent),color-mix(in srgb,var(--accent1) 9%,transparent) 70%);box-shadow:0 0 44px color-mix(in srgb,var(--accent1) 38%,transparent),inset 0 1px 0 rgba(255,255,255,.14);animation:verifyFloat 3.6s ease-in-out infinite;}
@keyframes verifyFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-5px);}}
.verify-ring{position:absolute;inset:-7px;border-radius:50%;border:1.5px dashed color-mix(in srgb,currentColor 45%,transparent);animation:verifySpin 14s linear infinite;color:inherit;}
.verify-ring.pulse{animation:verifyPulse 2.2s ease-out infinite;border-style:solid;}
@keyframes verifySpin{to{transform:rotate(360deg);}}
@keyframes verifyPulse{0%{transform:scale(.94);opacity:.9;}70%{transform:scale(1.12);opacity:0;}100%{opacity:0;}}
.verify-icon.ok{color:#10b981;background:radial-gradient(circle at 32% 28%,#10b98142,#10b98114 70%);box-shadow:0 0 44px #10b98155,inset 0 1px 0 rgba(255,255,255,.14);}
.verify-icon.wait{color:#f59e0b;background:radial-gradient(circle at 32% 28%,#f59e0b42,#f59e0b14 70%);box-shadow:0 0 44px #f59e0b55,inset 0 1px 0 rgba(255,255,255,.14);}
.verify-icon.no{color:#f43f5e;background:radial-gradient(circle at 32% 28%,#f43f5e42,#f43f5e14 70%);box-shadow:0 0 44px #f43f5e55,inset 0 1px 0 rgba(255,255,255,.14);}
.vchip{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;margin-top:14px;}
.vchip.ok{color:#34d399;background:#10b9811c;border:1px solid #10b9813d;}
.vchip.wait{color:#fbbf24;background:#f59e0b1c;border:1px solid #f59e0b3d;}
.vchip.no{color:#fb7185;background:#f43f5e1c;border:1px solid #f43f5e3d;}
.vsteps{display:flex;justify-content:center;gap:6px;margin:6px auto 18px;max-width:360px;}
.vstep{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10.5px;font-weight:600;color:var(--dim);position:relative;padding-top:2px;}
.vstep i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-style:normal;font-size:12px;background:color-mix(in srgb,var(--txt) 8%,transparent);border:1px solid var(--stroke);transition:all .3s;}
.vstep.cur{color:var(--txt);}
.vstep.cur i{background:var(--grad,var(--accent1));color:#fff;border-color:transparent;box-shadow:0 0 16px color-mix(in srgb,var(--accent1) 55%,transparent);}
.vstep.done{color:var(--accent1);}
.vstep.done i{background:color-mix(in srgb,var(--accent1) 18%,transparent);color:var(--accent1);border-color:color-mix(in srgb,var(--accent1) 40%,transparent);}
.vstep:not(:last-child)::after{content:'';position:absolute;top:15px;left:calc(50% + 20px);width:calc(100% - 40px);height:1.5px;background:var(--stroke);}
.vstep.done:not(:last-child)::after{background:color-mix(in srgb,var(--accent1) 50%,transparent);}
.vprog{display:flex;justify-content:center;gap:8px;margin:2px auto 16px;max-width:340px;}
.vprog span{flex:1;font-size:10.5px;font-weight:600;color:var(--dim);padding-top:10px;position:relative;}
.vprog span::before{content:'';position:absolute;top:0;left:10%;right:10%;height:3px;border-radius:3px;background:var(--stroke);}
.vprog span.done{color:var(--accent1);}
.vprog span.done::before{background:var(--accent1);}
.vprog span.cur{color:var(--txt);}
.vprog span.cur::before{background:var(--grad,var(--accent1));box-shadow:0 0 8px color-mix(in srgb,var(--accent1) 60%,transparent);animation:verifyBar 1.6s ease-in-out infinite;}
@keyframes verifyBar{0%,100%{opacity:1;}50%{opacity:.45;}}
.verify-reason{max-width:320px;margin:0 auto 18px;padding:12px 16px;border-radius:12px;background:color-mix(in srgb,#f43f5e 7%,transparent);border:1px solid #f43f5e2e;text-align:left;}
.verify-reason b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:#fb7185;margin-bottom:5px;}
.verify-reason p{margin:0!important;font-size:13px;color:var(--txt);max-width:none;}
.btn-gradient{background:var(--grad,linear-gradient(135deg,#4a6fd4,#53bdeb));border:none;color:#fff;font-weight:600;padding:12px 26px;border-radius:13px;box-shadow:0 6px 20px color-mix(in srgb,var(--accent1) 40%,transparent);transition:transform .15s,box-shadow .15s;}
.btn-gradient:hover{transform:translateY(-1px);box-shadow:0 9px 26px color-mix(in srgb,var(--accent1) 50%,transparent);}
.btn-gradient:active{transform:translateY(0);}
.verify-cam{width:100%;max-width:300px;border-radius:16px;margin:10px auto;display:block;background:#000;border:1px solid var(--stroke);box-shadow:0 8px 26px rgba(0,0,0,.3),0 0 0 4px color-mix(in srgb,var(--accent1) 12%,transparent);}
.verify-card .row{display:flex;gap:10px;justify-content:center;margin-top:12px;}
.verify-rec-dot{color:#f43f5e;font-weight:600;font-size:13px;}
@media (prefers-reduced-motion:reduce){.verify-card,.verify-icon,.verify-ring,.vprog span.cur::before{animation:none;}}
/* Nymvo - premium dark chat UI */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root {
  --bg:#0b0b14; --panel:rgba(255,255,255,.045); --stroke:rgba(255,255,255,.09);
  --txt:#f2f2fa; --dim:#9a9ab2; --accent1:#7c5cff; --accent2:#4f8cff; --accent3:#c05cff;
  --grad:linear-gradient(135deg,#7c5cff,#4f8cff);
  --danger:#ff5c7a;
}
html,body { height:100%; }
body {
  background:var(--bg); color:var(--txt);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  overflow:hidden; overscroll-behavior:none;
}

/* ambient orbs */
.bg-orbs { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.orb { position:absolute; border-radius:50%; filter:blur(90px); opacity:.28; animation:drift 18s ease-in-out infinite alternate; }
.o1 { width:340px; height:340px; background:#7c5cff; top:-80px; left:-100px; }
.o2 { width:300px; height:300px; background:#4f8cff; bottom:-60px; right:-90px; animation-delay:-6s; }
.o3 { width:220px; height:220px; background:#c05cff; top:40%; left:60%; opacity:.16; animation-delay:-12s; }
@keyframes drift { from { transform:translate(0,0) scale(1);} to { transform:translate(50px,40px) scale(1.15);} }

.glass { background:var(--panel); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border:1px solid var(--stroke); }

/* views */
.view { position:fixed; inset:0; z-index:1; display:flex; flex-direction:column; opacity:0; pointer-events:none; transform:translateY(12px); transition:opacity .28s ease, transform .28s ease; }
.view.active { opacity:1; pointer-events:auto; transform:none; }
.hidden { display:none !important; }

/* ===== auth ===== */
#authView { align-items:center; justify-content:center; padding:20px; }
.auth-card { width:100%; max-width:400px; border-radius:26px; padding:34px 28px 26px; box-shadow:0 24px 60px rgba(0,0,0,.45); animation:cardIn .5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes cardIn { from { opacity:0; transform:translateY(26px) scale(.96);} to { opacity:1; transform:none;} }
.brand { text-align:center; margin-bottom:22px; }
.brand-logo { width:74px; height:74px; border-radius:22px; box-shadow:0 10px 30px rgba(124,92,255,.45); }
.brand h1 { font-size:30px; font-weight:800; letter-spacing:.5px; margin-top:12px; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tagline { color:var(--dim); font-size:13.5px; margin-top:3px; }
.auth-tabs { position:relative; display:flex; background:rgba(255,255,255,.05); border-radius:14px; padding:4px; margin-bottom:20px; }
.auth-tab { flex:1; z-index:1; background:none; border:0; color:var(--dim); font:600 14px 'Inter',sans-serif; padding:10px 0; cursor:pointer; transition:color .25s; }
.auth-tab.active { color:#fff; }
.tab-ink { position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); border-radius:11px; background:var(--grad); transition:transform .3s cubic-bezier(.4,1.4,.4,1); }
.auth-tabs.signup .tab-ink { transform:translateX(100%); }
.auth-form { display:flex; flex-direction:column; gap:14px; }
.auth-form label { display:flex; flex-direction:column; gap:6px; font:600 13px 'Inter',sans-serif; color:var(--dim); }
.auth-form small { font-weight:400; opacity:.75; }
.auth-form input {
  background:rgba(255,255,255,.055); border:1px solid var(--stroke); border-radius:13px;
  padding:13px 15px; color:var(--txt); font:500 15px 'Inter',sans-serif; outline:none; transition:border-color .2s, box-shadow .2s;
}
.auth-form input:focus { border-color:var(--accent1); box-shadow:0 0 0 3px rgba(124,92,255,.22); }
.btn-primary {
  margin-top:6px; border:0; border-radius:14px; padding:14px; cursor:pointer;
  background:var(--grad); color:#fff; font:700 15.5px 'Inter',sans-serif; letter-spacing:.3px;
  box-shadow:0 10px 26px rgba(96,110,255,.4); transition:transform .15s, box-shadow .2s, opacity .2s;
}
.btn-primary:active { transform:scale(.97); }
.btn-primary:disabled { opacity:.55; cursor:default; }
.auth-error { min-height:20px; margin-top:12px; text-align:center; color:var(--danger); font-size:13.5px; font-weight:500; }
.auth-note { margin-top:10px; text-align:center; color:var(--dim); font-size:12.5px; }

/* ===== topbar ===== */
.topbar { display:flex; align-items:center; gap:12px; padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 12px; border-radius:0 0 22px 22px; border-top:0; z-index:5; }
.topbar-logo { width:38px; height:38px; border-radius:12px; }
.topbar-title { flex:1; min-width:0; }
.topbar-title h1 { font-size:18px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-title p { font-size:12.5px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-title p.typing { color:#3ddc84; font-style:italic; }
.icon-btn { display:grid; place-items:center; width:40px; height:40px; border-radius:13px; border:1px solid var(--stroke); background:rgba(255,255,255,.05); color:var(--txt); cursor:pointer; transition:background .2s, transform .15s; flex:none; }
.icon-btn:active { transform:scale(.92); }

/* ===== user list ===== */
.user-list { flex:1; overflow-y:auto; padding:14px 14px 24px; display:flex; flex-direction:column; gap:8px; }
.user-row { display:flex; align-items:center; gap:13px; padding:12px 14px; border-radius:18px; border:1px solid transparent; background:rgba(255,255,255,.035); cursor:pointer; transition:background .2s, transform .15s; animation:rowIn .35s ease backwards; }
.user-row:active { transform:scale(.98); background:rgba(255,255,255,.07); }
@keyframes rowIn { from { opacity:0; transform:translateY(10px);} to { opacity:1; transform:none;} }
.avatar { position:relative; display:grid; place-items:center; width:50px; height:50px; border-radius:16px; font:700 19px 'Inter',sans-serif; color:#fff; flex:none; text-transform:uppercase; }
.avatar.sm { width:42px; height:42px; border-radius:14px; font-size:16px; }
.avatar .dot { position:absolute; right:-2px; bottom:-2px; width:13px; height:13px; border-radius:50%; background:#3ddc84; border:2.5px solid #101018; display:none; }
.avatar.online .dot { display:block; }
.user-meta { flex:1; min-width:0; }
.user-meta .name { font:600 15.5px 'Inter',sans-serif; display:flex; align-items:center; gap:7px; }
.user-meta .preview { font-size:13px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.user-side { text-align:right; flex:none; }
.user-side .time { font-size:11.5px; color:var(--dim); }
.user-side .unread { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; margin-top:5px; border-radius:10px; background:var(--grad); font:700 11.5px 'Inter',sans-serif; }
.empty-state { flex:1; display:grid; place-items:center; text-align:center; color:var(--dim); font-size:14.5px; line-height:1.7; padding:20px; }

/* ===== chat ===== */
#chatView .topbar { flex:none; }
.messages { flex:1; overflow-y:auto; padding:16px 14px 10px; display:flex; flex-direction:column; gap:4px; }
.msg { max-width:78%; padding:9px 13px 7px; border-radius:18px; font-size:15px; line-height:1.45; word-break:break-word; white-space:pre-wrap; animation:msgIn .22s ease backwards; position:relative; }
@keyframes msgIn { from { opacity:0; transform:translateY(8px) scale(.97);} to { opacity:1; transform:none;} }
.msg .meta { display:flex; justify-content:flex-end; align-items:center; gap:4px; font-size:10.5px; margin-top:3px; opacity:.75; }
.msg .edited-tag { font-style:italic; opacity:.7; font-size:10px; }
.msg code.mono { background:rgba(255,255,255,.09); border-radius:4px; padding:1px 5px; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.92em; }
.vspeed { background:rgba(255,255,255,.08); border:none; color:inherit; border-radius:10px; padding:2px 8px; font-size:11px; font-weight:600; cursor:pointer; opacity:.85; }
.vspeed:hover { opacity:1; background:rgba(255,255,255,.14); }
.search-bar { display:flex; align-items:center; gap:8px; margin:0 12px 8px; padding:8px 12px; border-radius:14px; }
.search-bar input { flex:1; background:none; border:none; outline:none; color:inherit; font-size:14.5px; }
.search-bar button { background:none; border:none; color:inherit; opacity:.6; cursor:pointer; font-size:14px; }
.search-bar.hidden { display:none; }
.fwd-tag { font-size:11px; font-style:italic; opacity:.6; margin-bottom:2px; }
.fwd-list { max-height:50vh; overflow-y:auto; margin:10px -6px 4px; }
.avatar.lg { width:84px; height:84px; font-size:34px; }
.avatar-img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.pf-photo-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:14px; }
.pf-label { display:block; font-size:12px; opacity:.6; margin:10px 0 4px; }
.pf-input { width:100%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:10px 12px; color:inherit; font-size:14.5px; outline:none; }
.pf-input:focus { border-color:rgba(124,92,255,.6); }
.pf-user { text-align:center; font-size:12.5px; opacity:.55; margin-top:12px; }
#meLine { cursor:pointer; }
#meLine:hover { opacity:.85; }
.msg.them { align-self:flex-start; background:rgba(255,255,255,.07); border:1px solid var(--stroke); border-bottom-left-radius:6px; }
.msg.me { align-self:flex-end; background:var(--grad); border-bottom-right-radius:6px; box-shadow:0 6px 18px rgba(96,110,255,.3); }
.msg .ticks { font-size:11px; letter-spacing:-2px; }
.msg .ticks.read { color:#a5f3c8; opacity:1; }
.day-sep { align-self:center; margin:10px 0 6px; padding:4px 13px; border-radius:11px; background:rgba(255,255,255,.06); color:var(--dim); font-size:11.5px; font-weight:600; }

/* composer */
.composer { display:flex; gap:9px; align-items:center; margin:8px 12px calc(env(safe-area-inset-bottom,0px) + 12px); padding:8px 8px 8px 16px; border-radius:22px; }
.composer input { flex:1; background:none; border:0; outline:none; color:var(--txt); font:500 15.5px 'Inter',sans-serif; min-width:0; }
.composer input::placeholder { color:var(--dim); }
.send-btn { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:16px; background:var(--grad); color:#fff; cursor:pointer; box-shadow:0 6px 16px rgba(96,110,255,.4); transition:transform .15s, opacity .2s; flex:none; }
.send-btn:active { transform:scale(.9); }
.send-btn:disabled { opacity:.45; }

/* group chat extras */
.msg .sender { font-size:12px; font-weight:700; margin-bottom:2px; }
.mention { color:#8fb7ff; font-weight:700; background:rgba(124,92,255,.16); border-radius:5px; padding:0 3px; }
.msg.me .mention { color:#fff; background:rgba(255,255,255,.2); }

/* modal */
.modal-overlay { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:20px; background:rgba(4,4,10,.6); backdrop-filter:blur(6px); opacity:0; pointer-events:none; transition:opacity .25s; }
.modal-overlay.open { opacity:1; pointer-events:auto; }
.modal { width:100%; max-width:400px; border-radius:22px; padding:24px 22px; box-shadow:0 24px 60px rgba(0,0,0,.5); transform:translateY(14px) scale(.97); transition:transform .25s cubic-bezier(.2,.9,.3,1.15); }
.modal-overlay.open .modal { transform:none; }
.modal h2 { font-size:19px; font-weight:700; margin-bottom:14px; }
.modal input[type=text] { width:100%; background:rgba(255,255,255,.055); border:1px solid var(--stroke); border-radius:13px; padding:13px 15px; color:var(--txt); font:500 15px 'Inter',sans-serif; outline:none; margin-bottom:14px; }
.modal input[type=text]:focus { border-color:var(--accent1); box-shadow:0 0 0 3px rgba(124,92,255,.22); }
.member-list { max-height:220px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.member-pick { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:13px; background:rgba(255,255,255,.04); border:1px solid transparent; cursor:pointer; font:500 14.5px 'Inter',sans-serif; transition:background .15s; }
.member-pick:has(input:checked) { background:rgba(124,92,255,.16); border-color:rgba(124,92,255,.45); }
.member-pick small { color:var(--dim); font-weight:400; }
.member-pick input { accent-color:var(--accent1); width:17px; height:17px; }
.modal .dim { color:var(--dim); font-size:13.5px; text-align:center; }
.modal-actions { display:flex; gap:10px; }
.modal-actions .btn-primary { flex:1; margin-top:0; }
.btn-ghost { flex:1; border:1px solid var(--stroke); border-radius:14px; padding:14px; cursor:pointer; background:rgba(255,255,255,.05); color:var(--txt); font:600 15px 'Inter',sans-serif; transition:background .2s; }

/* toast */
.toast { position:fixed; left:50%; bottom:88px; transform:translate(-50%,20px); z-index:50; background:#1c1c2b; border:1px solid var(--stroke); color:var(--txt); padding:11px 20px; border-radius:14px; font-size:13.5px; font-weight:500; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; box-shadow:0 12px 30px rgba(0,0,0,.5); }
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (min-width:640px) {
  #homeView .user-list, #homeView .stories-rail, #chatView .messages, #chatView .composer, .topbar { max-width:640px; width:100%; margin-left:auto; margin-right:auto; }
  .topbar { border-radius:0 0 22px 22px; }
  #chatView .composer { margin-bottom:16px; }
}

/* ===== batch 4: media (photos + voice notes) ===== */

/* attach button in composer */
.attach-btn { display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:14px; background:transparent; color:var(--dim); cursor:pointer; transition:color .2s, background .2s, transform .15s; flex:none; }
.attach-btn:active { transform:scale(.88); color:var(--txt); }
.composer { padding-left:8px; }

/* attach bottom sheet */
.attach-option.is-disabled{opacity:.42;cursor:not-allowed;filter:saturate(.4)}
.attach-sheet { position:fixed; left:50%; bottom:calc(env(safe-area-inset-bottom,0px) + 84px); transform:translate(-50%,16px) scale(.95); display:flex; gap:14px; padding:16px 18px; border-radius:24px; box-shadow:0 20px 50px rgba(0,0,0,.5); opacity:0; transition:opacity .22s, transform .22s cubic-bezier(.2,.9,.3,1.15); }
.modal-overlay.open .attach-sheet { opacity:1; transform:translate(-50%,0) scale(1); }
#attachSheet { display:block; place-items:initial; background:transparent; backdrop-filter:none; }
.attach-option { display:flex; flex-direction:column; align-items:center; gap:8px; border:0; background:none; color:var(--txt); font:600 12.5px 'Inter',sans-serif; cursor:pointer; }
.attach-ico { display:grid; place-items:center; width:58px; height:58px; border-radius:20px; color:#fff; box-shadow:0 8px 20px rgba(0,0,0,.35); transition:transform .15s; }
.attach-option:active .attach-ico { transform:scale(.9); }
.attach-ico.photo { background:linear-gradient(135deg,#7c5cff,#4f46e5); }
.attach-ico.voice { background:linear-gradient(135deg,#22c55e,#0d9488); }

/* photo preview modal */
#photoPreview { width:100%; max-height:46vh; object-fit:contain; border-radius:16px; margin-bottom:14px; background:rgba(0,0,0,.3); }

/* voice recorder modal */
.voice-modal { max-width:330px; }
.rec-row { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.rec-dot { width:13px; height:13px; border-radius:50%; background:#ef4444; animation:recPulse 1.1s ease-in-out infinite; flex:none; }
@keyframes recPulse { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(1.35); opacity:.55; } }
.rec-time { font:700 21px 'Inter',sans-serif; font-variant-numeric:tabular-nums; }
.rec-hint { color:var(--dim); font-size:13px; margin-left:auto; }

/* image message bubble */
.msg.has-img { padding:5px; max-width:min(74vw,330px); }
.msg .msg-img { display:block; width:100%; max-width:318px; border-radius:13px; cursor:pointer; }
.msg .media-cap { padding:7px 8px 2px; }
.msg.has-img .meta { padding:0 7px 3px; }

/* voice message bubble */
.voice-bubble { display:flex; align-items:center; gap:10px; min-width:190px; }
.vplay { display:grid; place-items:center; width:38px; height:38px; border:0; border-radius:50%; background:rgba(255,255,255,.18); color:#fff; cursor:pointer; flex:none; transition:transform .15s, background .2s; }
.msg.them .vplay { background:var(--grad); }
.vplay:active { transform:scale(.88); }
.vtrack { flex:1; height:4px; border-radius:4px; background:rgba(255,255,255,.22); overflow:hidden; }
.msg.them .vtrack { background:rgba(255,255,255,.12); }
.vfill { display:block; height:100%; width:0%; border-radius:4px; background:#fff; transition:width .25s linear; }
.msg.them .vfill { background:var(--accent1); }
.vdur { font-size:12px; opacity:.85; font-variant-numeric:tabular-nums; flex:none; }

/* fullscreen image viewer */
.img-viewer { position:fixed; inset:0; z-index:80; display:grid; place-items:center; background:rgba(2,2,8,.92); backdrop-filter:blur(8px); opacity:0; pointer-events:none; transition:opacity .25s; cursor:zoom-out; }
.img-viewer.open { opacity:1; pointer-events:auto; }
.img-viewer img { max-width:94vw; max-height:88vh; border-radius:14px; box-shadow:0 30px 80px rgba(0,0,0,.6); }

/* reply quote inside bubble */
.reply-quote { display:block; border-left:3px solid rgba(255,255,255,.45); background:rgba(0,0,0,.25); border-radius:8px; padding:5px 9px; margin-bottom:5px; font-size:12.5px; }
.msg.them .reply-quote { border-left-color:#7c5cff; background:rgba(124,92,255,.13); }
.reply-quote b { display:block; font-size:11.5px; margin-bottom:1px; }
.reply-quote span { display:block; opacity:.8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:52vw; }

/* deleted tombstone */
.msg.is-deleted { background:rgba(255,255,255,.045) !important; border:1px dashed var(--stroke); box-shadow:none; }
.deleted-body { font-style:italic; opacity:.6; font-size:13.5px; }

/* reactions pill */
.msg:has(.react-pill) { margin-bottom:13px; }
.react-pill { position:absolute; bottom:-12px; right:10px; display:flex; gap:3px; z-index:2; }
.react-pill .chip { background:#191a2b; border:1px solid var(--stroke); border-radius:11px; padding:1px 7px; font-size:12.5px; box-shadow:0 3px 10px rgba(0,0,0,.5); }
.react-pill .chip.mine { border-color:#7c5cff; background:rgba(124,92,255,.25); }

/* context menu */
.ctxmenu { position:fixed; z-index:90; min-width:215px; border-radius:16px; padding:8px; box-shadow:0 18px 50px rgba(0,0,0,.6); animation:msgIn .16s ease backwards; }
.ctx-reacts { display:flex; gap:2px; padding:2px 2px 7px; border-bottom:1px solid var(--stroke); margin-bottom:6px; }
.ctx-reacts button { background:none; border:0; font-size:21px; padding:4px 6px; cursor:pointer; border-radius:10px; transition:transform .12s, background .12s; }
.ctx-reacts button:hover { background:rgba(255,255,255,.09); transform:scale(1.18); }
.ctx-item { display:block; width:100%; text-align:left; background:none; border:0; color:var(--txt); font:500 14px 'Inter',sans-serif; padding:9px 12px; border-radius:11px; cursor:pointer; }
.ctx-item:hover { background:rgba(255,255,255,.08); }
.ctx-item.danger { color:#ff7d92; }

/* reply bar above composer */
.reply-bar { display:flex; align-items:center; gap:10px; margin:8px 12px 0; padding:9px 12px; border-radius:14px; }
.reply-bar-line { width:3px; align-self:stretch; border-radius:2px; background:linear-gradient(135deg,#7c5cff,#4f8cff); }
.reply-bar-body { flex:1; min-width:0; font-size:13px; }
.reply-bar-body b { display:block; font-size:12px; color:#9db4ff; }
.reply-bar-body span { display:block; opacity:.72; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#replyCancel { background:none; border:0; color:var(--dim); font-size:15px; cursor:pointer; padding:6px; }

/* stories rail */
.stories-rail { display:flex; gap:14px; overflow-x:auto; padding:14px 14px 6px; scrollbar-width:none; }
.stories-rail::-webkit-scrollbar { display:none; }
.story-card { display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer; flex:none; width:62px; }
.story-card span { font-size:11px; color:var(--dim); max-width:62px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.story-ring { position:relative; width:56px; height:56px; border-radius:50%; padding:2.5px; display:grid; place-items:center; }
.story-ring.fresh { background:conic-gradient(from 210deg, #7c5cff, #ff5c8a, #ffb35c, #4f8cff, #7c5cff); }
.story-ring.seen { background:rgba(255,255,255,.14); }
.story-ring.empty { background:rgba(255,255,255,.09); border:1.5px dashed rgba(255,255,255,.25); }
.story-ring .avatar { width:100%; height:100%; border:2.5px solid #0c0c16; }
.story-plus { position:absolute; bottom:0; right:0; width:19px; height:19px; border-radius:50%; background:var(--grad); color:#fff; font-size:14px; font-weight:700; display:grid; place-items:center; border:2px solid #0c0c16; line-height:1; }

/* story composer */
.sc-tabs { display:flex; gap:6px; margin-bottom:12px; }
.sc-tab { flex:1; padding:8px; border:1px solid var(--stroke); background:none; color:var(--dim); border-radius:11px; font:600 13.5px 'Inter',sans-serif; cursor:pointer; }
.sc-tab.active { background:rgba(124,92,255,.16); border-color:#7c5cff; color:var(--txt); }
.sc-preview { border-radius:14px; min-height:120px; display:grid; place-items:center; padding:18px; margin-bottom:10px; text-align:center; }
.sc-preview span { color:#fff; font:600 16px/1.5 'Inter',sans-serif; word-break:break-word; text-shadow:0 1px 8px rgba(0,0,0,.3); }
#scText, #scCaption { width:100%; background:rgba(255,255,255,.055); border:1px solid var(--stroke); border-radius:12px; padding:11px 13px; color:var(--txt); font:500 14.5px 'Inter',sans-serif; outline:none; resize:none; margin-bottom:10px; }
#scText:focus, #scCaption:focus { border-color:var(--accent1); }
.sc-bgs { display:flex; gap:8px; margin-bottom:4px; }
.sc-bg { width:30px; height:30px; border-radius:50%; border:2px solid transparent; cursor:pointer; }
.sc-bg.sel { border-color:#fff; transform:scale(1.12); }
.sc-photo-preview { border-radius:14px; overflow:hidden; margin-bottom:10px; }
.sc-photo-preview img { width:100%; max-height:240px; object-fit:cover; display:block; }
.sc-actions { display:flex; gap:9px; justify-content:flex-end; margin-top:6px; }
.sc-btn { padding:10px 20px; border:0; border-radius:13px; background:var(--grad); color:#fff; font:600 14px 'Inter',sans-serif; cursor:pointer; box-shadow:0 4px 14px rgba(96,110,255,.35); }
.sc-btn.ghost { background:rgba(255,255,255,.07); box-shadow:none; border:1px solid var(--stroke); }
.sc-btn:disabled { opacity:.5; }

/* story viewer */
.story-viewer { position:fixed; inset:0; z-index:80; background:#06060d; display:flex; flex-direction:column; }
.sv-progress { display:flex; gap:4px; padding:calc(env(safe-area-inset-top,0px) + 10px) 10px 6px; }
.sv-seg { flex:1; height:3px; border-radius:2px; background:rgba(255,255,255,.22); overflow:hidden; }
.sv-seg i { display:block; height:100%; width:0; background:#fff; border-radius:2px; }
.sv-seg i.done { width:100%; }
.sv-head { display:flex; align-items:center; gap:10px; padding:6px 14px 10px; }
.sv-meta { flex:1; display:flex; flex-direction:column; }
.sv-meta b { font-size:14.5px; }
.sv-meta span { font-size:11.5px; color:rgba(255,255,255,.55); }
.sv-icon { background:rgba(255,255,255,.09); border:0; color:#fff; width:34px; height:34px; border-radius:50%; font-size:14px; cursor:pointer; }
.sv-body { flex:1; display:grid; place-items:center; overflow:hidden; position:relative; }
.sv-img { max-width:100%; max-height:100%; object-fit:contain; }
.sv-cap { position:absolute; bottom:34px; left:0; right:0; text-align:center; color:#fff; font-size:15px; text-shadow:0 1px 10px rgba(0,0,0,.8); padding:0 22px; }
.sv-text { position:absolute; inset:0; display:grid; place-items:center; padding:36px; }
.sv-text span { color:#fff; font:600 23px/1.55 'Inter',sans-serif; text-align:center; word-break:break-word; text-shadow:0 1px 10px rgba(0,0,0,.3); }
.sv-foot { min-height:38px; display:flex; align-items:center; justify-content:center; padding-bottom:calc(env(safe-area-inset-bottom,0px) + 6px); }
.sv-views { color:rgba(255,255,255,.75); font-size:13px; }
.sv-tap { position:absolute; top:90px; bottom:50px; left:0; width:34%; background:none; border:0; cursor:pointer; z-index:2; }
.sv-tap.right { left:auto; right:0; width:34%; }

/* multi-photo strip */
.photo-strip { display:flex; gap:8px; overflow-x:auto; padding:4px 2px; margin-top:10px; }
.photo-strip.hidden { display:none; }
.strip-thumb { width:56px; height:56px; object-fit:cover; border-radius:12px; cursor:pointer; opacity:.6; border:2px solid transparent; transition:opacity .15s, border-color .15s; flex-shrink:0; }
.strip-thumb.sel { opacity:1; border-color:var(--acc,#7c5cff); }

/* group info */
.modal-sub { color:var(--dim); font-size:14px; margin:-6px 0 12px; }
.gi-members { max-height:180px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.gi-member { padding:9px 12px; border-radius:12px; background:rgba(255,255,255,.04); font-size:14.5px; display:flex; justify-content:space-between; align-items:center; }
.gi-member span { color:var(--dim); font-size:12px; }
.btn-ghost.wide { width:100%; margin-bottom:10px; }
.btn-ghost.danger { color:#ff6b81; }

/* Public channels */
.home-nav { display:flex; padding:10px 14px 0; gap:8px; }
.home-nav button { padding:8px 16px; border-radius:20px; font-size:13px; }
.channel-about { color:var(--dim); padding:12px 18px; font-size:13px; line-height:1.5; white-space:pre-wrap; }
.channel-updates { flex:1; overflow:auto; padding:10px 14px 24px; display:flex; flex-direction:column; gap:12px; }
.channel-update { padding:16px; border:1px solid var(--stroke); border-radius:18px; background:rgba(255,255,255,.045); }
.channel-update p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; font-size:14px; }
.channel-update img { width:100%; max-height:350px; object-fit:contain; border-radius:12px; margin-bottom:10px; }
.channel-update footer { margin-top:12px; display:flex; align-items:center; gap:10px; color:var(--dim); font-size:11px; }
.channel-like { border:1px solid var(--stroke); color:var(--txt); background:transparent; border-radius:20px; padding:5px 12px; cursor:pointer; }
.channel-like.mine { color:#ff8eb1; background:rgba(255,92,138,.12); border-color:rgba(255,92,138,.35); }
.channel-composer { padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); border-radius:20px 20px 0 0; }
.channel-composer textarea { resize:vertical; min-height:65px; max-height:150px; width:100%; color:var(--txt); background:rgba(255,255,255,.04); border:1px solid var(--stroke); border-radius:12px; padding:12px; font:14px 'Inter',sans-serif; }
#channelPhotoPreview { max-width:130px; max-height:80px; border-radius:10px; }
#channelFollow { padding:8px 12px; font-size:12px; }
.channel-row { width:100%; color:var(--txt); text-align:left; font-family:inherit; }
#channelFollow { flex:none; }
.broadcast-members { max-height:36vh; overflow:auto; margin:12px 0; display:flex; flex-direction:column; gap:5px; }
.broadcast-members label { display:flex; gap:10px; align-items:center; padding:9px 8px; color:var(--txt); font-size:13px; background:rgba(255,255,255,.03); border-radius:10px; }
.broadcast-members small { color:var(--dim); }
#broadcastText { width:100%; min-height:100px; max-height:200px; resize:vertical; color:var(--txt); background:rgba(255,255,255,.05); border:1px solid var(--stroke); border-radius:12px; font:14px 'Inter',sans-serif; padding:12px; margin:8px 0 16px; }
/* Keep message actions legible over bright media and outgoing bubbles. */
.ctxmenu.glass { background:rgba(23,22,39,.97); border:1px solid rgba(255,255,255,.15); backdrop-filter:blur(18px); }
.ctx-reacts button { color:var(--txt); }
#giSuccessorWrap { display:block; color:var(--dim); font-size:12px; margin:8px 0 12px; }
#giSuccessor { display:block; width:100%; margin-top:6px; padding:10px; border:1px solid var(--stroke); border-radius:12px; background:#201d35; color:var(--txt); }
.broadcast-tools { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.broadcast-tools button { padding:8px 10px; font-size:12px; }
#broadcastPhotoPreview { max-width:150px; max-height:100px; border-radius:12px; }
#broadcastPhotoWrap { margin-bottom:12px; }
#giLeaveNote { margin-top:10px; }
.msg-video { display:block; width:100%; max-width:280px; max-height:360px; border-radius:12px; background:#000; }
#videoPreview { width:100%; max-height:38vh; border-radius:14px; margin-bottom:14px; background:#000; }
#videoStatus { line-height:1.5; min-height:22px; margin-top:8px; }

/* Calling: separate, deliberate permission surface. */
.call-eyebrow {color:#b9a9ff;letter-spacing:.12em;font-size:10px;font-weight:700;margin-bottom:12px;}
.call-start-buttons {display:flex;gap:10px;margin:18px 0 8px;}.call-start-buttons button {flex:1;}
#chatView .topbar {gap:8px;}#chatView .topbar .icon-btn {flex-shrink:0;width:36px;height:38px;}
.call-overlay {position:fixed;inset:0;z-index:120;display:flex;align-items:center;flex-direction:column;padding:calc(env(safe-area-inset-top,0px) + 30px) 22px calc(env(safe-area-inset-bottom,0px) + 28px);background:radial-gradient(ellipse at 50% 20%,#332551 0%,#100f1d 60%);overflow:auto;}
.call-overlay header {text-align:center;flex:none;}.call-overlay h1 {font-size:26px;max-width:90vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.call-overlay #callStatus {color:#c8c2d6;margin:12px 0;font-size:14px;}
.call-stage {position:relative;flex:1;min-height:180px;max-height:65vh;width:100%;max-width:680px;display:grid;place-items:center;margin:12px 0;border-radius:24px;overflow:hidden;}
.call-avatar {display:grid;place-items:center;width:120px;height:120px;font-size:48px;font-weight:700;border-radius:40px;background:linear-gradient(135deg,#8a62ff,#4c88e2);box-shadow:0 0 90px #8a62ff40;}
#callRemote:not(.hidden) {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#0b0b12;}
#callLocal {position:absolute;bottom:12px;right:12px;width:28%;max-width:140px;min-height:80px;border-radius:16px;object-fit:cover;border:2px solid #ffffff30;transform:scaleX(-1);}
.call-note {color:#a49db8;font-size:11px;text-align:center;margin:12px 0 24px;}.call-controls {display:flex;justify-content:center;gap:12px;flex-wrap:wrap;}.call-controls button {border:1px solid #ffffff20;border-radius:18px;background:#ffffff14;color:white;min-height:54px;padding:12px 20px;font:600 13px Inter,sans-serif;}.call-controls .call-end {background:#d34567;}.call-controls .call-accept {background:#167f6e;}.call-controls button[aria-pressed=true] {background:#7660ba;}
.call-history {max-height:85dvh;overflow:auto;}.call-history-row {padding:14px 0;border-bottom:1px solid #ffffff12;}.call-history-row b,.call-history-row span,.call-history-row small {display:block;}.call-history-row span {color:#c7c0d9;font-size:12px;margin:6px 0;}.call-history-row small {color:#a69dbb;font-size:10px;}#callHistoryClose {margin-top:16px;}
.call-history {display:flex;flex-direction:column;overflow:hidden;}
#callHistoryList {overflow:auto;min-height:0;}
.call-history h2,.call-history>p,#callHistoryClose {flex:none;}

.chat-filters {display:flex;gap:8px;padding:10px 14px;overflow-x:auto;flex:none;}.chat-filters button {border:1px solid #ffffff15;border-radius:20px;padding:8px 14px;background:#ffffff07;color:#bdb6cf;white-space:nowrap;font:600 12px Inter,sans-serif;}.chat-filters .selected {background:#8b65ff2d;color:#d5c5ff;border-color:#9e7cff66;}
.chat-options {display:grid;gap:8px;margin-bottom:16px;}.chat-options button {text-align:left;}.blocked-banner {padding:12px 18px;background:#6b294a44;color:#ffbfd6;font-size:12px;line-height:1.6;flex:none;}.star-tag {color:#ffd47b;margin-right:5px;}.star-row {display:block;width:100%;border:0;border-bottom:1px solid #ffffff18;padding:14px 0;background:none;color:#e4dcf5;text-align:left;font:13px Inter,sans-serif;overflow-wrap:anywhere;}#starsList,#blockedList {max-height:45vh;overflow:auto;}#blockedList button {display:block;}
@media(min-width:700px){.chat-filters{max-width:640px;width:100%;margin:auto;}}

#loadOlderBtn {flex:none;font-size:12px;padding:10px;margin:4px 20px;background:#ffffff08;border-radius:12px;}

.export-format-label {display:grid;gap:8px;font-size:13px;margin:16px 0;}#exportFormat {padding:12px;background:#292239;border:1px solid #ffffff20;color:#ede9f5;border-radius:12px;font:14px Inter,sans-serif;}.export-media-label {display:flex;align-items:start;gap:10px;font-size:12px;line-height:1.6;margin:12px 0 20px;}.export-media-label input {margin-top:3px;}#exportStatus {min-height:20px;}

.home-nav {overflow-x:auto;flex-shrink:0;}.home-nav button {white-space:nowrap;flex-shrink:0;}.privacy-toggle {display:flex;gap:18px;justify-content:space-between;align-items:start;margin:20px 0;font-size:14px;}.privacy-toggle span {flex:1;}.privacy-toggle small {display:block;font-size:11px;line-height:1.5;color:#b4abc5;margin-top:7px;}.privacy-toggle input {margin-top:3px;width:18px;height:18px;accent-color:#8b6bff;}#privacyStatus {min-height:20px;}

.document-download {display:grid;grid-template-columns:30px 1fr;gap:6px 8px;align-items:center;max-width:260px;width:100%;text-align:left;border:1px solid #ffffff18;border-radius:13px;padding:12px;background:#00000018;color:inherit;font:13px Inter,sans-serif;}.document-download span {grid-row:span 2;font-size:24px;color:#c1b0ff;}.document-download b {font-weight:600;overflow-wrap:anywhere;min-width:0;}.document-download small {font-size:10px;opacity:.75;}.attach-sheet {max-height:85dvh;overflow:auto;}

#groupInfoModal .modal,#groupEditModal .modal {max-height:90dvh;overflow:auto;}#groupEditDescription {width:100%;resize:vertical;max-height:160px;padding:10px;background:#ffffff08;color:var(--txt);border:1px solid var(--stroke);border-radius:10px;font:13px Inter,sans-serif;}#groupEditSendMode {background:#292239;color:#ede9f5;border:1px solid #ffffff20;padding:12px;border-radius:12px;}.group-photo-preview img {display:block;width:70px;height:70px;object-fit:cover;border-radius:22px;margin:12px 0;}.group-photo-tools {display:flex;gap:8px;margin-bottom:12px;}

:root[data-theme=ocean]{--bg:#07131b;--accent1:#20bba5;--accent2:#468ef3;--grad:linear-gradient(135deg,#159d9a,#417deb);--panel:rgba(120,200,220,.055);}
:root[data-theme=rose]{--bg:#180d17;--accent1:#dc72aa;--accent2:#9670e3;--grad:linear-gradient(135deg,#bd6194,#8367d7);--panel:rgba(230,150,200,.05);}
:root[data-theme=graphite]{--bg:#101115;--accent1:#8a94af;--accent2:#637499;--grad:linear-gradient(135deg,#77849f,#536487);--panel:rgba(200,210,240,.045);}
:root[data-theme=ocean] .o1{background:#159d9a;}:root[data-theme=rose] .o1{background:#bd6194;}:root[data-theme=graphite] .orb{opacity:.08;}
.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
.theme-choices {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0;}.theme-choices button {border:1px solid #ffffff20;border-radius:14px;padding:18px 12px;background:#ffffff08;color:var(--txt);font:600 12px Inter,sans-serif;}.theme-choices button.selected {border-color:#c0a4ff;background:#9874ff30;}
#messages[data-wallpaper=dots]{background-image:radial-gradient(circle,#afa0f526 1px,transparent 1.6px);background-size:22px 22px;}
#messages[data-wallpaper=mist]{background:radial-gradient(ellipse at top left,#a36fe72d,transparent 65%),radial-gradient(ellipse at bottom right,#698ae02b,transparent 65%);}
#messages[data-wallpaper=leaves]{background:repeating-linear-gradient(135deg,#3b867c0a 0,#3b867c0a 14px,transparent 14px,transparent 28px),radial-gradient(ellipse at 20% 50%,#1d675429,transparent 70%);}
#emojiBtn{width:24px;min-width:24px;flex-shrink:0;font-size:22px;color:#bab0d2;padding:0;}.composer{gap:7px;}.emoji-choices{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;max-height:50vh;overflow:auto;margin:16px 0;}.emoji-choices button{border:0;border-radius:12px;background:#ffffff08;font-size:25px;padding:8px 0;}
.notes-modal{max-height:85dvh;display:flex;flex-direction:column;}#notesList{min-height:0;overflow:auto;margin:10px 0;}.note-row{display:block;width:100%;text-align:left;border:1px solid #ffffff12;background:#ffffff06;color:var(--txt);padding:14px;border-radius:14px;margin-bottom:9px;}.note-row b,.note-row span{display:block;overflow-wrap:anywhere;}.note-row b{font:600 14px Inter,sans-serif;}.note-row span{font:12px/1.5 Inter,sans-serif;color:var(--dim);margin-top:7px;white-space:pre-wrap;}#noteBody{width:100%;max-height:35vh;resize:vertical;padding:12px;border-radius:12px;background:#ffffff08;border:1px solid var(--stroke);color:var(--txt);font:14px/1.5 Inter,sans-serif;}.note-tools{margin:10px 0;}#noteEditModal .modal{max-height:90dvh;overflow:auto;}

.poll-card{min-width:200px;max-width:300px;}.poll-label{font-size:8px;letter-spacing:.13em;opacity:.7;margin:2px 0 10px;}.poll-question{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:12px;}.poll-card>small{font-size:9px;opacity:.7;}.poll-option{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;border:1px solid #ffffff30;background:linear-gradient(90deg,#ffffff20 var(--vote-fill),#ffffff05 var(--vote-fill));border-radius:11px;color:inherit;padding:11px;margin-bottom:8px;text-align:left;font:12px/1.4 Inter,sans-serif;}.poll-option.chosen{border-color:#d8ccff;}.poll-option span{overflow-wrap:anywhere;min-width:0;}.poll-option b{font-size:9px;white-space:nowrap;opacity:.8;}.poll-footer{font-size:10px;opacity:.8;padding:2px 0 8px;}.poll-undo{font-size:10px;padding:5px 0;}#pollModal .modal{max-height:90dvh;overflow:auto;}

.poll-voters{font-size:10px;line-height:1.6;margin:8px 0;}.poll-voters p{padding:4px 0;overflow-wrap:anywhere;}.poll-voters summary{cursor:pointer;color:inherit;}

.library-modal{max-height:88dvh;display:flex;flex-direction:column;}.library-tabs{display:flex;gap:8px;margin:8px 0 14px;}.library-tabs button{flex:1;background:#ffffff08;border:1px solid var(--stroke);color:var(--txt);border-radius:12px;padding:11px;font:600 12px Inter,sans-serif;}.library-tabs button.selected{background:#8c72ee30;border-color:#b7a0ed;}#libraryList{overflow:auto;min-height:0;margin-bottom:12px;}.library-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;}.library-item{display:block;width:100%;border:1px solid #ffffff15;border-radius:13px;padding:11px;background:#ffffff06;color:var(--txt);text-align:left;margin-bottom:9px;overflow:hidden;}.library-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px;display:block;margin-bottom:8px;}.library-item b,.library-item span{display:block;overflow-wrap:anywhere;}.library-item b{font:600 12px/1.5 Inter,sans-serif;}.library-item span{font:10px/1.5 Inter,sans-serif;color:var(--dim);margin-top:5px;}.library-icon{height:65px;display:grid;place-items:center;font-size:32px;color:#b5a4ee;}.library-found{outline:2px solid var(--accent1);outline-offset:3px;}

.library-grid{align-content:start;grid-auto-rows:max-content;}.library-item{min-height:fit-content;flex-shrink:0;}#libraryList>.modal-sub{margin:8px 0;}.library-modal>h2,.library-modal>.modal-sub,.library-tabs,.library-modal>#libraryClose{flex-shrink:0;}

@font-face{font-family:'Nymvo Emoji';src:url('../fonts/baatein-emoji.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap;}
#emojiChoices button{font-family:'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;color:var(--txt);}

.msg,.deleted-body,.reaction-pill,#emojiBtn,#toast{font-family:Inter,'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}

#voicePreview{width:100%;margin:10px 0 18px;}#voiceStatus{line-height:1.5;margin:5px 0 16px;}.voice-modal .modal-actions{flex-wrap:wrap;}#voiceConfirmSend{margin-top:0;flex:1;}

.pinned-banner{display:block;width:100%;border:0;border-bottom:1px solid var(--stroke);border-left:3px solid var(--accent1);padding:10px 15px;text-align:left;background:#a58be512;color:var(--txt);font:12px/1.4 Inter,sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0;}.pin-content{max-height:35vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#ffffff08;border-left:3px solid var(--accent1);border-radius:10px;padding:14px;margin:12px 0 18px;font:14px/1.6 Inter,sans-serif;}#pinJump{margin:0 0 12px;}#pinModal .modal{max-height:90dvh;overflow:auto;}#pinStatus{line-height:1.5;}

.ctxmenu{max-height:calc(100dvh - 24px);overflow:auto;}.selection-bar{display:flex;align-items:center;gap:8px;padding:9px 12px;flex-shrink:0;border-bottom:1px solid var(--stroke);}.selection-bar span{font:600 12px Inter,sans-serif;flex:1;}.selection-bar button{border:1px solid var(--stroke);border-radius:9px;background:#ffffff0b;color:var(--txt);font:11px Inter,sans-serif;padding:9px 7px;}.msg.is-selecting{cursor:pointer;}.msg.is-selected{outline:2px solid #c9b8ff;outline-offset:2px;box-shadow:0 0 0 6px #a788f326;}.msg.is-selecting::before{content:'○';display:block;font-size:14px;line-height:1;margin-bottom:6px;opacity:.7;}.msg.is-selected::before{content:'✓ selected';font:600 9px Inter,sans-serif;}

#storyComposer .modal{max-height:90dvh;overflow:auto;}#storyComposer .modal-sub{font-size:12px;line-height:1.5;margin:0 0 15px;}

.sv-reply{position:relative;z-index:3;flex-shrink:0;margin:8px 18px 2px;padding:13px;border:1px solid rgba(255,255,255,.23);border-radius:22px;background:rgba(255,255,255,.09);color:#fff;font:600 13px 'Inter',sans-serif;cursor:pointer}.sv-reply:disabled{opacity:.4;cursor:not-allowed}

.sv-text span,.sv-cap,.reply-quote{font-family:Inter,'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}

#replyText{font-family:Inter,'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}.contact-card{text-align:center;overflow-y:auto;max-height:calc(100dvh - 24px)}.contact-card canvas{display:block;width:min(100%,224px);height:auto;margin:12px auto 18px;border-radius:12px;image-rendering:pixelated;}.contact-card .modal-sub{margin-top:9px}.contact-card>.btn-ghost{margin-top:12px}

.boot-status{font-size:12px;line-height:1.4;color:var(--dim);margin-top:10px}.boot-status:empty{display:none}
.auth-card{max-height:calc(100dvh - 40px);overflow-y:auto;flex-shrink:0;}

.photo-edit-tools{display:flex;gap:5px;margin:9px 0;flex-wrap:wrap}.photo-edit-tools button{padding:9px 11px;font-size:12px}.photo-crop-box{width:100%;aspect-ratio:1;overflow:hidden;border-radius:16px;margin:12px 0;background:#080810}.photo-crop-box img{width:100%;height:100%;object-fit:cover}#photoCropPosition{width:100%;accent-color:var(--accent1);margin:12px 0}#photoCropModal{z-index:62}.photo-modal{overflow-y:auto;max-height:calc(100dvh - 24px)}
#chatOptionsModal>.modal{max-height:calc(100dvh - 40px);overflow-y:auto;}

.message-link{color:#a9c8ff;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.message-link:focus-visible{outline:2px solid #a9c8ff;outline-offset:3px}#locationModal>.modal{max-height:calc(100dvh - 40px);overflow-y:auto}#locationFixInfo{margin:14px 0;overflow-wrap:anywhere}#locationModal .modal-sub{font-size:12px;line-height:1.5}

.forward-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;padding:12px;border:1px solid var(--stroke);border-radius:12px;font-size:14px;line-height:1.5}.channel-forward{background:rgba(124,92,255,.15);color:var(--txt);border:1px solid var(--stroke);border-radius:10px;padding:8px 10px}.channel-update footer{flex-wrap:wrap}.fwd-modal{max-height:90dvh;overflow-y:auto}

.fwd-row{width:100%;color:var(--txt);text-align:left;font:inherit}.fwd-row:focus-visible{outline:2px solid #9a87ff;outline-offset:-3px}

.channel-delete{background:transparent;border:1px solid var(--stroke);border-radius:10px;padding:8px 10px;color:#ff7797;cursor:pointer}

#notesSearch{width:100%;padding:12px;color:var(--txt);font:14px Inter,sans-serif;background:#ffffff08;border:1px solid var(--stroke);border-radius:12px;margin:12px 0 4px}#notesSearch:focus{outline:2px solid var(--accent1);outline-offset:2px}#installModal .modal{max-height:calc(100dvh - 40px);overflow-y:auto}#installModal details{margin:14px 0;font-size:13px;line-height:1.5}#installModal summary{cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#notesSearchCount{margin:8px 0 4px;flex-shrink:0}.notes-modal>h2,.notes-modal>.modal-sub,.notes-modal>button,.notes-modal>input{flex-shrink:0}

#photoStatus:not(:empty){margin:8px 0 12px;line-height:1.4}

.unconfirmed-texts-btn{color:#ffd38b;background:#6b401a66;border:1px solid #d69d4b55;border-radius:10px;padding:10px;margin:4px 12px;font:600 12px Inter,sans-serif}.unconfirmed-row{border:1px solid var(--stroke);padding:12px;border-radius:12px;margin-bottom:12px}.unconfirmed-row>p:not(.modal-sub){white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5;margin:10px 0}.unconfirmed-row button{margin:4px;font-size:12px;padding:10px}#unconfirmedTextsModal .modal{max-height:90dvh;overflow:auto}#unconfirmedTextsList{margin:16px 0}.unconfirmed-row .modal-sub{margin:0}
.language-control{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:12px 0}.language-control select{min-width:120px;max-width:180px;background:#171625;color:var(--txt);border:1px solid var(--stroke);border-radius:12px;padding:9px 12px;font:inherit;min-height:40px}.language-control select:focus{outline:2px solid var(--accent1);outline-offset:2px}.home-language{padding:0 18px}.home-language .language-control{margin:4px 0}.language-note{font-size:10px;line-height:1.6;color:var(--muted);text-align:center;margin:12px 0}html[lang=hi] .btn-primary,html[lang=hi] .btn-ghost{line-height:1.55}html[lang=hi] .auth-note{line-height:1.8}
.service-notice{flex-shrink:0;background:#3c2d19;color:#ffdfad;border:1px solid #8a642f;border-radius:10px;padding:10px 12px;margin:6px 10px;font-size:11px;line-height:1.65;overflow-wrap:anywhere}.service-notice[hidden]{display:none}.auth-card .service-notice{margin:12px 0}

/* Preserve content direction independently of the interface and timestamp controls. */
.message-text,.media-cap,.reply-quote span,.sender {text-align:start;unicode-bidi:plaintext;overflow-wrap:anywhere;}
#msgInput,#chatSearchInput,#signupName,#pfName,#pfAbout,#noteBody,#noteTitle {text-align:start;}
.message-text,.media-cap,#msgInput,#chatSearchInput,#signupName,#pfName,#pfAbout {font-family:Inter,'Noto Sans','Noto Sans Devanagari','Noto Naskh Arabic','Noto Sans Bengali','Noto Sans Tamil','Noto Sans Telugu','Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}
@font-face{font-family:'Nymvo Korean';src:url('../fonts/noto-sans-kr.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+1100-11FF,U+3130-318F,U+A960-A97F,U+AC00-D7AF,U+D7B0-D7FF;}
.message-text,.media-cap,#msgInput,#chatSearchInput{font-family:Inter,'Nymvo Korean','Noto Sans','Noto Sans Devanagari','Noto Naskh Arabic','Noto Sans Bengali','Noto Sans Tamil','Noto Sans Telugu','Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji',sans-serif;}
/* Native-language emoji sequences use the full bundled font when system fonts lack them. */
.message-text,.media-cap,#msgInput,#chatSearchInput{font-family:Inter,'Nymvo Korean','Nymvo Emoji','Noto Sans','Noto Sans Devanagari','Noto Naskh Arabic','Noto Sans Bengali','Noto Sans Tamil','Noto Sans Telugu','Apple Color Emoji','Segoe UI Emoji',sans-serif;}
/* Heavy optional fonts are NOT precached. CSS loads them only for missing glyphs. */
@font-face{font-family:'Nymvo Full Emoji';src:url('../fonts/emoji-full.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+200D,U+20E3,U+2300-23FF,U+2600-27BF,U+FE0F,U+1F000-1FAFF;}
.message-text,.media-cap,#msgInput,#chatSearchInput{font-family:Inter,'Apple Color Emoji','Segoe UI Emoji','Nymvo Emoji','Noto Sans','Noto Sans Devanagari','Noto Naskh Arabic','Noto Sans Bengali','Noto Sans Tamil','Noto Sans Telugu','Nymvo Korean','Nymvo Full Emoji',sans-serif;}
/* v4.92 review candidate: focused chat shell, no GPU-heavy ambient effects. */
:root{--bg:#10121a;--panel:#181b27;--stroke:#2b2f40;--txt:#f6f4ff;--dim:#a2a8bd;--accent1:#9a85ff;--accent2:#8270ed;--grad:linear-gradient(120deg,#8e77f7,#7764da);}
body{background:#0c0e15;letter-spacing:-.015em;}
.bg-orbs{display:none}.orb{animation:none;filter:none;}
.glass{background:#181b27;backdrop-filter:none;-webkit-backdrop-filter:none;}
.view{background:var(--bg);transform:none;transition:opacity .12s ease;}
.modal-overlay{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(4,6,12,.78);}
.modal{box-shadow:0 24px 70px #0006;border-radius:22px;border-color:#34394c;}
.auth-card{border-radius:24px;background:#171a25;box-shadow:0 24px 80px #0004;padding:30px 26px 24px;animation:none;}
.brand-logo{width:60px;height:60px;border-radius:18px;box-shadow:none}.brand h1{font-size:29px;letter-spacing:-1px;color:#f6f2ff;background:none;}.brand{margin-bottom:24px}.tagline{margin-top:6px;line-height:1.5;}
.auth-form input,.pf-input{background:#202432;border-color:#34394c;min-height:48px;}.auth-form label{color:#c2c8d9;font-weight:500;}.auth-form small{font-size:11px;line-height:1.6;opacity:.9;}
.btn-primary{box-shadow:none;border-radius:12px;letter-spacing:0;min-height:46px;font-weight:600;}.btn-ghost{min-height:44px;border-radius:12px;box-shadow:none;}
.auth-tabs{border-radius:12px;background:#232737;}.tab-ink{border-radius:9px}.auth-error:empty{display:none}.language-note{font-size:11px;line-height:1.6;color:var(--dim);margin-top:20px}.auth-note{font-size:11px;line-height:1.6;margin-top:10px;}
.screen-eyebrow{font:600 10px/1.4 Inter,sans-serif;letter-spacing:.15em;color:#9c92c2;padding:22px 22px 0;flex-shrink:0;}
.topbar{background:transparent!important;border:0;border-radius:0;gap:10px;padding:14px 18px 16px;flex-shrink:0;}
#homeView>.topbar{padding-top:8px;}.topbar-title h1{font-size:27px;letter-spacing:-1px;font-weight:700;}.topbar-title p{font-size:12px;line-height:1.65;color:var(--dim);}.topbar-title .screen-eyebrow{padding:0;margin-bottom:7px;font-size:9px;}
.icon-btn{width:42px;height:42px;min-width:42px;background:#202433;border:1px solid #30364a;border-radius:13px;}.icon-btn:hover{background:#292f43}.icon-btn:focus-visible,button:focus-visible{outline:2px solid #b3a3ff;outline-offset:3px;}
#homeView,#statusView,#channelsView,#settingsView{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px));}
.home-search{padding:0 18px 12px;}.home-search input{width:100%;border:1px solid var(--stroke);background:#1b1f2d;padding:13px 15px;border-radius:12px;color:var(--txt);font:14px Inter,sans-serif;}
.chat-filters{padding:0 18px 12px;gap:6px;overflow:hidden;min-height:44px;flex-shrink:0;margin:0;max-width:none;}.chat-filters button{min-width:0;min-height:34px;padding:8px 11px;border:0;border-radius:9px;font:500 11px Inter,sans-serif;color:#a4abc2;background:transparent;}.chat-filters button.selected{background:#9a85ff1c;color:#c8bcff;border:0;}
.user-list{padding:0 12px 20px;gap:0;}.user-list:empty{display:none;}.user-row{border-radius:0;background:none;border:0;border-bottom:1px solid #ffffff08;padding:16px 8px;gap:12px;animation:none!important;min-height:85px;}.user-row:hover{background:#ffffff04}.user-meta .name{font-size:15px;font-weight:600;line-height:1.5}.user-meta .preview{font-size:12px;margin-top:4px;line-height:1.5}.user-side .time{font-size:10px;}.avatar{width:50px;height:50px;border-radius:18px;font-size:18px;}.avatar.sm{border-radius:50%;}.avatar .dot{width:11px;height:11px;right:0;bottom:0;border-width:2px;}.user-side .unread{background:#a895ff;color:#151021;font-size:10px;min-width:18px;height:18px;}
.empty-state{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:34px 30px;text-align:center;min-height:240px;}.empty-state h2{color:#eeeafa;font-size:21px;line-height:1.35;letter-spacing:-.6px;max-width:270px;margin:0 auto;}.empty-state p{font-size:13px;line-height:1.7;max-width:260px;margin:0 auto;}.empty-state .btn-primary{margin-top:10px;padding:13px 23px;font-size:13px;align-self:center;}.empty-art{position:relative;display:grid;place-items:center;width:84px;height:84px;margin:0 auto 10px;background:#232439;border:1px solid #3d3856;border-radius:29px;transform:rotate(-7deg);box-shadow:10px 12px 0 #1a1c2c;}.empty-art svg{width:37px;height:37px;color:#c6b7ff;transform:rotate(7deg)}.empty-art span{position:absolute;right:-8px;top:-8px;color:#dbd1ab;font-size:28px;}
.bottom-nav{position:fixed;z-index:9;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;padding:9px 8px calc(10px + env(safe-area-inset-bottom,0px));background:#181c29;border-top:1px solid #303548;box-shadow:0 -8px 28px #080a101c;}.nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:52px;padding:5px 2px;border:0;background:transparent;color:#8c95b0;font:500 10px Inter,sans-serif;cursor:pointer;}.nav-item svg{width:22px;height:22px;stroke-width:1.7;}.nav-item.selected{color:#c4b7ff}.nav-item.selected:before{content:'';position:absolute;top:-9px;width:24px;height:3px;background:#ae9aff;border-radius:0 0 5px 5px;}
.settings-scroll{overflow:auto;padding:4px 18px 24px;}.settings-profile{width:100%;display:flex;align-items:center;gap:12px;padding:18px 0;border:0;border-bottom:1px solid var(--stroke);background:transparent;color:var(--txt);text-align:left;}.settings-profile>span:nth-child(2){flex:1}.settings-profile b{display:block;font:600 17px Inter,sans-serif;}.settings-profile small{display:block;font:12px/1.6 Inter,sans-serif;color:var(--dim);margin-top:5px}.settings-avatar{display:grid;place-items:center;width:53px;height:53px;border-radius:18px;background:#37304e;color:#c7b6ff;}.settings-heading{margin:25px 0 10px;font:600 10px Inter,sans-serif;color:#969fbc;text-transform:uppercase;letter-spacing:.12em;}.settings-group{border:1px solid #2b3042;border-radius:14px;overflow:hidden;background:#191d2b;}.settings-group>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;min-height:49px;background:transparent;color:var(--txt);border:0;border-bottom:1px solid #ffffff08;border-radius:0;text-align:left;font:500 13px Inter,sans-serif;}.settings-group>button:after{content:'›';font-size:20px;color:#8089a4}.settings-group>.settings-logout{color:#f899a6}.settings-group .home-language{padding:14px 16px}.settings-group .language-control{margin:0;width:100%;}.settings-footnote{text-align:center;font-size:11px;line-height:1.7;color:#7d86a0;margin-top:28px;}
.status-intro{margin:4px 18px 18px;padding:24px 20px;border:1px solid #40374e;border-radius:20px;background:linear-gradient(130deg,#30283f,#1c2234);}.status-intro h2{font-size:23px;letter-spacing:-.6px;line-height:1.3}.status-intro p{font-size:12px;line-height:1.7;color:#b6b3c7;margin-top:10px;}.section-heading{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#949db6;margin:26px 22px 10px;}#statusCreateSlot{padding:0 18px;}#statusCreateSlot button{width:100%;background:#28243d;color:#cfc3ff;border:1px solid #463960;font-size:13px;}
#statusView{overflow:auto;}#statusRailSlot .stories-rail{display:flex;flex-direction:column;align-items:stretch;padding:0 18px;gap:0;overflow:visible;max-width:none;border:0;}#statusRailSlot .story-card{width:100%;display:flex;align-items:center;gap:14px;flex-direction:row;padding:14px 0;border-bottom:1px solid #ffffff08;}#statusRailSlot .story-card>span{font-size:14px;font-weight:500;max-width:none;text-align:left;}#statusRailSlot .story-ring{width:55px;height:55px;padding:3px;}#statusRailSlot .story-ring .avatar{width:45px;height:45px;border-radius:50%;}.status-empty{padding:30px 22px;color:var(--dim);font-size:13px;line-height:1.7;text-align:center;}
.messages{background:radial-gradient(ellipse at 0 0,#22203335,transparent 55%),#10131c;}.msg{animation:none;border-radius:16px;font-size:14px;line-height:1.5;padding:10px 12px 8px;}.msg.me{background:#57438c}.msg.them{background:#252a3a;border-color:#33394e}.msg .meta{font-size:10px;line-height:1.2;}.composer{background:#191e2c;border-color:#30374b;border-radius:18px;margin:8px 10px 12px;padding:8px;box-shadow:none;}.toast{max-width:calc(100vw - 32px);width:max-content;line-height:1.5;bottom:100px;z-index:100;}
@media(min-width:900px){.view:not(#authView){max-width:900px;width:calc(100vw - 64px);left:50%;right:auto;top:24px;height:calc(100dvh - 48px);bottom:auto;transform:translateX(-50%);border:1px solid #2d3245;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px #0004;}.bottom-nav{max-width:900px;width:calc(100vw - 64px);left:50%;right:auto;transform:translateX(-50%);bottom:24px;border-radius:0 0 24px 24px;padding:11px 80px 12px;}.topbar,#homeView .user-list,#homeView .stories-rail,#chatView .messages,#chatView .composer{max-width:none;width:auto;margin-left:0;margin-right:0;}.topbar{width:100%;}.settings-scroll{max-width:620px;width:100%;margin:0 auto;}.status-intro{max-width:600px;width:calc(100% - 60px);margin:8px auto 20px;}#statusCreateSlot,#statusRailSlot{max-width:600px;width:100%;margin:auto;}.section-heading{max-width:600px;width:100%;margin:22px auto 10px;}.user-list{padding:0 26px 24px}.auth-card{max-width:420px;}#chatView .composer{margin:8px 18px 18px}.messages{padding:18px 24px;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
/* Quiet onboarding: the form leads, explanations are available on request. */
.auth-card .brand{margin-bottom:30px}.auth-card .brand h1{margin-top:14px}.auth-tabs{justify-content:center;align-items:center;gap:4px;margin:20px 0 0;padding:0;background:transparent;border-radius:0;}.auth-tab{flex:none;font-size:12px;padding:8px 14px;color:#a2a8bd;}.auth-tab.active{color:#d0c6f8;text-decoration:underline;text-underline-offset:5px}.tab-ink{display:none}.auth-more{margin-top:20px;text-align:center;color:#8d96b0;font-size:11px;line-height:1.6;}.auth-more summary{display:inline-block;cursor:pointer;list-style:none;padding:4px 12px}.auth-more summary::-webkit-details-marker{display:none}.auth-more[open]{border-top:1px solid var(--stroke);padding-top:12px;}.auth-more-body{text-align:left}.auth-more .language-control{margin:10px 0;}.auth-more .language-note{margin-top:12px}.auth-more .auth-note{text-align:left;}.auth-card .auth-form{gap:17px}#homeView>.topbar{padding-top:22px;}.empty-art{font-size:37px;color:#c6b7ff}.settings-scroll .settings-profile{margin-top:0}.settingsView .topbar{padding-top:24px}
#statusRailSlot .story-card>span small{display:block;font-size:11px;color:var(--dim);font-weight:400;margin-top:5px}.user-meta .name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}.settings-footnote{padding-bottom:12px}.bottom-nav.inert{pointer-events:none}
/* Brand finish: quieter chrome, clear hierarchy, fuller conversation rows. */
#homeView>.topbar{padding:23px 20px 17px;gap:9px;}#homeView .topbar-title h1{font-weight:700;font-size:28px;letter-spacing:-1.25px;color:#c7bbff;}#homeView .topbar-title h1::after{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-left:4px;background:#a1d5c1;vertical-align:baseline;}
.bottom-nav{background:#171c29}.nav-item{gap:7px;min-height:54px}.nav-item svg{box-sizing:content-box;padding:4px 13px;border-radius:13px}.nav-item.selected svg{background:#a28aff22;stroke:#cdbfff;stroke-width:2}.nav-item.selected:before{display:none}.nav-item span{font-size:10px;letter-spacing:.01em}.nav-item.selected span{font-weight:600;color:#e0d7ff;}
.user-row{min-height:88px;padding:17px 8px;gap:14px}.user-meta .name{font-size:15.5px;font-weight:600;letter-spacing:-.2px}.user-meta .preview{font-size:12.5px;color:#959fb8}.avatar{border-radius:50%;box-shadow:inset 0 0 0 1px #ffffff15}.user-side .unread{margin-top:8px;min-width:19px;height:19px;background:#b9a7ff;font-weight:700;}.user-side .time{font-size:10px;color:#8d98b4}.chat-filters{padding-bottom:12px;border-bottom:1px solid #ffffff05;margin-bottom:4px;}.chat-filters button{font-size:11.5px;padding:9px 13px}.chat-filters button.selected{background:#a68bff21;color:#d0c0ff;}
.auth-card{box-shadow:none;border-color:#2b3041}.auth-card .brand h1{font-size:30px;font-weight:700}.auth-card .auth-form input{border-radius:12px;background:#1d2230;border-color:#33394d}.auth-card .btn-primary{margin-top:10px;min-height:49px;background:#9c85f7;color:#14101e;font-weight:700;}.auth-card .brand-logo{width:60px;height:60px}.auth-card .auth-more{margin-top:18px}
@media(max-width:600px){.auth-card{background:transparent;border:0;max-width:380px;padding:28px 22px;}.auth-card .brand{margin-bottom:40px}.auth-card .brand-logo{width:68px;height:68px;border-radius:21px}.auth-card .brand h1{margin-top:18px;font-size:32px}.auth-card .auth-tabs{margin-top:22px}.auth-card .btn-primary{margin-top:12px}.auth-card .auth-form{gap:20px}}
#chatView .topbar{padding:14px 14px;gap:8px;border-bottom:1px solid #ffffff08;background:#151925!important;}#chatView .topbar-title h1{font-size:17px;letter-spacing:-.4px;line-height:1.5}#chatView .topbar-title p{font-size:11px}#chatView .topbar .icon-btn{width:33px;height:36px;min-width:33px;border-radius:11px;background:transparent;border:0;}#chatView .topbar .avatar{width:39px;height:39px;font-size:15px;}.msg.me{box-shadow:none;background:#554181;border-bottom-right-radius:5px}.msg.them{border-bottom-left-radius:5px}.send-btn{box-shadow:none;border-radius:50%;width:43px;height:43px;background:#9d85f8;color:#1a1230}.composer{border-radius:26px;min-height:59px;padding:7px}.composer input{font-size:14px;line-height:1.5}.attach-btn{width:33px;height:36px}.msg{max-width:82%}

.messages:not([data-wallpaper]),.messages[data-wallpaper=default]{background-color:#11141f;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23a69ec8%22%20stroke-opacity%3D%22.055%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M22%2035h22a5%205%200%200%201%205%205v12a5%205%200%200%201-5%205H32l-8%206v-6h-2a5%205%200%200%201-5-5V40a5%205%200%200%201%205-5z%22/%3E%3Cpath%20d%3D%22m130%2020%203%207%207%203-7%203-3%207-3-7-7-3%207-3zM80%20130c12-14%2026%202%200%2018-26-16-12-32%200-18z%22/%3E%3Ccircle%20cx%3D%22145%22%20cy%3D%22105%22%20r%3D%228%22/%3E%3Cpath%20d%3D%22M32%20125v10m-5-5h10M83%2068h2m0%200v2%22/%3E%3C/g%3E%3C/svg%3E');}
#emojiBtn{background:transparent;border:0;border-radius:50%;box-shadow:none;color:#b6bed3;min-width:32px;width:32px;height:36px;}#emojiBtn svg{width:23px;height:23px}#chatOptionsBtn{color:#e3e7f1}#chatOptionsBtn svg{width:22px;height:22px}.msg{touch-action:pan-y;}.msg.swipe-reply-ready::after{content:'↩';position:absolute;right:calc(100% + 13px);top:50%;transform:translateY(-50%);color:#cbbbff;font-size:22px}
#blockedList{font-size:14px;line-height:1.6;margin:14px 0 8px;}#blockedListModal .modal-sub{line-height:1.6;margin:0 0 16px;}#passwordModal .modal-actions button{font-size:14px;padding:14px 10px;}#channelsList{min-height:0;}#channelsView .topbar-title p{font-size:11px;}
.support-sheet{text-align:center}.support-name{font-size:17px;font-weight:650;letter-spacing:-.2px;margin:16px 0 6px}.support-sheet .modal-sub{font-size:13px;line-height:1.65;margin:0}.support-qr-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;width:150px;height:150px;margin:24px auto 20px;border:1px dashed #555c73;border-radius:20px;background:#ffffff03;color:#929bb4;font-size:12px}.support-qr{display:block;width:198px;height:198px;object-fit:contain;margin:24px auto 20px;background:#fff;padding:13px;border-radius:20px;box-shadow:0 16px 38px #00000059,0 0 0 1px #ffffff0d}.support-upi{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ffffff09;border:1px solid #ffffff17;border-radius:15px;padding:7px 7px 7px 16px;margin:0}#supportUpiId{overflow-wrap:anywhere;user-select:text;font-size:13.5px;font-weight:600;letter-spacing:.015em;color:var(--txt);text-align:left}.support-upi button{flex:none;padding:11px 20px;font-size:12.5px;font-weight:600;border-radius:12px}.support-upi button:disabled{opacity:.4;cursor:default}.support-sheet .support-copy-status{min-height:22px;margin:12px 0 0;font-size:12px}.support-india{font-size:12px;letter-spacing:.02em;color:#bfc8d8;margin:18px 0}.support-sheet>button{width:100%}
/* Auth direction4.93: quiet material, precise spacing, no animated decoration. */
#authView{background:radial-gradient(ellipse at 50% -15%,#2e25434d,transparent 58%),#0e111b;padding:24px 20px;overflow-y:auto;}.auth-card{max-width:390px!important;padding:32px 26px 25px!important;background:linear-gradient(155deg,#1d213052,#12151f05)!important;border:1px solid #ffffff0b!important;border-radius:28px!important;box-shadow:0 30px 70px #00000026!important;position:relative;}.auth-card:before{content:'';position:absolute;top:-1px;left:25%;right:25%;height:1px;background:linear-gradient(90deg,transparent,#c1aaff70,transparent)}.auth-card .brand{margin-bottom:32px}.auth-card .brand-logo{width:62px;height:62px;border-radius:20px;box-shadow:0 8px 24px #7f63ef18}.auth-card .brand h1{font-size:32px;font-weight:650;letter-spacing:-1.4px;margin-top:18px}.auth-card .auth-form{gap:21px}.auth-card .auth-form label{font-size:12px;letter-spacing:.01em;color:#bbc0d2;line-height:1.6}.auth-card .auth-form input{min-height:50px;background:#1b202e;border:1px solid #353b50;border-radius:13px;padding:13px 15px;font-size:14px;box-shadow:inset 0 1px 0 #ffffff03;margin-top:7px;color:#eef0fa}.auth-card .auth-form input::placeholder{color:#737d96}.auth-card .auth-form input:focus{outline:2px solid #bba6ff50;outline-offset:2px;border-color:#b29aef;background:#1f2433}.auth-card .auth-form>.btn-primary{background:linear-gradient(110deg,#aa93fa,#8f77ed);border:1px solid #c2afff33;border-radius:13px;color:#160f2a;min-height:50px;font-size:14px;font-weight:650;box-shadow:0 6px 20px #8461ef15;margin-top:6px}.auth-card .auth-tabs{margin-top:18px}.auth-card .auth-more{margin-top:15px}.auth-card .auth-form small{font-size:10px;line-height:1.5;color:#8f98af}.auth-error:not(:empty){line-height:1.6;font-size:12px;margin-top:14px}.boot-status:empty{display:none}@media(max-width:360px){.auth-card{padding:28px 21px 22px!important}.auth-card .brand{margin-bottom:27px}.auth-card .auth-form{gap:18px}}@media(max-height:690px){#authView{justify-content:flex-start}.auth-card{margin:auto 0}.auth-card .brand-logo{width:48px;height:48px}.auth-card .brand{margin-bottom:20px}.auth-card .brand h1{margin-top:12px;font-size:28px}.auth-card .auth-form{gap:12px}}
.support-contact{border-top:1px solid #ffffff0d;padding-top:18px;margin-top:18px}.support-contact a{display:block;text-decoration:none;color:#cbbcff;font-size:13px;font-weight:600}.support-contact a small{display:block;font-size:11px;font-weight:400;color:#9eacc8;margin-top:6px;overflow-wrap:anywhere}.support-contact p{font-size:11px;line-height:1.65;color:#9da5bc;margin:12px 0 0}.support-sheet .support-india{margin:16px 0}.support-sheet .support-qr{width:222px;height:222px;margin:26px auto 22px}.support-sheet .support-qr-placeholder{width:130px;height:130px;margin:20px auto 16px}.modal.support-sheet{max-width:430px}.support-sheet{max-height:calc(100dvh - 40px);overflow-y:auto}
/* New start direction: editorial wordmark, sculpted dialogue, open composition. */
#authView{background:#101116;background-image:radial-gradient(ellipse at 75% 8%,#5f456a24,transparent 50%);padding:0 26px;justify-content:center;align-items:center}.auth-card{display:flex;flex-direction:column;width:100%;max-width:420px!important;padding:28px 0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-height:100dvh;overflow-x:hidden;overflow-y:auto}.auth-card:before{display:none}.auth-card .brand{position:relative;text-align:left;height:252px;min-height:252px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin:0 0 36px;padding:0 0 28px;border-bottom:1px solid #ffffff18;overflow:hidden}.auth-card .brand-logo{position:absolute;top:3px;left:0;width:38px;height:38px;border-radius:12px;box-shadow:none;opacity:.95}.auth-card .brand h1{font-size:66px;line-height:1;letter-spacing:-4px;font-weight:600;margin:0;color:#f5f0e8;position:relative;z-index:1}.auth-tagline{font-size:14px;letter-spacing:.02em;color:#b4a9bc;margin:13px 0 0;position:relative;z-index:1}.auth-dialogue-art{position:absolute;right:-3px;top:-6px;width:188px;height:177px;transform:rotate(-12deg);filter:drop-shadow(0 16px 15px #0004);opacity:.93}.auth-dialogue-art svg{width:100%;height:100%}.auth-card .auth-form{gap:20px}.auth-card .auth-form label{font-size:11px;color:#a7a4b2;letter-spacing:.035em}.auth-card .auth-form input{background:#1c1d25;border:1px solid #36343f;border-radius:11px;font-size:14px;min-height:52px;margin-top:8px}.auth-card .auth-form>.btn-primary{background:#d3c0ef;color:#261a34;border:1px solid #ead9ff4d;min-height:52px;border-radius:11px;box-shadow:inset 0 1px #fff4;font-size:14px;margin-top:5px}.auth-card .auth-form>.btn-primary:hover{background:#e1cef9}.auth-card .auth-tabs{margin-top:19px;justify-content:flex-start;gap:18px}.auth-card .auth-tab{padding:8px 0;font-size:12px}.auth-card .auth-tab.active{color:#e5d5f7;text-decoration-color:#ae91c4;text-underline-offset:7px}.auth-card .auth-more{margin-top:10px;text-align:right;font-size:10px}.auth-card .auth-more summary{padding-right:0}.auth-card .auth-form small{font-size:10px}.auth-card .auth-error{order:0}
@media(min-width:900px){#authView{padding:50px 7vw}.auth-card{max-width:1080px!important;display:grid;grid-template-columns:1.3fr 1fr;column-gap:100px;padding:60px 0!important;overflow:visible}.auth-card .brand{grid-column:1;grid-row:1/9;height:540px;align-self:center;border:0;border-right:1px solid #ffffff15;justify-content:center;min-height:0;margin:0;padding-right:60px;overflow:visible}.auth-card .brand-logo{top:0;left:0;width:44px;height:44px}.auth-card .brand h1{font-size:88px;letter-spacing:-5px}.auth-card .auth-dialogue-art{top:10px;right:35px;width:220px;height:210px;opacity:.9}.auth-card .auth-wordmark{margin-top:130px}.auth-tagline{font-size:19px;margin-top:20px}.auth-card .auth-form,.auth-card .auth-tabs,.auth-card .auth-error,.auth-card .auth-more,.auth-card .boot-status,.auth-card .service-notice{grid-column:2}.auth-card .auth-form{align-self:end;margin-top:85px}.auth-card .auth-tabs{margin-top:25px}.auth-card .auth-more{margin-top:28px}.auth-card .auth-more-body{text-align:left}}
@media(max-width:360px){#authView{padding:0 23px}.auth-card .brand{height:209px;min-height:209px;margin-bottom:25px;padding-bottom:22px}.auth-card .brand h1{font-size:58px;letter-spacing:-3.5px}.auth-dialogue-art{width:158px;height:148px;right:-5px;top:-1px}.auth-card .brand-logo{width:33px;height:33px;border-radius:10px}.auth-card .auth-form{gap:15px}.auth-tagline{font-size:13px}.auth-card .auth-form input{min-height:49px}}
@media(max-height:690px) and (max-width:899px){#authView{justify-content:flex-start}.auth-card{padding:22px 0!important;max-height:none;flex-shrink:0}.auth-card .brand{height:150px;min-height:150px;margin-bottom:21px;padding-bottom:17px}.auth-card .brand h1{font-size:48px;letter-spacing:-2.5px}.auth-card .brand-logo{width:28px;height:28px;border-radius:9px}.auth-dialogue-art{width:130px;height:122px;top:-8px;right:4px}.auth-tagline{font-size:12px;margin-top:10px}.auth-card .auth-form{gap:13px}.auth-card .auth-form input{min-height:46px}.auth-card .auth-tabs{margin-top:14px}}
.auth-forgot{align-self:flex-end;color:#bca9d0;background:none;border:0;font:11px Inter,sans-serif;padding:12px 0 2px;cursor:pointer;text-align:right}.account-email-sheet{max-height:calc(100dvh - 30px);overflow:auto}.account-email-sheet .modal-sub{font-size:12px;line-height:1.7;margin:12px 0 16px;overflow-wrap:anywhere}.recovery-notice{border-left:2px solid #c2a4e9;padding:12px 13px;background:#bb93ee10;color:#d0c3dc;font-size:12px;line-height:1.7;margin:16px 0}.account-email-sheet .modal-actions button{font-size:12px;padding:13px 10px}.recovery-refresh{width:100%;margin-top:12px;font-size:12px}.account-email-sheet .pf-input{width:100%;margin:7px 0 15px}.auth-forgot.hidden{display:none}@media(min-width:900px){.auth-forgot{grid-column:2}.auth-card .auth-form{grid-row:1}.auth-card .service-notice:not([hidden]){grid-row:1}.auth-card:has(.service-notice:not([hidden])) .auth-form{grid-row:2}}
/* All long sheets must scroll when a mobile keyboard shortens the viewport. */
#profileModal>.modal{max-height:calc(100dvh - 30px);overflow:auto}
/* Start4.97: sculpted dialogue, a warm ink canvas and restrained light. */
#authView{background:#101015;background-image:radial-gradient(ellipse at 96% 0%,#9e6cbb24,transparent 49%),radial-gradient(ellipse at 0% 100%,#555d7820,transparent 60%)}.auth-card .brand{border-color:#d8c4ec1b;height:267px;min-height:267px;padding-bottom:28px;margin-bottom:31px;overflow:visible}.auth-card .brand-logo{width:33px;height:33px;border-radius:11px;opacity:.9;top:1px}.auth-card .brand h1{font-size:70px;font-weight:600;letter-spacing:-4.6px;line-height:1.03;color:#f2ebe4;text-shadow:0 2px 22px #dac4e50b}.auth-card .auth-dialogue-art{width:275px;height:218px;right:-34px;top:-20px;transform:none;opacity:1;filter:none}.auth-dialogue-art img{display:block;width:100%;height:100%;object-fit:contain}.auth-tagline{color:#b6a9c2;font-size:14px;letter-spacing:.02em;margin-top:12px}.auth-card .auth-form label{font-size:11px;color:#bab1c6;letter-spacing:.055em}.auth-card .auth-form input{background:linear-gradient(120deg,#21212bf0,#1b1b24);border:1px solid #aaa0c02e;border-top-color:#c9b6dd35;box-shadow:inset 0 1px #fff03,0 3px 10px #00000014;border-radius:13px;min-height:53px;padding-left:16px;color:#f5eefc}.auth-card .auth-form input::placeholder{color:#7e778d}.auth-card .auth-form input:focus{background:#262330;outline:2px solid #d7b6ed20;outline-offset:3px;border-color:#bc97d6}.auth-card .auth-form>.btn-primary{min-height:53px;border-radius:13px;background:linear-gradient(100deg,#eddbf8,#c3a4df);border:1px solid #f4deff57;border-bottom-color:#9f7dbf;color:#291b34;box-shadow:inset 0 1px 0 #fff7,0 7px 18px #0002;font-weight:700}.auth-card .auth-form>.btn-primary:hover{background:linear-gradient(100deg,#f2e5fb,#cdb1e6)}.auth-card .auth-tabs{gap:23px}.auth-card .auth-tab.active{color:#e9d8f8}.auth-forgot{color:#bdabc9;font-size:10px;padding-top:13px}.auth-card .auth-more{font-size:10px;color:#918298}.auth-card .auth-more summary{color:#918298}
@media(min-width:900px){.auth-card .brand{height:540px;min-height:0;margin:0;padding-bottom:0;border-color:#d8c4ec1b}.auth-card .brand h1{font-size:96px;letter-spacing:-6.2px}.auth-card .brand-logo{width:38px;height:38px;top:0}.auth-card .auth-dialogue-art{width:365px;height:289px;right:10px;top:-34px}.auth-card .auth-wordmark{margin-top:166px}.auth-card .auth-tagline{font-size:18px}.auth-card .auth-form{gap:24px}}
@media(max-width:360px){.auth-card .brand{height:218px;min-height:218px;padding-bottom:24px;margin-bottom:27px}.auth-card .brand h1{font-size:61px;letter-spacing:-3.8px}.auth-card .auth-dialogue-art{width:235px;height:186px;right:-33px;top:-16px}.auth-card .brand-logo{width:29px;height:29px;border-radius:10px}.auth-card .auth-tagline{font-size:13px}.auth-card .auth-form input{min-height:50px}.auth-card .auth-form{gap:16px}}
@media(max-height:690px) and (max-width:899px){.auth-card .brand{height:158px;min-height:158px;padding-bottom:18px;margin-bottom:21px}.auth-card .brand h1{font-size:48px;letter-spacing:-3px}.auth-card .auth-dialogue-art{width:190px;height:150px;right:-23px;top:-22px}.auth-card .brand-logo{width:25px;height:25px;border-radius:8px}.auth-card .auth-tagline{font-size:12px;margin-top:9px}.auth-card .auth-form{gap:13px}.auth-card .auth-form input{min-height:46px}}
@media(min-width:361px) and (max-width:899px) and (min-height:691px){.auth-card .auth-dialogue-art{top:-33px}}
@media(max-width:360px) and (min-height:691px){.auth-card .auth-dialogue-art{width:190px;height:150px;right:-18px;top:-48px}}
@media(max-width:360px) and (min-height:691px){.auth-card .auth-dialogue-art{width:168px;height:133px;right:-12px;top:-25px}}
/* Phone500: a new ribbon-N identity, quiet spotlight and a grounded sign-in surface. */
@media(max-width:899px){#authView{padding:0 25px;background:radial-gradient(ellipse at 50% 8%,#72508244,transparent 47%),radial-gradient(ellipse at 5% 97%,#53536d1c,transparent 55%),#121017}.auth-card{padding:30px 0 24px!important;max-width:410px!important}.auth-card .brand{height:255px;min-height:255px;align-items:center;justify-content:flex-end;padding-bottom:25px;margin-bottom:27px;text-align:center;border-bottom:1px solid #d7b6eb1c;overflow:visible}.auth-card .auth-dialogue-art{display:none}.auth-card .brand-logo{position:relative;top:auto;left:auto;width:100px;height:100px;min-height:100px;object-fit:contain;border-radius:25px;opacity:1;margin-bottom:22px;box-shadow:0 15px 25px #0004,0 0 65px #b783d323;border:1px solid #f1d9ff1c;transform:rotate(-5deg)}.auth-card .auth-wordmark{position:relative}.auth-card .brand h1{font-size:45px;letter-spacing:-2.3px;line-height:1;font-weight:600;text-shadow:none}.auth-card .auth-tagline{font-size:12px;letter-spacing:.045em;margin-top:12px;color:#b4a1bf}.auth-card .auth-form{gap:20px;padding:0 1px}.auth-card .auth-form label{font-size:11px;letter-spacing:.04em;color:#bbaec7}.auth-card .auth-form input{min-height:54px;border-radius:15px;background:linear-gradient(110deg,#282130,#211d29);border-color:#a185b72f;box-shadow:inset 0 1px #fff03}.auth-card .auth-form>.btn-primary{min-height:54px;border-radius:15px;margin-top:8px;background:linear-gradient(105deg,#efddf8,#bea0d9);box-shadow:inset 0 1px #fff8,0 10px 28px #0003}.auth-card .auth-tabs{justify-content:center;margin-top:22px;gap:30px}.auth-card .auth-more{text-align:center;margin-top:14px}.auth-card .auth-more summary{padding:5px 12px}.auth-forgot{margin-right:2px;padding-top:13px}.auth-card .auth-error{text-align:center}.auth-card .service-notice{margin-bottom:15px}}
@media(max-width:360px) and (min-height:691px){.auth-card .brand{height:225px;min-height:225px;margin-bottom:23px;padding-bottom:22px}.auth-card .brand-logo{width:84px;height:84px;min-height:84px;border-radius:23px;margin-bottom:20px}.auth-card .brand h1{font-size:41px}.auth-card .auth-form{gap:15px}.auth-card .auth-form input{min-height:50px}.auth-card .auth-form>.btn-primary{min-height:51px}}
@media(max-height:690px) and (max-width:899px){.auth-card{padding:21px 0!important}.auth-card .brand{height:167px;min-height:167px;padding-bottom:18px;margin-bottom:19px}.auth-card .brand-logo{width:64px;height:64px;min-height:64px;border-radius:18px;margin-bottom:15px}.auth-card .brand h1{font-size:34px;letter-spacing:-1.7px}.auth-card .auth-tagline{font-size:11px;margin-top:9px}.auth-card .auth-form{gap:12px}.auth-card .auth-form input{min-height:47px}.auth-card .auth-form>.btn-primary{min-height:48px}.auth-card .auth-tabs{margin-top:15px}}

/* Phone501: a tactile conversation mark and editorial, human-first welcome. */
.auth-intro{display:none}
@media(max-width:899px){
#authView{padding:0 26px;background:radial-gradient(ellipse at 90% 10%,#71508728,transparent 52%),radial-gradient(ellipse at 0% 85%,#40364c20,transparent 56%),#111016}
.auth-card{padding:26px 0 22px!important;max-width:390px!important}
.auth-card .brand{height:226px;min-height:226px;display:block;border:0;margin:0;padding:0;overflow:visible}
.auth-card .brand-logo{position:absolute;top:0;left:0;width:29px;height:29px;min-height:29px;border:0;border-radius:8px;box-shadow:none;transform:none;margin:0}
.auth-card .auth-wordmark{position:absolute;top:3px;left:39px;margin:0;text-align:left}
.auth-card .brand h1{font-size:23px;line-height:1;letter-spacing:-.9px;font-weight:600;color:#f0e9f8}
.auth-card .auth-tagline{display:none}
.auth-card .auth-dialogue-art{display:block;position:absolute;width:162px;height:162px;top:57px;right:calc(50% - 81px);transform:rotate(-8deg);opacity:1;filter:drop-shadow(0 18px 25px #0005)}
.auth-card .auth-dialogue-art img{width:100%;height:100%;object-fit:contain}
.auth-intro{display:block;text-align:center;margin:16px 0 28px}
.auth-intro p{font-size:8px;font-weight:600;letter-spacing:.22em;color:#a991bb;margin:0 0 12px}
.auth-intro h2{font-size:35px;line-height:1.12;font-weight:500;letter-spacing:-1.5px;color:#f4edf9;margin:0}
.auth-card .auth-form{gap:17px;padding:0}.auth-card .auth-form label{font-size:10px;letter-spacing:.04em;color:#b5a7c1}.auth-card .auth-form input{min-height:50px;padding:12px 15px;border-radius:14px;background:linear-gradient(110deg,#26212f,#201c28);border-color:#a99ab62b;border-top-color:#bdb0cb38;box-shadow:inset 0 1px #ffffff03;margin-top:7px}
.auth-card .auth-form>.btn-primary{min-height:51px;border-radius:14px;margin-top:4px;background:linear-gradient(100deg,#f0e0ff,#c9a6ed);color:#35213f;box-shadow:inset 0 1px #fff9,0 9px 25px #0003}
.auth-card .auth-tabs{margin-top:15px;gap:32px}.auth-card .auth-more{margin-top:7px}.auth-forgot{padding-top:11px}.auth-card .auth-tab{font-size:11px}.auth-card .brand:after{content:'';position:absolute;top:52px;left:calc(50% - 100px);width:200px;height:180px;border-radius:50%;background:radial-gradient(ellipse,#c695ff12,transparent 68%);z-index:-1}
.auth-card:has(#signupForm:not(.hidden)) .brand{height:154px;min-height:154px}.auth-card:has(#signupForm:not(.hidden)) .auth-dialogue-art{width:104px;height:104px;top:45px;right:calc(50% - 52px)}.auth-card:has(#signupForm:not(.hidden)) .auth-intro{margin-top:12px;margin-bottom:24px}.auth-card:has(#signupForm:not(.hidden)) .auth-intro h2{font-size:29px}
}
@media(max-width:360px){.auth-card .brand{height:205px;min-height:205px}.auth-card .auth-dialogue-art{width:143px;height:143px;right:calc(50% - 71.5px)}.auth-intro{margin:12px 0 25px}.auth-intro h2{font-size:31px}.auth-card .auth-form{gap:15px}}
@media(max-height:690px) and (max-width:899px){.auth-card .brand{height:129px;min-height:129px}.auth-card .auth-dialogue-art{width:92px;height:92px;top:34px;right:calc(50% - 46px)}.auth-intro{margin:10px 0 20px}.auth-intro h2{font-size:28px}.auth-intro p{margin-bottom:9px}.auth-card .auth-form{gap:12px}.auth-card .auth-form input{min-height:46px}.auth-card:has(#signupForm:not(.hidden)) .brand{height:105px;min-height:105px}.auth-card:has(#signupForm:not(.hidden)) .auth-dialogue-art{width:70px;height:70px;top:32px;right:calc(50% - 35px)}.auth-card:has(#signupForm:not(.hidden)) .auth-intro h2{font-size:25px}}

/*503: selected cobalt/pearl ribbon identity. Existing inside screens unchanged. */
#authView{background:radial-gradient(ellipse at 90% 10%,#313e9e26,transparent 52%),radial-gradient(ellipse at 0% 85%,#292f5520,transparent 56%),#101117}
.auth-card .auth-form label{color:#b0b5cd}.auth-card .auth-form input{background:linear-gradient(110deg,#222634,#1b1e2a);border-color:#a4aec22d;border-top-color:#b8c5e43d;color:#f1f3ff}.auth-card .auth-form input::placeholder{color:#7f89a5}.auth-card .auth-form input:focus{background:#242a3d;border-color:#aab9ff;outline-color:#8199ff30}.auth-card .auth-form>.btn-primary{background:linear-gradient(105deg,#edf1ff,#b0bfff);border-color:#d5dfff70;border-bottom-color:#7889ce;color:#18254a}.auth-card .auth-form>.btn-primary:hover{background:linear-gradient(105deg,#f8faff,#c0cdff)}.auth-card .auth-tab.active{color:#dbe3ff;text-decoration-color:#9caff0}.auth-forgot{color:#b5bed8}.auth-card .auth-more summary{color:#909ab8}.auth-card .auth-intro p{color:#9aaad4}.auth-card .auth-intro h2{color:#f0f3ff}.auth-card .brand h1{color:#f0f3ff}.auth-card .auth-dialogue-art{filter:drop-shadow(0 18px 25px #0005)}
@media(max-width:899px){.auth-card .brand:after{background:radial-gradient(ellipse,#637fff12,transparent 68%)}.auth-card .auth-dialogue-art{transform:rotate(-6deg)}}

/*504: one shared language control and no duplicate icon in either layout. */
.auth-language{margin:19px 0 0;display:flex;justify-content:center}.auth-language .language-control{display:flex;align-items:center;gap:10px;margin:0;font:11px Inter,sans-serif;color:#a7b1cc}.auth-language select{font:11px Inter,sans-serif;color:#dfe6ff;background:#202432;border:1px solid #3b435b;border-radius:9px;padding:10px 13px;min-height:40px}.auth-language select:focus-visible{outline:2px solid #b5c5ff;outline-offset:3px}.auth-card .auth-more{margin-top:7px}
@media(max-width:899px){.auth-card .auth-wordmark{left:0;top:3px}.auth-card .auth-dialogue-art{top:57px}}
@media(min-width:900px){.auth-language{grid-column:2;justify-content:flex-start}.auth-card .auth-more{margin-top:13px}.auth-card .auth-tagline{display:none}.auth-card .auth-intro{display:block;grid-column:1;grid-row:1/9;align-self:end;margin:0 0 25px;pointer-events:none}.auth-intro p{font:600 9px Inter,sans-serif;letter-spacing:.17em;color:#9aaad4;margin:0 0 12px}.auth-intro h2{font:500 26px/1.25 Inter,sans-serif;letter-spacing:-.9px;color:#f0f3ff;margin:0}.auth-card .brand{height:550px}.auth-card .auth-wordmark{margin-top:112px}}

/* ===== Desktop split shell (5.05): chats list left, open chat right ===== */
#chatEmpty{display:none}
@media(min-width:900px){
:root{--shell-x:max(28px,calc((100vw - 1320px)/2));--side-w:clamp(350px,31vw,430px)}
.view#homeView,.view#statusView,.view#channelsView,.view#settingsView{left:var(--shell-x);right:auto;top:24px;width:var(--side-w);max-width:none;height:calc(100dvh - 48px);transform:none;border:1px solid #2d3245;border-right-width:0;border-radius:24px 0 0 24px;overflow:hidden;box-shadow:0 30px 90px #0004}
.view#chatView{left:calc(var(--shell-x) + var(--side-w));right:var(--shell-x);top:24px;width:auto;max-width:none;height:calc(100dvh - 48px);transform:none;border:1px solid #2d3245;border-radius:0 24px 24px 0;overflow:hidden;box-shadow:0 30px 90px #0004}
.bottom-nav{max-width:none;width:var(--side-w);left:var(--shell-x);right:auto;transform:none;bottom:24px;border-radius:0 0 0 24px;padding:11px 22px 12px;border-right:0}
#chatEmpty{position:fixed;left:calc(var(--shell-x) + var(--side-w));right:var(--shell-x);top:24px;height:calc(100dvh - 48px);z-index:1;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(ellipse at 50% 30%,#232a41,transparent 75%),var(--bg);border:1px solid #2d3245;border-left-width:0;border-radius:0 24px 24px 0;box-shadow:0 30px 90px #0004}
#homeView.active ~ #chatEmpty,#statusView.active ~ #chatEmpty,#channelsView.active ~ #chatEmpty,#settingsView.active ~ #chatEmpty{display:flex}
#homeView.active ~ #chatView.active ~ #chatEmpty{display:none}
#chatView .topbar #backBtn{display:none}
.chat-empty-logo{width:88px;height:88px;border-radius:25px;box-shadow:0 18px 44px #0007;margin-bottom:12px}
#chatEmpty h2{font-size:26px;font-weight:700;letter-spacing:-1.1px;color:#c7bbff;margin:0}
#chatEmpty p{font-size:13px;color:var(--dim);margin:2px 0 0}
#chatView .messages{padding:18px 30px}
#chatView .msg{max-width:68%}
#chatView .composer{margin:8px 26px 20px}
#statusView .status-intro{max-width:none;width:auto;margin:6px 20px 18px}
#statusView #statusCreateSlot{max-width:none;width:auto;margin:0 20px}
#statusView #statusRailSlot{max-width:none;width:auto;margin:0 8px}
#statusView .section-heading{max-width:none;width:auto;margin:22px 22px 10px}
#homeView,#statusView,#channelsView,#settingsView{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
#settingsView .settings-scroll{max-width:none;flex:1;min-height:0}
}

/* ===== 5.06 themes: Daylight, Midnight black (AMOLED), Emerald, Sunset ===== */
:root[data-theme=amoled]{--bg:#000;--panel:#0a0a10;--stroke:#1e212e;--txt:#f4f2ff;--dim:#9aa0b8;--accent1:#a68fff;--accent2:#8a72f2;--grad:linear-gradient(135deg,#9a80fa,#7c64e6);--panel:rgba(150,140,220,.05)}
:root[data-theme=amoled] body{background:#000}
:root[data-theme=amoled] .glass{background:#0a0a10}
:root[data-theme=amoled] .auth-card{background:#0c0c13}
:root[data-theme=amoled] .bottom-nav{background:#06060b;border-top-color:#1e212e}
:root[data-theme=amoled] .home-search input{background:#0f1019}
:root[data-theme=amoled] .auth-form input,:root[data-theme=amoled] .pf-input{background:#11131d;border-color:#252938}
:root[data-theme=amoled] .messages:not([data-wallpaper]),:root[data-theme=amoled] .messages[data-wallpaper=default]{background-color:#040406}
:root[data-theme=amoled] .toast{background:#0f0f18}
:root[data-theme=amoled] .react-pill .chip{background:#0d0d15}
:root[data-theme=amoled] .ctxmenu.glass{background:rgba(9,9,16,.97)}
:root[data-theme=amoled] .language-control select{background:#0d0e17}
:root[data-theme=amoled] #chatEmpty{background:radial-gradient(ellipse at 50% 30%,#12141f,transparent 75%),#000}
:root[data-theme=emerald]{--bg:#07120e;--panel:#0e1b15;--stroke:#1e352a;--txt:#f1faf5;--dim:#8fa89d;--accent1:#35d692;--accent2:#14a37c;--grad:linear-gradient(135deg,#22bd82,#0f9370);--panel:rgba(110,220,180,.05)}
:root[data-theme=emerald] .o1{background:#12a274}
:root[data-theme=sunset]{--bg:#170d0a;--panel:#221311;--stroke:#3b241e;--txt:#fff4ef;--dim:#b39a91;--accent1:#ff9d68;--accent2:#e8607c;--grad:linear-gradient(135deg,#ef8a4c,#d84f70);--panel:rgba(255,170,130,.05)}
:root[data-theme=sunset] .o1{background:#d86a4a}
:root[data-theme=light]{--bg:#eef0f6;--panel:#ffffff;--stroke:#dde1ec;--txt:#181b28;--dim:#5c6376;--accent1:#7558f0;--accent2:#6147dd;--grad:linear-gradient(135deg,#8266f4,#684fe6);--panel:rgba(255,255,255,.7)}
:root[data-theme=light] body{background:#eef0f6}
:root[data-theme=light] .glass{background:#ffffff}
:root[data-theme=light] .view{background:var(--bg)}
:root[data-theme=light] .auth-card{background:#ffffff;box-shadow:0 24px 70px #3a3f6014}
:root[data-theme=light] .auth-card .brand{border-color:#181b2812}
:root[data-theme=light] .auth-card .brand h1{color:#181b28}
:root[data-theme=light] .auth-tagline{color:#5c6376}
:root[data-theme=light] .auth-intro p{color:#7a8098}
:root[data-theme=light] .auth-intro h2{color:#181b28}
:root[data-theme=light] .bottom-nav{background:#ffffff;border-top-color:#e2e5ef;box-shadow:0 -8px 28px #3a3f6012}
:root[data-theme=light] .nav-item{color:#6b7288}
:root[data-theme=light] .nav-item.selected{color:#6147dd}
:root[data-theme=light] .nav-item.selected:before{background:#7558f0}
:root[data-theme=light] .home-search input{background:#ffffff}
:root[data-theme=light] .auth-form input,:root[data-theme=light] .pf-input{background:#f6f7fb;border-color:#d6dae8;color:#181b28}
:root[data-theme=light] .auth-form label{color:#4a5165}
:root[data-theme=light] .messages:not([data-wallpaper]),:root[data-theme=light] .messages[data-wallpaper=default]{background-color:#e9ebf3;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23181b28%22%20stroke-opacity%3D%22.06%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M22%2035h22a5%205%200%200%201%205%205v12a5%205%200%200%201-5%205H32l-8%206v-6h-2a5%205%200%200%201-5-5V40a5%205%200%200%201%205-5z%22/%3E%3Cpath%20d%3D%22m130%2020%203%207%207%203-7%203-3%207-3-7-7-3%207-3zM80%20130c12-14%2026%202%200%2018-26-16-12-32%200-18z%22/%3E%3Ccircle%20cx%3D%22145%22%20cy%3D%22105%22%20r%3D%228%22/%3E%3Cpath%20d%3D%22M32%20125v10m-5-5h10M83%2068h2m0%200v2%22/%3E%3C/g%3E%3C/svg%3E')}
:root[data-theme=light] .msg.them{background:#ffffff;border-color:var(--stroke)}
:root[data-theme=light] .msg code.mono{background:rgba(20,24,44,.08)}
:root[data-theme=light] .toast{background:#ffffff;color:#181b28;box-shadow:0 12px 30px rgba(30,34,60,.18)}
:root[data-theme=light] .react-pill .chip{background:#ffffff;box-shadow:0 3px 10px rgba(30,34,60,.12)}
:root[data-theme=light] .ctxmenu.glass{background:rgba(255,255,255,.97);border-color:rgba(20,24,44,.12)}
:root[data-theme=light] .language-control select{background:#f6f7fb}
:root[data-theme=light] .user-row{background:rgba(24,27,40,.04)}
:root[data-theme=light] .user-row:active{background:rgba(24,27,40,.08)}
:root[data-theme=light] .note-row,:root[data-theme=light] #noteBody,:root[data-theme=light] .emoji-choices button,:root[data-theme=light] .pin-content{background:rgba(24,27,40,.05);border-color:rgba(24,27,40,.1)}
:root[data-theme=light] .channel-composer textarea{background:rgba(24,27,40,.045)}
:root[data-theme=light] .pinned-banner{background:#7558f012}
:root[data-theme=light] .reply-bar-body b{color:#6147dd}
:root[data-theme=light] #chatEmpty{background:radial-gradient(ellipse at 50% 30%,#dde1f0,transparent 75%),#eef0f6}
:root[data-theme=light] .view#homeView,:root[data-theme=light] .view#statusView,:root[data-theme=light] .view#channelsView,:root[data-theme=light] .view#settingsView,:root[data-theme=light] .view#chatView,:root[data-theme=light] #chatEmpty{border-color:#dde1ec;box-shadow:0 30px 80px #3a3f6016}
:root[data-theme=light] .service-notice{color:#5c6376}
:root[data-theme=light] .settings-group{background:#ffffff;border-color:#dde1ec}
:root[data-theme=light] .settings-group>button{border-bottom-color:rgba(24,27,40,.07)}
:root[data-theme=light] .status-intro{background:linear-gradient(130deg,#efeaff,#e2ecff);border-color:#ddd6f3}
:root[data-theme=light] .status-intro p{color:#5c6376}
:root[data-theme=light] .empty-state h2{color:#181b28}
/* ===== 5.06 wallpapers: original CSS/SVG art, no assets ===== */
#messages[data-wallpaper=space]{background:radial-gradient(ellipse at 70% 15%,#3b2a6e59,transparent 60%),radial-gradient(ellipse at 20% 80%,#143a5e4d,transparent 60%),radial-gradient(ellipse at 55% 55%,#5e2a4f33,transparent 55%),url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cg%20fill%3D%22%23cfd6ff%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2224%22%20r%3D%221.1%22%20opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%2262%22%20cy%3D%2212%22%20r%3D%22.8%22%20opacity%3D%22.35%22/%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2230%22%20r%3D%221.3%22%20opacity%3D%22.55%22/%3E%3Ccircle%20cx%3D%22145%22%20cy%3D%2214%22%20r%3D%22.7%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%2266%22%20r%3D%22.9%22%20opacity%3D%22.4%22/%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2258%22%20r%3D%221.2%22%20opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%2280%22%20r%3D%22.8%22%20opacity%3D%22.35%22/%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%22110%22%20r%3D%221%22%20opacity%3D%22.45%22/%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%22100%22%20r%3D%22.7%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%22105%22%20cy%3D%22128%22%20r%3D%221.1%22%20opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%22118%22%20r%3D%22.8%22%20opacity%3D%22.35%22/%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%22142%22%20r%3D%221.2%22%20opacity%3D%22.5%22/%3E%3Cpath%20d%3D%22M120%2052l1.2%203%203%201.2-3%201.2-1.2%203-1.2-3-3-1.2%203-1.2z%22%20opacity%3D%22.6%22/%3E%3C/g%3E%3C/svg%3E'),#0a0c18}
#messages[data-wallpaper=drive]{background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20700%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Crect%20width%3D%22400%22%20height%3D%22700%22%20fill%3D%22%23080a13%22/%3E%3Crect%20width%3D%22400%22%20height%3D%22440%22%20fill%3D%22%230b0e1c%22/%3E%3Ccircle%20cx%3D%22316%22%20cy%3D%2284%22%20r%3D%2230%22%20fill%3D%22%23e8ecf8%22%20opacity%3D%22.07%22/%3E%3Ccircle%20cx%3D%22316%22%20cy%3D%2284%22%20r%3D%2215%22%20fill%3D%22%23e8ecf8%22%20opacity%3D%22.38%22/%3E%3Ccircle%20cx%3D%22322%22%20cy%3D%2280%22%20r%3D%2213%22%20fill%3D%22%230b0e1c%22/%3E%3Cg%20fill%3D%22%23cfd6ff%22%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2260%22%20r%3D%221%22%20opacity%3D%22.4%22/%3E%3Ccircle%20cx%3D%22120%22%20cy%3D%2230%22%20r%3D%22.8%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%22210%22%20cy%3D%2280%22%20r%3D%221.1%22%20opacity%3D%22.35%22/%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%22160%22%20r%3D%22.8%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%22170%22%20cy%3D%22200%22%20r%3D%221%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%22260%22%20cy%3D%22160%22%20r%3D%22.8%22%20opacity%3D%22.28%22/%3E%3Ccircle%20cx%3D%22340%22%20cy%3D%22200%22%20r%3D%221%22%20opacity%3D%22.3%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%22260%22%20r%3D%22.8%22%20opacity%3D%22.25%22/%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22300%22%20r%3D%221%22%20opacity%3D%22.25%22/%3E%3Ccircle%20cx%3D%22240%22%20cy%3D%22280%22%20r%3D%22.8%22%20opacity%3D%22.22%22/%3E%3C/g%3E%3Cpath%20d%3D%22M0%20440h400v3H0z%22%20fill%3D%22%23161c2e%22/%3E%3Cpath%20d%3D%22M150%20700l40-260h20l40%20260z%22%20fill%3D%22%23101320%22/%3E%3Cpath%20d%3D%22M150%20700l40-260h4l-36%20260zM250%20700l-40-260h-4l36%20260z%22%20fill%3D%22%23273249%22/%3E%3Cpath%20d%3D%22M197%20700l4-260h1l4%20260z%22%20fill%3D%22%23e8d57a%22%20opacity%3D%22.35%22/%3E%3Cellipse%20cx%3D%22176%22%20cy%3D%22490%22%20rx%3D%226%22%20ry%3D%222.6%22%20fill%3D%22%23ff4d4d%22%20opacity%3D%22.55%22/%3E%3Cellipse%20cx%3D%22176%22%20cy%3D%22490%22%20rx%3D%2216%22%20ry%3D%226%22%20fill%3D%22%23ff4d4d%22%20opacity%3D%22.12%22/%3E%3Cellipse%20cx%3D%22228%22%20cy%3D%22520%22%20rx%3D%227%22%20ry%3D%223%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.5%22/%3E%3Cellipse%20cx%3D%22228%22%20cy%3D%22520%22%20rx%3D%2218%22%20ry%3D%227%22%20fill%3D%22%23ffd27a%22%20opacity%3D%22.1%22/%3E%3C/svg%3E'),#080a13;background-size:cover;background-position:center}
#messages[data-wallpaper=pixel]{background-color:#0b0d16;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2296%22%20height%3D%2296%22%20viewBox%3D%220%200%2096%2096%22%3E%3Cg%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%237c5cff%22%20opacity%3D%22.16%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2216%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%237c5cff%22%20opacity%3D%22.12%22/%3E%3Crect%20x%3D%2232%22%20y%3D%228%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%233ddc84%22%20opacity%3D%22.13%22/%3E%3Crect%20x%3D%2264%22%20y%3D%2216%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%234f8cff%22%20opacity%3D%22.15%22/%3E%3Crect%20x%3D%2272%22%20y%3D%2224%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%234f8cff%22%20opacity%3D%22.1%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2256%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%23ff5c8a%22%20opacity%3D%22.12%22/%3E%3Crect%20x%3D%2248%22%20y%3D%2248%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%233ddc84%22%20opacity%3D%22.1%22/%3E%3Crect%20x%3D%2280%22%20y%3D%2264%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%237c5cff%22%20opacity%3D%22.14%22/%3E%3Crect%20x%3D%2240%22%20y%3D%2280%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%23ffd25c%22%20opacity%3D%22.11%22/%3E%3Crect%20x%3D%228%22%20y%3D%2280%22%20width%3D%228%22%20height%3D%228%22%20fill%3D%22%234f8cff%22%20opacity%3D%22.09%22/%3E%3C/g%3E%3C/svg%3E')}
#messages[data-wallpaper=peaks]{background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20700%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Crect%20width%3D%22400%22%20height%3D%22700%22%20fill%3D%22%230b101d%22/%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%2290%22%20r%3D%2226%22%20fill%3D%22%23e8ecf8%22%20opacity%3D%22.14%22/%3E%3Cpath%20d%3D%22M0%20420l90-150%2070%20100%2060-80%20180%20210v200H0z%22%20fill%3D%22%23132033%22/%3E%3Cpath%20d%3D%22M90%20270l26%2036-16-4-10%2014-10-14-16%204zM220%20290l20%2028-12-3-8%2010-8-10-12%203z%22%20fill%3D%22%23c9d4ea%22%20opacity%3D%22.3%22/%3E%3Cpath%20d%3D%22M0%20520l120-120%2080%2080%2060-50%20140%20130v140H0z%22%20fill%3D%22%230d1524%22/%3E%3Cpath%20d%3D%22M0%20640l150-90%20110%2060%20140-50v140H0z%22%20fill%3D%22%23091018%22/%3E%3C/svg%3E'),#0b101d;background-size:cover;background-position:center}
#messages[data-wallpaper=gradient]{background:linear-gradient(155deg,#141a30 0%,#10131f 38%,#181326 68%,#0e1018 100%)}
#messages[data-wallpaper=geo]{background-color:#0c0e17;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238a94c8%22%20stroke-opacity%3D%22.09%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M60%208l46%2026v52l-46%2026-46-26V34z%22/%3E%3Cpath%20d%3D%22M60%2028l32%2018v36l-32%2018-32-18V46z%22/%3E%3Cpath%20d%3D%22M60%208v20m0%2048v18M14%2034l32%2018m28%2052l32%2018M106%2034L74%2052M46%20104l-32%2018%22/%3E%3C/g%3E%3C/svg%3E')}

/* ===== 5.06b theme surface cohesion: header, chat bg, bubbles, nav per new theme ===== */
:root[data-theme=amoled] #chatView .topbar{background:#050508!important;border-bottom-color:#ffffff10}
:root[data-theme=amoled] .messages:not([data-wallpaper]),:root[data-theme=amoled] .messages[data-wallpaper=default]{background-color:#000}
:root[data-theme=amoled] .msg.me{background:#5b4a9e}
:root[data-theme=emerald] body{background:#050d0a}
:root[data-theme=emerald] .glass{background:#0e1b15}
:root[data-theme=emerald] .auth-card{background:#0d1a14}
:root[data-theme=emerald] .bottom-nav{background:#0b1510;border-top-color:#1e352a}
:root[data-theme=emerald] .nav-item.selected{color:#5fe6ad}
:root[data-theme=emerald] .nav-item.selected:before{background:#2fd38e}
:root[data-theme=emerald] .home-search input{background:#0f1c16}
:root[data-theme=emerald] .auth-form input,:root[data-theme=emerald] .pf-input{background:#10201a;border-color:#1e352a}
:root[data-theme=emerald] #chatView .topbar{background:#0a1710!important;border-bottom-color:#ffffff10}
:root[data-theme=emerald] .messages:not([data-wallpaper]),:root[data-theme=emerald] .messages[data-wallpaper=default]{background-color:#08130e}
:root[data-theme=emerald] .msg.me{background:#177a5a}
:root[data-theme=emerald] .send-btn{background:#2fd38e;color:#06231a}
:root[data-theme=sunset] body{background:#120a08}
:root[data-theme=sunset] .glass{background:#221311}
:root[data-theme=sunset] .auth-card{background:#1e1210}
:root[data-theme=sunset] .bottom-nav{background:#180e0b;border-top-color:#3b241e}
:root[data-theme=sunset] .nav-item.selected{color:#ffb08a}
:root[data-theme=sunset] .nav-item.selected:before{background:#ff9d68}
:root[data-theme=sunset] .home-search input{background:#1d1210}
:root[data-theme=sunset] .auth-form input,:root[data-theme=sunset] .pf-input{background:#241511;border-color:#3b241e}
:root[data-theme=sunset] #chatView .topbar{background:#1a0f0c!important;border-bottom-color:#ffffff10}
:root[data-theme=sunset] .messages:not([data-wallpaper]),:root[data-theme=sunset] .messages[data-wallpaper=default]{background-color:#150c09}
:root[data-theme=sunset] .msg.me{background:#b8475a}
:root[data-theme=sunset] .send-btn{background:#ff9d68;color:#2a1408}
:root[data-theme=light] #chatView .topbar{background:#ffffff!important;border-bottom-color:#dde1ec}
:root[data-theme=light] .msg.me{background:#684fe6}
:root[data-theme=light] .send-btn{background:#7558f0;color:#ffffff}
:root[data-theme=light] #homeView .topbar-title h1{color:#181b28}
:root[data-theme=light] .icon-btn{background:#f2f3f9;border-color:#dde1ec;color:#181b28}
:root[data-theme=light] .icon-btn:hover{background:#e8eaf3}
:root[data-theme=emerald] .icon-btn{background:#122019;border-color:#1e352a}
:root[data-theme=sunset] .icon-btn{background:#251612;border-color:#3b241e}
:root[data-theme=amoled] .icon-btn{background:#101119;border-color:#1e212e}

#appearanceModal .btn-ghost,#wallpaperModal .btn-ghost{width:100%;margin-top:6px}
/* Daylight bubble + header contrast fixes */
:root[data-theme=light] .msg.me{color:#ffffff}
:root[data-theme=light] .msg.me .meta,:root[data-theme=light] .msg.me .ticks{color:#ffffffd9}
:root[data-theme=light] .msg.me .ticks.read{color:#b8f5d0}
:root[data-theme=light] #chatView .topbar .icon-btn,:root[data-theme=light] #chatView .topbar-title h1{color:#181b28}
:root[data-theme=light] #chatView .topbar .icon-btn:hover{background:#eef0f6}

/*5.08: long script labels must never collide with the next control. */
html:not([lang=en]):not([lang=hi]) .nav-item span{display:block;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.25;min-height:25px;text-align:center;letter-spacing:0}
html:not([lang=en]):not([lang=hi]) .nav-item{justify-content:flex-start;gap:5px}
html:not([lang=en]):not([lang=hi]) :is(#homeView,#statusView,#channelsView,#settingsView){padding-bottom:calc(101px + env(safe-area-inset-bottom,0px))}
html:not([lang=en]):not([lang=hi]) .chat-filters{overflow-x:auto;scrollbar-width:thin}
html:not([lang=en]):not([lang=hi]) .chat-filters button{flex-shrink:0;font-family:inherit}
.auth-legal{font-size:12.5px;color:var(--muted,#8696a0);margin:10px 2px 0;text-align:center;line-height:1.5}
.auth-legal a{color:var(--accent,#f0b429);text-decoration:none}
.auth-legal a:hover{text-decoration:underline}

.suspended-overlay{position:fixed;inset:0;background:#0b141a;z-index:999;display:flex;align-items:center;justify-content:center;padding:24px}
.suspended-card{max-width:420px;text-align:center}
.suspended-card h1{font-size:22px;margin:0 0 10px}
.suspended-card p{color:#8696a0;font-size:14.5px;line-height:1.6}
.suspended-card .suspended-hint{margin:14px 0 22px}
.suspended-card .suspended-hint a{color:#53bdeb}
.vtick{display:inline-block;vertical-align:-2px;margin-left:3px}
.report-shot-thumb{max-width:180px;max-height:120px;border-radius:8px;border:1px solid var(--line,#2a3942);margin:8px 0}
.appeal-form textarea{width:100%;background:var(--panel,#111b21);color:var(--text,#e9edef);border:1px solid var(--line,#2a3942);border-radius:10px;padding:10px;font:inherit;margin-top:8px}
.announce-bar{position:fixed;top:0;left:0;right:0;z-index:900;display:flex;align-items:center;gap:8px;background:var(--accent1);color:#fff;padding:8px 12px;font-size:14px}
.announce-bar.hidden{display:none}
.announce-x{margin-left:auto;background:none;border:0;color:#fff;font-size:20px;cursor:pointer;line-height:1}
.suspended-overlay{background:radial-gradient(1200px 600px at 50% -10%,rgba(124,92,255,.18),transparent 60%),var(--bg,#0b141a)}
.suspended-card{background:linear-gradient(160deg,rgba(124,92,255,.14),rgba(83,189,235,.06) 55%,transparent);border:1px solid rgba(124,92,255,.35);border-radius:22px;padding:36px 28px;box-shadow:0 18px 60px rgba(0,0,0,.45);max-width:420px;text-align:center}
.susp-icon{display:inline-flex;padding:16px;border-radius:50%;margin-bottom:10px;color:#8f7bff;background:rgba(124,92,255,.12);border:1px solid rgba(124,92,255,.4)}
.susp-icon.banned{color:#ff6b6b;background:rgba(255,107,107,.1);border-color:rgba(255,107,107,.4)}
.susp-icon.deleted{color:#f0a35e;background:rgba(240,163,94,.1);border-color:rgba(240,163,94,.4)}
.susp-icon.maint{color:#53bdeb;background:rgba(83,189,235,.1);border-color:rgba(83,189,235,.4)}
.h-icon{display:flex;align-items:center;gap:8px}
.h-ic{color:var(--accent1)}
.appeal-form textarea,.modal textarea,.modal input[type=text]{border-radius:12px}
/* ---- premium status screens v2 ---- */
@keyframes suspIn{from{opacity:0;transform:translateY(16px) scale(.975)}to{opacity:1;transform:none}}
@keyframes suspGlow{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes barDrop{from{transform:translateY(-100%)}to{transform:none}}
@keyframes modalPop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.suspended-overlay{background:radial-gradient(900px 500px at 50% -8%,color-mix(in srgb,var(--accent1) 20%,transparent),transparent 62%),var(--bg);display:flex;align-items:center;justify-content:center;padding:20px}
.suspended-card{position:relative;background:linear-gradient(165deg,color-mix(in srgb,var(--accent1) 13%,transparent),color-mix(in srgb,var(--accent2) 5%,transparent) 55%,transparent),var(--panel,#111b21);border:1px solid color-mix(in srgb,var(--accent1) 38%,transparent);border-radius:24px;padding:40px 32px 32px;box-shadow:0 24px 70px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.06);max-width:430px;width:100%;text-align:center;animation:suspIn .45s cubic-bezier(.22,.9,.3,1) both}
.susp-icon{position:relative;display:inline-grid;place-items:center;width:84px;height:84px;border-radius:50%;margin-bottom:14px;color:#8f7bff;background:color-mix(in srgb,#8f7bff 12%,transparent);border:1px solid color-mix(in srgb,#8f7bff 45%,transparent)}
.susp-icon::after{content:"";position:absolute;inset:-12px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,currentColor 34%,transparent),transparent 68%);z-index:-1;animation:suspGlow 2.8s ease-in-out infinite}
.susp-icon svg{width:46px;height:46px}
.susp-icon.banned{color:#ff6b6b;background:rgba(255,107,107,.1);border-color:rgba(255,107,107,.42)}
.susp-icon.deleted{color:#f0a35e;background:rgba(240,163,94,.1);border-color:rgba(240,163,94,.42)}
.susp-icon.maint{color:#53bdeb;background:rgba(83,189,235,.1);border-color:rgba(83,189,235,.42)}
.susp-chip{display:inline-block;padding:3px 13px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;margin-bottom:12px;color:#8f7bff;background:color-mix(in srgb,#8f7bff 12%,transparent);border:1px solid color-mix(in srgb,#8f7bff 40%,transparent)}
.susp-chip.banned{color:#ff6b6b;background:rgba(255,107,107,.1);border-color:rgba(255,107,107,.4)}
.susp-chip.deleted{color:#f0a35e;background:rgba(240,163,94,.1);border-color:rgba(240,163,94,.4)}
.susp-chip.maint{color:#53bdeb;background:rgba(83,189,235,.1);border-color:rgba(83,189,235,.4)}
.suspended-card h1{font-size:25px;font-weight:700;letter-spacing:-.4px;margin:0 0 8px;color:var(--txt)}
.suspended-card p{font-size:14px;line-height:1.65;color:var(--dim);margin:0 auto 6px;max-width:300px}
.suspended-hint{font-size:13px!important}
.suspended-card .btn-primary{background:var(--grad);border:0;box-shadow:0 8px 24px color-mix(in srgb,var(--accent1) 40%,transparent);transition:transform .15s,box-shadow .15s,opacity .15s}
.suspended-card .btn-primary:hover{transform:translateY(-1px);box-shadow:0 12px 30px color-mix(in srgb,var(--accent1) 50%,transparent)}
.suspended-card .btn-primary:active{transform:scale(.98)}
.suspended-card .btn-primary:disabled{opacity:.55;transform:none;box-shadow:none}
.suspended-card .btn-ghost{border:1px solid var(--stroke);transition:border-color .15s,background .15s}
.suspended-card .btn-ghost:hover{border-color:color-mix(in srgb,var(--accent1) 55%,transparent)}
.appeal-form{margin-top:14px;text-align:left}
.appeal-form textarea{border-radius:14px;transition:border-color .15s,box-shadow .15s}
.appeal-form textarea:focus{outline:none;border-color:var(--accent1);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent1) 22%,transparent)}
.appeal-form .btn-primary{background:var(--grad);border:0;width:100%;margin-top:10px;box-shadow:0 8px 24px color-mix(in srgb,var(--accent1) 40%,transparent);transition:transform .15s,opacity .15s}
.appeal-form .btn-primary:hover{transform:translateY(-1px)}
.appeal-form .btn-primary:disabled{opacity:.55;transform:none;box-shadow:none}
.report-shot-thumb{border-radius:12px;border:1px solid var(--stroke);box-shadow:0 6px 18px rgba(0,0,0,.35)}
/* announcement bar */
.announce-bar{background:var(--grad);box-shadow:0 4px 20px color-mix(in srgb,var(--accent1) 35%,transparent);backdrop-filter:blur(8px);animation:barDrop .35s cubic-bezier(.22,.9,.3,1) both;font-weight:500;z-index:1200}
.announce-x{border-radius:50%;width:26px;height:26px;display:grid;place-items:center;transition:background .15s}
.announce-x:hover{background:rgba(255,255,255,.18)}
/* modal entrance + premium inputs (report/appeal etc.) */
.modal-overlay.open .modal{animation:modalPop .3s cubic-bezier(.22,.9,.3,1) both}
.modal select,.modal textarea{transition:border-color .15s,box-shadow .15s}
.modal select:focus,.modal textarea:focus{outline:none;border-color:var(--accent1);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent1) 22%,transparent)}
#reportModal .btn-primary,#reportSend{background:var(--grad);border:0;box-shadow:0 8px 22px color-mix(in srgb,var(--accent1) 38%,transparent);transition:transform .15s,opacity .15s}
#reportSend:hover{transform:translateY(-1px)}
#reportSend:disabled{opacity:.55;transform:none;box-shadow:none}
.reduce-motion .suspended-card,.reduce-motion .announce-bar,.reduce-motion .modal-overlay.open .modal{animation:none!important}
.reduce-motion .susp-icon::after{animation:none!important;opacity:.5}

/* v5.14 notices: official one-way channel */
.icon-btn{position:relative;}
.notice-dot{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,#f43f5e,#fb7185);box-shadow:0 0 6px rgba(244,63,94,.8);border:1.5px solid var(--bg);}
.notice-dot.hidden{display:none;}
.notices-scroll{overflow-y:auto;height:calc(100% - 56px);padding:14px 14px 28px;display:flex;flex-direction:column;gap:12px;}
.notices-official{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:color-mix(in srgb,var(--accent1) 10%,transparent);border:1px solid color-mix(in srgb,var(--accent1) 25%,transparent);}
.notices-official-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff;background:linear-gradient(135deg,var(--accent1),#4f8cff);box-shadow:0 4px 14px color-mix(in srgb,var(--accent1) 40%,transparent);}
.notices-official b{font-size:16px;display:flex;align-items:center;gap:4px;}
.notices-official small{display:block;color:var(--dim);font-size:12px;margin-top:2px;}
.notice-card{border-radius:16px;padding:12px 14px;background:var(--panel);border:1px solid color-mix(in srgb,var(--accent1) 14%,transparent);box-shadow:0 2px 10px rgba(0,0,0,.12);animation:modalPop .25s ease both;}
.notice-card.warning{border-color:color-mix(in srgb,#f43f5e 45%,transparent);}
.notice-card.help{border-color:color-mix(in srgb,#10b981 45%,transparent);}
.notice-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.notice-chip{font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;padding:3px 9px;border-radius:999px;color:#fff;background:linear-gradient(135deg,#4f8cff,#7c5cff);}
.notice-chip.warning{background:linear-gradient(135deg,#f43f5e,#fb7185);}
.notice-chip.help{background:linear-gradient(135deg,#10b981,#34d399);}
.notice-when{font-size:11px;color:var(--dim);}
.notice-text{margin:0;color:var(--txt);font-size:14.5px;line-height:1.45;white-space:pre-wrap;word-break:break-word;}
.notices-empty{text-align:center;color:var(--dim);margin-top:32px;font-size:14px;}
.notices-foot{text-align:center;color:var(--dim);font-size:12px;margin-top:8px;padding:0 18px;line-height:1.5;}
@media (prefers-reduced-motion:reduce){.notice-card{animation:none;}}

/* v5.16 verification request - premium pass */
.verify-scroll{overflow-y:auto;height:calc(100% - 56px);padding:22px 16px 40px;display:flex;flex-direction:column;background:radial-gradient(420px 300px at 50% -60px,color-mix(in srgb,var(--accent1) 9%,transparent),transparent 70%);}
.verify-card{position:relative;background:linear-gradient(160deg,color-mix(in srgb,var(--panel) 92%,transparent),var(--panel));border:1px solid var(--stroke);border-radius:22px;padding:30px 22px;text-align:center;box-shadow:0 12px 36px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05);animation:verifyIn .45s cubic-bezier(.2,.8,.25,1) both;}
.verify-card.vstate::before{content:'';position:absolute;inset:-1px;border-radius:22px;padding:1px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent1) 45%,transparent),transparent 40%,transparent 60%,color-mix(in srgb,var(--accent1) 30%,transparent));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;}
@keyframes verifyIn{from{opacity:0;transform:translateY(16px) scale(.97);}to{opacity:1;transform:none;}}
.verify-card h2{margin:16px 0 10px;font-size:23px;font-weight:700;letter-spacing:-.5px;background:linear-gradient(120deg,var(--txt),color-mix(in srgb,var(--txt) 70%,var(--accent1)));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
.verify-card p{color:var(--dim);font-size:13.5px;line-height:1.6;margin:0 auto 16px;max-width:340px;}
.verify-consent{font-size:12px;border-left:2px solid var(--accent1);padding:12px 14px;background:color-mix(in srgb,var(--accent1) 8%,transparent);border-radius:10px;text-align:left;max-width:340px;}
.verify-icon{position:relative;display:grid;place-items:center;width:96px;height:96px;margin:0 auto;border-radius:50%;color:var(--accent1);background:radial-gradient(circle at 32% 28%,color-mix(in srgb,var(--accent1) 26%,transparent),color-mix(in srgb,var(--accent1) 9%,transparent) 70%);box-shadow:0 0 44px color-mix(in srgb,var(--accent1) 38%,transparent),inset 0 1px 0 rgba(255,255,255,.14);animation:verifyFloat 3.6s ease-in-out infinite;}
@keyframes verifyFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-5px);}}
.verify-ring{position:absolute;inset:-7px;border-radius:50%;border:1.5px dashed color-mix(in srgb,currentColor 45%,transparent);animation:verifySpin 14s linear infinite;color:inherit;}
.verify-ring.pulse{animation:verifyPulse 2.2s ease-out infinite;border-style:solid;}
@keyframes verifySpin{to{transform:rotate(360deg);}}
@keyframes verifyPulse{0%{transform:scale(.94);opacity:.9;}70%{transform:scale(1.12);opacity:0;}100%{opacity:0;}}
.verify-icon.ok{color:#10b981;background:radial-gradient(circle at 32% 28%,#10b98142,#10b98114 70%);box-shadow:0 0 44px #10b98155,inset 0 1px 0 rgba(255,255,255,.14);}
.verify-icon.wait{color:#f59e0b;background:radial-gradient(circle at 32% 28%,#f59e0b42,#f59e0b14 70%);box-shadow:0 0 44px #f59e0b55,inset 0 1px 0 rgba(255,255,255,.14);}
.verify-icon.no{color:#f43f5e;background:radial-gradient(circle at 32% 28%,#f43f5e42,#f43f5e14 70%);box-shadow:0 0 44px #f43f5e55,inset 0 1px 0 rgba(255,255,255,.14);}
.vchip{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;margin-top:14px;}
.vchip.ok{color:#34d399;background:#10b9811c;border:1px solid #10b9813d;}
.vchip.wait{color:#fbbf24;background:#f59e0b1c;border:1px solid #f59e0b3d;}
.vchip.no{color:#fb7185;background:#f43f5e1c;border:1px solid #f43f5e3d;}
.vsteps{display:flex;justify-content:center;gap:6px;margin:6px auto 18px;max-width:360px;}
.vstep{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10.5px;font-weight:600;color:var(--dim);position:relative;padding-top:2px;}
.vstep i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-style:normal;font-size:12px;background:color-mix(in srgb,var(--txt) 8%,transparent);border:1px solid var(--stroke);transition:all .3s;}
.vstep.cur{color:var(--txt);}
.vstep.cur i{background:var(--grad,var(--accent1));color:#fff;border-color:transparent;box-shadow:0 0 16px color-mix(in srgb,var(--accent1) 55%,transparent);}
.vstep.done{color:var(--accent1);}
.vstep.done i{background:color-mix(in srgb,var(--accent1) 18%,transparent);color:var(--accent1);border-color:color-mix(in srgb,var(--accent1) 40%,transparent);}
.vstep:not(:last-child)::after{content:'';position:absolute;top:15px;left:calc(50% + 20px);width:calc(100% - 40px);height:1.5px;background:var(--stroke);}
.vstep.done:not(:last-child)::after{background:color-mix(in srgb,var(--accent1) 50%,transparent);}
.vprog{display:flex;justify-content:center;gap:8px;margin:2px auto 16px;max-width:340px;}
.vprog span{flex:1;font-size:10.5px;font-weight:600;color:var(--dim);padding-top:10px;position:relative;}
.vprog span::before{content:'';position:absolute;top:0;left:10%;right:10%;height:3px;border-radius:3px;background:var(--stroke);}
.vprog span.done{color:var(--accent1);}
.vprog span.done::before{background:var(--accent1);}
.vprog span.cur{color:var(--txt);}
.vprog span.cur::before{background:var(--grad,var(--accent1));box-shadow:0 0 8px color-mix(in srgb,var(--accent1) 60%,transparent);animation:verifyBar 1.6s ease-in-out infinite;}
@keyframes verifyBar{0%,100%{opacity:1;}50%{opacity:.45;}}
.verify-reason{max-width:320px;margin:0 auto 18px;padding:12px 16px;border-radius:12px;background:color-mix(in srgb,#f43f5e 7%,transparent);border:1px solid #f43f5e2e;text-align:left;}
.verify-reason b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:#fb7185;margin-bottom:5px;}
.verify-reason p{margin:0!important;font-size:13px;color:var(--txt);max-width:none;}
.btn-gradient{background:var(--grad,linear-gradient(135deg,#4a6fd4,#53bdeb));border:none;color:#fff;font-weight:600;padding:12px 26px;border-radius:13px;box-shadow:0 6px 20px color-mix(in srgb,var(--accent1) 40%,transparent);transition:transform .15s,box-shadow .15s;}
.btn-gradient:hover{transform:translateY(-1px);box-shadow:0 9px 26px color-mix(in srgb,var(--accent1) 50%,transparent);}
.btn-gradient:active{transform:translateY(0);}
.verify-cam{width:100%;max-width:300px;border-radius:16px;margin:10px auto;display:block;background:#000;border:1px solid var(--stroke);box-shadow:0 8px 26px rgba(0,0,0,.3),0 0 0 4px color-mix(in srgb,var(--accent1) 12%,transparent);}
.verify-card .row{display:flex;gap:10px;justify-content:center;margin-top:12px;}
.verify-rec-dot{color:#f43f5e;font-weight:600;font-size:13px;}
@media (prefers-reduced-motion:reduce){.verify-card,.verify-icon,.verify-ring,.vprog span.cur::before{animation:none;}}

/* Random 1:1 chat */
.random-body{flex:1;min-height:0;display:flex;flex-direction:column;padding:18px;}
.random-pane{flex:1;min-height:0;display:flex;flex-direction:column}
.random-card{margin:auto;max-width:420px;text-align:center;display:flex;flex-direction:column;gap:14px;align-items:center;padding:26px 20px;border:1px solid var(--line,rgba(255,255,255,.09));border-radius:18px;background:var(--panel,rgba(255,255,255,.03))}
.random-card h2{margin:0;font-size:1.25rem}
.random-card p{margin:0;color:var(--muted,#9aa0b4);line-height:1.5;font-size:.95rem}
.random-note{font-size:.8rem!important;opacity:.75}
.random-spinner{width:34px;height:34px;border-radius:50%;border:3px solid var(--line,rgba(255,255,255,.15));border-top-color:var(--accent,#7c5cff);animation:rndspin 1s linear infinite}
@keyframes rndspin{to{transform:rotate(360deg)}}
.random-chat-head{display:flex;align-items:center;gap:8px;padding:10px 4px;border-bottom:1px solid var(--line,rgba(255,255,255,.08));font-size:1.02rem}
.random-dot{width:9px;height:9px;border-radius:50%;background:#3ddc84;display:inline-block}
.random-msgs{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:14px 2px}
.rnd-msg{max-width:78%;padding:9px 13px;border-radius:16px;line-height:1.4;word-break:break-word;font-size:.96rem}
.rnd-msg.me{align-self:flex-end;background:var(--accent,#7c5cff);color:#fff;border-bottom-right-radius:5px}
.rnd-msg.them{align-self:flex-start;background:var(--panel,rgba(255,255,255,.06));border:1px solid var(--line,rgba(255,255,255,.08));border-bottom-left-radius:5px}
.random-composer{display:flex;gap:8px;padding-top:8px}
.random-composer input{flex:1;min-width:0;border-radius:12px;border:1px solid var(--line,rgba(255,255,255,.12));background:var(--panel,rgba(255,255,255,.04));color:inherit;padding:10px 12px;font-size:.96rem}
.random-actions{display:flex;gap:6px;justify-content:space-between;padding-top:8px}
.random-actions .btn-ghost{flex:1;padding:8px 4px;font-size:.86rem}

/* Guest entry, same violet/glass visual language as account sign-in. */
.guest-entry{padding:20px;border:1px solid rgba(139,113,255,.3);border-radius:20px;background:linear-gradient(125deg,rgba(124,92,255,.13),rgba(79,140,255,.06));margin:4px 0 20px}.guest-eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;opacity:.65}.guest-entry h3{font-size:22px;margin:6px 0}.guest-entry p{font-size:13px;opacity:.75;margin:0 0 16px;line-height:1.5}.guest-entry button{width:100%;display:flex;justify-content:space-between;align-items:center}.guest-entry small{display:block;text-align:center;font-size:10px;opacity:.62;margin-top:12px}.auth-divider{display:flex;align-items:center;gap:10px;font-size:10px;opacity:.5;margin:0 0 22px}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:currentColor;flex:1}

@media(min-width:900px){.auth-card .guest-entry{grid-column:2;grid-row:1}.auth-card .auth-divider{grid-column:2;grid-row:2}.auth-card #loginForm,.auth-card #signupForm{grid-row:3}.auth-card .brand{grid-row:1/13}.auth-card .auth-intro{grid-row:1/13}}

.random-consent{display:flex;align-items:flex-start;gap:9px;text-align:left;font-size:12px;line-height:1.6;margin:20px 0}.random-consent input{width:18px;height:18px;flex:none;margin:2px 0;accent-color:#a68aff}.random-video{flex:none;padding:8px 14px;border-bottom:1px solid var(--stroke)}.random-video-bar{display:flex;align-items:center;gap:12px}.random-video-bar button{flex:none;font-size:12px}.random-video-bar span{font-size:11px;line-height:1.5;color:var(--dim)}.random-video-stage{position:relative;height:230px;background:#090b12;border-radius:14px;overflow:hidden;margin-top:8px}.random-video-stage video{width:100%;height:100%;object-fit:contain}.random-video-stage #randomLocalVideo{position:absolute;right:10px;bottom:10px;width:100px;height:76px;object-fit:cover;border:1px solid #ffffff55;border-radius:10px;transform:scaleX(-1)}.random-video-controls{display:flex;gap:8px;justify-content:center;padding:8px 0 2px}.random-video-controls button{font-size:11px;padding:9px 12px}@media(max-height:700px){.random-video-stage{height:150px}}

#randomIntroPane,#randomSearchPane,#randomEndedPane{overflow-y:auto}.random-card{flex-shrink:0}
