.mobile-module-nav,.mobile-profile-toggle,.mobile-nav-menu{display:none}

@media(max-width:820px){
 body[data-role]{--mobile-safe-top:env(safe-area-inset-top,0px);--mobile-header-height:76px}
 body[data-role] .sidebar{display:none}
 body[data-role] main>header{
  position:sticky;top:0;z-index:14;min-height:calc(var(--mobile-header-height) + var(--mobile-safe-top));
  padding:calc(8px + var(--mobile-safe-top)) max(10px,env(safe-area-inset-right,0px)) 8px max(10px,env(safe-area-inset-left,0px));
  gap:4px;background:var(--surface)
 }
 body[data-role] .restaurant-switcher{gap:6px}
 body[data-role] .restaurant-switcher .header-mark{width:52px;height:44px;flex-basis:52px}
 body[data-role] .restaurant-switcher .header-mark[hidden]{display:none}
 body[data-role] .restaurant-switcher small{font-size:10px;margin:0;white-space:nowrap}
 body[data-role] .restaurant-switcher select{min-height:38px;padding-block:2px;font-size:16px;text-overflow:ellipsis}
 body[data-role] .header-actions{gap:2px}
 body[data-role] .header-actions .user{display:none}
 body[data-role] .header-actions .cost-alerts-button{min-width:38px;padding:0;font-size:18px}
 body[data-role] .header-actions .cost-alerts-button span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body[data-role] .mobile-profile-toggle{
  display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:10px;
  background:var(--accent-soft);color:var(--accent);font-weight:750;
 }
 .mobile-profile-toggle svg{width:22px;height:22px}
 body[data-role] .mobile-module-nav{
  position:fixed;inset:auto 0 0;z-index:18;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border)
 }
 .mobile-module-nav>button{min-height:48px;padding:3px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:11px}
 .mobile-module-nav>button>span{display:block;font-size:17px;line-height:20px}
 .mobile-module-nav>button:is([aria-current=page],.module-active){background:var(--accent-soft);color:var(--accent);font-weight:750}
 body[data-role] .mobile-nav-menu:popover-open{
  display:block;position:fixed;margin:0;width:min(260px,calc(100vw - 24px));max-height:65dvh;padding:6px;
  border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 10px 28px #0003
 }
 #mobileModules{inset:auto 12px calc(68px + env(safe-area-inset-bottom)) auto}
 #mobileAccount{inset:calc(var(--mobile-header-height) + var(--mobile-safe-top) + 4px) 10px auto auto}
 .mobile-account-identity{display:grid;gap:3px;padding:8px 10px;border-bottom:1px solid var(--border)}
 .mobile-account-identity small{color:var(--muted)}
 .mobile-nav-menu button{display:block;width:100%;min-height:44px;border:0;background:transparent;color:inherit;text-align:left;padding:8px 10px}
 .mobile-nav-menu button[hidden]{display:none}
 .mobile-nav-menu button:is(:hover,:focus-visible,[aria-current=page]){background:var(--accent-soft)}
 body[data-role] #content{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
 body[data-role] #content:has(.floating-create){padding-bottom:calc(146px + env(safe-area-inset-bottom))}
 body[data-role] #content .title .floating-create{bottom:calc(72px + env(safe-area-inset-bottom))}
 body[data-role] .toast{bottom:calc(72px + env(safe-area-inset-bottom))}
}

@media(max-width:820px){
 #dashboardResults{display:flex;flex-direction:column;min-width:0}
 #dashboardResults>.cards{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
 }
 #dashboardResults [data-dashboard-card=average]{grid-column:1/-1}
 #dashboardResults [data-dashboard-card=coverage]{display:none}
 #dashboardResults [data-dashboard-card]:is([data-dashboard-card=target],[data-dashboard-card=active]){
  min-width:0;min-height:0;padding:11px 12px;gap:5px;
 }
 #dashboardResults [data-dashboard-card]:is([data-dashboard-card=target],[data-dashboard-card=active]) .metric{font-size:22px}
 #dashboardResults [data-dashboard-card]:is([data-dashboard-card=target],[data-dashboard-card=active]) small{display:none}
 #dashboardResults>.dashboard-rankings{margin-top:16px}
 #dashboardResults>.dashboard-rankings .dashboard-detail{grid-template-columns:minmax(0,1fr);gap:10px}
 #dashboardResults [data-ranking=food_cost-highest]{order:-1}
 #dashboardResults>.dashboard-rankings .ranking-list li{min-height:0;padding:10px 0}
 #dashboardResults>#dashboardPriceChanges{order:1}
}
