/* Profile settings and the global language picker. */
.profile-settings,
.profile-language-settings{
  position:fixed;
  inset:0;
  z-index:70;
  box-sizing:border-box;
  width:100%;
  max-width:480px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--bg,#1f2630);
  color:var(--white,#eaeef3);
  transform:translateX(100%);
  visibility:hidden;
  pointer-events:none;
  transition:transform .36s cubic-bezier(.22,.78,.18,1),visibility 0s linear .36s;
  will-change:transform;
}
.profile-language-settings{z-index:71;}
.profile-settings.open,
.profile-language-settings.open{
  transform:translateX(0);
  visibility:visible;
  pointer-events:auto;
  transition-delay:0s;
}
.profile-settings-head{
  position:relative;
  flex:0 0 auto;
  box-sizing:border-box;
  min-height:112px;
  padding:calc(15px + env(safe-area-inset-top)) 20px 10px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  background:var(--bg,#1f2630);
}
.profile-settings-head h1{
  margin:19px 0 0;
  color:#f6f8fb;
  font-family:'Plex',system-ui,sans-serif;
  font-size:32px;
  line-height:38px;
  font-weight:600;
}
.profile-settings-back{
  width:30px;
  height:30px;
  margin:0 0 0 -5px;
  padding:0;
  border:0;
  display:grid;
  place-items:center;
  background:transparent;
  color:#eaeef3;
  cursor:pointer;
}
.profile-settings-back svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.profile-settings-scroll,
.profile-language-body{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.profile-settings-scroll::-webkit-scrollbar,
.profile-language-body::-webkit-scrollbar{display:none;}
.profile-settings-scroll{padding:18px 20px calc(42px + env(safe-area-inset-bottom));}
.profile-settings-section{margin:0 0 30px;}
.profile-settings-section h2{
  margin:0 0 9px;
  color:#939ba7;
  font-family:'Plex',system-ui,sans-serif;
  font-size:15px;
  line-height:20px;
  font-weight:400;
}
.profile-settings-row{
  box-sizing:border-box;
  width:100%;
  min-height:68px;
  padding:0;
  border:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 20px;
  align-items:center;
  gap:9px;
  background:transparent;
  color:#f0f3f7;
  font-family:'Plex',system-ui,sans-serif;
  text-align:start;
}
button.profile-settings-row{cursor:pointer;}
.profile-settings-row-static{grid-template-columns:minmax(0,1fr) auto;}
.profile-settings-row>span{font-size:20px;line-height:25px;font-weight:400;}
.profile-settings-row>em{
  max-width:190px;
  overflow:hidden;
  color:#929aa6;
  font-size:16px;
  line-height:21px;
  font-style:normal;
  font-weight:400;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-settings-row>i{color:#7d8794;font-size:27px;line-height:1;font-style:normal;font-weight:300;}
.profile-language-body{padding:13px 20px calc(38px + env(safe-area-inset-bottom));}
.profile-language-search{
  box-sizing:border-box;
  height:46px;
  margin:0 0 18px;
  padding:0 14px;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#29313e;
  color:#828b98;
}
.profile-language-search svg{
  flex:0 0 22px;
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
}
.profile-language-search input{
  min-width:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#eaeef3;
  font:400 16px/22px 'Plex',system-ui,sans-serif;
}
.profile-language-search input::placeholder{color:#828b98;opacity:1;}
.profile-language-search input::-webkit-search-cancel-button{filter:invert(.7);}
.profile-language-list{display:flex;flex-direction:column;}
.profile-language-list>button{
  box-sizing:border-box;
  width:100%;
  min-height:64px;
  padding:0;
  border:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:transparent;
  color:#edf1f5;
  font:400 18px/23px 'Plex',system-ui,sans-serif;
  text-align:start;
  cursor:pointer;
}
.profile-language-list>button svg{
  width:25px;
  height:25px;
  display:none;
  fill:none;
  stroke:#eaeef3;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.profile-language-list>button[aria-checked="true"] svg{display:block;}
.profile-language-empty{margin:28px 0;color:#929aa6;text-align:center;}
html[dir="rtl"] .profile-settings-head,
html[dir="rtl"] .profile-settings-row,
html[dir="rtl"] .profile-language-list>button,
html[dir="rtl"] .profile-language-search{direction:rtl;}
html[dir="rtl"] .profile-settings-back{margin-right:-5px;margin-left:0;transform:scaleX(-1);}
html[dir="rtl"] .profile-settings-row>i{transform:scaleX(-1);}
@media(max-width:380px){
  .profile-settings-head{min-height:101px;padding-inline:16px;}
  .profile-settings-head h1{margin-top:14px;font-size:29px;line-height:34px;}
  .profile-settings-scroll,.profile-language-body{padding-inline:16px;}
  .profile-settings-row{min-height:61px;}
  .profile-settings-row>span{font-size:18px;line-height:23px;}
  .profile-settings-row>em{max-width:155px;font-size:15px;}
  .profile-language-list>button{min-height:59px;font-size:17px;}
}
@media(prefers-reduced-motion:reduce){
  .profile-settings,.profile-language-settings{transition-duration:.01ms;}
}

/* v2: Settings and Language use one managed horizontal route. Web Animations
   owns the transform while the page is moving, so Android WebView cannot skip
   the entrance or combine CSS and script into two competing transitions. */
.profile-settings.closing,
.profile-language-settings.closing{
  visibility:visible!important;
  pointer-events:none!important;
}
.profile-settings.profile-overlay-animating,
.profile-language-settings.profile-overlay-animating{
  visibility:visible!important;
  pointer-events:none!important;
  transition:none!important;
  will-change:transform!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
}

/* v3: compact sizing shared with the rest of the mobile project. */
.profile-settings-head{
  min-height:94px;
  padding:calc(12px + env(safe-area-inset-top)) 18px 8px;
}
.profile-settings-head h1{
  margin-top:13px;
  font-size:27px;
  line-height:33px;
  letter-spacing:-.25px;
}
.profile-settings-back{width:28px;height:28px;}
.profile-settings-back svg{width:22px;height:22px;}
.profile-settings-scroll{padding:12px 18px calc(32px + env(safe-area-inset-bottom));}
.profile-settings-section{margin-bottom:22px;}
.profile-settings-section h2{margin-bottom:6px;font-size:13px;line-height:18px;}
.profile-settings-row{min-height:55px;grid-template-columns:minmax(0,1fr) auto 17px;gap:7px;}
.profile-settings-row-static{grid-template-columns:minmax(0,1fr) auto;}
.profile-settings-row>span{font-size:16px;line-height:21px;}
.profile-settings-row>em{max-width:175px;font-size:14px;line-height:19px;}
.profile-settings-row>i{font-size:22px;}
.profile-language-body{padding:10px 18px calc(32px + env(safe-area-inset-bottom));}
.profile-language-search{height:42px;margin-bottom:12px;padding:0 12px;border-radius:9px;gap:9px;}
.profile-language-search svg{width:19px;height:19px;flex-basis:19px;}
.profile-language-search input{font-size:14px;line-height:20px;}
.profile-language-list>button{min-height:52px;font-size:16px;line-height:21px;}
.profile-language-list>button svg{width:21px;height:21px;}
@media(max-width:380px){
  .profile-settings-head{min-height:90px;padding-inline:15px;}
  .profile-settings-head h1{margin-top:11px;font-size:25px;line-height:31px;}
  .profile-settings-scroll,.profile-language-body{padding-inline:15px;}
  .profile-settings-row{min-height:52px;}
  .profile-settings-row>span{font-size:15px;line-height:20px;}
  .profile-settings-row>em{max-width:145px;font-size:13px;}
  .profile-language-list>button{min-height:49px;font-size:15px;}
}

/* v4: keep Settings and Language crisp after their entrance animation. */
.profile-settings.open:not(.closing):not(.profile-overlay-animating),
.profile-language-settings.open:not(.closing):not(.profile-overlay-animating){
  transform:none!important;
  translate:none!important;
  scale:none!important;
  rotate:none!important;
  will-change:auto!important;
  filter:none!important;
  opacity:1!important;
  backface-visibility:visible!important;
  -webkit-backface-visibility:visible!important;
  transform-style:flat!important;
  perspective:none!important;
  contain:none!important;
}
.profile-settings.open:not(.closing):not(.profile-overlay-animating),
.profile-settings.open:not(.closing):not(.profile-overlay-animating) *,
.profile-language-settings.open:not(.closing):not(.profile-overlay-animating),
.profile-language-settings.open:not(.closing):not(.profile-overlay-animating) *{
  text-rendering:auto!important;
  -webkit-font-smoothing:auto!important;
}

/* v5: optical alignment for right-side values and navigation chevrons. */
button.profile-settings-row{
  grid-template-columns:minmax(0,1fr) auto 13px;
  column-gap:7px;
}
.profile-settings-row>em{
  min-height:20px;
  display:flex;
  align-items:center;
  justify-self:end;
  line-height:20px;
  text-align:right;
}
.profile-settings-row>i{
  width:13px;
  height:21px;
  display:grid;
  place-items:center;
  align-self:center;
  justify-self:end;
  overflow:visible;
  color:#7d8794;
  font-size:0;
  line-height:0;
}
/* v713: lower both visible chevrons to the optical center of their value text. */
.profile-settings-row>i::before{
  content:"";
  position:relative;
  top:4px;
  box-sizing:border-box;
  width:7px;
  height:7px;
  border-top:1.5px solid currentColor;
  border-right:1.5px solid currentColor;
  transform:rotate(45deg);
  transform-origin:center;
}

/* v643: align every Settings value to the same right-hand text column. */
.profile-settings-row-static{
  grid-template-columns:minmax(0,1fr) auto 13px;
  column-gap:7px;
}

/* v657: keep both sides of each Settings row on one visual baseline. */
.profile-settings-row,
button.profile-settings-row,
.profile-settings-row-static{
  grid-template-columns:minmax(0,1fr) auto 13px;
  align-items:center;
  column-gap:7px;
}
button.profile-settings-row{
  margin:0;
  appearance:none;
  -webkit-appearance:none;
}
.profile-settings-row>span,
.profile-settings-row>em{
  box-sizing:border-box;
  height:21px;
  min-height:21px;
  margin:0;
  padding:0;
  display:block;
  align-self:center;
  line-height:21px;
}
.profile-settings-row>em{
  justify-self:end;
  text-align:right;
}
.profile-settings-row>i{
  margin:0;
  align-self:center;
}
