.mobile-home, .mobile-simple-tabs, .mobile-view-toggle, .mobile-fold > summary { display: none; }
@media (max-width: 920px) {
  .mobile-view-toggle { display: flex; gap: 10px; align-items: center; padding: 12px; min-height: 46px; border: 1px solid #cad5e3; border-radius: 6px; background: #fff; color: #172c42; font: inherit; cursor: pointer; }
  html[data-mobile-ui="simple"] .mobile-tabbar { display: none; }
  html[data-mobile-ui="simple"] body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  html[data-mobile-ui="simple"] .page { padding-bottom: 24px; }
  html[data-mobile-ui="simple"] .mobile-simple-tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid #d7e0e8; background: #fff; }
  .mobile-simple-tabs a { display: grid; align-content: center; justify-items: center; gap: 4px; min-height: 58px; min-width: 0; color: #586774; font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 6px; }
  .mobile-simple-tabs i { font-size: 21px; }
  .mobile-simple-tabs a[aria-current="page"] { background: #e7f6f3; color: #006f62; }
  html[data-mobile-ui="simple"] .page-head, html[data-mobile-ui="simple"] .dashboard-head { gap: 12px; padding: 16px; margin-bottom: 16px; }
  html[data-mobile-ui="simple"] .page-head h1, html[data-mobile-ui="simple"] .dashboard-head h1 { font-size: 24px; }
  html[data-mobile-ui="simple"] .page-head .lead, html[data-mobile-ui="simple"] .dashboard-head .lead { display: none; }
  html[data-mobile-ui="simple"] .head-actions { gap: 8px; }
  html[data-mobile-ui="simple"] .head-actions .primary-action { min-height: 46px; }
  html[data-mobile-ui="simple"] .home-hero, html[data-mobile-ui="simple"] .home-layout { display: none; }
  html[data-mobile-ui="simple"] .mobile-home { display: block; max-width: 680px; margin: 0 auto; }
  .mobile-home-heading { padding: 12px 0 16px; }
  .mobile-home-heading p { margin: 0 0 6px; color: #586774; font-size: 13px; text-transform: capitalize; }
  .mobile-home-heading h1 { margin: 0; font-size: 26px; color: #162b40; }
  .mobile-home-search { display: flex; align-items: center; gap: 10px; border: 1px solid #cdd9e3; border-radius: 6px; background: #fff; padding: 4px 4px 4px 14px; margin-bottom: 20px; }
  .mobile-home-search input { min-width: 0; width: 100%; padding: 10px 0; border: 0; background: transparent; font: inherit; font-size: 16px; }
  .mobile-home-search button { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 4px; background: #006f62; color: #fff; cursor: pointer; }
  .mobile-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
  .mobile-home-grid a { display: grid; align-content: center; justify-items: center; grid-template-rows: 36px 30px; gap: 8px; aspect-ratio: 1; min-width: 0; padding: 10px 6px; border: 1px solid #d4dfe6; border-radius: 8px; background: #fff; color: #253f55; text-decoration: none; box-shadow: 0 2px 4px #162b4008; }
  .mobile-home-grid a:active { background: #f0f5f7; }
  .mobile-home-grid a:focus-visible { outline: 3px solid #006f62; outline-offset: 2px; }
  .mobile-home-grid i { display: grid; place-items: center; width: 36px; height: 36px; font-size: 30px; }
  .mobile-home-grid span { display: grid; align-content: center; min-width: 0; max-width: 100%; text-align: center; font-size: 12px; font-weight: 700; line-height: 15px; overflow-wrap: anywhere; }
  .mobile-home-grid .tile-green i { color: #087566; }
  .mobile-home-grid .tile-blue i { color: #2661b0; }
  .mobile-home-grid .tile-rose i { color: #a63760; }
  .mobile-home-grid .tile-amber i { color: #9a680a; }
  .mobile-home-recent > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; }
  .mobile-home-recent h2 { font-size: 17px; margin: 0; }
  .mobile-home-recent > div a { font-size: 12px; color: #006f62; white-space: nowrap; }
  .mobile-home-report { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid #d7e0e8; color: #162b40; text-decoration: none; }
  .mobile-home-report > span { display: grid; min-width: 0; gap: 5px; flex: 1; }
  .mobile-home-report strong { font-size: 14px; overflow-wrap: anywhere; }
  .mobile-home-report small { color: #586774; font-size: 12px; }
  html[data-mobile-ui="simple"] .mobile-fold { margin: 12px 0; border-top: 1px solid #d7e0e8; border-bottom: 1px solid #d7e0e8; }
  html[data-mobile-ui="simple"] .mobile-fold > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 4px; font-weight: 600; color: #253f55; cursor: pointer; list-style: none; }
  .mobile-fold > summary::-webkit-details-marker { display: none; }
  .mobile-fold > summary::after { content: "+"; margin-left: auto; font-size: 20px; }
  .mobile-fold[open] > summary::after { content: "-"; }
  html[data-mobile-ui="simple"] .expense-floating-save { bottom: calc(82px + env(safe-area-inset-bottom)); }
  html[data-mobile-ui="simple"] .mobile-record { border-radius: 6px; }
  html[data-mobile-ui="simple"] .recent-expenses-panel, html[data-mobile-ui="simple"] .recent-expenses-panel > * { min-width: 0; }
  html[data-mobile-ui="simple"] .recent-expenses-panel .section-title-row { flex-wrap: wrap; }
  html[data-mobile-ui="simple"] .recent-expenses-panel h2 { font-size: 18px; }
  html[data-mobile-ui="simple"] .recent-expense-item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  html[data-mobile-ui="simple"] .recent-expense-item span, html[data-mobile-ui="simple"] .recent-expense-item strong, html[data-mobile-ui="simple"] .recent-expense-item em { grid-column: 1; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
  html[data-mobile-ui="simple"] .recent-expense-item b { grid-column: 2; grid-row: 2 / 4; font-size: 14px; }
  html[data-mobile-ui="simple"] input:not([type="checkbox"]):not([type="radio"]), html[data-mobile-ui="simple"] select, html[data-mobile-ui="simple"] textarea { font-size: 16px; }
}
@media (min-width: 600px) and (max-width: 920px) { .mobile-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media print { .mobile-home, .mobile-simple-tabs, .mobile-view-toggle, .mobile-fold > summary { display: none !important; } }
