/* layout.css — mobile tab-bar + desktop top bar */
.app-header { position: sticky; top: 0; z-index: 10; background: var(--surface); }
.app-main { max-width: 880px; margin: 0 auto; padding: 16px; padding-bottom: 96px; }

/* Desktop top nav */
.topnav { display: none; gap: 8px; padding: 12px 16px; align-items: center; }
.topnav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--text); }
.topnav a.active { background: var(--ring-track); }

/* Mobile bottom tab-bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-around; align-items: center;
  background: var(--surface); box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a, .tabbar button {
  border: 0; background: none; font: inherit; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; gap: 2px;
  text-decoration: none;
}
.tabbar .fab {
  background: var(--primary); color: #fff; width: 56px; height: 56px;
  border-radius: 50%; justify-content: center; font-size: 1.8rem; margin-top: -22px;
  box-shadow: var(--shadow);
}

@media (min-width: 760px) {
  .tabbar { display: none; }
  .topnav { display: flex; }
  .app-main { padding-bottom: 32px; }
}