/* Phone dimensions use CSS points; native screen pixels do not change the scale. */
@media(max-width:760px){
  body:not(.landing-mode){font-size:14px;line-height:1.5}
  body:not(.landing-mode) .topbar{height:48px;padding-inline:16px}
  body.native-app:not(.landing-mode) .topbar{height:calc(48px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-inline:16px}
  body:not(.landing-mode) .breadcrumb>strong{font-size:15px;line-height:1.4}
  body:not(.landing-mode) .breadcrumb{gap:8px}
  body:not(.landing-mode) .breadcrumb .mobile-brand{width:28px;height:44px;min-width:28px}
  body:not(.landing-mode) .mobile-brand svg{width:22px;height:22px}
  body:not(.landing-mode) .profile-button{width:44px;height:44px;border:0;background:none}
  body:not(.landing-mode) .profile-button svg{width:20px;height:20px}
  body:not(.landing-mode) main{padding:4px 16px calc(76px + env(safe-area-inset-bottom))}
  body.native-app:not(.landing-mode) main{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  body:not(.landing-mode) .mobile-nav{height:calc(58px + env(safe-area-inset-bottom));padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
  body:not(.landing-mode) .mobile-nav>a{min-height:48px;gap:1px;font-size:10px;line-height:1.4}
  body:not(.landing-mode) .mobile-nav>a>span{width:38px;height:26px;border-radius:8px}
  body:not(.landing-mode) .mobile-nav>a svg{width:20px;height:20px}
  body:not(.landing-mode) .button{min-height:44px;padding:9px 12px;font-size:13px;border-radius:11px}
  body:not(.landing-mode) .page-heading{margin:6px 0 14px;gap:10px}
  body:not(.landing-mode) .page-heading h1{font-size:21px;line-height:1.5;letter-spacing:-.3px}
  body:not(.landing-mode) .page-heading p{font-size:13px;line-height:1.7;margin-top:3px}
  body:not(.landing-mode) .heading-actions .button{min-height:44px;font-size:13px}
  .ez-home .ez-welcome{margin:2px 0 10px;gap:10px;min-height:44px}
  .ez-home .ez-welcome h1{font-size:21px;line-height:1.4;letter-spacing:-.3px}
  .ez-home .ez-welcome p{font-size:12px;line-height:1.6;margin-top:3px}
  .ez-home .ez-day-mark{width:34px;height:34px;border-radius:12px}
  .ez-home .ez-day-mark svg{width:21px;height:21px}
  .ez-home .ez-demo{font-size:11px;margin:-5px 0 6px;min-height:30px}
  .ez-home .ez-demo button{font-size:11px;min-height:36px}
  .ez-home .ez-balance{padding:8px 15px 0;border-radius:18px}
  .ez-home .mb-balance-head{min-height:34px}
  .ez-home .mb-balance-head h2{font-size:14px;line-height:1.5}
  .ez-home .ez-balance .mb-eye{width:44px;height:36px;min-width:44px;position:relative}
  .ez-home .ez-balance .mb-eye::after{content:'';position:absolute;inset:-4px 0}
  .ez-home .ez-balance .mb-eye svg{width:19px;height:19px}
  .ez-home .ez-balance .mb-balance-value{font-size:33px;min-height:46px;line-height:1.35;padding:0 0 1px;letter-spacing:-1px}
  .ez-home .ez-balance .mb-balance-value .currency{font-size:12px;margin-right:5px}
  .ez-home .ez-balance-meta{font-size:11px;min-height:28px;margin:0 0 2px;line-height:1.6}
  .ez-home .ez-balance-meta button{width:36px;height:30px;position:relative}
  .ez-home .ez-balance-meta button::after{content:'';position:absolute;inset:-7px -4px}
  .ez-home .ez-balance-meta button svg{width:15px;height:15px}
  .ez-home .ez-payday{padding:7px 0;min-height:32px;font-size:11px;gap:6px;line-height:1.6}
  .ez-home .ez-payday>svg{width:14px;height:14px}
  .ez-home .ez-payday small{font-size:10px}
  .ez-home .ez-actions{margin:9px 0 12px;gap:9px}
  .ez-home .ez-actions>button{min-height:44px;padding:8px 10px;font-size:13px;gap:7px;border-radius:12px}
  .ez-home .ez-actions>button svg{width:19px;height:19px}
  .ez-home .ez-glance{gap:9px;margin:0 0 10px}
  .ez-home .ez-glance>button{display:grid;grid-template-columns:minmax(0,1fr) 26px;grid-template-rows:auto auto auto;align-content:center;column-gap:5px;row-gap:3px;min-height:108px;padding:11px 12px;border-radius:15px}
  .ez-home .ez-glance .ez-card-symbol{grid-column:2;grid-row:1;width:26px;height:26px;border-radius:8px}
  .ez-home .ez-card-symbol svg{width:16px;height:16px}
  .ez-home .ez-glance>button>span:not(.ez-card-symbol){grid-row:1;grid-column:1;font-size:12px;line-height:1.6;margin:0;align-self:center}
  .ez-home .ez-glance>button>strong{grid-row:2;grid-column:1/-1;font-size:22px;line-height:1.4}
  .ez-home .ez-glance>button small{grid-row:3;grid-column:1/-1;font-size:11px;line-height:1.6;margin:0}
  .ez-home .ez-glance>button>.ez-no-due{font-size:14px;line-height:1.6}
  .ez-home .ez-glance .currency{font-size:10px}
  .ez-home .ez-review{min-height:44px;padding:9px 12px;border-radius:12px;font-size:12px;margin-bottom:10px;gap:7px}
  .ez-home .ez-review svg{width:17px;height:17px}
  .ez-home .ez-review small{font-size:11px}
  .ez-home .ez-recent{margin-top:3px}
  .ez-home .mb-section-head{min-height:34px;margin:0 0 5px}
  .ez-home .mb-section-head h2{font-size:14px}
  .ez-home .mb-section-head>button{min-height:44px;font-size:12px}
  .ez-home .mb-list{padding-inline:12px;border-radius:15px}
  .ez-home .mb-transaction{min-height:60px;padding:10px 0;gap:8px}
  .ez-home .mb-row-icon{width:30px;height:30px;border-radius:9px}
  .ez-home .mb-row-icon svg{width:17px;height:17px}
  .ez-home .mb-row-copy>strong{font-size:13px;line-height:1.5}
  .ez-home .mb-row-copy>small{font-size:11px;line-height:1.5;margin-top:2px}
  .ez-home .mb-row-amount{font-size:14px;line-height:1.5}
  .ez-home .mb-row-amount small{font-size:10px;line-height:1.5;margin-top:1px}
  .ez-home .ez-first{padding:14px 10px}
  .ez-home .ez-first-icon{width:38px;height:38px;border-radius:12px;margin-bottom:7px}
  .ez-home .ez-first-icon svg{width:23px;height:23px}
  .ez-home .ez-first strong{font-size:13px}
  .ez-home .ez-first p{font-size:12px;line-height:1.6;margin-top:3px}
  .ez-home .ez-home-links{gap:9px;margin:7px 0 0}
  .ez-home .ez-home-links>button{min-height:48px;gap:7px;padding:8px 2px;font-size:11px}
  .ez-home .ez-home-links>button>svg{width:18px;height:18px}
  .ez-home .ez-home-links>button small{font-size:10px;line-height:1.5;margin-top:2px}
  .mb-account>header{gap:10px;margin:4px 0 15px}
  .mb-account .mb-account-avatar{width:40px;height:40px;border-radius:13px}
  .mb-account .mb-account-avatar svg{width:23px;height:23px}
  .mb-account h1{font-size:21px;line-height:1.5}
  .mb-account header p{font-size:12px;line-height:1.6;margin-top:2px}
  .mb-account .mb-menu-label{font-size:12px;margin:16px 2px 7px}
  .mb-account .mb-account-menu{padding-inline:12px;border-radius:14px}
  .mb-account .mb-account-row{min-height:61px;padding:11px 0;gap:10px}
  .mb-account .mb-row-icon{width:32px;height:32px;border-radius:10px}
  .mb-account .mb-row-icon svg{width:18px;height:18px}
  .mb-account .mb-account-row strong{font-size:13px;line-height:1.5}
  .mb-account .mb-account-row small{font-size:11px;line-height:1.5;margin-top:2px}
  .mb-account .mb-account-plan{border-radius:15px;padding:14px;gap:10px}
  .mb-account .mb-account-plan h2{font-size:19px;line-height:1.5;margin-top:2px}
  .mb-account .mb-account-plan>div>span{font-size:11px}
  .mb-account .mb-account-plan>button:not(.text-button){font-size:12px;min-height:44px;padding:8px 11px}
  .mb-account .mb-privacy{padding:16px 5px 5px;gap:8px}
  .mb-account .mb-privacy strong,.mb-account .mb-privacy p{font-size:11px;line-height:1.6}
  .ez-goal-card{gap:8px;padding:14px;border-radius:15px}
  .ez-goal-top .goal-icon{width:34px;height:34px;border-radius:11px}
  .ez-goal-top .goal-icon svg{width:20px;height:20px}
  .ez-goal-card h2{font-size:16px;line-height:1.5}
  .ez-goal-card>strong{font-size:22px;line-height:1.4}
  .ez-goal-card>p,.ez-goal-card>small{font-size:12px;line-height:1.6}
  .ez-goal-card .goal-progress{height:5px}
  .ez-bills-list{gap:9px}
  .ez-bill-row{padding:12px;gap:10px;min-height:70px;border-radius:14px}
  .ez-bill-row .payment-icon{width:32px;height:32px;border-radius:10px}
  .ez-bill-copy strong{font-size:14px;line-height:1.5}
  .ez-bill-copy small{font-size:12px;line-height:1.6;margin-top:2px}
  .ez-bill-value{font-size:19px;line-height:1.4}
  .ez-list-note{font-size:12px;line-height:1.7;margin:11px 2px}
  .ez-plan-available{padding:14px;border-radius:15px;gap:9px}
  .ez-plan-available strong{font-size:14px;line-height:1.6}
  .ez-plan-available small,.ez-plan-note{font-size:12px;line-height:1.7}
  .ez-plan-available>span:last-child{font-size:24px;line-height:1.4}
  .ez-plan-metrics{gap:9px}
  .ez-plan-metrics>button{padding:12px;border-radius:14px}
  .ez-plan-metrics>button span{font-size:12px}
  .ez-plan-metrics strong{font-size:22px;margin-top:5px}
  .ez-planning .mb-forecast{padding:14px;border-radius:15px;margin:15px 0}
  .ez-planning .mb-section-head h2{font-size:16px}
  .ez-planning .mb-chart{height:175px}
  .ez-plan-actions{gap:8px;margin-top:12px}
  .ez-plan-actions>button{min-height:44px;font-size:13px}
  .ez-plan-notes{padding:12px;border-radius:14px;margin:12px 0}
  .ez-plan-notes summary{font-size:13px;min-height:32px}
  .ez-plan-notes p{font-size:12px;line-height:1.7;margin:9px 0}
  .cl-section-nav{min-height:36px;margin-bottom:3px;font-size:12px}
  .cl-section-nav>button{min-height:40px}
  .cl-money-tabs{padding-bottom:8px;margin-bottom:5px;gap:5px}
  .cl-money-tabs>button{min-height:44px;padding:8px 4px;border-radius:10px;font-size:12px}
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog){padding:21px 16px 0;border-radius:18px 18px 0 0}
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog)::before{width:30px;height:4px;margin:-10px auto 12px}
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog) .dialog-top{gap:10px;margin-bottom:15px}
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog) .dialog-top h2{font-size:19px;line-height:1.45;letter-spacing:-.2px}
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog) .dialog-top .eyebrow{font-size:11px;line-height:1.6;margin-bottom:2px}
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog) .dialog-top .icon-button{width:44px;height:44px;min-width:44px;background:none;border:0}
  :is(#editor-dialog,#extras-dialog,#debt-dialog) .form-grid{gap:13px 12px}
  :is(#editor-dialog,#extras-dialog,#debt-dialog) .field{gap:6px}
  :is(#editor-dialog,#extras-dialog,#debt-dialog) .field label,:is(#editor-dialog,#extras-dialog,#debt-dialog) .field-label{font-size:13px;line-height:1.5}
  :is(#editor-dialog,#extras-dialog,#debt-dialog) .field input,:is(#editor-dialog,#extras-dialog,#debt-dialog) .field select,:is(#editor-dialog,#extras-dialog,#debt-dialog) .field textarea{font-size:16px;min-height:46px;padding:10px 12px;border-radius:10px}
  #editor-dialog .ez-amount-field input{font-size:28px;min-height:60px;line-height:1.3;padding-block:10px}
  .ez-form-details{margin-top:12px;padding-inline:12px;border-radius:11px}
  .ez-form-details>summary{font-size:13px;min-height:44px}
  .ez-form-caption{font-size:12px;line-height:1.6;margin-top:9px}
  .ez-form-message{font-size:12px;min-height:44px;margin-top:3px}
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog) .dialog-actions{gap:8px;margin-top:15px;padding-top:12px}
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog) .dialog-actions .button{min-height:46px;padding:10px 13px;font-size:14px;border-radius:11px}
  :is(#editor-dialog,#extras-dialog,#debt-dialog) .dialog-note{padding:10px 12px;font-size:12px;line-height:1.7;margin-top:12px}
  body:not(.landing-mode) .toast,body:not(.landing-mode) .app-update{bottom:calc(68px + env(safe-area-inset-bottom))}
}
@media(max-width:760px){
  :is(#editor-dialog,#extras-dialog,#plan-dialog,#import-dialog,#limit-dialog,#debt-dialog,#detail-dialog) .dialog-actions{margin:15px -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}
  :is(#editor-dialog,#extras-dialog,#debt-dialog) .dialog-actions .delete-button{min-height:46px;font-size:13px;padding:9px 12px}
}
