/* The phone UI has its own hierarchy, density and safe-area behavior. */
html.app-mode{scroll-behavior:auto}
.mb-dashboard,.mb-account{color:#102538;--mb-ink:#102538;--mb-muted:#536477;--mb-blue:#0f766e;--mb-line:#e6ebf2;font-variant-numeric:tabular-nums}
.mb-dashboard button,.mb-account button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mb-dashboard button:focus-visible,.mb-account button:focus-visible{outline:3px solid #0f766e55;outline-offset:3px}
.mb-context{display:flex;justify-content:space-between;align-items:center;min-height:32px;margin-bottom:10px;font-size:15px;font-weight:500}
.mb-context>span:last-child{font-size:12px;font-weight:400;color:#536477}
.mb-context .mb-demo-label{background:#e9eef5;border-radius:6px;padding:3px 7px;color:#536477}
.mb-balance{position:relative;overflow:hidden;padding:16px 20px 8px;background:#102b43;background-image:radial-gradient(ellipse at 10% 0,#1a5278,transparent 75%);border:1px solid #193b58;border-radius:22px;color:#fff;box-shadow:0 8px 24px #10253812}
.mb-balance::after{content:'';position:absolute;left:-70px;top:15px;width:190px;height:190px;border:1px solid #ffffff0e;border-radius:50%;pointer-events:none;box-shadow:0 0 0 27px #ffffff03,0 0 0 55px #ffffff03}
.mb-balance-head{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px}
.mb-balance-head h1{font-size:15px;font-weight:400;color:#d5e4f2;line-height:1.5;letter-spacing:0}
.mb-eye{width:44px;height:44px;min-width:44px;display:grid;place-items:center;background:none;border:0;color:#b9d3e7;border-radius:10px}
.mb-eye svg{width:21px;height:21px}
.mb-balance-value{position:relative;z-index:1;font-size:40px;font-weight:500;line-height:1.4;letter-spacing:-1.2px;min-height:64px;padding:3px 0 9px;overflow-wrap:anywhere}
.mb-balance-value .number{font:inherit;color:inherit;font-variant-numeric:tabular-nums;direction:ltr;display:inline-block}
.mb-balance-value .currency{font-size:15px;font-weight:400;color:#b9d3e7;letter-spacing:0;margin-right:8px}
.mb-balance-value.is-negative{color:#ffbdaf}
.mb-hidden-balance{letter-spacing:5px;font-size:32px}
.mb-balance-foot{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ffffff1a;font-size:12px;color:#b9d3e7;min-height:45px}
.mb-balance-foot button{border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:7px;min-height:44px;font-size:12px;padding:0}
.mb-balance-foot button svg{width:15px;height:15px}
.mb-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 20px}
.mb-quick-actions>button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:8px;color:#33485e;font-size:13px;font-weight:500;min-height:78px;padding:0}
.mb-action-icon{display:grid;place-items:center;width:52px;height:52px;background:#fff;border:1px solid #e1e8f1;border-radius:17px;color:#0f766e;box-shadow:0 2px 5px #10253803}
.mb-action-icon svg{width:23px;height:23px;stroke-width:1.8}
.mb-action-icon.is-primary{background:#0f766e;border-color:#0f766e;color:#fff;box-shadow:0 4px 10px #0f766e26}
.mb-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mb-metrics article{background:#fff;border:1px solid #e6ebf2;border-radius:17px;padding:16px;min-width:0}
.mb-metrics article>span{font-size:12px;display:flex;align-items:center;gap:6px;color:#536477;line-height:1.6}
.mb-metrics article>span svg{width:16px;height:16px;flex-shrink:0;color:#71869c}
.mb-metrics strong{display:block;font-size:23px;font-weight:500;letter-spacing:-.5px;margin:8px 0 2px;line-height:1.4;overflow-wrap:anywhere}
.mb-metrics strong .currency{font-size:11px;color:#536477;margin-right:4px}
.mb-metrics article>small{font-size:12px;color:#64748b;display:block;line-height:1.7}
.mb-available{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:8px;min-height:58px;padding:8px 8px 8px 12px;border-bottom:1px solid #e2e8f0;margin:3px 0 17px}
.mb-available>span{font-size:12px;color:#536477;line-height:1.7}
.mb-available>strong{font-size:16px;font-weight:500;min-width:0;overflow-wrap:anywhere}
.mb-available .currency{font-size:11px;color:#64748b;margin-right:4px}
.mb-available>button{height:44px;width:44px;display:grid;place-items:center;background:none;border:0;color:#64748b;border-radius:12px}
.mb-available>button svg{width:19px;height:19px}
.mb-dashboard .is-negative{color:#b42318}
.mb-dashboard .mb-balance-value.is-negative{color:#ffbdaf}
.mb-alerts{border:1px solid #f2dfc5;background:#fffaf1;border-radius:15px;margin:0 0 22px;color:#855524;overflow:hidden}
.mb-alerts summary{list-style:none;display:flex;align-items:center;gap:11px;min-height:68px;cursor:pointer;padding:13px 14px}
.mb-alerts summary::-webkit-details-marker{display:none}
.mb-alert-icon{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:11px;background:#fbecd8;color:#a36522}
.mb-alert-icon svg{width:20px;height:20px}
.mb-alerts summary strong{font-size:14px;font-weight:500;display:block;line-height:1.7}
.mb-alerts summary small{font-size:12px;display:block;color:#855d38;line-height:1.7}
.mb-alert-count{margin-right:auto;flex-shrink:0;display:grid;place-items:center;width:24px;height:24px;border:1px solid #efd6b4;border-radius:8px;font-size:12px}
.mb-alerts ul{font-size:13px;line-height:1.9;padding:0 30px 0 16px;margin:0 0 10px;color:#855d38}
.mb-alerts>button{margin:0 14px 10px;color:#855524;min-height:44px;font-size:13px}
.mb-section{margin:22px 0}
.mb-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:8px}
.mb-section-head h2{font-size:17px;font-weight:500;letter-spacing:-.3px;color:#102538}
.mb-section-head>button{min-height:44px;padding:0 2px;background:none;border:0;color:#0f766e;font-size:13px}
.mb-section-head>span{font-size:12px;color:#64748b}
.mb-list{background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:0 16px;overflow:hidden}
.mb-transaction,.mb-bill{display:flex;align-items:center;gap:11px;width:100%;min-height:78px;padding:14px 0;border:0;border-bottom:1px solid #edf1f6;background:none;color:#102538;text-align:right}
.mb-transaction:last-child,.mb-bill:last-child{border-bottom:0}
.mb-row-icon{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:#eef3fa;color:#54708c}
.mb-row-icon svg{width:21px;height:21px;stroke-width:1.8}
.mb-row-icon.is-income{background:#e8f7f0;color:#087f5b}
.mb-row-copy{min-width:0;flex:1}
.mb-row-copy>strong{font-size:14px;font-weight:500;line-height:1.6;display:block;overflow-wrap:anywhere}
.mb-row-copy>small{display:block;font-size:12px;color:#64748b;line-height:1.7;margin-top:3px}
.mb-row-copy>small.is-overdue{color:#b42318}
.mb-row-amount{font-size:15px;font-weight:500;line-height:1.5;text-align:left;flex-shrink:0;max-width:43%;overflow-wrap:anywhere}
.mb-row-amount small{display:block;font-size:11px;font-weight:400;color:#64748b;line-height:1.7;margin-top:3px}
.mb-row-amount.is-income{color:#087f5b}
.mb-empty{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:18px 0;align-items:center}
.mb-empty strong{font-size:14px;font-weight:500;display:block}
.mb-empty p{font-size:12px;line-height:1.8;color:#64748b;margin-top:3px}
.mb-empty .button{grid-column:1/-1;margin-top:4px;min-height:44px;width:100%;font-size:14px;border-radius:11px;justify-content:center}
.mb-payday{display:flex;gap:11px;align-items:center;padding:16px;background:#ecf8f3;border:1px solid #dae7fc;border-radius:17px;margin:22px 0}
.mb-payday .mb-row-icon{background:#fff;color:#0f766e}
.mb-payday .mb-row-copy>small{font-size:11px;color:#536477}
.mb-payday>button{border:0;background:none;min-height:44px;color:#0f766e;font-size:12px;font-weight:500;white-space:nowrap;padding:0}
.mb-goal-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(230px,75%);gap:12px;overflow-x:auto;padding:2px 1px 8px;scroll-snap-type:x proximity;scrollbar-width:none}
.mb-goal-track::-webkit-scrollbar{display:none}
.mb-goal{display:flex;flex-direction:column;align-items:stretch;gap:11px;background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:16px;text-align:right;color:#102538;scroll-snap-align:start;min-width:0}
.mb-goal-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mb-goal-top .mb-row-icon{width:34px;height:34px;border-radius:11px;color:#0f766e;background:#ecf8f3}
.mb-goal-top small{font-size:12px;color:#536477}
.mb-goal>strong{font-size:15px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
.mb-goal-value{font-size:19px;font-weight:500;line-height:1.5}
.mb-goal-value small{font-size:11px;font-weight:400;color:#64748b}
.mb-goal-progress{height:5px;width:100%;background:#edf1f6;border-radius:8px;overflow:hidden}
.mb-goal-progress i{display:block;height:100%;background:#4382e7;border-radius:8px}
.mb-goal>small{font-size:11px;line-height:1.7;color:#64748b}
.mb-goal-new{min-height:165px;justify-content:center;text-align:center;align-items:center}
.mb-goal-new>svg{width:28px;height:28px;color:#0f766e}
.mb-forecast{background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:16px;margin:24px 0 6px}
.mb-forecast .mb-section-head{margin-bottom:8px;min-height:32px}
.mb-forecast .chart-controls{display:flex;width:100%;gap:3px;background:#f0f4f9;border:0;padding:3px;border-radius:10px;margin:10px 0}
.mb-forecast .chart-controls button{min-height:40px;flex:1;font-size:12px;border-radius:8px;color:#64748b}
.mb-forecast .chart-controls button.active{background:#fff;color:#0f766e;box-shadow:0 1px 3px #10253809}
.mb-chart{height:175px;width:100%}
.mb-forecast .cash-chart .chart-line{stroke:#0f766e;stroke-width:2.4}
.mb-forecast .cash-chart .chart-dot{stroke:#0f766e}
.mb-forecast .cash-chart .chart-dot.selected{fill:#0f766e}
.mb-forecast .cash-chart text{fill:#64748b;font-size:11px}
.mb-chart-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e6ebf2;padding-top:12px;font-size:11px;color:#64748b}
.mb-chart-detail strong{font-size:16px;color:#102538;font-weight:500}
.mb-chart-detail .currency{font-size:11px}
.mb-forecast>p{font-size:11px;color:#64748b;line-height:1.8;margin-top:10px}
.mb-account{max-width:760px;margin:0 auto}
.mb-account>header{display:flex;gap:14px;align-items:center;margin:8px 0 24px}
.mb-account-avatar{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#e6f5ef;color:#0f766e;flex-shrink:0}
.mb-account-avatar svg{width:28px;height:28px}
.mb-account h1{font-size:23px;font-weight:500;line-height:1.6;letter-spacing:-.5px}
.mb-account header p{font-size:13px;line-height:1.8;color:#64748b;margin-top:3px}
.mb-account-plan{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#102b43;color:#fff;border-radius:18px;padding:20px}
.mb-account-plan>div>span{font-size:12px;color:#b9d3e7}
.mb-account-plan h2{font-size:21px;font-weight:500;line-height:1.6;margin-top:4px;color:#fff}
.mb-account-plan>button:not(.text-button){border:1px solid #ffffff40;color:#fff;background:#ffffff0d;min-height:44px;border-radius:11px;padding:8px 12px;font-size:13px}
.mb-account-plan .text-button{width:100%;font-size:13px;color:#c3d9f1;min-height:44px}
.mb-menu-label{font-size:13px;font-weight:500;color:#64748b;margin:24px 3px 10px}
.mb-account-menu{background:#fff;border:1px solid #e6ebf2;border-radius:17px;padding:0 16px}
.mb-account-row{width:100%;display:flex;align-items:center;gap:13px;background:none;border:0;border-bottom:1px solid #edf1f6;padding:16px 0;color:#102538;text-align:right;min-height:78px}
.mb-account-row:last-child{border-bottom:0}
.mb-account-row>span:last-child{min-width:0}
.mb-account-row strong{font-size:15px;font-weight:500;line-height:1.7;display:block}
.mb-account-row small{display:block;font-size:12px;color:#64748b;line-height:1.7;margin-top:2px}
.mb-privacy{display:flex;align-items:flex-start;gap:10px;padding:24px 12px 12px;color:#64748b}
.mb-privacy>svg{width:20px;height:20px;flex-shrink:0;margin-top:2px}
.mb-privacy strong{font-size:12px;font-weight:500;display:block;color:#536477}
.mb-privacy p{font-size:12px;line-height:1.8;margin-top:4px}
@media(max-width:760px){
  body:not(.landing-mode){background:#f6f8fb;color:#102538;font-size:16px;line-height:1.6;--bg:#f6f8fb;--ink:#102538;--muted:#64748b;--line:#e6ebf2;--green:#0f766e;--deep:#0b625b;--surface:#fff}
  body:not(.landing-mode) .app-shell{margin:0;min-height:100dvh}
  body:not(.landing-mode) .topbar{position:sticky;top:0;z-index:35;height:60px;padding:0 20px;background:#f6f8fbf5;backdrop-filter:blur(16px);border-bottom:0}
  body.native-app:not(.landing-mode) .topbar{height:calc(60px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-inline:20px;background:#f6f8fb}
  body:not(.landing-mode) .breadcrumb{display:flex;gap:10px;align-items:center;min-width:0}
  body:not(.landing-mode) .breadcrumb>span{display:none}
  body:not(.landing-mode) .breadcrumb>strong{font-size:17px;color:#102538;font-weight:500;line-height:1.5;white-space:nowrap}
  body:not(.landing-mode) .breadcrumb .mobile-brand{display:grid;place-items:center;width:28px;height:40px;min-width:28px;background:none;border:0;border-radius:8px;color:#0f766e;padding:0}
  body:not(.landing-mode) .mobile-brand svg{width:25px;height:25px;stroke-width:1.8}
  body:not(.landing-mode) .topbar-actions{gap:0}
  body:not(.landing-mode) .topbar-actions .today,body:not(.landing-mode) #export-plan{display:none}
  body:not(.landing-mode) .profile-button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid #e0e7f0;color:#536f8c;padding:0}
  body:not(.landing-mode) .profile-button svg{width:21px;height:21px}
  body:not(.landing-mode) main{padding:6px 20px calc(90px + env(safe-area-inset-bottom));max-width:760px;margin:0 auto}
  body.native-app:not(.landing-mode) main{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
  body:not(.landing-mode) #plan-status,body:not(.landing-mode) #demo-banner,body:not(.landing-mode) .page-footer{display:none!important}
  body:not(.landing-mode) svg.icon{stroke-width:1.8}
  body:not(.landing-mode) .button{border-radius:12px;min-height:46px;font-size:14px;color:#0f766e;border-color:#dce5f1;background:#fff;padding:10px 15px;line-height:1.5}
  body:not(.landing-mode) .button-primary{background:#0f766e;border-color:#0f766e;color:#fff}
  body:not(.landing-mode) .button-primary:hover{background:#0b625b;border-color:#0b625b}
  body:not(.landing-mode) .page-heading{display:flex;align-items:flex-start;flex-wrap:wrap;gap:16px;margin:12px 0 22px}
  body:not(.landing-mode) .page-heading .eyebrow{display:none}
  body:not(.landing-mode) .page-heading h1{font-size:24px;line-height:1.5;font-weight:500;letter-spacing:-.5px;color:#102538}
  body:not(.landing-mode) .page-heading p{font-size:14px;line-height:1.8;color:#536477;max-width:none;margin-top:6px}
  body:not(.landing-mode) .page-heading .heading-actions{margin-top:0;width:100%}
  body:not(.landing-mode) .heading-actions .button{width:100%;min-height:46px;font-size:14px}
  body:not(.landing-mode) .mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:0;height:calc(68px + env(safe-area-inset-bottom));padding:7px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #e5ebf2;background:#fffffffa;backdrop-filter:blur(18px);box-shadow:0 -4px 20px #10253804}
  body:not(.landing-mode) .mobile-nav>a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:52px;gap:3px;padding:0 2px;color:#7a8797;font-size:11px;font-weight:400;line-height:1.4;border-radius:10px}
  body:not(.landing-mode) .mobile-nav>a>span{display:grid;place-items:center;width:44px;height:29px;border-radius:10px}
  body:not(.landing-mode) .mobile-nav>a svg{width:22px;height:22px;stroke-width:1.75}
  body:not(.landing-mode) .mobile-nav>a.active{color:#0f766e;font-weight:500}
  body:not(.landing-mode) .mobile-nav>a.active>span{background:#e6f5ef}
  body:not(.landing-mode) .toast{bottom:calc(80px + env(safe-area-inset-bottom));border-radius:14px;background:#102b43;color:#fff;max-width:calc(100% - 32px);font-size:13px;line-height:1.7;box-shadow:0 8px 24px #10253820}
  body:not(.landing-mode) .toast button,body:not(.landing-mode) .toast svg{color:#b5d0ff}
  body:not(.landing-mode) .app-update{bottom:calc(80px + env(safe-area-inset-bottom));background:#102b43;font-size:13px}
  body:not(.landing-mode) .app-update button{background:#e5eeff;color:#0f766e}
  body:not(.landing-mode) :is(button,a,input,select):focus-visible{outline-color:#0f766e77}
  .mb-dashboard button:active .mb-action-icon,.mb-transaction:active,.mb-bill:active,.mb-account-row:active{background-color:#e6f5ef}
}
@media(max-width:370px){
  body:not(.landing-mode) main{padding-inline:16px}
  body:not(.landing-mode) .topbar,body.native-app:not(.landing-mode) .topbar{padding-inline:16px}
  .mb-balance{padding-inline:18px;border-radius:19px}
  .mb-balance-value{font-size:36px}
  .mb-metrics article{padding:14px 12px}
  .mb-metrics article>span{font-size:11px}
  .mb-metrics strong{font-size:21px}
  .mb-quick-actions{gap:8px}
  .mb-row-amount{font-size:14px}
  .mb-list{padding-inline:12px}
}
@media(prefers-reduced-motion:reduce){.mb-goal-track{scroll-behavior:auto}body:not(.landing-mode){scroll-behavior:auto}}

@media(max-width:760px){body:not(.landing-mode) .breadcrumb .mobile-brand{position:relative}body:not(.landing-mode) .breadcrumb .mobile-brand::before{content:"";position:absolute;inset:-2px -8px}}
