/* /ept-avatar-r42.css?v=1 */
/* EPT R42 avatar safety - applies to old images and new uploads, web/PWA/Android. */
.avatar, .avatar.avatar-sm, .avatar.large, .selfpic .avatar,
.peer-profile-avatar, .incoming-banner-avatar,
#profileAvatar, #peerProfileAvatar, #selfAvatar,
#callPeerAvatar, #callStageAvatar, #storyViewerAvatar {
  box-sizing: border-box !important;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
}
/* Story rings must remain outside the clipping region. */
.avatar.has-story-avatar { overflow: visible !important; }
.avatar:not(.has-story-avatar), .peer-profile-avatar,
.incoming-banner-avatar, #profileAvatar, #peerProfileAvatar,
#selfAvatar, #callPeerAvatar, #callStageAvatar, #storyViewerAvatar {
  overflow: hidden !important;
}
.avatar img, .story-avatar img, .peer-profile-avatar img,
.incoming-banner-avatar img, #profileAvatar img,
#peerProfileAvatar img, #selfAvatar img,
#callPeerAvatar img, #callStageAvatar img, #storyViewerAvatar img {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: 50% 40% !important;
  border-radius: 50% !important;
  clip-path: circle(49.8% at 50% 50%);
  -webkit-clip-path: circle(49.8% at 50% 50%);
}
.story-ring {
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  border-radius: 50% !important;
}
.story-ring > .story-avatar {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
}
.story-ring > .story-avatar > img { border-radius: 50% !important; }
/* Never clip the add-story badge or the colorful ring outside the photo. */
.story-person-own, .story-person-open, .story-person { overflow: visible; }


/* /ept-menu-r43.css?v=compact-v31 */
/* EPT R43 professional, viewport-safe context menu. Web, iOS and Android WebView. */
.ept-r43-menu[hidden]{display:none!important}
.ept-r43-menu{
  position:fixed!important; z-index:2147483000!important;
  box-sizing:border-box!important; width:max-content; min-width:228px;
  max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px);
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin;
  padding:5px; border-radius:19px;
  border:1px solid rgba(137,200,244,.33);
  background:linear-gradient(156deg,rgba(18,47,83,.985),rgba(9,29,56,.985));
  box-shadow:0 20px 58px rgba(0,9,28,.56),0 2px 8px rgba(0,6,23,.24),inset 0 1px rgba(255,255,255,.15);
  color:#eef7ff; direction:rtl; text-align:right;
  backdrop-filter:blur(22px) saturate(145%); -webkit-backdrop-filter:blur(22px) saturate(145%);
  isolation:isolate; font-family:inherit; transform:none!important;
  contain:layout style;
}
.ept-r43-menu.ept-r43-in{animation:eptR43MenuPop .14s ease-out both}
@keyframes eptR43MenuPop{from{opacity:.65;scale:.975}to{opacity:1;scale:1}}
.ept-r43-menu-head{
  position:sticky;top:-5px;z-index:1; padding:10px 13px 11px;
  margin:0 0 2px; font-size:12px; font-weight:800;letter-spacing:.03em;
  color:#a9dfff; background:linear-gradient(95deg,#102f56,#0b2341);
  border-bottom:1px solid rgba(156,199,235,.20);border-radius:14px 14px 5px 5px;
}
.ept-r43-menu-content{display:flex;flex-direction:column;gap:2px;min-width:0}
.ept-r43-menu-content>button{
  box-sizing:border-box!important;display:flex;align-items:center;
  width:100%;min-height:44px;padding:10px 12px!important;
  text-align:right;direction:rtl; white-space:normal!important;
  font:inherit!important;font-size:13px!important;font-weight:600!important;
  line-height:1.6!important; color:#f1f8ff!important;
  border:0!important;border-radius:11px!important;background:transparent!important;
  box-shadow:none!important;transition:background-color .12s ease;
}
.ept-r43-menu button[hidden]{display:none!important}
.ept-r43-menu-content>button:hover,.ept-r43-menu-content>button:focus-visible{
  outline:0; background:rgba(117,197,255,.17)!important;
}
.ept-r43-menu-content>button:active{background:rgba(112,185,251,.27)!important}
.ept-r43-menu-content>button[data-action="deleteAll"],
.ept-r43-menu-content>button[data-action="deleteSelf"],
.ept-r43-menu-content>button[data-viewer-action="delete"]{color:#ffb5bd!important}
.ept-r43-menu-content>button[data-action="deleteAll"]{margin-top:3px;border-top:1px solid #ffffff19!important;border-radius:5px 5px 11px 11px!important}
.ept-r43-menu .reaction-row{
  order:-1;display:flex!important;align-items:center;justify-content:space-between;
  gap:1px; border:0!important;border-bottom:1px solid rgba(156,199,235,.25)!important;
  margin:2px 0 5px!important;padding:4px 1px 9px!important;
}
.ept-r43-menu .reaction-row button{
  display:grid;place-items:center;flex:1;min-width:0;min-height:37px;
  padding:3px 1px!important;font-size:21px!important;line-height:1!important;
  border:0!important;border-radius:11px!important;
  color:#fff!important;background:transparent!important;
}
.ept-r43-menu .reaction-row button:hover,.ept-r43-menu .reaction-row button:focus-visible{background:#ffffff21!important}
:root[data-theme="light"] .ept-r43-menu{
  background:rgba(255,255,255,.99)!important;color:#1b3550!important;
  border-color:#cbdce9!important;
  box-shadow:0 16px 55px #153e5b36,0 1px 4px #153e5b18!important;
}
:root[data-theme="light"] .ept-r43-menu-head{
  background:#f4f9ff!important;color:#336c9f!important;border-bottom-color:#dce8f5!important;
}
:root[data-theme="light"] .ept-r43-menu-content>button{color:#193b57!important}
:root[data-theme="light"] .ept-r43-menu-content>button:hover{background:#eaf3fd!important}
:root[data-theme="light"] .ept-r43-menu-content>button[data-action^="delete"],
:root[data-theme="light"] .ept-r43-menu-content>button[data-viewer-action="delete"]{color:#bf3355!important}
:root[data-theme="light"] .ept-r43-menu .reaction-row{border-bottom-color:#e1eaf3!important}
@media(max-width:600px){.ept-r43-menu{min-width:214px;border-radius:17px}.ept-r43-menu-content>button{font-size:12.5px!important;min-height:43px}}
@media(prefers-reduced-motion:reduce){.ept-r43-menu.ept-r43-in{animation:none!important}}

/* Keep native text/image callouts from taking over a message hold. */
#messages .msg .bubble, #messages .msg .bubble img, #messages .msg .bubble video { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
/* CSP-safe mobile placement: never depend on style attributes or JS CSSOM. */
.ept-r43-menu:not([hidden]) {
  position:fixed!important;
  left:max(12px,env(safe-area-inset-left))!important;
  right:max(12px,env(safe-area-inset-right))!important;
  bottom:calc(14px + env(safe-area-inset-bottom))!important;
  top:auto!important;
  width:auto!important;
  max-width:520px!important;
  max-height:min(70vh,590px)!important;
  margin:0 auto!important;
  visibility:visible!important;
  z-index:2147483000!important;
}

/* Long press opens EPT actions instead of selecting message text on iOS. */
#messages .msg .bubble, #messages .msg .stamp { -webkit-user-select:none;user-select:none;-webkit-touch-callout:none; }

/* Compact touch menu; retain a scrollable list and the existing actions. */
.ept-r43-menu:not([hidden]) {
  left:auto!important;
  right:max(12px,env(safe-area-inset-right))!important;
  bottom:calc(12px + env(safe-area-inset-bottom))!important;
  width:min(258px,calc(100vw - 24px))!important;
  min-width:0!important;
  max-width:none!important;
  max-height:min(46dvh,390px)!important;
  margin:0!important;
  padding:4px!important;
  border-radius:14px!important;
}
.ept-r43-menu-head { padding:6px 9px!important; font-size:11px!important; }
.ept-r43-menu-content { gap:0!important; }
.ept-r43-menu-content>button {
  min-height:34px!important;
  padding:5px 9px!important;
  font-size:12px!important;
  line-height:1.35!important;
  border-radius:8px!important;
}
.ept-r43-menu .reaction-row { margin:0 0 2px!important; padding:1px 0 4px!important; }
.ept-r43-menu .reaction-row button { min-height:29px!important; padding:1px!important; font-size:17px!important; }


/* /ept-settings-r44.css?v=ept-card-r44-direct-v9 */
/* EPT R44: consistent premium account/settings navigation — Web, iOS and Android. */
#settingsPage{background:radial-gradient(ellipse at 85% 4%,#176eb031,transparent 40%),linear-gradient(145deg,#06192f,#081323 68%,#071a34)!important}
#settingsPage .settings-top{z-index:3;position:relative;box-shadow:0 5px 20px #02122427}
#settingsPage.ept-r44-home-view>.settings-content{display:none!important}
#settingsPage.ept-r44-detail>#eptR44Home{display:none!important}
#settingsPage.ept-r44-detail>.settings-content{display:block!important;max-width:800px;padding:19px 16px 50px}
#settingsPage .settings-content .settings-section:not([style*="display: none"]){margin-top:13px}
#settingsPage .settings-top h1{font-size:21px!important;letter-spacing:.01em}
#settingsPage .settings-back{flex:0 0 44px;border-radius:13px!important}
.ept-r44-home{flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;width:100%;padding:20px max(14px,env(safe-area-inset-right)) 42px max(14px,env(safe-area-inset-left));scrollbar-width:thin}
.ept-r44-home[hidden],.ept-r44-group[hidden],.ept-r44-nav[hidden]{display:none!important}
.ept-r44-wrap{width:min(100%,770px);margin-inline:auto}
.ept-r44-profile{display:flex;align-items:center;gap:15px;text-align:start;direction:inherit;width:100%;padding:18px 20px;border-radius:23px;color:#f8fcff;background:linear-gradient(117deg,#16518d,#0d325f 68%,#133c65);border:1px solid #61b9ee6b;box-shadow:0 13px 35px #00132842,inset 0 1px #ffffff24;cursor:pointer;min-height:100px}
.ept-r44-avatar{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;font-size:27px;font-weight:800;border-radius:50%;border:2px solid #53c5ff;background:#154783;box-shadow:0 0 0 5px #55d6ff1c;overflow:hidden}
.ept-r44-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.ept-r44-profile-meta{flex:1;min-width:0;display:grid;gap:5px}
.ept-r44-profile-meta strong{font-size:19px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ept-r44-profile-meta small{font-size:12px;opacity:.83;direction:ltr;unicode-bidi:plaintext;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ept-r44-search{display:flex;align-items:center;gap:10px;border:1px solid #69a8d54f;background:#17437174;border-radius:16px;margin:18px 0 24px;min-height:49px;padding:0 15px;color:#c4e9ff}
.ept-r44-search>span{font-size:24px;line-height:1}
.ept-r44-search input{all:unset!important;flex:1!important;min-width:0!important;box-sizing:border-box!important;color:inherit!important;font:inherit!important;font-size:14px!important;direction:inherit!important;text-align:start!important;height:44px!important}
.ept-r44-search input::placeholder{color:#bdd5eabd}
.ept-r44-group{margin:0 0 25px}
.ept-r44-group h2{font-size:12px;color:#94c5ef;font-weight:750;margin:0 8px 10px;letter-spacing:.02em}
.ept-r44-group-body,.ept-r44-option-group{border:1px solid #78b9ee3d;background:linear-gradient(145deg,#103258bb,#092141e0);border-radius:20px;overflow:hidden;box-shadow:0 10px 26px #010d201f}
.ept-r44-nav,.ept-r44-item{all:unset!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;width:100%!important;gap:15px!important;min-height:72px!important;padding:12px 16px!important;text-align:start!important;direction:inherit!important;cursor:pointer!important;color:#f5faff!important;border-bottom:1px solid #b9e6ff1a!important;transition:background .15s ease}
.ept-r44-nav:last-child,.ept-r44-item:last-child{border-bottom:0!important}
.ept-r44-nav:focus-visible,.ept-r44-item:focus-visible,.ept-r44-profile:focus-visible{outline:2px solid #60c8fa!important;outline-offset:-3px!important}
.ept-r44-nav:hover,.ept-r44-item:hover{background:#58b9fa13!important}
.ept-r44-icon{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(140deg,#2b81c64d,#1670b328);border:1px solid #81d4ff3d;font-size:21px;font-style:normal}
.ept-r44-option-copy{display:grid;gap:4px;flex:1;min-width:0}
.ept-r44-option-copy b{font-size:15px;font-weight:700;line-height:1.5}
.ept-r44-option-copy small{font-size:11.5px;color:#b4cce4;line-height:1.6}
.ept-r44-chevron{margin-inline-start:auto;font-size:28px;color:#8bcfff;flex:0 0 auto;line-height:1}
.ept-r44-footer{text-align:center;color:#83bce0;font-size:11px;padding:6px 0 0}
.ept-r44-extra{display:grid;gap:15px;width:100%;margin-top:8px}
.ept-r44-option-group{margin:0 0 13px}
.ept-r44-item{min-height:60px!important}
.ept-r44-toggle-row{display:flex;align-items:center;gap:13px;position:relative;padding:14px 17px;min-height:68px;border-bottom:1px solid #ffffff13;color:#f5faff}
.ept-r44-toggle-row:last-child{border-bottom:0}
.ept-r44-toggle-row input[type=checkbox]{position:absolute;opacity:0;inset:auto 16px auto auto;width:46px;height:32px;cursor:pointer}
.ept-r44-switch{width:46px;height:27px;border-radius:99px;border:1px solid #66abc2aa;background:#406386;flex:0 0 46px;position:relative;transition:background .2s}
.ept-r44-switch:before{content:'';display:block;position:absolute;top:3px;left:3px;width:19px;height:19px;background:#edfaff;border-radius:50%;transition:transform .2s}
.ept-r44-toggle-row input:checked+.ept-r44-switch{background:#098aca}
.ept-r44-toggle-row input:checked+.ept-r44-switch:before{transform:translateX(19px)}
.ept-r44-toggle-row input:focus-visible+.ept-r44-switch{outline:2px solid #72e6ff;outline-offset:2px}
.ept-r44-info,.ept-r44-unavailable{border-radius:18px;padding:16px 18px;background:#13426f7d;border:1px solid #56abd04e;color:#d6efff;line-height:1.85;font-size:13px;margin-bottom:13px}
.ept-r44-info b{font-size:15px;color:#fff}
.ept-r44-info p{margin:6px 0;color:#c5def0}
.ept-r44-info small{color:#acd2e5}
.ept-r44-unavailable{display:flex;align-items:start;gap:12px;border-style:dashed;background:#153b5c4d;color:#b7c8d8;margin-top:12px}
.ept-r44-unavailable>span:first-child{font-size:19px}
.ept-r44-unavailable-list{border:1px solid #75a9c02c;border-radius:18px;overflow:hidden;background:#071a30aa}
.ept-r44-muted-row{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:53px;padding:12px 16px;border-bottom:1px solid #82b6da1b;font-size:13px;color:#d5e5f2}
.ept-r44-muted-row:last-child{border-bottom:0}
.ept-r44-status{font-size:10px;padding:4px 7px;border-radius:8px;background:#7fa5c023;color:#95b0c4;white-space:nowrap}
.ept-r44-footnote{font-size:12px;line-height:1.85;color:#a7c4d5;margin:12px 4px 5px}
.ept-r44-select-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:15px;color:#e5f5ff;font-size:13px}
.ept-r44-select-row select{border-radius:12px;background:#153d65;color:white;border:1px solid #6bb5e17c;padding:9px 13px}
.ept-r44-storage{display:grid;gap:7px;padding:18px;color:#e9f8ff}
.ept-r44-storage strong{font-size:25px}
.ept-r44-storage small{font-size:12px;color:#b6d4e7;line-height:1.7}
.ept-r44-secondary{border:1px solid #7ab3e5!important;border-radius:12px!important;color:#f1faff!important;background:#175b94!important;padding:10px 15px!important;justify-self:start!important;cursor:pointer!important}
html.ept-r44-hide-previews .chatrow-info small{filter:blur(6px);user-select:none}
html.ept-r44-compact .chatrow{min-height:62px!important;padding-top:5px!important;padding-bottom:5px!important}
html[data-ept-r44-font="large"] .bubble,html[data-ept-r44-font="large"] .chatrow-info{font-size:1.1em!important}
html[data-ept-r44-font="larger"] .bubble,html[data-ept-r44-font="larger"] .chatrow-info{font-size:1.2em!important}
html.ept-r44-contrast .chatrow,html.ept-r44-contrast .bubble{border:1.5px solid #74bff0!important}
html.ept-r44-contrast #settingsPage .settings-section{border:2px solid #80bdf0!important}
html.ept-r44-reduced-motion *,html.ept-r44-reduced-motion *::before,html.ept-r44-reduced-motion *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
:root[data-theme="light"] #settingsPage{background:linear-gradient(135deg,#f5fbff,#eaf2fc 70%,#deecf8)!important;color:#123651!important}
:root[data-theme="light"] .ept-r44-profile{background:linear-gradient(130deg,#d9eefe,#c8e4fb);color:#193e5a;border-color:#99c6e8}
:root[data-theme="light"] .ept-r44-group-body,:root[data-theme="light"] .ept-r44-option-group{background:#fff;border-color:#cfdfed;box-shadow:0 8px 22px #1d476018}
:root[data-theme="light"] .ept-r44-nav,:root[data-theme="light"] .ept-r44-item,:root[data-theme="light"] .ept-r44-toggle-row,:root[data-theme="light"] .ept-r44-select-row{color:#12354f!important;border-bottom-color:#e3eaf2!important}
:root[data-theme="light"] .ept-r44-option-copy small{color:#5b778c}
:root[data-theme="light"] .ept-r44-group h2,:root[data-theme="light"] .ept-r44-footer{color:#3d78a8}
:root[data-theme="light"] .ept-r44-search{background:#fff;color:#124e79;border-color:#b8d3e8}
:root[data-theme="light"] .ept-r44-icon{background:#e5f4ff;border-color:#cbe5f9}
:root[data-theme="light"] .ept-r44-info,:root[data-theme="light"] .ept-r44-unavailable{background:#eaf6ff;color:#235574;border-color:#b5d4e9}
:root[data-theme="light"] .ept-r44-info b{color:#15425e}
:root[data-theme="light"] .ept-r44-info p{color:#436b83}
:root[data-theme="light"] .ept-r44-muted-row{color:#28485c;border-color:#dce8f1}
:root[data-theme="light"] .ept-r44-unavailable-list{background:#fff;border-color:#ccdeeb}
:root[data-theme="light"] .ept-r44-footnote{color:#547790}
:root[data-theme="light"] .ept-r44-select-row select{background:white;color:#254765}
@media(max-width:530px){.ept-r44-home{padding:14px 12px 36px}.ept-r44-profile{padding:15px}.ept-r44-nav{min-height:65px!important;padding:10px 13px!important}.ept-r44-icon{width:41px;height:41px;flex-basis:41px}.ept-r44-option-copy b{font-size:14px}.ept-r44-option-copy small{font-size:11px}.ept-r44-muted-row{font-size:12px}.ept-r44-status{font-size:9px}}

/* EPT CARD V9: the only settings card row, immediately after .ept-r44-profile.
   The settings-home theme is independent of the chat user's global light/dark choice. */
html[data-theme="light"] #settingsPage.ept-r44-home-view,
#settingsPage.ept-r44-home-view{background:radial-gradient(ellipse at 50% -20%,#114b74 0,transparent 60%),#061b34!important;color:#f1faff!important}
#settingsPage.ept-r44-home-view .settings-top{background:#082a4a!important;color:#fff!important;border-bottom:1px solid #2dc5ee78!important}
#settingsPage.ept-r44-home-view .settings-top h1,
#settingsPage.ept-r44-home-view .settings-top small{color:#f7fbff!important}
#settingsPage.ept-r44-home-view .ept-r44-profile{background:linear-gradient(115deg,#0c4c81,#092e50 68%,#0a2c4d)!important;color:#fff!important;border:1.4px solid #35c7f1!important;box-shadow:0 0 10px #28bde840,inset 0 1px #ffffff25!important}
#settingsPage.ept-r44-home-view .ept-r44-profile-meta strong,
#settingsPage.ept-r44-home-view .ept-r44-profile-meta small{color:#f4fbff!important}
#settingsPage.ept-r44-home-view .ept-r44-search{background:#092a49!important;color:#f0faff!important;border:1.4px solid #37c7ee!important;border-radius:18px!important;box-shadow:0 0 8px #00bbef33!important}
#settingsPage.ept-r44-home-view .ept-r44-search input{color:#f0fbff!important}
#settingsPage.ept-r44-home-view .ept-r44-search input::placeholder{color:#bbddec!important;opacity:1!important}
#settingsPage.ept-r44-home-view .ept-r44-group-body{background:linear-gradient(135deg,#0a3359,#071e39)!important;border:1.2px solid #32b7e3aa!important;box-shadow:0 0 8px #158cb72a!important}
#settingsPage.ept-r44-home-view .ept-r44-nav{color:#f3f9ff!important;border-bottom-color:#5ac6ed45!important}
#settingsPage.ept-r44-home-view .ept-r44-option-copy b,
#settingsPage.ept-r44-home-view .ept-r44-chevron{color:#effaff!important}
#settingsPage.ept-r44-home-view .ept-r44-option-copy small{color:#bbd6e8!important}
#settingsPage.ept-r44-home-view .ept-r44-group h2{color:#d2ecff!important}
#settingsPage.ept-r44-home-view .ept-r44-footer{color:#9fc6dd!important}
#settingsPage .ept-r44-card-link,
#settingsPage .ept-r44-card-link:link,
#settingsPage .ept-r44-card-link:visited{
 display:flex!important;box-sizing:border-box!important;align-items:center!important;direction:rtl!important;
 width:100%!important;min-height:95px!important;max-width:100%!important;
 gap:13px!important;padding:13px 17px!important;margin:15px 0 0!important;
 border:1.5px solid #37d7ff!important;border-radius:23px!important;
 background:linear-gradient(112deg,#0b467a 0%,#06395f 65%,#052644 100%)!important;
 box-shadow:0 0 10px #2ec6f75e,inset 0 1px #ffffff3b!important;
 color:#fff!important;text-decoration:none!important;text-align:start!important;
 overflow:hidden!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent;
}
#settingsPage .ept-r44-card-link:focus-visible{outline:2px solid #fff!important;outline-offset:3px!important}
#settingsPage .ept-r44-card-thumbnail{display:block!important;flex:0 0 89px!important;width:89px!important;height:55px!important;max-width:89px!important;max-height:55px!important;object-fit:cover!important;border:1px solid #44c7ffb9!important;border-radius:8px!important;box-shadow:0 0 8px #00bbff62!important}
#settingsPage .ept-r44-card-copy{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;gap:4px!important;align-items:flex-start!important;text-align:right!important;color:#fff!important}
#settingsPage .ept-r44-card-copy b{display:block!important;font-size:20px!important;font-weight:800!important;line-height:1.3!important;color:#fff!important;text-decoration:none!important;white-space:nowrap!important}
#settingsPage .ept-r44-card-copy small{display:block!important;font-size:12px!important;line-height:1.5!important;color:#d8effa!important;text-decoration:none!important}
#settingsPage .ept-r44-card-chevron{display:block!important;flex:0 0 17px!important;margin-inline-start:auto!important;font-size:28px!important;line-height:1!important;color:#d2f5ff!important}
@media(max-width:390px){
 #settingsPage .ept-r44-card-link{min-height:82px!important;gap:9px!important;padding:10px 11px!important}
 #settingsPage .ept-r44-card-thumbnail{width:72px!important;max-width:72px!important;flex-basis:72px!important;height:47px!important;max-height:47px!important}
 #settingsPage .ept-r44-card-copy b{font-size:18px!important}
 #settingsPage .ept-r44-card-copy small{font-size:11px!important}
}


/* /ept-sms-otp.css?v=rc7-safe */
/* Shared EPT SMS OTP UI: responsive and consistent with existing EPT palette. */
.ept-sms-backdrop[hidden],.ept-sms-sheet form[hidden]{display:none!important}
.ept-sms-backdrop{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom));background:rgba(3,12,28,.75);backdrop-filter:blur(10px)}
.ept-sms-sheet{position:relative;width:min(420px,100%);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid rgba(89,202,250,.3);border-radius:24px;padding:26px 22px 20px;color:#f0f8ff;background:linear-gradient(145deg,#123c66,#091a35 83%);box-shadow:0 24px 60px rgba(0,0,0,.44);font-family:inherit;text-align:right}
.ept-sms-sheet h2{margin:8px 0;font-size:1.28rem}.ept-sms-sheet p{line-height:1.75}.ept-sms-sheet small{color:#c5d9e8;font-size:.79rem}
.ept-sms-sheet label{display:block;font-weight:650;margin:16px 0 8px}
.ept-sms-sheet input{background:#e9f5ff!important;border:1px solid #70b4db!important;border-radius:12px!important;color:#152942!important;max-width:100%;width:100%;font-size:1.3rem!important;letter-spacing:.35em;text-align:center;padding:13px 8px!important;box-sizing:border-box}
.ept-sms-sheet button.primary{width:100%;margin-top:16px;min-height:47px;border-radius:13px}
.ept-sms-close{position:absolute;top:12px;left:12px;background:transparent;border:0;color:#ecf9ff;font-size:2rem;cursor:pointer;padding:3px 10px}
.ept-sms-icon{font-size:1.9rem;color:#7df2e6}.ept-sms-link{display:block;margin:10px auto 0;padding:10px;color:inherit;border:1px solid currentColor;border-radius:12px;background:transparent;opacity:.88;cursor:pointer;width:100%}
.ept-sms-account{width:100%;cursor:pointer}.ept-sms-account:disabled{opacity:.7;cursor:default}
@media(prefers-reduced-motion:reduce){.ept-sms-backdrop{backdrop-filter:none}}


/* /ept-glass-shell.css?v=1 */
/* Only signed-out auth view: never affects #mainView or chat. */
#authView.ept-glass-current { position:fixed!important;inset:0!important;margin:0!important;padding:0!important;max-width:none!important;width:100%!important;min-width:0!important;height:100dvh!important;min-height:0!important;z-index:40!important;background:#03112b!important;overflow:hidden!important; }
#authView.ept-glass-current:not(.hidden) { display:block!important; }
#authView.ept-glass-current > :not(#eptGlassFrame) { display:none!important; }
#authView.ept-glass-current #eptGlassFrame { display:block!important;box-sizing:border-box!important;width:100%!important;height:100%!important;border:0!important;background:#03112b!important; }


/* /ept-support-v2.css?v=2 */
.eptSupportLayer[hidden]{display:none!important}.eptSupportLayer{position:fixed;inset:0;z-index:99998;background:#010914c9;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:16px}.eptSupportPanel{background:linear-gradient(150deg,#092958f5,#030e26f8);border:1px solid #36aaff;border-radius:22px;box-shadow:0 0 45px #00469f8c;color:#eff8ff;width:min(550px,100%);max-height:min(85dvh,800px);display:flex;flex-direction:column;padding:20px;font-family:inherit}.eptSupportPanel header{display:flex;align-items:center;justify-content:space-between}.eptSupportPanel h2{font-size:22px;margin:0}.eptSupportClose{border:1px solid #3685c7;border-radius:50%;width:38px;height:38px;font-size:26px;color:white;background:#052655;cursor:pointer}.eptSupportPanel>p{font-size:13px;color:#a9cbef;line-height:1.6}.eptSupportMessages{min-height:200px;overflow:auto;display:flex;flex-direction:column;gap:10px;flex:1;background:#04152dbb;border:1px solid #1f4b7c;border-radius:12px;padding:13px}.eptSupportBubble{max-width:90%;padding:10px 14px;border-radius:14px;background:#123e70;align-self:flex-start}.eptSupportBubble.mine{align-self:flex-end;background:#0861aa}.eptSupportBubble strong{font-size:11px;color:#8cddff}.eptSupportBubble p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.eptSupportBubble small{font-size:10px;color:#b1c8df}.eptSupportPanel form{display:grid;gap:9px;margin-top:12px}.eptSupportPanel textarea{background:#031936;color:white;border:1px solid #286eab;border-radius:11px;padding:12px;font:inherit;resize:vertical}.eptSupportPanel form button{border:1px solid #3dd5ff;background:linear-gradient(100deg,#0869df,#0bb9f0);border-radius:10px;padding:13px;color:white;font-weight:700;cursor:pointer}.eptSupportPanel form button:disabled{opacity:.5}.eptSupportPanel #eptSupportStatus{min-height:1.1em;margin:10px 0 0}


/* /ept-live-v9/skin.css?v=9.0.0 */
/* EPT Approved Design · Global UI skin v1.0
 * Additive presentation only: preserves input IDs, existing JS handlers, sessions, APIs and hidden states.
 * Reference: user's approved midnight/electric-blue chat list, dark chat, light chat, EPT AI, calls and settings.
 */
:root{--ept-r1-navy:#020a1b;--ept-r1-deep:#03112c;--ept-r1-blue:#0865fa;--ept-r1-electric:#078ffe;--ept-r1-cyan:#55ddff;--ept-r1-white:#f2f8ff;--ept-r1-muted:#9bbadf;--ept-r1-line:rgba(70,165,249,.4);--ept-r1-glow:0 0 0 1px rgba(36,140,243,.2),0 0 32px rgba(0,126,255,.15);--ept-r1-galaxy:radial-gradient(ellipse 90% 48% at 94% 7%,rgba(0,100,255,.17),transparent 74%),radial-gradient(ellipse 66% 46% at 2% 96%,rgba(3,106,252,.16),transparent 70%),linear-gradient(155deg,#020b20,#041530 54%,#020a1b)}
:root[data-theme=dark] #mainView,:root[data-theme=auto] #mainView{--ept-r1-fg:#eaf5ff;--ept-r1-panel:linear-gradient(145deg,rgba(7,30,67,.97),rgba(3,13,33,.96));--ept-r1-pane:#061a3b;--ept-r1-soft:rgba(10,39,82,.78);--ept-r1-sep:rgba(62,138,226,.28);--ept-r1-field:rgba(3,17,42,.84);--ept-r1-sub:#96b7dd;--ept-r1-out:linear-gradient(125deg,#0050d9,#078bff 72%,#059af7)}
:root[data-theme=light] #mainView{--ept-r1-fg:#092852;--ept-r1-panel:linear-gradient(142deg,rgba(255,255,255,.96),rgba(232,244,255,.96));--ept-r1-pane:#f5faff;--ept-r1-soft:rgba(225,243,255,.89);--ept-r1-sep:rgba(20,96,186,.17);--ept-r1-field:rgba(248,252,255,.95);--ept-r1-sub:#6586a6;--ept-r1-out:linear-gradient(130deg,#d8ecff,#9bd6ff)}
#mainView, #mainView *{box-sizing:border-box}
#mainView {color:var(--ept-r1-fg);background:var(--ept-r1-galaxy)!important;isolation:isolate}
#mainView :is(button,input,textarea,select){font-family:inherit}
#mainView :is(button,a){-webkit-tap-highlight-color:transparent}
#mainView :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--ept-r1-cyan)!important;outline-offset:2px!important}
#mainView .hidden, .hidden{ /* preserve original hidden state; never make hidden UI visible */ }
#mainView .sidebar{position:relative;background:var(--ept-r1-panel)!important;color:var(--ept-r1-fg)!important;border-inline-end:1px solid rgba(38,143,255,.58)!important;box-shadow:inset -1px 0 0 rgba(127,223,255,.1),14px 0 52px rgba(0,11,38,.28)!important}
#mainView .sidebar:before{content:'';position:absolute;z-index:0;pointer-events:none;inset:0;background:radial-gradient(circle at 8% 1%,rgba(1,94,231,.13),transparent 32%),linear-gradient(128deg,transparent 60%,rgba(0,135,255,.07))}
#mainView .sidebar>*{position:relative;z-index:1}
#mainView .brand{background:linear-gradient(180deg,rgba(7,24,57,.91),rgba(4,20,48,.79))!important;border-bottom:1px solid var(--ept-r1-line)!important;min-height:70px!important;gap:9px!important;padding-inline:13px!important;box-shadow:0 9px 25px rgba(0,9,30,.18)!important}
#mainView .brand img{height:39px!important;width:43px!important;object-fit:contain!important;background:none!important;border:none!important;filter:drop-shadow(0 0 11px rgba(0,148,255,.8))}
#mainView .brand-copy strong{font-size:21px!important;letter-spacing:.13em!important;font-weight:850!important;color:#effaff!important;text-shadow:0 0 14px rgba(0,137,255,.48)}
#mainView .brand-copy small{font-size:9px!important;letter-spacing:.025em;color:#a7c9ef!important}
#mainView .compact-account{border-radius:25px!important}
#mainView .selfpic,#mainView .story-ring,#mainView .avatar{border:2px solid rgba(65,174,255,.7)!important;box-shadow:0 0 0 3px rgba(0,106,228,.12),0 0 18px rgba(0,133,255,.21)}
#mainView .brand-settings{background:rgba(4,32,78,.72)!important;color:#cce9ff!important;border:1px solid var(--ept-r1-line)!important;border-radius:50%!important;box-shadow:0 0 12px rgba(0,137,255,.16)!important}
#mainView .story-shelf{border-bottom:1px solid var(--ept-r1-sep)!important;background:rgba(2,15,39,.2)!important;padding-block:12px!important}
#mainView .story-shelf-head{color:#e6f6ff!important;letter-spacing:.02em}
#mainView .story-person .story-ring{border-color:#2fb5ff!important;outline:1px solid rgba(42,205,255,.33)!important;outline-offset:3px;box-shadow:0 0 17px rgba(0,131,244,.33)!important}
#mainView .story-person small{color:var(--ept-r1-fg)!important;font-size:11px!important}
#mainView .story-create-badge{background:linear-gradient(135deg,#0463fa,#1ccaff)!important;color:white!important;box-shadow:0 0 12px #007aff70!important}
#mainView .search{margin:11px 12px!important;background:var(--ept-r1-field)!important;border:1px solid var(--ept-r1-line)!important;border-radius:17px!important;box-shadow:inset 0 1px 0 #82dfff18!important}
#mainView .search input{border:0!important;background:transparent!important;color:var(--ept-r1-fg)!important;font-size:14px!important}
#mainView .search input::placeholder{color:var(--ept-r1-sub)!important}
#mainView .search-action{border-radius:13px!important;color:#8de5ff!important}
#mainView .ai-feature{background:linear-gradient(130deg,rgba(5,30,70,.86),rgba(5,55,115,.52))!important;border:1px solid rgba(32,135,255,.39)!important;border-radius:19px!important;box-shadow:var(--ept-r1-glow)!important;margin:8px 12px!important}
#mainView .ai-head strong{color:#a7e7ff!important;text-shadow:0 0 15px #00aaff55!important}
#mainView .ai-actions button{border-radius:12px!important;border:1px solid rgba(62,153,251,.34)!important;background:rgba(2,17,44,.66)!important;color:#e5f5ff!important}
#mainView .conversation-filters{gap:6px!important;padding-inline:12px!important}
#mainView .filter-chip{border-radius:999px!important;border:1px solid var(--ept-r1-sep)!important;color:var(--ept-r1-sub)!important;background:var(--ept-r1-soft)!important;min-height:32px!important}
#mainView .filter-chip.selected{background:linear-gradient(120deg,#0749a7,#0a70df)!important;border-color:#31a9ff!important;color:#fff!important;box-shadow:0 0 15px #0267ff38!important}
#mainView .listhead{padding:10px 13px!important;color:var(--ept-r1-fg)!important}
#mainView .quick-action-button{border:1px solid rgba(49,143,243,.48)!important;border-radius:14px!important;background:linear-gradient(128deg,rgba(6,54,119,.8),rgba(2,22,53,.9))!important;color:#e8f5ff!important;box-shadow:inset 0 1px #8de6ff19,0 5px 21px #00102436!important}
#mainView .quick-action-button svg{filter:drop-shadow(0 0 6px #0086ff85)}
#mainView .chatlist{padding:5px 8px!important;scrollbar-color:#0b64ae transparent;scrollbar-width:thin}
#mainView .chatrow{position:relative!important;border-radius:15px!important;border:1px solid transparent!important;background:transparent!important;color:var(--ept-r1-fg)!important;min-height:69px!important;transition:background .15s ease,border .15s ease!important;margin:1px 0!important}
#mainView .chatrow:is(:hover,.active,.selected){background:linear-gradient(115deg,rgba(12,70,151,.43),rgba(5,30,79,.58))!important;border-color:rgba(58,140,242,.37)!important}
#mainView .chatrow .avatar{border-radius:50%!important;flex-shrink:0}
#mainView .chatrow-info strong{font-weight:750!important;font-size:14px!important;color:var(--ept-r1-fg)!important}
#mainView .chatrow-info small{color:var(--ept-r1-sub)!important;font-size:12px!important}
#mainView .chatrow .unread,#mainView .chatrow .badge{background:#0765e8!important;color:#fff!important;border-radius:999px!important;box-shadow:0 0 11px rgba(0,122,255,.55)!important}
#mainView .sidebarfoot{background:linear-gradient(180deg,rgba(7,28,65,.93),rgba(2,15,40,.99))!important;border-top:1px solid var(--ept-r1-line)!important;box-shadow:0 -9px 30px rgba(0,60,135,.15)!important;backdrop-filter:blur(16px)!important}
#mainView .sidebarfoot .nav-tab{border-radius:16px!important;color:var(--ept-r1-sub)!important}
#mainView .sidebarfoot .nav-tab.active{color:#dff7ff!important;background:linear-gradient(140deg,rgba(0,83,199,.6),rgba(0,174,255,.18))!important;box-shadow:inset 0 0 0 1px #38b8ff5e,0 0 12px #086dce3b!important}
#mainView .sidebarfoot svg{stroke-width:1.8!important;filter:drop-shadow(0 0 5px rgba(0,127,255,.5))}
/* Chat panel. Preserve user-selected wallpaper -- decorative layers only on minimal default. */
#mainView .conversation{color:var(--ept-r1-fg)!important;background:var(--ept-r1-galaxy)!important;min-width:0!important}
#mainView .chatheader{background:linear-gradient(120deg,rgba(6,24,57,.96),rgba(4,17,44,.94))!important;border-bottom:1px solid var(--ept-r1-line)!important;color:#ecf7ff!important;box-shadow:0 7px 27px rgba(0,5,19,.23)!important;backdrop-filter:blur(19px)!important;gap:8px!important;padding-inline:13px!important}
#mainView .chatheader .chatperson{min-width:0!important}
#mainView #peerName{font-size:15px!important;font-weight:750!important;color:var(--ept-r1-fg)!important}
#mainView #peerStatus{color:#56cfad!important;font-size:11px!important}
#mainView .chatheader :is(.icon-button,.avatar){display:inline-grid;place-items:center;background:rgba(3,31,76,.79)!important;border:1px solid rgba(69,157,250,.43)!important;border-radius:50%!important;color:#cfeaff!important;min-width:36px;min-height:36px;box-shadow:inset 0 1px #85cfff1f,0 0 10px #006cff1f!important}
#mainView .chatheader .icon-button svg{width:19px;height:19px;stroke:currentColor}
#mainView #emptyView{background:radial-gradient(circle at 50% 36%,rgba(0,97,213,.17),transparent 36%),var(--ept-r1-galaxy)!important;color:#e8f6ff!important}
#mainView #emptyView img{height:110px!important;width:110px!important;object-fit:contain!important;filter:drop-shadow(0 0 20px #0094ff88)!important}
#mainView .chatview{position:relative;isolation:isolate}
#mainView .chatview[data-wallpaper=minimal]::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 5% 18%,rgba(11,98,206,.18),transparent 45%),radial-gradient(circle at 90% 92%,rgba(6,83,185,.2),transparent 49%),repeating-linear-gradient(135deg,transparent 0 95px,rgba(15,104,255,.023) 96px 97px,transparent 98px 157px)}
#mainView #messages{padding:18px clamp(12px,3vw,26px) 14px!important;scrollbar-color:#125cab transparent}
#mainView .msg .bubble{background:linear-gradient(142deg,rgba(16,43,91,.96),rgba(5,20,52,.94))!important;color:#eaf5ff!important;border:1px solid rgba(53,128,211,.4)!important;border-radius:17px 17px 17px 5px!important;box-shadow:0 3px 15px rgba(0,9,25,.26),inset 0 1px #7bccff12!important;font-size:14px!important;line-height:1.7!important;max-width:min(100%,min(75vw,510px))!important;overflow-wrap:anywhere}
#mainView .msg.mine .bubble{background:linear-gradient(125deg,#0757d3,#047dff)!important;color:#fff!important;border-color:#279fff!important;border-radius:17px 17px 5px 17px!important;box-shadow:0 0 18px rgba(0,103,255,.26),inset 0 1px #c4f0ff3d!important}
#mainView .bubble :is(img,video){max-width:100%!important;border-radius:12px!important}
#mainView .bubble .stamp,#mainView .msg .stamp{color:#a8d4f9!important;font-size:10px!important}
#mainView .composer{background:linear-gradient(135deg,rgba(5,27,65,.98),rgba(3,15,41,.98))!important;border:1px solid rgba(36,134,247,.5)!important;border-radius:22px!important;box-shadow:0 -2px 22px rgba(0,96,255,.18),inset 0 1px rgba(133,213,255,.15)!important;margin:8px!important;padding:6px 8px!important;gap:7px!important;align-items:center!important}
#mainView .composer textarea{background:rgba(4,20,50,.91)!important;color:#ebf8ff!important;border:1px solid rgba(49,129,226,.35)!important;border-radius:999px!important;min-height:40px!important;max-height:120px!important;padding:9px 14px!important;resize:none!important;outline:0!important;font-size:14px!important}
#mainView .composer textarea::placeholder{color:#91b7dc!important}
#mainView .composer .icon-button{height:36px!important;width:36px!important;min-width:36px!important;min-height:36px!important;border-radius:50%!important;background:linear-gradient(145deg,#0940a7,#086ee8)!important;border:1px solid #319aff!important;color:#fff!important;box-shadow:0 0 13px rgba(0,109,244,.42)!important;display:grid;place-items:center}
#mainView .composer #send{min-width:38px!important;min-height:38px!important;width:38px!important;height:38px!important;padding:0!important;border-radius:50%!important;background:linear-gradient(135deg,#056bf9,#009bff)!important;border:1px solid #44cfff!important;box-shadow:0 0 13px #027aff8c!important;color:transparent!important;font-size:0!important;position:relative!important}
#mainView .composer #send::before{content:'➤';font-size:21px;color:white;display:grid;place-items:center;position:absolute;inset:0;transform:rotate(-30deg)}
#mainView .attach-menu,#mainView .emoji-picker,#mainView .reply-preview,#mainView .upload-tray{background:var(--ept-r1-panel)!important;border:1px solid var(--ept-r1-line)!important;color:var(--ept-r1-fg)!important;border-radius:18px!important;box-shadow:0 15px 55px #0008,0 0 25px #007eff20!important;backdrop-filter:blur(15px)!important}
#mainView .attach-menu button{border-radius:12px!important;color:var(--ept-r1-fg)!important}
#mainView .emoji-picker .picker-tab.active{background:#056dec!important;color:white!important}
#mainView .upload-tray progress{accent-color:#068dff}
/* Buttons/forms across settings, profile, group, contacts and secondary app screens */
:is(.settings-page,.beta2-page){background:radial-gradient(circle at 85% 2%,rgba(0,106,245,.22),transparent 38%),var(--ept-r1-galaxy)!important;color:var(--ept-r1-fg)!important}
.settings-page .settings-top,.beta2-page header{background:linear-gradient(135deg,#08295c,#05132f)!important;border-bottom:1px solid var(--ept-r1-line)!important;color:#eaf8ff!important;box-shadow:0 7px 24px #0003!important}
.settings-page .settings-top:before{content:'';display:inline-block;width:34px;height:34px;flex:none;background:url('/ept-v8-review/assets/ept-logo.webp') center/contain no-repeat;filter:drop-shadow(0 0 8px #039aff70)}
.settings-page .settings-content{max-width:860px!important;margin:0 auto!important;padding:18px 16px 48px!important}
.settings-page .settings-section{background:var(--ept-r1-panel)!important;border:1px solid var(--ept-r1-line)!important;color:var(--ept-r1-fg)!important;border-radius:20px!important;padding:16px!important;box-shadow:var(--ept-r1-glow)!important;margin-block:12px!important;backdrop-filter:blur(16px)!important}
.settings-page .settings-section h2{color:#dff3ff!important;font-size:16px!important;border-bottom:1px solid var(--ept-r1-sep)!important;padding-bottom:12px!important;margin-bottom:4px!important}
.settings-page .settings-row{min-height:52px!important;border-bottom:1px solid var(--ept-r1-sep)!important;color:var(--ept-r1-fg)!important;padding-block:9px!important}
.settings-page .settings-help{color:var(--ept-r1-sub)!important;font-size:12px!important;line-height:1.8!important}
:is(.settings-page,.overlay,.beta2-page) :is(input:not([type=checkbox]),select,textarea){border:1px solid var(--ept-r1-line)!important;background:var(--ept-r1-field)!important;color:var(--ept-r1-fg)!important;border-radius:13px!important;padding:11px 13px!important}
:is(.settings-page,.overlay,.beta2-page) :is(button.primary,.primary){background:linear-gradient(125deg,#065aec,#05adff)!important;border:1px solid #50bfff!important;border-radius:13px!important;color:#fff!important;box-shadow:0 0 20px #087fff4a!important}
:is(.settings-page,.overlay,.beta2-page) :is(button.secondary,.settings-action){background:var(--ept-r1-soft)!important;border:1px solid var(--ept-r1-line)!important;border-radius:13px!important;color:var(--ept-r1-fg)!important}
.settings-page .settings-logout{border-color:rgba(255,82,100,.6)!important;color:#ff929e!important;background:rgba(89,14,36,.35)!important}
.overlay{background:rgba(1,5,16,.79)!important;backdrop-filter:blur(11px)!important}
.overlay .dialog{background:var(--ept-r1-panel)!important;color:var(--ept-r1-fg)!important;border:1px solid rgba(55,168,255,.56)!important;border-radius:24px!important;box-shadow:0 25px 90px rgba(0,0,0,.65),0 0 50px rgba(0,116,252,.2)!important}
.overlay .dialog :is(.contacts-head,.peer-profile-top){background:linear-gradient(135deg,#092b62,#051738)!important;border-bottom:1px solid var(--ept-r1-line)!important;color:#eaf7ff!important}
.overlay .peer-profile-hero{background:radial-gradient(circle at 50% 0,rgba(4,120,252,.22),transparent 72%)!important;color:var(--ept-r1-fg)!important}
.overlay .peer-profile-avatar,#mainView .profile-avatar{border:3px solid rgba(74,200,255,.83)!important;box-shadow:0 0 24px rgba(0,123,255,.28)!important}
.overlay .peer-profile-info-row{background:var(--ept-r1-soft)!important;border:1px solid var(--ept-r1-sep)!important;color:var(--ept-r1-fg)!important;border-radius:14px!important;margin:6px 0!important}
.overlay .peer-profile-tabs{background:var(--ept-r1-soft)!important;border:1px solid var(--ept-r1-sep)!important;border-radius:14px!important}
.overlay .peer-profile-tabs button.active{background:#086cdb!important;color:white!important;border-radius:11px!important}
.overlay .contacts-dialog,.group-details-dialog{max-height:89dvh;overflow:auto}
.overlay .group-members>*,.overlay .phone-contacts-list>*{border-bottom:1px solid var(--ept-r1-sep)!important}
.media-gallery-overlay,.file-viewer{background:var(--ept-r1-galaxy)!important;color:#e9f8ff!important}
.file-viewer-body{background:#02091d!important}
.beta2-page .ai-free-card{background:var(--ept-r1-panel)!important;border:1px solid rgba(51,155,255,.54)!important;border-radius:24px!important;box-shadow:0 0 34px rgba(0,130,255,.24)!important;color:var(--ept-r1-fg)!important;backdrop-filter:blur(17px)!important}
.beta2-page .ai-free-result{background:var(--ept-r1-soft)!important;border:1px solid var(--ept-r1-line)!important;color:var(--ept-r1-fg)!important;border-radius:16px!important}
.beta2-page .ai-free-card h2{color:#dffaff!important}
#mainView .ai-feature .ai-orb{filter:drop-shadow(0 0 9px rgba(0,153,255,.65))}
/* Video / voice calls: preserve all media video nodes, events, PiP, full-screen handlers. */
#callModal.call-overlay{background:#020716e8!important;backdrop-filter:blur(15px)!important}
#callModal #callDialog{width:min(570px,96vw)!important;max-height:96dvh!important;padding:0!important;background:linear-gradient(135deg,#03142f,#020818)!important;border:1px solid rgba(67,172,255,.67)!important;border-radius:27px!important;box-shadow:0 0 0 3px #005be414,0 0 55px #006ff442,0 24px 90px #000b!important;overflow:hidden!important;color:#ecf9ff!important;display:flex!important;flex-direction:column!important}
#callModal .call-head{padding:16px 19px!important;background:linear-gradient(110deg,#082455,#061125)!important;border-bottom:1px solid rgba(46,141,245,.48)!important}
#callModal .call-heading strong{font-size:18px!important;color:#fff!important}
#callModal .call-heading small{color:#5cdcff!important;letter-spacing:.1em}
#callModal .call-encrypted{border:1px solid #1b9c8266!important;background:rgba(2,82,72,.21)!important;color:#6bf6c0!important;border-radius:999px!important;padding:5px 10px!important}
#callModal .call-stage{position:relative!important;flex:1 1 auto!important;min-height:min(53vh,390px)!important;overflow:hidden!important;background:radial-gradient(circle at 50% 35%,#12428d,#020a1c 68%)!important}
#callModal #remoteVideo{object-fit:cover!important;width:100%!important;height:100%!important}
#callModal #localVideo{object-fit:cover!important;border:2px solid #61d7ff!important;box-shadow:0 0 25px #007fff78,0 12px 30px #0008!important;border-radius:15px!important}
#callModal .audio-orbit{border-color:#098cff!important;box-shadow:0 0 30px #007dff61!important}
#callModal .audio-peer-avatar{box-shadow:0 0 42px #008dff47!important;border:2px solid #6ddcff!important}
#callModal .audio-wave i{background:linear-gradient(#62eaff,#087cff)!important;box-shadow:0 0 6px #149af7!important}
#callModal .call-actions{border-top:1px solid #1d639d!important;background:#031329ec!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:clamp(7px,2vw,14px)!important;padding:15px!important}
#callModal .call-control{background:rgba(5,45,98,.78)!important;border:1px solid rgba(55,146,247,.53)!important;border-radius:17px!important;color:#eaf7ff!important;min-width:65px!important;box-shadow:0 0 13px #0053d337!important}
#callModal .call-control :is(svg,.call-control-icon){color:inherit!important;stroke:currentColor}
#callModal .call-control.decline{background:linear-gradient(130deg,#ff3649,#c91e39)!important;color:white!important;border-color:#ff7180!important;box-shadow:0 0 17px #fc224f62!important}
#callModal .call-control.answer{background:linear-gradient(130deg,#05bd86,#008c83)!important;border-color:#6affda!important}
#remoteVideoFullscreen{background:#000!important}
#remoteVideoFullscreen video{object-fit:contain!important}
/* Story, editor, image viewer */
.story-viewer{background:#000e!important;backdrop-filter:blur(16px)!important}
.story-viewer-content{border:1px solid rgba(61,172,255,.72)!important;border-radius:22px!important;box-shadow:0 0 40px #0085ff48!important;overflow:hidden!important}
.story-editor{background:radial-gradient(circle at 50% 5%,#0b356a,#020918 68%)!important;color:#f3faff!important}
.story-editor .story-editor-head{background:#061d42e9!important;border-bottom:1px solid #2669ac!important}
.story-editor .story-editor-stage{background:#020918!important;border:1px solid #225ea3!important;border-radius:18px!important}
.story-editor :is(button,select,input){accent-color:#059aff}
/* Support V2 installed panel: visuals only */
.eptSupportLayer{background:rgba(1,6,19,.89)!important;backdrop-filter:blur(12px)!important}
.eptSupportPanel{background:var(--ept-r1-galaxy)!important;border:1px solid rgba(58,183,255,.73)!important;border-radius:23px!important;box-shadow:0 0 55px rgba(0,114,255,.36),0 20px 70px #000a!important}
.eptSupportMessages{background:linear-gradient(140deg,#05152f,#041c41)!important;border:1px solid #2371ba!important}
.eptSupportBubble{border:1px solid #2b6faf!important;border-radius:15px!important}
.eptSupportBubble.mine{background:linear-gradient(125deg,#0053c9,#0b8df3)!important;border-color:#59aaff!important}
.eptSupportPanel form button{border-radius:13px!important;box-shadow:0 0 16px #007fff4d!important}
/* Explicit light chat from approved reference: sky-white content with blue message bubbles, never dark forced. */
:root[data-theme=light] #mainView .sidebar,:root[data-theme=light] #mainView .conversation{background:linear-gradient(150deg,#fff,#eaf6ff)!important}
:root[data-theme=light] #mainView .brand,:root[data-theme=light] #mainView .chatheader{background:linear-gradient(110deg,#fafdff,#ddebff)!important;color:#102f57!important}
:root[data-theme=light] #mainView .brand-copy strong,:root[data-theme=light] #mainView #peerName,:root[data-theme=light] #mainView .chatrow-info strong{color:#103467!important;text-shadow:none!important}
:root[data-theme=light] #mainView .story-shelf{background:rgba(219,239,254,.5)!important}
:root[data-theme=light] #mainView .sidebarfoot{background:#e9f5ff!important}
:root[data-theme=light] #mainView .sidebarfoot .nav-tab.active{color:#0c58af!important}
:root[data-theme=light] #mainView .chatview[data-wallpaper=minimal]{background:linear-gradient(150deg,#f8fcff,#ebf6ff)!important}
:root[data-theme=light] #mainView .chatview[data-wallpaper=minimal]::before{background:radial-gradient(circle at 18% 4%,#baddff35,transparent 55%),repeating-linear-gradient(35deg,#0d75ff05 0 2px,transparent 3px 100px)}
:root[data-theme=light] #mainView .msg:not(.mine) .bubble{background:linear-gradient(140deg,#fff,#ebf4ff)!important;color:#1b4678!important;border:1px solid #cadff6!important;box-shadow:0 5px 18px #1952a21c!important}
:root[data-theme=light] #mainView .msg.mine .bubble{background:linear-gradient(130deg,#c1e3ff,#83c9fc)!important;border-color:#90c3f3!important;color:#063f82!important}
:root[data-theme=light] #mainView .msg .stamp{color:#3175bc!important}
:root[data-theme=light] #mainView .composer{background:#eef8ff!important;border-color:#b7d8fa!important}
:root[data-theme=light] #mainView .composer textarea{background:#fff!important;color:#123f72!important;border-color:#bddaf6!important}
:root[data-theme=light] .settings-page .settings-section{background:#fff!important;color:#1a4577!important}
:root[data-theme=light] .settings-page .settings-section h2{color:#12529e!important}
:root[data-theme=light] .settings-page .settings-top{background:#e9f6ff!important;color:#184a7c!important}
/* Mobile safety: stop clipping, preserve native safe area and the original app nav states. */
@media(max-width:780px){
 #mainView .brand{min-height:64px!important;padding-inline:10px!important}
 #mainView .chatheader{padding-inline:8px!important;gap:5px!important}
 #mainView .chatheader .icon-button{min-width:33px!important;min-height:33px!important}
 #mainView .chatheader .peer-ept-id{display:none!important}
 #mainView #messages{padding:11px 9px 12px!important}
 #mainView .msg .bubble{max-width:calc(100vw - 84px)!important;font-size:14px!important}
 #mainView .composer{margin:6px!important;border-radius:19px!important;padding:5px!important;gap:4px!important}
 #mainView .composer textarea{font-size:16px!important;min-width:0!important}
 #mainView .composer .icon-button{min-width:32px!important;width:32px!important;height:32px!important;min-height:32px!important}
 .settings-page .settings-content{padding:8px 11px 30px!important}
 .settings-page .settings-section{border-radius:17px!important;padding:12px!important}
 #callModal #callDialog{width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important}
 #callModal .call-stage{min-height:0!important}
 #callModal .call-actions{padding-bottom:max(14px,env(safe-area-inset-bottom))!important}
}
@media(prefers-reduced-motion:reduce){#mainView *,#mainView *:before,#mainView *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* sibling views outside mainView in production HTML */
.settings-page .settings-section,.beta2-page .ai-free-card{backdrop-filter:blur(18px)}
.settings-page .settings-row :is(select,input),.beta2-page .ai-free-card :is(input,select,textarea){color:var(--ept-r1-fg,#effaff)}

/* Shared tokens for sibling full-page settings/AI/modals. */
:root[data-theme=dark] :is(.settings-page,.beta2-page,.overlay),:root[data-theme=auto] :is(.settings-page,.beta2-page,.overlay){--ept-r1-fg:#eaf5ff;--ept-r1-panel:linear-gradient(145deg,rgba(7,30,67,.97),rgba(3,13,33,.96));--ept-r1-soft:rgba(10,39,82,.78);--ept-r1-sep:rgba(62,138,226,.28);--ept-r1-field:rgba(3,17,42,.84);--ept-r1-sub:#96b7dd}
:root[data-theme=light] :is(.settings-page,.beta2-page,.overlay){--ept-r1-fg:#092852;--ept-r1-panel:linear-gradient(142deg,rgba(255,255,255,.96),rgba(232,244,255,.96));--ept-r1-soft:rgba(225,243,255,.89);--ept-r1-sep:rgba(20,96,186,.17);--ept-r1-field:rgba(248,252,255,.95);--ept-r1-sub:#6586a6}
:root[data-theme=light] .beta2-page,.settings-page{color:var(--ept-r1-fg)}
:root[data-theme=light] .beta2-page .ai-free-card{background:linear-gradient(140deg,#fff,#edf7ff)!important;color:#184774!important}
/* Final component-specific alignment with approved references */
:root[data-theme=light] #mainView .quick-action-button{color:#0e508e!important;background:linear-gradient(125deg,#e9f7ff,#cfe9ff)!important;border-color:#8acaf5!important}
:root[data-theme=light] #mainView .quick-action-button :is(strong,small,.quick-action-label){color:#124c87!important}
:root[data-theme=light] #mainView .filter-chip{color:#326da1!important}
:root[data-theme=light] #mainView .chatrow:is(.selected,.active,:hover){background:linear-gradient(125deg,#e8f4ff,#cce8fc)!important}
:root[data-theme=light] #mainView .ai-feature{background:linear-gradient(140deg,#edf8ff,#d1e9ff)!important;border-color:#80c5f6!important}
:root[data-theme=light] #mainView .ai-feature :is(strong,small){color:#145392!important;text-shadow:none!important}
:root[data-theme=light] #mainView .ai-feature .ai-actions button{color:#155b98!important;background:#f5fcff!important;border-color:#a4d2ef!important}
:root[data-theme=light] #mainView .chatheader .icon-button{background:#ecf8ff!important;color:#16589a!important}
:root[data-theme=light] #mainView #peerStatus{color:#09845e!important}
:root[data-theme=light] #mainView #emptyView{background:linear-gradient(140deg,#fff,#edf8ff)!important;color:#21507b!important}
:root[data-theme=light] .settings-page .settings-help{color:#487fa9!important}
:root[data-theme=light] .settings-page .settings-section :is(input,textarea,select){color:#194e88!important;background:#f7fcff!important}
/* Theme applies to the real EPT AI workspace, including its result and action chips. */
.beta2-page :is(.ai-free-card,.ai-free-result-wrap,.ai-free-notice){border-radius:20px;box-shadow:0 0 20px rgba(2,114,247,.11)}
.beta2-page :is(.ai-free-actions button,.ai-free-result-wrap button){border-radius:12px}
/* Natural, legible icon sizes, never replace live interaction handlers. */
#mainView .composer svg,#callModal .call-control svg{stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#mainView .chatrow :is(.stamp,.chatrow-time){font-variant-numeric:tabular-nums}
:root[data-theme=light] .settings-page,:root[data-theme=light] .beta2-page{background:radial-gradient(circle at 83% 3%,rgba(37,146,255,.16),transparent 42%),linear-gradient(155deg,#f9fcff,#e7f3ff)!important}


/* /ept-live-v9/layout.css?v=10.0.0 */
/* EPT Approved FULL LAYOUT V2 — functional rearrangement, post original styles. */
:root.ept-v2-layout{--ept-v2-blue:#1680fc;--ept-v2-bright:#68cfff;--ept-v2-stroke:rgba(67,159,255,.45);--ept-v2-glass:linear-gradient(160deg,rgba(7,34,77,.93),rgba(2,14,39,.97));}
.ept-v2-layout #mainView .brand{min-height:72px;gap:10px!important;padding:12px 15px!important;justify-content:center!important;flex-wrap:nowrap!important}
.ept-v2-layout #mainView .brand>img{width:38px!important;height:38px!important;object-fit:contain!important;filter:drop-shadow(0 0 8px #0baaff)!important}
.ept-v2-layout #mainView .brand-copy strong{font-size:24px!important;letter-spacing:1px!important;text-shadow:0 0 15px #168dff99}
.ept-v2-layout #mainView .brand-copy .brand-full-name{font-size:9px!important;opacity:.7!important;letter-spacing:.4px}
.ept-v2-layout #mainView .brand .compact-account{margin-inline-start:auto!important;max-width:105px!important;min-width:0}
.ept-v2-layout #mainView .sidebar>.search{margin:6px 12px 8px!important}
.ept-v2-layout #mainView .sidebar>.story-shelf{padding-block:4px 7px!important;margin-bottom:5px!important}
.ept-v2-layout #mainView .sidebar>.story-shelf .story-shelf-head{display:none!important}
.ept-v2-layout #mainView .story-ring{border:2px solid #45bdff!important;box-shadow:0 0 0 2px #092e66,0 0 12px #137dfb99!important}
.ept-v2-layout #mainView .sidebar>.ai-feature{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.ept-v2-layout #mainView .ept-v2-toptools{display:flex;align-items:center;padding:0 12px 5px;min-height:48px;flex-shrink:0}
.ept-v2-layout #mainView .ept-v2-quickbar{display:flex;gap:8px;align-items:center;width:100%;justify-content:space-around;min-width:0}
.ept-v2-layout #mainView .ept-v2-quickbar>button{min-width:0;width:auto;flex:1;min-height:40px!important;max-width:100%;display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;border-radius:13px!important;color:#bde9ff!important;background:linear-gradient(125deg,#0b2b60ee,#0c4074bb)!important;border:1px solid #176cba88!important;box-shadow:inset 0 1px #a5eaff22!important;padding:6px!important}
.ept-v2-layout #mainView .ept-v2-quickbar>button .quick-action-label{font-size:10px!important;color:inherit!important;white-space:nowrap}
.ept-v2-layout #mainView .ept-v2-quickbar>button .quick-action-copy small,.ept-v2-layout #mainView .ept-v2-quickbar>button .quick-action-indicator{display:none!important}
.ept-v2-layout #mainView .ept-v2-quickbar>button .quick-action-icon{width:20px!important;height:20px!important;min-width:20px!important;background:none!important;border:none!important;box-shadow:none!important}
.ept-v2-layout #mainView .ept-v2-quickbar>button .quick-action-icon svg{width:19px!important;height:19px!important;fill:none!important;color:#70daff!important}
.ept-v2-layout #mainView .ept-v2-quickbar>button.nav-tab{font-size:11px!important}
.ept-v2-layout #mainView .ept-v2-quickbar>button.nav-tab>span{display:flex!important;justify-content:center;align-items:center;width:20px!important;height:20px!important;margin:0!important}
.ept-v2-layout #mainView .ept-v2-quickbar>button.nav-tab svg{width:19px!important;height:19px!important}
.ept-v2-layout #mainView .ept-v2-quickbar>button.nav-tab small{font-size:10px!important;line-height:1.3!important}
.ept-v2-layout #mainView .sidebarfoot{padding:5px 8px max(6px,env(safe-area-inset-bottom))!important;min-height:60px!important}
.ept-v2-layout #mainView .sidebarfoot .sidebar-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
.ept-v2-layout #mainView .sidebarfoot .nav-tab{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-height:52px!important;padding:4px 3px!important;background:none!important;border:0!important}
.ept-v2-layout #mainView .sidebarfoot .nav-tab.active{background:linear-gradient(160deg,#073986,#0869d8)!important;border:1px solid #32aaffaa!important;box-shadow:0 0 16px #176aff55!important}
.ept-v2-icon{width:21px;height:21px;display:block;flex:none;pointer-events:none}
.ept-v2-layout #mainView .sidebarfoot .nav-tab small{font-size:10px!important;font-weight:600!important}
.ept-v2-layout #mainView .sidebar>.listhead{padding:7px 16px 10px!important;font-size:15px!important}
.ept-v2-layout #mainView .sidebar>.listhead .row-buttons{display:none!important}
.ept-v2-layout #mainView .chatrow{border-bottom:1px solid #1877c62c!important;min-height:68px!important;border-radius:12px!important}
.ept-v2-layout #mainView .chatrow .avatar{box-shadow:0 0 0 2px #2da9ff99,0 0 10px #168cff66!important}
.ept-v2-layout #mainView .chatheader{gap:7px!important;padding:11px 12px!important;background:var(--ept-v2-glass)!important}
.ept-v2-layout #mainView .chatheader .icon-button{background:#072955!important;border:1px solid #238aff77!important;color:#91dfff!important;border-radius:50%!important;box-shadow:0 0 10px #077dfc24!important}
.ept-v2-layout #mainView .chatheader #peerEptId{display:none!important}
.ept-v2-layout #mainView .chatheader #chatWallpaper{display:none!important}
.ept-v2-layout #mainView .chatheader #callAudio{order:5}
.ept-v2-layout #mainView .chatheader #callVideo{order:6}
.ept-v2-layout #mainView .chatheader #eptV2ChatMore{order:7}
.ept-v2-layout #mainView .chatheader .chatperson{order:2}
.ept-v2-layout #mainView .chatheader #peerAvatar{order:1}
.ept-v2-layout #mainView .chatheader .back{order:0}
.ept-v2-layout .ept-v2-chat-menu{position:absolute;z-index:30;top:calc(100% - 4px);inset-inline-end:12px;width:min(245px,90vw);background:linear-gradient(155deg,#0a305f,#04142e);border:1px solid #3eabff;border-radius:16px;box-shadow:0 20px 50px #000c;display:grid;padding:7px}
.ept-v2-layout .ept-v2-chat-menu.hidden{display:none!important}
.ept-v2-layout .ept-v2-chat-menu button{display:flex;gap:12px;align-items:center;background:transparent;color:#e2f7ff;padding:12px;border-radius:10px;text-align:start;cursor:pointer}
.ept-v2-layout .ept-v2-chat-menu button:hover{background:#0f5aab}
.ept-v2-layout #mainView .composer{background:linear-gradient(155deg,#062b61f7,#04142ffb)!important;border-top:1px solid #269fff88!important;border-radius:18px 18px 0 0!important}
.ept-v2-layout #mainView .composer textarea{background:#081f43!important;border:1px solid #236cb6!important;border-radius:20px!important;color:#e8f8ff!important}
.ept-v2-layout #mainView .composer .send{border-radius:50%!important;box-shadow:0 0 12px #1689ff88!important}
.ept-v2-layout #mainView .msg.mine .bubble{background:linear-gradient(140deg,#0563ee,#0c3b90)!important;color:white!important}
.ept-v2-layout #mainView .msg:not(.mine) .bubble{background:linear-gradient(130deg,#0d2549,#081b38)!important;color:#eaf6ff!important}
.ept-v2-layout #mainView .chatview[data-wallpaper] .messages{background:radial-gradient(circle at 10% 10%,#1265ac18,transparent 35%),radial-gradient(circle at 90% 60%,#0068c91a,transparent 30%)}
.ept-v2-layout #mainView .ept-v2-show-calls .ept-v2-temporarily-hidden{display:none!important}
.ept-v2-layout #mainView .ept-v2-calls-hub{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;overflow:auto;padding:16px}
.ept-v2-layout #mainView .ept-v2-calls-hub.hidden{display:none!important}
.ept-v2-layout .ept-v2-hub-head{background:linear-gradient(145deg,#0b3973,#072148);border:1px solid #348ada87;border-radius:16px;padding:17px}
.ept-v2-layout .ept-v2-hub-head strong{display:block;font-size:20px;color:#ecfaff}
.ept-v2-layout .ept-v2-hub-head small{display:block;margin-top:5px;font-size:11px;line-height:1.65;color:#a8c9e9}
.ept-v2-layout .ept-v2-call-rows{display:grid;gap:9px}
.ept-v2-layout .ept-v2-callrow{display:flex;align-items:center;gap:10px;width:100%;color:#ecfaff;background:#082b5d;border:1px solid #328dd16b;padding:12px;border-radius:14px;text-align:start;cursor:pointer}
.ept-v2-layout .ept-v2-callrow .avatar{height:42px;width:42px;flex:none}
.ept-v2-layout .ept-v2-callname{flex:1;min-width:0;font-size:13px;font-weight:650}
.ept-v2-layout .ept-v2-callaction{color:#61cfff;background:#093b80;border-radius:50%;padding:10px}
.ept-v2-layout .ept-v2-empty{color:#9ebdde;text-align:center;line-height:1.8;padding:25px}
.ept-v2-layout #callModal .call-dialog{border:1px solid #45baff!important;box-shadow:0 0 35px #0676ff5c!important}
.ept-v2-layout #callModal .call-control{border-radius:50%!important}
.ept-v2-layout #settingsPage .ept-r44-nav .ept-r44-icon{border-radius:13px!important;background:linear-gradient(135deg,#075db5,#07224e)!important;color:#9ce5ff!important;border:1px solid #218dff55!important;box-shadow:0 0 8px #007bff33!important}
.ept-v2-layout #settingsPage .ept-r44-group{background:linear-gradient(145deg,#0b305f99,#05172da9)!important;border:1px solid #338cdd55!important;border-radius:18px!important;padding:10px!important}
.ept-v2-layout #settingsPage .ept-r44-profile{background:linear-gradient(135deg,#084b9b,#071e43)!important;border:1px solid #43b4ff99!important;border-radius:20px!important}
.ept-v2-layout #settingsPage .ept-r44-nav{border-bottom:1px solid #308dfb24!important}
:root[data-theme=light].ept-v2-layout #mainView .ept-v2-toptools button{background:#ecf8ff!important;color:#084a91!important;border-color:#a7d3f4!important}
:root[data-theme=light].ept-v2-layout #mainView .chatheader{background:linear-gradient(130deg,#f8fdff,#dfedff)!important}
:root[data-theme=light].ept-v2-layout #mainView .msg.mine .bubble{background:#d7edff!important;color:#114a86!important;border:1px solid #b2d6fa!important}
:root[data-theme=light].ept-v2-layout #mainView .msg:not(.mine) .bubble{background:#fff!important;color:#16406e!important;border:1px solid #e1eafa!important}
:root[data-theme=light].ept-v2-layout #mainView .composer{background:#f2faff!important;border-color:#add5ff!important}
:root[data-theme=light].ept-v2-layout #mainView .composer textarea{background:white!important;color:#143e72!important}
:root[data-theme=light].ept-v2-layout #mainView .ept-v2-chat-menu{background:#fff;color:#123d70}
:root[data-theme=light].ept-v2-layout #mainView .ept-v2-chat-menu button{color:#154a85}
@media(max-width:720px){
 .ept-v2-layout #mainView .brand{padding:9px 11px!important;min-height:60px!important}
 .ept-v2-layout #mainView .ept-v2-toptools{min-height:43px;padding:0 8px 3px}
 .ept-v2-layout #mainView .ept-v2-quickbar{gap:4px}
 .ept-v2-layout #mainView .ept-v2-quickbar>button{min-height:37px!important;gap:3px!important}
 .ept-v2-layout #mainView .sidebarfoot{padding-bottom:max(7px,env(safe-area-inset-bottom))!important}
 .ept-v2-layout #mainView .chatheader{padding-inline:6px!important;gap:4px!important}
 .ept-v2-layout #mainView .chatheader .icon-button{width:34px!important;height:34px!important;min-width:34px!important}
 .ept-v2-layout #mainView .chatheader #peerAvatar{width:35px!important;height:35px!important;flex:none}
 .ept-v2-layout #mainView .chatperson strong{font-size:12px!important}
 .ept-v2-layout #mainView .chatperson small{font-size:10px!important}
}
@media(max-width:360px){.ept-v2-layout #mainView .ept-v2-quickbar>button .quick-action-label{display:none!important}}
@media(prefers-reduced-motion:reduce){.ept-v2-layout *{transition:none!important;animation:none!important}}

/* Reference color harmonization: readable, vibrant navy/glass cards. */
:root:not([data-theme=light]).ept-v2-layout #mainView .sidebar{background:linear-gradient(160deg,rgba(1,16,39,.9),rgba(2,21,55,.9)),url('/ept-v8-review/assets/ept-night.webp') center/cover!important;color:#edf9ff!important}
:root:not([data-theme=light]).ept-v2-layout #mainView .conversation{background:linear-gradient(135deg,rgba(1,12,35,.9),rgba(1,24,54,.89)),url('/ept-v8-review/assets/ept-night.webp') center/cover!important}
.ept-v2-layout #mainView .sidebar :is(.chatrow-info strong,.listhead b,.story-shelf small){color:#e5f6ff!important}
.ept-v2-layout #mainView .sidebar :is(.chatrow-info small,.chat-meta time,.conversation-filters button){color:#b6d3f5!important}
.ept-v2-layout #mainView .sidebar .filter-chip.selected{color:#fff!important;background:linear-gradient(135deg,#004ccf,#1281ff)!important}
.ept-v2-layout #mainView .sidebar .search input{color:#e8faff!important}
.ept-v2-layout #mainView .sidebar .search input::placeholder{color:#94bbde!important}
.ept-v2-layout #mainView .brand{background:radial-gradient(ellipse at center top,#168aff18,transparent 85%)!important}
.ept-v2-layout #mainView .ept-v2-quickbar .ept-v2-icon{color:#78d9ff}
.ept-v2-layout #settingsPage .ept-r44-icon .ept-v2-icon{width:21px;height:21px;color:#b7eeff}
.ept-v2-layout #settingsPage .ept-r44-nav :is(b,small){line-height:1.45!important}

/* Single prominent creation control, preserving all four functions in a compact popover. */
.ept-v2-layout #mainView .ept-v2-toptools{position:relative;justify-content:flex-end;min-height:39px;padding:0 12px 4px;gap:8px;z-index:22}
.ept-v2-layout #mainView .ept-v2-plus{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:linear-gradient(130deg,#075be2,#00a3ff);border:1px solid #76e0ff;border-radius:50%;color:#f7ffff;box-shadow:0 0 15px #007fff77;cursor:pointer}
.ept-v2-layout #mainView .ept-v2-help{background:#092c64;border-color:#459fff}
.ept-v2-layout #mainView .ept-v2-quickbar{display:grid!important;position:absolute;top:calc(100% - 2px);inset-inline-end:12px;width:min(280px,92vw);grid-template-columns:1fr 1fr;gap:9px;padding:10px;background:linear-gradient(150deg,#0a346a,#020e26);border:1px solid #43a8ffb8;border-radius:17px;box-shadow:0 16px 40px #000b,0 0 18px #0073ff44;z-index:35}
.ept-v2-layout #mainView .ept-v2-quickbar.hidden{display:none!important}
.ept-v2-layout #mainView .ept-v2-quickbar>button{min-height:56px!important;flex-direction:column!important;gap:5px!important}
.ept-v2-layout #mainView .ept-v2-quickbar .quick-action-label{font-size:11px!important}
@media(max-width:720px){.ept-v2-layout #mainView .ept-v2-toptools{min-height:37px;padding:0 12px 4px}}


/* /ept-live-v9/chat-ai.css?v=9.0.0 */
/* EPT V5: ONLY existing chat button icons and existing EPT AI graphics. No dimensions of app pages, nav, tools, or cards changed. */
html.ept-v2-layout #mainView .chatheader .ept-ref-v4-control,
html.ept-v2-layout #mainView .composer .ept-ref-v4-control{display:inline-flex;align-items:center;justify-content:center;color:#eafaff;filter:drop-shadow(0 0 4px #288aff);}
html.ept-v2-layout #mainView .chatheader .ept-ref-v4-icon{width:22px;height:22px;display:block;stroke:currentColor;fill:none;}
html.ept-v2-layout #mainView .composer .ept-ref-v4-icon{width:23px;height:23px;display:block;stroke:currentColor;fill:none;}
html.ept-v2-layout #mainView .composer #send.ept-ref-v4-control{font-size:0;}
html.ept-v2-layout #mainView .composer #send.ept-ref-v4-control::before, html.ept-v2-layout #mainView .composer #send.ept-ref-v4-control::after{content:none;display:none}
html.ept-v2-layout #mainView .composer #send.ept-ref-v4-control svg{visibility:visible;opacity:1;}
html.ept-v2-layout #mainView .chatheader .ept-ref-v4-control:hover,
html.ept-v2-layout #mainView .composer .ept-ref-v4-control:hover{filter:drop-shadow(0 0 8px #32c5ff)}
/* Orbit on the existing AI avatar — no HTML inserted and no positioning changes. */
html.ept-v2-layout #aiFeature .ai-orb.ept-v5-orbit{position:relative;isolation:isolate;}
html.ept-v2-layout #aiFeature .ai-orb.ept-v5-orbit::before,
html.ept-v2-layout #aiFeature .ai-orb.ept-v5-orbit::after{content:'';position:absolute;z-index:-1;top:50%;left:50%;width:95%;height:41%;border:1.5px solid #59cbff;border-radius:50%;pointer-events:none;box-shadow:0 0 10px #008bff,0 0 15px #126dff;animation:ept-v5-orbit-a 7s linear infinite;}
html.ept-v2-layout #aiFeature .ai-orb.ept-v5-orbit::after{border-color:#aedfff;animation:ept-v5-orbit-b 9s linear infinite reverse;}
html.ept-v2-layout #aiFeature .ai-orb.ept-v5-orbit img,
html.ept-v2-layout #aiRegistrationPage .ai-free-head img.ept-v5-ai-mark{animation:ept-v5-pulse 3.2s ease-in-out infinite;filter:drop-shadow(0 0 5px #117ffc);}
@keyframes ept-v5-orbit-a{from{transform:translate(-50%,-50%) rotate(-27deg)}to{transform:translate(-50%,-50%) rotate(333deg)}}
@keyframes ept-v5-orbit-b{from{transform:translate(-50%,-50%) rotate(59deg)}to{transform:translate(-50%,-50%) rotate(419deg)}}
@keyframes ept-v5-pulse{0%,100%{filter:drop-shadow(0 0 3px #128aff)}50%{filter:drop-shadow(0 0 13px #18cfff)}}
@media(prefers-reduced-motion:reduce){html.ept-v2-layout #aiFeature .ept-v5-orbit *,html.ept-v2-layout #aiFeature .ept-v5-orbit::before,html.ept-v2-layout #aiFeature .ept-v5-orbit::after,html.ept-v2-layout #aiRegistrationPage .ept-v5-ai-mark{animation:none!important;}}


/* /ept-live-v9/glass-v9.css?v=9.0.0 */
/* EPT LIVE V9: additive approved neon-glass polish on the ACTUAL messenger DOM.
   Explicitly excluded: login/register iframe, SMS/Turnstile, message event data and owner backend. */
:root.ept-v2-layout{--ept-v9-edge:rgba(70,193,255,.77);--ept-v9-halo:rgba(0,128,255,.41)}
.ept-v2-layout #mainView .sidebar,.ept-v2-layout #mainView .conversation{background:radial-gradient(ellipse at 25% -10%,rgba(0,120,238,.24),transparent 56%),linear-gradient(155deg,#061b39,#020b1d 75%)!important}
.ept-v2-layout #mainView .brand{position:relative;isolation:isolate;box-shadow:inset 0 1px 0 #d1f6ff2c,0 0 19px #067af438!important}
.ept-v2-layout #mainView .brand>img{width:47px!important;height:47px!important;max-width:22%;object-fit:contain!important;box-shadow:none!important;background:transparent!important;border:0!important;filter:drop-shadow(0 0 7px #12acff) drop-shadow(0 0 13px #0b57f9)!important}
.ept-v2-layout #mainView .brand-copy strong{font-size:26px!important;letter-spacing:1.2px!important;font-weight:800!important}
.ept-v2-layout #mainView .sidebar .story-ring{width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;box-shadow:0 0 0 2px #0b4388,0 0 14px #0d9cff9a!important}
.ept-v2-layout #mainView .sidebar .story-ring .story-avatar{font-size:20px!important}
.ept-v2-layout #mainView .story-person-open small{font-size:12px!important;font-weight:650!important;line-height:1.4!important}
.ept-v2-layout #mainView .sidebar .story-shelf{padding-block:9px!important}
.ept-v2-layout #mainView #chatList .chatrow{min-height:76px!important;padding-block:9px!important;gap:11px!important;background-image:linear-gradient(145deg,#4aaeff0b,transparent 62%)!important;border-bottom-color:#319aff4b!important}
.ept-v2-layout #mainView .chatrow .avatar{width:48px!important;height:48px!important;min-width:48px!important;font-size:18px!important;border:1px solid #84dfff!important;box-shadow:0 0 0 2px #126fee99,0 0 13px #12a4ff8a!important}
.ept-v2-layout #mainView .chatrow-info strong{font-size:15px!important;line-height:1.45!important;font-weight:750!important}
.ept-v2-layout #mainView .chatrow-info small{font-size:12px!important;line-height:1.45!important}
.ept-v2-layout #mainView .sidebar .search input{font-size:15px!important;min-height:43px!important}
.ept-v2-layout #mainView .sidebarfoot .nav-tab{min-height:62px!important;border-radius:13px!important}
.ept-v2-layout #mainView .sidebarfoot .nav-tab span svg,.ept-v2-layout #mainView .sidebarfoot .nav-tab .ept-v2-icon{width:25px!important;height:25px!important;filter:drop-shadow(0 0 5px #1b9fff8f)}
.ept-v2-layout #mainView .sidebarfoot .nav-tab small{font-size:12px!important;line-height:1.4!important;font-weight:700!important}
.ept-v2-layout #mainView .sidebarfoot .nav-tab.active{background:linear-gradient(145deg,#044caf,#0b83e5)!important;border-color:#76e5ff!important;box-shadow:inset 0 1px 0 #f8ffff55,0 0 18px #098dff8a!important}
.ept-v2-layout #mainView .ept-v2-plus{width:43px!important;height:43px!important;min-width:43px!important;border-color:#91eaff!important;box-shadow:inset 0 1px 0 #fff6,0 0 13px #0085ff8a!important}
.ept-v2-layout #mainView .ept-v2-toptools svg{width:24px!important;height:24px!important}
.ept-v2-layout #mainView .chatheader{min-height:70px!important;box-shadow:inset 0 1px 0 #e2faff29,0 0 14px #087de32f!important}
.ept-v2-layout #mainView .chatheader #peerAvatar{width:46px!important;height:46px!important;min-width:46px!important;border:2px solid #55caff!important;box-shadow:0 0 11px #098fff99!important}
.ept-v2-layout #mainView #peerName{font-size:16px!important;font-weight:800!important}
.ept-v2-layout #mainView .chatheader .icon-button{min-width:39px!important;min-height:39px!important;box-shadow:inset 0 1px 0 #b6ebff36,0 0 9px #067bea6e!important}
.ept-v2-layout #mainView .chatheader .ept-ref-v4-icon{width:24px!important;height:24px!important}
.ept-v2-layout #mainView .msg .bubble{border:1px solid rgba(91,183,255,.65)!important;border-radius:18px!important;box-shadow:inset 0 1px 0 #ffffff28,0 4px 11px #0008,0 0 8px #008bff19!important;font-size:15px!important;line-height:1.65!important}
.ept-v2-layout #mainView .msg.mine .bubble{background:linear-gradient(148deg,#1196ff,#075bdd 62%,#0644ac)!important;border-color:#88dbff!important;box-shadow:inset 0 1px 0 #e6feff55,0 0 16px #167bff42!important}
.ept-v2-layout #mainView .msg .stamp{font-size:11px!important}
.ept-v2-layout #mainView .composer{border-color:#50baff!important;box-shadow:0 -5px 19px #0672df26!important;backdrop-filter:blur(17px) saturate(1.25)}
.ept-v2-layout #mainView .composer textarea{font-size:16px!important;line-height:1.6!important;min-height:42px!important}
.ept-v2-layout #mainView .composer .icon-button,.ept-v2-layout #mainView .composer .primary{min-width:44px!important;min-height:44px!important;border-radius:50%!important;box-shadow:inset 0 1px 0 #ffffff42,0 0 10px #148aff75!important}
.ept-v2-layout #mainView .composer .ept-ref-v4-icon{width:25px!important;height:25px!important}
.ept-v2-layout .ept-v2-callrow{min-height:69px!important;border-color:#4abaff89!important;background:linear-gradient(130deg,#0a3977,#061a39)!important;box-shadow:inset 0 1px #c4f5ff24,0 0 10px #007eff28!important}
.ept-v2-layout .ept-v2-callname{font-size:15px!important}
.ept-v2-layout #callModal .call-control{min-width:56px!important;min-height:56px!important;border-color:#55c4ff!important;box-shadow:inset 0 1px #fff5,0 0 13px #008dff7d!important}
.ept-v2-layout #callModal .call-control :is(svg,.call-control-icon){width:27px!important;height:27px!important}
/* Settings and AI are real full-screen views in the current app. */
.ept-v2-layout #settingsPage .settings-section{background:linear-gradient(148deg,rgba(10,43,90,.86),rgba(2,16,42,.94))!important;border:1px solid #349bed96!important;border-radius:19px!important;box-shadow:inset 0 1px #e7faff27,0 0 14px #1375ec25!important;backdrop-filter:blur(15px)}
.ept-v2-layout #settingsPage .settings-section h2{font-size:19px!important;color:#f0faff!important}
.ept-v2-layout #settingsPage :is(.settings-action,.settings-row){font-size:15px!important;min-height:52px!important;border-radius:13px!important}
.ept-v2-layout #settingsPage .settings-action{border:1px solid #217dd887!important;box-shadow:inset 0 1px #d7f6ff16!important}
.ept-v2-layout #settingsPage .settings-top h1{font-size:23px!important}
.ept-v2-layout #settingsPage .ept-r44-icon{width:41px!important;height:41px!important;min-width:41px!important}
.ept-v2-layout #aiRegistrationPage{--ept-ai-bright:#43c7ff}
.ept-v2-layout #aiRegistrationPage .ai-free-card{border:1px solid #3bb5ffb9!important;border-radius:22px!important;box-shadow:inset 0 1px #dbfaff25,0 0 20px #007aff55!important;background:linear-gradient(150deg,#072752ef,#030f2ce8)!important}
.ept-v2-layout #aiRegistrationPage .ai-free-head{align-items:center;gap:16px}
.ept-v2-layout #aiRegistrationPage .ai-free-head img{width:96px!important;height:96px!important;max-width:25vw;object-fit:contain!important;border:0!important;background:transparent!important;border-radius:50%!important;filter:drop-shadow(0 0 16px #216fff)!important}
.ept-v2-layout #aiRegistrationPage .ai-free-head h2{font-size:21px!important}
.ept-v2-layout #aiRegistrationPage :is(.ai-free-actions button,.ai-free-result-wrap button){font-size:15px!important;min-height:48px!important;border:1px solid #3999d8!important;box-shadow:0 0 10px #127ef535!important}
.ept-v2-layout #aiRegistrationPage :is(textarea,input,select){font-size:16px!important}
/* Other real overlays and story/editor: light-touch readability improvement only. */
.ept-v2-layout :is(.overlay .dialog,.story-editor,.peer-profile-dialog){border-color:rgba(75,181,255,.68)!important;box-shadow:0 0 24px #097efa2c!important}
.ept-v2-layout .overlay .dialog :is(button,input,select,textarea){font-size:clamp(14px,1.7vw,16px)}
/* Preserve existing app theme: do NOT force dark on the approved light theme. */
:root[data-theme=light].ept-v2-layout #mainView :is(.sidebar,.conversation){background:linear-gradient(140deg,#fafdff,#e3f1ff)!important}
:root[data-theme=light].ept-v2-layout #mainView .msg.mine .bubble{background:linear-gradient(145deg,#d5efff,#a9daff)!important;color:#123d68!important}
:root[data-theme=light].ept-v2-layout #mainView .msg:not(.mine) .bubble{background:linear-gradient(140deg,#fff,#f0f7ff)!important;color:#163c69!important}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ai-free-card,
:root[data-theme=light].ept-v2-layout #settingsPage .settings-section{background:linear-gradient(145deg,#fff,#edf7ff)!important;color:#154e83!important;border-color:#9acfff!important}
:root[data-theme=light].ept-v2-layout #settingsPage .settings-section h2{color:#194f88!important}
@media(max-width:780px){
 .ept-v2-layout #mainView .brand>img{width:38px!important;height:38px!important}
 .ept-v2-layout #mainView .sidebarfoot .nav-tab{min-height:57px!important}
 .ept-v2-layout #mainView .sidebarfoot .nav-tab span svg{width:24px!important;height:24px!important}
 .ept-v2-layout #mainView .sidebarfoot .nav-tab small{font-size:11px!important}
 .ept-v2-layout #mainView .sidebar .story-ring{width:57px!important;height:57px!important;min-height:57px!important;min-width:57px!important}
 .ept-v2-layout #mainView .chatheader .icon-button{min-height:37px!important;min-width:37px!important}
 .ept-v2-layout #mainView .chatrow .avatar{width:46px!important;height:46px!important;min-width:46px!important}
 .ept-v2-layout #mainView .composer{gap:4px!important}
 .ept-v2-layout #mainView .composer .icon-button,.ept-v2-layout #mainView .composer .primary{min-width:38px!important;min-height:38px!important;width:38px!important;height:38px!important}
 .ept-v2-layout #mainView .msg .bubble{font-size:15px!important}
}
@media(prefers-reduced-motion:reduce){.ept-v2-layout #aiRegistrationPage .ai-free-head img{animation:none!important}}


/* /ept-bars-v24.css?v=24 */
/* Only the messenger sidebar header and footer; load after live V9 styles. */
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand {
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  min-height:68px!important;
  padding:11px 13px!important;
  overflow:hidden;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img {
  display:block!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  max-width:none!important;
  object-fit:contain!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .brand-copy {
  flex:0 1 auto!important;
  min-width:0!important;
  text-align:start;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .brand-copy strong {
  font-size:22px!important;
  line-height:1.1!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .brand-copy small {
  font-size:9px!important;
  line-height:1.25!important;
  white-space:nowrap;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account {
  flex:0 1 auto!important;
  margin-inline-start:auto!important;
  max-width:132px!important;
  padding:0!important;
  gap:5px!important;
  overflow:hidden;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account .avatar {
  width:34px!important;height:34px!important;flex:0 0 34px!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle {
  width:38px!important;height:38px!important;min-width:38px!important;
  flex:0 0 38px!important;font-size:19px!important;line-height:1!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .ept-v2-toptools {
  display:none!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .ept-v2-toptools .ept-v2-plus {
  width:38px!important;height:38px!important;min-width:38px!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .ept-v2-toptools .ept-v2-plus svg {
  width:21px!important;height:21px!important;
}
:root.ept-v2-layout #mainView .sidebar > .sidebarfoot {
  box-sizing:border-box!important;
  position:relative!important;
  min-height:0!important;
  padding:7px max(8px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav {
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;align-items:stretch!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab {
  box-sizing:border-box!important;min-width:0!important;width:100%!important;
  min-height:61px!important;padding:7px 2px!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  gap:4px!important;border-radius:14px!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab > span {
  display:grid!important;place-items:center!important;
  width:25px!important;height:25px!important;min-width:25px!important;
  margin:0!important;line-height:1!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab svg,
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab .ept-v2-icon {
  display:block!important;width:24px!important;height:24px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab small {
  display:block!important;max-width:100%!important;
  font-size:11px!important;font-weight:650!important;
  line-height:1.25!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .ept-bars-create {
  width:100%!important;height:auto!important;min-width:0!important;
  color:#fff!important;background:linear-gradient(155deg,#0876ee,#04aaf2)!important;
  border:1px solid #8be8ff!important;
  box-shadow:inset 0 1px 0 #ffffff7a,0 0 16px #0b92ff99!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .ept-bars-create:focus-visible {
  outline:2px solid #66d6ff!important;outline-offset:2px!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .ept-bars-create svg {stroke-width:2.2!important}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2QuickBar {
  position:absolute!important;z-index:35!important;
  top:auto!important;bottom:calc(100% + 8px)!important;
  inset-inline-end:10px!important;width:min(294px,calc(100vw - 20px))!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(max-width:780px) {
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand {
    min-height:calc(62px + env(safe-area-inset-top))!important;
    padding:calc(9px + env(safe-area-inset-top)) 10px 9px!important;
    gap:7px!important;
  }
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img {
    width:36px!important;height:36px!important;flex-basis:36px!important;
  }
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .brand-copy strong {font-size:19px!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .brand-copy small {font-size:8px!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account {max-width:100px!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-info {display:none!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle {
    width:36px!important;height:36px!important;min-width:36px!important;flex-basis:36px!important;
  }
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .ept-v2-toptools {
    display:none!important;
  }
  :root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab {min-height:58px!important}
}
@media(max-width:360px) {
  :root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav {gap:3px!important}
  :root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab small {font-size:10px!important}
}
:root[data-theme=light].ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .ept-bars-create {color:#fff!important}

/* V3: give the actual account name and EPT ID room in the mobile header. */
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand {gap:7px!important;direction:rtl!important}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img {
  width:104px!important;height:43px!important;flex:0 0 104px!important;
  padding:4px!important;border-radius:12px!important;background:#061b40!important;
  filter:drop-shadow(0 0 8px #008fff6b)!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .brand-copy {display:none!important}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account {
  flex:1 1 0!important;min-width:0!important;max-width:none!important;
  margin-inline-start:0!important;justify-content:flex-start!important;direction:rtl!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-info {
  display:flex!important;flex:1 1 0!important;min-width:0!important;max-width:none!important;
  flex-direction:column!important;align-items:flex-start!important;gap:1px!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-name,
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-id {
  display:block!important;max-width:100%!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
  opacity:1!important;text-shadow:none!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-name {
  font-size:12px!important;line-height:1.25!important;font-weight:750!important;color:#f1faff!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-id {
  font-size:10px!important;line-height:1.25!important;color:#b9dcff!important;
  direction:ltr!important;text-align:start!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle {
  order:3!important;width:45px!important;height:45px!important;min-width:45px!important;flex:0 0 45px!important;
  display:grid!important;place-items:center!important;border:2px solid #62c7ff!important;
  color:#effaff!important;background:linear-gradient(145deg,#095ab4,#062552)!important;
  box-shadow:0 0 0 2px #007aff29,0 0 14px #068bff85!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle svg {
  width:27px!important;height:27px!important;stroke-width:2.5!important;filter:none!important;
}
@media(max-width:780px){
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand {gap:6px!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img {width:82px!important;height:39px!important;flex-basis:82px!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account {max-width:none!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-info {display:flex!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle {
    width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important;
  }
}
@media(max-width:350px){
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img {width:70px!important;flex-basis:70px!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account .avatar {width:30px!important;height:30px!important;flex-basis:30px!important}
}

/* V3: consistent, readable ice-blue light theme throughout the messenger. */
:root[data-theme=light].ept-v2-layout #mainView .sidebar {
  background:linear-gradient(155deg,#f9fcff,#e9f4ff)!important;color:#153b63!important;
  border-color:#a7c9e7!important;box-shadow:none!important;
}
:root[data-theme=light].ept-v2-layout #mainView .sidebar:before {opacity:.15!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand,
:root[data-theme=light].ept-v2-layout #mainView .sidebar > .sidebarfoot {
  background:linear-gradient(130deg,#fff,#e4f2ff)!important;color:#153b63!important;
  border-color:#accde9!important;box-shadow:0 2px 12px #193b6120!important;
}
:root[data-theme=light].ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-name {color:#12365e!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-id {color:#3d6385!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .search {
  background:#fff!important;border-color:#9fc6e8!important;box-shadow:0 2px 10px #164e8420!important;
}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .search input {color:#12365e!important;background:transparent!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .search input::placeholder {color:#4c6b87!important;opacity:1!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .search-action {color:#155f9a!important;background:#e2f1ff!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .story-shelf {background:#edf6ff!important;border-color:#bed7ec!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar :is(.story-person small,.story-shelf-head,.listhead,.listhead b) {color:#173c66!important;text-shadow:none!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .conversation-filters {background:#eaf4ff!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .filter-chip {background:#fff!important;border-color:#b2d1ea!important;color:#254d74!important;box-shadow:none!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .filter-chip.selected {background:#0b68bf!important;color:#fff!important;border-color:#0b68bf!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar #chatList .chatrow {background:#fff!important;border:1px solid #c5dbed!important;color:#183d65!important;box-shadow:0 2px 8px #153f6910!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar #chatList .chatrow:is(:hover,.active,.selected) {background:#dceeff!important;border-color:#71b4e9!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar .chatrow-info strong {color:#14365e!important;text-shadow:none!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebar :is(.chatrow-info small,.chat-meta time,.chatrow-time,.stamp) {color:#476785!important;text-shadow:none!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab:not(.ept-bars-create) {
  color:#194e80!important;background:#f6fbff!important;border:1px solid #b5d0e6!important;
  box-shadow:none!important;text-shadow:none!important;
}
:root[data-theme=light].ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab:not(.ept-bars-create) small {color:#194e80!important;-webkit-text-fill-color:#194e80!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab.active:not(.ept-bars-create) {background:#1269c8!important;border-color:#1269c8!important;color:#fff!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab.active:not(.ept-bars-create) small {color:#fff!important;-webkit-text-fill-color:#fff!important}
:root[data-theme=light].ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .ept-bars-create small {color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Light conversation and settings remain legible when earlier dark styles used !important. */
:root[data-theme=light].ept-v2-layout #mainView .conversation {background:#f1f8ff!important;color:#163b65!important}
:root[data-theme=light].ept-v2-layout #mainView .chatheader {background:#e9f4ff!important;color:#163b65!important}
:root[data-theme=light].ept-v2-layout #mainView .msg:not(.mine) .bubble {color:#173d68!important}
:root[data-theme=light].ept-v2-layout #mainView .msg.mine .bubble {color:#073869!important}
:root[data-theme=light].ept-v2-layout #mainView .composer textarea {color:#163b65!important}
:root[data-theme=light] .settings-page {background:#f1f8ff!important;color:#163b65!important}
:root[data-theme=light] .settings-page .settings-row,
:root[data-theme=light] .settings-page .settings-section {color:#163b65!important}
:root[data-theme=light] .settings-page .settings-help {color:#486b89!important}

/* V4: each full-screen view consumes the phone safe area exactly once. */
@media(max-width:780px){
  :root.ept-v2-layout #mainView .sidebar {padding-top:0!important;padding-bottom:0!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand {
    box-sizing:border-box!important;
    min-height:calc(52px + env(safe-area-inset-top))!important;
    padding:calc(4px + env(safe-area-inset-top)) 8px 4px!important;
  }
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img {
    width:82px!important;height:35px!important;flex-basis:82px!important;
  }
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle {
    width:42px!important;height:42px!important;min-width:42px!important;flex-basis:42px!important;
  }
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle svg {width:26px!important;height:26px!important}
  :root.ept-v2-layout #mainView .conversation {padding-top:0!important;padding-bottom:0!important}
  :root.ept-v2-layout #mainView .chatheader {
    box-sizing:border-box!important;
    min-height:calc(54px + env(safe-area-inset-top))!important;
    padding:calc(5px + env(safe-area-inset-top)) 7px 5px!important;
    align-items:center!important;
  }
  :root.ept-v2-layout #mainView #composer {
    margin-bottom:calc(6px + env(safe-area-inset-bottom))!important;
  }
  :root.ept-v2-layout #settingsPage {
    box-sizing:border-box!important;padding-top:env(safe-area-inset-top)!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
  }
  :root.ept-v2-layout #settingsPage > .settings-top {
    min-height:54px!important;padding:7px 12px!important;
  }
  :root.ept-v2-layout .beta2-page {
    box-sizing:border-box!important;padding-top:calc(8px + env(safe-area-inset-top))!important;
    padding-bottom:calc(14px + env(safe-area-inset-bottom))!important;
  }
  :root.ept-v2-layout .overlay:not(#callModal):not(#contactsModal):not(#newGroupModal) {
    box-sizing:border-box!important;
    padding-top:max(12px,calc(8px + env(safe-area-inset-top)))!important;
    padding-bottom:max(12px,calc(8px + env(safe-area-inset-bottom)))!important;
  }
  :root.ept-v2-layout #callModal {padding:0!important}
  :root.ept-v2-layout #callModal .call-head {
    padding-top:calc(10px + env(safe-area-inset-top))!important;
  }
  :root.ept-v2-layout #callModal .call-actions {
    padding-bottom:calc(12px + env(safe-area-inset-bottom))!important;
  }
}

/* The settings header was still drawing a separate legacy logo. */
:root.ept-v2-layout #settingsPage .settings-top:before {
  background:url('/ept-approved-brand.svg?v=4') center/contain no-repeat!important;
  width:67px!important;height:30px!important;flex:0 0 67px!important;
}
:root.ept-v2-layout #mainView #emptyView img {content:url('/ept-approved-brand.svg?v=4');width:155px!important;height:60px!important}

/* V5: readable light settings, including the separate R44 home. */
:root[data-theme=light].ept-v2-layout #settingsPage .ept-r44-profile {
  background:linear-gradient(125deg,#073e7b,#0b66b1)!important;
  border-color:#56baff!important;color:#fff!important;
}
:root[data-theme=light].ept-v2-layout #settingsPage .ept-r44-profile-meta strong,
:root[data-theme=light].ept-v2-layout #settingsPage .ept-r44-profile-meta small {
  color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;text-shadow:none!important;
}
:root[data-theme=light].ept-v2-layout #settingsPage .ept-r44-group {
  background:#f9fcff!important;border:1px solid #bed8ed!important;
  border-radius:20px!important;padding:13px!important;box-shadow:0 4px 15px #174e8020!important;
}
:root[data-theme=light].ept-v2-layout #settingsPage .ept-r44-group h2 {
  color:#163d65!important;-webkit-text-fill-color:#163d65!important;font-size:14px!important;
}
:root[data-theme=light].ept-v2-layout #settingsPage :is(.ept-r44-group-body,.ept-r44-option-group) {
  background:#fff!important;border-color:#bed6e9!important;color:#173e63!important;
}
:root[data-theme=light].ept-v2-layout #settingsPage :is(.ept-r44-nav,.ept-r44-item,.ept-r44-option-copy b) {
  color:#153b62!important;-webkit-text-fill-color:#153b62!important;
}
:root[data-theme=light].ept-v2-layout #settingsPage .ept-r44-option-copy small {
  color:#456986!important;-webkit-text-fill-color:#456986!important;
}
:root[data-theme=light].ept-v2-layout #settingsPage .ept-r44-search input,
:root[data-theme=light].ept-v2-layout #settingsPage .ept-r44-search input::placeholder {
  color:#214d75!important;-webkit-text-fill-color:#214d75!important;opacity:1!important;
}

/* The existing AI form stays functional and scrolls independently on phones. */
:root.ept-v2-layout #aiRegistrationPage:not(.hidden) {
  position:fixed!important;inset:0!important;box-sizing:border-box!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;
  overscroll-behavior-y:contain!important;
}
:root.ept-v2-layout #aiRegistrationPage .ai-free-card {
  position:relative;isolation:isolate;overflow:visible!important;
  background:radial-gradient(circle at 91% 3%,#0878df4a,transparent 34%),linear-gradient(155deg,#082c61,#06152f)!important;
  border:1px solid #4bbdff!important;box-shadow:0 14px 45px #00184470,0 0 23px #087cff58!important;
}
:root.ept-v2-layout #aiRegistrationPage .ai-free-head {
  border:1px solid #58baff65;border-radius:18px;padding:13px;
  background:linear-gradient(115deg,#0a479b88,#0636673d);
}
:root.ept-v2-layout #aiRegistrationPage .ai-free-notice {
  background:#083773cf!important;border-color:#45baff99!important;color:#e5f7ff!important;
}
:root.ept-v2-layout #aiRegistrationPage :is(.ai-free-label,.ai-free-result-head strong) {color:#e9f8ff!important}
:root.ept-v2-layout #aiRegistrationPage :is(#aiFreeInput,#aiFreeMode) {
  background:#071b3e!important;color:#f1fbff!important;border:1px solid #65bcff!important;
}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ai-free-card {
  background:linear-gradient(145deg,#fff,#eaf5ff)!important;border-color:#79bceb!important;
  box-shadow:0 12px 30px #1b57832b!important;color:#153b65!important;
}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ai-free-head {
  background:linear-gradient(120deg,#e0f1ff,#c4e5ff)!important;border-color:#83bee9!important;
}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage :is(.ai-free-head h2,.ai-free-label,.ai-free-result-head strong) {color:#123b6b!important}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage :is(.ai-free-head p,.ai-free-foot) {color:#416785!important}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ai-free-notice {background:#e0f2ff!important;color:#19476d!important;border-color:#9accf0!important}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage :is(#aiFreeInput,#aiFreeMode) {background:#fff!important;color:#153b65!important;border-color:#93bedd!important}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ai-free-result {background:#f8fcff!important;color:#153b65!important;border-color:#a9cce6!important}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-native-mode {
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;opacity:0!important;overflow:hidden!important;
  clip-path:inset(50%)!important;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-modes {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  max-height:none;min-width:0;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode {
  display:flex;align-items:center;gap:10px;text-align:start;min-width:0;min-height:65px;
  border:1px solid #559dde!important;border-radius:16px!important;
  background:linear-gradient(125deg,#0b4588,#0a2858)!important;
  color:#e8f7ff!important;padding:11px!important;
  box-shadow:inset 0 1px #ffffff24,0 4px 14px #001d4540!important;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode svg {
  width:27px;height:27px;flex:0 0 27px;stroke:#56dcff;filter:drop-shadow(0 0 5px #008fff);
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode span {
  font-size:12px;line-height:1.5;font-weight:700;min-width:0;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode.active {
  background:linear-gradient(125deg,#075cbe,#0885dc)!important;
  border-color:#8ee9ff!important;box-shadow:0 0 16px #138dff88!important;
}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ept-ai-mode {
  background:linear-gradient(125deg,#f8fcff,#e0f1ff)!important;
  color:#15436d!important;border-color:#a4cdea!important;box-shadow:0 2px 9px #15498120!important;
}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ept-ai-mode svg {stroke:#0872c1;filter:none}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ept-ai-mode.active {background:linear-gradient(125deg,#1368bc,#0a8bd0)!important;color:#fff!important}
:root[data-theme=light].ept-v2-layout #aiRegistrationPage .ept-ai-mode.active svg {stroke:#fff}
@media(max-width:780px){
  :root.ept-v2-layout #aiRegistrationPage:not(.hidden) {
    padding-top:calc(8px + env(safe-area-inset-top))!important;
    padding-bottom:calc(20px + env(safe-area-inset-bottom))!important;
  }
  :root.ept-v2-layout #aiRegistrationPage .ai-free-card {margin:12px auto 22px!important}
}

/* Message action sheet: long press opens the existing actions. Swipe-to-reply remains. */
:root.ept-v2-layout #mainView #messages .msg-more {display:none!important}
:root.ept-v2-layout #mainView #messages .message-line {gap:0!important}
:root.ept-v2-layout #mainView #messages .msg.ept-longpress-active .bubble {
  outline:2px solid #56c9ff!important;outline-offset:2px!important;
}
:root.ept-v2-layout #mainView #messages .message-menu:not(.hidden) {
  position:fixed!important;z-index:10020!important;
  left:max(10px,env(safe-area-inset-left))!important;
  right:max(10px,env(safe-area-inset-right))!important;
  bottom:calc(12px + env(safe-area-inset-bottom))!important;
  top:auto!important;inset-inline-start:auto!important;
  width:auto!important;max-width:520px!important;max-height:min(68dvh,590px)!important;
  margin-inline:auto!important;overflow-y:auto!important;
  transform:none!important;border:1px solid #5cc6ff!important;
  background:linear-gradient(145deg,#0b356d,#061833)!important;
  border-radius:21px!important;box-shadow:0 16px 55px #0009,0 0 24px #008fff5c!important;
  -webkit-overflow-scrolling:touch!important;
}
:root.ept-v2-layout #mainView #messages .message-menu:not(.hidden) button {
  min-height:43px!important;color:#ecf8ff!important;
}
:root[data-theme=light].ept-v2-layout #mainView #messages .message-menu:not(.hidden) {
  background:#fff!important;border-color:#72b7e9!important;box-shadow:0 16px 46px #143e6555!important;
}
:root[data-theme=light].ept-v2-layout #mainView #messages .message-menu:not(.hidden) button {color:#163e67!important}

/* Visual polish for existing voice playback and call cards; native controls retained. */
:root.ept-v2-layout #mainView .audio-message {
  border:1px solid #51b9ff!important;border-radius:18px!important;
  background:linear-gradient(125deg,#0b56a7,#073261)!important;
  box-shadow:inset 0 1px #ffffff42,0 5px 18px #037cff3c!important;
  padding:7px 10px!important;min-width:min(270px,70vw)!important;
}
:root.ept-v2-layout #mainView .audio-message audio {width:100%!important;max-width:100%!important;accent-color:#36bdff!important}
:root.ept-v2-layout #mainView .call-timeline {
  border:1px solid #55ccff!important;border-radius:18px!important;
  background:linear-gradient(125deg,#0b65bd,#083666)!important;
  box-shadow:inset 0 1px #ffffff5c,0 7px 22px #047aff4b!important;
}
:root[data-theme=light].ept-v2-layout #mainView .audio-message,
:root[data-theme=light].ept-v2-layout #mainView .call-timeline {
  background:linear-gradient(125deg,#d7edff,#a5d5f8)!important;
  border-color:#64aee3!important;box-shadow:0 3px 13px #2668a52b!important;
}
:root[data-theme=light].ept-v2-layout #mainView .call-timeline :is(strong,small) {color:#133e6b!important}

/* V6: the R43 portal is the real action surface, including on iPhone. */
:root.ept-v2-layout #messages .msg .bubble {
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  border:1px solid #72c8ff9c!important;border-radius:19px 19px 6px 19px!important;
  background:linear-gradient(135deg,#102f5c,#0a2146)!important;
  color:#f0faff!important;box-shadow:0 8px 20px #00132b55,inset 0 1px #ffffff24!important;
}
:root.ept-v2-layout #messages .msg.mine .bubble {
  background:linear-gradient(135deg,#0b6fd0,#124b95)!important;
  border-radius:19px 19px 19px 6px!important;
}
:root.ept-v2-layout #messages .msg .bubble :is(audio,video,button) {
  user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default;
}
:root.ept-v2-layout #messages .msg .stamp {color:#a7cee9!important}
:root.ept-v2-layout #messages .msg .stamp span {color:#85ddff!important}
:root.ept-v2-layout #messages .msg .file-attachment {
  border-radius:14px!important;border:1px solid #7edaff99!important;
  background:linear-gradient(125deg,#0a4b94,#09376e)!important;padding:8px!important;
}
:root.ept-v2-layout #messages .msg .file-attachment :is(button,span) {color:#f1faff!important}
:root.ept-v2-layout #messages .msg .media-holder {gap:8px!important}
:root.ept-v2-layout #messages .msg .media-label {font-size:12px!important;color:#e1f5ff!important;text-decoration:none!important}
:root.ept-v2-layout #messages .msg .audio-message:before {
  content:'♫';display:grid;place-items:center;width:32px;height:32px;
  border-radius:50%;background:#d9faff;color:#0066b9;font-size:22px;
  box-shadow:0 0 16px #5be5ff87;
}
:root.ept-v2-layout #messages .msg .audio-message audio {min-height:48px!important}
:root.ept-v2-layout #messages .msg .call-timeline {min-width:0!important;width:min(330px,70vw)!important}
:root.ept-v2-layout #messages .msg .call-log-icon {
  border-radius:16px!important;background:linear-gradient(145deg,#34b3ff,#0b6bdb)!important;
  border:1px solid #b4e9ff!important;box-shadow:0 0 15px #42b5ff66!important;
}
:root.ept-v2-layout #messages .msg .call-log-copy :is(strong,small) {color:#f6fcff!important}
:root.ept-v2-layout .ept-r43-menu:not([hidden]) {
  position:fixed!important;inset:auto 10px calc(12px + env(safe-area-inset-bottom)) 10px!important;
  width:auto!important;min-width:0!important;max-width:520px!important;
  margin-inline:auto!important;max-height:min(66dvh,580px)!important;
  overflow-y:auto!important;z-index:10080!important;
  border:1px solid #79d8ff!important;border-radius:21px!important;
  background:linear-gradient(155deg,#0d407b,#071d43)!important;
  box-shadow:0 18px 58px #00152bcc,0 0 22px #009dff55!important;
  visibility:visible!important;
}
:root.ept-v2-layout .ept-r43-menu:not([hidden]) .ept-r43-menu-head {
  color:#dff7ff!important;font-weight:800!important;
}
:root.ept-v2-layout .ept-r43-menu:not([hidden]) .ept-r43-menu-content>button {
  min-height:46px!important;color:#f2fbff!important;font-size:14px!important;
}

/* Apply to both the explicit Light choice and a light system theme. */
:root:is([data-theme=light],.ept-light-active) #settingsPage {
  background:linear-gradient(145deg,#eff8ff,#daeaf9)!important;color:#163b5e!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .ept-r44-profile {
  background:linear-gradient(115deg,#075398,#0a3976)!important;
  color:#fff!important;border:1px solid #61caff!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .ept-r44-profile :is(strong,small,span) {
  color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .ept-r44-home {
  background:transparent!important;color:#153857!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .ept-r44-group {
  background:#eaf5ff!important;border:1px solid #bddaf0!important;
  border-radius:19px!important;padding:12px!important;margin-bottom:15px!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .ept-r44-group h2 {
  color:#19496e!important;-webkit-text-fill-color:#19496e!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage :is(.ept-r44-group-body,.ept-r44-option-group) {
  background:#fff!important;border-color:#c0d9e9!important;color:#173c61!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage :is(.ept-r44-nav,.ept-r44-item,.ept-r44-option-copy b,.ept-r44-toggle-row,.ept-r44-select-row,.ept-r44-storage,.ept-r44-storage strong) {
  color:#193f60!important;-webkit-text-fill-color:#193f60!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage :is(.ept-r44-option-copy small,.ept-r44-storage small,.ept-r44-footer,.ept-r44-footnote) {
  color:#4d6d87!important;-webkit-text-fill-color:#4d6d87!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .ept-r44-search {
  background:#fff!important;border-color:#a8cfe9!important;color:#17486e!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .ept-r44-search input,
:root:is([data-theme=light],.ept-light-active) #settingsPage .ept-r44-search input::placeholder {
  color:#255a7c!important;-webkit-text-fill-color:#255a7c!important;opacity:1!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage :is(.ept-r44-unavailable,.ept-r44-info,.ept-r44-muted-row,.ept-r44-status) {
  color:#254d69!important;-webkit-text-fill-color:#254d69!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .settings-content :is(.settings-section,.settings-help,label,p,small,strong) {
  color:#194564!important;-webkit-text-fill-color:#194564!important;
}
:root:is([data-theme=light],.ept-light-active) #settingsPage .settings-content :is(input,select,textarea) {
  background:#fff!important;color:#163e60!important;border-color:#a9cde5!important;
}
:root:is([data-theme=light],.ept-light-active) #mainView #messages .msg .bubble {
  background:#fff!important;color:#193e62!important;border-color:#9ecae7!important;
  box-shadow:0 5px 17px #1f5c8e20!important;
}
:root:is([data-theme=light],.ept-light-active) #mainView #messages .msg.mine .bubble {
  background:linear-gradient(125deg,#d5edff,#b5dfff)!important;color:#103c67!important;
}
:root:is([data-theme=light],.ept-light-active) #mainView #messages .msg .stamp,
:root:is([data-theme=light],.ept-light-active) #mainView #messages .msg .stamp span {color:#335c7d!important}
:root:is([data-theme=light],.ept-light-active) #mainView #messages .msg .call-log-copy :is(strong,small) {color:#123e68!important}
:root:is([data-theme=light],.ept-light-active) #mainView #messages .msg .media-label {color:#214e75!important}
:root:is([data-theme=light],.ept-light-active) .ept-r43-menu:not([hidden]) {
  background:#fff!important;border-color:#74b7e4!important;box-shadow:0 18px 46px #153c6a55!important;
}
:root:is([data-theme=light],.ept-light-active) .ept-r43-menu:not([hidden]) :is(.ept-r43-menu-head,.ept-r43-menu-content>button) {color:#16456a!important}

/* AI workspace: full-height scroll, vivid bot and account-backed Pro tools. */
:root.ept-v2-layout #aiRegistrationPage:not(.hidden) {
  height:100dvh!important;max-height:100dvh!important;display:block!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  padding-bottom:calc(28px + env(safe-area-inset-bottom))!important;
  overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;
}
:root.ept-v2-layout #aiRegistrationPage .ai-free-head {
  min-height:110px!important;align-items:center!important;gap:18px!important;
  background:radial-gradient(circle at 13% 50%,#098bff88,transparent 43%),linear-gradient(125deg,#083c81,#0d1f4a)!important;
}
:root.ept-v2-layout #aiRegistrationPage .ai-free-head img.ept-ai-bot {
  width:92px!important;height:92px!important;flex:0 0 92px!important;
  border:2px solid #83e7ff!important;border-radius:28px!important;
  object-fit:cover!important;box-shadow:0 0 0 7px #078eff29,0 0 29px #0aa7ffb0!important;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro {
  display:grid;gap:14px;margin-top:14px;padding:17px;
  border-radius:19px;border:1px solid #5abfff8a;
  background:linear-gradient(135deg,#092f67,#0a1b3d);
  box-shadow:0 8px 24px #00183557;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-head {display:flex;align-items:center;gap:12px;color:#effaff}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-head>span {
  width:40px;height:40px;display:grid;place-items:center;border-radius:13px;
  background:linear-gradient(140deg,#604ded,#1abef2);font-size:25px;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-head div {display:grid;gap:4px}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-head small {font-size:11px;color:#b9dafa}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-card {
  display:grid;grid-template-columns:39px minmax(0,1fr);gap:7px 9px;
  text-align:start;align-items:center;padding:10px!important;min-width:0;
  min-height:85px;border:1px solid #5ca9e786!important;border-radius:14px!important;
  background:linear-gradient(135deg,#13539d,#0b3267)!important;color:#f5fbff!important;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-card .ept-ai-pro-icon {
  width:39px;height:39px;display:grid;place-items:center;border-radius:12px;
  font-size:22px;background:linear-gradient(130deg,#3273ea,#13c4eb);
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-text {display:grid;gap:2px;min-width:0}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-text strong {font-size:12px;line-height:1.5;color:inherit}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-text small {font-size:10px;color:#c2dcf6;line-height:1.4}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-card em {
  grid-column:1/-1;justify-self:start;padding:3px 9px;border-radius:15px;
  font-size:10px;font-style:normal;background:#d19a3633;color:#ffe2a5;
}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-card.available em {background:#1bcba038;color:#a1ffdd}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ai-free-card {
  background:linear-gradient(145deg,#f4faff,#e4f2ff)!important;color:#153d65!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ai-free-head {
  background:linear-gradient(125deg,#d7ecff,#a9d9fc)!important;
  border-color:#83bce9!important;color:#163f69!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ai-free-head :is(h2,p) {color:#15446b!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ept-ai-pro {
  background:#fff!important;color:#164062!important;border-color:#a8cfe9!important;box-shadow:0 5px 19px #14558720!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ept-ai-pro-head,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ept-ai-pro-head small {color:#174a70!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ept-ai-pro-card {
  color:#164062!important;background:#eaf5ff!important;border-color:#a6d0ee!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ept-ai-pro-text small {color:#496e8b!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ept-ai-pro-card em {background:#fff0d6!important;color:#76500c!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ept-ai-pro-card.available em {background:#dffaf0!important;color:#12624c!important}
@media(max-width:420px){
  :root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-grid {grid-template-columns:1fr 1fr;gap:7px}
  :root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-card {grid-template-columns:32px minmax(0,1fr);gap:5px;min-height:94px;padding:8px!important}
  :root.ept-v2-layout #aiRegistrationPage .ept-ai-pro-card .ept-ai-pro-icon {width:32px;height:32px;font-size:18px}
  :root.ept-v2-layout #aiRegistrationPage .ai-free-head img.ept-ai-bot {width:74px!important;height:74px!important;flex-basis:74px!important}
}

/* V7 reference treatment: clear visual hierarchy and saturated navigation. */
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand,
:root.ept-v2-layout #mainView .sidebar > .sidebarfoot {
  background:linear-gradient(120deg,#061a3c,#082657 60%,#05132f)!important;
  border-color:#4dafff88!important;color:#eaf9ff!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img,
:root.ept-v2-layout #settingsPage .settings-top:before {
  box-sizing:border-box!important;background-color:#071f4a!important;
  border:1px solid #63cfff99!important;border-radius:12px!important;
  filter:drop-shadow(0 0 7px #008dff89)!important;
}
:root.ept-v2-layout #settingsPage .settings-top:before {
  width:77px!important;height:37px!important;flex-basis:77px!important;
  background-size:67px auto!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab:not(.ept-bars-create) {
  color:#d9efff!important;background:linear-gradient(150deg,#0b315f,#061c41)!important;
  border:1px solid #438deb77!important;box-shadow:inset 0 1px #ffffff18!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab:not(.ept-bars-create) small {
  color:#e3f4ff!important;-webkit-text-fill-color:#e3f4ff!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab.active:not(.ept-bars-create) {
  color:#fff!important;border-color:#61ddff!important;
  background:linear-gradient(150deg,#087fec,#0a4eae)!important;
  box-shadow:0 0 17px #1a9bff8c,inset 0 1px #ffffff6e!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > #eptV2AI svg {stroke:#8ce3ff!important;filter:drop-shadow(0 0 4px #03a4ff)}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > #eptV2Calls svg {stroke:#90dbff!important}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > #navSupport svg {stroke:#c3b7ff!important}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > #navConversations svg {stroke:#88ebff!important}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab.active svg {stroke:#fff!important}

/* Match reference header order on phones: back, avatar, name, calls, menu. */
@media(max-width:780px){
  :root.ept-v2-layout #mainView .conversation > .chatheader {
    direction:ltr!important;gap:6px!important;min-height:calc(58px + env(safe-area-inset-top))!important;
    background:linear-gradient(115deg,#061b41,#0b3974)!important;
    border-color:#54c5ff88!important;
  }
  :root.ept-v2-layout #mainView .chatheader #back {order:0!important}
  :root.ept-v2-layout #mainView .chatheader #peerAvatar {order:1!important}
  :root.ept-v2-layout #mainView .chatheader #peerHeading {
    order:2!important;direction:rtl!important;text-align:start!important;min-width:0!important;
  }
  :root.ept-v2-layout #mainView .chatheader #callAudio {order:3!important}
  :root.ept-v2-layout #mainView .chatheader #callVideo {order:4!important}
  :root.ept-v2-layout #mainView .chatheader #eptV2ChatMore {order:5!important}
  :root.ept-v2-layout #mainView .chatheader #groupDetails {order:6!important}
  :root.ept-v2-layout #mainView .chatheader :is(#back,#callAudio,#callVideo,#eptV2ChatMore) {
    flex:0 0 39px!important;width:39px!important;height:39px!important;min-width:39px!important;
    border-radius:50%!important;background:linear-gradient(145deg,#1263b6,#082d64)!important;
    color:#e5faff!important;border:1px solid #49bcff99!important;
    box-shadow:0 0 11px #148eff76,inset 0 1px #ffffff45!important;
  }
  :root.ept-v2-layout #mainView .chatheader #peerAvatar {
    width:43px!important;height:43px!important;flex:0 0 43px!important;
    border:2px solid #47d5ff!important;box-shadow:0 0 12px #048dff98!important;
  }
  :root.ept-v2-layout #mainView .chatheader #peerName {color:#fff!important;font-size:15px!important}
  :root.ept-v2-layout #mainView .chatheader #peerStatus {color:#aedcff!important;font-size:10px!important}
  :root.ept-v2-layout #mainView .chatheader #eptV2ChatMenu {direction:rtl!important;text-align:right!important}
}
@media(max-width:390px){
  :root.ept-v2-layout #mainView .chatheader :is(#back,#callAudio,#callVideo,#eptV2ChatMore) {
    flex-basis:35px!important;width:35px!important;height:35px!important;min-width:35px!important;
  }
  :root.ept-v2-layout #mainView .chatheader #peerAvatar {width:38px!important;height:38px!important;flex-basis:38px!important}
  :root.ept-v2-layout #mainView .chatheader #peerName {font-size:13px!important}
}

/* A compact image/video card opens the existing preview and player. */
:root.ept-v2-layout #messages .msg:has(.media-open) .bubble,
:root.ept-v2-layout #messages .msg:has(.chat-video) .bubble {padding:5px!important;min-width:0!important}
:root.ept-v2-layout #messages .msg .media-open {position:relative;display:block!important;overflow:hidden;border-radius:14px!important}
:root.ept-v2-layout #messages .msg .chat-image {
  width:min(225px,66vw)!important;height:175px!important;max-height:175px!important;
  object-fit:cover!important;border-radius:13px!important;
}
:root.ept-v2-layout #messages .msg .chat-video {
  width:min(275px,72vw)!important;height:185px!important;max-height:185px!important;
  object-fit:contain!important;background:#0b1931!important;border-radius:13px!important;
}
:root.ept-v2-layout #messages .msg:has(.media-open) .media-label,
:root.ept-v2-layout #messages .msg:has(.chat-video) .media-label {
  max-width:225px!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;padding:4px 7px!important;
}
:root.ept-v2-layout #messages .msg .audio-message.ept-audio-ready {
  position:relative;min-width:0!important;width:min(340px,73vw)!important;
  padding:11px!important;border-radius:17px!important;
  background:linear-gradient(135deg,#116abd,#0b397b)!important;
  border:1px solid #79d7ff!important;box-shadow:0 8px 22px #041a4199,inset 0 1px #ffffff50!important;
}
:root.ept-v2-layout #messages .msg .audio-message.ept-audio-ready:before {display:none!important}
:root.ept-v2-layout #messages .msg .audio-message.ept-audio-ready>audio {
  position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;
  pointer-events:none!important;overflow:hidden!important;
}
:root.ept-v2-layout #messages .msg .ept-audio-player {
  direction:ltr;display:flex;align-items:center;gap:7px;min-height:47px;
  width:100%;border-radius:13px;background:#102b5785;padding:5px;
}
:root.ept-v2-layout #messages .msg .ept-audio-play {
  flex:0 0 35px!important;width:35px!important;height:35px!important;
  border:0!important;border-radius:50%!important;background:#c9f5ff!important;
  color:#0766b8!important;font-size:15px!important;font-weight:800!important;
  display:grid!important;place-items:center!important;padding:0!important;
}
:root.ept-v2-layout #messages .msg .ept-audio-track {position:relative;flex:1;min-width:0;height:34px}
:root.ept-v2-layout #messages .msg .ept-audio-wave {
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:1.5px;
  pointer-events:none;overflow:hidden;
}
:root.ept-v2-layout #messages .msg .ept-audio-wave i {
  display:block;flex:1;max-width:3px;min-width:1px;border-radius:4px;
  background:#85daff;box-shadow:0 0 4px #4bbcff77;
}
:root.ept-v2-layout #messages .msg .ept-audio-track input {
  position:absolute;inset:0;width:100%!important;height:100%!important;margin:0!important;
  cursor:pointer;opacity:.05;accent-color:#e8ffff;
}
:root.ept-v2-layout #messages .msg .ept-audio-track:after {
  content:'';position:absolute;left:var(--ept-audio-progress,0%);top:1px;
  width:6px;height:32px;border-radius:4px;background:#fff;box-shadow:0 0 7px #fff;
  pointer-events:none;
}
:root.ept-v2-layout #messages .msg .ept-audio-time {color:#d9f5ff;font-size:10px;white-space:nowrap;direction:ltr}
:root.ept-v2-layout #messages .msg .ept-audio-mark {
  display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;
  border-radius:50%;background:#d4f8ff;color:#0673bc;font-size:19px;
}
:root.ept-v2-layout #messages .msg .call-timeline {
  width:min(315px,75vw)!important;min-height:74px!important;
  background:linear-gradient(125deg,#0c72c7,#0a3774)!important;
  border-color:#6cdaff!important;
}
:root.ept-v2-layout #messages .msg .call-log-icon {flex:0 0 49px!important;width:49px!important;height:49px!important}

/* Reference-like appearance selector, wired to the existing theme select. */
:root.ept-v2-layout #settingsPage .settings-row:has(#themeChoice) #themeChoice {
  position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;
  overflow:hidden!important;pointer-events:none!important;
}
:root.ept-v2-layout #settingsPage .ept-v7-theme-cards {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:13px 0;
}
:root.ept-v2-layout #settingsPage .ept-v7-theme-cards button {
  display:grid;place-items:center;gap:7px;min-height:82px;padding:10px 5px;
  border:1px solid #79bbf2;border-radius:16px;color:#dff5ff;
  background:linear-gradient(140deg,#134579,#081e44);font:inherit;font-size:12px;
}
:root.ept-v2-layout #settingsPage .ept-v7-theme-cards button span {font-size:28px;line-height:1}
:root.ept-v2-layout #settingsPage .ept-v7-theme-cards button.active {
  color:#fff;border-color:#6ae4ff;box-shadow:0 0 17px #168aff99;
  background:linear-gradient(135deg,#127cea,#0b51bb);
}
:root.ept-v2-layout #settingsPage .ept-v7-theme-cards button:focus-visible {outline:2px solid #49caff;outline-offset:2px}

/* The light palette is intentionally colorful while keeping readable ink. */
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage {
  background:radial-gradient(circle at 10% 14%,#80d9ff7a,transparent 35%),
    radial-gradient(circle at 92% 62%,#93a5ff50,transparent 45%),
    linear-gradient(155deg,#e3f4ff,#c9e2fa 60%,#e4ebff)!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-top {
  background:linear-gradient(115deg,#0a3d77,#0c68b3)!important;
  border-color:#54bfff!important;box-shadow:0 5px 17px #15558b37!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-top :is(h1,small) {
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-top .settings-back {
  background:#d9f2ff!important;border:1px solid #a7ddfa!important;color:#0a4676!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-content {
  background:transparent!important;box-shadow:none!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-content .settings-section {
  background:linear-gradient(155deg,#fff,#e1f0ff)!important;
  border:1px solid #7bb9e7!important;box-shadow:0 10px 25px #0d4e8326,inset 0 1px #fff!important;
  border-radius:21px!important;color:#153f65!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-content .settings-section h2 {
  color:#0d5793!important;-webkit-text-fill-color:#0d5793!important;
  font-size:18px!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-r44-group {
  background:linear-gradient(140deg,#d5edff,#c5ddf5)!important;border-color:#8cc8ef!important;
  box-shadow:0 8px 19px #15579528!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-r44-group-body {
  border-color:#8bbfe8!important;box-shadow:0 5px 14px #245e8f20!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-r44-group h2,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-help {
  color:#14568b!important;-webkit-text-fill-color:#14568b!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-content .settings-row,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-content .settings-row label {
  color:#153e62!important;-webkit-text-fill-color:#153e62!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .settings-content .settings-row select {
  background:#fff!important;color:#0d426c!important;border:1px solid #83bce9!important;
}
:root.ept-v2-layout #settingsPage .ept-r44-icon {
  color:#fff!important;background:linear-gradient(145deg,#0b89df,#084b9b)!important;
  border:1px solid #73d9ff!important;box-shadow:inset 0 1px #ffffff8c,0 0 11px #168aff88!important;
}
:root.ept-v2-layout #settingsPage .ept-r44-icon svg {width:25px;height:25px;stroke:currentColor}
:root.ept-v2-layout #settingsPage [data-r44-nav=privacy] .ept-r44-icon,
:root.ept-v2-layout #settingsPage [data-r44-nav=account] .ept-r44-icon {background:linear-gradient(145deg,#23c783,#008376)!important}
:root.ept-v2-layout #settingsPage [data-r44-nav=notifications] .ept-r44-icon {background:linear-gradient(145deg,#ff8f86,#e94369)!important}
:root.ept-v2-layout #settingsPage [data-r44-nav=appearance] .ept-r44-icon,
:root.ept-v2-layout #settingsPage [data-r44-nav=avatar] .ept-r44-icon {background:linear-gradient(145deg,#9967ef,#434cd3)!important}
:root.ept-v2-layout #settingsPage [data-r44-nav=storage] .ept-r44-icon,
:root.ept-v2-layout #settingsPage [data-r44-nav=language] .ept-r44-icon {background:linear-gradient(145deg,#28cde1,#0879b9)!important}
:root.ept-v2-layout #settingsPage [data-r44-nav=help] .ept-r44-icon {background:linear-gradient(145deg,#f5a454,#d4670c)!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-v7-theme-cards button {
  color:#17446e;background:linear-gradient(145deg,#fff,#cee9ff);border-color:#92c5e9;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-v7-theme-cards button.active {
  color:#fff;background:linear-gradient(145deg,#147cf4,#0755ba);border-color:#49baff;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar > .sidebarfoot {
  background:linear-gradient(110deg,#08416f,#0b6db3)!important;border-color:#67cfff!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab:not(.ept-bars-create) {
  background:linear-gradient(145deg,#eaf6ff,#cde8ff)!important;color:#185788!important;
  border-color:#85c1ed!important;box-shadow:0 3px 9px #144e822e!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab:not(.ept-bars-create) small {
  color:#185788!important;-webkit-text-fill-color:#185788!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab.active:not(.ept-bars-create) {
  color:#fff!important;background:linear-gradient(135deg,#1988fa,#0c5dc1)!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab.active:not(.ept-bars-create) small {
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #messages .msg .ept-audio-player {background:#ffffff2c}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #messages .msg .ept-audio-time {color:#fff}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #messages .msg .ept-audio-wave i {background:#adf0ff}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #messages .msg .media-label {color:#14486f!important}

/* Each AI choice gets its own accent, as in the supplied reference. */
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode[data-mode="fa-en"],
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode[data-mode="en-fa"] {--mode-accent:#d687ff}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode[data-mode="polish-fa"],
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode[data-mode="polish-en"] {--mode-accent:#41e7e7}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode[data-mode="formal-fa"] {--mode-accent:#ffa949}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode[data-mode="shorten"] {--mode-accent:#79ef9a}
:root.ept-v2-layout #aiRegistrationPage .ept-ai-mode svg {
  padding:5px;width:37px;height:37px;flex-basis:37px;
  border:1px solid color-mix(in srgb,var(--mode-accent,#50d7ff) 65%,transparent);
  border-radius:12px;background:color-mix(in srgb,var(--mode-accent,#50d7ff) 24%,transparent);
  stroke:var(--mode-accent,#50d7ff);
}

/* V8 reference composition: one icon language throughout the application. */
:root.ept-v2-layout .ept-v8-svg {width:21px;height:21px;display:block;stroke:currentColor}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img {
  width:96px!important;height:42px!important;flex:0 0 96px!important;
  padding:4px!important;object-fit:contain!important;border-radius:13px!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account {
  flex:1 1 95px!important;min-width:0!important;max-width:none!important;
  margin-inline-start:0!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-name {
  font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-id {
  display:block!important;font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle {
  width:42px!important;height:42px!important;min-width:42px!important;
  border-radius:50%!important;background:#0a356b!important;color:#a8eaff!important;
  border:1px solid #6bcfffaa!important;box-shadow:0 0 12px #087fff8c!important;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand #settingsToggle svg {width:25px!important;height:25px!important}
@media(max-width:360px){
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand > img {width:78px!important;flex-basis:78px!important}
  :root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account .avatar {display:none!important}
}

/* Chats home: thin separators, luminous story circles, compact tabs. */
:root.ept-v2-layout #mainView .sidebar {
  background:linear-gradient(160deg,#06162f,#041027 67%,#061d3d)!important;
}
:root.ept-v2-layout #mainView .sidebar .search {
  border-radius:15px!important;background:#18345be0!important;
  border:1px solid #69bcf077!important;margin:8px 12px 9px!important;
  padding:2px 8px!important;box-shadow:inset 0 1px #ffffff20!important;
}
:root.ept-v2-layout #mainView .sidebar .story-shelf {
  margin:3px 9px 7px!important;background:transparent!important;
  border:0!important;box-shadow:none!important;
}
:root.ept-v2-layout #mainView .sidebar .story-ring {
  border:2px solid #1dd7ff!important;box-shadow:0 0 0 2px #115ba4,0 0 13px #087fff8c!important;
}
:root.ept-v2-layout #mainView .sidebar .conversation-filters {
  gap:5px!important;background:transparent!important;padding:5px 11px!important;
}
:root.ept-v2-layout #mainView .sidebar .filter-chip {
  flex:1;min-width:0;min-height:29px!important;padding:4px 7px!important;
  background:#10284b!important;border:1px solid #5b9bd36b!important;
  color:#d9efff!important;border-radius:10px!important;
}
:root.ept-v2-layout #mainView .sidebar .filter-chip.selected {
  color:#fff!important;background:linear-gradient(110deg,#178cf2,#0765c8)!important;
  border-color:#70d9ff!important;box-shadow:0 0 9px #137fff83!important;
}
:root.ept-v2-layout #mainView .sidebar #chatList .chatrow {
  min-height:64px!important;margin:0!important;padding:7px 10px!important;
  border:0!important;border-bottom:1px solid #6aa7d52c!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
:root.ept-v2-layout #mainView .sidebar #chatList .chatrow.active {
  background:#0d4a8d7d!important;border-bottom-color:#74d4ffad!important;
}
:root.ept-v2-layout #mainView .sidebar #chatList .chatrow .avatar {
  width:45px!important;height:45px!important;flex-basis:45px!important;
  border:2px solid #42c8ff!important;border-radius:50%!important;
}
:root.ept-v2-layout #mainView .sidebar #chatList .chatrow-info strong {font-size:13px!important}
:root.ept-v2-layout #mainView .sidebar #chatList .chatrow-info small {font-size:11px!important}
:root.ept-v2-layout #mainView .sidebar #chatList .unread-pill {
  background:#138df2!important;border:1px solid #6ce0ff!important;
  box-shadow:0 0 9px #1599ff7a!important;
}

/* The reference's circular tab glyphs, with the requested five destinations. */
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav {
  gap:3px!important;padding:5px 2px!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab {
  min-width:0!important;min-height:55px!important;padding:4px 1px!important;border-radius:12px!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab > span {
  width:28px!important;height:28px!important;display:grid!important;place-items:center!important;
  border-radius:50%!important;background:#0b468298!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab svg {width:21px!important;height:21px!important}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab small {
  font-size:10px!important;line-height:1.1!important;white-space:nowrap!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .ept-bars-create {
  background:linear-gradient(145deg,#169efe,#0861d4)!important;border-color:#8aebff!important;
  box-shadow:0 0 14px #078dff9c!important;
}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .ept-bars-create > span {background:transparent!important}

/* Chat composer follows the supplied order, while preserving the old events. */
:root.ept-v2-layout #mainView #composer {
  direction:ltr!important;align-items:center!important;gap:5px!important;
  padding:7px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
  background:linear-gradient(135deg,#061b3c,#0a3971)!important;
  border:1px solid #69cfff91!important;border-radius:17px 17px 0 0!important;
}
:root.ept-v2-layout #mainView #composer :is(#attach,#emojiButton,#voiceHold) {
  flex:0 0 37px!important;width:37px!important;height:37px!important;min-width:37px!important;
  border-radius:50%!important;border:1px solid #70d6ffb5!important;
  background:linear-gradient(145deg,#197ed6,#093d83)!important;color:#e9fbff!important;
  box-shadow:0 0 11px #087fff8a,inset 0 1px #ffffff50!important;
  display:grid!important;place-items:center!important;padding:0!important;
}
:root.ept-v2-layout #mainView #composer #attach {order:0!important}
:root.ept-v2-layout #mainView #composer #emojiButton {order:1!important}
:root.ept-v2-layout #mainView #composer #text {
  order:2!important;direction:rtl!important;text-align:right!important;min-height:37px!important;
  border-radius:19px!important;background:#0b2449!important;color:#f4fbff!important;
  border:1px solid #63acdfaa!important;font-size:14px!important;
}
:root.ept-v2-layout #mainView #composer #voiceHold {order:3!important}
:root.ept-v2-layout #mainView #composer #send {order:4!important;border-radius:50%!important;min-width:37px!important;height:37px!important;padding:4px!important;font-size:11px!important}
:root.ept-v2-layout #mainView #composer .ept-v8-svg {width:22px;height:22px}
:root.ept-v2-layout #mainView #attachMenu .attach-icon {
  display:inline-grid;place-items:center;vertical-align:middle;width:29px;height:29px;
  border-radius:9px;background:#1388e8;color:#fff;margin-inline-end:8px;
}

/* Message types share the reference's compact cobalt cards and cyan edging. */
:root.ept-v2-layout #messages .msg .bubble {
  background:linear-gradient(130deg,#132b4b,#0b1b38)!important;
  color:#f3faff!important;border:1px solid #79bce67d!important;
  border-radius:14px!important;box-shadow:0 4px 13px #00132d54!important;
}
:root.ept-v2-layout #messages .msg.mine .bubble {
  background:linear-gradient(125deg,#137ce9,#0754bd)!important;
  color:#fff!important;border-color:#70d8ff!important;
}
:root.ept-v2-layout #messages .msg .media-holder:has(.chat-image),
:root.ept-v2-layout #messages .msg .media-holder:has(.chat-video) {
  width:min(250px,70vw)!important;overflow:hidden!important;border-radius:12px!important;
  background:#081c3b!important;
}
:root.ept-v2-layout #messages .msg .chat-image,
:root.ept-v2-layout #messages .msg .chat-video {
  display:block!important;width:100%!important;height:auto!important;max-height:235px!important;
  aspect-ratio:4/3;object-fit:cover!important;border-radius:12px!important;
}
:root.ept-v2-layout #messages .msg .chat-video {object-fit:contain!important;background:#06152d!important}
:root.ept-v2-layout #messages .msg .media-holder .media-label {
  display:block!important;max-width:100%!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
  padding:3px 8px!important;color:#cdeeff!important;font-size:10px!important;
  direction:ltr;text-align:right;text-decoration:none!important;
}
:root.ept-v2-layout #messages .msg .audio-message.ept-audio-ready {
  width:min(305px,76vw)!important;padding:5px!important;min-height:67px!important;
}
:root.ept-v2-layout #messages .msg .ept-audio-mark {display:none!important}
:root.ept-v2-layout #messages .msg .ept-audio-wave i:nth-child(3n) {background:#d8faff!important}
:root.ept-v2-layout #messages .msg .file-attachment {
  min-width:215px;max-width:min(315px,77vw)!important;border:1px solid #6ed3ffaf!important;
  background:linear-gradient(130deg,#153f73,#0c2c5d)!important;border-radius:13px!important;
  padding:8px!important;box-shadow:0 6px 17px #00172b74!important;
}
:root.ept-v2-layout #messages .msg .file-attachment-open span:first-child {
  display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;
  background:#eb454d;color:#fff;border-radius:8px;
}
:root.ept-v2-layout #messages .msg .file-attachment:not(.ept-v8-pdf) .file-attachment-open span:first-child {background:#238add}
:root.ept-v2-layout #messages .msg .file-attachment-open .ept-v8-svg {width:23px;height:23px}
:root.ept-v2-layout #messages .msg .file-attachment-open span:last-child {
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eff9ff!important;
}
:root.ept-v2-layout #messages .msg .call-timeline {min-width:225px!important;max-width:min(305px,77vw)!important}

/* Calls, AI, settings and profile use the same luminous icon surfaces. */
:root.ept-v2-layout #mainView .ept-v2-calls-hub {
  background:linear-gradient(160deg,#07152f,#0b2b54)!important;color:#eff9ff!important;
}
:root.ept-v2-layout #mainView .ept-v2-callrow {
  min-height:58px!important;margin:0!important;border-radius:0!important;
  border-bottom:1px solid #65b6e947!important;background:transparent!important;
}
:root.ept-v2-layout #mainView .ept-v2-callrow .avatar {border:2px solid #53cfff!important;border-radius:50%!important}
:root.ept-v2-layout #mainView .ept-v2-callaction {
  display:grid!important;place-items:center!important;width:34px!important;height:34px!important;
  background:#0b70d1!important;border-radius:50%!important;color:#e7fbff!important;
  box-shadow:0 0 9px #128aff95!important;
}
:root.ept-v2-layout #aiRegistrationPage > header,
:root.ept-v2-layout #settingsPage > .settings-top {
  background:linear-gradient(115deg,#061a3a,#0b3c78)!important;
  border-bottom:1px solid #53c5ff80!important;color:#f4fbff!important;
}
:root.ept-v2-layout #aiRegistrationPage .ai-free-head {
  flex-direction:column!important;text-align:center!important;
}
:root.ept-v2-layout #aiRegistrationPage .ai-free-head img.ept-ai-bot {
  width:110px!important;height:110px!important;flex:0 0 110px!important;
  border:2px solid #77ddff!important;border-radius:50%!important;
  background:radial-gradient(circle,#1266c4,#05193b)!important;
  box-shadow:0 0 23px #087fffaa!important;
}
:root.ept-v2-layout #settingsPage .ept-r44-profile {
  min-height:81px!important;border:1px solid #73ceffad!important;
  box-shadow:0 6px 19px #0165bd45,inset 0 1px #ffffff55!important;
}
:root.ept-v2-layout #settingsPage .ept-v8-detail-icon {
  flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;
  border-radius:11px;color:#fff;background:linear-gradient(145deg,#188fe8,#0758a7);
  box-shadow:0 0 9px #057ff66d;
}
:root.ept-v2-layout #settingsPage .ept-r44-item:nth-child(3n) .ept-v8-detail-icon {background:linear-gradient(145deg,#27bf80,#08766d)}
:root.ept-v2-layout #settingsPage .ept-r44-item:nth-child(3n+2) .ept-v8-detail-icon {background:linear-gradient(145deg,#d866ee,#7837af)}
:root.ept-v2-layout #callModal #callDialog[data-mode="audio"] .audio-stage {
  background:radial-gradient(circle at 50% 45%,#0b58a26e,transparent 52%),#04142e!important;
}
:root.ept-v2-layout #callModal #callDialog[data-mode="audio"] .audio-peer-avatar {
  border:3px solid #8ce5ff!important;border-radius:50%!important;
  box-shadow:0 0 0 6px #168dff45,0 0 32px #168dffb5!important;
}
:root.ept-v2-layout #callModal .call-control .call-control-icon {
  border:1px solid #65cfff!important;background:linear-gradient(145deg,#177bc9,#083776)!important;
  box-shadow:0 0 10px #087fff7b!important;
}
:root.ept-v2-layout #callModal #hangup .call-control-icon,
:root.ept-v2-layout #callModal #rejectCall .call-control-icon {background:linear-gradient(145deg,#ff526d,#d7183e)!important;border-color:#ff9aae!important}
:root.ept-v2-layout #profileModal .dialog,
:root.ept-v2-layout #peerProfileModal .dialog {
  background:linear-gradient(160deg,#071a39,#082858)!important;border:1px solid #6dcaffab!important;
  color:#f2faff!important;
}
:root.ept-v2-layout #profileModal .profile-preview .avatar,
:root.ept-v2-layout #peerProfileModal .peer-profile-avatar {
  border:3px solid #71d8ff!important;border-radius:50%!important;
  box-shadow:0 0 0 4px #068dff34,0 0 17px #0a8dff8d!important;
}

/* Light mode retains the same vivid brand instead of flattening every surface. */
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar {
  background:linear-gradient(155deg,#e6f4ff,#c9e4fb 60%,#a9c8f1)!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-name,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > .brand .compact-account-id {
  color:#f1fbff!important;-webkit-text-fill-color:#f1fbff!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar .search {
  background:#f7fcff!important;border-color:#55abe8!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar #chatList .chatrow {
  background:transparent!important;border-bottom:1px solid #4f90c347!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar #chatList .chatrow.active {
  background:#8fc9f37d!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar .filter-chip {
  background:#e6f4ff!important;color:#19527a!important;border-color:#8dbfe5!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar .filter-chip.selected {
  background:linear-gradient(110deg,#168ff1,#0863ba)!important;color:#fff!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #messages .msg:not(.mine) .bubble {
  background:linear-gradient(125deg,#e9f7ff,#cee7ff)!important;
  border-color:#74b8e9!important;color:#153f69!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #messages .msg.mine .bubble {
  background:linear-gradient(125deg,#1694ec,#0873d0)!important;color:#fff!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-r44-group-body,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-r44-option-group {
  background:linear-gradient(145deg,#fff,#e8f6ff)!important;border-color:#89c5ef!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-r44-nav,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #settingsPage .ept-r44-item {
  color:#123e66!important;border-bottom-color:#bfdbee!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #profileModal .dialog,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .dialog {
  background:linear-gradient(155deg,#f8fcff,#d8ecff)!important;color:#123c60!important;
}

/* The orbit logo is wide; each page gives it a wide frame, including SMS. */
#startupView img,
#authView .auth-hero-logo,
#authView .ept-phone-auth-brand img,
#mainView #emptyView img {
  width:min(200px,55vw)!important;max-width:100%!important;height:auto!important;
  min-height:50px!important;object-fit:contain!important;
  background:#071d42!important;border:1px solid #60caff72!important;
  border-radius:14px!important;padding:5px!important;
  filter:drop-shadow(0 0 9px #0c9cff88)!important;
}
#authView .auth-mobile-brand img {width:82px!important;height:29px!important;object-fit:contain!important}

/* Secondary screens retain the same EPT chrome and sized touch targets. */
:root.ept-v2-layout :is(#contactsModal,#groupDetailsModal,#supportModal,#searchModal,#forwardModal,#recordModal,#wallpaperModal) .dialog {
  background:linear-gradient(145deg,#0b274e,#061831)!important;
  color:#f1faff!important;border:1px solid #65bff19c!important;
  box-shadow:0 18px 55px #00112b8c!important;
}
:root.ept-v2-layout :is(#fileViewer,#chatMediaGallery) > header {
  background:linear-gradient(110deg,#061a39,#0c3f80)!important;color:#eefaff!important;
  border-bottom:1px solid #6bcfff84!important;
}
:root.ept-v2-layout :is(#fileViewer,#chatMediaGallery) > header .icon-button,
:root.ept-v2-layout :is(#peerProfileModal,#contactsModal,#groupDetailsModal) .icon-button {
  background:linear-gradient(135deg,#147bd6,#093b80)!important;color:#e9faff!important;
  border:1px solid #73dfff!important;border-radius:50%!important;
  box-shadow:0 0 11px #168dff77!important;
}
:root.ept-v2-layout #messages .msg .audio-message.ept-audio-ready > .media-label {
  font-size:10px!important;color:#ccefff!important;text-decoration:none!important;
  padding-inline:8px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
:root.ept-v2-layout #contactsModal .contacts-head-icon,
:root.ept-v2-layout #groupDetailsModal .contacts-head-icon {
  background:linear-gradient(145deg,#188cea,#0751a5)!important;color:#fff!important;
  border:1px solid #8ce8ff!important;border-radius:13px!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout :is(#contactsModal,#groupDetailsModal,#supportModal,#searchModal,#forwardModal,#recordModal,#wallpaperModal) .dialog {
  background:linear-gradient(145deg,#fff,#d8edff)!important;
  color:#123c66!important;border-color:#71b9e9!important;
}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout :is(#fileViewer,#chatMediaGallery) > header {
  background:linear-gradient(110deg,#0a4e96,#0879c9)!important;color:#fff!important;
}

/* V9: media and call events are one card, without an extra message frame. */
:root.ept-v2-layout #mainView #messages .msg:has(:is(.audio-message,.call-timeline,.chat-video,.media-open,.file-attachment)) .bubble {
  box-sizing:border-box!important;display:block!important;min-width:0!important;
  width:max-content!important;max-width:100%!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
:root.ept-v2-layout #mainView #messages .msg:has(:is(.audio-message,.call-timeline,.chat-video,.media-open,.file-attachment)).mine .bubble {
  background:transparent!important;border:0!important;box-shadow:none!important;
}
:root.ept-v2-layout #mainView #messages .msg .audio-message.ept-audio-ready {
  box-sizing:border-box!important;width:min(242px,68vw)!important;min-width:0!important;
  min-height:0!important;padding:6px!important;border-radius:14px!important;
  border:1px solid #6fd8ff!important;box-shadow:0 4px 12px #041a4169!important;
}
:root.ept-v2-layout #mainView #messages .msg .ept-audio-player {
  min-height:39px!important;padding:2px!important;gap:4px!important;border-radius:11px!important;
  background:transparent!important;
}
:root.ept-v2-layout #mainView #messages .msg .ept-audio-play {
  flex-basis:30px!important;width:30px!important;height:30px!important;font-size:12px!important;
}
:root.ept-v2-layout #mainView #messages .msg .ept-audio-track {height:25px!important}
:root.ept-v2-layout #mainView #messages .msg .ept-audio-wave i {max-height:23px!important}
:root.ept-v2-layout #mainView #messages .msg .ept-audio-track:after {
  top:3px!important;height:19px!important;width:3px!important;
}
:root.ept-v2-layout #mainView #messages .msg .ept-audio-time {font-size:9px!important}
:root.ept-v2-layout #mainView #messages .msg .audio-message.ept-audio-ready > .media-label {
  font-size:9px!important;line-height:1.3!important;padding:2px 5px 0!important;
}
:root.ept-v2-layout #mainView #messages .msg .call-timeline {
  box-sizing:border-box!important;min-width:0!important;width:min(237px,68vw)!important;
  max-width:100%!important;min-height:58px!important;padding:8px 9px!important;
  gap:7px!important;border-radius:14px!important;box-shadow:0 4px 12px #041a4169!important;
}
:root.ept-v2-layout #mainView #messages .msg .call-log-icon {
  flex:0 0 37px!important;width:37px!important;height:37px!important;
}
:root.ept-v2-layout #mainView #messages .msg .call-log-icon svg {width:20px!important;height:20px!important}
:root.ept-v2-layout #mainView #messages .msg .call-log-copy strong {font-size:13px!important;line-height:1.4!important}
:root.ept-v2-layout #mainView #messages .msg .call-log-copy small {font-size:10px!important}
:root.ept-v2-layout #mainView #messages .msg .call-log-status {
  width:22px!important;height:22px!important;font-size:14px!important;
}
:root.ept-v2-layout #mainView #messages .msg .media-holder:has(.chat-video),
:root.ept-v2-layout #mainView #messages .msg .media-holder:has(.chat-image) {
  box-sizing:border-box!important;width:min(205px,62vw)!important;
  border:1px solid #64b9eac2!important;border-radius:13px!important;
  box-shadow:0 4px 12px #041a4169!important;
}
:root.ept-v2-layout #mainView #messages .msg .chat-video,
:root.ept-v2-layout #mainView #messages .msg .chat-image {
  width:100%!important;height:auto!important;max-height:195px!important;
  border-radius:12px 12px 7px 7px!important;
}
:root.ept-v2-layout #mainView #messages .msg .file-attachment {
  box-sizing:border-box!important;min-width:0!important;width:min(225px,68vw)!important;
  max-width:100%!important;box-shadow:0 4px 12px #041a4169!important;
}
:root.ept-v2-layout #mainView #composer #send::before {
  content:'➤'!important;display:grid!important;place-items:center!important;
  position:absolute!important;inset:0!important;color:#fff!important;font-size:19px!important;
}

/* V10: the old inbox-focused mode hid the entire upper section. Keep the
   heading and search above the independently scrolling conversation list. */
@media(max-width:800px){
  :root.ept-v2-layout #mainView.app .sidebar {
    box-sizing:border-box!important;height:100dvh!important;max-height:100dvh!important;
    min-height:0!important;overflow:hidden!important;padding:0!important;
    display:flex!important;flex-direction:column!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar > .ept-inbox-scroll > :is(.brand,.story-shelf,.search,.conversation-filters,.listhead,.sidebarfoot) {
    flex-shrink:0!important;
  }
  :root.ept-v2-layout #mainView.app.inbox-focused .sidebar > .ept-inbox-scroll > .brand {display:flex!important}
  :root.ept-v2-layout #mainView.app.inbox-focused .sidebar > .ept-inbox-scroll > .story-shelf {display:block!important}
  :root.ept-v2-layout #mainView.app.inbox-focused .sidebar > .ept-inbox-scroll > .search {display:flex!important}
  :root.ept-v2-layout #mainView.app .sidebar > .ept-inbox-scroll > .brand {
    box-sizing:border-box!important;min-height:calc(51px + env(safe-area-inset-top))!important;
    padding:calc(4px + env(safe-area-inset-top)) 9px 4px!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar .search {margin:5px 10px 5px!important}
  :root.ept-v2-layout #mainView.app .sidebar .story-shelf {margin:0 8px 3px!important;padding:4px 3px!important}
  :root.ept-v2-layout #mainView.app .sidebar .story-shelf-head {display:none!important}
  :root.ept-v2-layout #mainView.app .sidebar .story-list {min-height:65px!important}
  :root.ept-v2-layout #mainView.app.inbox-focused .sidebar .conversation-filters {margin-top:2px!important}
  :root.ept-v2-layout #mainView.app .sidebar .conversation-filters {padding:3px 8px!important;margin-bottom:2px!important}
  :root.ept-v2-layout #mainView.app .sidebar .listhead {padding:2px 11px 4px!important;min-height:24px!important}
  :root.ept-v2-layout #mainView.app .sidebar #chatList {
    box-sizing:border-box!important;flex:1 1 0!important;min-height:0!important;
    overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;padding:0 7px 6px!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar #chatList .chatrow {
    min-height:56px!important;padding:5px 7px!important;gap:8px!important;
    background:transparent!important;border-bottom:1px solid #64a7d537!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar #chatList .chatrow .avatar {
    width:41px!important;height:41px!important;flex-basis:41px!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar #chatList .chatrow-info strong {font-size:12.5px!important;line-height:1.3!important}
  :root.ept-v2-layout #mainView.app .sidebar #chatList .chatrow-info small {font-size:10.5px!important;line-height:1.3!important;margin-top:2px!important}
  :root.ept-v2-layout #mainView.app .sidebar #chatList .chat-meta time {font-size:9px!important}
}

/* Reference appearance screen, with the original settings controls retained. */
:root.ept-v2-layout #settingsPage.ept-appearance-open .settings-content > .settings-section:first-child {display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
:root.ept-v2-layout #settingsPage.ept-appearance-open .settings-content > .settings-section:first-child > :not(#eptAppearancePanel) {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
:root.ept-v2-layout #settingsPage.ept-appearance-open #eptR44Extra {display:none!important}
:root.ept-v2-layout #settingsPage.ept-appearance-open .settings-content {max-width:660px!important;padding:12px 15px calc(24px + env(safe-area-inset-bottom))!important}
.ept-appearance-panel {--accent-screen:var(--ept-ui-accent,#168aff);display:grid;gap:10px;color:#edf8ff;direction:rtl}
.ept-appearance-title {font-size:20px;font-weight:850;text-align:right;padding:9px 4px 4px}
.ept-appearance-block,.ept-appearance-row {background:linear-gradient(135deg,#0c2949,#071c38);border:1px solid #2c6592;border-radius:14px;padding:12px;box-shadow:inset 0 1px #ffffff13}
.ept-appearance-block h2 {font-size:14px!important;margin:0 0 12px!important;color:#eaf8ff!important}
.ept-appearance-themes {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.ept-appearance-themes button {min-height:77px;border:1px solid #3c688f;border-radius:13px;background:#142b47;color:#d6eafb;display:grid;place-items:center;gap:2px;font:inherit;font-size:12px}
.ept-appearance-themes button span {font-size:29px;line-height:1}
.ept-appearance-themes button.selected {border:2px solid #48d9ff;background:linear-gradient(140deg,#0d4b9e,#072654);box-shadow:0 0 12px #158dffab}
.ept-appearance-size {display:flex;align-items:center;gap:12px;direction:ltr}.ept-appearance-size span:last-child {font-size:24px}.ept-appearance-size input {width:100%;accent-color:var(--accent-screen)}
.ept-appearance-row {display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:52px}.ept-appearance-row>b {font-size:12px;white-space:nowrap}
.ept-appearance-row button {font:inherit;font-size:11px;color:#e9f5ff;border:1px solid #477398;background:#142e50;border-radius:9px;padding:8px}
.ept-appearance-row button.selected {border-color:#71dcff;box-shadow:0 0 9px #128cffbb;background:#1058a1}
.ept-appearance-colors,.ept-appearance-wallpapers,.ept-appearance-icons {display:flex;gap:5px;direction:ltr}
.ept-appearance-colors button {width:30px;height:30px;padding:0;background:var(--swatch);border-radius:50%;border:2px solid #c9f5ff66}
.ept-appearance-colors button.selected {outline:2px solid #fff;outline-offset:2px}
.ept-appearance-wallpapers button {width:40px;height:39px;padding:0;background-size:cover;background-position:center}
.ept-appearance-icons button {width:38px;height:38px;padding:2px;background:#0b63c8}.ept-appearance-icons button img {width:100%;height:100%;object-fit:contain}.ept-appearance-icons .icon-purple {background:#882bd2}.ept-appearance-icons .icon-amber {background:#ad7111}.ept-appearance-icons .icon-mono {background:#111827}
.ept-appearance-contrast input {accent-color:var(--accent-screen);width:22px;height:22px}.ept-appearance-note {color:#98bdd9;font-size:10px;line-height:1.5;margin:0 3px}
:root[data-ept-accent=purple] {--ept-ui-accent:#a54bef}:root[data-ept-accent=pink] {--ept-ui-accent:#ec35ac}:root[data-ept-accent=amber] {--ept-ui-accent:#f5a623}:root[data-ept-accent=green] {--ept-ui-accent:#16bf76}
:root.ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab.active:not(.ept-bars-create),:root.ept-v2-layout #settingsPage .ept-appearance-panel .selected {border-color:var(--ept-ui-accent,#168aff)!important}
:root[data-ept-app-icon=purple] #mainView .brand>img {background:#51228b!important}:root[data-ept-app-icon=amber] #mainView .brand>img {background:#956221!important}:root[data-ept-app-icon=mono] #mainView .brand>img {background:#111827!important}
:root:is([data-theme=light],.ept-light-active) .ept-appearance-panel {color:#183d62}:root:is([data-theme=light],.ept-light-active) .ept-appearance-panel :is(.ept-appearance-block,.ept-appearance-row) {background:#edf6ff;border-color:#91bfe2}:root:is([data-theme=light],.ept-light-active) .ept-appearance-panel h2 {color:#183d62!important}:root:is([data-theme=light],.ept-light-active) .ept-appearance-panel .ept-appearance-note {color:#466988}

/* Keep every full-screen route within the phone's safe rectangle. */
@media(max-width:800px){
  :root.ept-v2-layout #mainView #composer {margin-bottom:0!important;padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
  :root.ept-v2-layout #mainView .conversation {height:100dvh!important;max-height:100dvh!important;min-height:0!important;overflow:hidden!important}
  :root.ept-v2-layout #mainView .chatheader {flex:0 0 auto!important;padding-top:calc(7px + env(safe-area-inset-top))!important}
  :root.ept-v2-layout #mainView #messages {min-height:0!important;overflow-y:auto!important;overscroll-behavior-y:contain!important}
  :root.ept-v2-layout #settingsPage,:root.ept-v2-layout .beta2-page {height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}
  :root.ept-v2-layout #aiRegistrationPage:not(.hidden) {padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}
  :root.ept-v2-layout :is(#contactsModal,#newGroupModal).overlay {box-sizing:border-box!important;padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}
  :root.ept-v2-layout :is(#fileViewer,#chatMediaGallery) {box-sizing:border-box!important;height:100dvh!important;padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}
  :root.ept-v2-layout :is(#fileViewer,#chatMediaGallery)>header {flex:0 0 auto!important}
  :root.ept-v2-layout :is(#fileViewer,#chatMediaGallery) :is(.file-viewer-body,.media-gallery-body) {min-height:0!important;overflow-y:auto!important}
  :root.ept-v2-layout #callModal .call-dialog {box-sizing:border-box!important;max-height:100dvh!important}
}

/* Conversation list: collapse the upper chrome on scroll and restore on pull. */
@media(max-width:800px){
  :root.ept-v2-layout #mainView.app.ept-inbox-collapsed .sidebar::before {
    content:'';display:block;flex:0 0 env(safe-area-inset-top);min-height:env(safe-area-inset-top);
    background:#06162f;
  }
  :root.ept-v2-layout #mainView.app.ept-inbox-collapsed .sidebar > .ept-inbox-scroll > :is(.brand,.story-shelf,.search) {display:none!important}
  :root.ept-v2-layout #mainView.app.ept-inbox-collapsed .sidebar > .ept-inbox-scroll > .conversation-filters {margin-top:4px!important}
  :root.ept-v2-layout #mainView.app.ept-inbox-collapsed .sidebar #chatList {overscroll-behavior-y:auto!important}
}

/* Story reaction and comment occupy one compact row. */
.story-viewer.ept-story-compact-social .story-social {
  display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;
  gap:4px!important;max-height:min(25vh,205px)!important;
  padding:7px 10px calc(8px + env(safe-area-inset-bottom))!important;
}
.story-viewer.ept-story-compact-social .story-comments-head {display:none!important}
.story-viewer.ept-story-compact-social .story-comments {min-height:0!important;max-height:13vh!important;font-size:11px!important;padding:0 3px!important}
.story-viewer.ept-story-compact-social .story-comment-form {direction:rtl!important;display:flex!important;align-items:center!important;gap:6px!important;min-height:38px!important}
.story-viewer.ept-story-compact-social .story-comment-form input {height:38px!important;font-size:12px!important;padding:0 11px!important}
.story-viewer.ept-story-compact-social .story-comment-form button[type=submit] {width:38px!important;height:38px!important;min-height:38px!important;font-size:17px!important}
.story-viewer.ept-story-compact-social .story-comment-form #storyLike {order:2;flex:0 0 auto!important;min-width:55px!important;height:38px!important;min-height:38px!important;font-size:19px!important;padding:2px 7px!important}
.story-viewer.ept-story-compact-social .story-comment-form #storyLike span {font-size:10px!important}
.story-viewer.ept-story-compact-social .story-comment-form input {order:1}
.story-viewer.ept-story-compact-social .story-comment-form button[type=submit] {order:0}
.story-viewer.ept-story-compact-social .story-viewer-caption {bottom:calc(126px + env(safe-area-inset-bottom))!important}

/* V14: readable, Telegram-scale peer portraits and a predictable RTL back control. */
:root.ept-v2-layout #mainView .sidebar #chatList .chatrow {
  min-height:72px!important;gap:11px!important;
}
:root.ept-v2-layout #mainView .sidebar #chatList .chatrow .avatar {
  box-sizing:border-box!important;width:54px!important;height:54px!important;
  flex:0 0 54px!important;font-size:20px!important;
}
@media(max-width:800px){
  :root.ept-v2-layout #mainView.app .sidebar #chatList .chatrow {
    min-height:68px!important;padding:7px 8px!important;gap:10px!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar #chatList .chatrow .avatar {
    width:52px!important;height:52px!important;flex:0 0 52px!important;
  }
  :root.ept-v2-layout #mainView .conversation > .chatheader {
    direction:rtl!important;gap:6px!important;padding-inline:9px!important;
  }
  :root.ept-v2-layout #mainView .chatheader #back {
    order:0!important;flex:0 0 40px!important;width:40px!important;height:40px!important;
    min-width:40px!important;margin:0!important;font-size:29px!important;
    touch-action:manipulation!important;
  }
  :root.ept-v2-layout #mainView .chatheader #peerAvatar {
    order:1!important;box-sizing:border-box!important;width:52px!important;height:52px!important;
    flex:0 0 52px!important;font-size:20px!important;
  }
  :root.ept-v2-layout #mainView .chatheader #peerHeading {
    order:2!important;flex:1 1 0!important;min-width:0!important;text-align:right!important;
  }
  :root.ept-v2-layout #mainView .chatheader #groupDetails {order:3!important}
  :root.ept-v2-layout #mainView .chatheader #callAudio {order:4!important}
  :root.ept-v2-layout #mainView .chatheader #callVideo {order:5!important}
  :root.ept-v2-layout #mainView .chatheader #eptV2ChatMore {order:6!important}
  :root.ept-v2-layout #mainView .chatheader #peerEptId,
  :root.ept-v2-layout #mainView .chatheader #chatWallpaper {order:7!important}
  :root.ept-v2-layout #settingsPage > .settings-top {
    direction:rtl!important;display:flex!important;align-items:center!important;gap:9px!important;
  }
  :root.ept-v2-layout #settingsPage > .settings-top::before {order:0!important}
  :root.ept-v2-layout #settingsPage > .settings-top #settingsBack {
    order:1!important;width:42px!important;height:42px!important;flex:0 0 42px!important;
    margin:0!important;touch-action:manipulation!important;
  }
  :root.ept-v2-layout #settingsPage > .settings-top > div {order:2!important;min-width:0!important}
  :root.ept-v2-layout #settingsPage > .settings-top > .settings-top-spacer {order:3!important}
}
@media(max-width:390px){
  :root.ept-v2-layout #mainView .chatheader #peerAvatar {
    width:48px!important;height:48px!important;flex-basis:48px!important;
  }
  :root.ept-v2-layout #mainView .chatheader #back {
    width:38px!important;height:38px!important;min-width:38px!important;flex-basis:38px!important;
  }
  :root.ept-v2-layout #mainView .chatheader #peerName {font-size:13px!important}
}

/* V15: fold the inbox header in place instead of removing three DOM boxes.
   Keeping their boxes alive avoids a large synchronous layout jump on iOS. */
@media(max-width:800px){
  :root.ept-v2-layout #mainView.app .sidebar > .ept-inbox-scroll > .brand {
    max-height:calc(64px + env(safe-area-inset-top))!important;
    transition:max-height .18s ease,opacity .14s ease,padding .18s ease!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar > .ept-inbox-scroll > .search {
    max-height:64px!important;overflow:hidden!important;
    transition:max-height .18s ease,opacity .14s ease,margin .18s ease,padding .18s ease!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar > .ept-inbox-scroll > .story-shelf {
    max-height:115px!important;overflow:hidden!important;
    transition:max-height .18s ease,opacity .14s ease,margin .18s ease,padding .18s ease!important;
  }
  :root.ept-v2-layout #mainView.app.ept-inbox-collapsed .sidebar > .ept-inbox-scroll > :is(.brand,.story-shelf,.search) {
    display:flex!important;max-height:0!important;height:0!important;min-height:0!important;
    margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;
    border-top:0!important;border-bottom:0!important;opacity:0!important;
    pointer-events:none!important;overflow:hidden!important;
  }
  :root.ept-v2-layout #mainView.app.ept-inbox-collapsed .sidebar > .ept-inbox-scroll > .story-shelf {display:block!important}
}
@media(prefers-reduced-motion:reduce){
  :root.ept-v2-layout #mainView.app .sidebar > .ept-inbox-scroll > :is(.brand,.search,.story-shelf){transition:none!important}
}

/* V16: the sidebar must leave the viewport while a mobile chat is open.
   The calls hub belongs to that sidebar and replaces its chat-list content. */
@media(max-width:800px){
  :root.ept-v2-layout #mainView.app.open .sidebar {display:none!important}
  :root.ept-v2-layout #mainView.app.open .conversation {display:flex!important}
  :root.ept-v2-layout #mainView.app:not(.open) .conversation {display:none!important}
  :root.ept-v2-layout #mainView.app:not(.open) .sidebar {display:flex!important}
  :root.ept-v2-layout #mainView.app .sidebar.ept-v2-show-calls > .ept-inbox-scroll > :is(.search,.story-shelf,.conversation-filters,.listhead,#chatList,.ai-feature) {
    display:none!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar.ept-v2-show-calls #eptV2CallsHub:not(.hidden) {
    display:flex!important;flex:1 1 0!important;min-height:0!important;
    overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;
  }
}

/* V17: instant inbox state change avoids delayed height recalculation on iOS. */
@media(max-width:800px){
  :root.ept-v2-layout #mainView.app .sidebar > .ept-inbox-scroll > :is(.brand,.search,.story-shelf) {
    transition:none!important;
  }
}

/* Preserve the desktop two-panel layout while keeping the footer outside scrolling. */
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll {
  display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;
}
:root.ept-v2-layout #mainView .sidebar > .ept-inbox-scroll > #chatList {
  flex:1 1 0;min-height:0;overflow-y:auto;
}
/* V19: nav is a sibling of the native scroll pane, never position:fixed. */
@media(max-width:800px){
  :root.ept-v2-layout #mainView.app:not(.open) .sidebar {
    display:flex!important;flex-direction:column!important;
    overflow:hidden!important;height:100dvh!important;max-height:100dvh!important;
    padding-bottom:0!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar > .ept-inbox-scroll {
    display:flex!important;flex-direction:column!important;
    flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;
    overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar > .sidebarfoot {
    display:block!important;position:relative!important;inset:auto!important;
    width:100%!important;flex:0 0 auto!important;box-sizing:border-box!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar #chatList {
    overflow:visible!important;flex:1 0 auto!important;min-height:0!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar .ept-inbox-scroll > :is(.brand,.search,.story-shelf) {
    transition:none!important;max-height:none!important;
  }
}
/* Center tap pauses; edge taps retain previous/next story navigation. */
.story-viewer .story-viewer-nav{width:22%!important;top:14%!important;bottom:26%!important}
/* Reaction is circular; the count is a small badge. */
.story-viewer.ept-story-compact-social .story-comment-form #storyLike {
  position:relative!important;box-sizing:border-box!important;
  width:42px!important;min-width:42px!important;max-width:42px!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;
  padding:0!important;border-radius:50%!important;flex:0 0 42px!important;
  display:grid!important;place-items:center!important;line-height:1!important;
  font-size:24px!important;
}
.story-viewer.ept-story-compact-social .story-comment-form #storyLike span {
  position:absolute!important;bottom:-5px!important;right:-6px!important;
  display:grid!important;place-items:center!important;min-width:17px!important;
  height:17px!important;padding:0 3px!important;border-radius:10px!important;
  background:#177ee8!important;color:#fff!important;font-size:10px!important;
}

/* V20: the old inbox AI teaser must not intrude on the story row. AI remains in its tab. */
:root.ept-v2-layout #mainView .sidebar .ept-inbox-scroll > .ai-feature {display:none!important}
@media(max-width:800px){
  :root.ept-v2-layout #mainView.app .sidebar .ept-inbox-scroll > .story-shelf {
    display:block!important;box-sizing:border-box!important;flex:0 0 auto!important;
    height:auto!important;min-height:104px!important;max-height:none!important;
    overflow:visible!important;margin:5px 9px 10px!important;padding:6px 3px 10px!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar .story-list {
    display:flex!important;flex-flow:row nowrap!important;align-items:flex-start!important;
    height:auto!important;min-height:88px!important;max-height:none!important;
    overflow-x:auto!important;overflow-y:hidden!important;
  }
  :root.ept-v2-layout #mainView.app .sidebar .story-person {flex:0 0 65px!important}
}
.story-viewer .ept-story-resume {
  display:none;position:absolute;z-index:9;left:50%;top:47%;transform:translate(-50%,-50%);
  width:58px;height:58px;padding:0;border:1px solid #bdeaff88;border-radius:50%;
  background:#061932aa;color:white;font-size:25px;box-shadow:0 0 22px #157defaa;
  place-items:center;cursor:pointer;
}
.story-viewer.ept-story-paused .ept-story-resume {display:grid}
/* V23: rebuilt story surface. Scoped declarations override historical theme layers. */
html body.story-viewing{overflow:hidden!important}
html #storyViewer.story-viewer:not(.hidden){position:fixed!important;inset:0!important;z-index:99999!important;display:block!important;padding:0!important;margin:0!important;background:#000!important;color:#fff!important;touch-action:none!important}
html #storyViewer .story-viewer-content{position:relative!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;display:block!important;overflow:hidden!important;background:#000!important;color:#fff!important;box-shadow:none!important}
html #storyViewer .story-viewer-media{position:absolute!important;inset:0!important;z-index:1!important;background:#000!important;display:grid!important;place-items:center!important;touch-action:none!important;user-select:none!important;-webkit-user-select:none!important}
html #storyViewer .story-viewer-media img,html #storyViewer .story-viewer-media video{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:#000!important;pointer-events:none!important}
html #storyViewer .story-viewer-media::after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(to bottom,#0009,transparent 22%,transparent 66%,#000a)!important;pointer-events:none!important}
html #storyViewer .story-progress{position:absolute!important;z-index:12!important;top:calc(env(safe-area-inset-top,0px) + 9px)!important;left:9px!important;right:9px!important;height:3px!important;display:flex!important;gap:3px!important}
html #storyViewer .story-progress-segment{flex:1!important;background:#ffffff70!important;border-radius:8px!important;overflow:hidden!important}
html #storyViewer .story-progress-segment i{display:block!important;height:100%!important;background:#fff!important}
html #storyViewer .story-viewer-header{position:absolute!important;z-index:12!important;top:calc(env(safe-area-inset-top,0px) + 20px)!important;left:12px!important;right:12px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;padding:0!important;margin:0!important;min-height:44px!important;background:transparent!important;border:0!important;color:#fff!important;direction:rtl!important}
html #storyViewer .story-viewer-avatar{width:37px!important;height:37px!important;flex:0 0 37px!important;border:1px solid #ffffff9c!important;border-radius:50%!important;overflow:hidden!important;background:#123d68!important}
html #storyViewer .story-viewer-identity{flex:1!important;min-width:0!important;color:#fff!important;text-align:right!important;text-shadow:0 1px 4px #000!important}
html #storyViewer .story-viewer-identity strong{font-size:14px!important;color:#fff!important}
html #storyViewer .story-viewer-identity small{font-size:11px!important;color:#ffffffc9!important}
html #storyViewer #storyClose{position:relative!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;flex:none!important;margin:0!important;border:0!important;border-radius:50%!important;background:#0006!important;color:#fff!important;font-size:30px!important;line-height:35px!important;padding:0!important;box-shadow:none!important}
html #storyViewer .story-viewer-nav{position:absolute!important;z-index:3!important;top:calc(env(safe-area-inset-top,0px) + 77px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 85px)!important;width:18%!important;height:auto!important;border:0!important;background:transparent!important;opacity:0!important;padding:0!important}
html #storyViewer .story-viewer-prev{left:0!important;right:auto!important}html #storyViewer .story-viewer-next{right:0!important;left:auto!important}
html #storyViewer .story-viewer-caption{position:absolute!important;z-index:8!important;left:16px!important;right:16px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 78px)!important;margin:0!important;padding:0!important;max-height:25vh!important;min-height:0!important;overflow:auto!important;border:0!important;border-radius:0!important;background:transparent!important;color:#fff!important;font-size:15px!important;text-align:center!important;text-shadow:0 1px 5px #000!important;pointer-events:none!important}
html #storyViewer .story-viewer-caption:empty{display:none!important}
html #storyViewer .story-social{position:absolute!important;z-index:13!important;left:0!important;right:0!important;bottom:0!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;max-height:none!important;min-height:0!important;margin:0!important;padding:9px 13px calc(env(safe-area-inset-bottom,0px) + 12px)!important;border:0!important;background:linear-gradient(0deg,#000c,#0000)!important;color:#fff!important;backdrop-filter:none!important;direction:rtl!important}
html #storyViewer .story-comments-head{display:contents!important}html #storyViewer .story-comments-head strong{display:none!important}
html #storyViewer .story-social #storyLike{order:2!important;flex:none!important;width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#fff!important;font-size:30px!important;line-height:30px!important;box-shadow:none!important}
html #storyViewer .story-social #storyLike[aria-pressed=true]{color:#ff335e!important}html #storyViewer .story-social #storyLike span{font-size:9px!important;line-height:11px!important;color:#fff!important}
html #storyViewer .story-comment-form{order:1!important;flex:1!important;display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;margin:0!important}
html #storyViewer .story-comment-form input{flex:1!important;min-width:0!important;height:42px!important;border:1px solid #ffffffa8!important;border-radius:26px!important;background:#ffffff12!important;color:#fff!important;padding:0 14px!important;font-size:14px!important;box-shadow:none!important}
html #storyViewer .story-comment-form input::placeholder{color:#ffffffd0!important}
html #storyViewer .story-comment-form button{flex:0 0 42px!important;width:42px!important;height:42px!important;min-height:42px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#fff!important;font-size:23px!important;box-shadow:none!important}
html #storyViewer .story-comments-toggle{position:absolute!important;right:14px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 67px)!important;width:auto!important;min-width:0!important;height:28px!important;min-height:28px!important;padding:0 3px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#ffffffcf!important;font-size:12px!important;box-shadow:none!important}
html #storyViewer .story-comments{display:none!important;position:absolute!important;left:0!important;right:0!important;bottom:calc(env(safe-area-inset-bottom,0px) + 62px)!important;max-height:38dvh!important;min-height:0!important;overflow:auto!important;padding:18px 16px 34px!important;background:linear-gradient(0deg,#131313f5,#131313e9)!important;color:#fff!important;font-size:13px!important;border-radius:18px 18px 0 0!important}
html #storyViewer.story-comments-open .story-comments{display:block!important}
html #storyViewer .story-replay{display:none;position:absolute;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%);width:70px;height:70px;min-height:70px;padding:0;border:0;border-radius:50%;background:#0009;color:#fff;font-size:29px;place-items:center}
html #storyViewer.story-is-paused .story-replay{display:grid}
html #storyViewer.story-comments-open .story-replay{display:none}
html #storyViewer .story-comment strong{color:#fff!important}
/* iOS: holding the story pauses playback without selecting text or opening Look Up. */
html #storyViewer,html #storyViewer *:not(input):not(textarea){-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
html #storyViewer input,html #storyViewer textarea{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
html #storyViewer.story-finger-held :is(.story-progress,.story-viewer-header,.story-viewer-caption,.story-social,.story-replay){opacity:0!important;pointer-events:none!important}


/* /ept-inbox-contacts-v31.css?v=31 */
/* Keep the five-tab navigation below the inbox on phone screens. */
@media (max-width:800px) {
  :root.ept-v2-layout #mainView.app:not(.open) .sidebar {
    position:relative!important;display:flex!important;flex-direction:column!important;
    height:100dvh!important;overflow:hidden!important;
  }
  :root.ept-v2-layout #mainView.app:not(.open) .sidebar > .ept-inbox-scroll {
    order:0!important;flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;
  }
  :root.ept-v2-layout #mainView.app:not(.open) .sidebar > .sidebarfoot {
    order:1!important;position:relative!important;top:auto!important;bottom:auto!important;
    flex:0 0 auto!important;margin-top:auto!important;transform:none!important;
    padding-bottom:max(9px,env(safe-area-inset-bottom))!important;
  }
}
/* Direct chats show a familiar, searchable contact list with one-tap rows. */
#contactsModal[data-ept-contacts-mode="direct"] .contacts-dialog {
  width:min(100%,480px)!important;max-height:calc(100dvh - 24px)!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
#contactsModal[data-ept-contacts-mode="direct"] .contacts-head {flex:0 0 auto!important;}
#contactsModal[data-ept-contacts-mode="direct"] .contacts-head-copy p {font-size:12px!important;line-height:1.45!important;}
#contactsModal[data-ept-contacts-mode="direct"] .contact-import-actions {flex:0 0 auto!important;}
#contactsModal[data-ept-contacts-mode="direct"] .contacts-search-wrap {flex:0 0 auto!important;}
#contactsModal[data-ept-contacts-mode="direct"] .phone-contacts-list {flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;}
#contactsModal[data-ept-contacts-mode="direct"] .phone-contact-row {cursor:pointer!important;min-height:62px!important;}
#contactsModal[data-ept-contacts-mode="direct"] .phone-contact-row .contact-select,
#contactsModal[data-ept-contacts-mode="direct"] .contacts-actions,
#contactsModal[data-ept-contacts-mode="direct"] .contacts-kicker {display:none!important;}
#contactsModal[data-ept-contacts-mode="direct"] .contacts-head {
  padding:14px 15px!important;min-height:55px!important;align-items:center!important;
}
#contactsModal[data-ept-contacts-mode="direct"] .contacts-head h2 {font-size:18px!important;margin:0!important;}
#contactsModal[data-ept-contacts-mode="direct"] .contact-import-actions {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;padding:8px 14px!important;
}
#contactsModal[data-ept-contacts-mode="direct"] .contact-import-card {
  min-height:48px!important;padding:6px 8px!important;border-radius:12px!important;
}
#contactsModal[data-ept-contacts-mode="direct"] .contact-import-card small {display:none!important;}
#contactsModal[data-ept-contacts-mode="direct"] .contacts-search-wrap {margin:5px 14px 9px!important;}
#contactsModal[data-ept-contacts-mode="direct"] .phone-contact-row {
  padding:8px 14px!important;border-radius:0!important;gap:12px!important;
}
#contactsModal[data-ept-contacts-mode="direct"] .phone-contact-avatar {
  width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;
}
#contactsModal[data-ept-contacts-mode="direct"] .phone-contact-copy strong {font-size:14px!important;}
#contactsModal[data-ept-contacts-mode="direct"] .contact-status-badge {font-size:10px!important;}
#contactsModal[data-ept-contacts-mode="direct"] .contact-invite-action {display:none!important;}


/* /ept-contacts-v32.css?v=32 */
/* A compact new-chat sheet, with group selection as a separate state. */
#contactsModal .contacts-dialog{box-sizing:border-box!important;position:relative!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;width:min(100%,510px)!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8px)!important}
#contactsModal .contacts-head{flex:0 0 auto!important;align-items:center!important;padding:12px 16px!important}
#contactsModal .contacts-head-icon,#contactsModal .contacts-kicker{display:none!important}
#contactsModal .contacts-head h2{font-size:19px!important;margin:0!important}
#contactsModal .contacts-head p{font-size:11px!important;line-height:1.5!important;margin:2px 0 0!important}
#contactsModal .contacts-close-icon{order:-1;flex:0 0 36px!important}
#contactsModal .ept32-actions{display:grid;flex:0 0 auto;gap:0;margin:0 12px 5px;border-radius:16px;overflow:hidden;background:#ffffff0b}
#contactsModal .ept32-actions button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;min-height:46px;border:0;border-bottom:1px solid #90bce12b;background:transparent;color:inherit;text-align:right;font-size:14px;font-weight:600}
#contactsModal .ept32-actions button:last-child{border:0}
#contactsModal .ept32-actions span{display:grid;place-items:center;width:27px;height:27px;font-size:20px;color:#62c9fb}
#contactsModal[data-ept32-mode] .contact-import-actions:not(.ept32-expanded){display:none!important}
#contactsModal[data-ept32-mode] .contact-import-actions.ept32-expanded{display:grid!important;flex:0 0 auto!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:0 12px 6px!important}
#contactsModal .contact-import-card{min-height:46px!important;padding:5px 7px!important}
#contactsModal .contact-import-card small{display:none!important}
#contactsModal .contacts-search-wrap{flex:0 0 auto!important;margin:5px 12px 7px!important;min-height:44px!important}
#contactsModal .contacts-status{flex:0 0 auto!important;margin:0 12px 5px!important;padding:4px 8px!important;border:0!important;background:transparent!important}
#contactsModal .ept32-caption{flex:0 0 auto;margin:5px 17px;color:#9fc0df;font-size:12px;font-weight:700}
#contactsModal .phone-contacts-list{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;margin:0 10px!important;gap:0!important}
#contactsModal .phone-contact-row{cursor:pointer;min-height:57px!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:9px!important;border:0!important;border-bottom:1px solid #82bbde26!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:6px 8px!important}
#contactsModal .phone-contact-avatar{border-radius:50%!important;width:40px!important;height:40px!important}
#contactsModal .phone-contact-copy{grid-template-columns:1fr!important;gap:2px!important}
#contactsModal .phone-contact-copy strong{font-size:14px!important}
#contactsModal .phone-contact-copy small,#contactsModal .phone-contact-number{font-size:11px!important;color:#b4c9df!important}
#contactsModal .contact-status-badge{display:none!important}
#contactsModal .ept32-empty{margin:16px;text-align:center;color:#b9cfe1;font-size:12px}
#contactsModal .ept32-empty[hidden]{display:none!important}
#contactsModal .phone-contacts-list>.muted{display:none!important}
#contactsModal .ept32-entry{position:absolute;z-index:10;inset:10% 14px auto;background:#102a4c;border:1px solid #6fb9e9;border-radius:18px;padding:15px;box-shadow:0 15px 50px #0008;display:grid;gap:10px}
#contactsModal .ept32-entry.hidden{display:none!important}
#contactsModal .ept32-entry h3{margin:0;font-size:16px}
#contactsModal .ept32-entry label{display:grid;gap:4px;font-size:12px}
#contactsModal .ept32-entry input{width:100%;box-sizing:border-box;min-height:42px;padding:8px;border-radius:10px}
#contactsModal .ept32-entry>div{display:flex;gap:8px}
#contactsModal .ept32-entry button{padding:8px 12px;border-radius:9px}
#contactsModal[data-ept32-mode=direct] .contact-select,#contactsModal[data-ept32-mode=direct] .contacts-actions,#contactsModal[data-ept32-mode=direct] .contact-invite-action{display:none!important}
#contactsModal[data-ept32-mode=group] .ept32-actions button:not(#ept32Import){display:none!important}
#contactsModal[data-ept32-mode=group] .contacts-actions{display:flex!important;flex:0 0 auto!important;padding:7px 12px max(9px,env(safe-area-inset-bottom))!important}
#contactsModal[data-ept32-mode=group] .contacts-actions #contactsUseForChat,#contactsModal[data-ept32-mode=group] .contacts-actions #contactsCheckSelected,#contactsModal[data-ept32-mode=group] .contacts-actions #contactsClear{display:none!important}
#contactsModal[data-ept32-mode=group] .contacts-actions #contactsUseSelected{width:100%!important;min-height:44px!important;font-size:13px!important}
:root[data-theme=light] #contactsModal .ept32-actions{background:#ffffffa8;color:#173653}
:root[data-theme=light] #contactsModal .ept32-actions button{border-color:#cedce8;color:#173653}
:root[data-theme=light] #contactsModal .ept32-caption{color:#486986}
:root[data-theme=light] #contactsModal .phone-contact-row{border-bottom-color:#b6cede!important}
:root[data-theme=light] #contactsModal .ept32-entry{background:#e9f4fc;color:#173653}
@media(max-width:800px){
  #contactsModal.overlay{align-items:end!important;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)!important}
  #contactsModal .contacts-dialog{height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;min-height:0!important;border-radius:22px 22px 0 0!important;align-self:end!important}
  :root.ept-v2-layout #mainView.app:not(.open) .sidebar{position:relative!important;display:flex!important;flex-direction:column!important;height:100dvh!important;overflow:hidden!important}
  :root.ept-v2-layout #mainView.app:not(.open) .sidebar>.ept-inbox-scroll{order:0!important;flex:1 1 0!important;min-height:0!important;overflow-y:auto!important}
  :root.ept-v2-layout #mainView.app:not(.open) .sidebar>.sidebarfoot{order:1!important;position:relative!important;top:auto!important;bottom:auto!important;flex:0 0 auto!important;margin-top:auto!important;transform:none!important;padding-bottom:max(9px,env(safe-area-inset-bottom))!important}
}


/* /ept-profile-story-v33.css?v=33 */
#contactsModal .contacts-dialog{position:relative!important}
#ept33Profile{position:absolute;inset:0;z-index:30;overflow-y:auto;background:#0a2344;color:#f5faff;padding:calc(13px + env(safe-area-inset-top)) 18px 24px;text-align:center;box-sizing:border-box}
#ept33Profile.hidden{display:none!important}
#ept33Profile .ept33-profile-head{display:flex;align-items:center;gap:18px;text-align:start;font-size:16px}
#ept33Back{width:42px;height:42px;border-radius:50%;font-size:30px}
#ept33Avatar{width:112px;height:112px;display:grid;place-items:center;overflow:hidden;margin:20px auto 12px;border-radius:50%;background:#1590d5;font-size:45px}
#ept33Avatar img{width:100%;height:100%;object-fit:cover}
#ept33Profile h2{margin:6px 0;font-size:24px}
#ept33Number{margin:2px 0;color:#abc8e0;font-size:17px}
#ept33Membership{color:#b4d0e5;font-size:13px}
#ept33Profile .ept33-buttons{display:flex;gap:10px;margin-top:24px}
#ept33Profile .ept33-buttons button{flex:1;min-height:52px;border-radius:16px;background:#087dc6;color:white;font-size:15px}
#ept33Invite[hidden]{display:none!important}
#ept33DeleteStory{position:relative;z-index:12;min-height:36px;padding:6px 12px;margin-inline-start:6px;border:1px solid #ffbec8;border-radius:12px;background:#8c243b;color:white;font-size:12px}
#ept33DeleteStory[hidden]{display:none!important}
:root[data-theme=light] #ept33Profile{background:#f6f8fa;color:#14293a}


/* /ept-web-contacts-v36.css?v=36 */
#contactsModal .phone-contact-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#peerProfileModal.ept-story-only-profile #peerProfilePhone,#peerProfileModal.ept-story-only-profile #peerProfileQr,#peerProfileModal.ept-story-only-profile #peerProfileMuted,#peerProfileModal.ept-story-only-profile #peerProfileSend,#peerProfileModal.ept-story-only-profile #peerProfileTabs,#peerProfileModal.ept-story-only-profile #peerProfileItems{display:none!important}
#storyViewerHeader .story-viewer-identity{cursor:pointer}


/* /ept-chat-fix.css?v=1 */
#mainView #messages { direction:ltr !important; }
#mainView #messages > .msg { width:max-content; max-width:min(86%,650px); margin-left:0 !important; margin-right:auto !important; align-self:flex-start !important; direction:rtl; text-align:right; }
#mainView #messages > .msg.mine { margin-left:auto !important; margin-right:0 !important; align-self:flex-end !important; }
#mainView #messages > .msg .message-line,#mainView #messages > .msg .stamp { direction:rtl; }
#mainView #messages > .msg .bubble { overflow-wrap:anywhere; unicode-bidi:plaintext; }
#mainView #messages > .msg .audio-message,#mainView #messages > .msg .ept-audio-player { direction:ltr; }
#mainView #composer { position:relative; }
#mainView #composer .ept-voice-indicator { position:absolute; bottom:calc(100% + 9px); right:12px; display:none; align-items:center; gap:9px; padding:8px 14px; border-radius:18px; border:1px solid #ff9aab; color:white; background:#9b1839; box-shadow:0 8px 30px #0008; font-size:13px; z-index:50; direction:rtl; pointer-events:none; }
#mainView #composer .ept-voice-indicator.active {display:flex;}
#mainView #composer .ept-voice-indicator .dot {width:9px;height:9px;border-radius:50%;background:#fff;animation:ept-voice-blink 1s infinite;}
@keyframes ept-voice-blink {50% {opacity:.25}}
#mainView #composer #voiceHold.recording {background:#dc254b!important;color:#fff!important;border-color:#ffb0c0!important;box-shadow:0 0 0 6px #e5225055,0 0 20px #ff244c!important;}
:root.ept-v2-layout #mainView #messages .message-menu:not(.hidden) {
  left:auto!important;right:calc(10px + env(safe-area-inset-right))!important;
  bottom:calc(10px + env(safe-area-inset-bottom))!important;
  width:min(280px,calc(100vw - 20px))!important;max-width:280px!important;
  max-height:min(52dvh,440px)!important;margin:0!important;
  padding:5px!important;border-radius:15px!important;overflow-y:auto!important;
}
:root.ept-v2-layout #mainView #messages .message-menu:not(.hidden) button {
  min-height:34px!important;padding:6px 10px!important;font-size:12px!important;line-height:1.35!important;
}
:root.ept-v2-layout #mainView #messages .message-menu:not(.hidden) .reaction-row {gap:2px!important;padding:3px!important;}
.ept-r43-menu {width:min(270px,calc(100vw - 20px))!important;min-width:0!important;max-width:270px!important;max-height:min(52dvh,440px)!important;padding:6px!important;overflow-y:auto!important;}
.ept-r43-menu-head {padding:5px 8px!important;font-size:12px!important;}
.ept-r43-menu-content>button {min-height:34px!important;padding:6px 9px!important;font-size:12px!important;}
.ept-r43-menu .reaction-row button {min-height:30px!important;padding:3px!important;}


/* /ept-chat-layout-v2.css?v=2 */
/* Keep the chat viewport fixed; only the message list scrolls vertically. */
html,body,#mainView,#mainView #chatView{max-width:100%;overflow-x:hidden!important}
#mainView #chatView,#mainView #messages,#mainView #composer{box-sizing:border-box;min-width:0;max-width:100%}
#mainView #messages{direction:rtl!important;overflow-x:hidden!important;overscroll-behavior-x:none;touch-action:pan-y!important}
#mainView #messages>.msg,#mainView #messages>.msg.mine{
  box-sizing:border-box!important;direction:rtl!important;text-align:right!important;
  width:fit-content!important;max-width:min(88%,420px)!important;
  min-width:0!important;margin-left:0!important;margin-right:0!important;
  align-self:flex-start!important;overflow-wrap:anywhere!important;
}
#mainView #messages>.msg .bubble,#mainView #messages>.msg .message-line,#mainView #messages>.msg .stamp{
  text-align:right!important;direction:rtl!important;max-width:100%;min-width:0;
}
#mainView #messages .msg .audio-message.ept-audio-ready{max-width:min(242px,calc(100vw - 42px))!important}
#mainView #messages .msg.mine .audio-message.ept-audio-ready{
  background:linear-gradient(135deg,#168be9,#0757ae)!important;border-color:#88dcff!important;
}
#mainView #messages .msg:not(.mine) .audio-message.ept-audio-ready{
  background:linear-gradient(135deg,#28446a,#172d50)!important;border-color:#84a4c4!important;
}
#mainView #messages .msg:not(.mine) .ept-audio-play{background:#dfebf6!important;color:#2b547b!important}
#mainView #messages .msg:not(.mine) .ept-audio-wave i{background:#b6d4ef!important}
#mainView #messages .msg:not(.mine) .ept-audio-time{color:#e1edf8!important}
.ept-story-seen .story-ring{background:#718198!important}
.avatar.ept-story-seen.has-story-avatar::before{display:none!important}


/* /ept-chat-sides-v3.css?v=3 */
/* Bubble placement is independent of the writing direction. */
:root.ept-v2-layout #mainView #messages{
  direction:ltr!important;overflow-x:hidden!important;touch-action:pan-y!important;
}
:root.ept-v2-layout #mainView #messages>.msg{
  width:fit-content!important;max-width:min(88%,420px)!important;
  margin-left:0!important;margin-right:auto!important;
  align-self:flex-start!important;direction:rtl!important;text-align:right!important;
}
:root.ept-v2-layout #mainView #messages>.msg.mine{
  margin-left:auto!important;margin-right:0!important;
  align-self:flex-end!important;direction:rtl!important;text-align:right!important;
}
:root.ept-v2-layout #mainView #messages>.msg .bubble,
:root.ept-v2-layout #mainView #messages>.msg .message-line,
:root.ept-v2-layout #mainView #messages>.msg .stamp{
  direction:rtl!important;text-align:right!important;
}


/* /ept-chat-sides-v4.css?v=4 */
/* Correct the observed physical sides on iPhone PWA. */
:root.ept-v2-layout #mainView #messages>article.msg:not(.mine){
  align-self:flex-end!important;margin-left:auto!important;margin-right:0!important;
  direction:rtl!important;text-align:right!important;
}
:root.ept-v2-layout #mainView #messages>article.msg.mine{
  align-self:flex-start!important;margin-left:0!important;margin-right:auto!important;
  direction:rtl!important;text-align:right!important;
}


/* /ept-location-map-v5.css?v=5 */
#locationModal .map-wrap {position:relative; min-height:260px; height:min(42vh,400px); overflow:hidden; border-radius:16px; background:#173858}
#locationModal .map-preview {display:block; width:100%; height:100%; border:0; background:#173858}
#locationModal .map-tap {position:absolute; inset:0; width:100%; height:100%; background:transparent; border:0; cursor:crosshair; color:#fff; text-shadow:0 1px 5px #001; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:auto}
#locationModal .map-tap span {font-size:32px; line-height:1}
#locationModal .map-tap small {background:#071b33c9; border-radius:12px; padding:5px 10px}
#locationModal .ept-location-external {display:inline-block; margin:8px 0 12px; color:#87ddff; text-decoration:underline}
#locationModal .location-dialog {max-height:90dvh; overflow-y:auto; overscroll-behavior:contain}
#locationModal .location-fields input {max-width:100%; box-sizing:border-box}


/* /ept-theme-contacts-r45.css?v=45 */
/* Effective light/dark theme is set by ept-theme-contacts-r45.js. */
:root[data-theme="light"] {color-scheme:light;--text:#172b43;--muted:#53647a;--border:#c6d2e2;--input:#fff}
:root[data-theme="dark"] {color-scheme:dark}
:root[data-theme="light"] .sidebar,:root[data-theme="light"] .conversation,:root[data-theme="light"] .dialog,:root[data-theme="light"] .settings-page {color:#172b43}
:root[data-theme="light"] :is(.muted,.settings-help,.form-info,.contacts-status,.ept32-empty,.ept32-caption,.phone-contact-copy small,.phone-contact-number,.chatrow small,.chatperson small,.stamp,.dialog p) {color:#53647a!important}
:root[data-theme="light"] :is(input,textarea,select)::placeholder {color:#65758a!important;opacity:1}
:root[data-theme="light"] :is(.phone-contact-row,.phone-contact-copy strong,.contacts-head h2,.ept32-actions button) {color:#172b43!important}
#contactsModal .contacts-dialog{position:relative!important}
#contactsModal .phone-contacts-list{padding-inline-end:26px!important}
#contactsModal .phone-contact-row{min-height:68px!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:11px!important;padding:8px 10px!important}
#contactsModal .phone-contact-avatar{width:50px!important;height:50px!important;min-width:50px!important;font-size:20px!important}
#contactsModal .phone-contact-copy strong{font-size:16px!important;font-weight:700!important}
#contactsModal .phone-contact-copy small,#contactsModal .phone-contact-number{font-size:12px!important}
#contactsModal .ept45-index{position:absolute;inset-inline-end:3px;top:39%;bottom:12%;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:1px;max-height:50%;overflow-y:auto;scrollbar-width:none}
#contactsModal .ept45-index[hidden]{display:none}
#contactsModal .ept45-index button{background:transparent;color:#2884df;font-size:11px;font-weight:700;min-width:22px;min-height:18px;padding:0}
:root[data-theme="light"] #contactsModal .contacts-dialog{background:#f9fbff!important;color:#172b43!important;border-color:#d9e2ed!important}
:root[data-theme="light"] #contactsModal .phone-contacts-list{background:#fff!important;border-radius:14px}
:root[data-theme="light"] #contactsModal .phone-contact-row{border-bottom:1px solid #d5deea!important}
:root[data-theme="light"] #contactsModal .contacts-search-wrap{background:#eef2f7!important;color:#53647a!important}
:root[data-theme="light"] #contactsModal .contacts-search-wrap input{background:transparent!important;color:#172b43!important}
:root[data-theme="light"] #contactsModal .ept32-actions{background:#fff!important;color:#172b43!important}
@media(max-width:800px){#contactsModal .ept45-index{top:38%;bottom:14%}}


/* /ept-light-contacts-r46.css?v=46 */
/* Bright theme: keep text legible across inbox, contacts, chat and settings. */
:root[data-theme="light"]{--page:#f6f8fc;--panel:#fff;--soft:#f0f4fa;--input:#fff;--border:#d4dde9;--text:#14243b;--muted:#3f526a;--bubble:#fff;--mine:#e4f0ff;--chatbg:#f5f8fd;color-scheme:light}
:root[data-theme="light"] body,:root[data-theme="light"] #mainView,:root[data-theme="light"] .app{background:#f6f8fc!important;color:#14243b!important}
:root[data-theme="light"] :is(.sidebar,.conversation,.chatheader,.composer,.sidebarfoot,.ept-inbox-scroll,.chatlist){background:#fff!important;color:#14243b!important;border-color:#d4dde9!important}
:root[data-theme="light"] :is(.chatview,.messages){background-color:#f5f8fd!important;color:#14243b!important}
:root[data-theme="light"] :is(.dialog,.settings-page,#settingsPage,.overlay .dialog){color:#14243b!important}
:root[data-theme="light"] :is(.chatrow,.chatrow strong,.chatperson strong,.listhead,.settings-row,.settings-row label,.dialog h2,.phone-contact-copy strong){color:#14243b!important;-webkit-text-fill-color:#14243b!important;text-shadow:none!important}
:root[data-theme="light"] :is(.muted,.chatrow small,.chatperson small,.stamp,.dialog p,.settings-help,.form-info,.contacts-status,.phone-contact-copy small,.phone-contact-number){color:#40546b!important;-webkit-text-fill-color:#40546b!important;opacity:1!important;text-shadow:none!important}
:root[data-theme="light"] :is(input,textarea,select){color:#14243b!important;caret-color:#14243b!important}
:root[data-theme="light"] :is(input,textarea,select)::placeholder{color:#52657b!important;opacity:1!important}
/* Contact sheet: bright throughout, including its old dark header. */
:root[data-theme="light"] #contactsModal .contacts-dialog{background:#fff!important;color:#14243b!important;border:1px solid #d8e2ef!important;box-shadow:0 18px 60px #14243b28!important}
:root[data-theme="light"] #contactsModal .contacts-head{background:#fff!important;background-image:none!important;color:#14243b!important;border-bottom:1px solid #d9e1eb!important}
:root[data-theme="light"] #contactsModal .contacts-head :is(h2,p,span){color:#14243b!important;-webkit-text-fill-color:#14243b!important;opacity:1!important;text-shadow:none!important}
:root[data-theme="light"] #contactsModal .contacts-head p{color:#40546b!important;-webkit-text-fill-color:#40546b!important}
:root[data-theme="light"] #contactsModal .contacts-close-icon{background:#eef3f9!important;color:#23364f!important}
:root[data-theme="light"] #contactsModal :is(.contact-import-actions,.ept32-actions,.contacts-search-wrap,.contacts-status,.phone-contacts-list,.contacts-actions){background:#fff!important;background-image:none!important;color:#14243b!important}
:root[data-theme="light"] #contactsModal .ept32-actions button{color:#14243b!important;border-bottom:1px solid #d9e1eb!important}
:root[data-theme="light"] #contactsModal .contacts-search-wrap{background:#f1f4f8!important;border:1px solid #c5d3e2!important}
:root[data-theme="light"] #contactsModal .contacts-search-wrap input{background:transparent!important;border:0!important;color:#14243b!important}
:root[data-theme="light"] #contactsModal .phone-contacts-list{padding-inline-end:26px!important}
:root[data-theme="light"] #contactsModal .phone-contact-row{background:#fff!important;border-bottom:1px solid #d5deea!important;color:#14243b!important}
:root[data-theme="light"] #contactsModal .phone-contact-copy strong{color:#14243b!important;-webkit-text-fill-color:#14243b!important;font-size:16px!important}
:root[data-theme="light"] #contactsModal :is(.phone-contact-copy small,.phone-contact-number){color:#3d536b!important;-webkit-text-fill-color:#3d536b!important;opacity:1!important;background:transparent!important;text-decoration:none!important;font-size:13px!important;font-weight:500!important}
:root[data-theme="light"] #contactsModal .contacts-status{color:#40546b!important;-webkit-text-fill-color:#40546b!important}
#contactsModal .phone-contact-avatar:not(:has(img)){color:#fff!important;-webkit-text-fill-color:#fff!important;background:linear-gradient(145deg,#63c6e9,#1676c9)!important;border:2px solid #a6def5!important;box-shadow:0 3px 10px #164b8826!important}
#contactsModal .phone-contact-row:nth-child(6n+2) .phone-contact-avatar:not(:has(img)){background:linear-gradient(145deg,#d68ceb,#905bd5)!important;border-color:#e7bbf3!important}
#contactsModal .phone-contact-row:nth-child(6n+3) .phone-contact-avatar:not(:has(img)){background:linear-gradient(145deg,#f7b86a,#e17b4e)!important;border-color:#f9d29e!important}
#contactsModal .phone-contact-row:nth-child(6n+4) .phone-contact-avatar:not(:has(img)){background:linear-gradient(145deg,#7bcfac,#279b86)!important;border-color:#a7e5ce!important}
#contactsModal .phone-contact-row:nth-child(6n+5) .phone-contact-avatar:not(:has(img)){background:linear-gradient(145deg,#7ea9ee,#4a68c9)!important;border-color:#b6cff7!important}
#contactsModal .phone-contact-row:nth-child(6n+6) .phone-contact-avatar:not(:has(img)){background:linear-gradient(145deg,#ef9bad,#d85d86)!important;border-color:#f4bfd0!important}


/* /ept-light-safe-r51.css?v=51 */
/* Scoped light theme: preserve branding, profile identity, dark mode and media controls. */
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar > .ept-inbox-scroll,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .ept-v2-calls-hub{background:#f7f9fc!important;background-image:none!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar .ept-v2-hub-head{background:#fff!important;background-image:none!important;border-color:#c9d6e4!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar .ept-v2-hub-head :is(strong,small),
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebar .ept-v2-empty{color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2QuickBar{background:#fff!important;background-image:none!important;color:#17283e!important;border-color:#c9d6e4!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2QuickBar > button{background:#edf5fd!important;background-image:none!important;color:#17283e!important;border-color:#bad0e5!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2QuickBar > button :is(small,span,.quick-action-label){color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab:not(.active):not(.ept-bars-create){background:#fff!important;background-image:none!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .sidebarfoot #eptV2Nav > .nav-tab:not(.active):not(.ept-bars-create) small{color:#17283e!important;-webkit-text-fill-color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage:not(.hidden),
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage > header{background:#f7f9fc!important;background-image:none!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage > header :is(h1,h2,strong,small,span){color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ai-free-card{background:#fff!important;background-image:none!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #aiRegistrationPage .ai-free-head{background:#f3f8fd!important;background-image:none!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .audio-message.ept-audio-ready,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .call-timeline,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .file-attachment,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .media-holder:has(:is(.chat-image,.chat-video)){background:#e8f3ff!important;background-image:none!important;border-color:#a5c4e0!important;box-shadow:0 3px 12px #1c38501f!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg :is(.audio-message,.call-timeline,.file-attachment,.media-holder) :is(.media-label,.ept-audio-time,.call-log-copy strong,.call-log-copy small,.file-attachment-open span:last-child){color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important;text-shadow:none!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .ept-audio-wave i{background:#267db6!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .ept-audio-play{background:#fff!important;color:#165786!important}
:root:is([data-theme=light],.ept-light-active) .eptSupportPanel{background:#fff!important;background-image:none!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active) .eptSupportMessages{background:#f4f8fd!important}
:root:is([data-theme=light],.ept-light-active) .eptSupportBubble{background:#fff!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active) .eptSupportBubble.mine{background:#e3f0ff!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active) .eptSupportPanel :is(p,small,h2,strong){color:#17283e!important;-webkit-text-fill-color:#17283e!important}

:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .conversation > .chatheader{background:#fff!important;background-image:none!important;border-color:#c9d6e4!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .chatheader #peerName{color:#17283e!important;-webkit-text-fill-color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .chatheader #peerStatus{color:#354b63!important;-webkit-text-fill-color:#354b63!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #composer{background:#fff!important;background-image:none!important;border-color:#c9d6e4!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #composer #text{background:#f2f6fb!important;color:#17283e!important;border-color:#c9d6e4!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .dialog{background:#fff!important;background-image:none!important;color:#17283e!important;border-color:#c9d6e4!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal :is(.peer-profile-info-row,.peer-profile-tabs,.peer-profile-item,.peer-profile-media-item){background:#f2f7fc!important;background-image:none!important;color:#17283e!important;border-color:#c9d6e4!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-info-row :is(strong,small),
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal :is(h2,h3,p,.peer-profile-tabs button:not(.active)){color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-media-item :is(small,span){color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important}

/* The profile uses profile-media-item (without the peer prefix). */
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-top,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-tabs,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-hero,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-items{background:#fff!important;background-image:none!important;color:#17283e!important;border-color:#c9d6e4!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-top strong,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-hero :is(h2,p),
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-info-row :is(strong,small,span:nth-child(2)),
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .profile-media-item small{color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal :is(.profile-media-item,.profile-group-item,.profile-audio-item){background:#edf5fc!important;background-image:none!important;border-color:#aec8df!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-send{background:#e7f3ff!important;background-image:none!important;color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #peerProfileModal .peer-profile-tabs button:not(.active){color:#17283e!important;-webkit-text-fill-color:#17283e!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView .conversation > .chatheader .chatperson :is(strong,small){color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .media-holder:has(:is(.chat-image,.chat-video)) .media-label,
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .audio-message .media-label{color:#17283e!important;-webkit-text-fill-color:#17283e!important;opacity:1!important}
:root:is([data-theme=light],.ept-light-active).ept-v2-layout #mainView #messages .msg .chat-video{background:#e8f3ff!important}


/* /ept-chat-fa-type-v1.css?v=1 */
/* EPT · iOS WhatsApp-inspired Persian chat typography. Chat-only scope.
   Preserves existing alignment, bubble geometry, voice/media controls and app themes. */
:root #mainView #messages > article.msg,
:root #mainView #messages .message-bubble,
:root #mainView #messages .bubble-text,
:root #mainView #messages .message-text {
  font-family:-apple-system,BlinkMacSystemFont,"SF Arabic","SF Pro Text","Vazirmatn","Noto Sans Arabic",sans-serif!important;
  font-size:17px!important;
  font-weight:400!important;
  line-height:1.64!important;
  letter-spacing:0!important;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:anywhere;
  text-rendering:optimizeLegibility;
}
:root #mainView #messages .msg time,
:root #mainView #messages .msg .msg-time,
:root #mainView #messages .msg .message-time,
:root #mainView #messages .msg .timestamp,
:root #mainView #messages .msg .msg-meta,
:root #mainView #messages .msg .message-meta {
  font-size:11.5px!important;
  line-height:1.35!important;
  letter-spacing:0!important;
}
:root #mainView #composer #text {
  font-family:-apple-system,BlinkMacSystemFont,"SF Arabic","SF Pro Text","Vazirmatn","Noto Sans Arabic",sans-serif!important;
  font-size:17px!important;
  line-height:1.5!important;
  letter-spacing:0!important;
}
@media(max-width:480px){
  :root #mainView #messages > article.msg,
  :root #mainView #messages .message-bubble,
  :root #mainView #messages .bubble-text,
  :root #mainView #messages .message-text {font-size:17px!important;}
}


/* /ept-pdf-download-v58.css?v=5.8.0 */
/* PDF-only overlay. No changes to regular EPT messages or calls. */
#fileViewer.ept-pdf-handoff-mode{position:fixed!important;inset:0!important;z-index:95000!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#0008!important;padding:12px!important;box-sizing:border-box!important;}
#fileViewer.ept-pdf-handoff-mode>:not(#fileViewerBody){display:none!important;}
#fileViewer.ept-pdf-handoff-mode #fileViewerBody{width:100%!important;height:100%!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;padding:0!important;margin:0!important;overflow:visible!important;}
.ept-pdf-handoff-card{position:relative;width:min(92vw,370px);max-height:75dvh;box-sizing:border-box;overflow:auto;padding:34px 20px 22px;border-radius:17px;background:#fff;color:#151515;text-align:center;box-shadow:0 10px 36px #0005;font:500 16px/1.65 system-ui,Tahoma,sans-serif;}
.ept-pdf-handoff-title{font-size:19px;font-weight:700;}.ept-pdf-handoff-name{font-size:13px;color:#555;overflow-wrap:anywhere;margin:6px 0 14px;}
.ept-pdf-handoff-status{min-height:25px;font-size:13px;color:#555;margin-bottom:14px;}
.ept-pdf-handoff-card button{cursor:pointer;touch-action:manipulation;}
.ept-pdf-handoff-primary,.ept-pdf-handoff-secondary{width:100%;border:0;border-radius:10px;padding:12px 9px;font:700 16px/1.4 system-ui,Tahoma,sans-serif;}
.ept-pdf-handoff-primary{background:#0679c9;color:#fff;}.ept-pdf-handoff-secondary{background:#eef2f8;color:#12629e;margin-top:9px;}
.ept-pdf-handoff-primary:disabled{opacity:.48;cursor:progress;}.ept-pdf-handoff-secondary[hidden]{display:none!important;}
.ept-pdf-handoff-close{position:absolute;top:5px;left:10px;font-size:26px;line-height:1;border:0;background:transparent;color:#666;padding:6px;}
#eptJumpToLatestV56{position:fixed!important;z-index:9300!important;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #82d6ff;border-radius:50%;background:#0869bf;color:#fff;box-shadow:0 4px 18px #001e4280;cursor:pointer;touch-action:manipulation;}
#eptJumpToLatestV56[hidden]{display:none!important;}


/* /ept-forward-picker-v6.css?v=6.0.0 */
/* EPT Forward Picker 6.0 — layout isolated to forward UI. */
#forwardModal{z-index:11000;align-items:center;justify-content:center}
#forwardModal .ept-forward-dialog{box-sizing:border-box;width:min(92vw,460px);max-width:460px;max-height:min(84dvh,740px);display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#1a1a1a;border:1px solid #d6e0e8;border-radius:22px;padding:0;box-shadow:0 20px 65px #0006;direction:rtl}
#forwardModal .ept-forward-header{padding:18px 20px 8px;display:flex;gap:12px;align-items:center;justify-content:space-between}
#forwardModal .ept-forward-header h2{color:#222;margin:0;font-size:20px;line-height:1.4;font-weight:750}
#forwardModal .ept-forward-header #closeForward{border:0;background:transparent;min-width:44px;min-height:44px;font-size:28px;line-height:1;color:#616773;cursor:pointer;padding:0}
#forwardModal .ept-forward-search{margin:8px 18px 10px;padding:0 12px;height:48px;display:flex;align-items:center;border:1px solid #dce3ef;border-radius:15px;background:#f5f7fb;color:#435061}
#forwardModal .ept-forward-search input{border:0;box-shadow:none;background:transparent;color:#1b2431;outline:0;min-width:0;width:100%;height:44px;font-size:17px;direction:rtl}
#forwardModal #forwardPreview{margin:0 19px 8px;line-height:1.45;font-size:13px;color:#69717e;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#forwardModal #forwardList{display:block;gap:0;padding:0 10px 10px;overflow-y:auto;overscroll-behavior:contain;max-height:58dvh;flex:1;min-height:90px}
#forwardModal .ept-forward-section-title{font-size:12px;color:#707885;padding:12px 11px 6px;text-align:right}
#forwardModal .ept-forward-person{box-sizing:border-box;display:flex;align-items:center;gap:13px;padding:8px 9px;width:100%;min-height:70px;background:transparent;border:0;border-radius:12px;text-align:right;cursor:pointer;color:#18212e;box-shadow:none}
#forwardModal .ept-forward-person:active,#forwardModal .ept-forward-person:hover,#forwardModal .ept-forward-person:focus-visible{background:#eef4ff}
#forwardModal .ept-forward-avatar{display:flex;align-items:center;justify-content:center;flex:none;border-radius:50%;width:51px;height:51px;overflow:hidden;background:linear-gradient(135deg,#10abe6,#4673c7);color:white;font-size:22px}
#forwardModal .ept-forward-avatar img{height:100%;width:100%;object-fit:cover}
#forwardModal .ept-forward-name{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
#forwardModal .ept-forward-name strong{font-size:17px;font-weight:700;color:#131a25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#forwardModal .ept-forward-name small{font-size:12px;color:#74808d}
#forwardModal .ept-forward-chevron{font-size:30px;color:#adb4c0}
#forwardModal #forwardStatus{font-size:13px;color:#a43636;text-align:center;min-height:18px;padding:0 15px 8px}
#forwardModal #forwardOpenById{background:#eaf4ff;border:0;color:#0763a6;border-radius:11px;padding:12px 14px;margin:3px 15px 12px;font-size:14px}
#forwardModal .ept-forward-no-results{text-align:center;color:#78818e;padding:18px 6px}
.ept-forward-confirm{position:fixed;z-index:10500;inset:auto 12px calc(env(safe-area-inset-bottom,0px) + 82px) 12px;background:#fff;border:1px solid #b3c5de;box-shadow:0 12px 35px #0005;border-radius:18px;padding:14px 16px;color:#182438;direction:rtl;max-width:440px;margin-inline:auto}
.ept-forward-confirm-title{font-size:17px;font-weight:750}.ept-forward-confirm-preview{margin-top:6px;color:#627286;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ept-forward-confirm-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}
.ept-forward-confirm-actions button{border-radius:10px;padding:10px 16px;font-size:15px;min-height:42px}
#eptForwardSend{background:#076dc1;color:white;border:0}#eptForwardCancel{background:#f1f3f7;color:#394553;border:0}
.ept-forward-confirm.hidden{display:none!important}
@media (max-width:420px){#forwardModal .ept-forward-dialog{width:calc(100vw - 24px);max-height:84dvh}#forwardModal #forwardList{max-height:55dvh}}


/* /ept-message-menu-compact-v61.css?v=6.1.1 */
/* EPT v6.1: compact message action menus only. No chat, viewer, or forward-picker layout changes. */
/* iOS WebKit native selection/callout must not compete with the EPT long-press menu. */
#messages .msg .bubble,
#messages .msg .bubble *,
#messages .msg .stamp,
#messages .msg .message-menu,
#messages .msg .message-menu *,
.ept-r43-menu,
.ept-r43-menu * {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
/* Preserve native controls that require selection/editing. */
#messages .msg input,
#messages .msg textarea,
#messages .msg [contenteditable="true"],
#messages .msg [role="textbox"] {
  -webkit-touch-callout: default !important;
  -webkit-user-select: text !important;
  user-select: text !important;
}
/* Legacy per-message action menu, anchored to the visible viewport. */
#messages .msg .message-menu:not(.hidden) {
  box-sizing: border-box !important;
  position: fixed !important;
  inset: auto max(10px,env(safe-area-inset-right,0px)) calc(78px + env(safe-area-inset-bottom,0px)) auto !important;
  width: min(85vw,340px) !important;
  min-width: 0 !important;
  max-width: min(85vw,340px) !important;
  max-height: min(55dvh,450px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  padding: 7px !important;
  border-radius: 16px !important;
  z-index: 2147483000 !important;
  touch-action: pan-y;
}
/* R43 portal-style action menu. This may be used instead of legacy .message-menu. */
.ept-r43-menu:not([hidden]):not(.hidden) {
  box-sizing: border-box !important;
  position: fixed !important;
  inset: auto max(10px,env(safe-area-inset-right,0px)) calc(78px + env(safe-area-inset-bottom,0px)) auto !important;
  width: min(85vw,340px) !important;
  min-width: 0 !important;
  max-width: min(85vw,340px) !important;
  max-height: min(55dvh,450px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  padding: 7px !important;
  border-radius: 16px !important;
  margin: 0 !important;
  z-index: 2147483000 !important;
  touch-action: pan-y;
}
#messages .msg .message-menu > button,
#messages .msg .message-menu .ept-r43-menu-content > button,
.ept-r43-menu .ept-r43-menu-content > button {
  box-sizing: border-box !important;
  min-height: 38px !important;
  padding: 7px 10px !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  border-radius: 9px !important;
  margin: 0 !important;
  touch-action: manipulation;
}
#messages .msg .message-menu .reaction-row,
.ept-r43-menu .reaction-row {
  gap: 2px !important;
  padding: 4px 1px !important;
  margin: 0 0 5px !important;
}
#messages .msg .message-menu .reaction-row button,
.ept-r43-menu .reaction-row button {
  font-size: 18px !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 3px 1px !important;
  touch-action: manipulation;
}
.ept-r43-menu .ept-r43-menu-head {
  padding: 7px 10px !important;
  margin-bottom: 2px !important;
  font-size: 12px !important;
}
@media (max-width:430px) {
  #messages .msg .message-menu:not(.hidden),
  .ept-r43-menu:not([hidden]):not(.hidden) {
    max-height: min(53dvh,410px) !important;
    width: min(86vw,332px) !important;
  }
}
@media (max-height:600px) {
  #messages .msg .message-menu:not(.hidden),
  .ept-r43-menu:not([hidden]):not(.hidden) {
    max-height: 48dvh !important;
    bottom: calc(64px + env(safe-area-inset-bottom,0px)) !important;
  }
}


/* /ept-forward-recipients-v62.css?v=6.2.0 */
/* Scopes all changes to existing EPT forwarding selector. */
#forwardModal .ept-forward-dialog{min-height:min(65dvh,560px)!important}
#forwardModal #forwardList{display:block!important;flex:1 1 auto!important;min-height:190px!important;height:min(48dvh,435px);overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch}
#forwardModal #forwardPreview{color:#52647b!important;background:#f1f6fb;border-radius:9px;margin:0 16px 5px;padding:7px 10px;line-height:1.6;font-size:12px}
#forwardModal #forwardStatus{color:#53687f;padding:6px 12px 12px}
#forwardModal .ept-forward-retry{display:block;width:calc(100% - 20px);margin:8px 10px;padding:12px;border-radius:12px;background:#eaf4ff;border:1px solid #a0ccf4;color:#155e92;font-size:14px}
#forwardModal .ept-forward-no-results{line-height:1.8!important;padding:19px 12px 8px!important;color:#566678!important}
#forwardModal .ept-forward-person{min-height:66px!important;touch-action:manipulation}
#forwardModal .ept-forward-person:focus-visible{outline:2px solid #2c87d7}
@media(max-height:650px){#forwardModal .ept-forward-dialog{min-height:min(60dvh,460px)!important}#forwardModal #forwardList{min-height:140px!important;height:38dvh}}


/* /ept-forward-menu-compact-v63.css?v=6.3.0 */
/* EPT 6.3: only the recipient picker and message-action menu; all other UI untouched. */
#forwardModal .ept-forward-dialog {
  box-sizing:border-box!important;
  width:min(90vw,420px)!important;
  min-height:0!important;
  height:auto!important;
  max-height:min(62dvh,535px)!important;
  overflow:hidden!important;
  border-radius:18px!important;
}
#forwardModal .ept-forward-header {padding:10px 14px 4px!important;min-height:44px!important}
#forwardModal .ept-forward-header h2 {font-size:18px!important;line-height:1.3!important}
#forwardModal .ept-forward-header #closeForward {min-height:36px!important;min-width:36px!important;font-size:25px!important}
#forwardModal .ept-forward-search {margin:6px 13px 6px!important;height:42px!important;min-height:42px!important;padding:0 8px!important}
#forwardModal .ept-forward-search input {height:38px!important;font-size:15px!important}
#forwardModal #forwardPreview {font-size:12px!important;margin:2px 13px 5px!important;padding:5px 8px!important;line-height:1.5!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#forwardModal #forwardList {
  box-sizing:border-box!important;
  flex:0 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:min(32dvh,300px)!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  padding:1px 9px 4px!important;
}
#forwardModal #forwardList .ept-forward-person {min-height:52px!important;padding:5px 7px!important;gap:9px!important}
#forwardModal #forwardList .ept-forward-avatar {width:40px!important;height:40px!important;min-width:40px!important;font-size:17px!important}
#forwardModal #forwardList .ept-forward-name strong {font-size:15px!important}
#forwardModal #forwardList .ept-forward-name small {font-size:11px!important}
#forwardModal #forwardList .ept-forward-chevron {font-size:22px!important}
#forwardModal .ept-forward-section-title {font-size:11px!important;padding:7px 9px 3px!important}
#forwardModal .ept-forward-no-results {padding:10px!important;margin:0!important;font-size:13px!important}
#forwardModal .ept-forward-retry {margin:6px 8px!important;padding:9px!important;min-height:40px!important;width:calc(100% - 16px)!important}
#forwardModal #forwardStatus {min-height:0!important;margin:0!important;padding:4px 10px 8px!important;font-size:12px!important}
#forwardModal #forwardOpenById:not(.hidden){min-height:38px!important;padding:7px 10px!important;margin:4px 12px 8px!important}
/* Legacy menu and the EPT R43 portal menu share one compact size. */
#messages .msg .message-menu:not(.hidden),
.ept-r43-menu:not(.hidden):not([hidden]) {
  box-sizing:border-box!important;
  position:fixed!important;
  inset:auto 10px calc(78px + env(safe-area-inset-bottom,0px)) auto!important;
  width:min(78vw,305px)!important;
  min-width:0!important;
  max-width:min(78vw,305px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:min(44dvh,405px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain!important;
  padding:5px!important;
  margin:0!important;
  border-radius:15px!important;
  z-index:2147483000!important;
}
#messages .msg .message-menu > button,
#messages .msg .message-menu .ept-r43-menu-content > button,
.ept-r43-menu .ept-r43-menu-content > button,
.ept-r43-menu button[data-action] {
  box-sizing:border-box!important;
  min-height:35px!important;
  padding:5px 8px!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1.35!important;
  border-radius:8px!important;
}
#messages .msg .message-menu .reaction-row,
.ept-r43-menu .reaction-row {padding:2px 0 4px!important;margin:0 0 3px!important;gap:1px!important}
#messages .msg .message-menu .reaction-row button,
.ept-r43-menu .reaction-row button {font-size:17px!important;min-height:30px!important;padding:1px!important}
.ept-r43-menu .ept-r43-menu-head {padding:5px 8px!important;font-size:12px!important;min-height:25px!important}
@media (max-height:680px) {
  #forwardModal .ept-forward-dialog {max-height:72dvh!important}
  #forwardModal #forwardList {max-height:32dvh!important}
  #messages .msg .message-menu:not(.hidden),.ept-r43-menu:not(.hidden):not([hidden]) {max-height:48dvh!important}
}


/* /ept-message-menu-size-v64.css?v=6.4.0 */
/* EPT V6.4 - size ONLY for the message long-press action menu.
   No rules for forwardModal, chat content, voice, media, PDF or other dialogs. */
:where(#messages .msg .message-menu:not(.hidden),.ept-r43-menu:not(.hidden):not([hidden])) {
  box-sizing:border-box!important;
  width:min(78vw,310px)!important;
  min-width:0!important;
  max-width:min(78vw,310px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:min(46dvh,370px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain!important;
  padding:5px!important;
  border-radius:14px!important;
}
/* Runtime tag catches menu implementations with other class names. */
html body [data-ept-message-size-v64][data-ept-message-size-v64] {
  box-sizing:border-box!important;
  width:min(78vw,310px)!important;
  min-width:0!important;
  max-width:min(78vw,310px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:min(46dvh,370px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain!important;
  padding:5px!important;
  border-radius:14px!important;
}
html body [data-ept-message-size-v64] :is(button,[role="menuitem"],[data-action]) {
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  min-height:38px!important;
  height:auto!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding:6px 9px!important;
  font-size:14px!important;
  line-height:1.35!important;
  border-radius:8px!important;
}
html body [data-ept-message-size-v64] :is(.reaction-row,.ept-r43-menu-reactions,[class*="reaction-row"]) {
  min-height:0!important;
  margin:0 0 3px!important;
  padding:2px 1px 4px!important;
  gap:2px!important;
}
html body [data-ept-message-size-v64] :is(.reaction-row,.ept-r43-menu-reactions,[class*="reaction-row"]) button {
  min-height:29px!important;
  padding:1px 2px!important;
  font-size:18px!important;
}
html body [data-ept-message-size-v64] :is(.ept-r43-menu-head,[class*="menu-head"],[class*="menu-title"]) {
  min-height:0!important;
  padding:5px 8px!important;
  margin:0 0 3px!important;
  font-size:13px!important;
}
@media(max-width:375px){
 html body [data-ept-message-size-v64][data-ept-message-size-v64] {width:min(82vw,295px)!important;max-width:min(82vw,295px)!important}
}


/* /ept-referral-staging.css?v=merged-live-1 */

/* EPT referral — isolated staging styles; only #profileModal is affected. */
#eptReferralProfile{margin:14px 0;border:1px solid rgba(45,163,231,.48);border-radius:16px;padding:14px;background:linear-gradient(145deg,rgba(33,136,227,.11),rgba(22,193,207,.06));direction:rtl;color:inherit}
#eptReferralProfile h3{margin:0 0 7px;font-size:1rem}
#eptReferralProfile .ept-referral-status{font-size:.82rem;opacity:.78;line-height:1.8;margin:6px 0}
#eptReferralProfile .ept-referral-code{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;padding:10px;border:1px solid rgba(83,161,231,.35);border-radius:12px}
#eptReferralProfile .ept-referral-code strong{font-family:system-ui,sans-serif;letter-spacing:1px;direction:ltr;unicode-bidi:isolate}
#eptReferralProfile button{cursor:pointer;border:1px solid rgba(74,160,231,.5);border-radius:10px;padding:7px 13px;background:rgba(45,163,231,.15);color:inherit}
#eptReferralProfile button:disabled{cursor:not-allowed;opacity:.42}
#eptReferralProfile .ept-referral-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
#eptReferralProfile .ept-referral-stats div{border:1px solid rgba(74,160,231,.2);border-radius:10px;padding:9px}
#eptReferralProfile .ept-referral-stats span{display:block;font-size:.8rem;opacity:.75}
#eptReferralProfile .ept-referral-stats b{font-size:1.05rem}


/* /ept-transfer-v4.css?v=4.5 */
/* A single compact glass card. The surrounding message bubble stays transparent. */
:root{--ept4-card:linear-gradient(125deg,#f4fbffff,#e4f3faed);--ept4-text:#123347;--ept4-muted:#36566b;--ept4-edge:#9bbfce;--ept4-fill:linear-gradient(100deg,#11b66d59,#55e69a70);--ept4-icon:#047eaa}
:root[data-theme=dark],:root.ept-v2-layout:not([data-theme=light]){--ept4-card:linear-gradient(125deg,#123c57eb,#0c263be8);--ept4-text:#f1faff;--ept4-muted:#c1dbe9;--ept4-edge:#508caa;--ept4-fill:linear-gradient(100deg,#0ba56280,#47e39480);--ept4-icon:#80e7ff}
:root #mainView #messages>article.msg.ept-media-message .bubble{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;min-width:0!important;overflow:visible!important}
:root #mainView #messages>article.msg.ept-media-message .bubble:before,:root #mainView #messages>article.msg.ept-media-message .bubble:after{display:none!important}
:root #mainView #messages>article.msg.ept-media-message .message-line{max-width:100%!important;min-width:0!important}
:root #mainView #messages>article.msg.ept-media-message .reply-quote{margin:0 0 5px!important;padding:7px!important;background:var(--ept4-card)!important;color:var(--ept4-text)!important;border-radius:9px}
:root #mainView #messages .msg button.ept-transfer-card{position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;gap:10px!important;width:252px!important;max-width:calc(100vw - 70px)!important;min-width:0!important;min-height:70px!important;padding:10px 11px!important;box-sizing:border-box!important;overflow:hidden!important;border:1px solid var(--ept4-edge)!important;border-radius:13px!important;background:var(--ept4-card)!important;color:var(--ept4-text)!important;box-shadow:inset 0 1px 0 #ffffff30,0 3px 10px #00132620!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;text-align:start!important}
:root #mainView #messages .msg .ept-transfer-card .ept-file-symbol{position:relative!important;flex:0 0 37px!important;width:37px!important;height:43px!important;border-radius:8px!important;background:linear-gradient(145deg,#60dbff45,#179ada14)!important;box-shadow:inset 0 1px 0 #ffffff60,0 3px 6px #00182c30!important;color:var(--ept4-icon)!important;z-index:1!important;border:0!important;display:grid!important;place-items:center!important;padding-bottom:7px!important;box-sizing:border-box!important}
:root #mainView #messages .ept-transfer-card .ept-file-symbol svg{width:25px!important;height:27px!important;filter:drop-shadow(0 1px 1px #001d3933)}
:root #mainView #messages .ept-transfer-card .ept-file-ext{position:absolute;bottom:1px;inset-inline:0;text-align:center;font:700 8px/12px system-ui,sans-serif;letter-spacing:.5px;color:var(--ept4-text)}
:root #mainView #messages .msg .ept-transfer-card .ept-file-copy{display:grid!important;gap:3px!important;flex:1!important;min-width:0!important;z-index:1!important}
:root #mainView #messages .msg .ept-transfer-card .ept-file-copy strong{color:var(--ept4-text)!important;font-size:12px!important;font-weight:650!important;line-height:1.5!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;overflow-wrap:anywhere!important;text-shadow:none!important}
:root #mainView #messages .msg .ept-transfer-card .ept-file-copy small{color:var(--ept4-muted)!important;opacity:1!important;font-size:10.5px!important;line-height:1.6!important;text-shadow:none!important}
:root #mainView #messages .msg .ept-transfer-card .ept-file-action{display:grid!important;place-items:center!important;flex:0 0 27px!important;width:27px!important;height:27px!important;border-radius:9px!important;border:1px solid #51c29e90!important;background:linear-gradient(145deg,#27df9d35,#00a96910)!important;color:var(--ept4-text)!important;font-size:18px!important;z-index:1!important;box-shadow:inset 0 1px 0 #ffffff30!important}
:root #mainView #messages .ept-transfer-card:before{display:none!important}
:root #mainView #messages .msg .ept-transfer-card .ept-card-progress{display:block!important;position:absolute!important;inset:0 auto 0 0!important;height:100%!important;width:var(--ept-progress,0%)!important;background:var(--ept4-fill)!important;box-shadow:inset -1px 0 0 #8fffd1aa,inset 0 1px 0 #daffe540!important;transition:width .2s linear!important;z-index:0!important;border-radius:0!important;animation:none!important;opacity:1!important;pointer-events:none!important}
:root #mainView #messages .ept-transfer-card.is-waiting .ept-card-progress{filter:saturate(.5)}
:root #uploadTray{position:relative;isolation:isolate;overflow:hidden;background:var(--ept4-card)!important;color:var(--ept4-text)!important;border:1px solid var(--ept4-edge)!important;border-radius:14px;margin:6px 10px;min-height:66px;box-sizing:border-box}
:root #uploadTray:before{content:'';position:absolute;inset:0 auto 0 0;width:var(--ept-progress,0%);background:var(--ept4-fill);z-index:0;pointer-events:none;transition:width .2s linear;box-shadow:inset -2px 0 #76ffc9aa}
:root #uploadTray>*{position:relative;z-index:1}:root #uploadTray .ept-transfer-ring,:root #uploadTray progress{display:none!important}
:root #uploadTray .upload-meta{font-size:13px!important;line-height:1.8;min-width:0;flex-wrap:wrap}:root #uploadTray #uploadLabel{max-width:100%;white-space:normal;overflow-wrap:anywhere;color:var(--ept4-text)!important;font-weight:700}:root #uploadTray #uploadPercent{color:var(--ept4-muted)!important;font-weight:700}
:root #uploadTray button{color:var(--ept4-text)!important;background:var(--ept4-card)!important;border:1px solid var(--ept4-edge)!important;min-height:36px}

/* Type-specific colors and recognisable pictograms. */
:root #mainView #messages .ept-transfer-archive{--type-icon:#f7b83f;--type-glow:#f7b83f40}
:root #mainView #messages .ept-transfer-video{--type-icon:#b899ff;--type-glow:#a675ff40}
:root #mainView #messages .ept-transfer-audio{--type-icon:#ffac65;--type-glow:#ff8a3540}
:root #mainView #messages .ept-transfer-image{--type-icon:#ff91c4;--type-glow:#f35ba840}
:root #mainView #messages .ept-transfer-pdf{--type-icon:#ff8a8a;--type-glow:#f34e5540}
:root #mainView #messages .ept-transfer-apk{--type-icon:#7de6a3;--type-glow:#22d47b40}
:root #mainView #messages .ept-transfer-file{--type-icon:#80d5ff;--type-glow:#29aaff40}
:root #mainView #messages .msg .ept-transfer-card .ept-file-symbol{color:var(--type-icon)!important;background:linear-gradient(145deg,var(--type-glow),#ffffff08)!important;border:1px solid var(--type-glow)!important}
:root #mainView #messages .ept-transfer-card .ept-file-ext{color:var(--type-icon)!important}
:root[data-theme=light] #mainView #messages .ept-transfer-archive{--type-icon:#916000}
:root[data-theme=light] #mainView #messages .ept-transfer-video{--type-icon:#7041c1}
:root[data-theme=light] #mainView #messages .ept-transfer-audio{--type-icon:#ae5008}
:root[data-theme=light] #mainView #messages .ept-transfer-image{--type-icon:#b72d73}
:root[data-theme=light] #mainView #messages .ept-transfer-pdf{--type-icon:#c4303a}
:root[data-theme=light] #mainView #messages .ept-transfer-apk{--type-icon:#087942}
:root[data-theme=light] #mainView #messages .ept-transfer-file{--type-icon:#126eae}

/* Geometry lives in SVG attributes: no CSP-blocked inline style variable. */
:root #mainView #messages .msg .ept-transfer-card svg.ept-card-progress{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;border:0!important;border-radius:inherit!important;background:none!important;box-shadow:none!important;animation:none!important;transition:none!important;opacity:1!important;pointer-events:none!important;z-index:0!important;}

