/* /ui173.css?v=173 */
/* Match control foregrounds to their surfaces, including inherited text-fill. */
html:root:root:root[data-ui169] #settingsPage .settings-top,
html:root:root:root[data-ui169] #settingsPage .settings-top :is(h1,h2,small,strong,span),
html:root:root:root[data-ui169] #settingsPage .ept-v7-theme-cards button,
html:root:root:root[data-ui169] #settingsPage .ept-v7-theme-cards button :is(strong,span){color:#f4faff!important;-webkit-text-fill-color:#f4faff!important;opacity:1!important;text-shadow:none!important}
html:root:root:root[data-ui169] #settingsPage .settings-top{background:linear-gradient(110deg,#174775,#096ca3)!important}
html:root:root:root[data-ui169] #settingsPage .ept-v7-theme-cards button{background:#123451!important;border-color:#8cc1e4!important}
html:root:root:root[data-ui169] #settingsPage .ept-v7-theme-cards button.active{background:#0868b5!important;border:2px solid #81dcff!important}
/* Menus, dialog forms, profile and administrator controls share explicit light surfaces. */
html:root:root:root[data-ui169=light] :is(#settingsPage,.admin-invite-dialog,#profileModal,#peerProfileModal) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){background:#fff!important;color:#173b57!important;-webkit-text-fill-color:#173b57!important;border-color:#6f9bb6!important;color-scheme:light}
html:root:root:root[data-ui169=light] :is(#settingsPage,.admin-invite-dialog) :is(input,textarea)::placeholder{color:#516a7b!important;-webkit-text-fill-color:#516a7b!important;opacity:1!important}
html:root:root:root[data-ui169=light] #settingsPage :is(.settings-section,.ept-r44-option-group,.ept-r44-group-body,.ept-r44-info){background:#eff7ff!important;color:#173b57!important}
html:root:root:root[data-ui169=light] #settingsPage :is(.settings-section h2,.settings-row>label,.settings-help,.ept-r44-info p,.ept-r44-info h3){color:#173b57!important;-webkit-text-fill-color:#173b57!important;opacity:1!important}
html:root:root:root[data-ui169=light] #settingsPage :is(.settings-row button,.ept-r44-secondary,.ept-r44-action,.ept-r44-nav),
html:root:root:root[data-ui169=light] .admin-invite-dialog button{background:#e0effa!important;color:#173b57!important;-webkit-text-fill-color:#173b57!important;border-color:#779db6!important}
html:root:root:root[data-ui169=light] #settingsPage :is(.settings-row button,.ept-r44-secondary,.ept-r44-action,.ept-r44-nav) :is(span,strong,b,small){color:inherit!important;-webkit-text-fill-color:inherit!important;opacity:1!important}
html:root:root:root[data-ui169] #settingsPage :is(button.active,button[aria-pressed=true],button.primary,button[type=submit]),
html:root:root:root[data-ui169] .admin-invite-dialog :is(button.primary,button[type=submit]){background:#0868b5!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#65b9f1!important}
html:root:root:root[data-ui169] #settingsPage :is(button.active,button[aria-pressed=true],button.primary,button[type=submit]) :is(span,strong,b,small){color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
html:root:root:root[data-ui169] #settingsPage .settings-top button{background:#dcefff!important;color:#173b57!important;-webkit-text-fill-color:#173b57!important}
html:root:root:root[data-ui169=dark] :is(#settingsPage,.admin-invite-dialog) :is(select,textarea,input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color])){background:#112d49!important;color:#f1f8ff!important;-webkit-text-fill-color:#f1f8ff!important;color-scheme:dark;border-color:#679bc0!important}
html:root:root:root[data-ui169=dark] #settingsPage .settings-row button{background:#123451!important;color:#f1f8ff!important;-webkit-text-fill-color:#f1f8ff!important}
html:root:root:root[data-ui169] :is(#eptV2ChatMenu,#eptR43ContextMenu) button{color:#f4faff!important;-webkit-text-fill-color:#f4faff!important;opacity:1!important}
html:root:root:root[data-ui169=light] :is(#eptV2ChatMenu,#eptR43ContextMenu){background:#fff!important;color:#173b57!important}
html:root:root:root[data-ui169=light] :is(#eptV2ChatMenu,#eptR43ContextMenu) :is(button,span,.ept-r43-menu-head){color:#173b57!important;-webkit-text-fill-color:#173b57!important}
html:root:root:root[data-ui169=dark] :is(#eptV2ChatMenu,#eptR43ContextMenu){background:#112d49!important}
html:root:root:root[data-ui169] :is(#settingsPage,.admin-invite-dialog,#eptV2ChatMenu,#eptR43ContextMenu) :is(button,input,select,textarea):focus-visible{outline:3px solid #0684d2!important;outline-offset:3px}
/* Inline labels must not make theme swatches lose their visual meaning. */
html:root:root:root[data-ui169] #settingsPage :is(.ept-r44-icon,.ept70-icon){color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Restore complete LTR structure; preserve the direction of user-authored message bodies. */
html:root:root:root[lang=en] :is(#mainView,#settingsPage,.sidebar,.conversation,.chatheader,.composer,.chatrow,.phone-contact-row,.quick-action-button,.settings-row,.settings-top,.ept-r44-home,.ept-r44-nav,.ept-r44-option,.ept-r44-select-row,.ept-r44-toggle-row,#eptV2ChatMenu,#eptR43ContextMenu,.dialog,.peer-profile-info-row,.peer-profile-top,.contacts-head,.group-details-actions){direction:ltr!important}
html:root:root:root[lang=en] :is(.chatrow,.chatrow-info,.selfinfo,.settings-row,.ept-r44-option-copy,.ept-r44-nav,.phone-contact-row,.quick-action-button,.dialog label,.peer-profile-info-row,#eptV2ChatMenu button,#eptR43ContextMenu button){text-align:start!important}
html:root:root:root[lang=en] #mainView :is(.sidebar,.conversation){order:initial!important}
html:root:root:root[lang=en] #messages{direction:ltr!important}
html:root:root:root[lang=en] #messages .bubble{unicode-bidi:plaintext;text-align:start}
html:root:root:root[lang=en] #text{direction:ltr!important;text-align:start!important;unicode-bidi:plaintext}
html:root:root:root[lang=en] .stamp{direction:ltr!important}
html:root:root:root[lang=en] :is(#firstName,#lastName){direction:ltr!important;text-align:left!important}
html:root:root:root[lang=en] #eptV2ChatMenu{inset-inline-end:12px!important;left:auto!important;right:12px!important}

/* Actual Appearance panel is generated separately from the legacy settings rows. */
html:root:root:root[data-ui169] #settingsPage #eptAppearancePanel :is([data-choice-theme],[data-choice-language]){background:#123451!important;color:#f4faff!important;-webkit-text-fill-color:#f4faff!important;border-color:#83b1d1!important}
html:root:root:root[data-ui169] #settingsPage #eptAppearancePanel :is([data-choice-theme],[data-choice-language]) :is(span,b){color:#f4faff!important;-webkit-text-fill-color:#f4faff!important;opacity:1!important}
html:root:root:root[data-ui169] #settingsPage #eptAppearancePanel :is([data-choice-theme],[data-choice-language]).selected{background:#0868b5!important;border:2px solid #6ccaff!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html:root:root:root[data-ui169=light] #settingsPage #eptAppearancePanel :is(.ept-appearance-title,.ept-appearance-block h2,.ept-appearance-row>b,.ept-appearance-size>span,.ept-appearance-note){color:#173b57!important;-webkit-text-fill-color:#173b57!important;opacity:1!important}
html:root:root:root[data-ui169=dark] #settingsPage #eptAppearancePanel :is(.ept-appearance-title,.ept-appearance-block h2,.ept-appearance-row>b,.ept-appearance-size>span,.ept-appearance-note){color:#f4faff!important;-webkit-text-fill-color:#f4faff!important;opacity:1!important}
html:root:root:root[data-ui169=dark] #settingsPage #eptAppearancePanel :is(.ept-appearance-row,.ept-appearance-block){background:#112d49!important;border-color:#759ab6!important}
html:root:root:root[data-ui169=light] #settingsPage #eptAppearancePanel :is(.ept-appearance-row,.ept-appearance-block){background:#eff7ff!important;border-color:#779db6!important}
html:root:root:root[data-ui169] #settingsPage #eptAppearancePanel :is(input[type=range],input[type=checkbox]){accent-color:#0873bc!important;opacity:1!important}
html:root:root:root[lang=en] :is(#eptAppearancePanel,.ept-appearance-row,.ept-appearance-title,.ept-appearance-block){direction:ltr!important;text-align:start!important}
/* Remaining dialog forms use the same foreground/background pair. */
html:root:root:root[data-ui169=light] .overlay .dialog :is(select,textarea,input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color])){background:#fff!important;color:#173b57!important;-webkit-text-fill-color:#173b57!important;border-color:#779db6!important;color-scheme:light}
html:root:root:root[data-ui169=light] .overlay .dialog :is(input,textarea)::placeholder{color:#516a7b!important;-webkit-text-fill-color:#516a7b!important;opacity:1!important}
html:root:root:root[lang=en] #mainView#mainView :is(.brand,.compact-account,#peerHeading,#composer .ept-voice-indicator,.sidebarfoot,.ept-v2-nav,.story-shelf,.story-shelf-head,.ept-v2-toptools,.ept-v2-quickbar){direction:ltr!important}
html:root:root:root[lang=en] #mainView#mainView :is(.compact-account,#peerHeading,.chatrow-info){text-align:start!important}
html:root:root:root[lang=en] #settingsPage :is(.ept-r44-card-link,.settings-top){direction:ltr!important}
html:root:root:root[lang=en] :is(.ept-r43-menu-content>button,.peer-profile-dialog,.peer-profile-info-row>span:nth-child(2),#forwardModal .ept-forward-dialog,#forwardModal .ept-forward-search input,.ept-forward-confirm){direction:ltr!important;text-align:start!important}
html:root:root:root[lang=en] #mainView#mainView #messages#messages>article.msg,
html:root:root:root[lang=en] #mainView#mainView #messages#messages>article.msg :is(.message-line,.stamp){direction:ltr!important}
html:root:root:root[lang=en] #mainView#mainView #messages#messages>article.msg .bubble{unicode-bidi:plaintext;text-align:start!important}
html.ept-desktop166 body #mainView#mainView#mainView#mainView{height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important}
html.ept-desktop166 body #mainView#mainView#mainView#mainView>.sidebar,html.ept-desktop166 body #mainView#mainView#mainView#mainView>.conversation{min-height:0!important;max-height:100%!important;overflow:hidden!important}
html.ept-desktop166 body #mainView#mainView#mainView#mainView .ept-inbox-scroll{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;touch-action:pan-y}
html.ept-desktop166 body #mainView#mainView#mainView#mainView .ept-inbox-scroll #chatList{height:auto!important;max-height:none!important;overflow:visible!important}
html.ept-desktop166 body #mainView#mainView#mainView#mainView .conversation{display:flex;flex-direction:column!important}
html.ept-desktop166 body #mainView#mainView#mainView#mainView #chatView:not(.hidden){position:relative!important;display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:auto!important;overflow:hidden!important}
html.ept-desktop166 body #mainView#mainView#mainView#mainView #messages{position:relative!important;inset:auto!important;flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y;overscroll-behavior:contain}
html.ept-desktop166 body #mainView#mainView#mainView#mainView #composer{position:relative!important;inset:auto!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;align-items:flex-end!important}
html.ept-desktop166 body #mainView#mainView#mainView#mainView #text{box-sizing:border-box!important;min-height:46px!important;max-height:min(240px,30vh)!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;resize:none!important;line-height:1.6!important;align-self:stretch!important}
html.ept-desktop166 .ept-up166{position:absolute;left:12px;bottom:100px;z-index:40;width:34px;height:34px;border-radius:50%;border:1px solid #80b9dc;background:#0867a9;color:#fff;font-size:22px;cursor:pointer;box-shadow:0 2px 8px #0003}
html.ept-desktop166 #chatView>.ept-up166{top:12px;bottom:auto}
html.ept-desktop166 .ept-up166[hidden]{display:none!important}

@media(min-width:801px){html.ept-desktop166 body #mainView#mainView#mainView#mainView>.sidebar{position:relative!important;display:flex!important;flex-direction:column!important}}
/* The real menu gets a second guard even if an older layout script is cached. */
html:root:root:root #mainView#mainView:not([data-chat-kind173=group]):not([data-chat-kind173=channel]) #eptV2ChatMenu [data-v2-trigger=groupDetails]{display:none!important}
#desktopInbox173{display:none}
@media(min-width:801px){
 html.ept-desktop173 #desktopInbox173{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;border:1px solid #75b6de;border-radius:12px;background:#e1f1fc;color:#153d5b;-webkit-text-fill-color:#153d5b;cursor:pointer;padding:8px 12px;font:inherit;flex:0 0 auto;order:0}
 html.ept-desktop173[dir=ltr] body #mainView#mainView#mainView#mainView{display:grid!important;direction:ltr!important;grid-template-columns:340px minmax(0,1fr)!important}
 html.ept-desktop173[dir=rtl] body #mainView#mainView#mainView#mainView{display:grid!important;direction:rtl!important;grid-template-columns:340px minmax(0,1fr)!important}
 html.ept-desktop173 body #mainView#mainView#mainView#mainView>.sidebar{grid-column:1!important;grid-row:1!important;min-width:0!important;position:relative!important;inset:auto!important;float:none!important}
 html.ept-desktop173 body #mainView#mainView#mainView#mainView>.conversation{grid-column:2!important;grid-row:1!important;min-width:0!important;position:relative!important;inset:auto!important;float:none!important}
 html.ept-desktop173 body #mainView#mainView#mainView#mainView.desktop173-collapsed{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
 html.ept-desktop173 body #mainView#mainView#mainView#mainView.desktop173-collapsed>.sidebar{display:none!important}
 html.ept-desktop173 body #mainView#mainView#mainView#mainView.desktop173-collapsed>.conversation{grid-column:1!important;width:100%!important}
}
html.ept-desktop173 #desktopInbox173{background:#e1f1fc!important;color:#153d5b!important;-webkit-text-fill-color:#153d5b!important}

