/* v11.8 — the same 680px centered app layout for standalone account/user routes.
   Load AFTER native-bridge-v117.css. Admin and infrastructure routes are excluded. */
:root {--lvg-app-max:680px;--lvg-safe-bottom:env(safe-area-inset-bottom,0px)}
*,*::before,*::after {box-sizing:border-box}
html {scroll-padding-bottom:105px}
body {min-width:0;overflow-x:clip;padding-bottom:calc(92px + var(--lvg-safe-bottom))!important}
body :where(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap) {
  width:100%!important;max-width:var(--lvg-app-max)!important;
  margin-inline:auto!important;padding-inline:clamp(12px,3vw,20px)!important;
  min-width:0;
}
body :where(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap) > * {min-width:0}
/* Legacy per-page menus remain in source for accessibility/fallback but the shared nav owns primary navigation. */
body .mt-header>nav,body .us-top>nav,
body .shell>.header .nav,body .shell>.top>nav,
body .shell>header.nav>nav {display:none!important}
body .lvg-native-bottom {
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  position:fixed!important;z-index:100;bottom:0!important;
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  width:100%!important;max-width:var(--lvg-app-max)!important;
  margin:0!important;gap:0!important;
  padding:7px max(8px,env(safe-area-inset-right,0px)) calc(8px + var(--lvg-safe-bottom)) max(8px,env(safe-area-inset-left,0px))!important;
  border:1px solid rgba(213,190,133,.22);border-bottom:0;border-radius:19px 19px 0 0;
  background:rgba(8,57,49,.97)!important;box-shadow:0 -10px 28px rgba(0,25,20,.28);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
body .lvg-native-bottom>a {
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;
  min-width:0;min-height:56px!important;padding:4px 2px;border-radius:12px;
  text-align:center;text-decoration:none!important;gap:2px;
  color:#c6d9cc!important;font-family:system-ui,sans-serif;font-size:10px;touch-action:manipulation
}
body .lvg-native-bottom>a span {font-size:21px;line-height:1.2}
body .lvg-native-bottom>a small {font-size:10px;color:inherit}
body .lvg-native-bottom>a[aria-current=page] {color:#f0d38f!important;background:rgba(213,182,99,.16)!important}
body .lvg-native-bottom>a:focus-visible {outline:3px solid #e8c872;outline-offset:2px}
body .mt-bottom {display:none!important}
body .mt-hero,body .mt-week-grid,body .mt-grid,body .us-grid,body .us-layout,
body .layout,body .grid2,body .ak-columns,body .sync-grid,
body .plans-layout,body .plan-grid {grid-template-columns:minmax(0,1fr)!important}
body :where(.mt-hero,.mt-week-grid,.mt-grid,.us-grid,.us-layout,.grid2,.ak-columns,.sync-grid)>* {min-width:0}
body .mt-wide {grid-column:auto!important}
body .mt-header,body .us-top {flex-wrap:wrap;gap:10px}
/* Desktop-specific legacy max widths are superseded without restricting inner scrollable tables. */
body :where(.mt-daycard,.mt-panel,.mt-smart,.us-panel,.ak-card,.lr-card,.sync-card) {min-width:0;max-width:100%}
body :where(input,textarea,select) {max-width:100%}
body :where(table,.table-wrap,.responsive-table) {max-width:100%;overflow-x:auto}
@media(max-width:400px) {
 body :where(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap) {padding-inline:12px!important}
 body .lvg-native-bottom>a small {font-size:9px}
}
@media print {body{padding-bottom:0!important}body .lvg-native-bottom{display:none!important}body :where(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap){max-width:none!important;padding:0!important}}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto!important}}
