/* The family app's bottom bar (UX run-25, js/app-shell.js, DESIGN.md § 8j). Drawn only inside the
   installed app (html.is-app); in a browser tab this sheet styles nothing. A floating dark island like
   the header's (css/nav.css), concentric with its 10 px keys, five 44 px tabs, the current one in putty. */
html.is-app body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
html.is-app { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

.app-bar {
  --ab-bg: #141414;
  --ab-ink: #f7f6f2;
  --ab-ink-2: rgba(247, 246, 242, 0.74);
  position: fixed;
  z-index: 60;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  margin: 0 auto;
  max-width: 560px;
  padding: 6px;
  border-radius: 16px;
  background: var(--ab-bg);
  color: var(--ab-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 14px 34px rgba(20, 20, 20, 0.28);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  .app-bar { --ab-bg: #262624; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 14px 34px rgba(0, 0, 0, 0.5); }
}
.ab-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.ab-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: 10px;
  color: var(--ab-ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  overflow-wrap: normal;
}
.ab-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.ab-tab:hover { color: var(--ab-ink); background: rgba(247, 246, 242, 0.1); }
.ab-tab[aria-current="page"] { color: #141414; background: #ecebe6; }
.ab-tab[aria-current="page"] .ab-dot { background: #2f55ff; opacity: 1; }
.ab-tab:focus-visible, .ab-bring a:focus-visible, .ab-bring-x:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.ab-signal { margin: 0; font-size: 13px; font-weight: 600; text-align: center; }
.ab-signal:empty { display: none; }
.app-bar.is-off .ab-signal { padding: 8px 10px 10px; color: #ffd23f; }
.ab-bring {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 4px 4px 4px 12px;
  border-radius: 10px;
  background: #2f55ff;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
}
.ab-bring span { flex: 1 1 auto; }
.ab-bring a { color: #ffffff; font-weight: 700; white-space: nowrap; }
.ab-bring-x {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font: 600 22px/1 "Geist", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.ab-bring-x:hover { background: rgba(255, 255, 255, 0.16); }
@media print { .app-bar { display: none; } html.is-app body { padding-bottom: 0; } }
/* Inside the app the bar holds the bottom edge: the cookie card and each page's toast sit above it. */
html.is-app .do-status,
html.is-app .dn-status,
html.is-app .tg-status,
html.is-app .sd-status { transform: translateY(calc(-76px - env(safe-area-inset-bottom))); }
html.is-app #sosw-consent-banner { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
