/* Family invited participant: same flat input surface as approved finance fields.
   Keep the native select and its persistence handlers unchanged. */
html body #app#app .family-visitor-controls .universal-picker.universal-picker > summary.control-trigger{
  box-sizing:border-box!important;
  width:100%!important;
  height:45px!important;
  min-height:45px!important;
  padding:0 13px!important;
  border:1px solid #d8dfe9!important;
  border-radius:15px!important;
  background:#f4f5f8!important;
  background-image:none!important;
  color:var(--text-primary)!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  font-size:13px!important;
}
html body #app#app .family-visitor-controls .universal-picker.universal-picker:is([open],:focus-within) > summary.control-trigger{
  background:#f4f5f8!important;
  background-image:none!important;
  border-color:#b6c8d7!important;
  box-shadow:none!important;
}
html body #app#app .family-visitor-controls .universal-picker.universal-picker > .control-menu{
  position:static!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:min(43dvh,325px)!important;
  margin:7px 0 0!important;
  background:#fff!important;
  background-image:none!important;
  border:1px solid #dce6ee!important;
  border-radius:15px!important;
  box-shadow:0 8px 20px rgba(45,62,80,.08)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
html body #app#app .family-visitor-controls .universal-picker.universal-picker .control-options{
  max-height:min(34dvh,255px)!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
html body #app#app .family-visitor-controls .universal-picker.universal-picker .control-options > button{
  border:0!important;
  border-radius:10px!important;
  min-height:42px!important;
  color:var(--text-secondary)!important;
}
html body #app#app .family-visitor-controls .universal-picker.universal-picker .control-options > button[aria-checked="true"]{
  background:#eaf1f7!important;
  color:var(--text-primary)!important;
  font-weight:600!important;
}

/* Chevrons are drawn using bottom+right borders. Down=45deg and up=225deg.
   180deg is sideways for this specific shape, so override legacy open rules. */
html body :is(#app,#modal,#mobile-filters-dialog) .filter-picker > summary.control-trigger .control-chevron {
  transform:rotate(45deg) translateY(-2px)!important;
  transition:transform .18s ease!important;
}
html body #app#app#app .filter-picker.filter-picker[open] > summary.control-trigger .control-chevron,
html body #modal#modal#modal .filter-picker.filter-picker[open] > summary.control-trigger .control-chevron,
html body #mobile-filters-dialog#mobile-filters-dialog .filter-picker.filter-picker[open] > summary.control-trigger .control-chevron{
  transform:rotate(225deg) translate(-1px,-1px)!important;
}

/* Profile sheet: avoid the late-painting backdrop-filter on the scrim.
   Blur the actual app shell, exactly as for the sidebar and form overlays,
   and animate it in lockstep with the panel and scrim opacity. */
@media(max-width:800px){
  html body:has(> .nexo-profile-scrim:not([hidden])) > .shell,
  html body:has(> .nexo-profile-scrim:not([hidden])) > .mobile-dock{
    transition:filter 360ms cubic-bezier(.22,.85,.26,1)!important;
  }
  html body.nexo-bottom-open > .shell,
  html body.nexo-bottom-open > .mobile-dock{
    filter:blur(var(--overlay-blur,9px))!important;
  }
  html body .nexo-profile-scrim{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    transition:opacity 360ms cubic-bezier(.22,.85,.26,1)!important;
  }
  html body .nexo-profile-scrim.is-open{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  html body .nexo-profile-bottom-sheet{
    transition:transform 360ms cubic-bezier(.22,.85,.26,1)!important;
  }
}
@media (max-width:800px) and (prefers-reduced-motion:reduce) and (max-width:800px){
  html body:has(> .nexo-profile-scrim:not([hidden])) > .shell,
  html body:has(> .nexo-profile-scrim:not([hidden])) > .mobile-dock,
  html body .nexo-profile-scrim,html body .nexo-profile-bottom-sheet{
    transition:none!important;
  }
}
