/* Currency is a user-level display preference. Do not infer conversion from these flags. */
.home-page .home-header,.transaction-page-v2 .transaction-header{position:relative;z-index:60}
.ft-currency-picker{position:relative;display:flex;align-items:center;flex:none;z-index:30}
.ft-currency-trigger{width:38px;height:38px;flex:0 0 38px;padding:0;display:grid;place-items:center;cursor:pointer;border:1px solid #e5e5e6;border-radius:50%;background:#fff;color:#171717;box-shadow:none;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.ft-currency-trigger:hover{background:#f5f5f5;border-color:#d8d8d9}
.ft-currency-trigger:active{transform:scale(.96)}
.ft-currency-trigger:focus-visible,.ft-currency-option:focus-visible,.ft-currency-search-wrap:focus-within{outline:2px solid #171717;outline-offset:2px}
.ft-currency-flag{position:relative;display:inline-flex;width:25px;height:18px;flex:0 0 25px;align-items:center;justify-content:center;border-radius:3px;overflow:hidden;background:#f4f4f4;box-shadow:0 0 0 1px rgba(0,0,0,.09)}
.ft-currency-trigger .ft-currency-flag{display:block;width:100%;height:100%;flex:none;border-radius:50%;box-shadow:none}
.ft-currency-option .ft-currency-flag{width:28px;height:28px;flex:0 0 28px;border-radius:50%}
.ft-currency-emoji{position:absolute;inset:0;display:grid;place-items:center;font-size:21px;line-height:1}
.ft-currency-flag img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.ft-currency-flag img[hidden]{display:none}
.ft-currency-menu{position:absolute;top:calc(100% + 10px);right:-48px;z-index:110;width:min(306px,calc(100vw - 48px));max-height:min(450px,calc(100dvh - 100px));display:flex;flex-direction:column;padding:10px;border:1px solid #e5e5e5;border-radius:18px;background:#fff;color:#171717;box-shadow:0 18px 55px rgba(0,0,0,.14);animation:ft-currency-pop .2s cubic-bezier(.2,.8,.2,1) both}
.ft-currency-menu[hidden]{display:none}
.ft-currency-menu-head{display:flex;flex-direction:column;gap:3px;padding:9px 8px 13px}
.ft-currency-menu-head strong{font-size:14px;font-weight:740;letter-spacing:-.02em}
.ft-currency-menu-head span{font-size:11px;color:#777;line-height:1.35}
.ft-currency-search-wrap{display:flex;align-items:center;gap:8px;min-height:39px;padding:0 11px;background:#f3f3f3;border:1px solid transparent;border-radius:11px}
.ft-currency-search-wrap svg{width:17px;height:17px;fill:none;stroke:#797979;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ft-currency-search-wrap input{border:0;background:transparent;outline:0;min-width:0;flex:1;font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;color:#171717}
.ft-currency-search-wrap input::placeholder{color:#888}
.ft-currency-options{overflow:auto;overscroll-behavior:contain;min-height:40px;padding:7px 0 2px}
.ft-currency-option{width:100%;display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 11px;border:0;border-radius:11px;background:#fff;color:#232323;text-align:left;font:inherit;cursor:pointer}
.ft-currency-option:hover{background:#f4f4f4}
.ft-currency-option.is-active{background:#f4f4f5}
.ft-currency-option:disabled{opacity:.5;cursor:wait}
.ft-currency-option-name{min-width:0;flex:1;font-size:12px;font-weight:620}
.ft-currency-option-name small{display:block;margin-top:2px;color:#777;font-size:10px;font-weight:500}
.ft-currency-option-check{font-size:17px;font-weight:700}
.ft-currency-status{margin:0;padding:4px 8px 0;font-size:11px;color:#9b3434}
.ft-currency-status:empty{display:none}
.ft-currency-no-results{margin:0;padding:12px 8px;color:#7a7a7a;font-size:12px}
.ft-currency-header-actions{display:flex;align-items:center;gap:10px;flex:none}
.home-page .home-header-actions{gap:10px}
@keyframes ft-currency-pop{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.ft-currency-menu{animation:none}.ft-currency-trigger{transition:none}}
/* Full-width currency chooser in the account menu and Settings. */
.ft-currency-picker[data-picker-layout]{width:100%;min-width:0}
.ft-currency-picker[data-picker-layout] .ft-currency-trigger{display:flex;align-items:center;justify-content:flex-start;gap:11px;box-sizing:border-box;width:100%;height:auto;min-height:52px;padding:9px 11px;border:0;border-radius:12px;background:transparent;text-align:left;box-shadow:none}
.ft-currency-picker[data-picker-layout] .ft-currency-trigger:hover{background:#F3F3F5}
.ft-currency-picker[data-picker-layout] .ft-currency-trigger .ft-currency-flag{display:block;width:31px;height:31px;flex:0 0 31px;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.ft-currency-trigger-copy{display:grid;min-width:0;flex:1;gap:3px}
.ft-currency-trigger-copy strong{font-size:13px;font-weight:650;color:#171717;line-height:1.25}
.ft-currency-trigger-copy small{font-size:10px;line-height:1.3;font-weight:520;color:#87878C}
.ft-currency-trigger-chevron{width:16px;height:16px;flex:none;fill:none;stroke:#98989E;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-account-currency .ft-currency-menu{top:calc(100% + 5px);right:0}
.home-account-currency .ft-currency-menu-head{padding:9px 8px 13px}
.settings-currency-picker .ft-currency-trigger.settings-menu-row{min-height:70px;padding:14px 16px;border-radius:16px}
.settings-currency-picker .ft-currency-trigger .ft-currency-flag{width:38px;height:38px;flex-basis:38px}
.settings-currency-picker .ft-currency-trigger-copy strong{font-size:14px}
.settings-currency-picker .ft-currency-trigger-copy small{font-size:12px}
.settings-currency-picker .ft-currency-menu{right:0;top:calc(100% + 8px);z-index:150}
@media(max-width:600px){.home-account-currency .ft-currency-menu{right:0;width:min(306px,calc(100vw - 36px))}.ft-currency-picker[data-picker-layout] .ft-currency-trigger{min-height:48px}}

/* Currency pill stays visible in the top bar; settings opens a modal sheet. */
.ft-currency-picker[data-picker-layout="topbar"]{width:auto;min-width:0;flex:0 0 auto;z-index:65}
.ft-currency-picker[data-picker-layout="topbar"] .ft-currency-trigger{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  width:auto;height:40px;min-height:40px;min-width:78px;padding:5px 10px;
  border:1px solid #e5e5e7;border-radius:999px;background:#fff;
  color:#27272a;white-space:nowrap;box-shadow:0 1px 2px rgba(17,17,17,.025)
}
.ft-currency-picker[data-picker-layout="topbar"] .ft-currency-trigger:hover{background:#f6f6f7;border-color:#d9d9df}
.ft-currency-picker[data-picker-layout="topbar"] .ft-currency-trigger .ft-currency-flag{
  width:25px;height:25px;flex:0 0 25px;border-radius:50%;
  box-shadow:0 0 0 1px rgba(0,0,0,.07)
}
.ft-currency-short-code{font-size:12px;font-weight:730;letter-spacing:.025em;line-height:1}
.ft-currency-picker[data-picker-layout="topbar"] .ft-currency-menu{right:0;top:calc(100% + 9px)}
.ft-currency-menu:not(.ft-currency-sheet) .ft-currency-menu-head>div{display:flex;flex-direction:column;gap:3px}
.settings-hub-page .settings-currency-picker[data-picker-layout="settings"]{width:100%;min-width:0}
.settings-hub-page .settings-currency-picker[data-picker-layout="settings"] .ft-currency-trigger.settings-menu-row{
  display:flex;align-items:center;justify-content:flex-start;gap:12px;
  width:100%;min-width:0;min-height:64px;height:auto;padding:12px 14px;
  border:0;border-radius:0;background:transparent;text-align:left
}
.settings-hub-page .settings-currency-picker[data-picker-layout="settings"] .ft-currency-trigger.settings-menu-row:hover{background:#ececee}
.settings-hub-page .settings-currency-picker .ft-currency-trigger .ft-currency-flag{
  display:block;width:36px;height:36px;flex:0 0 36px;border-radius:50%
}
.settings-hub-page .settings-currency-picker .ft-currency-trigger-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.settings-hub-page .settings-currency-picker .ft-currency-trigger-copy strong{font-size:14px;line-height:1.25;white-space:nowrap;font-weight:650}
.settings-hub-page .settings-currency-picker .ft-currency-trigger-copy small{
  font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#82828a
}
.settings-hub-page .settings-currency-picker .ft-currency-trigger-chevron{
  margin-left:auto;width:18px;height:18px;flex:0 0 18px
}
.ft-currency-sheet-open{overflow:hidden}
dialog.ft-currency-sheet{
  position:fixed;inset:auto 0 0;margin:0 auto;box-sizing:border-box;
  width:min(540px,100vw);max-width:100vw;height:min(580px,calc(100dvh - 24px));
  max-height:calc(100dvh - 24px);padding:15px 17px max(18px,env(safe-area-inset-bottom));
  border:1px solid #e8e8ea;border-bottom:0;border-radius:24px 24px 0 0;
  background:#fff;color:#171717;box-shadow:0 -18px 60px rgba(16,16,24,.17);
  animation:ft-currency-sheet-in .24s cubic-bezier(.2,.8,.2,1) both
}
.settings-currency-picker dialog.ft-currency-sheet{top:auto;right:0;bottom:0;left:0}
dialog.ft-currency-sheet[hidden]{display:none}
dialog.ft-currency-sheet::backdrop{background:rgba(18,19,24,.38);backdrop-filter:blur(2px)}
.ft-currency-sheet .ft-currency-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 1px 17px}
.ft-currency-sheet .ft-currency-menu-head>div{display:flex;flex-direction:column;gap:4px}
.ft-currency-sheet .ft-currency-menu-head strong{font-size:18px;font-weight:740}
.ft-currency-sheet .ft-currency-menu-head span{font-size:12px}
.ft-currency-close{width:36px;height:36px;flex:0 0 36px;border:0;border-radius:12px;background:#f4f4f5;color:#777;cursor:pointer;font-size:26px;line-height:1}
.ft-currency-close:hover{background:#e9e9eb;color:#18181b}
.ft-currency-sheet .ft-currency-search-wrap{min-height:44px}
.ft-currency-sheet .ft-currency-options{flex:1;min-height:0;padding-top:10px}
.ft-currency-sheet .ft-currency-option{min-height:53px;font-size:13px}
@keyframes ft-currency-sheet-in{from{opacity:.8;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
  .ft-currency-picker[data-picker-layout="topbar"] .ft-currency-trigger{min-width:74px;min-height:38px;height:38px;padding:4px 8px;gap:6px}
  .ft-currency-picker[data-picker-layout="topbar"] .ft-currency-trigger .ft-currency-flag{width:24px;height:24px;flex-basis:24px}
  .settings-hub-page .settings-currency-picker[data-picker-layout="settings"] .ft-currency-trigger.settings-menu-row{min-height:60px;padding:10px 12px}
  dialog.ft-currency-sheet{width:100vw}
}
@media(prefers-reduced-motion:reduce){dialog.ft-currency-sheet{animation:none}}

/* Shared controls on secondary pages. Source order: currency, notification, avatar. */
.ft-header-notification-wrap{position:relative;display:flex;align-items:center;flex:none;z-index:65}
.ft-header-notification-toggle{
  width:40px;height:40px;display:grid;place-items:center;padding:0;
  border:1px solid #e5e5e7;border-radius:50%;background:#fff;color:#38383d;cursor:pointer
}
.ft-header-notification-toggle:hover{background:#f6f6f7}
.ft-header-notification-toggle:focus-visible,.ft-header-notification-head button:focus-visible{
  outline:2px solid #171717;outline-offset:2px
}
.ft-header-notification-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ft-header-notification-panel{
  position:absolute;right:-49px;top:calc(100% + 12px);z-index:130;
  width:min(325px,calc(100vw - 28px));padding:16px;
  border:1px solid #e8e8ea;border-radius:20px;background:#fff;
  box-shadow:0 18px 54px rgba(20,20,26,.17);color:#171717
}
.ft-header-notification-panel[hidden]{display:none}
.ft-header-notification-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ft-header-notification-head strong{font-size:16px;letter-spacing:-.025em}
.ft-header-notification-head button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:#f3f3f4;color:#67676b;cursor:pointer}
.ft-header-notification-head button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.ft-header-notification-panel p{margin:15px 0;color:#777780;font-size:12px;line-height:1.5}
.ft-header-notification-panel>a{min-height:42px;display:grid;place-items:center;padding:8px 12px;border-radius:999px;background:#222326;color:#fff;text-decoration:none;font-size:12px;font-weight:700}
body.finance-app:not(.home-page) .avatar-menu.home-account-menu{
  width:232px;min-width:232px;padding:8px;border-radius:20px;border-color:#dededa;
  box-shadow:0 18px 44px rgba(23,23,23,.12),0 2px 8px rgba(23,23,23,.04)
}
body.finance-app:not(.home-page) .avatar-menu.home-account-menu .account-menu-item{
  min-height:48px;gap:12px;padding:10px 11px;border-radius:12px;font-size:14px;font-weight:560
}
body.finance-app:not(.home-page) .avatar-menu.home-account-menu .account-menu-icon{width:24px;height:24px;flex-basis:24px}
body.finance-app:not(.home-page) .avatar-menu.home-account-menu .account-menu-icon svg{width:21px;height:21px}
body.finance-app:not(.home-page) .avatar-menu.home-account-menu .account-menu-divider{margin:7px 8px}
body.finance-app:not(.home-page) .avatar-menu.home-account-menu .account-error:not(:empty){
  margin:5px 4px 2px;padding:8px 9px;border-radius:9px;background:#fff4f3
}
.ft-currency-sheet-handle{display:none}
.ft-currency-sheet .ft-currency-sheet-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:15px;
  padding:7px 0 17px;margin-bottom:16px;border-bottom:1px solid #eeeef0
}
.ft-currency-sheet .ft-currency-sheet-head>div{min-width:0}
.ft-currency-sheet .ft-currency-sheet-head h2{margin:0;font-size:22px;font-weight:760;letter-spacing:-.04em;line-height:1.15}
.ft-currency-sheet .ft-currency-sheet-head p{margin:5px 0 0;color:#89898f;font-size:12px;line-height:1.4}
.ft-currency-sheet .ft-currency-close{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:11px;background:#f4f4f5}
.ft-currency-sheet .ft-currency-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.ft-currency-sheet .ft-currency-search-wrap input{font-size:16px}
@media(max-width:600px){
  .ft-currency-sheet-handle{display:block;width:42px;height:5px;margin:0 auto 13px;border-radius:999px;background:#d9d9d6}
  .ft-currency-sheet .ft-currency-sheet-head{padding:3px 1px 16px;margin-bottom:14px}
  .ft-currency-sheet .ft-currency-sheet-head h2{font-size:21px}
  body.finance-app:not(.home-page) .avatar-menu.home-account-menu{min-width:0;width:min(244px,calc(100vw - 32px));border-radius:18px}
  .ft-header-notification-toggle{width:38px;height:38px}
  .app-nav-actions{gap:5px}
  .app-nav-inner{gap:8px;padding:9px 9px 9px 12px}
  .app-nav-actions>.theme-select,.app-nav-actions>.mobile-nav-toggle{display:none!important}
  .app-nav-actions>.app-sheet-link{display:none!important}
  .app-nav .app-wordmark{width:128px}
}
@media(max-width:390px){
  .app-nav .app-wordmark{width:112px}
  .app-nav-inner{padding-inline:9px}
  .ft-header-notification-toggle{width:36px;height:36px}
}
@media(prefers-reduced-motion:reduce){
  .ft-header-notification-toggle{transition:none}
}
