/* Phones: every page uses the same header bar, the same 16px side gaps, the same 14px gap
   between cards and the same card shape. Colors and fonts are unchanged. */

/* Bottom bar: one row of pages; swipe left and right for the ones that don't fit. */
body.m-on #m-tabs{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-inline:4px}
body.m-on #m-tabs::-webkit-scrollbar{display:none}
body.m-on #m-tabs a{flex:0 0 22%;min-width:72px;scroll-snap-align:start;white-space:nowrap}

/* One header height on every page: no tall header with cards pulled up into it. */
body.m-on .m-hd.tall{padding-bottom:0}
body.m-on .m-hd.tall + .m-body{margin-top:0}
body.m-on .m-body{padding:14px 16px 110px}

/* Pin the containing header, not just its child: #m-head is only one row tall.
   Simplified pages own their header inside .m-page, while Wallet and full pages
   use #m-head. Keep both the main controls and section tabs visible on scroll. */
body.m-on #m-head,
body.m-on .view.on > .m-page > .m-hd{
  position:sticky;
  top:0;
  z-index:70;
}
body.m-on #m-head > .m-hd{position:relative;top:auto}

/* Pages that use the computer layout on phones: same gaps and card shape as the phone pages. */
body.m-on .view.on:not(.m-own) > .shell{padding-inline:16px;max-width:none}
body.m-on .view.on:not(.m-own) > .shell.app.mount{padding-top:14px;padding-bottom:110px}
body.m-on .view.on:not(.m-own) .page-head{margin:0 0 14px;padding:0;display:block}
body.m-on .view.on:not(.m-own) .page-head h1{display:none}  /* the header bar already shows the page name */
/* My Money keeps its own big title and date, like the Today page. */
body.m-on .view.on[data-view="glance"] .page-head h1{display:block}
body.m-on .view.on[data-view="glance"] .page-head p{font-size:14px;margin-top:4px}
body.m-on .view.on:not(.m-own) .page-head p{margin:0;font-size:13px;line-height:1.45;color:var(--muted)}
body.m-on .view.on:not(.m-own) .page-head .btn{margin-top:10px}
body.m-on .view.on:not(.m-own) :is(.b2-card,.card,.kpi2,.gl-today){border-radius:var(--m-r);padding:16px}
body.m-on .view.on:not(.m-own) .gl-sheet{border-radius:var(--m-r)}
body.m-on .view.on:not(.m-own) .gl{max-width:none}
body.m-on .view.on:not(.m-own) .td > * + *,
body.m-on .view.on:not(.m-own) .mount > * + *{margin-top:14px}
body.m-on .view.on:not(.m-own) .td .b2-card + .b2-card,
body.m-on .view.on:not(.m-own) .b2-col > * + *{margin-top:14px}
body.m-on .view.on:not(.m-own) :is(.td-sum,.kpi-row){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:0}
body.m-on .view.on:not(.m-own) :is(.td-sum,.kpi-row) > *{margin:0!important;padding:14px}
body.m-on .view.on:not(.m-own) :is(.td-sum,.kpi-row) > :first-child:nth-last-child(odd){grid-column:1/-1}
body.m-on .view.on:not(.m-own) :is(.td-sum b,.kpi2 .v){font-size:22px}
body.m-on .view.on:not(.m-own) .b2-grid{display:flex;flex-direction:column;gap:14px}
body.m-on .view.on:not(.m-own) .b2-h h2{font-size:17px}

/* Send Money in the phone bottom bar: small tangerine bubble, plane gently bobs, soft pulse ring.
   Same footprint as the other icons, so the bar height doesn't change. */
body.m-on:not(.m-wide) #m-tabs a[data-m-tab="send-money"] svg{width:27px;height:27px;margin:-2px 0;padding:5px;box-sizing:border-box;border-radius:50%;background:#ee8b4f;color:#fff;overflow:visible;animation:gw-send-bob 1.8s ease-in-out infinite,gw-send-pulse 1.8s ease-out infinite}
@keyframes gw-send-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(-10deg)}}
@keyframes gw-send-pulse{0%{box-shadow:0 0 0 0 rgba(238,139,79,.55)}100%{box-shadow:0 0 0 6px rgba(238,139,79,0)}}
@media (prefers-reduced-motion:reduce){body.m-on #m-tabs a[data-m-tab="send-money"] svg{animation:none}}
