body.h5-mode{--h5-orange:#f65a0a;--h5-ink:#201d1a;--h5-muted:#756d66;--h5-line:#eadfd5;--h5-card:#fff;min-height:100dvh;background:#ebe8e5;color:var(--h5-ink);overscroll-behavior-y:none}
body.h5-mode .customer-sidebar{display:none!important}
body.h5-mode .main-shell{width:min(100%,560px);min-height:100dvh;margin:0 auto!important;background:#fbfaf8;box-shadow:0 0 60px #38291d1a;padding-bottom:calc(78px + env(safe-area-inset-bottom))}
body.h5-mode .customer-topbar{position:sticky;z-index:45;top:0;width:min(100%,560px);height:68px;margin:0 auto!important;padding:10px 15px!important;border:0;border-bottom:1px solid #efe5dd;background:#fffdfaf2;backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;gap:10px}
body.h5-mode .quick-actions{display:none!important}
body.h5-mode.h5-menu-open{overflow:hidden}
.h5-menu-button{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;padding:0;border:1px solid #eadfd5;border-radius:12px;background:#fff;color:#493a31}
.h5-menu-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
body.h5-mode .h5-brand{display:flex;align-items:center;gap:9px;min-width:0;margin-right:auto;color:var(--h5-ink)}
.h5-brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;color:#fff;background:linear-gradient(145deg,#ff7428,#ed4300);font:800 13px/1 Arial;box-shadow:0 7px 18px #e94b1730}
.h5-brand>span:last-child{display:flex;flex-direction:column;line-height:1.05}.h5-brand strong{font-size:13px;letter-spacing:-.2px}.h5-brand small{margin-top:3px;color:#ad4a1b;font-size:8px;letter-spacing:1.3px;text-transform:uppercase}
body.h5-mode .customer-account{display:flex!important;align-items:center;gap:7px;margin:0}
body.h5-mode .customer-account>a:last-child{display:none!important}
body.h5-mode .customer-theme-toggle{width:37px;height:37px;padding:0;border-radius:12px;justify-content:center}body.h5-mode .customer-theme-toggle .theme-label{display:none}
body.h5-mode .notification-button,body.h5-mode .avatar{width:37px;height:37px;min-width:37px;border-radius:12px}
body.h5-mode #currency-ticker{width:min(100%,560px);margin:0 auto;border-width:0 0 1px;overflow:hidden}
body.h5-mode #currency-ticker .rate-ticker-heading{display:none}
body.h5-mode #currency-ticker .rate-ticker-track{padding-left:10px}
body.h5-mode main#content{width:100%;max-width:none!important;margin:0!important;padding:16px 13px 28px!important;overflow:hidden}
body.h5-mode main#content>.loading{min-height:60dvh;display:grid;align-content:center;text-align:center;padding:24px}
body.h5-mode h1{font-size:clamp(25px,8vw,36px)!important;line-height:1.08!important;letter-spacing:-1.3px!important}
body.h5-mode .page-heading{margin:6px 2px 18px!important;gap:12px;align-items:flex-start}
body.h5-mode .page-heading .eyebrow{font-size:8px;letter-spacing:1.8px;color:#bb5628}
body.h5-mode .page-heading p{font-size:12px;line-height:1.65}
body.h5-mode :is(.panel,.profile-card,.fund-panel,.verification-check,.credit-card,.rw-benefit-card){border-radius:18px!important;box-shadow:0 8px 30px #52311d09}
body.h5-mode :is(.split,.row,.fund-page-grid,.profile-layout,.verification-checks,.credit-grid){grid-template-columns:minmax(0,1fr)!important}
body.h5-mode :is(.cards,.stats){grid-template-columns:minmax(0,1fr)!important}
body.h5-mode .panel{padding:18px 16px}
body.h5-mode :is(input,select,textarea){font-size:16px!important}
body.h5-mode :is(button,.primary,.secondary,.danger){min-height:44px}
body.h5-mode .table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
body.h5-mode .customer-chat-dock,body.h5-mode .support-dock{bottom:calc(76px + env(safe-area-inset-bottom))!important;right:max(10px,calc((100vw - 540px)/2 + 10px))!important;max-height:calc(100dvh - 160px)!important}
body.h5-mode .support-launcher{bottom:calc(84px + env(safe-area-inset-bottom))!important;right:max(14px,calc((100vw - 532px)/2 + 14px))!important}
body.h5-mode #toast{z-index:90;left:50%!important;bottom:calc(86px + env(safe-area-inset-bottom));width:min(90%,460px);text-align:center}
.h5-bottom-nav{position:fixed;z-index:70;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,560px);height:calc(68px + env(safe-area-inset-bottom));padding:7px 6px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(6,1fr);gap:2px;border-top:1px solid #e9ded5;background:#fffdfaf2;backdrop-filter:blur(20px);box-shadow:0 -12px 32px #3d261417}
.h5-bottom-nav :is(a,button){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;border:0;border-radius:12px;background:transparent;color:#8a7c71;font:600 8.5px/1.1 Arial;padding:4px 1px}
.h5-bottom-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.h5-bottom-nav :is(a,button).active{color:var(--h5-orange);background:#fff2e9}.h5-bottom-nav :is(a,button).active:before{content:"";position:absolute;top:-8px;width:24px;height:3px;border-radius:0 0 4px 4px;background:var(--h5-orange)}
.h5-drawer-backdrop{position:fixed;z-index:82;inset:0;background:#1e1510a6;backdrop-filter:blur(4px);animation:h5-fade-in .18s ease-out}
.h5-sidebar{position:fixed;z-index:84;inset:0 auto 0 max(0px,calc((100vw - 560px)/2));width:min(86vw,340px);display:flex;flex-direction:column;overflow:hidden;background:#fffdfb;color:var(--h5-ink);box-shadow:24px 0 70px #1d120d45;animation:h5-drawer-in .2s ease-out}
.h5-sidebar[hidden],.h5-drawer-backdrop[hidden]{display:none!important}
.h5-sidebar>header{display:flex;align-items:center;gap:10px;min-height:76px;padding:13px 15px;border-bottom:1px solid #eee3da;background:linear-gradient(135deg,#fffaf6,#fff)}
.h5-sidebar-brand{display:flex;align-items:center;gap:10px;min-width:0;color:var(--h5-ink)}
.h5-sidebar-brand>span:last-child{display:flex;flex-direction:column;min-width:0}.h5-sidebar-brand strong{font-size:13px}.h5-sidebar-brand small{margin-top:4px;color:#a75a35;font-size:9px;letter-spacing:1px;text-transform:uppercase}
.h5-sidebar>header>button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;margin-left:auto;padding:0;border:1px solid #eaded5;border-radius:50%;background:#fff;color:#493a31;font-size:24px;line-height:1}
.h5-sidebar>nav{display:flex;flex-direction:column;gap:4px;min-height:0;padding:12px 10px;overflow:auto;overscroll-behavior:contain}
.h5-sidebar>nav>a{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:56px;padding:8px 10px;border:1px solid transparent;border-radius:14px;color:#443a33}
.h5-sidebar>nav>a.active{border-color:#ffc8aa;background:#fff3eb;color:#9e370c}
.h5-sidebar-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f6f1ed;color:#7e6c60}.h5-sidebar>nav>a.active .h5-sidebar-icon{background:#ffdfcc;color:var(--h5-orange)}
.h5-sidebar-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.h5-sidebar>nav>a>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.h5-sidebar>nav strong{font-size:12px}.h5-sidebar>nav small{margin-top:3px;color:#8c8078;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h5-sidebar>nav b{color:#d36a38;font-size:20px;font-weight:400}
.h5-sidebar>footer{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:11px 12px calc(11px + env(safe-area-inset-bottom));border-top:1px solid #eee3da;background:#fbf7f4}
.h5-sidebar>footer a{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:42px;padding:8px 10px;border:1px solid #eadfd7;border-radius:11px;background:#fff;color:#99421b;font-size:9px;font-weight:700}
.h5-sidebar>footer>button{grid-column:1/-1;display:grid;grid-template-columns:28px minmax(0,1fr) 14px;align-items:center;gap:9px;min-height:46px;padding:8px 11px;border:1px solid #e5c9bd;border-radius:11px;background:#fff7f3;color:#9b3218;text-align:left;cursor:pointer}
.h5-sidebar>footer>button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.h5-sidebar>footer>button>span{display:flex;flex-direction:column}.h5-sidebar>footer>button strong{font-size:10px}.h5-sidebar>footer>button small{margin-top:2px;color:#946f60;font-size:8px}.h5-sidebar>footer>button>b{font-size:12px;font-weight:400}.h5-sidebar>footer>button:disabled{opacity:.65;cursor:wait}
html[data-theme=dark] body.h5-mode .h5-menu-button{border-color:#45413d;background:#252a2d;color:#f3e9e1}
html[data-theme=dark] body.h5-mode .h5-drawer-backdrop{background:#050607c7}
html[data-theme=dark] body.h5-mode .h5-sidebar{background:#191d20;color:#f2ece6;box-shadow:24px 0 75px #000b}
html[data-theme=dark] body.h5-mode .h5-sidebar>header{border-color:#373b3e;background:linear-gradient(135deg,#28231f,#1c2023)}
html[data-theme=dark] body.h5-mode .h5-sidebar-brand{color:#f4eee8}
html[data-theme=dark] body.h5-mode .h5-sidebar-brand small{color:#ffad7c}
html[data-theme=dark] body.h5-mode .h5-sidebar>header>button{border-color:#49443f;background:#2a2e31;color:#f4ede7}
html[data-theme=dark] body.h5-mode .h5-sidebar>nav>a{color:#ddd5ce}
html[data-theme=dark] body.h5-mode .h5-sidebar>nav>a:hover{background:#292d2f}
html[data-theme=dark] body.h5-mode .h5-sidebar>nav>a.active{border-color:#815035;background:#3c2b22;color:#ffb182}
html[data-theme=dark] body.h5-mode .h5-sidebar-icon{background:#292e31;color:#bdb3aa}
html[data-theme=dark] body.h5-mode .h5-sidebar>nav>a.active .h5-sidebar-icon{background:#ff5b10;color:#fff}
html[data-theme=dark] body.h5-mode .h5-sidebar>nav small{color:#9f9790}
html[data-theme=dark] body.h5-mode .h5-sidebar>nav b{color:#ff9c68}
html[data-theme=dark] body.h5-mode .h5-sidebar>footer{border-color:#373b3e;background:#15191b}
html[data-theme=dark] body.h5-mode .h5-sidebar>footer a{border-color:#45413d;background:#252a2d;color:#ffb083}
html[data-theme=dark] body.h5-mode .h5-sidebar>footer>button{border-color:#5b4034;background:#2c211d;color:#ffad7c}html[data-theme=dark] body.h5-mode .h5-sidebar>footer>button small{color:#ba9b8c}
.h5-sheet-backdrop{position:fixed;z-index:78;inset:0;background:#1e151099;backdrop-filter:blur(3px)}
.h5-more-sheet{position:fixed;z-index:80;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,560px);max-height:min(82dvh,720px);overflow:auto;padding:0 15px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#fffdfb;box-shadow:0 -25px 80px #1c110d40;color:var(--h5-ink);animation:h5-sheet-in .22s ease-out}
.h5-more-sheet>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:20px 2px 14px;background:#fffdfbf2;backdrop-filter:blur(12px);border-bottom:1px solid #eee3da}
.h5-more-sheet header small{font-size:8px;letter-spacing:1.8px;color:#b4592d}.h5-more-sheet h2{margin:3px 0 0;font-size:22px}.h5-more-sheet header button{width:40px;height:40px;border:1px solid #eaded5;border-radius:50%;background:#fff;color:#453a32;font-size:24px}
.h5-more-grid{display:grid;gap:8px;padding:13px 0}.h5-more-grid>a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:67px;padding:12px 15px;border:1px solid #eee3da;border-radius:15px;background:#fff;color:var(--h5-ink)}
.h5-more-grid>a.active{border-color:#ffb58c;background:#fff5ee}.h5-more-grid span{display:flex;flex-direction:column}.h5-more-grid strong{font-size:13px}.h5-more-grid small{margin-top:4px;color:var(--h5-muted);font-size:10px}.h5-more-grid b{color:var(--h5-orange);font-size:24px;font-weight:400}
.h5-desktop-link{display:flex;align-items:center;justify-content:space-between;padding:15px;border-top:1px solid #eee3da;color:#a54316;font-size:12px;font-weight:700}
@keyframes h5-sheet-in{from{transform:translate(-50%,100%)}to{transform:translate(-50%,0)}}
@keyframes h5-drawer-in{from{transform:translateX(-105%)}to{transform:translateX(0)}}
@keyframes h5-fade-in{from{opacity:0}to{opacity:1}}
@media(max-width:380px){.h5-bottom-nav :is(a,button){font-size:7.5px}.h5-bottom-nav svg{width:19px;height:19px}body.h5-mode main#content{padding-inline:10px!important}.h5-brand strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.h5-more-sheet,.h5-sidebar,.h5-drawer-backdrop{animation:none}}

/* The regular /app/ customer workspace uses its existing sidebar as a phone drawer. */
.mobile-menu-trigger,.mobile-workspace-brand,.mobile-menu-heading,.mobile-menu-shortcuts,.mobile-menu-tools,.mobile-menu-backdrop{display:none}
@media(max-width:780px){
 body.mobile-workspace-nav.mobile-menu-open{overflow:hidden}
 body.mobile-workspace-nav .customer-topbar{position:sticky;top:0;z-index:45;display:flex;align-items:center;flex-wrap:nowrap!important;width:100%;height:68px!important;min-height:68px!important;margin:0!important;padding:0 15px!important;gap:10px;border-bottom:1px solid #ede3dc;background:#fffdfb;box-shadow:0 7px 22px #4029170d}
 body.mobile-workspace-nav .customer-topbar .quick-actions{display:none!important}
 body.mobile-workspace-nav .customer-account{display:flex;align-items:center;flex-wrap:nowrap!important;gap:7px!important;margin-left:auto;min-width:0}
 body.mobile-workspace-nav .customer-account #customer-name{display:none!important}
 body.mobile-workspace-nav .customer-account .language-picker{display:none}
 body.mobile-workspace-nav .customer-account :is(.customer-theme-toggle,.notification-button,.avatar){display:grid;place-items:center;flex:none;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border-radius:12px}
 body.mobile-workspace-nav .customer-account .theme-label{display:none}
 body.mobile-workspace-nav .mobile-menu-trigger{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #e9dcd2;border-radius:13px;background:#fff7f1;color:#9c461e}
 body.mobile-workspace-nav .mobile-menu-trigger svg{width:21px;height:21px}
 body.mobile-workspace-nav .mobile-workspace-brand{display:flex;align-items:center;flex:none;width:108px;height:58px}
 body.mobile-workspace-nav .mobile-workspace-brand img{display:block;width:108px;height:50px;object-fit:contain;object-position:left center}
 body.mobile-workspace-nav .mobile-menu-backdrop:not([hidden]){display:block;position:fixed;z-index:119;inset:0;background:#15120fb3;backdrop-filter:blur(3px)}
 body.mobile-workspace-nav .customer-sidebar{position:fixed!important;inset:0 auto 0 0!important;z-index:120;width:min(340px,calc(100vw - 42px))!important;height:100dvh;min-height:0;margin:0!important;padding:0 14px calc(16px + env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;border:0;border-right:1px solid #eadfd7;border-radius:0 22px 22px 0;background:#fffdfb;box-shadow:24px 0 60px #21140e38;transform:translateX(-105%);visibility:hidden;pointer-events:none;transition:transform .24s ease,visibility .24s}
 body.mobile-workspace-nav .customer-sidebar::-webkit-scrollbar{display:none}
 body.mobile-workspace-nav.mobile-menu-open .customer-sidebar{transform:translateX(0);visibility:visible;pointer-events:auto}
 body.mobile-workspace-nav .customer-sidebar>.workspace-brand,body.mobile-workspace-nav .customer-sidebar>.sidebar-label{display:none!important}
 body.mobile-workspace-nav .mobile-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;min-height:76px;padding:10px 2px;border-bottom:1px solid #eee4dc}
 body.mobile-workspace-nav .mobile-menu-heading img{display:block;width:122px;height:56px;object-fit:contain;object-position:left center}
 body.mobile-workspace-nav .mobile-menu-close{display:grid;place-items:center;flex:none;width:42px;height:42px;min-height:42px;border:1px solid #e9dcd2;border-radius:13px;background:#fff7f1;color:#74412b;font-size:27px;line-height:1}
 body.mobile-workspace-nav .mobile-menu-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;flex:none;margin:16px 0 17px}
 body.mobile-workspace-nav .mobile-menu-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:73px;padding:8px 4px;border:1px solid #ebded3;border-radius:15px;background:#fff8f3;color:#7c513d;text-align:center;font-size:10px;font-weight:700;line-height:1.2}
 body.mobile-workspace-nav .mobile-menu-shortcut svg{width:21px;height:21px;flex:none}
 body.mobile-workspace-nav .mobile-menu-shortcut.active{border-color:#ecaa80;background:#fff0e4;color:#ae4311}
 body.mobile-workspace-nav .customer-sidebar nav{display:flex!important;flex-direction:column!important;gap:4px!important;flex:none;margin:0!important;padding:0 0 12px!important;overflow:visible!important}
 body.mobile-workspace-nav .customer-sidebar nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 12px!important;border-radius:12px;white-space:normal;font-size:13px!important;line-height:1.3}
 body.mobile-workspace-nav .customer-sidebar nav a .nav-icon{width:21px;height:21px;flex:none}
 body.mobile-workspace-nav .mobile-menu-tools{display:block;flex:none;margin-top:auto;padding:13px 5px 4px;border-top:1px solid #eee4dc}
 body.mobile-workspace-nav .mobile-menu-tools .language-picker,body.mobile-workspace-nav .mobile-menu-tools .language-toggle{display:flex;width:100%}
 body.mobile-workspace-nav .mobile-menu-tools .language-toggle{justify-content:space-between;min-height:42px;padding:8px 12px;border-radius:12px}
 body.mobile-workspace-nav .customer-sidebar-bottom{display:grid!important;flex:none;gap:9px;margin:0;padding:12px 5px 0}
 body.mobile-workspace-nav .customer-sidebar-bottom :is(a,button){min-height:38px;align-items:center;font-size:12px}
 body.mobile-workspace-nav .customer-sidebar>.sidebar-profile{flex:none;margin:10px 0 0;padding:11px 8px}
 body.mobile-workspace-nav .customer-sidebar>.sidebar-profile .sidebar-profile-copy small{max-width:190px}
 html[data-theme=dark] body.mobile-workspace-nav .customer-topbar,html[data-theme=dark] body.mobile-workspace-nav .customer-sidebar{background:#1b1f22;border-color:#383b3d}
 html[data-theme=dark] body.mobile-workspace-nav .mobile-menu-heading,html[data-theme=dark] body.mobile-workspace-nav .mobile-menu-tools{border-color:#383b3d}
 html[data-theme=dark] body.mobile-workspace-nav :is(.mobile-menu-trigger,.mobile-menu-close,.mobile-menu-shortcut){background:#292825;border-color:#514236;color:#f1c0a0}
 html[data-theme=dark] body.mobile-workspace-nav .mobile-menu-shortcut.active{background:#493022;border-color:#9d5a2f;color:#ffb385}
 html[data-theme=dark] body.mobile-workspace-nav :is(.mobile-menu-heading,.mobile-workspace-brand) img{background:#fff;border-radius:10px;padding:3px}
}
@media(max-width:380px){body.mobile-workspace-nav .customer-topbar{gap:7px;padding-inline:10px!important}body.mobile-workspace-nav .mobile-workspace-brand,body.mobile-workspace-nav .mobile-workspace-brand img{width:91px}body.mobile-workspace-nav .customer-account{gap:4px!important}body.mobile-workspace-nav .customer-account :is(.customer-theme-toggle,.notification-button,.avatar){width:34px;height:34px;min-width:34px;min-height:34px}}
@media(prefers-reduced-motion:reduce){body.mobile-workspace-nav .customer-sidebar{transition:none}}
