:root{--tg-bg:#0e1621;--tg-panel:#17212b;--tg-panel-2:#202b36;--tg-line:rgba(224,236,248,.09);--tg-text:#f5f7fa;--tg-muted:#8b9bab;--tg-blue:#3390ec;--tg-green:#2b8a69;--tg-bubble-in:#182533;--tg-bubble-out:#2b5278;--tg-bottom-gap:0px}
*{box-sizing:border-box}
html,body{margin:0;width:100%;min-height:100%;background:var(--tg-bg);color:var(--tg-text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
body.tg-app{min-height:100dvh;overflow:hidden}
button,input,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.tg-shell{height:100dvh;max-width:760px;margin:0 auto;background:var(--tg-bg);display:flex;flex-direction:column;position:relative;overflow:hidden;border-inline:1px solid rgba(255,255,255,.025)}
.tg-list-header{flex:none;background:var(--tg-panel);padding:calc(14px + env(safe-area-inset-top)) 16px 10px;box-shadow:0 2px 10px #0002;z-index:3}
.tg-brand-row{display:flex;align-items:center;gap:12px;margin-bottom:15px}.tg-brand-mark{height:42px;width:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#49a5f5,#2276c9);font-weight:800;font-size:20px}.tg-kicker{display:block;font-size:10px;letter-spacing:.16em;color:#70b8fa;font-weight:800}.tg-brand-row h1{font-size:23px;margin:2px 0 0;letter-spacing:-.035em}.tg-icon-btn{border:0;background:transparent;display:grid;place-items:center;min-width:42px;min-height:42px;border-radius:50%;font-size:25px;color:#a9c1d8}.tg-icon-btn:active,.tg-composer-icon:active{background:#ffffff16}.tg-brand-row>.tg-icon-btn{margin-left:auto;background:var(--tg-blue);color:white;font-size:28px;width:43px;height:43px}.tg-search{height:43px;display:flex;align-items:center;gap:9px;background:#0e1925;border:1px solid var(--tg-line);border-radius:24px;padding:0 13px;color:var(--tg-muted)}.tg-search>span{font-size:25px}.tg-search input{width:100%;border:0;outline:0;background:transparent;color:var(--tg-text);font-size:14px;min-width:0}.tg-search input::placeholder{color:#73869a}.tg-search button{border:0;background:none;color:#a9bacb;font-size:22px}.tg-filter-row{display:flex;gap:8px;overflow-x:auto;padding:12px 0 1px;scrollbar-width:none}.tg-filter-row::-webkit-scrollbar{display:none}.tg-filter{border:1px solid var(--tg-line);background:#202c39;color:#b3c2d0;padding:8px 13px;border-radius:18px;font-size:12px;white-space:nowrap}.tg-filter.is-active{background:#244c71;color:#fff;border-color:#3a82bd}
.tg-list-content{flex:1;overflow:auto;position:relative;padding:8px 0 18px}.tg-archive-row{display:flex;align-items:center;gap:13px;padding:12px 17px;min-height:70px;border-bottom:1px solid var(--tg-line)}.tg-archive-icon{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:#293f54;color:#80baf1;font-size:23px}.tg-archive-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.tg-archive-copy strong{font-size:14px;font-weight:650}.tg-archive-copy small{font-size:12px;color:var(--tg-muted)}.tg-chevron{font-size:25px;color:#75899c}.tg-archive-panel{padding:25px 28px;text-align:center;background:#111d29;border-bottom:1px solid var(--tg-line)}.tg-archive-panel p,.tg-empty-state p{color:var(--tg-muted);font-size:13px;line-height:1.6;max-width:300px;margin:8px auto 0}.tg-empty-state{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 24px 45px}.tg-empty-art{width:96px;height:96px;border-radius:32px;background:radial-gradient(circle at 30% 20%,#3b9df3,#1b5c99 65%,#153c5e);display:grid;place-items:center;box-shadow:0 14px 40px #0004;margin-bottom:20px;transform:rotate(-5deg)}.tg-empty-art span{font-size:43px;color:#e8f6ff}.tg-empty-state h2{font-size:19px;margin:0;font-weight:700}.tg-primary-btn{margin-top:22px;background:var(--tg-blue);color:white;border-radius:24px;padding:12px 19px;font-weight:650;font-size:13px}.tg-chat-list{padding:8px 0}.tg-chat-row{display:flex;gap:12px;align-items:center;padding:12px 16px;min-height:78px;border-bottom:1px solid #ffffff06}.tg-chat-row:active{background:#ffffff0a}.tg-avatar{width:50px;height:50px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#479bd9,#2969a6);font-size:20px;font-weight:700;color:#fff}.tg-chat-row-copy{flex:1;min-width:0}.tg-chat-row-copy strong{display:block;font-size:14px;margin-bottom:6px}.tg-chat-row-copy p{margin:0;color:var(--tg-muted);font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tg-bottom-nav{flex:none;min-height:64px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#17212b;border-top:1px solid var(--tg-line);z-index:4}.tg-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#8498ab;font-size:11px;min-width:0;border-radius:12px}.tg-bottom-nav a>span:first-child{font-size:21px;line-height:1.2}.tg-bottom-nav a.is-current{color:#66b5ff}.tg-bottom-nav a.is-current>span:first-child{filter:drop-shadow(0 0 5px #3390ec50)}
.tg-conversation-shell{height:100dvh;height:100svh;max-width:760px;margin:0 auto;background:var(--tg-bg);display:flex;flex-direction:column;position:relative;overflow:hidden;border-inline:1px solid #ffffff08}.tg-chat-header{flex:none;display:flex;align-items:center;gap:7px;min-height:62px;padding:calc(6px + env(safe-area-inset-top)) 8px 7px;background:var(--tg-panel);border-bottom:1px solid var(--tg-line);z-index:6}.tg-back-btn{font-size:34px;min-width:34px;width:34px}.tg-person-button{border:0;background:transparent;display:flex;align-items:center;gap:10px;min-width:0;flex:1;text-align:left;padding:0 3px}.tg-avatar-large{width:42px;height:42px;font-size:17px}.tg-person-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.tg-person-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tg-person-copy small{font-size:11px;color:#8da3b7}.tg-header-actions{display:flex;align-items:center;gap:0}.tg-header-actions .tg-icon-btn{width:35px;min-width:35px;min-height:40px;font-size:19px}
.tg-message-area{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 12px 18px;display:flex;flex-direction:column;gap:12px;background-color:#0e1621;background-image:radial-gradient(circle at 15% 25%,#1b314010 0 2px,transparent 3px),radial-gradient(circle at 75% 65%,#1b314010 0 2px,transparent 3px);background-size:39px 39px}.tg-day-pill{align-self:center;border-radius:14px;background:#263746d9;color:#c5d2dd;padding:5px 11px;font-size:11px;position:sticky;top:0;z-index:1}.tg-chat-intro{align-self:center;max-width:310px;margin:auto auto 12px;text-align:center;padding:18px 18px 20px;border-radius:18px;background:#182633e8;border:1px solid #ffffff08}.tg-chat-intro-avatar{width:46px;height:46px;border-radius:50%;margin:0 auto 12px;display:grid;place-items:center;background:#234d72;color:#a8d8ff;font-size:22px}.tg-chat-intro strong{font-size:14px}.tg-chat-intro p{font-size:12px;line-height:1.55;color:#9aafc2;margin:8px 0 0}.tg-messages{display:flex;flex-direction:column;gap:8px}.tg-message{max-width:min(82%,460px);padding:9px 11px 7px;border-radius:13px;position:relative;overflow-wrap:anywhere;box-shadow:0 1px 1px #0002}.tg-message.incoming{align-self:flex-start;background:var(--tg-bubble-in);border-bottom-left-radius:4px}.tg-message.outgoing{align-self:flex-end;background:var(--tg-bubble-out);border-bottom-right-radius:4px}.tg-message-text{white-space:pre-wrap;font-size:14px;line-height:1.43}.tg-message-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:4px 0 0 15px;color:#a8bdcd;font-size:10px}.tg-message-check{color:#83d7f9;font-weight:800}.tg-file-chip{display:flex;align-items:center;gap:9px;padding:9px;background:#0002;border-radius:9px;font-size:12px}.tg-file-chip span:first-child{font-size:23px}.tg-audio-preview{width:220px;max-width:100%}.tg-typing-indicator{align-self:flex-start;display:flex;align-items:center;gap:4px;color:#8ea6ba;background:var(--tg-bubble-in);padding:9px 12px;border-radius:15px}.tg-typing-indicator span{height:5px;width:5px;border-radius:50%;background:#7d9ab2;animation:tg-pulse 1s infinite alternate}.tg-typing-indicator span:nth-child(2){animation-delay:.2s}.tg-typing-indicator span:nth-child(3){animation-delay:.4s}.tg-typing-indicator small{margin-left:4px;font-size:11px}@keyframes tg-pulse{to{opacity:.35;transform:translateY(-2px)}}
.tg-composer{flex:none;position:relative;z-index:7;background:var(--tg-panel);padding:9px 9px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--tg-line);transform:translateY(calc(-1 * var(--tg-keyboard-overlap,0px)));transition:transform .08s linear}.tg-composer-tools{display:flex;align-items:flex-end;gap:6px}.tg-composer-icon{border:0;background:transparent;color:#a7bacb;width:39px;height:42px;min-width:39px;border-radius:50%;font-size:25px;display:grid;place-items:center}.tg-input-wrap{display:flex;align-items:flex-end;gap:0;min-width:0;flex:1;background:#0e1925;border-radius:22px;border:1px solid #ffffff0a;padding:3px 4px 3px 13px}.tg-input-wrap textarea{flex:1;min-width:0;max-height:120px;min-height:34px;resize:none;border:0;outline:0;background:transparent;color:#f4f8fc;padding:7px 0;font-size:15px;line-height:20px}.tg-input-wrap textarea::placeholder{color:#8295a8}.tg-emoji-button{height:36px;width:36px;min-width:36px;font-size:22px}.tg-send-button{width:42px;height:42px;min-width:42px;border:0;border-radius:50%;background:var(--tg-blue);display:grid;place-items:center;font-size:19px;color:white;box-shadow:0 4px 12px #0002}.tg-send-button:active{transform:scale(.95)}.tg-mic-button{font-size:18px}.tg-composer-hint{text-align:center;color:#6f8599;font-size:9px;padding:6px 0 0}.tg-recording-bar{display:flex;align-items:center;gap:10px;padding:10px 2px 2px}.tg-record-cancel,.tg-record-send{border:0;border-radius:18px;padding:8px 12px}.tg-record-cancel{background:#344351;font-size:18px}.tg-record-send{background:var(--tg-blue);font-size:12px;font-weight:700}.tg-record-dot{width:9px;height:9px;background:#f05e6d;border-radius:50%;animation:tg-pulse .7s infinite alternate}.tg-record-label{font-size:12px;color:#c2d1dd;flex:1}.tg-recording-bar strong{font-size:12px;font-variant-numeric:tabular-nums}
.tg-attach-menu,.tg-emoji-panel,.tg-chat-menu{position:absolute;z-index:10;background:#22303e;border:1px solid #ffffff14;box-shadow:0 10px 35px #0007;border-radius:14px;padding:7px}.tg-attach-menu{left:10px;bottom:calc(72px + env(safe-area-inset-bottom));width:220px}.tg-attach-menu button,.tg-chat-menu button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;text-align:left;padding:12px;border-radius:8px;font-size:17px;color:#9ecbf4}.tg-attach-menu button span,.tg-chat-menu button span{color:#e8eff5;font-size:13px}.tg-attach-menu button:active,.tg-chat-menu button:active{background:#ffffff12}.tg-emoji-panel{right:58px;bottom:calc(68px + env(safe-area-inset-bottom));width:min(300px,calc(100vw - 24px));display:grid;grid-template-columns:repeat(7,1fr);gap:3px;max-height:210px;overflow:auto}.tg-emoji-panel button{border:0;background:transparent;border-radius:8px;padding:7px 0;font-size:22px}.tg-emoji-panel button:active{background:#ffffff18}.tg-chat-menu{right:8px;top:58px;width:225px}.tg-chat-menu button{font-size:17px;color:#c0d3e3}.tg-reply-preview{flex:none;display:flex;gap:10px;align-items:center;padding:8px 14px;background:#1b2936}.tg-reply-accent{width:3px;align-self:stretch;background:var(--tg-blue);border-radius:2px}.tg-reply-preview>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.tg-reply-preview strong{font-size:11px;color:#69b4fa}.tg-reply-preview small{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tg-reply-preview button{border:0;background:none;font-size:20px;color:#9fb1c2}.tg-info-panel{position:absolute;z-index:12;inset:0;background:#17212b;padding:18px 20px;text-align:center;overflow:auto}.tg-info-head{display:flex;align-items:center;justify-content:space-between;font-size:16px}.tg-info-head button{border:0;background:none;font-size:26px}.tg-info-avatar{width:90px;height:90px;font-size:34px;margin:38px auto 15px}.tg-info-panel h2{font-size:20px;margin:0}.tg-info-panel p{font-size:12px;color:var(--tg-muted)}.tg-info-note{max-width:330px;margin:28px auto;background:#202e3a;border-radius:14px;padding:15px;font-size:12px;line-height:1.6;color:#a5b6c5}.tg-toast{position:fixed;z-index:50;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translate(-50%,12px);opacity:0;pointer-events:none;max-width:calc(100vw - 28px);background:#263847;color:#f5f9fc;border:1px solid #ffffff14;border-radius:12px;padding:11px 15px;font-size:12px;box-shadow:0 10px 30px #0005;transition:opacity .2s,transform .2s}.tg-toast.is-visible{opacity:1;transform:translate(-50%,0)}.tg-empty-icon{font-size:27px;color:#7ab8f1;margin-bottom:8px}
@media(min-width:760px){.tg-shell,.tg-conversation-shell{border-radius:0;box-shadow:0 0 45px #0004}.tg-chat-header{padding-left:16px;padding-right:16px}.tg-message-area{padding-left:26px;padding-right:26px}.tg-composer{padding-left:18px;padding-right:18px}.tg-chat-intro{margin-top:60px;margin-bottom:auto}}
@media(max-width:370px){.tg-chat-header{gap:2px;padding-inline:4px}.tg-header-actions .tg-icon-btn{width:31px;min-width:31px;font-size:17px}.tg-person-button{gap:7px}.tg-avatar-large{width:37px;height:37px}.tg-back-btn{width:30px;min-width:30px}.tg-composer-tools{gap:2px}.tg-composer-icon{width:34px;min-width:34px}.tg-send-button{width:39px;min-width:39px;height:39px}.tg-message{max-width:88%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Supabase connection status for the rebuilt chat interface */
.tg-backend-status{margin:10px 0 0;padding:7px 10px;border:1px solid rgba(85,170,130,.24);border-radius:9px;background:rgba(46,139,98,.10);color:var(--tg-muted,#9fb0bf);font-size:11px;line-height:1.4}

/* Live conversation list, Telegram-style dialogs and message actions */
.tg-chat-row{position:relative;gap:12px}.tg-chat-row-copy{display:block}.tg-chat-row-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px;align-self:stretch;padding:3px 0;color:var(--tg-muted);font-size:10px}.tg-unread-dot{width:9px;height:9px;border-radius:50%;background:var(--tg-blue);display:block}.tg-chat-row img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.tg-new-chat-dialog{width:min(92vw,480px);max-height:min(82dvh,720px);padding:0;border:1px solid var(--tg-line);border-radius:20px;background:var(--tg-panel);color:var(--tg-text);box-shadow:0 25px 90px #0009;overflow:hidden}.tg-new-chat-dialog::backdrop{background:#020811b8;backdrop-filter:blur(4px)}.tg-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:17px 18px 12px;border-bottom:1px solid var(--tg-line)}.tg-dialog-head h2{font-size:20px;margin:3px 0 0}.tg-dialog-help{margin:14px 18px;color:var(--tg-muted);font-size:12px;line-height:1.5}.tg-dialog-search{margin:0 16px 10px}.tg-new-chat-results{padding:4px 12px 14px;max-height:45dvh;overflow:auto;color:var(--tg-muted);font-size:13px}.tg-user-result{width:100%;display:flex;align-items:center;gap:12px;padding:10px 7px;border:0;border-radius:12px;background:transparent;text-align:left}.tg-user-result:active,.tg-user-result:hover{background:#ffffff0a}.tg-user-result-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.tg-user-result-copy strong{color:var(--tg-text);font-size:13px}.tg-user-result-copy small{color:var(--tg-muted);font-size:11px}.tg-dialog-footer{padding:12px 16px 16px;border-top:1px solid var(--tg-line);display:flex;justify-content:flex-end}.tg-dialog-footer .tg-primary-btn{border:0;cursor:pointer;margin:0}
.tg-message-actions{display:flex;justify-content:flex-end;gap:2px;opacity:.6;margin-top:2px}.tg-message-actions button{border:0;background:transparent;color:#c1d6e7;border-radius:7px;padding:2px 5px;font-size:13px;min-width:24px;min-height:22px}.tg-message-actions button:active{background:#ffffff20}.tg-message-image{display:block;max-width:min(62vw,300px);max-height:300px;object-fit:cover;border-radius:10px;margin:0 0 6px}.tg-message-highlight{outline:2px solid var(--tg-blue);outline-offset:2px}.tg-message-reply{border-left:3px solid #7bc0ff;padding:3px 7px;margin-bottom:7px;background:#0002;border-radius:0 6px 6px 0;font-size:11px;color:#b8d9f3}.tg-file-chip[role=button]{cursor:pointer}.tg-file-chip[role=button]:hover{background:#ffffff18}
@media(hover:hover){.tg-message-actions{opacity:0}.tg-message:hover .tg-message-actions,.tg-message:focus-within .tg-message-actions{opacity:1}}
@media(min-width:700px){.tg-shell,.tg-conversation-shell{max-width:820px;border-inline:1px solid var(--tg-line);box-shadow:0 0 60px #0002}.tg-list-header{padding-inline:22px}.tg-chat-row{padding-inline:22px}.tg-message-area{padding-inline:clamp(16px,4vw,40px)}.tg-composer{padding-inline:16px}.tg-message{max-width:min(72%,540px)}}

.tg-group-title-field{display:flex;flex-direction:column;gap:7px;margin:0 16px 12px;color:var(--tg-muted);font-size:12px}.tg-group-title-field input{width:100%;min-height:42px;border-radius:12px;border:1px solid var(--tg-line);background:#0e1925;color:var(--tg-text);padding:0 12px;outline:none}.tg-group-title-field input:focus{border-color:var(--tg-blue)}.tg-user-result.is-selected{background:#244c713d;outline:1px solid #3390ec55}.tg-user-check{margin-left:auto;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--tg-blue);color:white;font-weight:800}

.tg-call-overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:20px;background:#020811d9;backdrop-filter:blur(10px)}.tg-call-card{width:min(100%,420px);max-height:90dvh;overflow:auto;background:var(--tg-panel);border:1px solid var(--tg-line);border-radius:24px;padding:26px 22px;text-align:center;box-shadow:0 25px 90px #0009}.tg-call-avatar{width:90px;height:90px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:linear-gradient(145deg,#49a5f5,#2276c9);font-size:30px;font-weight:800}.tg-call-card h2{margin:0;font-size:21px}.tg-call-card p{margin:8px 0 20px;color:var(--tg-muted);font-size:13px}.tg-call-card video{width:100%;max-height:220px;object-fit:cover;border-radius:14px;background:#050b11;margin:5px 0}.tg-call-actions{display:flex;justify-content:center;gap:10px;margin-top:20px}.tg-call-actions button{border:0;border-radius:22px;padding:12px 17px;font-weight:700;background:#34485b;color:white}.tg-call-actions #tg-call-accept{background:#238c5a}.tg-call-actions #tg-call-reject,.tg-call-actions #tg-call-end{background:#c8444f}#tg-remote-audio{width:100%}
.tg-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.tg-reaction-chip{display:inline-flex;align-items:center;justify-content:center;min-width:25px;min-height:22px;padding:2px 7px;border-radius:12px;background:#0c1b29a8;border:1px solid #ffffff14;font-size:14px}


/* ZakiChat conversation UI refresh: clearer spacing and calmer controls */
.tg-conversation-shell{
  max-width:900px;
  background:
    radial-gradient(ellipse at 12% 0%,rgba(32,155,214,.075),transparent 34%),
    var(--tg-bg);
}
.tg-chat-header{
  gap:10px;
  min-height:72px;
  padding-inline:clamp(10px,2.4vw,22px);
  background:linear-gradient(120deg,#172735,#17212b 70%);
  box-shadow:0 8px 26px rgba(0,0,0,.12);
}
.tg-back-btn{
  flex:0 0 42px;
  width:42px;
  min-width:42px;
  min-height:42px;
  border:1px solid rgba(157,198,229,.13);
  background:rgba(255,255,255,.035);
  font-size:29px;
}
.tg-person-button{
  gap:12px;
  padding-inline:2px 8px;
}
.tg-avatar-large{
  width:46px;
  height:46px;
  border:2px solid rgba(111,199,255,.23);
  box-shadow:0 4px 16px rgba(0,0,0,.2);
}
.tg-person-copy{gap:5px}
.tg-person-copy strong{font-size:15px;letter-spacing:-.01em}
.tg-person-copy small{font-size:12px}
.tg-header-actions{gap:5px;flex:0 0 auto}
.tg-header-actions .tg-icon-btn{
  width:42px;
  min-width:42px;
  min-height:42px;
  border:1px solid rgba(157,198,229,.12);
  background:rgba(255,255,255,.035);
  color:#b8d7ef;
  font-size:19px;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.tg-header-actions .tg-icon-btn:hover,
.tg-header-actions .tg-icon-btn:focus-visible{
  background:rgba(51,144,236,.16);
  border-color:rgba(83,171,244,.42);
}
.tg-header-actions .tg-icon-btn:active{transform:scale(.94)}
.tg-message-area{
  padding:clamp(16px,3vw,28px) clamp(12px,3.5vw,34px) 22px;
  gap:16px;
  background-color:#0e1621;
  background-image:
    radial-gradient(circle at 12% 22%,rgba(64,139,190,.055) 0 1.5px,transparent 2px),
    radial-gradient(circle at 77% 68%,rgba(64,139,190,.045) 0 1.5px,transparent 2px);
  background-size:44px 44px;
}
.tg-day-pill{
  padding:6px 13px;
  border:1px solid rgba(198,222,241,.08);
  background:rgba(38,55,70,.9);
  font-size:11px;
}
.tg-chat-intro{
  max-width:340px;
  padding:22px 22px 24px;
  border-radius:22px;
  background:linear-gradient(145deg,rgba(26,43,57,.96),rgba(20,33,45,.95));
  border-color:rgba(169,207,237,.09);
  box-shadow:0 14px 40px rgba(0,0,0,.12);
}
.tg-chat-intro-avatar{
  width:52px;height:52px;
  border-radius:18px;
  background:linear-gradient(145deg,#238cc9,#2454a1);
  box-shadow:0 8px 24px rgba(22,113,180,.22);
}
.tg-chat-intro strong{font-size:15px}
.tg-chat-intro p{font-size:13px}
.tg-messages{gap:10px}
.tg-message{
  max-width:min(78%,560px);
  padding:11px 13px 8px;
  border-radius:16px;
  box-shadow:0 3px 9px rgba(0,0,0,.11);
}
.tg-message.incoming{
  background:linear-gradient(145deg,#1c2b38,#192633);
  border:1px solid rgba(201,224,242,.035);
  border-bottom-left-radius:5px;
}
.tg-message.outgoing{
  background:linear-gradient(135deg,#285b83,#244d72);
  border:1px solid rgba(139,206,255,.09);
  border-bottom-right-radius:5px;
}
.tg-message-text{font-size:14.5px;line-height:1.52}
.tg-message-meta{font-size:10.5px;margin-top:6px}
.tg-composer{
  padding:12px clamp(10px,2.4vw,20px) calc(9px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,#17212b,#15212c);
  border-top:1px solid rgba(210,230,245,.11);
  box-shadow:0 -8px 28px rgba(0,0,0,.12);
}
.tg-composer-tools{align-items:center;gap:9px}
.tg-input-wrap{
  min-height:48px;
  align-items:center;
  gap:4px;
  padding:4px 7px 4px 8px;
  border-radius:25px;
  border:1px solid rgba(170,205,232,.13);
  background:linear-gradient(145deg,#0e1a26,#111e2a);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.tg-input-wrap:focus-within{
  border-color:rgba(73,166,235,.55);
  box-shadow:0 0 0 3px rgba(51,144,236,.08);
}
.tg-input-wrap textarea{
  min-height:36px;
  padding:8px 3px;
  font-size:15px;
  line-height:21px;
}
.tg-composer-icon{
  width:38px;height:38px;min-width:38px;
  border-radius:50%;
  color:#a9c7dd;
  font-size:23px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.tg-composer-icon:hover,.tg-composer-icon:focus-visible{
  background:rgba(51,144,236,.14);
  color:#e2f3ff;
}
.tg-emoji-button{width:36px;min-width:36px;height:38px;font-size:22px}
.tg-attach-inline{width:36px;min-width:36px;height:38px;font-size:27px;color:#81bde8}
.tg-send-button{
  width:48px;height:48px;min-width:48px;
  font-size:20px;
  background:linear-gradient(145deg,#43a9f4,#247ed0);
  box-shadow:0 6px 17px rgba(31,128,209,.25),inset 0 1px 0 rgba(255,255,255,.2);
  transition:transform .16s ease,filter .16s ease;
}
.tg-send-button:hover{filter:brightness(1.08)}
.tg-send-button:active{transform:scale(.94)}
.tg-mic-button{background:linear-gradient(145deg,#2b9fcb,#2778b8);font-size:19px}
.tg-composer-hint{font-size:10px;padding-top:7px;color:#8096a9}
.tg-reply-preview{
  padding:10px 16px;
  background:linear-gradient(90deg,#1b2c3b,#1a2835);
  border-top:1px solid rgba(210,230,245,.05);
}
.tg-reply-preview strong{font-size:12px}
.tg-reply-preview small{font-size:13px}
.tg-attach-menu,.tg-emoji-panel,.tg-chat-menu{
  background:rgba(29,44,58,.98);
  border-color:rgba(193,221,242,.14);
  backdrop-filter:blur(18px);
  box-shadow:0 18px 48px rgba(0,0,0,.42);
}
.tg-chat-menu{top:calc(62px + env(safe-area-inset-top));right:12px}
.tg-toast{font-size:13px;padding:12px 17px;border-radius:15px}
@media(min-width:760px){
  .tg-conversation-shell{max-width:900px;border-radius:18px;border:1px solid rgba(255,255,255,.06);height:min(100dvh,1100px);margin:0 auto;box-shadow:0 16px 70px rgba(0,0,0,.24)}
  .tg-chat-header{border-radius:18px 18px 0 0}
  .tg-composer{border-radius:0 0 18px 18px}
}
@media(max-width:430px){
  .tg-chat-header{gap:6px;padding-inline:7px;min-height:66px}
  .tg-back-btn{flex:0 0 36px;width:36px;min-width:36px;min-height:40px}
  .tg-person-button{gap:8px;padding-inline:0}
  .tg-avatar-large{width:39px;height:39px;font-size:15px}
  .tg-person-copy strong{font-size:13px;max-width:110px}
  .tg-person-copy small{font-size:10px;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tg-header-actions{gap:2px}
  .tg-header-actions .tg-icon-btn{width:35px;min-width:35px;min-height:38px;font-size:17px}
  .tg-composer{padding:9px 8px calc(7px + env(safe-area-inset-bottom))}
  .tg-composer-tools{gap:6px}
  .tg-input-wrap{gap:2px;padding-inline:5px}
  .tg-emoji-button,.tg-attach-inline{width:31px;min-width:31px;height:36px;font-size:21px}
  .tg-attach-inline{font-size:25px}
  .tg-send-button{width:42px;height:42px;min-width:42px}
  .tg-input-wrap textarea{font-size:14px}
  .tg-composer-hint{font-size:9px}
  .tg-message{max-width:88%}
}
@media(max-width:350px){
  .tg-header-actions .tg-icon-btn{width:31px;min-width:31px}
  .tg-person-copy strong{max-width:82px}
  .tg-person-copy small{max-width:82px}
  .tg-composer-tools{gap:4px}
  .tg-emoji-button,.tg-attach-inline{width:28px;min-width:28px}
  .tg-send-button{width:39px;height:39px;min-width:39px}
}


/* ZakiChat screenshot-matched chat list skin */
:root{--tg-bg:#17110f;--tg-panel:#1d1714;--tg-panel-2:#29201c;--tg-line:rgba(255,211,177,.08);--tg-text:#f4c7a7;--tg-muted:#9a879b;--tg-blue:#7777b5;--tg-bottom-gap:0px}
html,body{background:#17110f;color:#f4c7a7}
.tg-shell{max-width:760px;background:#17110f;border:0}
.tg-list-header{background:#17110f;padding:calc(15px + env(safe-area-inset-top)) 22px 10px;box-shadow:none;position:relative}
.tg-brand-row{gap:0;margin:0 0 8px;min-height:48px}
.tg-brand-row .tg-wordmark{font-size:30px;font-weight:750;letter-spacing:-.04em;color:#f4c7a7;margin:0;line-height:1.2}
.tg-brand-row .tg-header-actions{margin-left:auto;display:flex;align-items:center;gap:15px}
.tg-brand-row .tg-header-actions .tg-icon-btn{font-size:29px;min-width:34px;width:34px;min-height:42px;height:42px;color:#f4c7a7;background:transparent;border-radius:50%;font-weight:400}
#app-lock-button{font-size:27px!important}
#top-menu-toggle{font-size:30px!important}
#top-search-box{display:none;background:transparent;border:1px solid rgba(244,199,167,.22);border-radius:22px;margin:8px 0 2px;height:40px}
#top-search-box.is-open{display:flex}
#top-search-box input{color:#f4c7a7}
#top-search-box input::placeholder{color:#9a879b}
.tg-filter-row,.tg-backend-status,.tg-archive-row,.tg-archive-panel{display:none!important}
.tg-list-content{padding:0 0 110px;background:#17110f;scrollbar-width:none}
.tg-list-content::-webkit-scrollbar{display:none}
.tg-chat-list{padding:0}
.tg-chat-row{gap:14px;min-height:100px;padding:13px 22px;border:0;background:transparent}
.tg-chat-row:active{background:#ffffff08}
.tg-chat-row .tg-avatar{width:72px;height:72px;min-width:72px;font-size:23px;background:#4c3a80;color:#f4c7a7}
.tg-chat-row-copy strong{font-size:18px;font-weight:650;color:#f4c7a7;margin:0 0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tg-chat-row-copy p{font-family:"Comic Sans MS","Segoe Print",cursive;font-size:15px;color:#a18ba5;line-height:1.35}
.tg-chat-row-meta{justify-content:flex-start;align-items:flex-end;gap:10px;padding:4px 0;color:#a18ba5;font-size:13px;min-width:42px}
.tg-chat-row-meta small:first-child{font-size:13px;white-space:nowrap}
.tg-unread-dot{width:auto;height:auto;min-width:28px;min-height:28px;border-radius:20px;background:#7777b5;color:#ffe0bd;padding:4px 8px;position:relative}
.tg-unread-dot::after{content:"";display:block;width:100%;height:100%}
.tg-bottom-nav{position:absolute;left:22px;right:22px;bottom:calc(12px + env(safe-area-inset-bottom));min-height:86px;padding:7px 9px;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:rgba(35,28,25,.97);border:1px solid rgba(255,211,177,.045);border-radius:48px;box-shadow:0 6px 22px #0005;backdrop-filter:blur(12px)}
.tg-bottom-nav a{gap:4px;color:#f4c7a7;font-size:14px;font-weight:550;border-radius:36px}
.tg-bottom-nav a>span:first-child{font-size:29px;line-height:1.1}
.tg-bottom-nav a.is-current{background:#302925;color:#7777b5}
.tg-bottom-nav a.is-current>span:first-child{filter:none}
.tg-top-menu{position:absolute;right:16px;top:calc(62px + env(safe-area-inset-top));z-index:20;width:205px;padding:7px;border:1px solid rgba(244,199,167,.12);border-radius:13px;background:#29201c;box-shadow:0 12px 32px #0009}
.tg-top-menu a,.tg-top-menu button{display:block;width:100%;padding:12px;border:0;border-radius:8px;background:transparent;color:#f4c7a7;text-align:left;font-size:14px}
.tg-top-menu a:active,.tg-top-menu button:active{background:#ffffff12}
.tg-empty-state{min-height:250px;color:#f4c7a7}
.tg-empty-state p{color:#a18ba5}
.tg-empty-art{background:radial-gradient(circle at 30% 20%,#d9a786,#705c8f 70%,#332342)}
.tg-primary-btn{background:#7777b5;color:#fff0dc}
@media(max-width:420px){
 .tg-list-header{padding-left:22px;padding-right:22px}
 .tg-brand-row .tg-wordmark{font-size:29px}
 .tg-brand-row .tg-header-actions{gap:11px}
 .tg-chat-row{min-height:100px;padding:13px 22px;gap:13px}
 .tg-chat-row .tg-avatar{width:72px;height:72px;min-width:72px}
 .tg-chat-row-copy strong{font-size:17px}
 .tg-chat-row-copy p{font-size:14px}
 .tg-bottom-nav{left:22px;right:22px;min-height:84px}
 .tg-bottom-nav a{font-size:13px}
}
@media(min-width:760px){.tg-list-header{padding-inline:22px}.tg-bottom-nav{max-width:650px;left:50%;right:auto;width:calc(100% - 44px);transform:translateX(-50%)}}

/* Screenshot fidelity pass: Android Telegram-style chat list */
body.tg-list-page,body.tg-list-page .tg-shell{background:#17110f!important;color:#f2c4a4!important}
body.tg-list-page .tg-shell{width:100%;max-width:none;height:100dvh;border:0;box-shadow:none}
body.tg-list-page .tg-list-header{flex:none;position:relative;z-index:8;background:#17110f!important;padding:calc(20px + env(safe-area-inset-top)) 22px 8px!important;box-shadow:none!important}
body.tg-list-page .tg-brand-row{display:flex;align-items:center;gap:0;min-height:49px;margin:0!important}
body.tg-list-page .tg-brand-row .tg-wordmark{margin:0!important;padding:0;font-size:30px!important;line-height:1.15;font-weight:750;letter-spacing:-.8px;color:#f4c7a7!important}
body.tg-list-page .tg-brand-row .tg-list-actions{margin-left:auto;display:flex;align-items:center;gap:19px;flex:none}
body.tg-list-page .tg-list-actions .tg-icon-btn{display:grid;place-items:center;width:30px;min-width:30px;height:42px;min-height:42px;padding:0;border:0;border-radius:0;background:transparent!important;color:#f4c7a7!important;box-shadow:none;font-size:0}
body.tg-list-page .tg-list-actions .tg-icon-btn svg{width:30px;height:30px;display:block;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
body.tg-list-page #app-lock-button svg{width:32px;height:32px;stroke-width:1.9}
body.tg-list-page #top-menu-toggle svg{width:25px;height:30px;stroke:none}
body.tg-list-page .tg-list-actions .tg-icon-btn:active{opacity:.68;transform:scale(.96)}
body.tg-list-page #top-search-box{display:none;height:43px;margin:9px 0 0;background:#211a17;border:1px solid #3c2c24;border-radius:22px}
body.tg-list-page #top-search-box.is-open{display:flex}
body.tg-list-page #top-search-box input{color:#f4c7a7}
body.tg-list-page #top-search-box input::placeholder{color:#9d899b}
body.tg-list-page .tg-filter-row,body.tg-list-page .tg-backend-status,body.tg-list-page .tg-archive-row,body.tg-list-page .tg-archive-panel{display:none!important}
body.tg-list-page .tg-list-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 0 calc(108px + env(safe-area-inset-bottom));background:#17110f!important;scrollbar-width:none}
body.tg-list-page .tg-list-content::-webkit-scrollbar{display:none}
body.tg-list-page #chat-list-results{display:block;padding:0;margin:0}
body.tg-list-page .tg-chat-row{display:flex;position:relative;align-items:center;gap:14px;width:100%;min-height:143px;padding:16px 22px!important;margin:0;border:0!important;border-radius:0;background:transparent!important;color:#f4c7a7!important}
body.tg-list-page .tg-chat-row:active{background:#ffffff08!important}
body.tg-list-page .tg-chat-row .tg-avatar{position:relative;display:grid;place-items:center;flex:0 0 104px;width:104px;height:104px;min-width:104px;min-height:104px;border-radius:50%;overflow:hidden;background:#332060;color:#f4c7a7;font-size:32px;font-weight:500}
body.tg-list-page .tg-chat-row .tg-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
body.tg-list-page .tg-chat-row-copy{display:flex;flex:1;align-self:stretch;flex-direction:column;justify-content:flex-start;gap:0;min-width:0;padding-top:6px}
body.tg-list-page .tg-chat-row-copy strong{display:block;max-width:100%;margin:0 0 8px!important;color:#f3c4a3!important;font-size:18px!important;font-weight:650!important;line-height:1.32;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tg-list-page .tg-chat-row-copy p{display:-webkit-box;margin:0!important;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#a08ba4!important;font-family:"Comic Sans MS","Segoe Print","Bradley Hand",cursive!important;font-size:15.5px!important;font-weight:400;line-height:1.48;letter-spacing:.1px}
body.tg-list-page .tg-chat-row-meta{display:flex;flex:0 0 auto;align-self:stretch;align-items:flex-end;justify-content:flex-start;gap:12px;min-width:0;padding:5px 0 10px;color:#a08ba4!important;font-size:13px!important;white-space:nowrap}
body.tg-list-page .tg-chat-row-meta small:first-child{font-size:13px!important;line-height:1.4;color:#a08ba4!important}
body.tg-list-page .tg-chat-row-meta small:not(:first-child){font-size:12px}
body.tg-list-page .tg-unread-dot{display:grid;place-items:center;width:auto;height:28px;min-width:28px;min-height:28px;padding:0 8px;border-radius:18px;background:#7476b6!important;color:#ffe0bd!important;font-family:system-ui,sans-serif;font-size:15px;font-weight:600;line-height:1}
body.tg-list-page .tg-empty-state{min-height:100%;padding:40px 25px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#17110f;color:#f4c7a7}
body.tg-list-page .tg-empty-art{width:94px;height:94px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#4c3a80,#d88967);color:#fff;font-size:36px}
body.tg-list-page .tg-empty-state h2{font-size:20px;color:#f4c7a7}
body.tg-list-page .tg-empty-state p{max-width:300px;text-align:center;color:#a08ba4;font-size:14px}
body.tg-list-page .tg-primary-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:0;border-radius:22px;background:#7476b6;color:#fff0dd;font-weight:650}
body.tg-list-page .tg-bottom-nav{position:absolute;z-index:12;left:22px;right:22px;bottom:calc(12px + env(safe-area-inset-bottom));display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:3px;width:auto;min-height:100px;padding:8px 7px 7px;border:1px solid rgba(255,222,201,.025);border-radius:55px;background:rgba(35,28,25,.98)!important;box-shadow:0 5px 20px #0005;backdrop-filter:blur(16px)}
body.tg-list-page .tg-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:82px;padding:5px 0;border:0;border-radius:45px;background:transparent;color:#f4c7a7!important;font-size:14px;font-weight:550;line-height:1.25;white-space:nowrap}
body.tg-list-page .tg-bottom-nav a svg{display:block;flex:0 0 36px;width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.tg-list-page .tg-bottom-nav a.is-current{background:#302925!important;color:#777bbd!important}
body.tg-list-page .tg-bottom-nav a.is-current svg{stroke-width:2.1}
body.tg-list-page .tg-top-menu{position:absolute;z-index:25;top:calc(69px + env(safe-area-inset-top));right:14px;width:205px;padding:6px;border:1px solid #4b382e;border-radius:13px;background:#29201c;box-shadow:0 12px 32px #0009}
body.tg-list-page .tg-top-menu a,body.tg-list-page .tg-top-menu button{display:block;width:100%;padding:12px;border:0;border-radius:8px;background:transparent;color:#f4c7a7;text-align:left;font-size:14px}
body.tg-list-page .tg-top-menu a:active,body.tg-list-page .tg-top-menu button:active{background:#ffffff12}
body.tg-list-page .tg-toast{background:#302622;color:#f4c7a7;border-color:#574034}
@media(max-width:430px){
 body.tg-list-page .tg-list-header{padding-left:22px!important;padding-right:22px!important}
 body.tg-list-page .tg-brand-row .tg-wordmark{font-size:30px!important}
 body.tg-list-page .tg-brand-row .tg-list-actions{gap:17px}
 body.tg-list-page .tg-chat-row{min-height:143px;padding:15px 22px!important;gap:14px}
 body.tg-list-page .tg-chat-row .tg-avatar{flex-basis:104px;width:104px;height:104px;min-width:104px}
 body.tg-list-page .tg-chat-row-copy strong{font-size:18px!important}
 body.tg-list-page .tg-chat-row-copy p{font-size:15px!important}
 body.tg-list-page .tg-chat-row-meta{gap:10px}
 body.tg-list-page .tg-bottom-nav{left:22px;right:22px;min-height:100px}
 body.tg-list-page .tg-bottom-nav a{font-size:14px}
}
@media(max-width:370px){
 body.tg-list-page .tg-chat-row{gap:10px;padding-inline:14px!important}
 body.tg-list-page .tg-chat-row .tg-avatar{flex-basis:82px;width:82px;height:82px;min-width:82px}
 body.tg-list-page .tg-chat-row-copy strong{font-size:15px!important}
 body.tg-list-page .tg-chat-row-copy p{font-size:13px!important}
 body.tg-list-page .tg-chat-row-meta small:first-child{font-size:11px!important}
 body.tg-list-page .tg-brand-row .tg-list-actions{gap:10px}
 body.tg-list-page .tg-bottom-nav{left:12px;right:12px}
 body.tg-list-page .tg-bottom-nav a{font-size:12px}
 body.tg-list-page .tg-bottom-nav a svg{width:31px;height:31px;flex-basis:31px}
}

/* Density calibration for common Android CSS-pixel viewport (360–400px wide) */
@media(max-width:600px){
 body.tg-list-page .tg-list-header{padding:calc(15px + env(safe-area-inset-top)) 12px 5px!important}
 body.tg-list-page .tg-brand-row{min-height:39px}
 body.tg-list-page .tg-brand-row .tg-wordmark{font-size:22px!important;letter-spacing:-.4px}
 body.tg-list-page .tg-brand-row .tg-list-actions{gap:14px}
 body.tg-list-page .tg-list-actions .tg-icon-btn{width:25px;min-width:25px;height:34px;min-height:34px}
 body.tg-list-page .tg-list-actions .tg-icon-btn svg{width:25px;height:25px}
 body.tg-list-page #app-lock-button svg{width:26px;height:26px}
 body.tg-list-page #top-menu-toggle svg{width:22px;height:26px}
 body.tg-list-page .tg-list-content{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
 body.tg-list-page .tg-chat-row{min-height:71px;padding:8px 12px!important;gap:14px}
 body.tg-list-page .tg-chat-row .tg-avatar{flex:0 0 52px;width:52px;height:52px;min-width:52px;min-height:52px;font-size:18px}
 body.tg-list-page .tg-chat-row-copy{padding-top:3px}
 body.tg-list-page .tg-chat-row-copy strong{font-size:16px!important;margin-bottom:4px!important;line-height:1.3}
 body.tg-list-page .tg-chat-row-copy p{font-size:13px!important;line-height:1.4}
 body.tg-list-page .tg-chat-row-meta{gap:7px;padding:3px 0 5px}
 body.tg-list-page .tg-chat-row-meta small:first-child{font-size:11px!important}
 body.tg-list-page .tg-unread-dot{min-width:22px;min-height:22px;height:22px;padding:0 6px;font-size:12px}
 body.tg-list-page .tg-bottom-nav{left:12px;right:12px;bottom:calc(6px + env(safe-area-inset-bottom));min-height:57px;padding:4px 5px;border-radius:34px}
 body.tg-list-page .tg-bottom-nav a{min-height:47px;gap:2px;padding:2px 0;border-radius:30px;font-size:11px}
 body.tg-list-page .tg-bottom-nav a svg{flex-basis:25px;width:25px;height:25px;stroke-width:1.8}
 body.tg-list-page .tg-bottom-nav a.is-current svg{stroke-width:2}
 body.tg-list-page .tg-top-menu{top:calc(53px + env(safe-area-inset-top));right:8px}
}
@media(max-width:370px){
 body.tg-list-page .tg-list-header{padding-inline:12px!important}
 body.tg-list-page .tg-brand-row .tg-list-actions{gap:10px}
 body.tg-list-page .tg-chat-row{min-height:71px;padding-inline:11px!important;gap:12px}
 body.tg-list-page .tg-chat-row .tg-avatar{flex-basis:52px;width:52px;height:52px;min-width:52px}
 body.tg-list-page .tg-chat-row-copy strong{font-size:15px!important}
 body.tg-list-page .tg-chat-row-copy p{font-size:12px!important}
 body.tg-list-page .tg-chat-row-meta small:first-child{font-size:10px!important}
 body.tg-list-page .tg-bottom-nav{left:11px;right:11px}
 body.tg-list-page .tg-bottom-nav a{font-size:10px}
}

/* Live presence and full-size profile-photo viewer. */
#peer-status.is-online{color:#42e69b!important}#peer-status.is-typing{color:#67e7ff!important;font-style:italic}.tg-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.tg-avatar#peer-avatar{cursor:zoom-in}.zc-peer-photo-viewer[hidden]{display:none!important}.zc-peer-photo-viewer{position:fixed;z-index:10000;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;background:rgba(2,8,16,.94);backdrop-filter:blur(16px)}.zc-peer-photo-viewer img{width:min(82vw,440px);height:min(68vh,440px);object-fit:contain;border-radius:20px;box-shadow:0 24px 80px #0008}.zc-peer-photo-viewer strong{color:#effaff;font-size:15px}.zc-peer-photo-close{position:absolute;top:calc(14px + env(safe-area-inset-top));right:16px;width:44px;height:44px;border:1px solid #ffffff32;border-radius:50%;background:#ffffff12;color:white;font-size:28px}