/* The tab bar at the foot of the customer pages (docs/web.md, "Navigation"). From the home
   screen the site runs standalone, with no address bar and no back button: this is how a
   person gets from the scanner to the update and back. Each page defines the colours
   (--bg, --fg, --muted, --accent, --warn, --line). */
:root { --tabs-h: 56px; }
body { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
body.no-tabs { padding-bottom: 0; }
nav.tabs[hidden] { display: none; }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav.tabs a { flex: 1; max-width: 168px; height: var(--tabs-h); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; position: relative;
  font: 500 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .01em;
  color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent; }
nav.tabs a[aria-current="page"] { color: var(--accent); }
nav.tabs a:active { opacity: .6; }
nav.tabs svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
nav.tabs .dot { display: none; position: absolute; top: 7px; left: calc(50% + 7px); width: 9px; height: 9px;
  border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--bg); }
nav.tabs a.badge .dot { display: block; }
