/* /style.css?v=ept-channel-ui-v15 */
:root{font-family:Tahoma,'Segoe UI',Arial,sans-serif;--page:#eff4ff;--panel:#ffffff;--soft:#f5f8ff;--input:#f8faff;--border:#e0e9f7;--text:#233752;--muted:#8090ab;--accent:#386dec;--accent2:#24b6c2;--gold:#d3b26b;--bubble:#ffffff;--mine:#dceafb;--chatbg:#f7faff;--shadow:0 14px 48px rgba(32,62,120,.09);color:var(--text);background:var(--page)}
:root[data-theme=dark]{--page:#0c1526;--panel:#15233a;--soft:#1d304a;--input:#1c2b43;--border:#30425d;--text:#ecf3fc;--muted:#a5b5ca;--accent:#76aaff;--accent2:#64c5d4;--bubble:#22344d;--mine:#29496a;--chatbg:#111e32;--shadow:0 14px 48px rgba(0,0,0,.26)}
@media(prefers-color-scheme:dark){:root[data-theme=auto]{--page:#0c1526;--panel:#15233a;--soft:#1d304a;--input:#1c2b43;--border:#30425d;--text:#ecf3fc;--muted:#a5b5ca;--accent:#76aaff;--accent2:#64c5d4;--bubble:#22344d;--mine:#29496a;--chatbg:#111e32;--shadow:0 14px 48px rgba(0,0,0,.26)}}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:var(--page);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.38;cursor:not-allowed}.hidden{display:none!important}input,textarea{outline:none}input,textarea,select{background:var(--input);color:var(--text);border:1px solid var(--border);border-radius:13px}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(60,112,224,.11)}.primary{background:linear-gradient(125deg,#3168db,#27a7cc);color:white;border-radius:13px;padding:12px 20px;font-weight:700}.secondary{background:var(--soft);color:var(--text);border-radius:13px;padding:12px 16px}.danger{background:#e45563;color:white;border-radius:13px;padding:12px 20px}.full{width:100%;margin-top:9px}.muted{font-size:12px;color:var(--muted)}.center{text-align:center;margin:40px auto}.error{min-height:15px;color:#e45a73;font-size:12px}
.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 10% 9%,rgba(38,154,218,.16),transparent 45%),radial-gradient(ellipse at 89% 95%,rgba(192,157,73,.12),transparent 38%),var(--page)}.login-panel{width:min(440px,100%);background:var(--panel);padding:22px 30px 27px;border:1px solid var(--border);border-radius:29px;box-shadow:0 25px 70px rgba(36,78,135,.15);text-align:center}.login-logo{height:150px;width:190px;object-fit:contain}.login-panel .eyebrow{font-size:10px;letter-spacing:1px;color:var(--accent)}.login-panel h1{font-size:21px;margin:2px 0 6px}.login-panel p{font-size:12px;color:var(--muted)}.tabs{display:flex;background:var(--soft);padding:4px;border-radius:13px;margin:19px 0}.tab{flex:1;background:transparent;border-radius:10px;padding:11px;color:var(--muted)}.tab.selected{background:var(--panel);color:var(--accent);font-weight:bold;box-shadow:0 1px 6px #1233a011}.login-panel form{text-align:right}.login-panel label,.dialog label{display:block;font-size:12px;font-weight:700;margin:13px 0}.login-panel input,.dialog input,.dialog textarea{width:100%;margin-top:8px;padding:12px 14px}.notice{font-size:11px;line-height:1.85;color:var(--muted);background:var(--soft);padding:11px;border-radius:11px;margin-top:14px}
.app{height:100dvh;max-width:1540px;margin:auto;padding:13px;display:grid;grid-template-columns:340px minmax(0,1fr);gap:14px}.sidebar,.conversation{background:var(--panel);border:1px solid var(--border);border-radius:23px;overflow:hidden;box-shadow:var(--shadow);min-height:0}.sidebar{display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:15px 16px 12px;border-bottom:1px solid var(--border);background:linear-gradient(115deg,rgba(56,109,236,.06),transparent)}.brand img{width:48px;height:48px;object-fit:cover;border-radius:13px;box-shadow:0 5px 20px rgba(37,117,203,.17)}.brand strong{display:block;font-size:17px;letter-spacing:.9px;color:var(--accent)}.brand small,.self small,.chatperson small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.beta-chip{margin-inline-start:auto;border:1px solid var(--gold);border-radius:20px;font-size:9px;padding:4px 6px;color:var(--gold);white-space:nowrap}.self{margin:12px;display:flex;align-items:center;gap:8px;background:var(--soft);padding:10px;border:1px solid var(--border);border-radius:16px}.selfpic,.selfinfo{background:transparent;padding:0;border:0;text-align:right;color:var(--text)}.selfinfo{flex:1;min-width:0}.selfinfo strong{font-size:13px}.selfinfo small{direction:ltr;text-align:right}.avatar{width:44px;height:44px;border-radius:15px;background:linear-gradient(130deg,#d2e2ff,#c6f4ec);color:#2756a2;display:grid;place-items:center;font-weight:800;flex:none;overflow:hidden;font-size:17px}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-sm{width:43px;height:43px}.avatar.large{width:78px;height:78px;font-size:31px}.icon-button{width:41px;height:41px;border-radius:13px;background:var(--soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0;font-size:22px}.icon-button:hover,.small-action:hover{filter:brightness(.97);transform:translateY(-1px)}.tools{display:flex;align-items:center;gap:7px;margin:0 12px 10px;font-size:11px}.tools label{color:var(--muted)}.tools select{min-width:0;flex:1;padding:9px}.small-action{padding:9px 11px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--soft);font-size:11px}.search{padding:0 12px 12px;display:flex;gap:7px}.search input{width:100%;padding:12px;min-width:0}.search-action{border-radius:12px;padding:9px;background:var(--soft);color:var(--text)}.listhead{padding:0 16px 11px;display:flex;justify-content:space-between;align-items:center;font-size:13px}.row-buttons{display:flex;gap:6px}.round{border-radius:12px;background:var(--accent);color:white;font-size:23px;width:35px;height:35px}.round.subtle{background:var(--soft);color:var(--text);font-size:16px}.chatlist{overflow-y:auto;flex:1;padding:0 8px}.chatrow{width:100%;display:flex;gap:10px;padding:11px 9px;border-radius:14px;align-items:center;cursor:pointer;text-align:right;background:transparent;color:var(--text)}.chatrow:hover,.chatrow.active{background:var(--soft)}.chatrow-info{min-width:0;flex:1}.chatrow strong{font-size:13px;display:block}.chatrow small{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px;max-width:185px}.chat-meta{align-self:center;display:grid;justify-items:center;gap:6px}.online-dot{width:8px;height:8px;border-radius:50%;background:#2fb58d}.unread-pill{font-size:11px;min-width:21px;height:21px;border-radius:10px;background:var(--accent);color:white;display:grid;place-items:center}.sidebarfoot{text-align:center;font-size:10px;color:var(--muted);padding:12px;border-top:1px solid var(--border)}
.conversation{display:flex;flex-direction:column}.chatheader{display:flex;align-items:center;gap:11px;padding:12px 18px;border-bottom:1px solid var(--border);min-height:70px}.chatperson{flex:1;min-width:0}.chatperson strong{font-size:15px}.chatperson small.online{color:#23b990}.back{display:none;font-size:28px}.welcome{margin:auto;text-align:center;max-width:330px;padding:30px}.welcome img{width:190px;max-width:100%}.welcome h2{font-size:22px;margin-top:-12px}.welcome p{font-size:13px;line-height:2;color:var(--muted)}.welcome span{font-size:11px;color:var(--muted)}.chatview{display:flex;flex-direction:column;min-height:0;flex:1;background:radial-gradient(var(--border) .65px,transparent .65px) 0 0/23px 23px,var(--chatbg);position:relative}.chatwarn{text-align:center;font-size:10px;color:var(--muted);background:var(--soft);padding:7px}.messages{display:flex;flex-direction:column;gap:12px;padding:18px;overflow:auto;flex:1;min-height:0}.msg{max-width:min(80%,640px);align-self:flex-start;position:relative}.msg.mine{align-self:flex-end}.message-line{display:flex;align-items:flex-start;gap:5px}.msg.mine .message-line{flex-direction:row-reverse}.bubble{border:1px solid var(--border);background:var(--bubble);border-radius:16px 16px 16px 5px;color:var(--text);font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;padding:11px 15px;min-width:95px;max-width:100%;box-shadow:0 3px 14px rgba(24,64,113,.05)}.mine .bubble{background:var(--mine);border-radius:16px 16px 5px 16px}.msg-more{font-size:22px;line-height:24px;color:var(--muted);background:var(--panel);border:1px solid var(--border);border-radius:10px;width:27px;height:28px;padding:0;opacity:.86}.stamp{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:10px;padding:4px 7px;direction:rtl}.stamp span{color:var(--accent)}.message-link,.download{color:var(--accent);word-break:break-all;text-decoration:underline}.edited{display:block;color:var(--muted);font-size:10px}.reply-quote{margin:0 0 7px;padding:5px 9px;border-right:3px solid var(--accent);font-size:11px;color:var(--muted);background:var(--soft);border-radius:5px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.chat-image,.chat-video{max-width:100%;max-height:270px;display:block;border-radius:10px;object-fit:contain}.chat-image{width:auto}.chat-video{width:min(380px,75vw)}.media-holder{display:flex;flex-direction:column;gap:8px;color:var(--accent);text-decoration:none}.media-holder audio{max-width:275px}.media-label{font-size:11px;text-decoration:underline}.reactions{display:flex;gap:4px;flex-wrap:wrap}.reaction-chip{border-radius:11px;background:var(--panel);border:1px solid var(--border);padding:2px 7px;font-size:12px}.deleted{opacity:.65}.msg.highlight .bubble{outline:3px solid var(--gold)}.message-menu{position:relative;z-index:5;display:grid;gap:3px;min-width:190px;width:max-content;max-width:250px;padding:7px;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.message-menu>button{border-radius:7px;text-align:right;font-size:12px;padding:9px 10px;background:transparent;color:var(--text)}.message-menu>button:hover{background:var(--soft)}.reaction-row{display:flex;gap:2px;justify-content:space-around;border-top:1px solid var(--border);padding-top:7px}.reaction-row button{border:0;background:transparent;font-size:19px;padding:3px}.typing-indicator{padding:0 20px;min-height:22px;color:var(--accent);font-size:11px}.reply-preview{background:var(--soft);border-right:3px solid var(--accent);display:flex;justify-content:space-between;align-items:center;padding:9px 16px;color:var(--muted);font-size:12px}.reply-preview button{background:transparent;font-size:22px;color:var(--text)}.composer{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--border);background:var(--panel)}.composer textarea{padding:11px 13px;resize:none;min-height:44px;max-height:160px;flex:1;min-width:0}.send{height:44px}.attach-menu{position:absolute;z-index:5;bottom:65px;right:13px;background:var(--panel);padding:8px;border-radius:17px;display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));box-shadow:var(--shadow);border:1px solid var(--border);gap:4px}.attach-menu button{background:var(--soft);color:var(--text);padding:13px 12px;border-radius:10px;white-space:nowrap;text-align:right}.emoji-picker{position:absolute;z-index:5;bottom:65px;right:65px;background:var(--panel);padding:10px;border-radius:15px;display:grid;grid-template-columns:repeat(8,1fr);max-width:min(360px,92vw);box-shadow:var(--shadow);border:1px solid var(--border);gap:3px}.emoji-picker button{border:0;border-radius:6px;background:transparent;font-size:22px;padding:4px}.emoji-picker button:hover{background:var(--soft)}.upload-tray{padding:10px 17px;background:var(--soft);border-top:1px solid var(--border);display:flex;align-items:center;gap:9px}.upload-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;flex:1}.upload-meta #uploadLabel{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-tray progress{width:90px;accent-color:var(--accent)}.upload-cancel{border-radius:7px;background:var(--panel);color:var(--text);font-size:11px;padding:7px}
.overlay{position:fixed;inset:0;z-index:10;background:rgba(9,22,42,.68);display:grid;place-items:center;padding:14px}.dialog,.call-dialog{background:var(--panel);color:var(--text);border-radius:23px;padding:23px;width:min(455px,100%);max-height:90dvh;overflow-y:auto;box-shadow:0 24px 70px rgba(0,0,0,.33)}.dialog h2{font-size:19px;margin:0}.dialog p{font-size:13px;color:var(--muted);line-height:1.8}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:13px}.dialog-actions.wrap{flex-wrap:wrap}.profile-preview{display:flex;gap:20px;align-items:center;justify-content:center;padding:10px}.search-dialog{width:min(560px,100%)}.search-dialog form{display:flex;gap:7px;margin-top:15px}.search-dialog form input{margin:0}.search-results,.forward-list{max-height:50dvh;overflow:auto;display:grid;gap:8px;padding:12px 0}.search-hit,.forward-list button{text-align:right;display:grid;gap:6px;padding:10px;background:var(--soft);border:1px solid var(--border);border-radius:11px;color:var(--text)}.search-hit span{font-size:11px}.search-hit small{color:var(--muted)}.call-dialog{width:min(600px,100%);background:#111c34;color:white;text-align:center}.calltitle{margin-bottom:10px;font-weight:bold}.call-dialog video#remoteVideo{width:100%;height:280px;object-fit:cover;background:#0a1329;border-radius:13px}.call-dialog video#localVideo{width:100px;height:135px;object-fit:cover;position:absolute;margin:10px 0 0 -110px;border-radius:12px;background:#283c64;border:2px solid white}.call-dialog p{color:#b6c9e5}.call-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#213858;color:white;border-radius:12px;padding:11px 18px;font-size:12px;opacity:0;transition:.2s;pointer-events:none;z-index:20}.toast.on{opacity:1;transform:translate(-50%,0)}
@media(max-width:720px){.app{display:block;padding:0}.sidebar,.conversation{height:100dvh;border:0;border-radius:0}.conversation{display:none}.app.open .sidebar{display:none}.app.open .conversation{display:flex}.back{display:grid}.chatheader{padding:10px;gap:7px}.chatheader .icon-button{width:38px;height:38px}.messages{padding:12px}.msg{max-width:91%}.chatwarn{font-size:9px;padding:5px}.composer{padding:8px;gap:5px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.composer .icon-button{width:36px;height:42px}.composer textarea{font-size:16px;padding:10px}.composer .send{padding:10px 13px}.login-panel{padding:20px}.login-logo{height:140px}.bubble{padding:9px 11px}.emoji-picker{grid-template-columns:repeat(7,1fr);right:6px}.attach-menu{right:7px}.upload-tray{flex-wrap:wrap}.upload-meta{width:100%;flex:auto}}

.group-members{margin:15px 0;display:grid;gap:5px;max-height:270px;overflow:auto}.member-row{display:flex;justify-content:space-between;align-items:center;padding:9px 11px;background:var(--soft);border-radius:10px;font-size:12px}.member-row small{display:block;color:var(--muted);margin-top:4px}.member-row .small-action{color:#d64c64}

/* Private beta email OTP authentication UI */
.auth-beta-shell{grid-template-columns:minmax(0,1fr) minmax(330px,490px);gap:min(7vw,90px);padding:clamp(18px,4vw,50px);background:radial-gradient(ellipse at 18% 10%,#183e7878,transparent 45%),radial-gradient(ellipse at 90% 85%,#144ea54f,transparent 43%),#071323;color:#f3f8ff;direction:rtl}
.auth-hero{max-width:640px;justify-self:center;padding:22px 0}.auth-hero-logo{width:230px;height:110px;object-fit:contain;object-position:right center}.auth-kicker{font-size:12px;letter-spacing:1.8px;color:#55baff;margin-top:24px}.auth-hero h1{font-size:clamp(28px,4vw,54px);line-height:1.5;margin:14px 0}.auth-hero h1 span{color:#7cceff}.auth-hero p{color:#b2c8e6;line-height:2.15;font-size:15px;max-width:550px}.auth-hero-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}.auth-hero-chips span{background:#102c52;border:1px solid #3b6eab;border-radius:999px;padding:10px 13px;font-size:12px;color:#c3dffd}
.ept-email-panel{width:min(495px,100%);max-height:95dvh;overflow:auto;background:linear-gradient(160deg,#132947f5,#0b1d37 65%,#0c1b32);border:1px solid #416f9e;box-shadow:0 25px 90px #0009;color:#e9f5ff;text-align:right;padding:23px 27px}.ept-email-panel h2{font-size:23px;text-align:center;margin:12px 0 2px}.ept-email-panel .auth-subline,.ept-email-panel .auth-verify-sub{text-align:center;color:#a7c2e5;line-height:1.9}.auth-caption{text-align:center;color:#76d9ff;font-size:12px}.auth-mobile-brand{display:none;align-items:center;gap:9px}.auth-mobile-brand img{width:42px;height:42px;border-radius:12px}.auth-mobile-brand b{color:#bde0ff}.auth-mobile-brand small{margin-right:auto;font-size:10px;color:#a4c5e3}
.ept-email-panel label{color:#c7ddf6;margin:12px 0 0}.ept-email-panel input,.ept-email-panel select{display:block;width:100%;background:#0c203b;border:1px solid #365579;color:#fff;padding:12px;border-radius:12px;margin-top:6px;min-width:0}.ept-email-panel input::placeholder{color:#728bac}.ept-email-panel .tabs{background:#0d203c;margin:13px 0}.ept-email-panel .tab.selected{background:#1a4578;color:#dff6ff}.auth-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.auth-phone-line{display:flex;align-items:center;gap:10px;margin-top:6px}.auth-phone-line span{padding:13px 9px;background:#122e52;border:1px solid #365579;border-radius:12px;direction:ltr;white-space:nowrap}.auth-phone-line input{margin:0}.ept-email-panel .notice{margin-top:18px;background:#0c2846;border:1px solid #25577b;color:#a5c7e7}.ept-email-panel .error{color:#ffa6ae;margin:9px 0}.legacy-option{margin-top:15px;color:#b3d7ff;font-size:12px}.legacy-option summary{cursor:pointer}.ept-email-panel .primary{background:linear-gradient(120deg,#186be9,#00afd4)}
@media(max-width:930px){.auth-beta-shell{display:block;min-height:100dvh;padding:14px}.auth-hero{display:none}.auth-mobile-brand{display:flex}.ept-email-panel{max-height:none;overflow:visible;margin:0 auto;padding:20px 17px}}
@media(max-width:360px){.auth-two{grid-template-columns:1fr}}

.media-holder audio{display:block;width:min(320px,75vw);max-width:100%;min-height:44px}.audio-playback-error{display:block;color:#ffd1d6;font-size:11px;line-height:1.7}.audio-playback-error.hidden{display:none}

/* Phone contact picker and group selection. */
.contacts-dialog{width:min(560px,94vw);max-height:90dvh;overflow:auto}.contact-import-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.contact-import-actions button,.contact-pick-button{min-height:42px}.phone-contacts-list{display:grid;gap:6px;max-height:42dvh;overflow:auto;margin:10px 0}.phone-contact-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--soft);cursor:pointer}.phone-contact-row input{width:20px;height:20px;flex:0 0 auto;accent-color:var(--accent)}.phone-contact-copy{display:grid;gap:3px;flex:1;min-width:0}.phone-contact-copy strong,.phone-contact-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phone-contact-copy small{color:var(--muted);font-size:11px}.phone-contact-row em{font-style:normal;color:var(--muted);font-size:10px;text-align:left}.contact-pick-button{width:100%;margin:5px 0 10px}

/* Multi-message selection actions. */
.bulk-toolbar{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px;padding:8px 12px;background:var(--panel);border-bottom:1px solid var(--border);color:var(--text)}.bulk-toolbar strong{margin-inline-end:auto;font-size:12px}.bulk-toolbar button{font-size:11px;padding:8px 10px;border-radius:10px}.bulk-toolbar button:disabled{opacity:.4}.msg-select{display:none;align-self:center;flex:none;width:30px;height:30px;border:1px solid var(--border);border-radius:50%;background:var(--panel);color:var(--accent);font-weight:800}.bulk-selecting .msg-select{display:grid;place-items:center}.bulk-selecting .msg{cursor:pointer}.msg.selected .bubble{outline:2px solid var(--accent);outline-offset:1px}.msg.selected .msg-select{background:var(--accent);color:#fff;border-color:var(--accent)}@media(max-width:640px){.bulk-toolbar{gap:5px;padding:7px}.bulk-toolbar strong{width:100%;margin:0}.bulk-toolbar button{flex:1;padding:8px 6px;font-size:10px}}

#testMessageSound[aria-pressed="true"]{background:#e45563;color:#fff}

/* EPT channels: keep channel controls with the existing conversation actions. */
.conversation-filters{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding-inline:12px}.conversation-filters::-webkit-scrollbar{display:none}.filter-chip{white-space:nowrap;flex:0 0 auto}.row-buttons{align-items:center}.quick-action-set{display:flex;gap:6px}.channel-quick-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.channel-quick-actions button{padding:9px 13px;border-radius:12px;font-size:12px;white-space:nowrap}.channel-create-overlay{padding:16px}.channel-create-dialog{width:min(500px,calc(100vw - 32px));max-height:min(78dvh,570px);padding:0;overflow:auto;border:1px solid #3d82ba;background:linear-gradient(160deg,#10294d 0%,#0c1d38 100%);color:#eff8ff}.channel-create-dialog .contacts-head{padding:17px 19px 13px;gap:12px}.channel-create-dialog .contacts-head-icon{width:46px;height:46px;flex:0 0 46px}.channel-create-dialog .contacts-head-copy h2{margin:0;font-size:19px}.channel-create-dialog .contacts-head-copy p{margin:4px 0 0;font-size:12px;line-height:1.65}.channel-create-dialog .group-create-form{padding:15px 19px 18px}.channel-create-dialog .group-form-field{margin:0 0 13px}.channel-create-dialog .group-form-field input{margin-top:6px}.channel-create-dialog .group-create-actions{display:flex;gap:9px;margin-top:12px}.channel-create-dialog .group-create-actions button{flex:1;min-height:44px}.channel-create-dialog input{min-height:45px}.channel-create-dialog input::placeholder{color:#9cb4d2}.channel-create-dialog .group-create-status{min-height:12px;margin:4px 0}.channelInviteBox{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px solid #316c9c;background:linear-gradient(120deg,#102c50,#0b1d39);border-radius:14px;color:#d9edff}.channelInviteBox code{font-size:13px;letter-spacing:.7px;color:#78dcff;overflow-wrap:anywhere}.channelInviteBox button{padding:8px 12px}.channel-readonly textarea{opacity:.65}
@media(max-width:720px){.listhead{align-items:flex-start;gap:8px;flex-wrap:wrap;padding-inline:13px}.listhead>b{align-self:center}.row-buttons{margin-inline-start:auto;max-width:100%}.channel-quick-actions{justify-content:flex-end}.channel-create-overlay{padding:12px}.channel-create-dialog{width:min(460px,calc(100vw - 24px));max-height:76dvh;border-radius:20px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.channel-create-dialog .contacts-head{padding:13px 14px 10px}.channel-create-dialog .group-create-form{padding:12px 14px 15px}.channel-create-dialog .group-form-field{font-size:12px}.channel-create-dialog .group-create-actions button{font-size:13px;padding:10px}.channelInviteBox{font-size:12px}}

/* V8: one four-action create panel; stable contact rows on narrow screens. */
.ept-create-choices{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;align-items:stretch}
.ept-create-choices .quick-action-button{box-sizing:border-box;display:flex;align-items:center;gap:9px;min-width:0;min-height:62px;width:100%;padding:9px 11px;border:1px solid #337cb6;border-radius:15px;background:linear-gradient(145deg,#12345d,#0a2040);color:#eef8ff;text-align:right;overflow:hidden}
.ept-create-choices .quick-action-copy{display:grid;gap:4px;min-width:0;flex:1;line-height:1.45}
.ept-create-choices .quick-action-copy strong{display:block;font-size:clamp(11px,1.1vw,13px);white-space:normal;overflow-wrap:anywhere}
.ept-create-choices .quick-action-copy small{display:block;font-size:10px;color:#a9c7e8;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.ept-create-choices .quick-action-icon,.ept-create-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border:1px solid #58b9ee;border-radius:12px;background:linear-gradient(145deg,#168ec9,#13527e);color:white;font-size:21px}
.ept-create-choices .quick-action-icon svg{width:25px;height:25px}
.ept-create-choices .quick-action-indicator{display:none}
.ept-create-choices .ept-channel-choice{border-color:#39c8d6;background:linear-gradient(145deg,#0b6579,#123b62)}
.phone-contact-row{box-sizing:border-box;display:grid!important;grid-template-columns:48px minmax(0,1fr) 34px;align-items:center;gap:10px;min-height:76px;width:100%;padding:10px 12px;overflow:hidden;direction:rtl}
.phone-contact-avatar{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#137fac;color:#fff;font-weight:700}
.phone-contact-avatar img{width:100%;height:100%;object-fit:cover}
.phone-contact-copy{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;width:100%;overflow:hidden;text-align:right;line-height:1.55}
.phone-contact-copy strong,.phone-contact-copy small,.phone-contact-copy em{position:static!important;display:block!important;box-sizing:border-box;max-width:100%;width:100%;margin:0!important;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;line-height:1.55}
.phone-contact-copy strong{font-size:14px;color:var(--text)}
.phone-contact-copy small{font-size:12px;color:var(--muted);direction:ltr;text-align:right}
.phone-contact-copy em{font-size:10px;text-align:right}
.phone-contact-row .contact-select{position:static!important;display:grid;place-items:center;width:32px;height:40px;margin:0!important;grid-column:3;grid-row:1;color:inherit}
.phone-contact-row .contact-select input{position:absolute;opacity:0;width:1px;height:1px}
.phone-contact-row .contact-select span{display:block;width:22px;height:22px;border:2px solid #78bde8;border-radius:7px;background:transparent}
.phone-contact-row .contact-select input:checked+span{background:#159be1;border-color:#70dcff;box-shadow:inset 0 0 0 4px #102c4b}
.phone-contact-row .contact-invite-action{grid-column:2;justify-self:start;max-width:100%;white-space:normal}
@media(max-width:720px){.ept-create-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ept-create-choices .quick-action-button{min-height:58px;padding:8px}.ept-create-choices .quick-action-copy small{font-size:9px}.phone-contacts-list{max-height:46dvh}.phone-contact-row{grid-template-columns:44px minmax(0,1fr) 30px;gap:8px;padding:9px 10px;min-height:72px}.phone-contact-avatar{width:42px;height:42px;flex-basis:42px}.phone-contact-copy strong{font-size:13px}}

/* V9: render the actual create-channel control inside the existing mobile create sheet. */
.ept-v2-layout #mainView .ept-v2-quickbar>#newChannel{box-sizing:border-box;min-height:56px!important;max-width:100%;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:7px!important;border:1px solid #39c8d6!important;border-radius:14px!important;background:linear-gradient(145deg,#0b6579,#123b62)!important;color:#f1fbff!important;box-shadow:inset 0 1px #c1fbff25,0 0 14px #1abdd322!important}
.ept-v2-layout #mainView .ept-v2-quickbar>#newChannel .ept-create-icon{width:23px!important;height:23px!important;flex:0 0 23px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:19px!important;box-shadow:none!important}
.ept-v2-layout #mainView .ept-v2-quickbar>#newChannel .quick-action-copy{display:block!important;min-width:0!important;line-height:1.3!important;text-align:center!important}
.ept-v2-layout #mainView .ept-v2-quickbar>#newChannel .quick-action-copy strong{display:block!important;font-size:11px!important;color:inherit!important;white-space:nowrap!important}
.ept-v2-layout #mainView .ept-v2-quickbar>#newChannel .quick-action-copy small{display:none!important}

/* V10 channel creation: centered, keyboard-safe dialog with a real channel image picker. */
.channel-create-overlay{place-items:center!important;align-items:center!important;justify-items:center!important;padding:12px!important;overscroll-behavior:contain}.channel-create-dialog{margin:auto;max-height:min(82dvh,680px);width:min(520px,calc(100vw - 24px));overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.channel-avatar-picker{display:flex;align-items:center;justify-content:center;gap:14px;padding:4px 0 15px;border-bottom:1px solid #2a527b;margin-bottom:14px}.channel-avatar-picker>div{display:grid;gap:5px}.channel-avatar-picker>div strong{font-size:14px}.channel-avatar-picker>div small{font-size:11px;color:#a9c3df}.channel-avatar-picker .small-action{width:max-content;margin-top:3px}.channel-avatar-preview{position:relative;width:72px;height:72px;flex:0 0 72px;display:grid;place-items:center;border-radius:50%;border:2px solid #35bff0;background:linear-gradient(145deg,#123c69,#0a1d39);box-shadow:0 0 18px #078be755;cursor:pointer;font-size:30px}.channel-avatar-preview img{width:100%;height:100%;object-fit:cover;border-radius:50%}.channel-avatar-preview b{position:absolute;bottom:-2px;right:-5px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#078eea;color:white;border:2px solid #9cddff;font-size:16px}.channel-initial-subscribers{display:grid;gap:7px;font-size:12px;font-weight:700;margin:13px 0}.channel-initial-subscribers button{width:100%;min-height:44px}.channel-initial-subscribers small{font-size:11px;font-weight:400;color:#aac0dc;line-height:1.6}.channel-create-dialog .group-create-actions{position:sticky;bottom:0;padding-top:10px;background:linear-gradient(180deg,rgba(12,29,56,.85),#0c1d38 30%)}@media(max-width:720px){.channel-create-overlay{padding:10px!important}.channel-create-dialog{max-height:min(78dvh,640px);width:calc(100vw - 20px);padding-bottom:max(12px,env(safe-area-inset-bottom))}.channel-avatar-picker{justify-content:flex-start}.channel-avatar-preview{width:64px;height:64px;flex-basis:64px}}


/* V12: balanced channel form margins and true visual-viewport centering. */
.channel-create-overlay{box-sizing:border-box!important;width:100vw!important;height:100dvh;min-height:0!important;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))!important;place-items:center!important;align-content:center!important;overflow-y:auto!important}
.channel-create-dialog{box-sizing:border-box!important;width:min(460px,calc(100vw - 32px))!important;max-height:min(74dvh,620px)!important;margin:auto!important;border-radius:22px!important}
.channel-create-dialog .contacts-head{padding:12px 14px 9px!important}
.channel-create-dialog .group-create-form{padding:10px 14px 13px!important}
.channel-avatar-picker{padding:2px 0 10px!important;margin-bottom:10px!important}
.channel-initial-subscribers{margin:9px 0!important;gap:6px!important}
@media(max-width:720px){.channel-create-overlay{padding-inline:16px!important}.channel-create-dialog{width:calc(100vw - 32px)!important;max-height:min(74dvh,620px)!important}.channel-avatar-preview{width:60px;height:60px;flex-basis:60px}}


/* V14: lock the channel dialog to the viewport; allow vertical reading only. */
html:has(#newChannelModal:not(.hidden)),body:has(#newChannelModal:not(.hidden)){overflow-x:hidden!important;overscroll-behavior-x:none!important}
#newChannelModal.channel-create-overlay{position:fixed!important;left:0!important;right:0!important;inset-inline:0!important;width:auto!important;max-width:100vw!important;margin:0!important;overflow-x:hidden!important;overscroll-behavior-x:none!important;touch-action:pan-y!important}
#newChannelModal .channel-create-dialog{min-width:0!important;max-width:100%!important;overflow-x:hidden!important;overscroll-behavior-x:none!important;touch-action:pan-y!important}
#newChannelModal .channel-create-dialog *{min-width:0}
@supports not selector(html:has(*)){#newChannelModal.channel-create-overlay{overflow-x:hidden!important;touch-action:pan-y!important}}


/* V15: hard-center channel creation in the visible viewport; prevent sideways panning. */
#newChannelModal.channel-create-overlay:not(.hidden){display:flex!important;flex-flow:column nowrap!important;justify-content:center!important;align-items:center!important;box-sizing:border-box!important;position:fixed!important;inset:0!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))!important;overflow-x:hidden!important;overscroll-behavior-x:none!important;touch-action:pan-y!important}
#newChannelModal .channel-create-dialog{flex:0 1 auto!important;align-self:center!important;position:relative!important;left:auto!important;right:auto!important;transform:none!important;margin-inline:auto!important;width:min(460px,100%)!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important;overscroll-behavior-x:none!important;touch-action:pan-y!important}
#newChannelModal .channel-create-dialog>*{min-width:0!important;max-width:100%!important}

.ept-transfer-card{display:flex;align-items:center;gap:14px;padding:16px;max-width:100%;text-align:start}.ept-transfer-card>span:last-child{min-width:0;display:grid;gap:8px}.ept-transfer-card strong{overflow-wrap:anywhere}.ept-transfer-ring{--pct:0%;flex:none;display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;background:radial-gradient(circle,#102e50 61%,transparent 63%),conic-gradient(#00cfff var(--pct),#35516c 0);color:white;font-size:18px}.ept-transfer-card small{color:#b9d8ec}

/* EPT file cards V3 */
button.ept-transfer-card{position:relative!important;isolation:isolate;display:flex!important;align-items:center;gap:10px!important;width:min(310px,100%)!important;min-height:76px!important;min-width:0!important;max-width:100%!important;padding:12px!important;border:1px solid rgba(64,158,206,.32)!important;border-radius:16px!important;background:rgba(59,146,191,.07)!important;color:inherit!important;box-shadow:none!important;overflow:hidden!important;text-align:start!important;box-sizing:border-box!important}
.ept-transfer-card .ept-file-symbol{flex:0 0 39px;display:grid;place-items:center;width:39px;height:43px;border-radius:11px;background:rgba(18,148,223,.12);color:#087ebc;z-index:1}
.ept-transfer-card .ept-file-symbol svg{width:25px;height:25px}.ept-transfer-video .ept-file-symbol{color:#8556d6;background:rgba(133,86,214,.12)}.ept-transfer-image .ept-file-symbol{color:#078b70;background:rgba(7,139,112,.12)}.ept-transfer-audio .ept-file-symbol{color:#c77b0e;background:rgba(199,123,14,.12)}
.ept-transfer-card .ept-file-copy{display:grid!important;gap:5px!important;flex:1;min-width:0;z-index:1}.ept-transfer-card .ept-file-copy strong{font-size:13px!important;line-height:1.55!important;font-weight:600!important;color:inherit!important;overflow-wrap:anywhere!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ept-transfer-card .ept-file-copy small{font-size:10px!important;line-height:1.5!important;color:inherit!important;opacity:.78}
.ept-transfer-card .ept-file-action{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:1px solid rgba(58,157,183,.4);border-radius:50%;font-size:17px;color:inherit;z-index:1}
.ept-transfer-card .ept-card-progress{position:absolute!important;inset:auto auto 0 0!important;height:4px!important;width:var(--ept-progress)!important;background:linear-gradient(90deg,#159c59,#43e881)!important;box-shadow:0 0 9px #37ce7955;transition:width .18s linear;pointer-events:none}.ept-transfer-card:before{content:'';position:absolute;inset:0 auto 0 0;width:var(--ept-progress);background:linear-gradient(90deg,rgba(29,194,108,.06),rgba(29,194,108,.17));pointer-events:none;z-index:0}.ept-transfer-card.is-indeterminate .ept-card-progress{width:30%!important;animation:ept-card-scan 1.2s infinite linear}.ept-transfer-card.is-ready .ept-file-action{border-color:#1ab66c;color:#109653}.ept-transfer-card.is-ready .ept-card-progress{opacity:.6}@keyframes ept-card-scan{from{transform:translateX(-100%)}to{transform:translateX(350%)}}


/* /premium.css?v=6 */
/* EHSAN EPT · premium unified RC theme. Designed for RTL and responsive PWA. */
:root{--prem-blue:#3484ff;--prem-cyan:#49dbee;--prem-violet:#9780f8;--prem-shadow:0 20px 50px #03091d4a;--prem-glass:rgba(20,38,70,.82);font-family:Tahoma,'Segoe UI',system-ui,sans-serif;scrollbar-color:#496388 transparent}
:root[data-theme="dark"],:root[data-theme="auto"]{--page:#070f22;--panel:#11203b;--soft:#182d4d;--input:#0c1b35;--border:rgba(143,197,255,.14);--text:#edf6ff;--muted:#a4b9d8;--accent:#5bbaff;--accent2:#79e7ef;--bubble:#172845;--mine:#1a5090;--chatbg:#0b1c35;--shadow:var(--prem-shadow)}
:root[data-theme="light"]{--page:#e7eefb;--panel:#ffffff;--soft:#edf4fd;--input:#f7fbff;--border:#d9e5f4;--text:#152f52;--muted:#607797;--accent:#2d70cb;--accent2:#13899c;--bubble:#ffffff;--mine:#daeafe;--chatbg:#cfdfe9}
body{background:radial-gradient(circle at 80% -20%,#2662ad49,transparent 48%),radial-gradient(circle at -10% 86%,#623caa36,transparent 42%),var(--page);font-feature-settings:'ss01' on}
button{transition:background-color .18s,color .18s,box-shadow .18s,transform .18s}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--prem-cyan);outline-offset:2px}button:not(:disabled):active{transform:scale(.97)}
.app{gap:16px;padding:15px;max-width:1700px;margin:auto}.sidebar,.conversation{border:1px solid rgba(131,187,248,.16);box-shadow:0 20px 60px #03091936;backdrop-filter:blur(18px);background:linear-gradient(155deg,#162949f5,#0c1932f8)}
.sidebar{width:365px;min-width:310px;border-radius:28px;overflow:hidden}.conversation{border-radius:28px;overflow:hidden}
:root[data-theme="light"] .sidebar,:root[data-theme="light"] .conversation{background:var(--panel)}
.brand{padding:22px 19px 15px;gap:12px;position:relative;background:radial-gradient(circle at 85% 0%,#45b1ed33,transparent 65%);border-bottom:0}.brand img{width:55px;height:55px;object-fit:contain;filter:drop-shadow(0 7px 16px #009fff48)}.brand strong{font-size:18px;letter-spacing:1px;background:linear-gradient(100deg,#ffffff,#70d7fc);-webkit-background-clip:text;background-clip:text;color:transparent}.brand small{font-size:10px;color:#a4c5e2}.beta-chip{background:#2e5d8955;color:#bfe7ff;border:1px solid #92d4f84c;letter-spacing:.6px;font-size:8px;padding:5px;border-radius:100px}
.self{margin:6px 16px 13px;border:1px solid var(--border);background:linear-gradient(110deg,#6b98df12,#14243d77);border-radius:17px;padding:12px;gap:10px}.selfpic .avatar{box-shadow:0 0 0 3px #5eddfa36}.selfinfo strong{font-size:13px}.selfinfo small{color:var(--prem-cyan);font-size:11px;direction:ltr;text-align:right}
.tools{margin:0 16px 14px;gap:7px;display:flex;flex-wrap:wrap}.tools label{font-size:10px}.tools select{min-width:70px;flex:1;padding:9px 7px;border-radius:11px;background:var(--input);border:1px solid var(--border);font-size:11px}.tools #enableNotifications{padding:7px 9px;font-size:10px;background:var(--soft)}
.search{padding:0 16px 13px}.search input{border:1px solid var(--border);border-radius:15px;background:#0b1933b3;box-shadow:inset 0 1px 0 #ffffff09;font-size:12px;padding:14px}.search-action{background:linear-gradient(160deg,#21508b,#193257);color:#b9edff;border-radius:14px;padding:0 14px}
:root[data-theme="light"] .search input{background:var(--input)}
.ai-feature{margin:0 16px 14px;padding:13px 13px 12px;border-radius:19px;border:1px solid #82d8fd4d;background:radial-gradient(circle at 90% 0%,#576ce75c,transparent 58%),linear-gradient(125deg,#1c3465,#12254b 65%,#17294e);box-shadow:0 13px 27px #050b1d45;position:relative;overflow:hidden}.ai-feature:after{content:'';position:absolute;inset:auto -30px -90px 30px;height:115px;border-radius:50%;background:#41d4f520;filter:blur(26px);pointer-events:none}.ai-head{display:flex;align-items:center;gap:10px;position:relative;z-index:1}.ai-orb{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:15px;background:radial-gradient(circle at 30% 20%,#a7ebff,#3486e8 50%,#704fea);box-shadow:0 0 20px #3cbbff61;color:#fff;font-size:26px}.ai-copy{display:grid;gap:5px;flex:1}.ai-copy strong{font-size:14px;color:#f4fbff}.ai-copy small{font-size:10px;color:#bbd1f2}.coming-tag{font-size:9px;border:1px solid #b0d9fa55;border-radius:40px;padding:4px 7px;color:#d5efff;background:#e3f7ff12;white-space:nowrap}.ai-actions{display:flex;gap:7px;position:relative;z-index:1;margin-top:12px}.ai-actions button{font-size:10px;color:#b9dbf8;border:1px solid #b4e1ff24;border-radius:11px;padding:9px 5px;background:#b9dcff10;flex:1;opacity:.72;cursor:not-allowed}.ai-actions span{white-space:nowrap}
.conversation-filters{display:flex;gap:6px;margin:0 16px 12px;align-items:center}.filter-chip{border:1px solid var(--border);border-radius:100px;padding:8px 16px;color:var(--muted);background:transparent;font-size:11px;flex:1}.filter-chip.selected{background:linear-gradient(120deg,#276eac,#2460a3);color:#fff;box-shadow:0 7px 15px #144d9480;border-color:#78cef972}.listhead{padding:0 19px 12px}.listhead b{font-size:12px;color:#c9dcf6}.listhead .round{width:35px;height:35px;border-radius:12px;background:linear-gradient(135deg,#468ef8,#3dbede);color:#fff;box-shadow:0 5px 12px #1d5fa860}.listhead .round.subtle{background:#364c70a6;box-shadow:none}
.chatlist{padding:0 10px 8px}.chatrow{background:#1b30512b;margin:0 0 7px;border:1px solid transparent;padding:12px 11px;border-radius:17px;text-align:right;gap:12px;transition:background .2s,border .2s,transform .2s}.chatrow:hover,.chatrow.active{background:linear-gradient(115deg,#214c7c96,#283b6b65);border-color:#68a8f83d;transform:translateX(-2px)}.chatrow .avatar-sm{width:46px;height:46px;border-radius:16px;box-shadow:inset 0 0 0 1px #ffffff29;background:linear-gradient(150deg,#2976b2,#3e3f91)}.chatrow strong{font-size:12.5px}.chatrow small{max-width:210px;line-height:1.7;font-size:10px}.chatrow .chat-meta{gap:5px}.unread-pill{background:linear-gradient(130deg,#3488f1,#44d0df);box-shadow:0 0 13px #36c9fb55}
.sidebarfoot{border-color:var(--border);padding:4px 0 8px;background:#06152a44}.sidebar-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.nav-tab{display:grid;justify-items:center;gap:5px;padding:9px;background:none;color:var(--muted);font-size:12px}.nav-tab span{font-size:22px;line-height:1}.nav-tab small{font-size:10px}.nav-tab.active{color:var(--prem-cyan)}.beta-foot{display:block;font-size:8px;opacity:.5;letter-spacing:1px;margin:6px 0 0}
.chatheader{min-height:79px;padding:12px 20px;gap:13px;background:linear-gradient(100deg,#162849d9,#18345fbc);border-bottom:1px solid #a2d8fe24}.chatperson{display:grid;gap:3px}.chatperson strong{font-size:14px}.chatperson small{font-size:10px;color:#a3c0db}.chatheader .avatar{border-radius:16px;box-shadow:0 0 0 3px #5bc8ff26}.chatheader .icon-button{background:#82b5fb16;border:1px solid #9ed1fc1f;width:40px;height:40px;color:#c7e8ff;display:grid;place-items:center;border-radius:14px}.chatheader .icon-button:disabled{opacity:.45}.chatheader .wallpaper-shortcut{font-size:24px}
.chatview{background-position:center;background-size:cover;background-repeat:no-repeat;isolation:isolate;background-image:linear-gradient(#06122666,#06152b55),url('/assets/wallpapers/mountains.svg')}.chatview[data-wallpaper="aurora"]{background-image:linear-gradient(#08152966,#06152b55),url('/assets/wallpapers/aurora.svg')}.chatview[data-wallpaper="ocean"]{background-image:linear-gradient(#08152966,#06152b55),url('/assets/wallpapers/ocean.svg')}.chatview[data-wallpaper="minimal"]{background-image:linear-gradient(#08152966,#06152b55),url('/assets/wallpapers/minimal.svg')}.chatview[data-wallpaper="desert"]{background-image:linear-gradient(#08152966,#06152b55),url('/assets/wallpapers/desert.svg')}.chatview[data-wallpaper="city"]{background-image:linear-gradient(#08152966,#06152b55),url('/assets/wallpapers/city.svg')}
.chatwarn{background:#05162a78;color:#d4e4f9;font-size:10px;backdrop-filter:blur(7px);border-bottom:1px solid #ffffff12}.messages{padding:24px 27px 35px;gap:15px}.msg{max-width:min(75%,600px)}.msg .bubble{border:1px solid #b2dfff23;background:#102748df;backdrop-filter:blur(12px);padding:12px 16px;border-radius:18px 18px 6px 18px;box-shadow:0 12px 28px #04112845;color:#f0f9ff;line-height:1.8;font-size:13px}.msg.mine .bubble{background:linear-gradient(120deg,#205aa4f0,#1b478ceb);border-color:#82cdff43;border-radius:18px 18px 18px 6px}.msg-more{border:0;border-radius:50%;background:#203b62d6;color:#bed8f6;width:28px;height:28px;box-shadow:0 5px 14px #020d1f4d}.msg-more:hover{color:#fff;background:#3b69ae}.stamp{font-size:9px;color:#c2d4eead;gap:9px}.stamp span{color:#92dcff}.msg .message-link,.msg .download{color:#a1e9ff}.reaction-chip{background:#182c4ddf;color:#fff}.msg .message-menu{background:#15294af7;border:1px solid #7fa5d04d;color:#fff;border-radius:19px;z-index:30;box-shadow:0 23px 42px #02081788;overflow:hidden}.msg .message-menu button{color:#ebf5ff;padding:10px 12px;font-size:12px}.msg .message-menu button:hover{background:#2a4b73}.message-menu .reaction-row{border-color:#ffffff2a}.message-menu.hidden{display:none!important}
.reply-preview{background:#123052df;color:#e1f1ff;border-right-color:var(--prem-cyan)}.composer{background:#0b1931ee;backdrop-filter:blur(16px);padding:13px 17px;border-top:1px solid #e7ffff21;gap:9px}.composer textarea{background:#1a2e4a;border:1px solid #b4d7ff27;color:#edf7ff;border-radius:16px;font-size:13px;box-shadow:inset 0 2px 8px #06102055}.composer textarea::placeholder{color:#a7bdd6}.composer .icon-button{height:44px;width:44px;border:1px solid #a8d6fc30;background:#1d3456;color:#d1ecff;border-radius:15px;display:grid;place-items:center}.composer #attach{font-size:31px;font-weight:300;line-height:1;background:linear-gradient(130deg,#327cdb,#3fc6df);color:#fff;box-shadow:0 0 19px #338bdf49}.composer .send{background:linear-gradient(130deg,#3885eb,#27accd);border-radius:15px;box-shadow:0 5px 16px #1655a99c}.attach-menu{grid-template-columns:repeat(5,minmax(0,1fr));width:min(565px,calc(100% - 30px));padding:12px;gap:7px;bottom:86px;right:15px;background:#102440f5;border-color:#9bd1fe41;border-radius:22px;backdrop-filter:blur(20px);box-shadow:0 30px 70px #0009;animation:liftIn .2s ease-out}.attach-menu button{display:grid;justify-items:center;gap:7px;padding:13px 5px;border-radius:14px;background:#ffffff0b;font-size:10px;color:#d7eaff;border:1px solid #ffffff15;white-space:normal;text-align:center}.attach-menu button:hover{background:#4684ce42}.attach-icon{width:37px;height:37px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#2d70bc,#7258b5);color:white;font-size:21px}.attach-menu button:nth-child(2) .attach-icon{background:linear-gradient(135deg,#995cc2,#526ac1)}.attach-menu button:nth-child(3) .attach-icon{background:linear-gradient(135deg,#2b9aa0,#277dc4)}.attach-menu button:nth-child(4) .attach-icon{background:linear-gradient(135deg,#537ce8,#8b6ada)}.attach-menu button:nth-child(5) .attach-icon{background:linear-gradient(135deg,#2d9d94,#42b6b1)}
@keyframes liftIn{from{opacity:0;transform:translateY(9px) scale(.97)}to{opacity:1;transform:none}}
.emoji-picker{background:#142846fa;border-color:#98ccfa47;backdrop-filter:blur(14px)}.upload-tray{background:#112743ef;color:#edf6ff}.login-panel,.auth-hero{box-shadow:0 20px 50px #0002}.auth-shell{background:radial-gradient(circle at 15% 85%,#6441b23b,transparent 44%),radial-gradient(circle at 83% 5%,#257cc856,transparent 45%),#09172d}.login-panel{background:#122541e8;color:#f0f8ff;border:1px solid #9bd2ff38;backdrop-filter:blur(15px)}.login-panel input,.login-panel select{background:#0e1e35;color:#f6fbff;border:1px solid #a5d8ff36}.login-panel .tabs{background:#0b1931}.login-panel .tab.selected{background:linear-gradient(110deg,#286cbd,#35a9d1);color:#fff}.login-panel .primary{background:linear-gradient(110deg,#337cda,#35b0d3)}.auth-hero{background:radial-gradient(circle at 40% 0%,#4483f76b,transparent 54%),linear-gradient(130deg,#0c1d38,#1a3271);border-radius:28px}.auth-hero h1 span{color:#7de4ff}.auth-hero .auth-hero-chips span{border-color:#a0e4ff5b}.auth-subline{color:#b3d0e8}.notice{border-color:#82e0e83b;background:#51b7cd13}
.overlay{backdrop-filter:blur(8px);background:#020c1ccc}.dialog{border:1px solid #9fcbf44b;background:#11233fcf;color:#eff6ff;box-shadow:0 40px 100px #0009;backdrop-filter:blur(24px)}.dialog input,.dialog textarea,.dialog select{background:#0e2039;color:#eff8ff;border-color:#a7cffd40}.dialog .secondary{background:#223b60;color:#e7f6ff;border:1px solid #8acafc43}.dialog .primary{background:linear-gradient(115deg,#3383dc,#32b6d5)}.dialog p{color:#c1d7eb}.voice-signal{display:flex;align-items:center;gap:17px;padding:18px 14px;border-radius:18px;background:linear-gradient(120deg,#163766,#192d5b);border:1px solid #7dc7ff48;margin:16px 0;min-height:78px}.record-live-dot{width:13px;height:13px;border-radius:50%;background:#f47e9b;box-shadow:0 0 0 5px #f2688c1f,0 0 14px #ff5577;opacity:.4}.voice-signal.is-recording .record-live-dot{opacity:1;animation:blink 1s infinite}.voice-signal strong{font-variant-numeric:tabular-nums;color:#fff;font-size:22px;direction:ltr}.wave-bars{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:1;height:36px}.wave-bars i{height:8px;flex:1;max-width:8px;border-radius:8px;background:linear-gradient(#a1f7ff,#548de8);opacity:.4}.voice-signal.is-recording .wave-bars i{animation:wave 0.75s ease-in-out infinite alternate;opacity:1}.wave-bars i:nth-child(2n){animation-delay:-.36s}.wave-bars i:nth-child(3n){animation-delay:-.52s}@keyframes wave{to{height:31px}}@keyframes blink{50%{opacity:.35}}
.section-kicker{color:#74ddeb;font-size:9px;letter-spacing:2px}.wp-top{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.wp-top h2{margin:5px 0}.wp-top p{margin:5px 0 14px}.modal-x{width:36px;height:36px;font-size:24px;background:#264465;border-radius:12px;color:#d9efff;flex:none}.wallpaper-dialog{width:min(650px,100%)}.wallpaper-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.wallpaper-option{padding:6px;border:2px solid transparent;border-radius:17px;background:#e2f4ff0c;color:#eff6ff;text-align:center;position:relative}.wallpaper-option.selected{border-color:#68e7ff;background:#4cabe52d}.wallpaper-thumb{display:block;height:125px;background-size:cover;background-position:center;border-radius:12px}.wp-name{display:block;font-size:11px;padding:9px 0 5px}.check-mark{display:none;position:absolute;top:12px;right:12px;width:25px;height:25px;border-radius:50%;background:#40b4e8;color:white;place-items:center}.wallpaper-option.selected .check-mark{display:grid}.wp-foot{color:#a9c6df;font-size:11px;line-height:1.9;margin:12px 0 0}
.location-dialog{width:min(650px,100%)}.location-actions{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:6px 0 11px}.location-actions button{font-size:12px}.accuracy-status{color:#b6c8dc;font-size:10px}.map-preview{width:100%;height:250px;border:1px solid #88c9ee45;background:#10213b;border-radius:15px}.location-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.location-fields label{font-size:11px}.location-fields input{width:100%;margin-top:6px}
:root[dir="ltr"] .chatrow{text-align:left}:root[dir="ltr"] .ai-head{flex-direction:row-reverse}:root[dir="ltr"] .selfinfo small{text-align:left}
@media(max-width:800px){.app{padding:0;gap:0}.sidebar,.conversation{width:100%;min-width:0;height:100dvh;border-radius:0;border:none}.sidebar{background:#0b1931}.brand{padding:17px 16px 10px}.brand strong{font-size:17px}.brand img{width:49px;height:49px}.self{margin:5px 12px 11px;padding:10px}.tools{margin:0 12px 12px}.ai-feature{margin:0 12px 12px;padding:11px 12px}.ai-orb{width:37px;height:37px}.conversation-filters{margin:0 12px 10px}.search{padding:0 12px 12px}.chatlist{padding:0 9px 8px}.chatrow{margin-bottom:6px;padding:10px 9px}.sidebarfoot{padding-bottom:max(8px,env(safe-area-inset-bottom))}.chatheader{min-height:70px;padding:9px}.chatheader .icon-button{width:34px!important;height:36px!important;border-radius:11px}.chatheader svg{width:18px;height:18px}.chatheader .avatar{width:39px;height:39px}.chatperson strong{font-size:13px}.messages{padding:14px 11px}.msg{max-width:92%}.msg .bubble{font-size:12px;padding:10px 12px}.composer{padding:9px 8px max(9px,env(safe-area-inset-bottom));gap:5px}.composer .icon-button{height:41px;width:39px}.composer .send{padding:8px 11px;height:42px}.attach-menu{width:calc(100% - 18px);right:9px;bottom:70px;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px;gap:4px}.attach-menu button{font-size:9px;padding:9px 2px}.attach-icon{width:34px;height:34px}.wallpaper-thumb{height:88px}.wallpaper-grid{gap:6px}.wallpaper-option{padding:4px}.wp-name{font-size:9px}.location-fields{grid-template-columns:1fr}.location-dialog .map-preview{height:195px}}
@media(max-width:365px){.ai-actions button{font-size:9px}.beta-chip{font-size:7px}.brand strong{font-size:14px}.chatheader .icon-button{width:30px!important;height:33px!important}.attach-menu .attach-icon{width:29px;height:29px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}

.map-wrap{position:relative;border-radius:15px;overflow:hidden}.map-wrap .map-preview{display:block;pointer-events:none}.map-tap{position:absolute;inset:0;width:100%;height:100%;color:#d9f2ff;background:transparent;cursor:crosshair}.map-tap span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#6bf0fb;font-size:31px;text-shadow:0 0 9px #001637}.map-tap small{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:4px 10px;background:#092c52d9;border-radius:10px;font-size:10px}.map-wrap:has(.map-preview:not([src])){background:#1b3152}
.live-location-choice{display:grid;grid-template-columns:1fr minmax(130px,190px);gap:10px;align-items:center;margin:12px 0;padding:12px 14px;border:1px solid #74c7ff45;border-radius:14px;background:#168cff12;color:#eaf7ff;font-size:12px}.live-location-choice select{margin:0;min-height:42px;border-radius:10px}
@media(max-width:520px){.live-location-choice{grid-template-columns:1fr}.live-location-choice select{width:100%}}

/* In-chat location card: shows a real map preview for received and sent locations. */
.location-card{width:min(320px,72vw);overflow:hidden;border:1px solid #74c7ff55;border-radius:14px;background:linear-gradient(145deg,#0d2c52,#091a35);box-shadow:0 8px 24px #0002;line-height:1.5}.location-card-title{display:block;padding:10px 12px;color:var(--text,#eef7ff);font-size:12px}.location-card iframe{display:block;width:100%;height:170px;border:0;background:#dbe9f1}.location-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 11px;color:var(--muted,#afc5df);font-size:10px}.location-card-footer a{color:#70c8ff;text-decoration:none;white-space:nowrap;font-weight:700}.location-card-footer a:hover{text-decoration:underline}


/* /v4.css?v=4.2 */
/* EHSAN EPT — approved visual system. Functional UI: no flattened screenshot behind controls. */
/* Use installed font if available; no external font/CDN required. */
:root{font-family:'Noto Sans Arabic UI','Noto Sans Arabic','Segoe UI',Tahoma,Arial,sans-serif;--brand-ink:#061328;--brand-panel:#0b2246;--brand-line:#2866b0;--brand-ice:#a7dfff;--brand-electric:#176dff;--brand-cyan:#18bfff;--brand-fg:#f4f9ff;--brand-muted:#adc4e4}
:root[data-theme=dark]{--page:#06132a;--panel:#091b39;--soft:#102748;--input:#11284a;--border:#2860a0;--text:#f2f8ff;--muted:#afc6e8;--accent:#3c91ff;--accent2:#18b9ff;--bubble:#112a4e;--mine:#0b60d6;--chatbg:#071b35}
body{font-family:'Noto Sans Arabic UI','Noto Sans Arabic','Segoe UI',Tahoma,Arial,sans-serif;letter-spacing:0;font-size:14px}button,input,textarea,select{font-family:inherit}button{transition:background .18s ease,border-color .18s ease,transform .18s ease}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #58d7ff;outline-offset:2px}button:active:not(:disabled){transform:scale(.984)}
/* Welcome: background is dramatic ONLY on the entry screens. The brand is part of the scene, never a nested box. */
.auth-v4.auth-shell{display:block;position:relative;isolation:isolate;min-height:100dvh;padding:32px 18px 54px;background:#04142e;overflow-x:hidden;color:white}
.auth-v4 .auth-background{position:fixed;inset:0;z-index:-2;background:linear-gradient(to bottom,rgba(2,10,28,.23),rgba(3,11,29,.18) 30%,rgba(2,11,28,.23) 57%,rgba(1,10,25,.63)),url('/assets/auth-scenery.webp') center 49% /cover no-repeat}
.auth-v4:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 50% 17%,rgba(9,71,194,.27),transparent 43%),linear-gradient(90deg,rgba(1,9,24,.23),transparent 18%,transparent 80%,rgba(1,9,24,.22))}
.auth-layout{position:relative;display:flex;flex-direction:column;align-items:center;min-height:calc(100dvh - 80px);justify-content:center;gap:25px;max-width:1280px;margin:0 auto}
.auth-v4 .auth-hero{display:flex;align-items:center;flex-direction:column;text-align:center;gap:5px;max-width:none;width:100%;padding:0;margin:0;background:none;border:0;box-shadow:none;border-radius:0;justify-self:auto}
.auth-hero-logo-wrap{width:91px;height:91px;border-radius:22px;filter:drop-shadow(0 0 18px rgba(0,149,255,.72));margin:0 0 8px}.auth-v4 .auth-hero-logo{display:block;width:100%;height:100%;object-fit:contain}
.auth-title-en{font-size:clamp(28px,3.5vw,43px);font-weight:900;line-height:1.28;letter-spacing:2px;direction:ltr;color:#f6faff;text-shadow:0 4px 24px #001b51}.auth-title-en span{color:#20c6f9}
.auth-v4 .auth-hero h1{font-size:clamp(15px,1.65vw,19px);line-height:1.8;margin:0;color:#f0f8ff;font-weight:600;text-shadow:0 2px 14px #000a}
.auth-v4 .ept-email-panel{width:min(495px,100%);max-height:none;overflow:visible;display:block;position:relative;margin:0 auto;padding:28px clamp(18px,4vw,35px) 22px;border-radius:29px;background:linear-gradient(155deg,rgba(19,52,103,.91),rgba(5,22,50,.93));border:1px solid rgba(116,182,255,.76);box-shadow:0 20px 85px rgba(0,4,23,.7),0 0 27px rgba(10,99,232,.29),inset 0 1px 1px rgba(220,249,255,.21);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.auth-v4 .auth-mobile-brand{display:none!important}.auth-v4 .ept-email-panel h2{font-size:24px;color:#fff;text-align:center;font-weight:800;margin:0 0 2px}.auth-v4 .auth-subline{color:#b2cce8;font-size:12px;text-align:center;margin:0 0 20px}.auth-v4 .tabs{display:flex;background:rgba(0,14,41,.57);border:1px solid rgba(109,166,245,.18);padding:4px;border-radius:14px;margin:0 0 17px;gap:5px}.auth-v4 .tabs button{flex:1;min-height:39px;border-radius:10px;font-size:13px;color:#b6cdeb;background:transparent;font-weight:600}.auth-v4 .tabs button.selected{background:linear-gradient(110deg,#1470fa,#1bb8e6);color:white;box-shadow:0 4px 15px #006ce764}
.auth-v4 .ept-email-panel label{display:block;font-size:12px;font-weight:600;color:#cadcf5;margin:12px 0 0}.auth-v4 .ept-email-panel input,.auth-v4 .ept-email-panel select{height:47px;background:rgba(16,46,92,.7);color:#fff;border:1px solid rgba(123,180,252,.43);padding:10px 13px;margin-top:7px;border-radius:13px;box-shadow:inset 0 1px 5px rgba(0,12,45,.22);font-size:13px}.auth-v4 .ept-email-panel input::placeholder{color:#95aacc}.auth-v4 .ept-email-panel input:focus,.auth-v4 .ept-email-panel select:focus{border-color:#66cbff;box-shadow:0 0 0 3px #2e9efe27}.auth-v4 .ept-email-panel .auth-phone-line{background:rgba(16,46,92,.75);border-radius:13px;border:1px solid rgba(123,180,252,.43);margin-top:7px}.auth-v4 .ept-email-panel .auth-phone-line input{border:0;margin:0;background:transparent;box-shadow:none}.auth-v4 .ept-email-panel .primary.full{margin-top:20px;background:linear-gradient(105deg,#1571f7 0%,#1167ef 58%,#16b8ed 100%);color:white;font-size:15px;font-weight:800;border-radius:13px;min-height:49px;box-shadow:0 8px 22px #005aff65,0 0 1px #89faff;border:1px solid #49bfffa8}.auth-v4 .ept-email-panel .primary.full span{margin-inline-start:7px}.auth-v4 .ept-email-panel .primary.full:hover{filter:brightness(1.12)}
.auth-v4 .auth-footer-note{border-top:1px solid #80baf62a;padding-top:16px;font-size:10px;color:#bdd3ed;text-align:center;line-height:1.8;margin:17px 0 0}.auth-v4 .otp-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.auth-v4 .otp-actions .secondary{background:rgba(17,50,100,.55);color:#e6f4ff;border:1px solid #4079c4;border-radius:12px;font-size:12px;min-height:42px}.auth-v4 .auth-verify-graphic{width:62px;height:62px;margin:0 auto 12px;display:grid;place-items:center;background:linear-gradient(135deg,#0d6cf8,#00bdf8);font-size:29px;color:#fff;border:1px solid #72d9ff;border-radius:50%;box-shadow:0 0 25px #159cff6f}.auth-v4 .auth-verify-sub{font-size:11px;color:#bbd1e9;text-align:center;line-height:1.8;overflow-wrap:anywhere}.auth-v4 .auth-verify-sub strong{color:#fff}.auth-v4 #emailCode{font-family:ui-monospace,monospace;text-align:center;letter-spacing:12px;font-size:23px;font-weight:800;height:57px}.auth-v4 .error{font-size:12px;line-height:1.8;color:#ffbbb9;min-height:0;margin:9px 0 0}.auth-v4 .error:empty{display:none}.auth-v4 .auth-two{gap:12px}.auth-v4 .login-panel form{width:100%}.auth-v4 .legacy-option{margin-top:9px}
/* Desktop messenger: calm workspace, bright focused accents, no distracting scenery. */
.app{height:100dvh;max-width:1800px;grid-template-columns:minmax(330px,390px) minmax(0,1fr);gap:13px;padding:13px;background:radial-gradient(ellipse at 80% 110%,#0a3372 0%,transparent 55%),#06142a;direction:rtl}
.sidebar,.conversation{border:1px solid rgba(49,118,210,.5);background:linear-gradient(145deg,#0c2449,#071a36 72%);border-radius:20px;box-shadow:0 10px 55px #010c25aa,inset 0 1px #a8dcff10;color:#edf7ff;min-width:0}
.sidebar{display:flex;flex-direction:column}.brand{min-height:74px;display:flex;align-items:center;gap:11px;padding:14px 18px 10px;border-bottom:1px solid #5b98ee24}.brand img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 0 7px #237af65e)}.brand strong{font-size:20px;font-weight:900;font-family:'Segoe UI',sans-serif;letter-spacing:.9px;direction:ltr;display:block}.brand small{font-size:10px;color:#b7cfea;margin-top:1px;display:block;letter-spacing:0}
.self{display:flex;align-items:center;gap:9px;margin:13px 13px 12px;padding:12px;background:linear-gradient(145deg,#173b76,#092448);border:1px solid #4294ef94;border-radius:17px;box-shadow:0 0 14px #0b75f12c}.selfpic{border-radius:50%;padding:0;background:none}.selfpic .avatar{width:50px;height:50px;border:2px solid #36adff;box-shadow:0 0 12px #128cfa65}.selfinfo{flex:1;min-width:0;text-align:right}.selfinfo strong{font-size:15px;font-weight:800}.selfinfo small{font-family:'Segoe UI',sans-serif;letter-spacing:.5px;color:#95d6ff;font-size:12px;direction:ltr;text-align:right}.self .id-copy{width:32px;height:32px;flex:none;border:1px solid #459fea70;border-radius:10px;color:#b5deff;background:#143a6a;font-size:23px;display:grid;place-items:center}.self .logout-action{width:31px;height:31px;color:#a5c3ed}
.tools{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:7px;margin:0 13px 11px;padding:9px;border:1px solid #27528475;border-radius:13px;background:#071c3a}.tools label{font-size:10px;color:#9cbce1}.tools select{width:100%;min-width:0;background:#122b51;border:1px solid #38659d7d;color:#d8edff;border-radius:8px;padding:5px 2px;font-size:10px}.tools #enableNotifications{grid-column:1/-1;justify-self:start;margin-top:2px;background:#183661;color:#c6eaff;border:1px solid #406b9c;border-radius:8px;font-size:10px;padding:4px 9px}
.search{padding:2px 13px 10px;display:flex;gap:4px}.search input{min-width:0;background:#092141;color:#eef7ff;border:1px solid #396ea7a9;border-radius:13px;padding:11px 13px;font-size:12px}.search input::placeholder{color:#97bbdb}.search .search-action{border-radius:12px;background:#183a64;border:1px solid #4075a9;color:#bce9ff}
.ai-feature{margin:0 13px 10px;padding:12px;border:1px solid #3e98ffcc;background:linear-gradient(110deg,#103772,#0a2854);border-radius:17px;box-shadow:0 0 14px #0b77ed3e;position:relative}.ai-feature .ai-head{align-items:center;gap:12px}.ai-feature .ai-orb{border-radius:15px;background:linear-gradient(160deg,#104b96,#06204e);overflow:hidden;height:55px;width:55px;flex:none;border:1px solid #2e97ff}.ai-feature .ai-orb img{width:100%;height:100%;object-fit:cover;display:block}.ai-feature .ai-copy strong{font-size:16px;letter-spacing:.3px}.ai-feature .ai-copy small{font-size:10px;color:#a3c8f3}.ai-feature .coming-tag{background:#15325e;border:1px solid #47719d;color:#bad1e9;font-size:9px;white-space:nowrap}.ai-feature .ai-actions{gap:6px;margin-top:11px}.ai-feature .ai-actions button{padding:6px 4px;background:#133b76;border-color:#3765aa;color:#a9c6ee;opacity:.72;font-size:9px}
.conversation-filters{margin:0 13px 9px;padding:0;gap:6px;display:flex;overflow-x:auto}.conversation-filters .filter-chip{background:#0c2b55;border:1px solid #345e91;color:#bcd2f3;border-radius:11px;padding:8px 10px;font-size:11px;min-width:0;white-space:nowrap}.conversation-filters .filter-chip.selected{border-color:#59caff;background:linear-gradient(125deg,#0e58ca,#148be9);box-shadow:0 0 14px #0068d765;color:white}
.listhead{padding:5px 16px 9px}.listhead b{font-size:13px;font-weight:700;color:#dfeaff}.listhead button{background:#133967;border:1px solid #4179bf;color:#d8f2ff;width:31px;height:31px;border-radius:10px;font-size:18px}.listhead #newChat{background:#1768df;border-color:#58b6ff;color:white;box-shadow:0 0 13px #177fe963}
.chatlist{overflow-y:auto;padding:0 9px 12px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#24578c transparent;flex:1;min-height:0}.chatrow{display:flex;align-items:center;min-height:67px;margin:0 3px 3px;padding:10px 11px;border:1px solid transparent;border-bottom:1px solid #35619b38;border-radius:12px;color:#eef6ff;background:transparent;text-align:right;gap:11px}.chatrow:hover{background:#153565b0;border-color:#2f66aa63}.chatrow.active{background:linear-gradient(90deg,#0e458c,#10316a);border-color:#429cffb3;box-shadow:0 0 14px #0d68db4d}.avatar.avatar-sm{width:44px;height:44px;flex:none;border:1.5px solid #3379d2;background:linear-gradient(155deg,#0f6ed9,#092755);color:#eaf7ff;font-size:18px}.chatrow-info{min-width:0;flex:1}.chatrow-info strong{font-size:12.5px;font-weight:700;line-height:1.6}.chatrow-info small{font-size:10.5px;line-height:1.5;color:#a7bfdf}.chat-meta .unread-pill{min-width:22px;min-height:22px;background:#1184f2;box-shadow:0 0 10px #21a9ff66;color:#fff;border-radius:50%;font-size:10px}.online-dot{background:#26dc78!important}
.sidebarfoot{border-top:1px solid #3f77bb33;background:#071c3c;padding:10px 8px max(9px,env(safe-area-inset-bottom))}.sidebar-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:space-evenly;gap:5px}.sidebar-tabs .nav-tab{color:#b6d1f2;border-radius:12px;padding:6px 3px;min-width:0}.sidebar-tabs .nav-tab.active{background:#124db2;color:#fff;box-shadow:0 0 11px #006be65c}.sidebar-tabs .nav-tab span{font-size:21px}.sidebar-tabs .nav-tab small{font-size:10px}.beta-foot{display:none}
.conversation{background:#081d3a}.chatheader{min-height:74px;padding:12px 17px;gap:11px;background:#0a2244;border-bottom:1px solid #4787e64a}.chatheader .avatar{width:48px;height:48px;border:2px solid #377acb;border-radius:50%;background:linear-gradient(140deg,#1758a5,#0b294e)}.chatperson strong{display:block;font-size:15px;font-weight:750}.chatperson small{font-size:11px;color:#99c5ed}.chatheader .icon-button{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:#c6e8ff;background:#0c2a56;border:1px solid #3e75b6}.chatheader .icon-button:hover:not(:disabled){background:#1d4e91}.chatheader #callAudio:disabled,.chatheader #callVideo:disabled{opacity:.34}.peer-ept-id{font-size:10px;max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#83cfff}
.welcome{background:radial-gradient(circle at center,#102f5a,#07172e 77%)}.welcome img{width:98px;height:98px;object-fit:contain;filter:drop-shadow(0 0 23px #1d8dff4e)}.welcome h2{font-size:23px;color:#eefaff;font-weight:800}.welcome p{font-size:13px;color:#a9c6ea}
/* Chat workspace readability outranks scenery. Even themed wallpapers are deliberately muted. */
.chatview,.chatview[data-wallpaper]{background:radial-gradient(circle at 70% 0%,#12325a,#07182f 75%)!important}.chatview:before,.chatview:after{display:none!important}.chatwarn{font-size:9px;color:#90aed2;background:#071b36b0;padding:5px 13px;min-height:auto}.messages{padding:24px clamp(12px,3.3vw,40px);gap:14px;scrollbar-width:thin;scrollbar-color:#3767a2 transparent}.msg{max-width:min(75%,650px)}.msg .bubble{background:#102849f2;border:1px solid #3869a55c;color:#f0f7ff;border-radius:17px 17px 5px 17px;font-size:13px;line-height:1.95;padding:12px 16px;box-shadow:0 5px 19px #0003;backdrop-filter:none}.msg.mine .bubble{background:linear-gradient(120deg,#125ac6,#1268da);border-color:#4dacff99;border-radius:17px 17px 17px 5px;box-shadow:0 5px 20px #0858c146}.msg-more{background:#194178;color:#d9efff}.stamp{font-size:10px;color:#d1dbefb0}.composer{background:#091d3b;border-top:1px solid #4c87dc4a;padding:12px 15px;gap:10px}.composer textarea{background:#102a50;color:#eff8ff;border:1px solid #4275b1;border-radius:14px;padding:12px 15px;font-size:13px;line-height:1.75;resize:none}.composer textarea::placeholder{color:#91b0d5}.composer .icon-button{height:43px;width:43px;background:#12345f;border:1px solid #3e76b1;color:#c2e7ff;border-radius:13px}.composer #attach{background:#1c6de4;border-color:#5dbaff;box-shadow:0 0 14px #098bf069}.composer .send{height:43px;background:linear-gradient(110deg,#176dea,#00a9e9);border:1px solid #5dbbfa;color:white;border-radius:13px;font-weight:700;font-size:12px}.attach-menu{background:#0c244af8;border:1px solid #4489d3;box-shadow:0 16px 50px #0008}.attach-menu .attach-icon{background:#164fa4!important;border:1px solid #4b9af2;color:#e4f5ff}
/* App profile: ID is real server data, not a mock placeholder. */
.profile-identity{background:linear-gradient(130deg,#0b376e,#0d2550);border:1px solid #478fe7;border-radius:15px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:12px;margin:12px 0 17px;color:#f1f7ff}.profile-identity>span{display:block;width:100%;font-size:11px;color:#a8d6fa}.profile-identity strong{flex:1;font-family:'Segoe UI',sans-serif;font-size:17px;letter-spacing:1px}.profile-identity .small-action{background:#1a59b8;color:white;border:1px solid #4ca8ef;border-radius:9px;padding:8px 12px;font-size:11px}
.dialog{background:linear-gradient(145deg,#102e59,#091f40);border:1px solid #3f87d8;color:white;box-shadow:0 25px 100px #000b}.dialog input,.dialog textarea,.dialog select{border:1px solid #386ea8;background:#0c2549;color:#f0f9ff}.dialog input::placeholder,.dialog textarea::placeholder{color:#88a9d2}.dialog .primary{background:#166fee;color:white}.dialog .secondary{background:#173764;color:#e4efff;border:1px solid #4276ac}.overlay{background:#000e25c9}.dialog h2{color:#f6fbff}.dialog p{color:#aec7e8}
/* Mobile navigation: native-like density, no clipped tabs or top controls. */
@media(max-width:920px){.auth-v4.auth-shell{padding:20px 14px 38px}.auth-layout{justify-content:flex-start;gap:20px;min-height:calc(100dvh - 58px)}.auth-v4 .auth-hero{display:flex!important;margin:15px auto 0}.auth-hero-logo-wrap{width:79px;height:79px;margin-bottom:3px}.auth-title-en{font-size:30px}.auth-v4 .auth-hero h1{font-size:14px}.auth-v4 .ept-email-panel{padding:23px 20px 19px;width:min(460px,100%)}.auth-v4 .ept-email-panel h2{font-size:20px}.auth-v4 .auth-subline{margin-bottom:15px}.auth-v4 .auth-two{grid-template-columns:1fr 1fr;gap:8px}.auth-v4 .ept-email-panel input,.auth-v4 .ept-email-panel select{height:44px}.auth-v4 .ept-email-panel .primary.full{min-height:46px}}
@media(max-width:800px){.app{display:block;padding:0;height:100dvh}.sidebar,.conversation{border:0;border-radius:0;width:100%;height:100dvh;box-shadow:none}.sidebar{background:linear-gradient(180deg,#0a2247,#061731)}.brand{padding:15px 16px 11px;min-height:76px}.brand img{width:43px;height:43px}.brand strong{font-size:20px}.brand small{font-size:10px}.self{margin:10px 12px;padding:9px 12px}.selfpic .avatar{width:43px;height:43px}.tools{margin:0 12px 10px;padding:8px}.ai-feature{margin:0 12px 10px;padding:10px 12px}.ai-feature .ai-orb{width:47px;height:47px}.search{padding:0 12px 10px}.conversation-filters{margin:0 12px 8px}.chatlist{padding:0 9px 8px}.chatrow{min-height:65px;padding:9px 11px}.chatheader{padding:8px 10px;gap:7px;min-height:68px}.chatheader .icon-button{width:35px!important;height:36px!important;flex:none}.chatheader .avatar{width:38px!important;height:38px!important}.chatperson strong{font-size:12px}.chatperson small{font-size:9px}.peer-ept-id{display:none}.messages{padding:15px 11px}.msg{max-width:90%}.msg .bubble{font-size:12.5px;padding:10px 12px}.composer{padding:8px 7px max(8px,env(safe-area-inset-bottom));gap:5px}.composer .icon-button{width:38px;height:41px}.composer .send{height:41px}.composer textarea{min-width:0;font-size:12px;padding:9px}.attach-menu{bottom:67px}.sidebarfoot{padding:8px 7px max(8px,env(safe-area-inset-bottom))}}
@media(max-width:390px){.brand strong{font-size:17px}.selfinfo strong{font-size:13px}.tools{grid-template-columns:auto 1fr auto 1fr}.tools label{font-size:9px}.ai-feature .ai-copy small{font-size:9px}.ai-feature .ai-copy strong{font-size:14px}.ai-feature .ai-actions button{font-size:8px}.chatheader .icon-button{width:32px!important;height:34px!important}.composer .send{font-size:10px;padding:6px 9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Integrated AI workspace; all real responses come from the configured server backend. */
.ai-feature{cursor:pointer}.ai-feature:focus-visible{outline:2px solid #6bd6ff;outline-offset:2px}.ai-dialog{width:min(620px,100%);height:min(780px,92dvh);display:flex;flex-direction:column;overflow:hidden;border-radius:22px;background:linear-gradient(140deg,#102e5c,#07162f);border:1px solid #3985e3;box-shadow:0 28px 100px #000b;color:#eaf7ff}.ai-dialog header{display:flex;gap:13px;align-items:center;padding:17px;border-bottom:1px solid #3e79c35c}.ai-dialog header strong{font-size:20px;font-family:'Segoe UI',sans-serif;font-weight:800}.ai-dialog header small{display:block;color:#abccea;font-size:12px}.ai-modal-robot{width:57px;height:57px;border-radius:17px;overflow:hidden;border:1px solid #57a9ff}.ai-modal-robot img{display:block;width:100%;height:100%;object-fit:cover}.ai-dialog #aiClose{margin-inline-start:auto;border:1px solid #3e77a9;border-radius:12px;background:#123663;color:white;width:39px;height:39px;font-size:23px}.ai-chat-log{flex:1;overflow:auto;min-height:0;padding:19px;display:flex;flex-direction:column;gap:12px}.ai-system-intro{color:#91c1e9;text-align:center;font-size:12px}.ai-line{max-width:90%;padding:12px 15px;border-radius:16px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:2}.ai-line.mine{align-self:flex-start;background:#125ccc;border:1px solid #58a5fb;border-bottom-right-radius:5px}.ai-line.assistant{align-self:flex-end;background:#163159;border:1px solid #3f78bb;border-bottom-left-radius:5px}.ai-actions-row{display:flex;gap:8px;overflow-x:auto;padding:8px 14px}.ai-actions-row button{border:1px solid #387ab7;border-radius:18px;background:#122e5b;color:#d4edff;padding:7px 12px;white-space:nowrap;font-size:11px}.ai-dialog #aiAskForm{display:flex;gap:9px;align-items:center;padding:11px 14px;border-top:1px solid #2f6da85c}.ai-dialog #aiAskText{flex:1;border:1px solid #3e71a6;border-radius:13px;background:#0e2347;resize:none;padding:10px 12px;color:white;min-width:0;font-size:13px}.ai-dialog #aiAskForm button{border:1px solid #72bdff;border-radius:13px;background:#1b72ea;color:#fff;width:43px;height:43px;display:grid;place-items:center}.ai-unavailable{padding:10px 17px;background:#233b5e;color:#bdd5ed;border-top:1px solid #4c78a1;font-size:11px;line-height:1.85}
.profile-metadata{border:1px solid #346da4;background:#0d2549;border-radius:14px;overflow:hidden;margin:0 0 14px}.profile-metadata:empty{display:none}.profile-metadata div{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:9px 12px;border-bottom:1px solid #4675b039;font-size:11px}.profile-metadata div:last-child{border-bottom:0}.profile-metadata span{color:#9fc2e7}.profile-metadata strong{direction:auto;overflow-wrap:anywhere;color:#fff;font-weight:600}

/* Final usability corrections after viewport review. */
.brand-settings{margin-inline-start:auto;width:37px;height:37px;flex:0 0 37px;border:1px solid #3779d0;border-radius:12px;background:linear-gradient(145deg,#102f64,#09214b);color:#d3efff;font-size:21px;display:grid;place-items:center;cursor:pointer}
.brand-settings:hover,.brand-settings[aria-expanded=true]{box-shadow:0 0 15px #168eff6a;border-color:#5bc2ff}
.tools.hidden,.chatwarn.hidden{display:none!important}
.chatrow-info{min-width:0}.chatrow-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatrow-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:800px){.brand-settings{width:34px;height:34px;flex-basis:34px}.brand{gap:10px}}


/* /registration-v6.css?v=8.1 */
/* EHSAN EPT — registration v5: actual responsive controls, not an image pasted as a UI. */
:root{--rv5-ice:#cfeaff;--rv5-border:rgba(126,193,255,.64);--rv5-bg:#061532}
.auth-v4.auth-shell{padding:20px 20px 34px;background:#041128;min-height:100dvh;overflow:visible;overflow-x:clip}
.auth-v4 .auth-background{background-image:linear-gradient(180deg,rgba(2,8,28,.07),rgba(1,11,31,.08) 50%,rgba(1,9,25,.27)),url('/assets/auth-scenery-v5.webp');background-size:cover;background-position:center center}
.auth-v4:before{background:linear-gradient(90deg,rgba(1,9,29,.13),transparent 30%,transparent 70%,rgba(1,10,32,.10));}
.auth-v4 .auth-layout{max-width:1700px;min-height:calc(100dvh - 55px);gap:13px;justify-content:center;padding:4px 0 8px}
.auth-v4 .auth-hero{gap:1px;filter:drop-shadow(0 8px 24px rgba(0,0,0,.35))}
.auth-v4 .auth-hero-logo-wrap{height:98px;width:98px;margin-bottom:4px;border-radius:21px;filter:drop-shadow(0 0 17px #00a3ff8c)}
.auth-v4 .auth-title-en{font-size:clamp(35px,3.1vw,49px);letter-spacing:1px;line-height:1.1;font-family:'Segoe UI',Arial,sans-serif;font-weight:900}
.auth-v4 .auth-hero h1{font-size:17px;font-weight:650;line-height:1.7}
.auth-v4 .ept-email-panel{box-sizing:border-box;width:min(626px,calc(100vw - 42px));padding:21px 45px 18px;background:linear-gradient(143deg,rgba(16,49,101,.93),rgba(4,23,59,.965) 70%);border-radius:25px;border:1.5px solid #80c5ff;box-shadow:0 14px 75px #01091fc9,0 0 0 3px #2969cc1f,0 0 25px #208bf266,inset 0 1px 1px #bcf7ff4d;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);text-align:right;position:relative}
.auth-v4 .ept-email-panel .tabs{background:linear-gradient(145deg,#081b3d,#10295a);margin:0 0 12px;border-radius:50px;padding:3px;border:1px solid #6aa5e49c;gap:3px;min-height:49px}
.auth-v4 .ept-email-panel .tabs .tab{font-size:15px;font-weight:750;border-radius:50px;padding:8px 15px;min-height:40px}
.auth-v4 .ept-email-panel .tabs .tab.selected{background:linear-gradient(106deg,#1358d8,#067df5 52%,#24bff8);box-shadow:0 0 16px #009dff75,inset 0 1px 3px #b5faffd4;color:#fff;border:1px solid #77e0ff}
.auth-v4 .ept-email-panel #emailStartForm{width:100%}
.auth-v4 .ept-email-panel label{font-size:13px;line-height:1.45;margin:8px 0 0;color:#f4faff;font-weight:650}
.auth-v4 .ept-email-panel .auth-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:end}
.auth-v4 .ept-email-panel .auth-two>label,.auth-v4 .ept-email-panel .auth-two>.auth-country-control{min-width:0}
.auth-v4 .ept-email-panel input:not([type=checkbox]),.auth-v4 .ept-email-panel select,.auth-v4 .ept-email-panel .country-trigger{width:100%;min-width:0;min-height:44px;height:44px;border-radius:10px;margin-top:6px;padding:9px 13px;background:linear-gradient(130deg,rgba(21,54,101,.86),rgba(14,36,76,.91));border:1px solid #6699dbb0;box-shadow:inset 0 1px 5px #010b2454;color:#e7f4ff;font-size:13px}
.auth-v4 .ept-email-panel input::placeholder{color:#a8bddc;opacity:.9}
.auth-v4 .ept-email-panel .auth-input-wrap{display:block;position:relative}
.auth-v4 .ept-email-panel .auth-input-wrap input{padding-inline-end:39px}
.auth-v4 .ept-email-panel .auth-input-wrap input[dir=ltr]{padding-right:39px}
.auth-v4 .ept-email-panel .field-icon{position:absolute;top:50%;right:12px;transform:translateY(-40%);color:#daf3ff;font-size:21px;line-height:1;pointer-events:none}
.auth-v4 .ept-email-panel .email-field .field-icon{right:12px}
.auth-v4 .ept-email-panel .email-field input{direction:ltr;text-align:left}
.auth-v4 .ept-email-panel .auth-country-control>label{display:block}
.auth-v4 .ept-email-panel #country.country-native{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;margin:0}
.auth-v4 .ept-email-panel .auth-country-control{position:relative}
.auth-v4 .ept-email-panel .country-trigger{display:flex;justify-content:flex-start;align-items:center;gap:9px;direction:ltr;text-align:left;cursor:pointer;white-space:nowrap}
.auth-v4 .ept-email-panel .country-trigger #countrySelectedText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-family:'Segoe UI',Arial,sans-serif;font-size:13px}
.auth-v4 .ept-email-panel .country-selected-flag,.auth-v4 .ept-email-panel .flag-sprite{width:30px;height:22px;flex:0 0 30px;background-image:url('/assets/country-flags.png');background-size:480px 352px;background-repeat:no-repeat;display:inline-block;border-radius:3px;box-shadow:0 0 0 1px #e0eeff38;overflow:hidden;font-size:0}
.auth-v4 .ept-email-panel .country-trigger .chevron{font-size:21px;color:#dbf0ff;line-height:1}
.auth-v4 .ept-email-panel .country-trigger[aria-expanded=true]{border-color:#7bdafe;box-shadow:0 0 0 3px #008bff38}
.auth-v4 .ept-email-panel .country-menu{position:absolute;z-index:100;top:calc(100% + 6px);right:0;left:0;min-width:min(360px,calc(100vw - 42px));background:#071c3ef9;border:1px solid #75b9ff;box-shadow:0 25px 55px #010b22e0,0 0 18px #0877ed6b;border-radius:13px;padding:9px;color:#edf9ff;direction:ltr}
.auth-v4 .ept-email-panel .country-menu #countrySearch{margin:0 0 6px;padding:9px 11px;border-radius:9px;font-family:'Segoe UI',Arial,sans-serif;height:40px;min-height:40px;font-size:14px}
.auth-v4 .ept-email-panel #countryOptions{height:auto;max-height:207px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#367ad1 transparent}
.auth-v4 .ept-email-panel .country-item{width:100%;min-height:41px;display:flex;align-items:center;gap:9px;background:transparent;color:#e8f4ff;font:13px 'Segoe UI',Arial,sans-serif;text-align:left;padding:6px 7px;border-radius:9px;direction:ltr}
.auth-v4 .ept-email-panel .country-item:hover,.auth-v4 .ept-email-panel .country-item[aria-selected=true],.auth-v4 .ept-email-panel .country-item:focus-visible{background:linear-gradient(100deg,#1768d8,#1152a5);color:white}
.auth-v4 .ept-email-panel .country-item .country-item-name{flex:1;line-height:1.35;min-width:0}
.auth-v4 .ept-email-panel .country-item .country-item-code{font-weight:700;opacity:.84}
.auth-v4 .ept-email-panel .country-no-results{padding:18px;text-align:center;color:#b7d3fa;font-size:12px}
.auth-v4 .ept-email-panel .auth-phone-line{display:flex;flex-direction:row-reverse;align-items:center;direction:ltr;margin-top:6px;min-height:44px;height:44px;background:linear-gradient(130deg,rgba(21,54,101,.86),rgba(14,36,76,.91));border-radius:10px;border:1px solid #6699dbb0;overflow:hidden;padding:0 7px}
.auth-v4 .ept-email-panel .auth-phone-line #dialCode{font-family:'Segoe UI',Arial,sans-serif;font-size:12px;color:#bee6ff;border-right:1px solid #75a9ec7a;padding:0 8px 0 3px;white-space:nowrap}
.auth-v4 .ept-email-panel .auth-phone-line input{border:0;box-shadow:none;background:transparent;margin:0;padding:7px 5px;height:40px;min-height:40px;direction:ltr;text-align:left;flex:1}
.auth-v4 .ept-email-panel .auth-phone-line input:focus{box-shadow:none}
.auth-v4 .terms-consent{margin-top:10px;border:1px solid transparent}
.auth-v4 .terms-consent>label{display:flex;gap:9px;align-items:center;margin:0;font-size:12px;font-weight:500;line-height:1.7;cursor:pointer}
.auth-v4 .terms-consent input[type=checkbox]{width:21px;min-width:21px;height:21px;margin:0;accent-color:#1689fb;cursor:pointer}
.auth-v4 .terms-consent .terms-link{background:none;border:none;color:#88d8ff;padding:0;text-decoration:underline;text-underline-offset:3px;font-size:inherit;font-weight:650}
.auth-v4 .terms-consent .terms-link:hover{color:#d5f6ff}
.auth-v4 .terms-consent .terms-help{color:#aec7e9;display:block;font-size:10px;margin:2px 30px 0}
.auth-v4 .ept-email-panel #emailSend{height:53px;min-height:53px;margin-top:12px;border-radius:26px;background:linear-gradient(112deg,#22c0f8,#0878ff 33%,#075add 65%,#18b8fa);box-shadow:0 0 22px #007dff91,0 6px 18px #003bba8c,inset 0 1px 4px #b8ffffea;border:1px solid #8deaff;letter-spacing:0;font-size:19px}
.auth-v4 .ept-email-panel #emailSend:disabled{filter:saturate(.4);opacity:.52;box-shadow:none;cursor:not-allowed}
.auth-v4 .ept-email-panel .auth-footer-note{font-size:10.5px;line-height:1.9;color:#c2d5ef;border-top:1px solid #81bbfc28;padding-top:9px;margin:11px 0 0}
.auth-v4 .ept-email-panel .auth-footer-note b{color:#7dd5ff;font-weight:750}
.auth-v4 .ept-email-panel #emailVerifyForm .verify-heading{font-size:22px}
.auth-v4 .ept-email-panel #emailVerifyForm label{margin-top:13px}
/* Modal is a real accessible scrollable document with explicit acceptance */
#legalModal{z-index:1000;align-items:center;justify-content:center;padding:18px;background:#02091ae0}
#legalModal:not(.hidden){display:flex}
.legal-dialog{width:min(700px,100%);max-height:min(840px,94dvh);display:flex;flex-direction:column;border:1px solid #65b4fb;border-radius:22px;background:linear-gradient(140deg,#102c55,#061832);color:#ecf8ff;box-shadow:0 35px 105px #000e;overflow:hidden;direction:rtl}
.legal-top{padding:18px 22px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #3263a7}
.legal-top h2{margin:0;font-size:20px}.legal-top button{width:36px;height:36px;border-radius:10px;background:#183f71;color:#ecf6ff;font-size:24px}
.legal-content{overflow-y:auto;padding:18px 25px;line-height:2;min-height:0;white-space:normal;font-size:13px;color:#deebfd;scrollbar-color:#316cb4 transparent}
.legal-content h3{margin:17px 0 5px;color:#8ce1ff;font-size:15px}.legal-content p{margin:6px 0 14px}.legal-content ul{padding-right:21px;margin:5px 0 15px}.legal-content li{margin:3px 0}
.legal-actions{padding:12px 20px 17px;display:flex;gap:10px;border-top:1px solid #3263a7;flex-wrap:wrap}.legal-actions button{font-size:13px;min-height:41px}.legal-actions .secondary{background:#1b3862;border:1px solid #407bb9;color:#edf8ff}
@media(max-height:850px) and (min-width:701px){.auth-v4 .auth-layout{justify-content:flex-start}.auth-v4 .auth-hero-logo-wrap{width:80px;height:80px}.auth-v4 .auth-title-en{font-size:37px}.auth-v4 .ept-email-panel{padding-top:15px;padding-bottom:12px}.auth-v4 .ept-email-panel label{margin-top:6px}.auth-v4 .ept-email-panel input:not([type=checkbox]),.auth-v4 .ept-email-panel select,.auth-v4 .ept-email-panel .country-trigger{height:39px;min-height:39px}.auth-v4 .ept-email-panel .auth-phone-line{height:39px;min-height:39px}.auth-v4 .ept-email-panel .auth-phone-line input{height:36px;min-height:36px}}
@media(max-width:700px){.auth-v4.auth-shell{padding:18px 11px 34px}.auth-v4 .auth-layout{gap:14px;justify-content:flex-start;min-height:calc(100dvh - 52px)}.auth-v4 .auth-hero{margin:2px auto 0}.auth-v4 .auth-hero-logo-wrap{width:76px;height:76px}.auth-v4 .auth-title-en{font-size:32px}.auth-v4 .auth-hero h1{font-size:13px}.auth-v4 .ept-email-panel{width:min(510px,100%);padding:17px 18px 17px;border-radius:22px}.auth-v4 .ept-email-panel label{font-size:12px}.auth-v4 .ept-email-panel .auth-two{gap:9px}.auth-v4 .ept-email-panel .auth-country-control .country-trigger #countrySelectedText{font-size:11px}.auth-v4 .ept-email-panel .country-menu{min-width:min(330px,calc(100vw - 50px))}.auth-v4 .ept-email-panel #emailSend{font-size:16px;min-height:48px;height:48px}}
@media(max-width:380px){.auth-v4 .ept-email-panel{padding:15px 12px}.auth-v4 .ept-email-panel .auth-country-row{grid-template-columns:1fr}.auth-v4 .ept-email-panel .country-trigger #countrySelectedText{font-size:13px}.auth-v4 .ept-email-panel .auth-two:not(.auth-country-row){grid-template-columns:1fr 1fr;gap:7px}.auth-v4 .ept-email-panel .auth-two label{font-size:11px}.auth-v4 .ept-email-panel input:not([type=checkbox]),.auth-v4 .ept-email-panel select{padding:8px;font-size:12px}.auth-v4 .ept-email-panel .auth-input-wrap input{padding-right:29px}.auth-v4 .ept-email-panel .field-icon{right:6px;font-size:16px}}

/* V6 password-first authentication; preserve the approved glassmorphism. */
.auth-v4 .ept-email-panel .password-pair{margin-top:5px}
.auth-v4 .ept-email-panel .password-pair input{font-family:inherit;font-size:12px}
.auth-v4 .ept-email-panel .password-hint{color:#b9d9fa;font-size:11px;margin:6px 0 0;line-height:1.6}
.auth-v4 .ept-email-panel .auth-intro{color:#c8e5ff;font-size:13px;line-height:1.85;margin:12px 0 18px}
.auth-v4 .ept-email-panel .auth-mini-title{color:#f2faff;font-size:20px;text-align:center;margin:16px 0 5px}
.auth-v4 .ept-email-panel .auth-small-link{display:block;margin:12px auto 2px;padding:10px 13px;background:transparent;border:0;color:#91dcff;font-size:13px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.auth-v4 .ept-email-panel .form-info{margin:15px 0 0;line-height:1.9;font-size:13px;color:#c9e5ff;text-align:center}
.auth-v4 .ept-email-panel .auth-login-phone{margin-top:6px;grid-template-columns: minmax(0,1fr) minmax(0,1.2fr)}
.auth-v4 .ept-email-panel #loginCountry,.auth-v4 .ept-email-panel #forgotCountry{font:12px 'Segoe UI',Arial,sans-serif;direction:ltr}
.auth-v4 .ept-email-panel #phoneLoginForm,.auth-v4 .ept-email-panel #forgotPasswordForm,.auth-v4 .ept-email-panel #resetPasswordForm{max-width:100%}
.auth-v4 .ept-email-panel #phoneLoginForm .primary,.auth-v4 .ept-email-panel #forgotPasswordForm .primary,.auth-v4 .ept-email-panel #resetPasswordForm .primary{margin-top:24px}
.auth-v4 .ept-email-panel input[type=password]{text-align:left;direction:ltr}
@media(max-width:420px){.auth-v4 .ept-email-panel .password-pair{grid-template-columns:1fr}.auth-v4 .ept-email-panel .auth-login-phone{grid-template-columns:1fr}.auth-v4 .ept-email-panel .auth-login-phone select{font-size:12px}}

.auth-v4 .ept-email-panel #gender option{background-color:#ffffff!important;color:#102040!important}
/* V7.1: keep name entry unobstructed on Windows Chrome and mobile. */
.auth-v4 .ept-email-panel #firstName,
.auth-v4 .ept-email-panel #lastName {
  direction: rtl;
  text-align: right;
  padding-inline: 12px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}
.auth-v4 .ept-email-panel #firstName::placeholder,
.auth-v4 .ept-email-panel #lastName::placeholder { opacity: .72; }


/* /name-fields.css?v=7.1 */
#firstName,#lastName{direction:rtl!important;text-align:right!important;padding-inline:12px!important;padding-left:12px!important;padding-right:12px!important}#firstName::placeholder,#lastName::placeholder{opacity:.7}#firstName + .field-icon,#lastName + .field-icon{display:none!important}

/* /device-security.css?v=7 */
#deviceApprovalForm{display:grid;gap:12px}#deviceApprovalForm.hidden{display:none}.device-row{padding:13px;border:1px solid rgba(98,177,245,.3);border-radius:12px;margin:9px 0;background:rgba(11,36,68,.82);overflow-wrap:anywhere}.device-row button{margin:8px 6px 0;padding:8px 12px}#devicesModal .dialog{max-height:85vh;overflow:auto;max-width:640px}#manageDevices{margin-block:12px}

/* /admin-invites.css?v=10 */
.admin-invite-nav{margin:9px 16px;padding:12px;border:1px solid #2186d8;border-radius:13px;background:#102d55;color:white;text-align:right;cursor:pointer}.admin-invite-dialog{max-width:720px!important;max-height:min(88vh,900px);overflow:auto}.admin-invite-dialog form{display:grid;gap:10px}.admin-invite-dialog input{display:block;width:100%;direction:ltr;padding:12px;margin-top:6px;border-radius:9px}.admin-invite-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:10px;border-bottom:1px solid #28486a}.admin-invite-row button{padding:6px 10px}.admin-invite-dialog #adminInviteStatus{min-height:1.2em}.admin-users-help{opacity:.78;margin:.25rem 0 .7rem}.admin-users-refresh{margin-bottom:8px}.admin-user-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;margin:7px 0;border:1px solid #ffffff2b;border-radius:14px;background:linear-gradient(120deg,#123867aa,#081a35dd);box-shadow:inset 0 1px #ffffff16}.admin-user-main{display:grid;gap:4px;min-width:0}.admin-user-main strong{font-size:1rem}.admin-user-main small{opacity:.83;overflow-wrap:anywhere}.admin-user-time{font-size:.85em}.admin-user-card button{flex:none;padding:8px 12px}@media(max-width:520px){.admin-user-card{align-items:flex-start;flex-direction:column}.admin-user-card button{align-self:stretch}}

.story-access-toggle{display:flex;align-items:center;gap:7px;font-size:.84rem;opacity:.95}.story-access-toggle input{accent-color:#08aee5}


/* /release-fixes.css?v=2 */
/* EHSAN EPT release corrections: readability, wallpaper selection, compact menus and auth layout. */

/* Keep the whole messenger readable when the user selects light mode. */
:root[data-theme="light"] .sidebar,
:root[data-theme="light"] .conversation{background:#f4f7fc!important;color:#18324f!important;border-color:#c8d5e5!important}
:root[data-theme="light"] .brand{background:#fff!important;border-bottom:1px solid #d4dfec!important}
:root[data-theme="light"] .brand strong{background:none!important;color:#075a9e!important;-webkit-text-fill-color:#075a9e!important;text-shadow:none!important}
:root[data-theme="light"] .brand small{color:#526983!important}
:root[data-theme="light"] .self,
:root[data-theme="light"] .tools,
:root[data-theme="light"] .search input,
:root[data-theme="light"] .chatheader,
:root[data-theme="light"] .composer{background:#fff!important;color:#18324f!important;border-color:#d3deeb!important}
:root[data-theme="light"] .tools select,
:root[data-theme="light"] .small-action,
:root[data-theme="light"] .search-action,
:root[data-theme="light"] .sidebar .icon-button,
:root[data-theme="light"] .chatheader .icon-button,
:root[data-theme="light"] .round.subtle{background:#e8eff8!important;color:#264766!important;border-color:#c5d4e5!important}
:root[data-theme="light"] .listhead b,
:root[data-theme="light"] .chatrow,
:root[data-theme="light"] .chatrow strong,
:root[data-theme="light"] .chatperson strong{color:#18324f!important}
:root[data-theme="light"] .chatrow small,
:root[data-theme="light"] .chatperson small,
:root[data-theme="light"] .self small,
:root[data-theme="light"] .nav-tab{color:#526983!important}
:root[data-theme="light"] .chatrow:hover,
:root[data-theme="light"] .chatrow.active{background:#e2edfb!important;border-color:#b8cce4!important;color:#18324f!important}
:root[data-theme="light"] .conversation-filters .filter-chip{background:#fff!important;color:#526983!important;border-color:#c6d5e6!important}
:root[data-theme="light"] .conversation-filters .filter-chip.selected{background:#2478d0!important;color:#fff!important;border-color:#2478d0!important}
:root[data-theme="light"] .sidebarfoot{background:#fff!important;border-color:#d3deeb!important}
:root[data-theme="light"] .search input::placeholder,
:root[data-theme="light"] .composer textarea::placeholder{color:#657b95!important;opacity:1}
:root[data-theme="light"] .ai-feature{background:linear-gradient(135deg,#e4f0ff,#f7faff)!important;border-color:#bfd1e5!important;box-shadow:0 5px 18px #173c6613!important}
:root[data-theme="light"] .ai-feature .ai-copy strong{color:#17385e!important}
:root[data-theme="light"] .ai-feature .ai-copy small,
:root[data-theme="light"] .ai-feature .coming-tag{color:#526d8d!important}
:root[data-theme="light"] .ai-feature .coming-tag{background:#fff!important;border-color:#c3d3e5!important}
:root[data-theme="light"] .msg .bubble{background:#fff!important;color:#203b5e!important;border-color:#cbd9e8!important;box-shadow:0 2px 8px #173c6610!important}
:root[data-theme="light"] .msg.mine .bubble{background:#dcecff!important;color:#17385e!important;border-color:#b7d2f0!important}
:root[data-theme="light"] .msg .message-link,
:root[data-theme="light"] .msg .download{color:#075f9d!important}
:root[data-theme="light"] .stamp{color:#526983!important}
:root[data-theme="light"] .reaction-chip{background:#fff!important;color:#17385e!important;border-color:#cbd9e8!important}

/* Wallpaper thumbnails and chat backgrounds use the bundled artwork, including under v4's old !important rule. */
.wallpaper-thumb{display:block;width:100%;height:118px;min-height:78px;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;border:1px solid #80a9d1;filter:saturate(1.08);}
.wallpaper-option{color:#edf6ff;background:#10294b;border-color:#3c5d83}
.wallpaper-option.selected{background:#164c7a;border-color:#4bd4ff;box-shadow:0 0 0 2px #4bd4ff35}
.wallpaper-dialog .wp-foot{color:#b8cce4}
.chatview[data-wallpaper="mountains"]{background-image:linear-gradient(#06122666,#06152b55),url('/assets/wallpapers/mountains.svg')!important}
.chatview[data-wallpaper="aurora"]{background-image:linear-gradient(#06122666,#06152b55),url('/assets/wallpapers/aurora.svg')!important}
.chatview[data-wallpaper="ocean"]{background-image:linear-gradient(#06122666,#06152b55),url('/assets/wallpapers/ocean.svg')!important}
.chatview[data-wallpaper="minimal"]{background-image:linear-gradient(#06122666,#06152b55),url('/assets/wallpapers/minimal.svg')!important}
.chatview[data-wallpaper="desert"]{background-image:linear-gradient(#06122666,#06152b55),url('/assets/wallpapers/desert.svg')!important}
.chatview[data-wallpaper="city"]{background-image:linear-gradient(#06122666,#06152b55),url('/assets/wallpapers/city.svg')!important}
:root[data-theme="light"] .chatview[data-wallpaper="mountains"]{background-image:linear-gradient(#edf3faad,#edf3faad),url('/assets/wallpapers/mountains.svg')!important}
:root[data-theme="light"] .chatview[data-wallpaper="aurora"]{background-image:linear-gradient(#edf3faad,#edf3faad),url('/assets/wallpapers/aurora.svg')!important}
:root[data-theme="light"] .chatview[data-wallpaper="ocean"]{background-image:linear-gradient(#edf3faad,#edf3faad),url('/assets/wallpapers/ocean.svg')!important}
:root[data-theme="light"] .chatview[data-wallpaper="minimal"]{background-image:linear-gradient(#edf3faad,#edf3faad),url('/assets/wallpapers/minimal.svg')!important}
:root[data-theme="light"] .chatview[data-wallpaper="desert"]{background-image:linear-gradient(#edf3faad,#edf3faad),url('/assets/wallpapers/desert.svg')!important}
:root[data-theme="light"] .chatview[data-wallpaper="city"]{background-image:linear-gradient(#edf3faad,#edf3faad),url('/assets/wallpapers/city.svg')!important}
:root[data-theme="light"] .wallpaper-option{background:#f3f7fc;color:#17385e;border-color:#c7d7e8}
:root[data-theme="light"] .wallpaper-option.selected{background:#e5f2ff;border-color:#2587de}
:root[data-theme="light"] .wallpaper-dialog .wp-foot{color:#526d8d}

/* Message actions float over the conversation and never take a row in the message flow. */
.msg{position:relative}
.msg .message-menu{position:absolute!important;z-index:80!important;top:28px;left:31px;right:auto;min-width:174px;width:max-content;max-width:min(230px,calc(100vw - 34px));max-height:min(55dvh,360px);overflow:auto;overscroll-behavior:contain;padding:6px;border-radius:13px}
.msg.mine .message-menu{left:auto;right:31px}
.msg .message-menu>button{padding:7px 9px;font-size:11px;line-height:1.45}
.msg .message-menu .reaction-row{padding-top:4px}
.msg .message-menu .reaction-row button{font-size:17px;padding:2px}

/* A fuller picker stays inside the chat window and scrolls rather than covering the whole view. */
.emoji-picker{grid-template-columns:repeat(9,minmax(28px,1fr));width:min(365px,calc(100vw - 28px));max-height:min(48dvh,390px);overflow-y:auto;overscroll-behavior:contain}
.emoji-picker button{min-width:28px;min-height:34px;font-size:21px}

/* Login uses the same searchable, flag-based country selector as sign-up. */
.auth-login-country-control{position:relative;min-width:0}
.auth-login-country-control .country-native{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;margin:0!important}
.auth-login-country-control .country-trigger{display:flex;align-items:center;justify-content:flex-start;gap:9px;direction:ltr;text-align:left;cursor:pointer;white-space:nowrap}
.auth-login-country-control #loginCountrySelected{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:13px 'Segoe UI',Arial,sans-serif}
.auth-login-country-control .country-menu{position:absolute;z-index:100;top:calc(100% + 6px);left:0;right:0;min-width:min(330px,calc(100vw - 42px));max-height:270px;overflow:hidden;background:#071c3ef9;border:1px solid #75b9ff;box-shadow:0 25px 55px #010b22e0;border-radius:13px;padding:9px;color:#edf9ff;direction:ltr}
.auth-login-country-control .country-menu input{width:100%;height:39px;min-height:39px;margin:0 0 6px;padding:8px 10px}
.auth-login-country-control #loginCountryOptions{max-height:207px;overflow-y:auto;overscroll-behavior:contain}
.auth-register-prompt{text-align:center;color:#c4d7ef;font-size:12px;margin:8px 0 0}
.auth-register-prompt button{background:transparent;border:0;padding:4px;color:#8cddff;text-decoration:underline;text-underline-offset:3px;font-weight:700}

/* Fit the sign-up screen on common laptop heights without cropping the brand mark. */
@media(min-width:701px) and (max-height:850px){
 .auth-v4.auth-shell{padding:7px 14px;overflow-y:auto}
 .auth-v4 .auth-layout{min-height:0;gap:4px;justify-content:flex-start;padding:0}
 .auth-v4 .auth-hero{gap:0}
 .auth-v4 .auth-hero-logo-wrap{width:54px;height:54px;margin:0;filter:drop-shadow(0 0 12px #00a3ff8c)}
 .auth-v4 .auth-title-en{font-size:clamp(24px,2.8vw,32px);line-height:1.02}
 .auth-v4 .auth-hero h1{font-size:11px;line-height:1.25;margin:0}
 .auth-v4 .ept-email-panel{width:min(626px,calc(100vw - 30px));padding:9px 24px 8px;border-radius:18px}
 .auth-v4 .ept-email-panel .tabs{min-height:34px;margin-bottom:4px;padding:2px}
 .auth-v4 .ept-email-panel .tabs .tab{min-height:28px;padding:3px 10px;font-size:12px}
 .auth-v4 .ept-email-panel label{font-size:10px;line-height:1.25;margin:3px 0 0}
 .auth-v4 .ept-email-panel input:not([type=checkbox]),.auth-v4 .ept-email-panel select,.auth-v4 .ept-email-panel .country-trigger{height:32px;min-height:32px;margin-top:2px;padding:4px 8px;font-size:10px}
 .auth-v4 .ept-email-panel .auth-phone-line{height:32px;min-height:32px;margin-top:2px}
 .auth-v4 .ept-email-panel .auth-phone-line input{height:29px;min-height:29px}
 .auth-v4 .ept-email-panel .auth-two{gap:8px}
 .auth-v4 .ept-email-panel .password-hint{font-size:8px;margin:2px 0 0}
 .auth-v4 .terms-consent{margin-top:3px}
 .auth-v4 .terms-consent>label{font-size:9px}
 .auth-v4 .terms-consent input[type=checkbox]{width:15px;min-width:15px;height:15px}
 .auth-v4 .ept-email-panel #emailSend{height:35px;min-height:35px;margin-top:4px;font-size:13px}
 .auth-v4 .ept-email-panel .auth-footer-note{font-size:8px;line-height:1.35;padding-top:3px;margin-top:3px}
}
@media(max-width:700px){
 .auth-login-country-control #loginCountrySelected{font-size:11px}
 .auth-login-country-control .country-menu{min-width:min(330px,calc(100vw - 50px))}
 .emoji-picker{right:8px;bottom:67px}
 .wallpaper-thumb{height:88px}
}

.wallpaper-thumb[data-preview="mountains"]{background-image:url("/assets/wallpapers/mountains.svg")!important}

.wallpaper-thumb[data-preview="aurora"]{background-image:url("/assets/wallpapers/aurora.svg")!important}

.wallpaper-thumb[data-preview="ocean"]{background-image:url("/assets/wallpapers/ocean.svg")!important}

.wallpaper-thumb[data-preview="minimal"]{background-image:url("/assets/wallpapers/minimal.svg")!important}

.wallpaper-thumb[data-preview="desert"]{background-image:url("/assets/wallpapers/desert.svg")!important}

.wallpaper-thumb[data-preview="city"]{background-image:url("/assets/wallpapers/city.svg")!important}

/* Final contrast pass for sidebar headings, captions and secondary controls. */
:root[data-theme="light"] .sidebar .muted,
:root[data-theme="light"] .sidebar .chatlist-heading,
:root[data-theme="light"] .sidebar .chatrow time,
:root[data-theme="light"] .sidebar .beta-foot,
:root[data-theme="light"] .sidebar .empty-list,
:root[data-theme="light"] .sidebar .selfinfo small,
:root[data-theme="light"] .sidebar .selfinfo span,
:root[data-theme="light"] .sidebar .tools label,
:root[data-theme="light"] .sidebar .admin-invite-nav,
:root[data-theme="light"] .conversation .muted,
:root[data-theme="light"] .conversation .edited{color:#526983!important}
:root[data-theme="light"] .sidebar .brand-settings,
:root[data-theme="light"] .sidebar .small-action,
:root[data-theme="light"] .sidebar .search-action,
:root[data-theme="light"] .sidebar .filter-chip,
:root[data-theme="light"] .sidebar .admin-invite-nav{background:#e8eff8!important;color:#264766!important;border-color:#c5d4e5!important}
:root[data-theme="light"] .sidebar .chatrow.active .chatrow-info strong,
:root[data-theme="light"] .sidebar .chatrow.active .chatrow-info small{color:#17385e!important}
:root[data-theme="light"] .sidebar .nav-tab.active{color:#075a9e!important}

/* EPT release: keep the whole app reachable below the iPhone status bar/notch. */
@media(max-width:800px){
 .brand{padding-top:max(15px,env(safe-area-inset-top))!important;min-height:calc(76px + env(safe-area-inset-top))!important}
 .chatheader{padding-top:calc(8px + env(safe-area-inset-top))!important;min-height:calc(68px + env(safe-area-inset-top))!important;position:relative;z-index:3;flex-wrap:nowrap}
 .chatheader .icon-button{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
 .settings-page{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(160deg,#0a1d3a,#071329);color:#edf7ff;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 .settings-page.hidden{display:none!important}
 .settings-top{flex:none;display:flex;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid #ffffff20;background:#0b2142;min-height:68px}
 .settings-back{width:44px;height:44px;border:1px solid #4d87c4;border-radius:14px;background:#12325a;color:#fff;font-size:28px;cursor:pointer}
 .settings-top small{font-size:10px;letter-spacing:2px;color:#7fdcff}.settings-top h1{margin:0;font-size:21px}.settings-top-spacer{flex:1}
 .settings-content{overflow:auto;overscroll-behavior:contain;padding:14px 16px 30px;max-width:720px;width:100%;margin:0 auto}
 .settings-section{padding:16px;margin:0 0 13px;border:1px solid #ffffff20;border-radius:18px;background:#10294c;box-shadow:0 8px 22px #0002}
 .settings-section h2{font-size:15px;margin:0 0 12px;color:#9ddcff}.settings-section p{font-size:12px;line-height:1.8;color:#c3d5e8}
 .settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #ffffff15;font-size:13px}
 .settings-row select{min-width:130px;max-width:52%;padding:9px 10px;border:1px solid #5488bb;border-radius:10px;background:#0b2040;color:#f2f8ff}
 .settings-action{display:inline-flex;align-items:center;min-height:42px;margin:4px;padding:9px 13px;border:1px solid #528ac0;border-radius:12px;background:#15355b;color:#eff8ff;font-size:12px;cursor:pointer}
 .settings-action.primary{background:linear-gradient(110deg,#1470fa,#16a9e8);border-color:#3dc1ff}
 .settings-switch{display:flex;align-items:center;gap:10px;margin:12px 3px;font-size:12px}.settings-switch input{width:20px;height:20px;accent-color:#159ef1}
 .settings-help{min-height:18px;margin-bottom:0!important}
 .settings-about{display:grid;gap:4px}.settings-about strong{font:900 25px 'Segoe UI',sans-serif;letter-spacing:1px;color:#55caff}.settings-about span{font-size:12px}.settings-about small{color:#9ab4d1}
 .picker-tabs{display:flex;gap:6px;position:sticky;top:0;background:inherit;padding:2px 0 6px;z-index:1}.picker-tab{flex:1;border-radius:9px;padding:7px;border:1px solid #ffffff25;background:#132d50;color:inherit}.picker-tab.active{background:#127de5;color:white}
 .picker-grid{display:grid;grid-template-columns:repeat(7,minmax(30px,1fr));gap:3px}.picker-grid.hidden{display:none!important}.picker-grid button{min-width:0;min-height:37px;border:0;border-radius:8px;background:transparent;font-size:22px;cursor:pointer}.picker-grid button:hover{background:#2585e54d}.picker-grid .sticker-choice{min-height:66px;font-size:38px;background:#ffffff0a}
 .message-sticker{display:inline-block;font-size:68px;line-height:1.15;padding:3px 8px;filter:drop-shadow(0 3px 8px #001b4e66)}
}
@media(min-width:801px){.settings-page{position:fixed;inset:0;z-index:10000;overflow:auto;background:#071329f5;color:#edf7ff;padding:24px}.settings-page.hidden{display:none}.settings-top,.settings-content{max-width:720px;margin:0 auto}.settings-top{display:flex;align-items:center;gap:15px;padding:12px 0 18px}.settings-top h1{margin:0}.settings-back{width:42px;height:42px;border-radius:12px;background:#15355b;color:white;border:1px solid #528ac0;font-size:25px}.settings-content{padding-bottom:35px}.settings-section{padding:18px;margin-bottom:14px;border:1px solid #ffffff20;border-radius:18px;background:#10294c}.settings-section h2{color:#9ddcff}.settings-row{display:flex;justify-content:space-between;align-items:center;padding:8px}.settings-row select{background:#0b2040;color:#fff;border:1px solid #5488bb;border-radius:10px;padding:8px}.settings-action{margin:5px;padding:10px 13px;border-radius:10px;background:#15355b;color:#fff;border:1px solid #528ac0}.settings-action.primary{background:#1470fa}.settings-switch{display:flex;gap:8px;align-items:center;margin:12px}.settings-about{display:grid;gap:6px}}
@media(prefers-reduced-motion:no-preference){.settings-page:not(.hidden){animation:settingsIn .18s ease-out}@keyframes settingsIn{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:none}}}

:root[data-theme="light"] .settings-page{background:#f2f6fb;color:#18324f}
:root[data-theme="light"] .settings-top,:root[data-theme="light"] .settings-section{background:#fff;color:#18324f;border-color:#cfdae8}
:root[data-theme="light"] .settings-section h2,:root[data-theme="light"] .settings-top small{color:#075a9e}
:root[data-theme="light"] .settings-section p,:root[data-theme="light"] .settings-about small{color:#526983}
:root[data-theme="light"] .settings-row select{background:#f6f9fd;color:#18324f;border-color:#bfcede}
:root[data-theme="light"] .settings-action:not(.primary){background:#edf3fa;color:#244665;border-color:#c7d5e5}
:root[data-theme="light"] .settings-back{background:#edf3fa;color:#244665;border-color:#c7d5e5}

/* EPT voice/video calls: focused call stage and large, clearly labeled controls. */
.call-overlay{z-index:12000;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 35%,#15447cbd,#020817f2 72%);backdrop-filter:blur(13px);padding:18px}
.call-dialog{position:relative;overflow:hidden;width:min(520px,100%);max-height:min(90dvh,820px);padding:20px 20px 22px;border:1px solid #569be0a8;border-radius:28px;background:linear-gradient(155deg,#0d2a50,#07152c 78%);box-shadow:0 30px 90px #0009,0 0 45px #168bff25;color:#f2f8ff}
.call-dialog:before{content:"";position:absolute;inset:-40% -20% auto;height:270px;background:radial-gradient(ellipse,#168cff22,transparent 70%);pointer-events:none}
.call-head{position:relative;z-index:1;display:flex;align-items:center;gap:12px;text-align:start;padding:0 0 15px;border-bottom:1px solid #ffffff19}
.call-avatar{width:49px;height:49px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:17px;background:linear-gradient(135deg,#0da4ef,#245bd6);border:1px solid #a6e6ff8a;font-size:20px;font-weight:800;box-shadow:0 5px 22px #168bff40}
.call-avatar img{width:100%;height:100%;object-fit:cover}
.call-heading{display:grid;gap:2px;min-width:0}.call-heading small{font:700 9px 'Segoe UI',Arial,sans-serif;letter-spacing:2px;color:#6fceff;direction:ltr;text-align:start}.call-heading strong{font-size:16px}.call-heading span{font-size:11px;color:#a9c5e4}
.call-encrypted{margin-inline-start:auto;white-space:nowrap;font-size:10px;color:#9ae6c7;background:#0e4c426b;border:1px solid #63d5a44d;border-radius:20px;padding:6px 9px}
.call-stage{position:relative;height:330px;margin:16px 0 11px;overflow:hidden;border-radius:23px;background:radial-gradient(circle at 50% 42%,#1c4f86 0,#10294b 36%,#091a33 72%);border:1px solid #ffffff16}
.audio-stage{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;overflow:hidden}
.audio-orbit{position:absolute;width:210px;height:210px;border:1px solid #65caff28;border-radius:50%;box-shadow:0 0 0 22px #2b87dc0c,0 0 0 48px #2b87dc0a,0 0 70px #168cff20;animation:eptCallPulse 3s ease-in-out infinite}
.audio-peer-avatar{position:relative;z-index:1;width:108px;height:108px;display:grid;place-items:center;border-radius:50%;border:2px solid #73d5ff;background:linear-gradient(145deg,#21a9e8,#244ebc);box-shadow:0 0 32px #33aaff70;font-size:48px;font-weight:800;overflow:hidden}
.audio-peer-avatar img{width:100%;height:100%;object-fit:cover}
.audio-peer-name{z-index:1;font-weight:700;font-size:14px;color:#eaf7ff}
.audio-wave{z-index:1;height:28px;display:flex;align-items:center;gap:4px}.audio-wave i{width:4px;height:7px;border-radius:4px;background:#66d7ff;animation:eptWave .85s ease-in-out infinite alternate}.audio-wave i:nth-child(2n){animation-delay:.15s}.audio-wave i:nth-child(3n){animation-delay:.3s}.audio-wave i:nth-child(4n){animation-delay:.45s}
@keyframes eptCallPulse{50%{transform:scale(1.06);opacity:.65}}@keyframes eptWave{to{height:22px;opacity:.55}}
.call-dialog #remoteVideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:22px;background:#07152b}
.call-dialog #localVideo{position:absolute;z-index:2;width:95px;height:132px;right:12px;top:12px;object-fit:cover;border:2px solid #daf3ff;border-radius:17px;background:#0a1d37;box-shadow:0 8px 20px #0007}
.call-dialog[data-mode="audio"] #remoteVideo{width:1px;height:1px;left:-10px;top:auto;opacity:.01;pointer-events:none}
.call-dialog[data-mode="audio"] #localVideo{display:none}
.call-dialog[data-mode="video"] .audio-stage{display:none}
.call-status-line{display:flex;justify-content:center;align-items:center;gap:8px;min-height:26px}.call-status-line p{margin:0;color:#b8cce4;font-size:12px}.call-status-dot{width:8px;height:8px;border-radius:50%;background:#41d69a;box-shadow:0 0 11px #41d69a;animation:eptStatus 1.5s infinite}@keyframes eptStatus{50%{opacity:.35}}
.call-actions{display:flex;align-items:flex-start;justify-content:center;gap:clamp(8px,3vw,18px);margin-top:14px}
.call-control{width:65px;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:#d3e7fa;cursor:pointer}
.call-control-icon{width:52px;height:52px;display:grid;place-items:center;border:1px solid #668cb345;border-radius:50%;background:#1a385c;color:#f4fbff;font:22px 'Segoe UI',sans-serif;transition:.16s}
.call-control small{font-size:10px;white-space:nowrap;color:#b8cce4}.call-control:hover .call-control-icon{transform:translateY(-2px);background:#265184}
.call-control.answer .call-control-icon{background:linear-gradient(145deg,#21c783,#099c68);border-color:#64edb8;color:white}
.call-control.decline .call-control-icon{background:linear-gradient(145deg,#fa6171,#d62d48);border-color:#ff9cab;color:white}.call-control.decline#hangup .call-control-icon{transform:rotate(135deg)}
.call-control.is-muted .call-control-icon{background:#62334a;border-color:#e98ba3}.call-control.hidden{display:none!important}
.call-control.is-active .call-control-icon{background:linear-gradient(145deg,#16b98a,#08795f);border-color:#8aefd0;color:#fff}
@media(max-width:600px){.call-overlay{padding:12px}.call-dialog{width:100%;padding:16px 14px 18px;border-radius:24px}.call-stage{height:min(42dvh,330px);min-height:245px;margin:13px 0 9px}.call-actions{gap:8px}.call-control{width:58px;min-height:65px}.call-control-icon{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.audio-orbit,.audio-wave i,.call-status-dot{animation:none}}


/* /beta2.css?v=60 */
:root{--ept-blue:#168cff;--ept-cyan:#19d9ff;--ept-glass:rgba(12,45,91,.70)}
html,body{overscroll-behavior:none;touch-action:pan-x pan-y}button,a,input,textarea,select{touch-action:manipulation}
body{font-size:16px}.chatrow-info strong,.chatperson strong,.settings-section h2{font-size:1.06rem;font-weight:750}.chatrow-info small,.chatperson small,.stamp,.settings-help{font-size:.88rem}
.auth-language{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:0 0 10px;color:#e7f5ff}.auth-language select{border:1px solid #75baff;background:rgba(3,24,60,.75);color:#fff;border-radius:12px;padding:8px 12px}
.auth-beta-shell .login-panel,.settings-content,.dialog,.call-dialog,.ai-register-card{background:linear-gradient(145deg,rgba(9,54,109,.84),rgba(4,19,52,.79));backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);border:1px solid rgba(105,197,255,.72);box-shadow:0 0 28px rgba(0,132,255,.2),inset 0 1px rgba(255,255,255,.16)}
.bubble{background:linear-gradient(145deg,rgba(18,77,139,.58),rgba(9,32,70,.62));backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);border-color:rgba(119,190,255,.33)}.msg.mine .bubble{background:linear-gradient(125deg,rgba(0,116,255,.92),rgba(12,195,255,.84));border-color:rgba(155,235,255,.8);box-shadow:0 5px 22px rgba(0,137,255,.28)}
.icon-button,.round,.filter-chip,.nav-tab{color:#e9f8ff}.chatheader{padding-top:max(12px,env(safe-area-inset-top));min-height:calc(64px + env(safe-area-inset-top));position:relative;z-index:4}.chatheader>*{flex-shrink:0}.conversation{padding-bottom:env(safe-area-inset-bottom)}.sidebar,.settings-page,.overlay{padding-top:env(safe-area-inset-top)}
#emojiPicker{max-height:min(56dvh,420px);overflow:hidden;position:fixed;z-index:1000;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:auto;max-width:560px;margin:auto;box-shadow:0 20px 55px #001631cc;border:1px solid #5abaff;background:rgba(8,34,74,.96);backdrop-filter:blur(24px)}#emojiGrid,#stickerGrid{max-height:calc(min(56dvh,420px) - 70px);overflow:auto;overscroll-behavior:contain}.sticker-choice{font-size:2rem;min-width:48px;min-height:48px}
.msg{position:relative}.msg-more{z-index:2}.message-menu{position:absolute;z-index:30;inset-inline-start:0;top:0;transform:translateY(-90%);min-width:190px;box-shadow:0 12px 34px #0008}
.beta2-page{position:fixed;inset:0;z-index:2000;overflow:auto;padding:calc(18px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 15%,#164e9e 0,#081f49 40%,#04132e 100%);color:#f3f9ff}.beta2-page.hidden{display:none}.beta2-page header{display:flex;align-items:center;gap:14px;max-width:760px;margin:0 auto}.beta2-page header h1{margin:2px 0;font-size:1.4rem}.ai-register-card{max-width:620px;margin:7vh auto;padding:clamp(22px,5vw,42px);border-radius:28px;display:grid;gap:16px}.ai-register-card h2,.ai-register-card p{text-align:center;margin:0}.ai-register-card label{display:grid;gap:7px}.ai-register-card input{width:100%;border-radius:14px;padding:14px;background:#0b2853;color:#fff;border:1px solid #6bbcff}.ai-register-card button:disabled{opacity:.62}.ai-register-orb{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:auto;color:#fff;font-size:36px;background:radial-gradient(circle at 35% 30%,#26edff,#126bff 58%,#092e76);box-shadow:0 0 32px #08aaff}.ai-register-card small{text-align:center;color:#c3dcf8}
.custom-wallpaper-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.custom-wallpaper-actions label,.custom-wallpaper-actions button{cursor:pointer;padding:10px 14px;border-radius:12px}.custom-wallpaper-actions span{width:100%;font-size:.9rem}
html[dir=ltr] .chatheader,html[dir=ltr] .settings-page,html[dir=ltr] .auth-shell{direction:ltr}
@media(max-width:700px){.chatheader{gap:5px}.chatheader .icon-button{width:42px;height:42px}.chatperson{min-width:0}.chatperson strong{font-size:1rem}.chatrow-info strong{font-size:1rem}.settings-page{padding-left:14px;padding-right:14px}}

.call-timeline{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;min-width:170px;padding:10px 12px;border-radius:14px;background:rgba(4,38,82,.58);border:1px solid #71bfff88}.call-timeline>span{grid-row:span 2;font-size:1.35rem;color:#39d8ff}.call-timeline small{color:#b7d7f6}.call-timeline.missed>span,.call-timeline.missed small{color:#ff8a9a}.expired-media{display:grid;gap:8px;color:#c4d9ee}.expired-media button{background:#1266c7;color:white;border:1px solid #81caff;border-radius:10px;padding:8px}

.recovery-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #80bfff44}.recovery-row button,.recovery-row a{padding:8px 10px;border-radius:10px;background:#136dcc;color:#fff}
@media(max-width:600px){.recovery-row{grid-template-columns:1fr}.recovery-row button,.recovery-row a{justify-self:start}}

/* Beta 2 visual pass: brighter electric-blue glass treatment from the approved references. */
:root[data-theme="dark"],:root[data-theme="auto"]{
 --page:#020b20;--panel:rgba(8,29,66,.72);--soft:rgba(16,51,100,.58);--input:rgba(7,26,58,.72);
 --border:rgba(91,177,255,.34);--text:#f5fbff;--muted:#b7d3f4;--accent:#23a8ff;--accent2:#27e5ff;
 --bubble:rgba(18,54,101,.58);--mine:rgba(0,111,255,.86);--chatbg:#04142e;
}
:root[data-theme="dark"] body,:root[data-theme="auto"] body{
 background:radial-gradient(ellipse at 50% -15%,rgba(0,132,255,.35),transparent 48%),radial-gradient(ellipse at 90% 68%,rgba(0,224,255,.12),transparent 35%),linear-gradient(145deg,#061b43 0%,#04122e 48%,#02091a 100%);
}
:root[data-theme="dark"] .sidebar,:root[data-theme="auto"] .sidebar,
:root[data-theme="dark"] .conversation,:root[data-theme="auto"] .conversation{
 background:linear-gradient(145deg,rgba(8,39,85,.76),rgba(3,17,44,.82));
 border-color:rgba(89,180,255,.42);box-shadow:0 0 0 1px rgba(49,151,255,.12),0 20px 65px rgba(0,8,28,.55),inset 0 1px 0 rgba(255,255,255,.12);
 backdrop-filter:blur(26px) saturate(175%);-webkit-backdrop-filter:blur(26px) saturate(175%);
}
:root[data-theme="dark"] .brand,:root[data-theme="auto"] .brand{background:radial-gradient(ellipse at 78% 0,rgba(31,155,255,.27),transparent 66%)}
:root[data-theme="dark"] .brand strong,:root[data-theme="auto"] .brand strong{filter:drop-shadow(0 0 12px rgba(0,195,255,.34))}
:root[data-theme="dark"] .self,:root[data-theme="auto"] .self,
:root[data-theme="dark"] .search input,:root[data-theme="auto"] .search input,
:root[data-theme="dark"] .chatrow,:root[data-theme="auto"] .chatrow,
:root[data-theme="dark"] .filter-chip,:root[data-theme="auto"] .filter-chip,
:root[data-theme="dark"] .sidebarfoot,:root[data-theme="auto"] .sidebarfoot{
 background:rgba(9,35,77,.48);border-color:rgba(104,190,255,.25);backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);
}
:root[data-theme="dark"] .chatrow:hover,:root[data-theme="dark"] .chatrow.active,
:root[data-theme="auto"] .chatrow:hover,:root[data-theme="auto"] .chatrow.active,
:root[data-theme="dark"] .filter-chip.selected,:root[data-theme="auto"] .filter-chip.selected{
 background:linear-gradient(115deg,rgba(0,126,255,.66),rgba(0,218,255,.30));border-color:rgba(118,220,255,.82);
 box-shadow:0 0 22px rgba(0,146,255,.28),inset 0 1px rgba(255,255,255,.2);
}
:root[data-theme="dark"] .ai-feature,:root[data-theme="auto"] .ai-feature{
 background:radial-gradient(ellipse at 15% 100%,rgba(0,211,255,.22),transparent 46%),radial-gradient(ellipse at 100% 0,rgba(0,112,255,.43),transparent 58%),linear-gradient(135deg,rgba(11,61,128,.82),rgba(7,28,72,.72));
 border-color:rgba(111,218,255,.68);box-shadow:0 0 30px rgba(0,141,255,.27),inset 0 1px rgba(255,255,255,.22);backdrop-filter:blur(22px) saturate(175%);-webkit-backdrop-filter:blur(22px) saturate(175%);
}
:root[data-theme="dark"] .chatheader,:root[data-theme="auto"] .chatheader{
 background:linear-gradient(100deg,rgba(7,44,97,.82),rgba(8,66,125,.68));border-bottom-color:rgba(106,198,255,.36);
 backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);
}
:root[data-theme="dark"] .chatheader .icon-button,:root[data-theme="auto"] .chatheader .icon-button,
:root[data-theme="dark"] .composer .icon-button,:root[data-theme="auto"] .composer .icon-button{
 background:linear-gradient(145deg,rgba(23,111,196,.46),rgba(7,45,97,.56));border-color:rgba(116,207,255,.58);color:#e9fbff;
 box-shadow:inset 0 1px rgba(255,255,255,.19),0 0 15px rgba(0,137,255,.18);
}
:root[data-theme="dark"] .chatview,:root[data-theme="auto"] .chatview{
 background-color:#04142e;background-image:radial-gradient(ellipse at 84% 16%,rgba(0,147,255,.20),transparent 33%),radial-gradient(ellipse at 18% 70%,rgba(17,101,213,.15),transparent 36%),linear-gradient(160deg,#09234a,#04132c 70%,#020d22)!important;
}
:root[data-theme="dark"] .msg .bubble,:root[data-theme="auto"] .msg .bubble{
 background:linear-gradient(145deg,rgba(25,75,132,.64),rgba(7,33,75,.70));border:1px solid rgba(122,195,255,.52);border-radius:20px 20px 20px 6px;
 backdrop-filter:blur(24px) saturate(175%);-webkit-backdrop-filter:blur(24px) saturate(175%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.17),0 8px 26px rgba(0,8,28,.25),0 0 18px rgba(0,126,255,.10);color:#f6fbff;
}
:root[data-theme="dark"] .msg.mine .bubble,:root[data-theme="auto"] .msg.mine .bubble{
 background:linear-gradient(125deg,rgba(0,108,255,.94),rgba(0,198,255,.80));border-color:rgba(164,240,255,.88);border-radius:20px 20px 6px 20px;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 7px 27px rgba(0,126,255,.30),0 0 19px rgba(0,194,255,.17);
}
:root[data-theme="dark"] .composer,:root[data-theme="auto"] .composer{
 background:rgba(4,20,48,.78);border-top:1px solid rgba(105,194,255,.42);backdrop-filter:blur(26px) saturate(180%);-webkit-backdrop-filter:blur(26px) saturate(180%);
}
:root[data-theme="dark"] .composer textarea,:root[data-theme="auto"] .composer textarea{
 background:linear-gradient(145deg,rgba(13,47,91,.70),rgba(7,29,63,.76));border-color:rgba(119,196,255,.56);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 0 16px rgba(0,131,255,.10);color:#fff;
}
:root[data-theme="dark"] .composer .send,:root[data-theme="auto"] .composer .send,
:root[data-theme="dark"] .login-panel .primary,:root[data-theme="auto"] .login-panel .primary,
:root[data-theme="dark"] .dialog .primary,:root[data-theme="auto"] .dialog .primary{
 background:linear-gradient(110deg,#0878ff,#06c9f4);border:1px solid rgba(149,238,255,.82);box-shadow:0 0 24px rgba(0,153,255,.37),inset 0 1px rgba(255,255,255,.32);color:#fff;
}
:root[data-theme="dark"] .nav-tab.active,:root[data-theme="auto"] .nav-tab.active{color:#4aeaff;text-shadow:0 0 15px rgba(32,198,255,.72)}
:root[data-theme="dark"] .auth-beta-shell,:root[data-theme="auto"] .auth-beta-shell{background:radial-gradient(ellipse at 16% 8%,rgba(0,123,255,.37),transparent 46%),radial-gradient(ellipse at 86% 90%,rgba(0,222,255,.17),transparent 42%),linear-gradient(145deg,#061b43,#020a1b);}
:root[data-theme="dark"] .auth-beta-shell .login-panel,:root[data-theme="auto"] .auth-beta-shell .login-panel,
:root[data-theme="dark"] .settings-content,:root[data-theme="auto"] .settings-content,
:root[data-theme="dark"] .dialog,:root[data-theme="auto"] .dialog,
:root[data-theme="dark"] .call-dialog,:root[data-theme="auto"] .call-dialog,
:root[data-theme="dark"] .ai-register-card,:root[data-theme="auto"] .ai-register-card{
 background:linear-gradient(145deg,rgba(10,53,111,.76),rgba(3,18,48,.79));border-color:rgba(111,204,255,.76);
 box-shadow:0 0 0 1px rgba(31,139,255,.15),0 0 36px rgba(0,131,255,.24),0 28px 80px rgba(0,7,25,.46),inset 0 1px 0 rgba(255,255,255,.22);
 backdrop-filter:blur(28px) saturate(180%);-webkit-backdrop-filter:blur(28px) saturate(180%);
}
:root[data-theme="dark"] .login-panel input,:root[data-theme="auto"] .login-panel input,
:root[data-theme="dark"] .login-panel select,:root[data-theme="auto"] .login-panel select,
:root[data-theme="dark"] .dialog input,:root[data-theme="auto"] .dialog input,
:root[data-theme="dark"] .dialog textarea,:root[data-theme="auto"] .dialog textarea,
:root[data-theme="dark"] .dialog select,:root[data-theme="auto"] .dialog select{
 background:rgba(4,23,54,.72);border-color:rgba(117,193,255,.54);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
:root[data-theme="dark"] .settings-page,:root[data-theme="auto"] .settings-page{background:radial-gradient(ellipse at 50% 0,rgba(0,123,255,.23),transparent 48%),linear-gradient(160deg,#071b3c,#020a1b);}
:root[data-theme="dark"] .settings-section,:root[data-theme="auto"] .settings-section{background:rgba(10,42,86,.58);border-color:rgba(102,183,255,.33);box-shadow:inset 0 1px rgba(255,255,255,.08),0 12px 28px rgba(0,8,28,.22);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
:root[data-theme="dark"] .settings-top,:root[data-theme="auto"] .settings-top{background:rgba(7,37,81,.78);border-bottom-color:rgba(111,200,255,.35);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.beta2-page{background:radial-gradient(ellipse at 50% 10%,rgba(0,141,255,.42),transparent 46%),radial-gradient(ellipse at 95% 85%,rgba(0,224,255,.18),transparent 38%),linear-gradient(150deg,#061b43,#02091a)}
.beta2-page .ai-register-card{background:linear-gradient(145deg,rgba(10,53,111,.72),rgba(3,18,48,.78));backdrop-filter:blur(28px) saturate(180%);-webkit-backdrop-filter:blur(28px) saturate(180%);box-shadow:0 0 36px rgba(0,131,255,.26),inset 0 1px 0 rgba(255,255,255,.24)}
.chatview[data-wallpaper="custom"]{background-image:linear-gradient(120deg,rgba(3,18,48,.45),rgba(0,20,50,.58)),var(--ept-custom-wallpaper)!important}
@media(prefers-reduced-transparency:reduce){.sidebar,.conversation,.msg .bubble,.composer,.settings-section,.login-panel,.dialog,.call-dialog,.ai-register-card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

/* Reference scale pass: give the AI feature, people, labels and controls room to read. */
:root[data-theme="dark"] .ai-feature,:root[data-theme="auto"] .ai-feature{padding:16px 15px 14px;border-radius:22px}
:root[data-theme="dark"] .ai-feature .ai-head,:root[data-theme="auto"] .ai-feature .ai-head{gap:14px;min-height:94px}
:root[data-theme="dark"] .ai-feature .ai-orb,:root[data-theme="auto"] .ai-feature .ai-orb{width:88px;height:88px;flex:none;border-radius:22px;border:1px solid rgba(131,222,255,.85);box-shadow:0 0 28px rgba(0,158,255,.42),inset 0 1px rgba(255,255,255,.35)}
:root[data-theme="dark"] .ai-feature .ai-orb img,:root[data-theme="auto"] .ai-feature .ai-orb img{width:100%;height:100%;object-fit:cover;transform:scale(1.06)}
:root[data-theme="dark"] .ai-feature .ai-copy,:root[data-theme="auto"] .ai-feature .ai-copy{gap:7px;min-width:0}
:root[data-theme="dark"] .ai-feature .ai-copy strong,:root[data-theme="auto"] .ai-feature .ai-copy strong{font-size:21px;line-height:1.35;font-weight:850;letter-spacing:.2px;color:#fff;text-shadow:0 0 16px rgba(38,195,255,.32)}
:root[data-theme="dark"] .ai-feature .ai-copy small,:root[data-theme="auto"] .ai-feature .ai-copy small{font-size:12px;line-height:1.7;color:#c8e5ff}
:root[data-theme="dark"] .ai-feature .coming-tag,:root[data-theme="auto"] .ai-feature .coming-tag{font-size:10px;padding:6px 8px;border-color:rgba(112,210,255,.58);background:rgba(12,87,157,.52);color:#e7f9ff}
:root[data-theme="dark"] .ai-feature .ai-actions,:root[data-theme="auto"] .ai-feature .ai-actions{gap:8px;margin-top:14px}
:root[data-theme="dark"] .ai-feature .ai-actions button,:root[data-theme="auto"] .ai-feature .ai-actions button{font-size:11px;padding:10px 7px;border-radius:13px;opacity:.82}
:root[data-theme="dark"] .avatar.avatar-sm,:root[data-theme="auto"] .avatar.avatar-sm{width:54px;height:54px;border-radius:50%;font-size:21px;border:2px solid rgba(104,193,255,.8);box-shadow:0 0 0 2px rgba(24,133,255,.18),0 0 17px rgba(0,126,255,.21)}
:root[data-theme="dark"] .chatrow,:root[data-theme="auto"] .chatrow{min-height:76px;padding:11px 12px;gap:13px;border-radius:17px}
:root[data-theme="dark"] .chatrow-info strong,:root[data-theme="auto"] .chatrow-info strong{font-size:14px;line-height:1.55;font-weight:800;color:#f7fbff}
:root[data-theme="dark"] .chatrow-info small,:root[data-theme="auto"] .chatrow-info small{font-size:12px;line-height:1.65;color:#bdd6f4}
:root[data-theme="dark"] .chat-meta .unread-pill,:root[data-theme="auto"] .chat-meta .unread-pill{min-width:27px;min-height:27px;font-size:12px;box-shadow:0 0 16px rgba(0,178,255,.55)}
:root[data-theme="dark"] .brand img,:root[data-theme="auto"] .brand img{width:58px;height:58px;filter:drop-shadow(0 0 13px rgba(0,155,255,.54))}
:root[data-theme="dark"] .brand strong,:root[data-theme="auto"] .brand strong{font-size:23px;line-height:1.25}
:root[data-theme="dark"] .brand small,:root[data-theme="auto"] .brand small{font-size:11px;line-height:1.6}
:root[data-theme="dark"] .selfpic .avatar,:root[data-theme="auto"] .selfpic .avatar{width:56px;height:56px;font-size:21px;border-radius:50%}
:root[data-theme="dark"] .selfinfo strong,:root[data-theme="auto"] .selfinfo strong{font-size:15px;font-weight:800}
:root[data-theme="dark"] .nav-tab span,:root[data-theme="auto"] .nav-tab span{font-size:26px}
:root[data-theme="dark"] .nav-tab small,:root[data-theme="auto"] .nav-tab small{font-size:11px}
:root[data-theme="dark"] .icon-button,:root[data-theme="auto"] .icon-button{font-size:24px}
:root[data-theme="dark"] .msg .bubble,:root[data-theme="auto"] .msg .bubble{font-size:15px;line-height:1.9;padding:13px 17px}
:root[data-theme="dark"] .stamp,:root[data-theme="auto"] .stamp{font-size:11px}
:root[data-theme="dark"] .chatperson strong,:root[data-theme="auto"] .chatperson strong{font-size:16px;font-weight:800}
:root[data-theme="dark"] .chatperson small,:root[data-theme="auto"] .chatperson small{font-size:11px}
:root[data-theme="dark"] .composer textarea,:root[data-theme="auto"] .composer textarea{font-size:15px;min-height:48px}
@media(max-width:800px){
 :root[data-theme="dark"] .ai-feature,:root[data-theme="auto"] .ai-feature{margin:0 11px 12px;padding:13px 12px 12px}
 :root[data-theme="dark"] .ai-feature .ai-head,:root[data-theme="auto"] .ai-feature .ai-head{min-height:80px;gap:11px}
 :root[data-theme="dark"] .ai-feature .ai-orb,:root[data-theme="auto"] .ai-feature .ai-orb{width:76px;height:76px;border-radius:20px}
 :root[data-theme="dark"] .ai-feature .ai-copy strong,:root[data-theme="auto"] .ai-feature .ai-copy strong{font-size:19px}
 :root[data-theme="dark"] .ai-feature .ai-copy small,:root[data-theme="auto"] .ai-feature .ai-copy small{font-size:11px}
 :root[data-theme="dark"] .ai-feature .coming-tag,:root[data-theme="auto"] .ai-feature .coming-tag{font-size:9px;padding:5px 6px}
 :root[data-theme="dark"] .ai-feature .ai-actions button,:root[data-theme="auto"] .ai-feature .ai-actions button{font-size:10px;padding:9px 5px}
 :root[data-theme="dark"] .avatar.avatar-sm,:root[data-theme="auto"] .avatar.avatar-sm{width:51px;height:51px}
 :root[data-theme="dark"] .chatrow,:root[data-theme="auto"] .chatrow{min-height:73px}
 :root[data-theme="dark"] .chatrow-info strong,:root[data-theme="auto"] .chatrow-info strong{font-size:13px}
 :root[data-theme="dark"] .chatrow-info small,:root[data-theme="auto"] .chatrow-info small{font-size:11px}
 :root[data-theme="dark"] .msg .bubble,:root[data-theme="auto"] .msg .bubble{font-size:14px;padding:11px 14px}
}

/* Wallpaper refresh: vivid art remains visible behind the translucent message glass. */
.wallpaper-dialog{background:radial-gradient(ellipse at 15% 0%,rgba(0,183,255,.24),transparent 48%),linear-gradient(145deg,rgba(8,39,82,.96),rgba(3,16,41,.97))!important;border:1px solid #83d9ff!important;box-shadow:0 0 42px #087bff55,inset 0 1px #ffffff38!important}
.wallpaper-grid{gap:12px!important}
.wallpaper-option{padding:7px!important;border:1px solid #7acfff55!important;border-radius:18px!important;background:linear-gradient(145deg,#0c3672a8,#061b3fd9)!important;box-shadow:inset 0 1px #ffffff20,0 8px 22px #00102e70!important;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.wallpaper-option:hover,.wallpaper-option.selected{transform:translateY(-2px);border-color:#5de0ff!important;box-shadow:0 0 0 2px #2bbaff55,0 0 24px #128fff66,inset 0 1px #ffffff62!important}
.wallpaper-thumb{height:124px!important;border-radius:13px!important;border:1px solid #a5e9ff99!important;filter:saturate(1.34) brightness(1.15)!important;box-shadow:inset 0 1px #ffffff50,0 0 18px #168fff55!important}
.wallpaper-option .wp-name{font-size:12px!important;font-weight:750!important;color:#f2fbff!important}
.custom-wallpaper-actions{position:relative;gap:8px!important;margin-top:14px;padding-top:12px;border-top:1px solid #8bd8ff35}
.custom-wallpaper-actions button{min-height:42px;border:1px solid #77caff88!important;background:linear-gradient(130deg,#1168c9,#0a3b7e)!important;color:#effaff!important;font-weight:700;box-shadow:inset 0 1px #ffffff30,0 5px 16px #00153480!important}
.custom-wallpaper-actions button:disabled{opacity:.48;filter:saturate(.5)}
.wallpaper-file-input{position:fixed!important;left:-2px!important;bottom:0!important;width:2px!important;height:2px!important;padding:0!important;margin:0!important;opacity:.01!important;overflow:hidden!important;white-space:nowrap!important;border:0!important;z-index:-1!important}
.custom-wallpaper-actions #customWallpaperStatus{color:#bceaff;line-height:1.7}
.chatview[data-wallpaper="mountains"]{background-image:radial-gradient(ellipse at 24% 12%,rgba(0,182,255,.19),transparent 42%),linear-gradient(145deg,rgba(2,17,48,.08),rgba(4,17,48,.15)),url('/assets/wallpapers/mountains.svg?v=2')!important;background-blend-mode:screen,normal,normal!important}
.chatview[data-wallpaper="aurora"]{background-image:radial-gradient(ellipse at 76% 18%,rgba(37,255,207,.21),transparent 42%),linear-gradient(145deg,rgba(2,17,48,.05),rgba(4,17,48,.12)),url('/assets/wallpapers/aurora.svg?v=2')!important;background-blend-mode:screen,normal,normal!important}
.chatview[data-wallpaper="ocean"]{background-image:radial-gradient(ellipse at 20% 22%,rgba(0,200,255,.2),transparent 43%),linear-gradient(145deg,rgba(2,17,48,.05),rgba(4,17,48,.12)),url('/assets/wallpapers/ocean.svg?v=2')!important;background-blend-mode:screen,normal,normal!important}
.chatview[data-wallpaper="minimal"]{background-image:radial-gradient(ellipse at 82% 18%,rgba(81,87,255,.24),transparent 43%),radial-gradient(ellipse at 16% 75%,rgba(0,210,255,.12),transparent 42%),url('/assets/wallpapers/minimal.svg?v=2')!important;background-blend-mode:screen,screen,normal!important}
.chatview[data-wallpaper="desert"]{background-image:radial-gradient(ellipse at 77% 18%,rgba(255,139,104,.2),transparent 42%),linear-gradient(145deg,rgba(23,11,39,.04),rgba(23,11,39,.12)),url('/assets/wallpapers/desert.svg?v=2')!important;background-blend-mode:screen,normal,normal!important}
.chatview[data-wallpaper="city"]{background-image:radial-gradient(ellipse at 30% 18%,rgba(0,187,255,.2),transparent 43%),linear-gradient(145deg,rgba(2,13,42,.05),rgba(3,14,42,.12)),url('/assets/wallpapers/city.svg?v=2')!important;background-blend-mode:screen,normal,normal!important}
.chatview[data-wallpaper="custom"]{background-image:linear-gradient(120deg,rgba(3,18,48,.06),rgba(0,20,50,.11)),var(--ept-custom-wallpaper)!important;background-blend-mode:normal!important}
:root[data-theme="light"] .wallpaper-thumb{filter:saturate(1.35) brightness(1.18)!important}
@media(max-width:390px){
 :root[data-theme="dark"] .ai-feature .coming-tag,:root[data-theme="auto"] .ai-feature .coming-tag{display:none}
 :root[data-theme="dark"] .ai-feature .ai-orb,:root[data-theme="auto"] .ai-feature .ai-orb{width:70px;height:70px}
 :root[data-theme="dark"] .ai-feature .ai-copy strong,:root[data-theme="auto"] .ai-feature .ai-copy strong{font-size:18px}
}

/* Readability correction: keep the promised large type and clear controls on small phones. */
@media(max-width:800px){
 :root[data-theme="dark"] .avatar.avatar-sm,:root[data-theme="auto"] .avatar.avatar-sm{width:56px;height:56px;font-size:23px}
 :root[data-theme="dark"] .chatrow,:root[data-theme="auto"] .chatrow{min-height:80px;padding:11px 12px;gap:12px}
 :root[data-theme="dark"] .chatrow-info strong,:root[data-theme="auto"] .chatrow-info strong{font-size:14px;line-height:1.5}
 :root[data-theme="dark"] .chatrow-info small,:root[data-theme="auto"] .chatrow-info small{font-size:12px;line-height:1.55}
 :root[data-theme="dark"] .msg .bubble,:root[data-theme="auto"] .msg .bubble{font-size:15px;line-height:1.85;padding:12px 15px}
 :root[data-theme="dark"] .ai-feature .ai-orb,:root[data-theme="auto"] .ai-feature .ai-orb{width:80px;height:80px}
 :root[data-theme="dark"] .ai-feature .ai-copy strong,:root[data-theme="auto"] .ai-feature .ai-copy strong{font-size:20px;line-height:1.4}
 :root[data-theme="dark"] .ai-feature .ai-copy small,:root[data-theme="auto"] .ai-feature .ai-copy small{font-size:12px;line-height:1.55}
 :root[data-theme="dark"] .ai-feature .coming-tag,:root[data-theme="auto"] .ai-feature .coming-tag{display:inline-flex;font-size:10px;padding:6px 8px}
 :root[data-theme="dark"] .ai-feature .ai-actions,:root[data-theme="auto"] .ai-feature .ai-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 :root[data-theme="dark"] .ai-feature .ai-actions button,:root[data-theme="auto"] .ai-feature .ai-actions button{min-height:42px;padding:8px 5px;font-size:11px;line-height:1.45;opacity:.9}
 :root[data-theme="dark"] .nav-tab span,:root[data-theme="auto"] .nav-tab span{font-size:28px}
 :root[data-theme="dark"] .nav-tab small,:root[data-theme="auto"] .nav-tab small{font-size:12px}
}
@media(max-width:390px){
 :root[data-theme="dark"] .ai-feature .ai-orb,:root[data-theme="auto"] .ai-feature .ai-orb{width:74px;height:74px}
 :root[data-theme="dark"] .ai-feature .ai-copy strong,:root[data-theme="auto"] .ai-feature .ai-copy strong{font-size:19px}
 :root[data-theme="dark"] .ai-feature .ai-actions button,:root[data-theme="auto"] .ai-feature .ai-actions button{font-size:10.5px}
}

/* Beta 2 visual pass: restore the bright, translucent EPT glass language. */
:root{--ept-glass:rgba(9,35,76,.58);--ept-glass-strong:rgba(12,49,100,.72);--ept-neon:#28baff;--ept-ice:#bcecff}
.brand{min-height:88px!important;padding:17px 18px!important;gap:13px!important;background:radial-gradient(ellipse at 18% 0%,#1daeff30,transparent 62%),linear-gradient(120deg,#081b3cdd,#09264dde)!important;border-bottom:1px solid #58bdff42!important}
.brand img{width:60px!important;height:60px!important;border-radius:18px!important;filter:drop-shadow(0 0 16px #168eff9c)!important}
.brand>div{display:grid;gap:3px;min-width:0}
.brand strong{font-size:26px!important;font-weight:900!important;letter-spacing:1.4px!important;background:linear-gradient(100deg,#fff 10%,#83eaff 62%,#54b5ff)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:0 0 20px #2ba9ff55}
.brand small{font-size:12px!important;line-height:1.55;color:#c3e6ff!important;letter-spacing:.05px}
.brand-settings{width:46px!important;height:46px!important;flex-basis:46px!important;border-radius:16px!important;background:linear-gradient(145deg,#1264c9bb,#102b58bb)!important;border-color:#80d8ff9c!important;box-shadow:inset 0 1px #ffffff4d,0 0 21px #168cff52!important;font-size:24px!important}
.sidebar,.conversation{background:linear-gradient(145deg,rgba(8,27,60,.90),rgba(5,18,42,.92))!important;border-color:#5dbaff50!important;box-shadow:0 16px 55px #00102d7a,inset 0 1px #d7f5ff12!important;backdrop-filter:blur(24px) saturate(175%)!important;-webkit-backdrop-filter:blur(24px) saturate(175%)!important}
.self,.conversation-filters,.search input,.chatrow,.settings-section,.dialog{backdrop-filter:blur(20px) saturate(170%)!important;-webkit-backdrop-filter:blur(20px) saturate(170%)!important}
.self{min-height:72px!important;background:linear-gradient(120deg,#0b4b8b88,#15315d8c)!important;border:1px solid #5abfff6e!important;box-shadow:inset 0 1px #e5f8ff30,0 7px 22px #0079e522!important;border-radius:20px!important}
.selfpic .avatar,.avatar{border-radius:50%!important;border:1px solid #9be4ffb0!important;box-shadow:0 0 18px #079eff52,inset 0 1px #ffffff55!important}
.selfpic .avatar{width:56px!important;height:56px!important;font-size:23px!important}
.ai-feature{margin:0 14px 15px!important;padding:15px!important;border-radius:24px!important;border:1px solid #70d2ffbb!important;background:radial-gradient(ellipse at 10% 0%,#1bdcff5c,transparent 54%),radial-gradient(ellipse at 100% 100%,#2f64ff55,transparent 55%),linear-gradient(130deg,#0954a6c9,#102d65dc 58%,#081d45ed)!important;box-shadow:inset 0 1px #ffffff5c,0 0 0 1px #128aff38,0 0 28px #007cff54,0 13px 30px #0006!important;backdrop-filter:blur(24px) saturate(190%)!important;-webkit-backdrop-filter:blur(24px) saturate(190%)!important}
.ai-feature .ai-head{min-height:112px!important;gap:14px!important}
.ai-feature .ai-orb{width:104px!important;height:104px!important;border-radius:27px!important;border:1px solid #8de2ff!important;box-shadow:0 0 28px #00aaff88,inset 0 1px #ffffff66!important;overflow:hidden}
.ai-feature .ai-orb img{width:100%;height:100%;object-fit:cover;display:block}
.ai-feature .ai-copy strong{font-size:24px!important;font-weight:850!important;color:#fff!important;line-height:1.35!important;text-shadow:0 0 20px #2bceff69}
.ai-feature .ai-copy small{font-size:13px!important;line-height:1.7;color:#c9e9ff!important}
.ai-feature .coming-tag{font-size:10px!important;padding:7px 9px!important;color:#e4f8ff!important;background:#1681cf4d!important;border-color:#8de0ff8a!important}
.ai-feature .ai-actions{gap:8px!important;margin-top:13px!important}
.ai-feature .ai-actions button{min-height:44px!important;padding:9px 7px!important;font-size:11px!important;color:#e8f8ff!important;background:linear-gradient(145deg,#2279ce72,#102c60c9)!important;border-color:#81d7ff75!important;border-radius:14px!important;opacity:1!important;box-shadow:inset 0 1px #ffffff24!important}
.conversation-filters{gap:8px!important}.filter-chip{min-height:42px!important;border:1px solid #59a9f778!important;border-radius:18px!important;background:#0b2d5c9c!important;color:#c9e7ff!important;font-size:13px!important}.filter-chip.selected{background:linear-gradient(110deg,#087cf4,#00a9ea)!important;color:#fff!important;box-shadow:0 0 21px #129dff80,inset 0 1px #ffffff6b!important}
.chatrow{min-height:86px!important;margin:3px 2px 7px!important;padding:12px!important;border:1px solid transparent!important;border-radius:21px!important;background:linear-gradient(125deg,#0b2d59a8,#0b22439c)!important;box-shadow:inset 0 1px #ffffff0d!important}
.chatrow.active,.chatrow:hover{background:linear-gradient(120deg,#0c67c4cc,#0b3c83dc)!important;border-color:#73d5ffad!important;box-shadow:0 0 0 1px #168bff42,0 0 22px #138eff65,inset 0 1px #ffffff5c!important}
.chatrow .avatar.avatar-sm{width:62px!important;height:62px!important;flex:0 0 62px!important;font-size:25px!important;border-radius:50%!important}
.chatrow-info strong{font-size:16px!important;font-weight:750!important;color:#f5fbff!important;line-height:1.45}
.chatrow-info small{font-size:13px!important;line-height:1.55!important;color:#b5d2f0!important}
.chat-meta time{font-size:11px!important;color:#c5def8!important}.unread-pill{min-width:24px!important;height:24px!important;border-radius:50%!important;box-shadow:0 0 14px #00aeff8c}
.chatheader{min-height:88px!important;padding:12px 16px!important;gap:12px!important;background:linear-gradient(110deg,#0a2852dc,#0a1f42e8)!important;border-bottom:1px solid #55baff55!important;backdrop-filter:blur(24px) saturate(185%)!important;-webkit-backdrop-filter:blur(24px) saturate(185%)!important}
.chatheader .avatar{width:60px!important;height:60px!important;flex:0 0 60px!important;font-size:24px!important}
.chatperson strong{font-size:18px!important;font-weight:800!important;color:#fff!important}.chatperson small{font-size:12px!important;color:#b9ddfb!important}
.chatheader .icon-button,.composer .icon-button{width:48px!important;height:48px!important;border-radius:17px!important;background:linear-gradient(145deg,#145299bb,#102b57dd)!important;border-color:#68c7ff9c!important;color:#e4f8ff!important;box-shadow:inset 0 1px #ffffff35,0 0 17px #168dff32!important;font-size:24px!important}
.messages{background:transparent!important}
.msg .bubble{font-size:16px!important;line-height:1.9!important;padding:14px 18px!important;border:1px solid #8dcfff8c!important;border-radius:22px 22px 7px 22px!important;background:linear-gradient(135deg,rgba(38,89,144,.58),rgba(14,40,78,.63))!important;color:#f5fbff!important;box-shadow:inset 0 1px #ffffff38,0 10px 28px #00112e50,0 0 18px #188fff20!important;backdrop-filter:blur(22px) saturate(185%)!important;-webkit-backdrop-filter:blur(22px) saturate(185%)!important}
.msg.mine .bubble{background:linear-gradient(125deg,rgba(0,115,246,.90),rgba(0,183,235,.74))!important;border-color:#97e6ff!important;box-shadow:inset 0 1px #ffffff80,0 7px 25px #006dff53,0 0 22px #00aeff3a!important;border-radius:22px 22px 22px 7px!important}
.stamp{font-size:11px!important;color:#d2e8ff!important}.composer{background:linear-gradient(110deg,#071b39e8,#0b2852f0)!important;border-top:1px solid #62baff58!important;backdrop-filter:blur(25px) saturate(185%)!important;-webkit-backdrop-filter:blur(25px) saturate(185%)!important}
.composer textarea{font-size:15px!important;min-height:48px!important;border-radius:20px!important;background:#0d2b55cc!important;border-color:#72caff8c!important;box-shadow:inset 0 1px #ffffff22!important}.composer .send{min-height:48px!important;border-radius:18px!important;font-size:15px!important;box-shadow:0 0 20px #138cff67,inset 0 1px #ffffff76!important}
.nav-tab span{font-size:30px!important;color:#c4e6ff!important}.nav-tab small{font-size:13px!important;font-weight:650!important;color:#cae5ff!important}.nav-tab.active{color:#4bd5ff!important;text-shadow:0 0 17px #008bff}
.chatview[data-wallpaper="mountains"]{background-image:linear-gradient(120deg,rgba(4,19,49,.25),rgba(4,20,50,.36)),url('/assets/wallpapers/mountains.svg?v=2')!important}
.chatview[data-wallpaper="aurora"]{background-image:linear-gradient(120deg,rgba(4,19,49,.22),rgba(4,20,50,.32)),url('/assets/wallpapers/aurora.svg?v=2')!important}
.chatview[data-wallpaper="ocean"]{background-image:linear-gradient(120deg,rgba(4,19,49,.24),rgba(4,20,50,.34)),url('/assets/wallpapers/ocean.svg?v=2')!important}
.chatview[data-wallpaper="minimal"]{background-image:linear-gradient(120deg,rgba(4,19,49,.18),rgba(4,20,50,.27)),url('/assets/wallpapers/minimal.svg?v=2')!important}
.chatview[data-wallpaper="desert"]{background-image:linear-gradient(120deg,rgba(22,18,43,.20),rgba(31,20,43,.29)),url('/assets/wallpapers/desert.svg?v=2')!important}
.chatview[data-wallpaper="city"]{background-image:linear-gradient(120deg,rgba(6,15,43,.20),rgba(10,18,50,.30)),url('/assets/wallpapers/city.svg?v=2')!important}
.chatview[data-wallpaper="custom"]{background-image:linear-gradient(120deg,rgba(4,18,43,.20),rgba(4,17,42,.28)),var(--ept-custom-wallpaper)!important}
.chatview[data-wallpaper]{background-size:cover!important;background-position:center!important}
.call-overlay{background:radial-gradient(ellipse at 50% 20%,#087bea8c,#03102af5 72%)!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important}
.call-dialog{width:min(620px,100%)!important;max-height:94dvh!important;padding:22px!important;border-radius:32px!important;border:1px solid #91e1ffbb!important;background:linear-gradient(150deg,#0a3270ed,#06152fea 78%)!important;box-shadow:0 32px 100px #000b,0 0 55px #078bff5c,inset 0 1px #ffffff62!important;backdrop-filter:blur(30px) saturate(190%)!important;-webkit-backdrop-filter:blur(30px) saturate(190%)!important}
.call-stage{height:min(62dvh,540px)!important;min-height:320px!important;border-radius:28px!important;border:1px solid #81d6ff9c!important;background:radial-gradient(circle at 50% 28%,#217bd8,#092653 67%,#06142c)!important;box-shadow:inset 0 1px #ffffff4c,0 0 35px #078cff42!important}
.call-dialog #remoteVideo{z-index:1!important;opacity:1!important;transition:opacity .25s ease,border-radius .35s ease;cursor:zoom-in}
.call-dialog #localVideo{z-index:2!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:27px!important;object-fit:cover!important;box-shadow:none!important;transition:all .35s ease}
.call-dialog[data-mode="video"][data-connected="false"] #localVideo{display:block!important;z-index:3!important;inset:auto 16px 16px auto!important;width:clamp(104px,24vw,166px)!important;height:clamp(140px,31vw,220px)!important;border:2px solid #b9edff!important;border-radius:22px!important;box-shadow:0 12px 35px #0009,0 0 25px #1baaff75!important}
.call-dialog[data-mode="video"][data-connected="false"] #remoteVideo{opacity:1!important}
.call-dialog[data-mode="video"][data-connected="true"] #remoteVideo{opacity:1!important;z-index:2!important}
.call-dialog[data-mode="video"][data-connected="true"] #localVideo{z-index:3!important;inset:auto 16px 16px auto!important;width:clamp(104px,24vw,166px)!important;height:clamp(140px,31vw,220px)!important;border:2px solid #b9edff!important;border-radius:22px!important;box-shadow:0 12px 35px #0009,0 0 25px #1baaff75!important}
.call-dialog[data-mode="audio"] .call-stage{height:min(48dvh,390px)!important}
.call-actions{gap:clamp(12px,4vw,26px)!important;margin-top:18px!important}
.call-control{width:76px!important;min-height:82px!important}.call-control-icon{width:62px!important;height:62px!important;border:1px solid #91dfff9c!important;background:linear-gradient(145deg,#1b5ba2,#102b57)!important;box-shadow:inset 0 1px #ffffff51,0 8px 24px #00183f77,0 0 18px #128fff43!important;font-size:23px!important}
.call-control-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.call-control.answer .call-control-icon{background:linear-gradient(145deg,#13d18e,#048b68)!important}.call-control.decline .call-control-icon{background:linear-gradient(145deg,#ff597e,#bf2456)!important}.call-control small{font-size:12px!important;color:#e4f5ff!important}
.call-timeline{min-width:260px;max-width:min(100%,370px);display:flex;align-items:center;gap:13px;padding:14px 16px;border:1px solid #8cdfffaa;border-radius:22px;background:linear-gradient(125deg,rgba(8,103,208,.80),rgba(11,46,97,.76));box-shadow:inset 0 1px #ffffff55,0 8px 25px #001c456b,0 0 25px #007dff33;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%)}
.call-log-icon{width:49px;height:49px;flex:none;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,#20bbff,#1474ec);border:1px solid #b0edff;box-shadow:0 0 23px #098fff72}.call-log-icon svg{width:25px;height:25px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.call-log-copy{display:grid;gap:4px;flex:1}.call-log-copy strong{font-size:16px;color:#fff}.call-log-copy small{font-size:12px;color:#c4e7ff}.call-log-status{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ffffff1d;color:#e8f8ff;font-size:19px;font-weight:800}.call-timeline.missed .call-log-icon{background:linear-gradient(145deg,#ff758c,#d82a58)}.call-timeline.missed .call-log-status{background:#ff315a;color:white}.call-timeline.answered .call-log-status{background:#18bd83;color:white}
@media(max-width:800px){.brand{min-height:82px!important;padding:12px 14px!important}.brand img{width:54px!important;height:54px!important}.brand strong{font-size:24px!important}.brand small{font-size:11px!important}.brand-settings{width:43px!important;height:43px!important;flex-basis:43px!important}.ai-feature{margin:0 12px 13px!important}.ai-feature .ai-head{min-height:105px!important}.ai-feature .ai-orb{width:98px!important;height:98px!important}.ai-feature .ai-copy strong{font-size:23px!important}.chatrow .avatar.avatar-sm{width:58px!important;height:58px!important;flex-basis:58px!important}.chatrow-info strong{font-size:15px!important}.chatrow-info small{font-size:12px!important}.chatheader{min-height:80px!important;padding:10px 12px!important}.chatheader .avatar{width:54px!important;height:54px!important;flex-basis:54px!important}.chatheader .icon-button,.composer .icon-button{width:45px!important;height:45px!important}.msg .bubble{font-size:16px!important}.call-dialog{padding:16px!important}.call-stage{height:61dvh!important;min-height:300px!important}}

/* iPhone standalone: reserve the status-bar/notch area before showing tappable controls.
   Keep this final so it wins over older mobile sizing rules above. */
@media(max-width:800px){
  .brand{
    box-sizing:border-box!important;
    padding-top:max(20px,calc(env(safe-area-inset-top) + 8px))!important;
    min-height:calc(82px + env(safe-area-inset-top))!important;
  }
  .brand-settings{width:40px!important;height:40px!important;flex-basis:40px!important}
  .chatheader{
    box-sizing:border-box!important;
    padding:calc(env(safe-area-inset-top) + 8px) 10px 8px!important;
    min-height:calc(68px + env(safe-area-inset-top))!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
  }
  .chatheader .icon-button{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex:0 0 40px!important}
  .chatheader .avatar{width:46px!important;height:46px!important;flex:0 0 46px!important}
  .chatperson strong{font-size:15px!important}
  .chatperson small{font-size:10px!important}
}
@media(max-width:430px){.brand small{font-size:10px!important}.ai-feature .ai-orb{width:88px!important;height:88px!important}.ai-feature .ai-copy strong{font-size:21px!important}.ai-feature .ai-copy small{font-size:12px!important}.ai-feature .coming-tag{display:none!important}.call-stage{min-height:280px!important}.call-dialog[data-mode="video"][data-connected="true"] #localVideo{width:108px!important;height:148px!important;inset:auto 11px 11px auto!important}}
@media(prefers-reduced-transparency:reduce){.brand,.sidebar,.conversation,.ai-feature,.chatrow,.msg .bubble,.call-dialog{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

/* Beta 2.2 mobile inbox: reclaim vertical space for the actual conversation list. */
@media(max-width:800px){
 .sidebar{overflow:hidden!important;overscroll-behavior-x:none!important}
 .brand{box-sizing:border-box!important;min-height:calc(58px + env(safe-area-inset-top))!important;height:auto!important;padding:calc(env(safe-area-inset-top) + 4px) 11px 5px!important;gap:9px!important}
 .brand img{width:39px!important;height:39px!important;border-radius:12px!important}
 .brand strong{font-size:19px!important;line-height:1.15!important}
 .brand small{font-size:10px!important;line-height:1.3!important;margin-top:1px!important}
 .brand-settings{width:36px!important;height:36px!important;min-width:36px!important;flex-basis:36px!important;font-size:18px!important}
 .self{margin:5px 10px 7px!important;padding:6px 9px!important;min-height:55px!important;gap:7px!important}
 .selfpic .avatar{width:42px!important;height:42px!important;font-size:17px!important}
 .selfinfo strong{font-size:13px!important}
 .selfinfo small{font-size:10px!important;margin-top:2px!important}
 .self>.icon-button{width:35px!important;height:35px!important}
 .search{padding:0 10px 7px!important;gap:6px!important}
 .search input{min-height:42px!important;padding:9px 11px!important;font-size:13px!important}
 .search-action{min-width:42px!important;min-height:42px!important}
 .ai-feature{margin:0 10px 8px!important;padding:8px 10px!important;border-radius:17px!important}
 .ai-feature .ai-head{min-height:58px!important;gap:9px!important}
 .ai-feature .ai-orb{width:56px!important;height:56px!important;border-radius:15px!important}
 .ai-feature .ai-copy{gap:3px!important}
 .ai-feature .ai-copy strong{font-size:17px!important;line-height:1.2!important}
 .ai-feature .ai-copy small{font-size:10px!important;line-height:1.35!important}
 .ai-feature .coming-tag{display:none!important}
 .ai-feature .ai-actions{margin-top:7px!important;gap:6px!important}
 .ai-feature .ai-actions button{min-height:33px!important;padding:5px 3px!important;font-size:9px!important;line-height:1.2!important;border-radius:10px!important}
 .conversation-filters{display:flex!important;flex:0 0 auto!important;justify-content:stretch!important;overflow-x:hidden!important;overflow-y:hidden!important;touch-action:pan-y!important;overscroll-behavior-x:none!important;white-space:nowrap!important;margin:0 10px 5px!important;gap:6px!important}
 .conversation-filters .filter-chip{flex:1 1 0!important;min-width:0!important;min-height:36px!important;padding:6px 4px!important;font-size:12px!important;touch-action:pan-y!important}
 .listhead{flex:0 0 auto!important;padding:0 12px 5px!important;min-height:37px!important;font-size:12px!important}
 .listhead .round{width:32px!important;height:32px!important}
 .chatlist{flex:1 1 0!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;overscroll-behavior-x:none!important;padding:0 8px 6px!important;-webkit-overflow-scrolling:touch!important}
 .chatrow{transform:none!important;min-height:62px!important;padding:7px 9px!important;margin:0 0 3px!important;gap:9px!important}
 .chatrow .avatar.avatar-sm{width:44px!important;height:44px!important;flex-basis:44px!important;font-size:17px!important}
 .chatrow-info strong{font-size:13px!important}
 .chatrow-info small{font-size:10px!important;line-height:1.35!important}
 .sidebarfoot{flex:0 0 auto!important;padding:5px 7px max(5px,env(safe-area-inset-bottom))!important}
 .sidebar-tabs{min-height:55px!important}
 .nav-tab{min-height:49px!important;padding:4px!important}
 .nav-tab span{font-size:21px!important}
 .nav-tab small{font-size:10px!important}
}
@media(max-height:760px) and (max-width:800px){
 .brand{min-height:calc(51px + env(safe-area-inset-top))!important;padding-bottom:3px!important}
 .ai-feature{margin-bottom:5px!important;padding:6px 9px!important}
 .ai-feature .ai-head{min-height:49px!important}
 .ai-feature .ai-orb{width:48px!important;height:48px!important}
 .ai-feature .ai-actions{margin-top:5px!important}
 .ai-feature .ai-actions button{min-height:29px!important}
 .self{min-height:49px!important;margin-block:4px 5px!important}
 .selfpic .avatar{width:37px!important;height:37px!important}
}
@media(hover:none){.chatrow:hover{transform:none!important}}
.app,.sidebar,.conversation,#chatList,.conversation-filters{overscroll-behavior-x:none!important}
.conversation-filters{touch-action:pan-y!important}
#chatView[data-wallpaper="mountains"]{background-image:url('/assets/wallpapers/mountains.svg?v=2')!important}
#chatView[data-wallpaper="aurora"]{background-image:url('/assets/wallpapers/aurora.svg?v=2')!important}
#chatView[data-wallpaper="ocean"]{background-image:url('/assets/wallpapers/ocean.svg?v=2')!important}
#chatView[data-wallpaper="minimal"]{background-image:url('/assets/wallpapers/minimal.svg?v=2')!important}
#chatView[data-wallpaper="desert"]{background-image:url('/assets/wallpapers/desert.svg?v=2')!important}
#chatView[data-wallpaper="city"]{background-image:url('/assets/wallpapers/city.svg?v=2')!important}
#chatView[data-wallpaper="custom"]{background-image:var(--ept-custom-wallpaper)!important}
#chatView[data-wallpaper]{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.choose-wallpaper-label{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.wallpaper-file-input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;z-index:2!important;cursor:pointer!important;clip:auto!important}

/* iPhone safe-area correction: keep the entire conversation toolbar below the status area. */
@media(max-width:800px){
  .conversation{padding-top:0!important}
  .chatheader{box-sizing:border-box!important;min-height:108px!important;padding: max(48px,calc(env(safe-area-inset-top) + 7px)) 8px 8px!important;gap:4px!important;align-items:center!important;flex-wrap:nowrap!important}
  .chatheader .icon-button{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;flex:0 0 35px!important;border-radius:12px!important}
  .chatheader .avatar{width:42px!important;height:42px!important;flex:0 0 42px!important}
  .chatperson{min-width:0!important;flex:1 1 auto!important}
  .chatperson strong{font-size:14px!important;line-height:1.35!important}
  .chatperson small{font-size:9px!important;line-height:1.4!important}
  .peer-ept-id{display:none!important}
}
@media(max-width:390px){.chatheader{padding-inline:6px!important;gap:3px!important}.chatheader .icon-button{width:32px!important;height:34px!important;min-width:32px!important;flex-basis:32px!important}.chatheader .avatar{width:38px!important;height:38px!important;flex-basis:38px!important}}

/* Stronger, luminous artwork stays visible behind glass message bubbles. */
.chatview[data-wallpaper="mountains"]{background-image:linear-gradient(120deg,rgba(4,19,49,.04),rgba(4,20,50,.12)),url('/assets/wallpapers/mountains.svg?v=2')!important}
.chatview[data-wallpaper="aurora"]{background-image:linear-gradient(120deg,rgba(4,19,49,.03),rgba(4,20,50,.10)),url('/assets/wallpapers/aurora.svg?v=2')!important}
.chatview[data-wallpaper="ocean"]{background-image:linear-gradient(120deg,rgba(4,19,49,.03),rgba(4,20,50,.10)),url('/assets/wallpapers/ocean.svg?v=2')!important}
.chatview[data-wallpaper="minimal"]{background-image:linear-gradient(120deg,rgba(4,19,49,.03),rgba(4,20,50,.10)),url('/assets/wallpapers/minimal.svg?v=2')!important}
.chatview[data-wallpaper="desert"]{background-image:linear-gradient(120deg,rgba(22,18,43,.03),rgba(31,20,43,.10)),url('/assets/wallpapers/desert.svg?v=2')!important}
.chatview[data-wallpaper="city"]{background-image:linear-gradient(120deg,rgba(6,15,43,.03),rgba(10,18,50,.10)),url('/assets/wallpapers/city.svg?v=2')!important}
.chatview[data-wallpaper="custom"]{background-image:linear-gradient(120deg,rgba(3,18,48,.02),rgba(0,20,50,.08)),var(--ept-custom-wallpaper)!important}

/* Bottom navigation: explicit glass colors prevent iOS/browser default white button faces. */
:root .sidebarfoot{background:linear-gradient(180deg,rgba(5,24,56,.96),rgba(3,17,42,.99))!important;border-top:1px solid rgba(91,181,255,.48)!important}
:root .sidebar-tabs .nav-tab{-webkit-appearance:none!important;appearance:none!important;min-width:0!important;border:1px solid rgba(103,185,255,.38)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(20,67,126,.68),rgba(7,31,70,.88))!important;color:#e5f5ff!important;box-shadow:inset 0 1px rgba(255,255,255,.12)!important;text-shadow:none!important}
:root .sidebar-tabs .nav-tab span,:root .sidebar-tabs .nav-tab small{color:#d9efff!important}
:root .sidebar-tabs .nav-tab.active{border-color:rgba(125,226,255,.96)!important;background:linear-gradient(125deg,#0878f5,#08b9e8)!important;color:#fff!important;box-shadow:0 0 22px rgba(0,145,255,.48),inset 0 1px rgba(255,255,255,.44)!important;text-shadow:0 1px 8px rgba(0,28,75,.55)!important}
:root .sidebar-tabs .nav-tab.active span,:root .sidebar-tabs .nav-tab.active small{color:#fff!important}
:root .sidebar-tabs .nav-tab:focus-visible{outline:2px solid #70dcff!important;outline-offset:2px}
.custom-wallpaper-actions #customWallpaperStatus{min-height:1.6em}

/* Beta 2.10: one-hand voice recording and an in-app attachment viewer with a clear return control. */
.composer .voice-hold{flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center;border-radius:50%!important;touch-action:none;user-select:none;-webkit-user-select:none}
.voice-hold svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.voice-hold.recording{background:linear-gradient(145deg,#ff4960,#bf153a)!important;border-color:#ff9aa9!important;box-shadow:0 0 0 7px #ff385522,0 0 22px #ff244a88!important;animation:ept-record-pulse 1s infinite}
@keyframes ept-record-pulse{50%{transform:scale(1.08);box-shadow:0 0 0 12px #ff385510,0 0 27px #ff244a99!important}}
.media-open{display:block;border:0;background:none;color:inherit;padding:0;text-align:inherit;cursor:pointer}.media-open-link{border:0;background:transparent;color:#9fdbff;text-decoration:underline;text-align:right;padding:2px 0;cursor:pointer;font:inherit}
.file-viewer{position:fixed;inset:0;z-index:10050;background:#041329;color:#eaf7ff;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.file-viewer.hidden{display:none!important}.file-viewer>header{height:58px;flex:0 0 58px;display:flex;align-items:center;gap:12px;padding:6px 12px;border-bottom:1px solid #60baff55;background:#071d3bed;backdrop-filter:blur(20px)}
.file-viewer>header strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-viewer>header .icon-button{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#124078;color:#eaf7ff;border:1px solid #67c8ff88;font-size:28px;text-decoration:none}.file-viewer-body{flex:1;min-height:0;display:grid;place-items:center;overflow:auto;padding:10px}.file-viewer-body img,.file-viewer-body video{max-width:100%;max-height:100%;object-fit:contain}.file-viewer-body audio{width:min(560px,92vw)}.file-viewer-body iframe{width:100%;height:100%;border:0;border-radius:10px;background:#fff}.file-viewer-body p{max-width:440px;text-align:center;line-height:1.9;color:#bedcff}
body.file-viewer-open{overflow:hidden}
@media(max-width:720px){.composer .voice-hold{flex-basis:40px;width:40px;height:42px}.composer .voice-hold svg{width:21px;height:21px}.file-viewer>header{height:54px;flex-basis:54px}.file-viewer-body{padding:5px}}

.file-viewer>header{position:relative}.file-viewer-menu{position:absolute;z-index:2;top:58px;right:10px;width:min(290px,calc(100vw - 20px));display:grid;gap:3px;padding:8px;border:1px solid #60baff66;border-radius:14px;background:#0b2344f5;box-shadow:0 14px 40px #0008;backdrop-filter:blur(18px)}.file-viewer-menu.hidden{display:none!important}.file-viewer-menu button{min-height:44px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#eaf7ff;text-align:right;font:inherit;font-size:13px}.file-viewer-menu button:hover,.file-viewer-menu button:focus-visible{background:#ffffff18}.file-viewer-menu button.danger{color:#ffb0bb}.media-gallery-overlay{position:fixed;inset:0;z-index:10040;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 12px env(safe-area-inset-bottom);background:#06152bed;color:#eaf7ff;backdrop-filter:blur(16px)}.media-gallery-overlay.hidden{display:none!important}.media-gallery-overlay>header{height:58px;flex:0 0 58px;display:flex;align-items:center;gap:12px;padding:6px 4px;border-bottom:1px solid #60baff55}.media-gallery-overlay>header strong{flex:1}.media-gallery-grid{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));align-content:start;gap:8px;padding:12px 2px}.media-gallery-item{position:relative;aspect-ratio:1;overflow:hidden;border:1px solid #67c8ff66;border-radius:12px;background:#0b2d58;color:#eaf7ff;padding:0}.media-gallery-item img{width:100%;height:100%;object-fit:cover}.media-gallery-item-video{display:grid;place-items:center;font-size:36px}.media-gallery-item small{position:absolute;inset:auto 0 0;padding:18px 7px 6px;background:linear-gradient(transparent,#00152be8);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.media-gallery-empty{grid-column:1/-1;padding:28px 10px;text-align:center;color:#bedcff;line-height:1.9}


/* EPT brand lockup: acronym, full name and Persian tagline form one compact header. */
.brand{align-items:center!important}
.brand-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:1px!important;min-width:0!important;flex:1 1 auto!important}
.brand-copy>strong{display:block!important;line-height:1.08!important;letter-spacing:1.35px!important}
.brand-copy .brand-full-name{display:block!important;margin:0!important;color:#a9d8ff!important;font-family:Arial,"Segoe UI",sans-serif!important;font-size:9px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:.45px!important;white-space:nowrap!important}
.brand-copy .brand-tagline{display:block!important;margin:0!important;color:#d2eaff!important;font-size:10px!important;font-weight:600!important;line-height:1.35!important;white-space:nowrap!important}
:root[data-theme=light] .brand-copy .brand-full-name{color:#23618e!important}
:root[data-theme=light] .brand-copy .brand-tagline{color:#526983!important}
@media(max-width:430px){.brand{gap:8px!important}.brand-copy{gap:1px!important}.brand-copy .brand-full-name{font-size:8px!important;letter-spacing:.3px!important}.brand-copy .brand-tagline{font-size:9px!important}.brand-copy>strong{font-size:18px!important}}
#emojiPicker{display:flex;flex-direction:column;gap:7px;overflow:hidden}
#emojiPicker.hidden{display:none!important}
#emojiPicker .picker-tabs{display:flex;flex:0 0 auto;gap:8px}
#emojiPicker .picker-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-content:start;gap:4px;overflow:auto;overscroll-behavior:contain;max-height:calc(min(56dvh,420px) - 58px);padding:2px}
#emojiPicker .picker-grid.hidden{display:none!important}
#emojiPicker .picker-grid button{display:grid;place-items:center;width:100%;min-width:0;min-height:40px;padding:3px;font-size:23px;line-height:1}
#emojiPicker .picker-grid .sticker-choice{min-height:59px;font-size:34px}
@media(max-width:420px){#emojiPicker .picker-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}

/* Horizontal swipe on a message replies; vertical gesture remains native scrolling. */
.messages{touch-action:pan-y}.messages .msg{touch-action:pan-y;transition:transform .18s ease}.messages .msg.swiping{transition:none;filter:brightness(1.08)}

/* Large foreground message banner, positioned below the iPhone status area. */
.incoming-banner{position:fixed;z-index:12000;inset:calc(env(safe-area-inset-top,0px) + 10px) 12px auto;max-width:560px;margin-inline:auto;display:flex;align-items:stretch;gap:2px;padding:7px 8px;border:1px solid rgba(126,196,255,.72);border-radius:20px;background:linear-gradient(135deg,rgba(16,43,78,.97),rgba(31,84,137,.96));color:#f4fbff;box-shadow:0 16px 48px rgba(0,0,0,.46),0 0 24px rgba(63,160,255,.28);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);animation:ept-banner-in .24s ease-out}
.incoming-banner[hidden]{display:none!important}.incoming-banner-main{display:flex;flex:1;min-width:0;align-items:center;gap:12px;border:0;background:transparent;color:inherit;text-align:start;padding:8px 10px;cursor:pointer}.incoming-banner-avatar{display:grid;place-items:center;flex:0 0 50px;width:50px;height:50px;border:2px solid rgba(173,220,255,.9);border-radius:50%;overflow:hidden;background:#143963;color:#dff5ff;font-size:22px;font-weight:800;box-shadow:0 0 16px rgba(82,179,255,.3)}.incoming-banner-avatar img{width:100%;height:100%;object-fit:cover}.incoming-banner-copy{display:grid;gap:3px;min-width:0}.incoming-banner-copy strong{font-size:15px;line-height:1.35;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.incoming-banner-copy small{font-size:13px;line-height:1.45;color:#e1f1ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.incoming-banner-brand{align-self:flex-start;color:#8fceff;font-size:10px;font-weight:800;letter-spacing:.08em;padding:3px}.incoming-banner-close{align-self:flex-start;width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#eaf7ff;font-size:22px;line-height:1;cursor:pointer}
@keyframes ept-banner-in{from{opacity:0;transform:translateY(-16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:420px){.incoming-banner{inset-inline:9px;border-radius:18px}.incoming-banner-avatar{flex-basis:46px;width:46px;height:46px}.incoming-banner-copy strong{font-size:14px}.incoming-banner-copy small{font-size:12px}}

/* Let a horizontal drag on media bubbles start the same reply gesture as text. */
.messages .msg .bubble,.messages .msg .bubble img,.messages .msg .bubble video,.messages .msg .bubble audio,.messages .msg .bubble .media-open,.messages .msg .bubble .download{touch-action:pan-y}

/* EPT AI local model workspace */
.ai-free-card{max-width:720px;margin:5vh auto;padding:clamp(18px,4vw,30px);display:grid;gap:12px;border-radius:26px;background:linear-gradient(145deg,rgba(10,53,111,.82),rgba(3,18,48,.88));border:1px solid rgba(111,204,255,.76);box-shadow:0 0 36px rgba(0,131,255,.24),0 28px 80px rgba(0,7,25,.46),inset 0 1px 0 rgba(255,255,255,.22);backdrop-filter:blur(24px) saturate(170%);-webkit-backdrop-filter:blur(24px) saturate(170%)}
.ai-free-head{display:flex;align-items:center;gap:15px}.ai-free-head img{width:76px;height:76px;border-radius:22px;object-fit:cover;border:1px solid #76d5ff;box-shadow:0 0 25px #008bff66}.ai-free-head h2{margin:0;color:#fff;font-size:22px}.ai-free-head p{margin:5px 0 0;color:#c2ddf8;line-height:1.8}.ai-free-notice{padding:12px 14px;border-radius:14px;background:rgba(0,153,214,.13);border:1px solid #48cfff66;color:#ddf8ff;font-size:13px;line-height:1.8}.ai-free-label{font-size:14px;font-weight:800;color:#eef8ff}.ai-free-card select,.ai-free-card textarea{width:100%;border:1px solid #77bdff88;border-radius:13px;padding:13px 14px;background:rgba(4,23,54,.82);color:#fff;font:inherit;font-size:15px;line-height:1.8}.ai-free-card textarea{min-height:145px;resize:vertical}.ai-free-card textarea::placeholder{color:#aac8e7}.ai-free-actions{display:flex;gap:10px;flex-wrap:wrap}.ai-free-actions button,.ai-free-result-head button{min-height:44px;border-radius:12px;padding:10px 15px}.ai-free-actions .primary{background:linear-gradient(110deg,#0878ff,#06c9f4);border:1px solid #95eeff;color:white;font-weight:800}.ai-free-actions button:disabled{opacity:.5}.ai-free-card progress{width:100%;height:12px;accent-color:#24caff}.ai-free-result-wrap{display:grid;gap:10px}.ai-free-result-head{display:flex;justify-content:space-between;align-items:center;color:#fff}.ai-free-result{min-height:90px;padding:14px;border-radius:14px;background:rgba(4,23,54,.78);border:1px solid #77bdff77;color:white;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.ai-free-foot{color:#c0d7ef;line-height:1.8}.ai-free-loading{color:#addefd}
@media(max-width:600px){.ai-free-card{margin:24px auto;padding:17px;border-radius:21px}.ai-free-head img{width:62px;height:62px;border-radius:18px}.ai-free-head h2{font-size:19px}.ai-free-head p,.ai-free-notice,.ai-free-foot{font-size:12px}.ai-free-actions{display:grid;grid-template-columns:1fr}.ai-free-actions button{width:100%}}
/* Compact call controls and message actions */
.call-actions{gap:10px!important;margin-top:12px!important}
.call-control{width:58px!important;min-height:58px!important;gap:4px!important}
.call-control-icon{width:46px!important;height:46px!important;border:1px solid #7cc9f466!important;background:linear-gradient(145deg,#234d79,#142c4a)!important;box-shadow:0 5px 14px #00132c77!important;font-size:19px!important}
.call-control small{font-size:10px!important;color:#d4e7f7!important}
.chatheader #callAudio,.chatheader #callVideo{width:37px;height:37px;border-radius:13px;background:linear-gradient(145deg,#16467f,#102c54);border:1px solid #5e9dd766;box-shadow:0 4px 12px #00152c66}
.chatheader #callAudio svg,.chatheader #callVideo svg{width:19px;height:19px}
.msg-more{width:30px;height:30px;border-radius:11px;font-size:20px;box-shadow:0 3px 10px #00142d55}
.reply-preview{min-height:42px;padding:6px 12px;border-radius:12px 12px 0 0}
.reply-preview button{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ffffff12;font-size:19px}
.media-holder{gap:4px}.media-holder audio{margin:2px 0}.media-label{font-size:10px;text-decoration:none}
@media(max-width:800px){.call-actions{gap:7px!important}.call-control{width:54px!important;min-height:54px!important}.call-control-icon{width:43px!important;height:43px!important}.chatheader #callAudio,.chatheader #callVideo{width:33px;height:34px}}

.file-attachment{display:flex;align-items:center;gap:8px;max-width:min(320px,70vw);padding:8px 10px;border-radius:11px;background:#ffffff0b;border:1px solid #ffffff1a;color:#d9ecff;font-size:11px;overflow-wrap:anywhere}
.file-attachment span:last-child{min-width:0}
.file-attachment-open{display:flex;align-items:center;gap:8px;min-width:0;flex:1;padding:0;background:transparent;border:0;color:inherit;text-align:start;font:inherit;overflow-wrap:anywhere;cursor:pointer}
.file-attachment-open span:last-child{min-width:0;overflow-wrap:anywhere}
.file-attachment-download{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #62c8ff75;border-radius:10px;background:#1688df35;color:#d9f4ff;font-size:19px;cursor:pointer}
.file-attachment-download:active{transform:scale(.94);background:#1688df70}

.sidebar-tabs .nav-tab span svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.support-dialog{max-width:620px}.support-requests-list{display:grid;gap:8px;max-height:min(55vh,520px);overflow:auto}.support-request-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto 16px;align-items:center;gap:10px;width:100%;padding:10px;border:1px solid rgba(103,185,255,.28);border-radius:14px;background:rgba(8,30,66,.7);color:inherit;text-align:right}.support-request-row>span:nth-child(2){display:grid;min-width:0;gap:4px}.support-request-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.76}.support-request-row time{font-size:11px;opacity:.75}.support-request-row i{color:#22c5f5;font-style:normal}

.new-chat-contact-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.new-chat-contact-input button{white-space:nowrap;min-height:45px}.profile-open-trigger{border:0;background:none;color:inherit;text-align:right;cursor:pointer;font:inherit}.profile-open-trigger.avatar{padding:0;flex:0 0 auto;background:var(--soft)}.profile-open-trigger.chatperson{padding:0;display:grid;gap:3px;flex:1;min-width:0}.peer-profile-dialog{width:min(680px,96vw);max-height:94dvh;overflow:auto;padding:0}.peer-profile-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:14px;padding:10px 15px;background:var(--panel);border-bottom:1px solid var(--border)}.peer-profile-top strong{flex:1}.peer-profile-hero{display:grid;justify-items:center;padding:22px 18px 14px;text-align:center}.peer-profile-avatar{width:112px;height:112px;border-radius:50%;font-size:34px;margin:0 auto 8px}.peer-profile-hero h2{margin:4px 0;font-size:21px}.peer-profile-hero p{margin:4px;color:var(--muted);font-size:13px}.peer-profile-hero .peer-profile-bio{max-width:520px;white-space:pre-wrap;line-height:1.8}.peer-profile-info{display:grid;padding:8px 14px}.peer-profile-info-row{display:flex;align-items:center;gap:15px;min-height:65px;padding:9px 8px;border-bottom:1px solid var(--border);background:transparent;color:var(--text);text-align:right;text-decoration:none}.peer-profile-info-row>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}.peer-profile-info-row small{font-size:11px;color:var(--muted)}.profile-info-icon{width:34px;flex:0 0 34px;color:var(--accent);font-size:22px;text-align:center}.peer-profile-info-row input[type=checkbox]{width:44px;height:24px;accent-color:var(--accent)}.peer-profile-send{color:var(--accent)}.peer-profile-tabs{position:sticky;top:54px;z-index:1;display:flex;gap:4px;overflow-x:auto;padding:8px 10px;background:var(--panel);border-bottom:1px solid var(--border)}.peer-profile-tabs button{white-space:nowrap;border-radius:18px;padding:9px 13px;background:transparent;color:var(--muted)}.peer-profile-tabs button.active{background:var(--soft);color:var(--accent);font-weight:700}.peer-profile-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:8px;min-height:125px;padding:12px}.profile-media-item,.profile-group-item{display:grid;align-content:start;gap:6px;min-width:0;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--soft);color:var(--text);text-align:right}.profile-media-item img{width:100%;height:100px;object-fit:cover;border-radius:8px}.profile-media-item small,.profile-group-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.profile-file-item{min-height:110px;align-content:center;text-align:center}.profile-file-item span{font-size:30px}.profile-audio-item{grid-column:1/-1;display:grid;gap:8px;padding:10px;border:1px solid var(--border);border-radius:12px}.profile-audio-item audio{width:100%}.profile-group-item{grid-template-columns:36px minmax(0,1fr);align-items:center;align-content:center}.profile-group-item span{grid-row:span 2;font-size:24px}.profile-group-item small{grid-column:2}
@media(max-width:480px){.new-chat-contact-input{grid-template-columns:1fr}.new-chat-contact-input button{width:100%}.peer-profile-dialog{width:100%;max-height:96dvh;border-radius:22px 22px 0 0;align-self:end}.peer-profile-avatar{width:98px;height:98px}.peer-profile-items{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}}

#peerProfileModal{padding:calc(8px + env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom))!important;place-items:center!important}
.peer-profile-dialog{display:flex!important;flex-direction:column!important;width:min(560px,96vw)!important;max-height:min(92dvh,900px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:0!important;border:1px solid rgba(112,199,255,.66)!important;border-radius:24px!important;background:linear-gradient(155deg,rgba(11,43,88,.98),rgba(4,20,48,.98))!important;box-shadow:0 24px 70px #0009,0 0 28px #098dff35,inset 0 1px #ffffff26!important;direction:rtl!important}
.peer-profile-top{position:sticky!important;top:0!important;display:flex!important;flex:0 0 auto!important;align-items:center!important;min-height:56px!important;gap:10px!important;padding:8px 13px!important;background:rgba(5,24,55,.97)!important;border-bottom:1px solid #69baff45!important;backdrop-filter:blur(18px)!important}
.peer-profile-top strong{flex:1!important;text-align:right!important;font-size:15px!important;font-weight:800!important;color:#f6fbff!important}
.peer-profile-top .icon-button{width:38px!important;height:38px!important;border:1px solid #72c8ff66!important;border-radius:13px!important;background:#0b3264!important;color:#c8edff!important}
.peer-profile-hero{display:grid!important;flex:0 0 auto!important;justify-items:center!important;align-content:center!important;gap:3px!important;padding:17px 16px 12px!important;text-align:center!important;background:radial-gradient(ellipse at 50% 0,#1473c541,transparent 75%)!important}
.peer-profile-avatar{width:88px!important;height:88px!important;border:3px solid #89dfff!important;border-radius:50%!important;box-shadow:0 0 0 5px #1477dc35,0 8px 22px #001837a6!important;font-size:27px!important;margin:0 auto 6px!important}
.peer-profile-hero h2{max-width:100%!important;margin:2px 0!important;font-size:20px!important;font-weight:800!important;color:#fff!important;overflow-wrap:anywhere!important}
.peer-profile-hero p{max-width:100%!important;margin:2px 0!important;color:#bad5f3!important;font-size:12px!important;line-height:1.65!important}
.peer-profile-hero .peer-profile-bio:empty{display:none!important}
.peer-profile-info{display:grid!important;flex:0 0 auto!important;gap:5px!important;padding:8px 13px!important}
.peer-profile-info-row{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:12px!important;min-height:56px!important;padding:8px 10px!important;border:1px solid #6cbcff2b!important;border-radius:15px!important;background:linear-gradient(110deg,#123866a8,#0b2853b8)!important;color:#f4f9ff!important;text-align:right!important;text-decoration:none!important;overflow:hidden!important}
.peer-profile-info-row>span:nth-child(2){display:grid!important;gap:3px!important;flex:1 1 auto!important;min-width:0!important;direction:rtl!important}
.peer-profile-info-row strong{max-width:100%!important;font-size:13px!important;font-weight:700!important;overflow-wrap:anywhere!important;color:#f5faff!important}
.peer-profile-info-row small{font-size:10px!important;color:#b5d3f3!important}
.profile-info-icon{display:grid!important;place-items:center!important;width:37px!important;height:37px!important;flex:0 0 37px!important;border:1px solid #6ccaff55!important;border-radius:13px!important;background:linear-gradient(145deg,#1466b6a8,#0b2c5c)!important;color:#8ceaff!important;font-size:20px!important}
.profile-info-icon svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.peer-profile-info-row input[type=checkbox]{width:42px!important;height:23px!important;flex:0 0 42px!important;margin:0!important;accent-color:#15a9ff!important}
.peer-profile-send{border-color:#5ed7ff77!important;background:linear-gradient(105deg,#096ddd,#08a9dc)!important;box-shadow:0 5px 17px #087de544,inset 0 1px #ffffff35!important}
.peer-profile-send .profile-info-icon{background:#d8f7ff22!important;border-color:#c5f3ff55!important;color:#fff!important}
.peer-profile-tabs{position:sticky!important;top:56px!important;z-index:1!important;display:flex!important;flex:0 0 auto!important;gap:4px!important;overflow-x:auto!important;padding:8px 10px!important;background:rgba(5,24,55,.98)!important;border-top:1px solid #68b9fa2e!important;border-bottom:1px solid #68b9fa48!important;scrollbar-width:none!important}
.peer-profile-tabs button{flex:0 0 auto!important;min-height:37px!important;white-space:nowrap!important;border:1px solid transparent!important;border-radius:18px!important;padding:8px 12px!important;background:transparent!important;color:#bfd8f4!important;font-size:11px!important}
.peer-profile-tabs button.active{border-color:#79dfff77!important;background:linear-gradient(110deg,#0879e7,#08a9d9)!important;color:#fff!important;font-weight:800!important;box-shadow:0 0 15px #087bdb44!important}
.peer-profile-items{display:grid!important;flex:1 1 auto!important;grid-template-columns:repeat(auto-fill,minmax(92px,1fr))!important;align-content:start!important;gap:8px!important;min-height:95px!important;max-height:min(27dvh,220px)!important;overflow:auto!important;padding:10px 12px!important;overscroll-behavior:contain!important}
.profile-media-item,.profile-group-item{min-width:0!important;max-width:100%!important;overflow:hidden!important;padding:6px!important;border:1px solid #65b7ff3d!important;border-radius:13px!important;background:linear-gradient(145deg,#12345f,#0a2348)!important;color:#eef8ff!important}
.profile-media-item img,.peer-profile-items video{display:block!important;width:100%!important;height:88px!important;max-width:100%!important;max-height:88px!important;object-fit:cover!important;border-radius:9px!important}
.profile-file-item{min-height:100px!important;align-content:center!important;text-align:center!important}
.profile-audio-item{grid-column:1/-1!important;min-width:0!important;padding:9px!important;border:1px solid #65b7ff3d!important;border-radius:13px!important;background:#102e55!important}
.profile-audio-item audio{width:100%!important;max-width:100%!important}
.nav-tab.nav-support-tab{position:relative!important;isolation:isolate!important;border-color:#62ceff9c!important;background:linear-gradient(145deg,#075cb6,#0b2a58)!important;box-shadow:0 0 18px #068dff38,inset 0 1px #ffffff35!important}
.nav-tab.nav-support-tab .nav-support-icon-wrap{display:grid!important;place-items:center!important;width:39px!important;height:39px!important;border:1px solid #8be5ff9c!important;border-radius:14px!important;background:radial-gradient(circle at 32% 22%,#52dbff,#1583f2 54%,#0c377c)!important;box-shadow:0 0 17px #06aaff71,inset 0 1px #ffffffa6!important}
.sidebar-tabs .nav-tab.nav-support-tab .nav-support-icon-wrap svg{width:23px!important;height:23px!important;fill:none!important;stroke:#fff!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 1px 3px #003c7b)!important}
.sidebar-tabs .nav-tab.nav-support-tab small{color:#effaff!important;font-weight:800!important}
.nav-tab.nav-support-tab:hover{transform:translateY(-2px)!important;box-shadow:0 0 24px #0aa8ff75,inset 0 1px #ffffff6b!important}
@media(max-width:600px){.peer-profile-dialog{width:min(560px,100vw)!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px)!important;border-radius:22px 22px 16px 16px!important}.peer-profile-avatar{width:76px!important;height:76px!important}.peer-profile-items{max-height:22dvh!important;min-height:78px!important}.peer-profile-info-row{min-height:52px!important}}
@media(prefers-reduced-motion:reduce){.nav-tab.nav-support-tab,.nav-tab.nav-support-tab:hover{transition:none!important;transform:none!important}}

/* Clear EPT identity card and optional full-size profile photo preview. */
#peerProfileAvatar,#profileAvatar,.selfpic .avatar{cursor:zoom-in}
#peerProfileAvatar:hover,#profileAvatar:hover{filter:brightness(1.08);transform:scale(1.035)}
#peerProfileQr .profile-info-icon{border-color:#72c9ff55;background:linear-gradient(145deg,#155b9d99,#0c2a52);color:#9eeaff}
#peerProfileQr .profile-info-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.avatar-lightbox{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:rgba(1,8,21,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.avatar-lightbox.hidden{display:none!important}
.avatar-lightbox-close{position:absolute;top:max(18px,env(safe-area-inset-top));right:18px;width:44px;height:44px;border:1px solid #91dfff88;border-radius:15px;background:#0b2c53;color:#fff;font-size:29px;line-height:1;box-shadow:0 0 18px #078fff55;cursor:pointer}
.avatar-lightbox-figure{display:grid;justify-items:center;gap:12px;max-width:100%;max-height:100%;margin:0}
.avatar-lightbox-figure img{display:block;max-width:min(88vw,850px);max-height:82dvh;object-fit:contain;border:2px solid #8bdeff;border-radius:20px;box-shadow:0 0 0 5px #0d83e745,0 16px 50px #0009}
.avatar-lightbox-figure figcaption{max-width:88vw;color:#eef8ff;font-weight:700;text-align:center;overflow-wrap:anywhere}
body.avatar-lightbox-open{overflow:hidden}
@media(max-width:600px){.avatar-lightbox{padding:18px}.avatar-lightbox-figure img{max-width:92vw;max-height:78dvh;border-radius:16px}}

/* Beta 2.34: center the profile card inside the safe viewport on phones. */
@media(max-width:600px){
 #peerProfileModal{padding:calc(env(safe-area-inset-top) + 12px) 14px calc(env(safe-area-inset-bottom) + 12px)!important;place-items:center!important}
 #peerProfileModal .peer-profile-dialog{box-sizing:border-box!important;width:min(560px,calc(100vw - 28px))!important;max-width:100%!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)!important;align-self:center!important;margin:0 auto!important;border-radius:22px!important}
}
/* Prefer the received video as the call stage; keep self view as a small preview. */
.call-dialog[data-mode="video"] #remoteVideo{display:block!important;z-index:1!important;opacity:1!important;object-fit:cover!important;cursor:zoom-in!important}
.call-dialog[data-mode="video"] #localVideo,
.call-dialog[data-mode="video"][data-connected="false"] #localVideo{display:block!important;z-index:3!important;inset:auto 16px 16px auto!important;width:clamp(104px,24vw,166px)!important;height:clamp(140px,31vw,220px)!important;border:2px solid #b9edff!important;border-radius:22px!important;object-fit:cover!important;box-shadow:0 12px 35px #0009,0 0 25px #1baaff75!important}
.call-dialog[data-mode="video"]:not([data-remote-video="true"]) .audio-stage{display:flex!important;z-index:2!important}
.call-dialog[data-mode="video"][data-remote-video="true"] .audio-stage{display:none!important}
.remote-video-fullscreen{position:fixed!important;inset:0!important;z-index:13000!important;display:block!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#000!important;overscroll-behavior:contain!important;touch-action:manipulation!important}
.remote-video-fullscreen.hidden{display:none!important}
.remote-video-fullscreen:fullscreen{width:100vw!important;height:100dvh!important;background:#000!important}
.remote-video-fullscreen #remoteFullscreenVideo{position:absolute!important;inset:0!important;z-index:0!important;display:block!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;object-fit:contain!important;background:#000!important;border:0!important;border-radius:0!important}
.remote-video-fullscreen #remoteFullscreenLocalVideo{position:absolute!important;z-index:2!important;right:max(16px,env(safe-area-inset-right))!important;bottom:max(22px,calc(env(safe-area-inset-bottom) + 16px))!important;left:auto!important;top:auto!important;display:block!important;width:clamp(112px,28vw,170px)!important;height:clamp(156px,36vw,220px)!important;max-width:34vw!important;max-height:30dvh!important;object-fit:cover!important;background:#09203b!important;border:2px solid #e5f8ff!important;border-radius:18px!important;box-shadow:0 8px 28px #000a,0 0 0 1px #52caff!important;touch-action:none!important}
.remote-video-fullscreen-close{position:absolute!important;z-index:4!important;top:max(14px,env(safe-area-inset-top))!important;right:max(14px,env(safe-area-inset-right))!important;width:46px!important;height:46px!important;border:1px solid #d5efff88!important;border-radius:50%!important;background:#071a35cc!important;color:white!important;font-size:30px!important;line-height:1!important;box-shadow:0 4px 18px #0009!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
body.remote-video-fullscreen-open{overflow:hidden!important}
@media(prefers-reduced-motion:reduce){.call-dialog #remoteVideo{transition:none!important}}
#remoteAudio{display:none!important}

/* Inbox focus: show the chat/group list at full height after selecting Chats.
   Shared by desktop web, iOS Safari/PWA, and Android WebView clients. */
.app.inbox-focused .sidebar>:not(.conversation-filters):not(.listhead):not(#chatList):not(.sidebarfoot){display:none!important}
.app.inbox-focused .conversation-filters{flex:0 0 auto!important;margin-top:12px!important}
.app.inbox-focused .listhead{flex:0 0 auto!important}
.app.inbox-focused #chatList{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}

/* Beta 2.49 — compact approved account/header layout */
#mainView .sidebar>.brand{min-height:58px!important;padding:7px 10px!important;gap:9px!important;display:flex!important;align-items:center!important}
#mainView .sidebar>.brand>img{width:36px!important;height:36px!important;flex:0 0 36px!important}
#mainView .sidebar>.brand .brand-copy{flex:0 0 auto!important;gap:1px!important}
#mainView .sidebar>.brand .brand-copy>strong{font-size:16px!important;letter-spacing:.7px!important}
#mainView .sidebar>.brand .brand-full-name{font-size:7px!important;letter-spacing:0!important}
#mainView .sidebar>.brand .brand-tagline{display:none!important}
#mainView .compact-account{min-width:0;flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:7px;padding:3px 6px}
#mainView .compact-account .selfpic{padding:0;background:transparent;border:0;cursor:pointer}
#mainView .compact-account .avatar{width:34px!important;height:34px!important;flex:0 0 34px!important;border:1px solid #6fcfff;box-shadow:0 0 0 2px #43b7fa2b}
#mainView .compact-account-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px}
#mainView .compact-account-name{display:block;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750;color:#e8f5ff}
#mainView .compact-account-id{display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Arial,"Segoe UI",sans-serif;font-size:8px;line-height:1.2;color:#9bcdf1;opacity:.92}
#mainView .brand-settings{width:35px!important;height:35px!important;flex:0 0 35px!important;font-size:17px!important}
#mainView .sidebar>.ai-feature{display:block!important;margin:0 10px 7px!important;padding:8px 10px!important;border-radius:15px!important}
#mainView .sidebar>.ai-feature .ai-head{min-height:48px!important;gap:8px!important}
#mainView .sidebar>.ai-feature .ai-orb{width:42px!important;height:42px!important;border-radius:13px!important}
#mainView .sidebar>.ai-feature .ai-copy{gap:2px!important}
#mainView .sidebar>.ai-feature .ai-copy strong{font-size:14px!important;line-height:1.25!important}
#mainView .sidebar>.ai-feature .ai-copy small{font-size:9px!important;line-height:1.35!important}
#mainView .sidebar>.ai-feature .coming-tag{font-size:8px!important;padding:4px 5px!important}
#mainView .sidebar>.ai-feature .ai-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;margin-top:6px!important}
#mainView .sidebar>.ai-feature .ai-actions button{min-height:30px!important;padding:4px 3px!important;font-size:8px!important;line-height:1.25!important;border-radius:9px!important}
#mainView .sidebar-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#mainView .settings-logout{color:#ffc7d6!important;border-color:#a74362!important}
@media(max-width:800px){#mainView .sidebar>.brand{min-height:54px!important;padding:6px 8px!important}#mainView .sidebar>.brand>img{width:32px!important;height:32px!important;flex-basis:32px!important}#mainView .compact-account-name{max-width:96px;font-size:10px}#mainView .compact-account-id{max-width:102px;font-size:7px}#mainView .brand-settings{width:33px!important;height:33px!important;flex-basis:33px!important}}

/* Beta 2.51 — keep the complete account name visible in narrow headers */
#mainView .compact-account-info{max-width:148px;flex:0 1 148px}
#mainView .compact-account-name{max-width:148px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;line-height:1.2!important;text-align:start}
@media(max-width:430px){#mainView .compact-account-info{max-width:132px;flex:0 1 132px}#mainView .compact-account-name{max-width:132px!important;font-size:10px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}#mainView .compact-account-id{max-width:120px}}

/* Beta 2.52: strengthen light theme text and group member cards. */
:root[data-theme="light"] .sidebar,:root[data-theme="light"] .conversation{color:#18324f}
:root[data-theme="light"] .brand strong{background:none!important;-webkit-text-fill-color:#155c9d!important;color:#155c9d!important}
:root[data-theme="light"] .brand small,:root[data-theme="light"] .listhead b,:root[data-theme="light"] .chatrow-info small,:root[data-theme="light"] .filter-chip,:root[data-theme="light"] .nav-tab,:root[data-theme="light"] .sidebarfoot,:root[data-theme="light"] .sidebar .muted{color:#425d7b!important}
:root[data-theme="light"] .nav-tab{background:#edf4fc!important;border-color:#c6d5e7!important}
:root[data-theme="light"] .nav-tab.active,:root[data-theme="light"] .filter-chip.active{color:#fff!important}
:root[data-theme="light"] .sidebar input::placeholder,:root[data-theme="light"] .conversation input::placeholder,:root[data-theme="light"] .composer textarea::placeholder{color:#526983!important;opacity:1}
:root[data-theme="light"] .icon-button,:root[data-theme="light"] .round,:root[data-theme="light"] .search button{color:#204e7b!important}
:root[data-theme="light"] .member-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:11px;align-items:center;background:#eef4fb!important;color:#173452!important;border:1px solid #c1d1e3;border-radius:14px;padding:10px 12px;min-height:66px}
:root[data-theme="light"] .member-row small{color:#405d7b!important}
.member-avatar{width:44px;height:44px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(140deg,#35b9f2,#2765c8);border:2px solid #80d7ff;color:#fff;font-size:17px;font-weight:800;box-shadow:0 3px 12px #168bff30}
.member-avatar img{width:100%;height:100%;object-fit:cover}
.member-copy{display:grid;gap:4px;min-width:0}.member-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.member-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.5}
.group-details-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.group-details-head h2{margin:0}.group-members-caption{margin:5px 0 0;color:#abc4df;font-size:11px}.group-details-head button{white-space:nowrap;font-size:11px}
:root[data-theme="light"] .group-members-caption{color:#455f7d}
#addMembersFromContacts:not(.hidden){display:inline-flex;align-items:center;justify-content:center;min-height:40px}
@media(max-width:480px){.group-details-head{align-items:flex-start;flex-direction:column}.group-details-head button{width:100%}.member-row{grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding:8px}.member-avatar{width:38px;height:38px}}
/* Three airy, light wallpaper presets. */
#chatView[data-wallpaper="morning"]{background-image:linear-gradient(135deg,#f7fbff10,#ffffff08),url('/assets/wallpapers/morning.svg?v=1')!important;background-size:cover!important;background-position:center!important}
#chatView[data-wallpaper="paper"]{background-image:linear-gradient(135deg,#ffffff08,#eef7ff08),url('/assets/wallpapers/paper.svg?v=1')!important;background-size:cover!important;background-position:center!important}
#chatView[data-wallpaper="blossom"]{background-image:linear-gradient(135deg,#fff6fa10,#ffffff06),url('/assets/wallpapers/blossom.svg?v=1')!important;background-size:cover!important;background-position:center!important}
.wallpaper-thumb[data-preview="morning"]{background-image:url('/assets/wallpapers/morning.svg?v=1')!important}
.wallpaper-thumb[data-preview="paper"]{background-image:url('/assets/wallpapers/paper.svg?v=1')!important}
.wallpaper-thumb[data-preview="blossom"]{background-image:url('/assets/wallpapers/blossom.svg?v=1')!important}
.wallpaper-option[data-wallpaper="morning"],.wallpaper-option[data-wallpaper="paper"],.wallpaper-option[data-wallpaper="blossom"]{background:linear-gradient(145deg,#f8fbff,#e8f2fb)!important;border-color:#bfd4e8!important}
.wallpaper-option[data-wallpaper="morning"] .wp-name,.wallpaper-option[data-wallpaper="paper"] .wp-name,.wallpaper-option[data-wallpaper="blossom"] .wp-name{color:#23405f!important}

/* Beta 2.53: high-contrast light-mode navigation with readable labels. */
:root[data-theme="light"] .sidebarfoot{background:#f1f6fc!important;border-top:1px solid #c7d5e5!important;color:#314e6c!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab{-webkit-appearance:none!important;appearance:none!important;background:linear-gradient(180deg,#fff,#edf3fa)!important;border:1px solid #c6d5e6!important;color:#294968!important;box-shadow:0 3px 10px #17385812,inset 0 1px #fff!important;text-shadow:none!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab span,:root[data-theme="light"] .sidebar-tabs .nav-tab small{color:#345675!important;opacity:1!important;text-shadow:none!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab.active{background:linear-gradient(130deg,#1878df,#08a9cf)!important;border-color:#1687d8!important;color:#fff!important;box-shadow:0 4px 14px #087bcc35,inset 0 1px #ffffff8c!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab.active span,:root[data-theme="light"] .sidebar-tabs .nav-tab.active small{color:#fff!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab:focus-visible{outline:3px solid #2478d0!important;outline-offset:2px}
/* Contact picker rebuilt as a compact, calm card-based surface. */
.contacts-dialog{width:min(620px,96vw)!important;max-height:min(90dvh,850px)!important;padding:0!important;border-radius:24px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.contacts-head{display:flex;align-items:flex-start;gap:14px;padding:19px 20px 14px;border-bottom:1px solid #8dc8ff24;background:linear-gradient(125deg,#0d3265,#102447 72%,#15365d)}
.contacts-head-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border:1px solid #82d9ff83;border-radius:16px;background:linear-gradient(145deg,#147ce0,#12a8c9);color:#fff;font-size:25px;box-shadow:0 5px 17px #0087d940}
.contacts-head-copy{min-width:0;flex:1}.contacts-kicker{color:#6dd7ff;font:800 9px 'Segoe UI',Arial,sans-serif;letter-spacing:2px;direction:ltr;display:block;margin:0 0 4px}.contacts-head h2{color:#f5fbff!important}.contacts-head p{margin:5px 0 0;color:#d0e2f5!important;font-size:11px!important;line-height:1.8!important}.contacts-close-icon{width:35px;height:35px;flex:0 0 35px;border:1px solid #b0d7fa38;border-radius:12px;background:#ffffff14;color:#eaf6ff;font-size:24px;line-height:1}
.contact-import-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:9px!important;margin:12px 16px 8px!important}.contact-import-card{display:grid;grid-template-columns:39px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:10px;text-align:right;min-height:64px;padding:9px 12px;border:1px solid #74baff48;border-radius:15px;background:linear-gradient(145deg,#16345a,#102746);color:#eef8ff;box-shadow:inset 0 1px #ffffff12;transition:transform .15s ease,border-color .15s ease}.contact-import-card>span{grid-row:span 2;width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:#167bd0;color:#fff;font-size:19px}.contact-import-card strong{font-size:12px}.contact-import-card small{font-size:10px;color:#bcd3ea}.contact-import-card:hover{transform:translateY(-1px);border-color:#72d8ff}
.contacts-search-wrap{display:flex!important;align-items:center;gap:9px;margin:5px 16px 8px!important;padding:0 12px;border:1px solid #8eb7db55;border-radius:14px;background:#091d38;color:#95c4eb}.contacts-search-wrap>span{font-size:22px}.contacts-search-wrap input{width:100%;height:43px!important;margin:0!important;padding:8px 0!important;border:0!important;background:transparent!important;color:#f4f9ff!important;box-shadow:none!important;font-size:13px}.contacts-search-wrap input::placeholder{color:#9cb6d0!important;opacity:1}
.contacts-status{margin:0 16px 7px!important;padding:8px 11px;border:1px solid #8acfff24;border-radius:12px;background:#ffffff09;color:#c5d9ed!important;font-size:10px!important}.phone-contacts-list{max-height:min(43dvh,440px)!important;overflow:auto!important;overscroll-behavior:contain;gap:7px!important;margin:0 12px!important;padding:2px 4px 8px!important}.phone-contact-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;gap:10px!important;min-height:64px;padding:8px 10px!important;border:1px solid #89bce72b!important;border-radius:15px!important;background:linear-gradient(110deg,#ffffff0a,#ffffff04)!important;transition:background .15s ease,border-color .15s ease,transform .15s ease}.phone-contact-row.is-selected{border-color:#41baff!important;background:#1386e91b!important}.phone-contact-avatar{width:40px;height:40px;display:grid;place-items:center;border:1px solid #89d8ff9c;border-radius:14px;background:linear-gradient(140deg,#18a8d3,#2865c9);color:#fff;font-size:17px;font-weight:800;box-shadow:0 4px 12px #147bd329}.phone-contact-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center}.phone-contact-copy strong{grid-column:1/-1;color:#f1f7ff;font-size:12px}.phone-contact-copy small{color:#b6cce3!important;font-size:10px!important}.contact-status-badge{justify-self:end;padding:3px 7px;border:1px solid #84bce535;border-radius:20px;background:#ffffff0a;color:#bdd4eb;font-size:9px;font-style:normal;white-space:nowrap}.contact-status-badge.is-registered{background:#0e896b22;border-color:#55d6aa65;color:#8ce4c2}.contact-status-badge.is-unregistered{background:#d67c2717;border-color:#ffbf7455;color:#ffd19a}.contact-select{width:28px;height:28px;display:grid!important;place-items:center;margin:0!important}.contact-select input{position:absolute;width:1px;height:1px;opacity:0}.contact-select>span{width:21px;height:21px;display:grid;place-items:center;border:1.5px solid #80b3dc;border-radius:7px;background:#0c2545;transition:.15s}.contact-select input:checked+span{background:#0c9fe1;border-color:#73dcff}.contact-select input:checked+span:after{content:'✓';font-size:14px;font-weight:900;color:white}.contact-select input:focus-visible+span{outline:2px solid #7bd9ff;outline-offset:2px}.contact-invite-action{grid-column:2/4;justify-self:start;min-height:32px;padding:6px 10px!important;border-radius:10px!important}
.contacts-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:11px 15px max(12px,env(safe-area-inset-bottom));border-top:1px solid #8dc8ff2b;background:#0a1c35}.contacts-actions button{min-height:38px;padding:8px 11px!important;font-size:10px!important}.contacts-actions .primary{box-shadow:0 4px 15px #087ed13b}.contacts-actions .contacts-clear{margin-inline-start:auto}
:root[data-theme="light"] #contactsModal{background:#13294488!important}
:root[data-theme="light"] .contacts-dialog{background:#f7faff!important;color:#173653!important;border-color:#b4cbe0!important;box-shadow:0 28px 80px #132a4b45!important}
:root[data-theme="light"] .contacts-head{background:linear-gradient(125deg,#e5f2ff,#f7fbff 78%);border-color:#d0dfed}
:root[data-theme="light"] .contacts-head h2{color:#173b60!important}
:root[data-theme="light"] .contacts-head p{color:#435f7d!important}
:root[data-theme="light"] .contacts-kicker{color:#1372b8}
:root[data-theme="light"] .contacts-close-icon{background:#fff;color:#345574;border-color:#c5d6e6}
:root[data-theme="light"] .contact-import-card{background:linear-gradient(145deg,#fff,#edf5fd);border-color:#c5d8e9;color:#234462;box-shadow:0 3px 12px #17395b10}
:root[data-theme="light"] .contact-import-card small{color:#536d88}
:root[data-theme="light"] .contact-import-card>span{background:linear-gradient(145deg,#2488df,#10a4bf)}
:root[data-theme="light"] .contacts-search-wrap{background:#fff;border-color:#bdcfe1;color:#3b6992}
:root[data-theme="light"] .contacts-search-wrap input{color:#193b5e!important}
:root[data-theme="light"] .contacts-search-wrap input::placeholder{color:#607891!important}
:root[data-theme="light"] .contacts-status{background:#edf5fd;color:#385674!important;border-color:#cbdceb}
:root[data-theme="light"] .phone-contact-row{background:linear-gradient(110deg,#fff,#f4f8fd)!important;border-color:#d2deea!important}
:root[data-theme="light"] .phone-contact-row.is-selected{background:#e5f3ff!important;border-color:#4ba5e5!important}
:root[data-theme="light"] .phone-contact-copy strong{color:#193b5d}
:root[data-theme="light"] .phone-contact-copy small{color:#526d88!important}
:root[data-theme="light"] .contact-status-badge{background:#eef4fa;color:#506a84;border-color:#cbd9e6}
:root[data-theme="light"] .contact-select>span{background:#fff;border-color:#8da9c4}
:root[data-theme="light"] .contacts-actions{background:#edf4fb;border-color:#d0dce9}
:root[data-theme="light"] .contacts-actions .secondary{background:#fff!important;color:#254766!important;border:1px solid #c7d6e5!important}
:root[data-theme="light"] .contacts-actions .primary{background:linear-gradient(120deg,#1776d5,#079fc4)!important;color:#fff!important}
@media(max-width:520px){.contacts-dialog{width:100vw!important;max-height:calc(100dvh - env(safe-area-inset-top) - 4px)!important;align-self:end!important;border-radius:23px 23px 0 0!important}.contacts-head{padding:15px 13px 12px;gap:10px}.contacts-head-icon{width:42px;height:42px;flex-basis:42px}.contacts-head p{font-size:10px!important}.contact-import-actions{margin-inline:11px!important}.phone-contacts-list{max-height:calc(100dvh - 390px)!important;margin-inline:8px!important}.contacts-actions{padding-inline:10px;gap:6px}.contacts-actions button{flex:1 1 auto}.contacts-actions .contacts-clear{margin-inline-start:0}.phone-contact-row{grid-template-columns:38px minmax(0,1fr) 27px;gap:7px!important;padding:7px 8px!important}.phone-contact-avatar{width:36px;height:36px;border-radius:12px}.contact-invite-action{grid-column:2/4}}

/* Glassy light palette: cool blue translucency instead of flat white panels. */
:root[data-theme="light"]{--page:#dbeafb;--panel:rgba(235,245,255,.78);--soft:rgba(205,226,247,.62);--input:rgba(246,250,255,.78);--border:rgba(86,133,180,.34);--text:#153757;--muted:#496783;--accent:#126ec0;--accent2:#10a4ba;--chatbg:#deedfb;--bubble:rgba(255,255,255,.77);--mine:rgba(198,225,250,.85)}
:root[data-theme="light"] body{background:radial-gradient(ellipse at 8% 7%,#ffffffb5,transparent 38%),radial-gradient(ellipse at 95% 88%,#71b5e74d,transparent 42%),linear-gradient(135deg,#d8eafb,#eaf4ff 52%,#d2e8fa)!important}
:root[data-theme="light"] .sidebar,:root[data-theme="light"] .conversation{background:linear-gradient(145deg,rgba(242,249,255,.80),rgba(194,222,247,.69))!important;border-color:rgba(86,137,184,.43)!important;backdrop-filter:blur(26px) saturate(165%)!important;-webkit-backdrop-filter:blur(26px) saturate(165%)!important;box-shadow:0 18px 48px rgba(30,82,131,.15),inset 0 1px rgba(255,255,255,.75)!important}
:root[data-theme="light"] .brand,:root[data-theme="light"] .self,:root[data-theme="light"] .tools,:root[data-theme="light"] .search input,:root[data-theme="light"] .chatheader,:root[data-theme="light"] .composer{background:rgba(235,246,255,.57)!important;border-color:rgba(93,143,189,.33)!important;backdrop-filter:blur(20px) saturate(160%)!important;-webkit-backdrop-filter:blur(20px) saturate(160%)!important}
:root[data-theme="light"] .chatview{background:radial-gradient(ellipse at 14% 12%,rgba(255,255,255,.58),transparent 46%),radial-gradient(ellipse at 88% 87%,rgba(95,175,224,.22),transparent 44%),linear-gradient(145deg,#dcecfb,#eaf5ff 55%,#cfe5f7)!important}
:root[data-theme="light"] .chatrow{border-bottom-color:rgba(70,118,166,.19)!important;color:#173c5e!important}
:root[data-theme="light"] .chatrow-info strong,:root[data-theme="light"] .chatperson strong,:root[data-theme="light"] .listhead b{color:#173958!important}
:root[data-theme="light"] .chatrow-info small,:root[data-theme="light"] .chatperson small,:root[data-theme="light"] .self small{color:#405e7d!important}
:root[data-theme="light"] .conversation-filters .filter-chip{background:rgba(245,250,255,.62)!important;color:#264a6c!important;border-color:rgba(77,126,173,.42)!important;backdrop-filter:blur(14px)!important}
:root[data-theme="light"] .conversation-filters .filter-chip.selected{background:linear-gradient(125deg,#176fc7,#12a8c6)!important;color:#fff!important;border-color:#41b5e4!important}
:root[data-theme="light"] .sidebarfoot{background:rgba(191,220,246,.56)!important;border-top-color:rgba(77,131,179,.4)!important;backdrop-filter:blur(24px) saturate(170%)!important;-webkit-backdrop-filter:blur(24px) saturate(170%)!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab{background:linear-gradient(145deg,rgba(235,247,255,.74),rgba(177,211,241,.56))!important;border-color:rgba(80,132,180,.52)!important;color:#183d60!important;box-shadow:inset 0 1px rgba(255,255,255,.84),0 5px 14px rgba(26,72,116,.12)!important;backdrop-filter:blur(18px) saturate(165%)!important;-webkit-backdrop-filter:blur(18px) saturate(165%)!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab span,:root[data-theme="light"] .sidebar-tabs .nav-tab small{color:#244e73!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab.active{background:linear-gradient(125deg,#1675d7,#08a6c9)!important;color:#fff!important;border-color:#4bc7ec!important;box-shadow:0 5px 18px rgba(0,116,201,.3),inset 0 1px rgba(255,255,255,.55)!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab.active span,:root[data-theme="light"] .sidebar-tabs .nav-tab.active small{color:#fff!important}
:root[data-theme="light"] .sidebar .icon-button,:root[data-theme="light"] .chatheader .icon-button,:root[data-theme="light"] .round.subtle{background:rgba(220,238,254,.7)!important;border-color:rgba(82,133,181,.4)!important;color:#20517b!important;backdrop-filter:blur(12px)!important}
:root[data-theme="light"] #contactsModal{background:rgba(22,49,78,.48)!important;backdrop-filter:blur(18px)!important}
:root[data-theme="light"] .contacts-dialog{background:linear-gradient(145deg,rgba(230,243,255,.91),rgba(202,226,248,.88))!important;border-color:rgba(91,144,192,.55)!important;backdrop-filter:blur(30px) saturate(175%)!important;-webkit-backdrop-filter:blur(30px) saturate(175%)!important;box-shadow:0 28px 90px rgba(19,56,91,.35),inset 0 1px rgba(255,255,255,.88)!important}
:root[data-theme="light"] .contacts-head{background:linear-gradient(125deg,rgba(176,214,246,.72),rgba(228,242,255,.66))!important;border-bottom-color:rgba(89,145,194,.32)!important;backdrop-filter:blur(20px)!important}
:root[data-theme="light"] .contact-import-card{background:linear-gradient(145deg,rgba(246,251,255,.77),rgba(193,222,247,.56))!important;border-color:rgba(91,144,192,.48)!important;box-shadow:inset 0 1px rgba(255,255,255,.83),0 5px 15px rgba(34,82,127,.09)!important;backdrop-filter:blur(16px)!important}
:root[data-theme="light"] .phone-contact-row{background:linear-gradient(110deg,rgba(247,251,255,.76),rgba(208,231,250,.62))!important;border-color:rgba(88,139,186,.35)!important;box-shadow:inset 0 1px rgba(255,255,255,.65)!important;backdrop-filter:blur(14px)!important}
:root[data-theme="light"] .phone-contact-row.is-selected{background:linear-gradient(110deg,rgba(210,235,255,.86),rgba(166,211,246,.65))!important;border-color:#3698d4!important}
:root[data-theme="light"] .contacts-search-wrap,:root[data-theme="light"] .contacts-status,:root[data-theme="light"] .contacts-actions{background:rgba(228,241,253,.65)!important;backdrop-filter:blur(18px)!important}
:root[data-theme="light"] .contacts-search-wrap input{background:transparent!important}
:root[data-theme="light"] .contacts-actions{border-top-color:rgba(81,135,184,.31)!important}

/* Beta 2.53 refinement: visible frosted-glass depth without a washed-out white theme. */
:root[data-theme="light"]{--page:#d0e5f8;--panel:rgba(191,218,243,.76);--soft:rgba(161,199,232,.52);--input:rgba(215,234,251,.72);--border:rgba(48,102,155,.43);--text:#123555;--muted:#355976;--accent:#075fae;--accent2:#008fae;--chatbg:#d1e6f8;--bubble:rgba(218,236,251,.76);--mine:rgba(166,207,241,.82)}
:root[data-theme="light"] body{background:radial-gradient(ellipse at 12% 12%,rgba(255,255,255,.48),transparent 35%),radial-gradient(ellipse at 86% 18%,rgba(93,165,220,.36),transparent 39%),radial-gradient(ellipse at 78% 92%,rgba(50,127,193,.28),transparent 40%),linear-gradient(135deg,#c6def3 0%,#e0eef9 48%,#bad8f0 100%)!important}
:root[data-theme="light"] .sidebar,:root[data-theme="light"] .conversation{background:linear-gradient(142deg,rgba(217,235,250,.70),rgba(144,187,224,.59))!important;border-color:rgba(43,98,151,.5)!important;backdrop-filter:blur(30px) saturate(185%)!important;-webkit-backdrop-filter:blur(30px) saturate(185%)!important;box-shadow:0 20px 52px rgba(22,69,113,.2),inset 0 1px rgba(255,255,255,.8),inset 0 -1px rgba(42,101,156,.14)!important}
:root[data-theme="light"] .brand,:root[data-theme="light"] .self,:root[data-theme="light"] .tools,:root[data-theme="light"] .search input,:root[data-theme="light"] .chatheader,:root[data-theme="light"] .composer{background:linear-gradient(130deg,rgba(203,226,246,.69),rgba(171,207,237,.53))!important;border-color:rgba(58,112,163,.4)!important;backdrop-filter:blur(22px) saturate(175%)!important;-webkit-backdrop-filter:blur(22px) saturate(175%)!important;box-shadow:inset 0 1px rgba(255,255,255,.72)!important}
:root[data-theme="light"] .chatview{background:radial-gradient(ellipse at 20% 16%,rgba(255,255,255,.42),transparent 43%),radial-gradient(ellipse at 86% 84%,rgba(63,147,206,.25),transparent 46%),linear-gradient(145deg,rgba(195,220,243,.78),rgba(224,239,251,.72) 56%,rgba(176,210,237,.78))!important}
:root[data-theme="light"] .chatrow{background:linear-gradient(115deg,rgba(205,226,245,.42),rgba(160,199,231,.28))!important;border:1px solid rgba(50,105,157,.17)!important;border-radius:14px!important;margin:4px 7px!important;color:#143957!important;backdrop-filter:blur(14px)!important}
:root[data-theme="light"] .chatrow-info strong,:root[data-theme="light"] .chatperson strong,:root[data-theme="light"] .listhead b{color:#103653!important}
:root[data-theme="light"] .chatrow-info small,:root[data-theme="light"] .chatperson small,:root[data-theme="light"] .self small,:root[data-theme="light"] .sidebar .muted,:root[data-theme="light"] .sidebarfoot{color:#345875!important}
:root[data-theme="light"] .sidebarfoot{background:linear-gradient(130deg,rgba(135,181,220,.62),rgba(188,216,240,.66))!important;border-top-color:rgba(40,98,151,.42)!important;backdrop-filter:blur(26px) saturate(180%)!important;-webkit-backdrop-filter:blur(26px) saturate(180%)!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab{background:linear-gradient(145deg,rgba(207,229,247,.74),rgba(144,188,225,.54))!important;border-color:rgba(43,102,157,.52)!important;color:#123b5d!important;box-shadow:inset 0 1px rgba(255,255,255,.8),0 6px 18px rgba(24,75,121,.16)!important;backdrop-filter:blur(20px) saturate(180%)!important;-webkit-backdrop-filter:blur(20px) saturate(180%)!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab span,:root[data-theme="light"] .sidebar-tabs .nav-tab small{color:#183e60!important;opacity:1!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab.active{background:linear-gradient(125deg,#176fc6,#058da9)!important;color:#fff!important;border-color:#42bce0!important;box-shadow:0 6px 20px rgba(0,104,179,.38),inset 0 1px rgba(255,255,255,.56)!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab.active span,:root[data-theme="light"] .sidebar-tabs .nav-tab.active small{color:#fff!important}
:root[data-theme="light"] #contactsModal{background:rgba(9,37,66,.54)!important;backdrop-filter:blur(22px) saturate(145%)!important;-webkit-backdrop-filter:blur(22px) saturate(145%)!important}
:root[data-theme="light"] .contacts-dialog{background:linear-gradient(145deg,rgba(170,205,235,.88),rgba(119,166,207,.82))!important;border-color:rgba(30,89,143,.58)!important;color:#103452!important;backdrop-filter:blur(32px) saturate(185%)!important;-webkit-backdrop-filter:blur(32px) saturate(185%)!important;box-shadow:0 30px 95px rgba(10,42,73,.45),inset 0 1px rgba(255,255,255,.78),inset 0 -1px rgba(29,88,141,.2)!important}
:root[data-theme="light"] .contacts-head{background:linear-gradient(125deg,rgba(105,161,207,.74),rgba(177,211,239,.56))!important;border-bottom-color:rgba(36,94,148,.4)!important;backdrop-filter:blur(24px) saturate(175%)!important}
:root[data-theme="light"] .contacts-head h2{color:#123958!important}
:root[data-theme="light"] .contacts-head p{color:#294c6a!important}
:root[data-theme="light"] .contacts-kicker{color:#075994!important}
:root[data-theme="light"] .contacts-close-icon{background:rgba(210,231,248,.65)!important;color:#163e60!important;border-color:rgba(42,97,147,.43)!important}
:root[data-theme="light"] .contact-import-card{background:linear-gradient(145deg,rgba(206,229,248,.68),rgba(131,179,218,.52))!important;border-color:rgba(47,104,155,.48)!important;color:#153a59!important;box-shadow:inset 0 1px rgba(255,255,255,.75),0 6px 16px rgba(27,75,119,.13)!important;backdrop-filter:blur(18px) saturate(170%)!important}
:root[data-theme="light"] .contact-import-card small{color:#345873!important}
:root[data-theme="light"] .contacts-search-wrap,:root[data-theme="light"] .contacts-status,:root[data-theme="light"] .contacts-actions{background:rgba(143,184,218,.49)!important;border-color:rgba(45,99,148,.4)!important;color:#1c4667!important;backdrop-filter:blur(20px) saturate(170%)!important;-webkit-backdrop-filter:blur(20px) saturate(170%)!important}
:root[data-theme="light"] .contacts-search-wrap input{color:#123957!important}
:root[data-theme="light"] .contacts-search-wrap input::placeholder{color:#3e5d78!important}
:root[data-theme="light"] .phone-contact-row{background:linear-gradient(110deg,rgba(207,230,248,.68),rgba(130,177,215,.45))!important;border-color:rgba(48,103,154,.42)!important;box-shadow:inset 0 1px rgba(255,255,255,.68),0 4px 12px rgba(25,72,113,.1)!important;backdrop-filter:blur(17px) saturate(170%)!important}
:root[data-theme="light"] .phone-contact-row.is-selected{background:linear-gradient(110deg,rgba(178,219,250,.84),rgba(107,173,223,.61))!important;border-color:#087cc2!important}
:root[data-theme="light"] .phone-contact-copy strong{color:#103653!important}
:root[data-theme="light"] .phone-contact-copy small{color:#345875!important}
:root[data-theme="light"] .contact-status-badge{background:rgba(209,229,246,.72)!important;color:#2c506d!important;border-color:rgba(50,103,151,.37)!important}
:root[data-theme="light"] .contact-status-badge.is-registered{background:rgba(139,218,190,.68)!important;color:#075c49!important}
:root[data-theme="light"] .contact-status-badge.is-unregistered{background:rgba(255,211,153,.72)!important;color:#764b13!important}
:root[data-theme="light"] .contact-select>span{background:rgba(220,238,252,.8)!important;border-color:#477da8!important}
:root[data-theme="light"] .contacts-actions .secondary{background:rgba(203,226,245,.76)!important;color:#173e5d!important;border:1px solid rgba(47,103,154,.44)!important}
:root[data-theme="light"] .contacts-actions .primary{background:linear-gradient(120deg,#176fc6,#058eaa)!important;color:#fff!important}

/* Beta 2.54: fit the iPhone contacts picker to the app viewport and clarify its empty state. */
:root[data-theme="light"] .phone-contacts-list>.muted{display:grid!important;place-items:center!important;align-content:center!important;gap:10px!important;min-height:min(190px,100%)!important;margin:8px!important;padding:22px 16px!important;border:1px dashed rgba(37,93,143,.45)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(148,190,225,.32),rgba(198,223,244,.38))!important;color:#294e6d!important;font-size:12px!important;line-height:1.9!important;text-align:center!important}
:root[data-theme="light"] .phone-contacts-list>.muted:before{content:"♧";display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(39,111,169,.38);border-radius:17px;background:linear-gradient(145deg,rgba(188,222,247,.72),rgba(119,175,218,.54));color:#17679f;font-size:24px;box-shadow:inset 0 1px rgba(255,255,255,.75),0 6px 16px rgba(22,78,126,.12)}
:root[data-theme="dark"] .phone-contacts-list>.muted,:root[data-theme="auto"] .phone-contacts-list>.muted{display:grid!important;place-items:center!important;align-content:center!important;gap:10px!important;min-height:min(190px,100%)!important;margin:8px!important;padding:22px 16px!important;border:1px dashed rgba(122,192,239,.32)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(18,55,92,.42),rgba(7,28,55,.38))!important;color:#c1dcf1!important;font-size:12px!important;line-height:1.9!important;text-align:center!important}
:root[data-theme="dark"] .phone-contacts-list>.muted:before,:root[data-theme="auto"] .phone-contacts-list>.muted:before{content:"♧";display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(115,203,255,.48);border-radius:17px;background:linear-gradient(145deg,#167dc4,#124375);color:#fff;font-size:24px;box-shadow:0 8px 20px rgba(0,117,199,.22)}
@media(max-width:520px){#contactsModal.overlay{align-items:end!important;justify-items:center!important;padding:calc(8px + env(safe-area-inset-top)) 0 max(0px,env(safe-area-inset-bottom))!important}#contactsModal .contacts-dialog{height:min(78dvh,720px)!important;min-height:min(560px,78dvh)!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px)!important;display:grid!important;grid-template-rows:auto auto auto auto minmax(0,1fr) auto!important;align-self:end!important;overflow:hidden!important}.phone-contacts-list{min-height:0!important;max-height:none!important;align-content:start!important;overflow-y:auto!important;overscroll-behavior:contain!important}.contacts-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:9px 11px max(10px,env(safe-area-inset-bottom))!important}.contacts-actions button{width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;padding:8px 6px!important;font-size:10px!important;line-height:1.45!important}.contacts-actions .contacts-clear{grid-column:1/-1!important;margin-inline-start:0!important}.contacts-head{gap:9px!important;padding:13px 12px 10px!important}.contacts-head-icon{width:40px!important;height:40px!important;flex-basis:40px!important}.contacts-head h2{font-size:18px!important}.contacts-head p{font-size:10px!important;line-height:1.65!important}.contact-import-actions{gap:7px!important;margin:9px 10px 6px!important}.contact-import-card{min-height:58px!important;padding:7px 8px!important}.contacts-search-wrap{min-height:44px!important;margin:4px 10px 6px!important}.contacts-status{margin:0 10px 4px!important;padding:6px 9px!important;font-size:10px!important}.phone-contacts-list{margin:0 7px!important;padding:2px 4px 8px!important}}

/* Shared EPT glass treatment for group creation and member management. */
.group-create-dialog,.group-details-dialog{width:min(620px,96vw)!important;max-height:min(88dvh,820px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.group-create-form{display:grid!important;gap:13px!important;min-height:0!important;overflow:auto!important;padding:15px 16px 17px!important}
.group-form-field{display:grid!important;gap:7px!important;color:#e7f4ff!important;font-size:12px!important;font-weight:750!important}
.group-form-field>span{display:block!important;color:inherit!important}.group-form-field input,.group-form-field textarea{width:100%!important;min-width:0!important;min-height:45px!important;padding:11px 13px!important;border:1px solid rgba(125,190,237,.48)!important;border-radius:14px!important;background:rgba(8,32,60,.55)!important;color:#f3f9ff!important;box-shadow:inset 0 1px rgba(255,255,255,.1)!important;outline:none!important}.group-form-field textarea{min-height:88px!important;resize:vertical!important}.group-form-field input::placeholder,.group-form-field textarea::placeholder{color:#aec7df!important;opacity:1!important}.group-form-field input:focus,.group-form-field textarea:focus{border-color:#39b8ed!important;box-shadow:0 0 0 3px rgba(28,153,216,.2),inset 0 1px rgba(255,255,255,.12)!important}.group-contact-picker{width:100%!important;min-height:65px!important}.group-create-status{min-height:0!important;margin:0!important;color:#b22!important}.group-create-actions,.group-details-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:0 15px max(14px,env(safe-area-inset-bottom))!important}.group-create-actions button,.group-details-actions button,.group-add-member-form>button{min-height:43px!important;border-radius:13px!important;font-size:11px!important}.group-details-actions{grid-template-columns:1fr!important;padding-top:10px!important;border-top:1px solid rgba(125,190,237,.24)!important}.group-details-head{padding:0!important}.group-members{display:grid!important;gap:8px!important;min-height:0!important;overflow:auto!important;padding:13px 15px 4px!important}.group-details-dialog .member-row{grid-template-columns:44px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-height:62px!important;padding:8px 10px!important;border:1px solid rgba(125,190,237,.3)!important;border-radius:16px!important;background:linear-gradient(120deg,rgba(255,255,255,.1),rgba(255,255,255,.04))!important;color:#f1f8ff!important;box-shadow:inset 0 1px rgba(255,255,255,.1)!important}.group-details-dialog .member-copy strong{color:inherit!important}.group-details-dialog .member-copy small{color:#bad2e8!important}.group-details-dialog .member-avatar{width:42px!important;height:42px!important}.group-add-member-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:9px!important;margin:10px 15px 2px!important;padding:11px!important;border:1px solid rgba(125,190,237,.31)!important;border-radius:16px!important;background:rgba(255,255,255,.06)!important}
:root[data-theme="light"] .group-form-field{color:#1b4261!important}.group-form-field input,.group-form-field textarea{color:#f3f9ff!important}
:root[data-theme="light"] .group-form-field input,:root[data-theme="light"] .group-form-field textarea{background:rgba(203,226,245,.62)!important;border-color:rgba(47,103,154,.43)!important;color:#133957!important;box-shadow:inset 0 1px rgba(255,255,255,.65)!important}
:root[data-theme="light"] .group-form-field input::placeholder,:root[data-theme="light"] .group-form-field textarea::placeholder{color:#4d6a84!important}
:root[data-theme="light"] .group-form-field input:focus,:root[data-theme="light"] .group-form-field textarea:focus{border-color:#1380c5!important;box-shadow:0 0 0 3px rgba(25,132,194,.16),inset 0 1px rgba(255,255,255,.65)!important}
:root[data-theme="light"] .group-create-actions .secondary,:root[data-theme="light"] .group-details-actions .secondary{background:rgba(202,225,245,.75)!important;color:#173f5e!important;border:1px solid rgba(48,104,154,.45)!important}
:root[data-theme="light"] .group-details-dialog .member-row{background:linear-gradient(120deg,rgba(205,229,248,.76),rgba(139,185,222,.52))!important;border-color:rgba(48,103,153,.35)!important;color:#173d5b!important}.group-details-dialog .member-copy small{color:#496987!important}
:root[data-theme="light"] .group-add-member-form{background:rgba(146,187,221,.34)!important;border-color:rgba(52,106,153,.35)!important}
@media(max-width:520px){.group-create-dialog,.group-details-dialog{width:100vw!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8px)!important;border-radius:23px 23px 0 0!important}.group-create-form{padding:12px 11px 14px!important;gap:11px!important}.group-create-actions,.group-details-actions{padding-inline:10px!important}.group-details-dialog .contacts-head{padding:13px 12px 10px!important}.group-add-member-form{grid-template-columns:1fr!important;margin:9px 10px 2px!important}.group-add-member-form>button{width:100%!important}.group-members{padding:10px 10px 4px!important}.group-details-dialog .member-row{grid-template-columns:38px minmax(0,1fr) auto!important;gap:8px!important}.group-details-dialog .member-avatar{width:36px!important;height:36px!important}}

/* Make day and night group sheets unmistakably match their selected theme. */
:root[data-theme="light"] .group-create-dialog,:root[data-theme="light"] .group-details-dialog{background:linear-gradient(145deg,rgba(177,210,238,.91),rgba(129,177,216,.87))!important;border-color:rgba(43,101,153,.56)!important;color:#153b5a!important;box-shadow:0 28px 90px rgba(15,55,91,.38),inset 0 1px rgba(255,255,255,.82)!important}
:root[data-theme="dark"] .group-create-dialog,:root[data-theme="auto"] .group-create-dialog,:root[data-theme="dark"] .group-details-dialog,:root[data-theme="auto"] .group-details-dialog{background:linear-gradient(145deg,rgba(14,48,86,.97),rgba(5,22,47,.98))!important;border-color:rgba(95,173,228,.52)!important;color:#eef8ff!important;box-shadow:0 28px 90px rgba(0,10,28,.65),inset 0 1px rgba(255,255,255,.14)!important}
:root[data-theme="light"] .group-create-actions .primary,:root[data-theme="light"] .group-details-actions .primary{background:linear-gradient(120deg,#1473c4,#058eaa)!important;color:#fff!important}
:root[data-theme="dark"] .group-create-actions .secondary,:root[data-theme="auto"] .group-create-actions .secondary,:root[data-theme="dark"] .group-details-actions .secondary,:root[data-theme="auto"] .group-details-actions .secondary{background:rgba(28,68,111,.74)!important;border:1px solid rgba(123,191,238,.42)!important;color:#e8f5ff!important}

@media(max-width:520px){.group-create-dialog{height:auto!important;min-height:0!important;display:flex!important;grid-template-rows:none!important}.group-details-dialog{height:min(78dvh,720px)!important;min-height:min(500px,78dvh)!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;align-self:end!important}.group-details-dialog .group-members{min-height:0!important;overflow-y:auto!important}}

/* Clear, large quick actions for starting a group or direct conversation. */
.listhead{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:9px!important;padding:4px 12px 10px!important;min-height:0!important}
.listhead>b{display:block!important;font-size:12px!important;line-height:1.5!important}
.row-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important}
.quick-action-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-width:0!important;min-height:58px!important;padding:9px 8px!important;border:1px solid rgba(91,188,255,.58)!important;border-radius:16px!important;background:linear-gradient(135deg,#1679dc,#079db8)!important;color:#fff!important;box-shadow:0 7px 17px rgba(14,103,187,.26),inset 0 1px rgba(255,255,255,.25)!important;font-family:inherit!important;font-size:13px!important;font-weight:800!important;line-height:1.3!important;white-space:nowrap!important;cursor:pointer!important;touch-action:manipulation!important;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease!important}
.quick-action-button:hover{filter:brightness(1.08)!important;box-shadow:0 9px 20px rgba(14,103,187,.34),inset 0 1px rgba(255,255,255,.28)!important}
.quick-action-button:active{transform:scale(.97)!important}
.quick-action-icon{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;flex:0 0 36px!important;border:1px solid rgba(255,255,255,.36)!important;border-radius:12px!important;background:rgba(255,255,255,.18)!important;color:#fff!important;font-size:22px!important}
.quick-action-icon svg{display:block!important;width:25px!important;height:25px!important;stroke-width:2!important}
.quick-action-label{overflow:hidden!important;text-overflow:ellipsis!important}
:root[data-theme="light"] .quick-action-button{background:linear-gradient(135deg,#fff,#e7f5ff)!important;color:#16466d!important;border-color:#76b8e6!important;box-shadow:0 7px 17px rgba(43,101,153,.17),inset 0 1px #fff!important}
:root[data-theme="light"] .quick-action-icon{background:linear-gradient(140deg,#1e8ddd,#12aabd)!important;color:#fff!important;border-color:rgba(255,255,255,.72)!important}
@media(max-width:520px){.listhead{padding:4px 10px 8px!important}.row-buttons{gap:7px!important}.quick-action-button{min-height:54px!important;gap:7px!important;padding:7px 5px!important;font-size:12px!important}.quick-action-icon{width:33px!important;height:33px!important;flex-basis:33px!important}.quick-action-icon svg{width:23px!important;height:23px!important}}

/* Beta 2.57: center the group creation sheet on small screens with safe-area spacing. */
@media(max-width:520px){#newGroupModal.overlay{align-items:center!important;justify-items:center!important;padding:calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom))!important}#newGroupModal .group-create-dialog{width:min(100%,620px)!important;height:auto!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px)!important;align-self:center!important;border-radius:24px!important}}

/* Beta 2.57: keep action labels visible and use clear, lightweight icons. */
.quick-action-button{flex-direction:column!important;gap:4px!important;min-height:72px!important;padding:7px 5px!important;white-space:normal!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif!important;font-size:12px!important;font-weight:800!important;line-height:1.35!important;text-align:center!important}
.quick-action-icon{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:12px!important}
.quick-action-icon svg{width:22px!important;height:22px!important;display:block!important}
.quick-action-label{display:block!important;visibility:visible!important;opacity:1!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;max-width:100%!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif!important;font-size:12px!important;font-weight:800!important;letter-spacing:0!important}
.quick-action-button:focus-visible{outline:3px solid #ffe27a!important;outline-offset:2px!important}
@media(max-width:520px){.quick-action-button{min-height:70px!important;padding:6px 3px!important;font-size:11px!important}.quick-action-icon{width:32px!important;height:32px!important;flex-basis:32px!important}.quick-action-icon svg{width:21px!important;height:21px!important}.quick-action-label{font-size:11px!important}}

/* Beta 2.58: polished horizontal quick actions and cleaner Persian type. */
.quick-action-button{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:64px!important;padding:8px 9px!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif!important;font-size:12px!important;font-weight:800!important;line-height:1.45!important;white-space:normal!important;text-align:right!important}
.quick-action-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;flex:0 0 38px!important;align-self:center!important;aspect-ratio:1/1!important;border-radius:13px!important;background:linear-gradient(145deg,#1598df,#0875c5)!important;box-shadow:0 4px 11px rgba(5,92,167,.25),inset 0 1px rgba(255,255,255,.35)!important}
.quick-action-icon svg{display:block!important;width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important;stroke-width:1.9!important}
.quick-action-label{display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;text-align:right!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif!important;font-size:12px!important;font-weight:800!important;line-height:1.55!important;letter-spacing:-.2px!important}
.quick-action-group{background:linear-gradient(135deg,#123e72,#087f9f)!important}
.quick-action-chat{background:linear-gradient(135deg,#126eb4,#078d9b)!important}
:root[data-theme="light"] .quick-action-button{color:#143c5c!important;background:linear-gradient(135deg,#f8fcff,#dceeff)!important;border-color:#78add7!important}
:root[data-theme="light"] .quick-action-group .quick-action-icon,:root[data-theme="light"] .quick-action-chat .quick-action-icon{background:linear-gradient(145deg,#168bd0,#087eaa)!important;color:#fff!important}
#newGroupModal .contacts-head,#newGroupModal .contacts-head h2,#newGroupModal .contacts-head p,#newGroupModal .group-form-field,#newGroupModal .group-create-actions button{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif!important}
#newGroupModal .contacts-head h2{font-size:20px!important;font-weight:850!important;line-height:1.5!important;letter-spacing:-.35px!important}
#newGroupModal .contacts-head p{font-size:12px!important;line-height:1.85!important}
#newGroupModal .group-form-field{font-size:13px!important;font-weight:750!important;line-height:1.65!important}
#newGroupModal .group-create-actions button{font-size:13px!important;font-weight:800!important}
@media(max-width:520px){.quick-action-button{min-height:60px!important;gap:6px!important;padding:7px 7px!important}.quick-action-icon{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;flex-basis:34px!important}.quick-action-icon svg{width:21px!important;height:21px!important;max-width:21px!important;max-height:21px!important}.quick-action-label{font-size:11px!important;line-height:1.45!important;letter-spacing:-.3px!important}#newGroupModal .contacts-head h2{font-size:19px!important}}

/* Beta 2.59: full-width, illustrated action cards with no dead space. */
.row-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important}
.quick-action-button{display:grid!important;grid-template-columns:50px minmax(0,1fr) 14px!important;direction:rtl!important;align-items:center!important;justify-items:stretch!important;justify-content:stretch!important;gap:7px!important;width:100%!important;min-width:0!important;min-height:80px!important;padding:9px 10px!important;border-radius:18px!important;white-space:normal!important;text-align:right!important;font-family:"SF Arabic","Vazirmatn",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif!important}
.quick-action-group{background:linear-gradient(135deg,#123c70 0%,#0b5b8e 55%,#087f96 100%)!important;border-color:rgba(104,211,244,.72)!important}
.quick-action-chat{background:linear-gradient(135deg,#104d80 0%,#087d9f 60%,#09918e 100%)!important;border-color:rgba(102,226,220,.68)!important}
.quick-action-icon{display:grid!important;place-items:center!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;max-width:50px!important;max-height:50px!important;flex:none!important;aspect-ratio:1/1!important;align-self:center!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(255,255,255,.25),rgba(151,235,255,.12))!important;border:1px solid rgba(225,250,255,.55)!important;box-shadow:0 6px 15px rgba(0,17,50,.25),inset 0 1px rgba(255,255,255,.36)!important}
.quick-action-icon svg{display:block!important;width:43px!important;height:43px!important;max-width:43px!important;max-height:43px!important}
.quick-action-copy{display:grid!important;min-width:0!important;gap:4px!important;align-content:center!important;text-align:right!important}
.quick-action-label{display:block!important;min-width:0!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;color:#fff!important;font-size:13px!important;font-weight:850!important;line-height:1.5!important;letter-spacing:-.35px!important}
.quick-action-copy small{display:block!important;min-width:0!important;color:rgba(233,248,255,.84)!important;font-size:9px!important;font-weight:600!important;line-height:1.55!important;white-space:normal!important}
.quick-action-indicator{display:block!important;align-self:center!important;color:rgba(232,250,255,.78)!important;font-size:20px!important;font-weight:500!important;line-height:1!important}
:root[data-theme="light"] .quick-action-group{background:linear-gradient(135deg,#e7f4ff,#d4edfa 58%,#ccebf0)!important;border-color:#84b9d9!important}
:root[data-theme="light"] .quick-action-chat{background:linear-gradient(135deg,#e7f7ff,#d2f0f2)!important;border-color:#7ebdc5!important}
:root[data-theme="light"] .quick-action-label{color:#123d5c!important}
:root[data-theme="light"] .quick-action-copy small,:root[data-theme="light"] .quick-action-indicator{color:#476b84!important}
:root[data-theme="light"] .quick-action-icon{background:linear-gradient(145deg,#188fd0,#0b7da8)!important}
@media(max-width:520px){.row-buttons{gap:7px!important}.quick-action-button{grid-template-columns:42px minmax(0,1fr) 10px!important;gap:5px!important;min-height:76px!important;padding:8px 7px!important;border-radius:16px!important}.quick-action-icon{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;border-radius:14px!important}.quick-action-icon svg{width:37px!important;height:37px!important;max-width:37px!important;max-height:37px!important}.quick-action-label{font-size:11px!important;letter-spacing:-.4px!important}.quick-action-copy small{font-size:8px!important;line-height:1.45!important}.quick-action-indicator{font-size:17px!important}}

/* Beta 2.61: counter-mirror the front-camera self preview only. */
.call-dialog #localVideo.ept-self-preview-unmirrored,.remote-video-fullscreen #remoteFullscreenLocalVideo.ept-self-preview-unmirrored{transform:scaleX(-1)!important}

.phone-contact-avatar{overflow:hidden!important}.phone-contact-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}

.phone-contact-number{justify-self:start;padding:0;border:0;background:transparent;color:#8fd8ff;text-decoration:underline;text-underline-offset:2px;font-size:10px;direction:ltr}.phone-contact-number:hover{color:#fff}.phone-contact-number:focus-visible{outline:2px solid #7bd9ff;outline-offset:2px;border-radius:3px}

.story-shelf{padding:10px 12px 8px;border-bottom:1px solid #ffffff18}.story-shelf-head{display:flex;align-items:center;justify-content:space-between;margin:0 3px 8px}.story-shelf-head strong{font-size:13px}.story-shelf-head button{border:1px solid #49c8ef;border-radius:20px;padding:5px 9px;background:#087fb8;color:#fff}.story-list{display:flex;gap:12px;overflow-x:auto;min-height:70px;align-items:flex-start}.story-person{display:grid;justify-items:center;gap:4px;min-width:58px;max-width:70px;border:0;background:none;color:inherit;padding:1px}.story-person small{max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.story-ring{width:48px;height:48px;border-radius:50%;padding:3px;background:linear-gradient(135deg,#10d5ff,#9c50ff,#ffb32d)}.story-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;overflow:hidden;background:#102e58;color:white}.story-avatar img{width:100%;height:100%;object-fit:cover}.story-empty{font-size:11px;opacity:.7;padding:9px}.story-viewer{position:fixed;inset:0;z-index:1100;background:#000e;display:flex;align-items:center;justify-content:space-between;padding:16px;color:white}.story-viewer.hidden{display:none}.story-viewer-content{width:min(92vw,480px);height:min(88vh,840px);display:grid;grid-template-rows:auto minmax(160px,1fr) auto minmax(70px,24vh);border-radius:20px;background:#08172d;overflow:hidden}.story-viewer-header{padding:14px}.story-viewer-media{min-height:0;display:grid;place-items:center;background:#000}.story-viewer-media img,.story-viewer-media video{max-width:100%;max-height:100%;object-fit:contain}.story-viewer-caption{padding:8px 16px;min-height:20px;margin:0}.story-social{min-height:0;display:grid;grid-template-rows:auto auto 1fr auto;padding:4px 12px 10px;gap:5px;background:#0d2343}.story-social button{border:1px solid #ffffff35;border-radius:18px;background:#123c68;color:#fff;padding:7px 12px}.story-social #storyLike{justify-self:start}.story-social #storyLike[aria-pressed="true"]{color:#ff7b9c;border-color:#ff7b9c}.story-comments-title{font-size:11px;opacity:.8}.story-comments{min-height:0;overflow:auto;font-size:12px}.story-comment{padding:3px 0;overflow-wrap:anywhere}.story-comment strong{margin-inline-end:6px}.story-comment-form{display:flex;gap:6px}.story-comment-form input{min-width:0;flex:1;border:1px solid #ffffff35;border-radius:18px;background:#ffffff12;color:#fff;padding:7px 11px}.story-comment-form button{flex:none}.story-viewer-close,.story-viewer-nav{border:0;border-radius:50%;width:42px;height:42px;background:#ffffff26;color:#fff;font-size:28px}.story-viewer-nav{flex:none}@media(max-width:640px){.story-viewer{padding:6px}.story-viewer-content{width:calc(100vw - 64px);height:86vh;grid-template-rows:auto minmax(130px,1fr) auto minmax(64px,24vh)}.story-viewer-nav{width:30px;height:38px}}

/* Item 8: keep bottom navigation labels fully legible in the light theme on Safari and Android WebView. */
:root[data-theme="light"] .sidebar .sidebarfoot{background:#dceaf6!important;border-top:1px solid #91aec8!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:#12324d!important}
:root[data-theme="light"] .sidebar .sidebar-tabs .nav-tab{background:#edf5fb!important;border:1px solid #9ebbd2!important;color:#153954!important;opacity:1!important;filter:none!important;text-shadow:none!important;box-shadow:0 2px 6px rgba(24,63,95,.13)!important;-webkit-text-fill-color:#153954!important}
:root[data-theme="light"] .sidebar .sidebar-tabs .nav-tab span,:root[data-theme="light"] .sidebar .sidebar-tabs .nav-tab small{color:#153954!important;opacity:1!important;visibility:visible!important;filter:none!important;text-shadow:none!important;-webkit-text-fill-color:#153954!important}
:root[data-theme="light"] .sidebar .sidebar-tabs .nav-tab.active{background:#075f9c!important;border-color:#075f9c!important;color:#fff!important;box-shadow:0 3px 10px rgba(0,76,128,.25)!important;-webkit-text-fill-color:#fff!important}
:root[data-theme="light"] .sidebar .sidebar-tabs .nav-tab.active span,:root[data-theme="light"] .sidebar .sidebar-tabs .nav-tab.active small{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* R32: stories share the existing profile-avatar space, with segmented rings for multiple posts. */
.story-shelf{display:none!important}
.self-avatar-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.story-create-badge{position:absolute;inset-inline-end:-4px;bottom:-3px;z-index:5;width:19px;height:19px;padding:0!important;border:2px solid #09172c!important;border-radius:50%!important;background:linear-gradient(135deg,#14d5f5,#1988ff)!important;color:#fff!important;font-size:14px!important;line-height:14px;display:grid;place-items:center;box-shadow:0 1px 6px #0008}
.story-create-badge.hidden{display:none!important}
.avatar.has-story-avatar{position:relative;overflow:visible!important;isolation:isolate}
.avatar.has-story-avatar::before{content:"";position:absolute;inset:-4px;padding:2.5px;border-radius:50%;background:var(--story-ring-gradient);pointer-events:none;z-index:2;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.avatar.has-story-avatar img{border-radius:50%}

/* Immersive WhatsApp-style full-screen story viewer */
.story-viewer{position:fixed;inset:0;z-index:3000;display:block;padding:0;background:#000;color:#fff;overscroll-behavior:contain;touch-action:pan-y}
.story-viewer.hidden{display:none!important}
.story-viewer-content{position:relative;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;background:#050505;overflow:hidden;isolation:isolate}
.story-viewer-media{position:absolute;inset:0;display:grid;place-items:center;min-height:0;background:#050505;z-index:0}
.story-viewer-media img,.story-viewer-media video{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;background:#050505;border:0;border-radius:0}
.story-viewer-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.48),transparent 22%,transparent 56%,rgba(0,0,0,.62) 100%)}
.story-progress{position:absolute;z-index:5;top:max(8px,env(safe-area-inset-top));left:12px;right:12px;display:flex;gap:4px;height:3px}
.story-progress-segment{flex:1;min-width:0;background:#ffffff66;border-radius:9px;overflow:hidden}
.story-progress-segment i{display:block;width:0;height:100%;background:#fff;border-radius:inherit}
.story-viewer-header{position:absolute;z-index:6;top:calc(max(17px,env(safe-area-inset-top)) + 8px);left:10px;right:10px;display:flex;align-items:center;gap:10px;min-height:42px;padding:0;background:none;color:#fff}
.story-viewer-avatar{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;overflow:hidden;background:#284a74;color:white;font-weight:700}
.story-viewer-avatar img{width:100%;height:100%;object-fit:cover}
.story-viewer-identity{display:grid;gap:2px;min-width:0;text-shadow:0 1px 3px #000}
.story-viewer-identity strong{font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.story-viewer-identity small{font-size:11px;opacity:.85}
.story-viewer-close{position:static;flex:none;margin-inline-start:auto;width:40px;height:40px;border:0;border-radius:50%;background:#0005;color:#fff;font-size:29px;line-height:1}
.story-viewer-nav{position:absolute;z-index:4;top:18%;bottom:27%;width:38%;height:auto;border:0;border-radius:0;background:transparent;color:transparent;font-size:0;opacity:0}
.story-viewer-prev{left:0}.story-viewer-next{right:0}
.story-viewer-caption{position:absolute;z-index:5;left:16px;right:16px;bottom:calc(max(165px, 29vh) + env(safe-area-inset-bottom));max-height:18vh;overflow:auto;margin:0;padding:10px 12px;color:#fff;font-size:15px;line-height:1.7;text-align:start;text-shadow:0 1px 4px #000;background:linear-gradient(90deg,#0004,transparent);border-radius:10px;pointer-events:auto}
.story-viewer-caption:empty{display:none}
.story-social{position:absolute;z-index:6;left:0;right:0;bottom:0;display:grid;grid-template-rows:auto minmax(48px,1fr) auto;gap:9px;max-height:min(38vh,360px);padding:13px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#07111fcc,#07111fee 32%);backdrop-filter:blur(16px);border-top:1px solid #ffffff25}
.story-comments-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
.story-comments-head strong{font-size:14px;font-weight:650}
.story-social button{min-height:40px;border:1px solid #ffffff3d;border-radius:24px;background:#ffffff14;color:#fff;padding:8px 14px;font-size:15px}
.story-social #storyLike{display:flex;align-items:center;gap:7px;justify-self:end;min-width:74px;justify-content:center;font-size:22px}
.story-social #storyLike span{font-size:13px}
.story-social #storyLike[aria-pressed="true"]{color:#ff7895;border-color:#ff7895;background:#ff78951c}
.story-comments{min-height:48px;max-height:20vh;overflow:auto;padding:2px 2px 5px;font-size:14px;line-height:1.65;overscroll-behavior:contain}
.story-comment{padding:4px 0;overflow-wrap:anywhere}
.story-comment strong{margin-inline-end:7px;font-size:13px;color:#b7e9ff}
.story-empty{font-size:13px;opacity:.8;padding:8px 0}
.story-comment-form{display:flex;align-items:center;gap:8px;margin:0}
.story-comment-form input{min-width:0;flex:1;height:44px;border:1px solid #ffffff50;border-radius:24px;background:#ffffff12;color:#fff;padding:0 16px;font-size:14px}
.story-comment-form input::placeholder{color:#ffffffb5}
.story-comment-form button{flex:none;width:44px;height:44px;min-height:44px;border:0;border-radius:50%;background:#1686ed;color:#fff;font-size:19px;padding:0}
@media(max-width:640px){.story-viewer-content{width:100vw;height:100dvh;border-radius:0}.story-viewer{padding:0}.story-viewer-caption{bottom:calc(max(165px, 29vh) + env(safe-area-inset-bottom))}.story-social{max-height:min(42vh,380px);padding-inline:16px}}

/* WhatsApp-style status row: creation belongs to My Status, not profile. */
.story-shelf{display:block!important;padding:10px 12px 12px;border-bottom:1px solid var(--border);background:linear-gradient(115deg,#0b2b50,#081d39 65%,#101b35)}
.story-shelf-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 9px;color:#f2f7ff}
.story-shelf-head strong{font-size:14px;font-weight:750}
.story-list{display:flex;align-items:flex-start;gap:13px;min-height:78px;overflow-x:auto;overflow-y:hidden;padding:2px 3px 4px;scrollbar-width:thin;scrollbar-color:#52b9ee55 transparent}
.story-person{position:relative;display:grid;justify-items:center;align-content:start;gap:5px;flex:0 0 62px;min-width:62px;max-width:70px;padding:0;border:0;background:none;color:#f3f7ff;cursor:pointer}
.story-person small{display:block;max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.3}
.story-ring{display:grid;place-items:center;width:54px;height:54px;padding:3px;border-radius:50%;background:var(--story-ring-gradient,linear-gradient(135deg,#20c8ff,#27ce8b,#f6b73c))}
.story-ring-unseen{background:var(--story-ring-gradient)}
.story-avatar{display:grid;place-items:center;width:48px;height:48px;border:2px solid #0a2342;border-radius:50%;overflow:hidden;background:#153c65;color:#fff;font-size:17px;font-weight:700}
.story-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.story-person-own{position:relative;flex-basis:68px;min-width:68px}
.story-person-open{display:grid;justify-items:center;gap:5px;width:100%;padding:0;border:0;background:none;color:inherit;cursor:pointer}
.story-person-open small{max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.story-create-badge{position:absolute;right:5px;top:35px;z-index:3;display:grid;place-items:center;width:22px;height:22px;padding:0;border:2px solid #0b2342;border-radius:50%;background:#1687e8;color:#fff;font-size:17px;line-height:17px;box-shadow:0 2px 7px #0008;cursor:pointer}
.story-create-badge.hidden{display:none!important}
@media(max-width:800px){.story-shelf{padding:8px 11px 9px}.story-shelf-head{margin-bottom:6px}.story-list{min-height:72px;gap:12px}.story-ring{width:51px;height:51px}.story-avatar{width:45px;height:45px}.story-create-badge{top:33px;right:7px}}
.story-person-own #storyOwnAvatar:not(.story-ring-unseen){background:#718198}

/* Keep auth screens hidden until the saved session check has completed. */
.startup-screen{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;background:radial-gradient(ellipse at 50% 20%,#123d79 0,#071a38 48%,#040d1d 100%);color:#f4f8ff;text-align:center;direction:rtl}.startup-screen.hidden{display:none!important}.startup-screen>img{width:72px;height:72px;object-fit:contain;border-radius:22px;box-shadow:0 10px 35px #0005}.startup-screen>strong{font-size:1rem;font-weight:650}.startup-spinner{width:26px;height:26px;border:3px solid #8dcfff55;border-top-color:#28c9ff;border-radius:50%;animation:ept-start-spin .8s linear infinite}.startup-screen .primary{min-width:150px}@keyframes ept-start-spin{to{transform:rotate(360deg)}}

.story-notice{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:20px;background:#020817c9;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);direction:rtl}.story-notice.hidden{display:none!important}.story-notice-card{width:min(430px,100%);padding:24px;border:1px solid #56c9ff66;border-radius:22px;background:linear-gradient(145deg,#123c76,#07172f);color:#fff;box-shadow:0 22px 70px #0009;text-align:center}.story-notice-card strong{font-size:19px}.story-notice-card p{margin:16px 0 22px;line-height:1.9;font-size:15px;overflow-wrap:anywhere}.story-notice-card button{min-width:120px}

/* Keep the story picker in the render tree for iOS/PWA file dialogs. */
.story-file-input{position:fixed!important;left:-10000px!important;top:0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}


/* /final-fixes.css?v=6 */
/* Cohesive light palette: readable text, quiet surfaces and consistent blue actions. */
:root[data-theme="light"]{
 --page:#f3f6fa;--panel:#fff;--soft:#eaf0f6;--input:#fff;--border:#d5dee8;--text:#172b3f;--muted:#52677d;--accent:#0878c9;--accent2:#078ca6;--chatbg:#f5f7fa;--bubble:#fff;--mine:#d9f2ff;color-scheme:light
}
:root[data-theme="light"] body{background:#f2f5f9!important;color:#172b3f!important}
:root[data-theme="light"] .sidebar,:root[data-theme="light"] .conversation,:root[data-theme="light"] .settings-page{background:#f5f7fa!important;color:#172b3f!important;border-color:#d6dee8!important;box-shadow:none!important}
:root[data-theme="light"] .brand,:root[data-theme="light"] .sidebarfoot,:root[data-theme="light"] .settings-top,:root[data-theme="light"] .chatheader{background:#fff!important;color:#1e3348!important;border-color:#dce4ec!important;box-shadow:0 1px 4px #19334a0d!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-theme="light"] .brand strong,:root[data-theme="light"] .brand small,:root[data-theme="light"] .settings-top *,:root[data-theme="light"] .chatperson strong,:root[data-theme="light"] .chatperson small,:root[data-theme="light"] .sidebar .muted,:root[data-theme="light"] .listhead b{color:#243b52!important;text-shadow:none!important}
:root[data-theme="light"] .chatrow,:root[data-theme="light"] .self,:root[data-theme="light"] .search input,:root[data-theme="light"] .filter-chip,:root[data-theme="light"] .settings-section{background:#fff!important;color:#24384c!important;border-color:#d9e2eb!important;box-shadow:0 1px 3px #18334a0b!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-theme="light"] .chatrow:hover,:root[data-theme="light"] .chatrow.active,:root[data-theme="light"] .filter-chip.selected{background:#e8f4fc!important;border-color:#8bbfdf!important;color:#113f61!important;box-shadow:inset 3px 0 #1684ca!important}
:root[data-theme="light"] .chatrow-info strong,:root[data-theme="light"] .chatrow-info small,:root[data-theme="light"] .chatrow-info span,:root[data-theme="light"] .settings-section,:root[data-theme="light"] .settings-section p,:root[data-theme="light"] .settings-help{color:#334a60!important}
:root[data-theme="light"] .chatview{background-color:#edf2f6!important;background-image:linear-gradient(145deg,#f5f7fa,#edf2f6)!important}
:root[data-theme="light"] .msg .bubble{background:#fff!important;color:#20364b!important;border:1px solid #d7e0e8!important;box-shadow:0 1px 2px #1c334412!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-theme="light"] .msg.mine .bubble{background:#d9f0fc!important;color:#153b54!important;border-color:#b4dff2!important}
:root[data-theme="light"] .stamp,:root[data-theme="light"] .msg .muted{color:#63778a!important}
:root[data-theme="light"] .composer{background:#fff!important;border-color:#d6e0e9!important;box-shadow:0 -2px 10px #17334a0a!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-theme="light"] .composer textarea,:root[data-theme="light"] input,:root[data-theme="light"] textarea,:root[data-theme="light"] select{background:#fff!important;color:#20364b!important;border-color:#cbd7e2!important;box-shadow:none!important}
:root[data-theme="light"] input::placeholder,:root[data-theme="light"] textarea::placeholder{color:#718397!important;opacity:1!important}
:root[data-theme="light"] .icon-button,:root[data-theme="light"] .round{background:#edf3f8!important;color:#24435d!important;border-color:#cedae5!important;box-shadow:none!important}
:root[data-theme="light"] .sidebar-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:4px 8px!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab{display:grid!important;grid-template-rows:25px auto!important;justify-items:center!important;align-content:center!important;gap:3px!important;min-width:0!important;min-height:58px!important;padding:6px 3px!important;border-radius:14px!important;border:1px solid #d1dce7!important;background:#f5f8fb!important;color:#294760!important;box-shadow:0 1px 3px #19344a10!important;text-shadow:none!important;filter:none!important;opacity:1!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab span{display:grid!important;place-items:center!important;width:25px!important;height:25px!important;font-size:0!important;color:#31536e!important;-webkit-text-fill-color:#31536e!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab span svg{display:block!important;width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab small{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important;line-height:1.2!important;font-weight:700!important;color:#294760!important;-webkit-text-fill-color:#294760!important;opacity:1!important;visibility:visible!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab.active{background:#0879bd!important;border-color:#0879bd!important;color:#fff!important;box-shadow:0 3px 8px #0879bd30!important}
:root[data-theme="light"] .sidebar-tabs .nav-tab.active span,:root[data-theme="light"] .sidebar-tabs .nav-tab.active small{color:#fff!important;-webkit-text-fill-color:#fff!important}
:root[data-theme="light"] .nav-support-tab{background:#f5f8fb!important;border-color:#d1dce7!important;box-shadow:0 1px 3px #19344a10!important}
:root[data-theme="light"] .nav-support-tab .nav-support-icon-wrap{width:25px!important;height:25px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
:root[data-theme="light"] .nav-support-tab .nav-support-icon-wrap svg{width:22px!important;height:22px!important;stroke:#31536e!important;filter:none!important}
:root[data-theme="light"] .nav-support-tab.active .nav-support-icon-wrap svg{stroke:#fff!important}
:root[data-theme="light"] .sidebarfoot{padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
:root[data-theme="light"] .story-shelf{background:#fff!important;border-color:#dde5ed!important;color:#243b52!important}
:root[data-theme="light"] .story-shelf-head,:root[data-theme="light"] .story-shelf-head strong{color:#243b52!important}
:root[data-theme="light"] .story-person{color:#294760!important}
:root[data-theme="light"] .story-avatar{border-color:#fff!important;background:#e7edf3!important;color:#294760!important}
:root[data-theme="light"] .story-create-badge{border-color:#fff!important}
:root[data-theme="light"] .overlay .dialog,:root[data-theme="light"] .settings-content,:root[data-theme="light"] .dialog,:root[data-theme="light"] .call-dialog{background:#fff!important;color:#20364b!important;border:1px solid #d6e0e9!important;box-shadow:0 16px 48px #132b431f!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-theme="light"] .dialog h1,:root[data-theme="light"] .dialog h2,:root[data-theme="light"] .dialog h3,:root[data-theme="light"] .dialog label,:root[data-theme="light"] .dialog p,:root[data-theme="light"] .dialog small,:root[data-theme="light"] .dialog strong{color:#243b52}
:root[data-theme="light"] .group-details-dialog .member-row{background:#f6f9fc!important;color:#243b52!important;border-color:#dce5ed!important;box-shadow:none!important}
:root[data-theme="light"] .group-details-dialog .member-copy small{color:#61758a!important}
:root[data-theme="light"] .group-details-actions .secondary{background:#eaf1f7!important;color:#294760!important;border:1px solid #cfdae4!important}
:root[data-theme="light"] .group-details-actions .danger{background:#c93f4e!important;color:#fff!important}
:root[data-theme="light"] .story-notice-card{background:#fff!important;color:#20364b!important;border-color:#cbd8e4!important}
:root[data-theme="light"] .story-notice-card strong,:root[data-theme="light"] .story-notice-card p{color:#20364b!important}

/* Familiar vertical story editor shared by browser and Android WebView. */
.story-editor{position:fixed;inset:0;z-index:12000;display:flex;flex-direction:column;align-items:center;gap:10px;padding:calc(8px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));background:#08090d;color:#fff;overscroll-behavior:contain}
.story-editor.hidden{display:none!important}.story-editor-head{width:min(100%,520px);height:48px;flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}.story-editor-head strong{font-size:15px}.story-editor-head button{min-height:38px;padding:7px 12px;border-radius:20px;font-size:13px}.story-editor-head #storyEditorPublish{justify-self:end;background:#1687ff;color:white}.story-editor-head #storyEditorCancel{justify-self:start;background:#ffffff1c;color:white}
.story-editor-stage{position:relative;cursor:grab;width:min(calc(100vw - 24px),380px,calc((100dvh - 255px)*.5625));height:auto;aspect-ratio:9/16;flex:none;overflow:hidden;border-radius:16px;background:#16181d;touch-action:none;box-shadow:0 8px 32px #0008}
.story-editor-stage:active{cursor:grabbing}.story-editor-stage canvas,.story-editor-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.story-editor-stage canvas:not(.hidden),.story-editor-stage video:not(.hidden){display:block}
.story-editor-texts{position:absolute;inset:0;pointer-events:none}.story-editor-text{position:absolute;max-width:90%;padding:3px 7px;border-radius:5px;color:white;font-size:clamp(18px,5vw,30px);font-weight:750;line-height:1.25;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:0 2px 5px #000,0 0 2px #000;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}.story-editor-text.selected{outline:1px dashed #fff9;outline-offset:4px}
.story-editor-tools{width:min(100%,520px);min-height:0;display:grid;gap:8px}.story-crop-tools,.story-text-tools{display:flex;align-items:center;gap:8px}.story-crop-tools label{display:flex;align-items:center;gap:7px;flex:1;min-width:0;font-size:12px}.story-crop-tools input{min-width:60px;flex:1;accent-color:#268cff}.story-editor-tools button{min-height:38px;padding:7px 11px;border-radius:19px;background:#242a34;color:#fff;border:1px solid #ffffff25;font-size:12px;white-space:nowrap}.story-text-tools input[type=text],.story-text-tools input:not([type]){flex:1;min-width:0;height:40px;padding:0 12px;border-radius:19px;background:#191d25;color:#fff;border:1px solid #ffffff32}.story-text-tools input::placeholder,.story-editor-tools>input::placeholder{color:#b9c2ce}.story-text-tools input[type=color]{width:39px;height:39px;padding:3px;border:1px solid #ffffff4a;border-radius:50%;background:#252a34}.story-editor-tools>input{height:40px;padding:0 13px;border-radius:20px;background:#191d25;color:#fff;border:1px solid #ffffff32}.story-editor-tools [disabled]{opacity:.45}
@media(max-height:650px){.story-editor{gap:6px}.story-editor-stage{width:min(calc(100vw - 24px),calc((100dvh - 220px)*.5625));height:auto}.story-editor-tools{gap:5px}.story-editor-tools button{min-height:34px}.story-editor-head{height:40px}}
.story-playback-texts{position:absolute;z-index:3;inset:0;pointer-events:none}.story-playback-text{position:absolute;max-width:90%;padding:3px 7px;border-radius:5px;transform:translate(-50%,-50%);color:#fff;font-weight:750;line-height:1.25;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:0 2px 5px #000,0 0 2px #000;-webkit-text-stroke:.25px #0008}
:root[data-theme="light"] .ai-feature{background:linear-gradient(135deg,#e8f4fc,#f7fbff)!important;border-color:#c4dceb!important;box-shadow:0 3px 12px #163b5711!important;color:#213b52!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-theme="light"] .ai-feature .ai-copy strong,:root[data-theme="light"] .ai-feature .ai-copy small,:root[data-theme="light"] .ai-feature .coming-tag{color:#26465f!important;text-shadow:none!important}
:root[data-theme="light"] .ai-actions button,:root[data-theme="light"] .quick-action-button{background:#e9f3fa!important;border-color:#c8dce9!important;color:#25445d!important;box-shadow:0 2px 7px #173b5510!important}
:root[data-theme="light"] .quick-action-button strong,:root[data-theme="light"] .quick-action-button small{color:#25445d!important}
:root[data-theme="light"] .listhead,:root[data-theme="light"] .conversation-filters{color:#2a4055!important}
:root[data-theme="light"] .filter-chip{color:#35526c!important}
:root[data-theme="light"] .filter-chip.active,:root[data-theme="light"] .filter-chip.selected{background:#e4f1fa!important;color:#15527c!important;border-color:#8bbad8!important}
:root[data-theme="light"] .message-menu,:root[data-theme="light"] .file-viewer-menu{background:#fff!important;color:#263d52!important;border-color:#d0dce7!important;box-shadow:0 12px 34px #102c441c!important}
:root[data-theme="light"] .message-menu button,:root[data-theme="light"] .file-viewer-menu button{color:#263d52!important}
:root[data-theme="light"] .message-menu button:hover,:root[data-theme="light"] .file-viewer-menu button:hover{background:#edf4f9!important}
:root[data-theme="light"] .contact-import-card,:root[data-theme="light"] .phone-contact-row,:root[data-theme="light"] .admin-user-card,:root[data-theme="light"] .profile-group-item{background:#f6f9fc!important;color:#263d52!important;border-color:#d7e1e9!important}
:root[data-theme="light"] .contact-import-card strong,:root[data-theme="light"] .contact-import-card small,:root[data-theme="light"] .phone-contact-row strong,:root[data-theme="light"] .admin-user-card strong,:root[data-theme="light"] .admin-user-card small{color:#263d52!important}
:root[data-theme="light"] .bulk-toolbar,:root[data-theme="light"] .selection-toolbar{background:#e8f2f8!important;color:#243c52!important;border-color:#cfdee9!important}
:root[data-theme="light"] .story-editor{color-scheme:dark}

/* iOS standalone apps can drop file selection from inputs parked off-screen.
   Keep the native picker input in the viewport and available to WebKit. */
.story-file-input{position:fixed!important;left:50%!important;top:50%!important;width:2px!important;height:2px!important;opacity:.02!important;pointer-events:auto!important;z-index:11999!important}

/* Compact, balanced story reactions and comments over the full-screen media. */
.story-social{grid-template-rows:auto minmax(0,1fr) auto!important;gap:5px!important;max-height:min(30vh,290px)!important;padding:8px 14px calc(8px + env(safe-area-inset-bottom))!important}
.story-comments-head{min-height:32px!important;gap:8px!important}
.story-comments-head strong{font-size:12px!important;font-weight:600!important;opacity:.9}
.story-social #storyLike{min-width:54px!important;min-height:34px!important;padding:5px 10px!important;gap:5px!important;font-size:19px!important}
.story-social #storyLike span{font-size:11px!important}
.story-comments{min-height:0!important;max-height:10vh!important;padding:1px 2px 3px!important;font-size:12px!important;line-height:1.45!important}
.story-comment{padding:2px 0!important}
.story-comment strong{font-size:11px!important;margin-inline-end:5px!important}
.story-comment-form{gap:7px!important}
.story-comment-form input{height:36px!important;padding-inline:13px!important;font-size:12px!important}
.story-comment-form button{width:36px!important;height:36px!important;min-height:36px!important;font-size:16px!important}
.story-viewer-caption{bottom:calc(min(31vh,300px) + env(safe-area-inset-bottom) + 4px)!important;max-height:13vh!important;padding:7px 10px!important;font-size:13px!important;line-height:1.5!important}
@media(max-width:640px){.story-social{max-height:min(30vh,290px)!important;padding-inline:14px!important}.story-viewer-caption{bottom:calc(min(31vh,300px) + env(safe-area-inset-bottom) + 4px)!important}}

/* Keep group membership controls balanced and visible above the phone safe area. */
.group-details-dialog{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;gap:0!important}
.group-details-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;padding:10px 16px max(14px,env(safe-area-inset-bottom))!important}
.group-details-actions #addMembersFromContacts{grid-column:1/-1}
.group-details-actions #leaveGroup,.group-details-actions #deleteGroup{min-width:0!important;width:100%!important}
.group-add-member-form{grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;margin:10px 16px 8px!important}
.group-add-member-form>button{min-width:100px!important}
@media(max-width:520px){.group-details-dialog{height:min(82dvh,760px)!important;min-height:min(500px,82dvh)!important;align-self:center!important;border-radius:24px!important}.group-details-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding-inline:14px!important}.group-add-member-form{grid-template-columns:minmax(0,1fr) auto!important;margin-inline:14px!important}.group-add-member-form>button{width:auto!important}}

/* Center the group details panel on phones and keep every control visible. */
@media(max-width:520px){#groupDetailsModal.overlay{align-items:center!important;justify-items:center!important;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))!important}#groupDetailsModal .group-details-dialog{width:min(100%,560px)!important;height:min(78dvh,700px)!important;min-height:0!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)!important;align-self:center!important;border-radius:24px!important;box-sizing:border-box!important}#groupDetailsModal .group-details-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px 14px max(14px,env(safe-area-inset-bottom))!important}#groupDetailsModal #addMembersFromContacts{grid-column:1/-1!important}#groupDetailsModal .group-details-actions button{min-height:42px!important;white-space:normal!important;line-height:1.3!important}#groupDetailsModal .group-add-member-form{grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;margin:8px 14px!important;padding:10px!important}#groupDetailsModal .group-add-member-form>button{width:auto!important;min-width:96px!important}}


/* /story-fonts.css?v=1 */
@font-face{font-family:"EPTVazirmatn";src:url("/fonts/vazirmatn.ttf") format("truetype");font-weight:100 900;font-style:normal;font-display:swap;}
@font-face{font-family:"EPTLalezar";src:url("/fonts/lalezar.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"EPTMarkazi";src:url("/fonts/markazitext.ttf") format("truetype");font-weight:400 700;font-style:normal;font-display:swap;}
@font-face{font-family:"EPTNaskh";src:url("/fonts/notonaskharabic.ttf") format("truetype");font-weight:400 700;font-style:normal;font-display:swap;}
@font-face{font-family:"EPTKufi";src:url("/fonts/reemkufi.ttf") format("truetype");font-weight:400 700;font-style:normal;font-display:swap;}
@font-face{font-family:"EPTAmiri";src:url("/fonts/amiri.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"EPTRubik";src:url("/fonts/rubik.ttf") format("truetype");font-weight:300 900;font-style:normal;font-display:swap;}
@font-face{font-family:"EPTPlayfair";src:url("/fonts/playfairdisplay.ttf") format("truetype");font-weight:400 900;font-style:normal;font-display:swap;}
.story-editor{overflow-y:auto}
.story-editor-stage{width:min(calc(100vw - 24px),380px,calc((100dvh - 340px)*.5625));min-width:130px}
.story-font-tools{display:flex;align-items:center;gap:7px;min-width:0}
.story-font-tools select{min-width:0;flex:1;background:#202632;color:#fff;border:1px solid #ffffff32;border-radius:18px;padding:7px 10px;font-size:14px}
.story-font-tools label{display:flex;align-items:center;gap:5px;font-size:11px}
.story-font-tools input{width:75px;accent-color:#268cff}
.story-touch-hint{margin:0;color:#b9c2ce;font-size:11px;line-height:1.5}
.story-editor-text{font-family:"EPTVazirmatn",sans-serif;user-select:none;-webkit-user-select:none}
.story-editor-stage{user-select:none;-webkit-user-select:none;touch-action:none}
@media(max-width:370px){.story-font-tools{flex-wrap:wrap}.story-font-tools label{width:100%}.story-font-tools input{flex:1}}

