/* Phones (900px and below): one top row and a four-item bottom bar.
   Top row, start to end: logo · beach picker (favorite star inside it) · account button.
   Bottom bar, start to end: Menu · Conditions · Map · Report (Report is a filled button).
   The menu button and the "Beaches" tab are gone from the top / bottom on phones; the menu opens from the bottom bar.
   Wide screens are not touched here (the menu button stays in the header there). */
#navMenu{display:none}
@media(max-width:900px){
 :root{--bars-top:52px;--nav-h:calc(61px + env(safe-area-inset-bottom))}

 /* ----- top row ----- */
 html body header,html[dir] body header,html[dir=ltr] body header{height:52px!important;min-height:52px!important;box-sizing:border-box;padding:7px 10px!important;gap:8px!important;align-items:center}
 html body header>div{flex:none;margin:0!important;min-width:0}
 html body header h1{margin:0;line-height:0}
 html body header .brand-name{display:none!important}
 html body header .brand-logo{width:38px!important;height:38px!important;border-radius:12px;object-fit:cover}
 html body header #openMenu{display:none!important}

 html body header #spot{order:1;flex:1 1 0;min-width:0;height:40px!important;margin:0!important;padding:0!important;display:flex!important;align-items:center;gap:0!important;box-sizing:border-box;border:1px solid var(--line)!important;border-radius:20px!important;background:var(--panel)!important;box-shadow:none!important;overflow:hidden}
 html body header #spot .forecast-beach-label,html body header #spot #spotWater{display:none!important}
 html body header #spot .forecast-beach-picker{flex:1 1 0;min-width:0!important;width:auto!important;height:40px!important;min-height:40px!important;margin:0!important}
 html body header #spot .forecast-beach-picker select,html body header #spot select,html body header #spot .bp-open{height:40px!important;min-height:40px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:15px!important}
 html body header #spot .picker-label{height:40px!important;min-height:0!important;inset-inline-start:2px!important;inset-inline-end:30px!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}
 html body header #spot .picker-label b{font-size:15px;white-space:nowrap}
 html body header #spot .picker-label small{display:none!important}
 html body header #spot .beach-picker-chevron{inset-inline-end:8px}
 /* The favorite star lives inside the pill at its start side: no box of its own, and its own tap target (the picker button does not cover it). */
 html body header #spot .picker-star{order:-1;flex:none;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 html body header #spot .picker-star[hidden]{display:none!important}
 body:not([data-view=dashboard]):not([data-view=map]) header #spot{display:none!important}

 html body header #headerAccount{order:2!important;flex:none;margin:0!important;height:40px!important;min-width:40px;max-width:112px;padding-inline:4px!important;overflow:hidden;text-overflow:ellipsis}
 html body header #headerAccount.is-guest{font-size:13px}

 /* ----- bottom bar ----- */
 html body .view-tabs{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;align-items:stretch!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;box-sizing:border-box}
 html body .view-tabs>button,html body .view-tabs #navReport,html body .view-tabs #navMenu{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-height:48px!important;height:48px!important;margin:0!important;padding:0 2px!important;border:0!important;border-radius:12px!important;font-size:12px!important;font-weight:500!important;line-height:1.15!important;white-space:nowrap!important}
 html body .view-tabs>button[hidden]{display:none!important}
 html body .view-tabs>button[aria-selected=true]{background:color-mix(in srgb,var(--accent) 14%,transparent)!important;font-weight:700!important}
 html body .view-tabs #navMenu{background:transparent!important;color:var(--muted)!important;cursor:pointer}
 html body .view-tabs #navMenu .nav-menu-ic{position:relative;display:flex}
 html body .view-tabs #navMenu.has-pending .nav-menu-ic::after{content:"";position:absolute;top:-2px;inset-inline-end:-4px;width:8px;height:8px;border-radius:50%;background:var(--pending,#ec944c);box-shadow:0 0 0 2px var(--panel)}
 html body .view-tabs #navMenu[aria-expanded=true]{color:var(--accent)!important}

 /* Report: a filled button across its whole cell. */
 html body .view-tabs #navReport{background:#0E6E74!important;color:#fff!important;font-weight:700!important}
 html body .light .view-tabs #navReport,html body.light .view-tabs #navReport{color:#fff!important}
 html body .view-tabs #navReport .nav-plus{width:auto!important;height:auto!important;border-radius:0!important;background:transparent!important;color:#fff!important}
 html body .view-tabs #navReport .nav-plus svg{width:22px;height:22px}

 /* The map fills the screen between the new top row and the bottom bar. */
 #mapView[data-mode=map]>.mapwrap.mapwrap{height:calc(100dvh - 52px - var(--nav-h))!important;--map-height:calc(100dvh - 52px - var(--nav-h))}
}
