.topbar {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.topbar-left, .topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.topbar-tools { gap: 4px; margin-left: auto; }
.brand, .nav { display: flex; align-items: center; }
.brand {
  gap: 0;
  padding: 0 9px 0 3px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.nav { gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}
.nav a.active, .nav a:hover { background: var(--panel-2); color: var(--text); }
.nav svg { width: 17px; height: 17px; }
.topbar .icon-button { width: 36px; height: 34px; border: 0; background: transparent; }
.topbar .icon-button:hover { border: 0; background: var(--panel-2); }
.topbar-tools .small-button { display: inline-flex; align-items: center; gap: 6px; height: 34px; }
.topbar-tools .small-button svg { width: 16px; height: 16px; }
.admin-topbar .brand { font-size: 16px; }

.page {
  width: 90vw;
  max-width: 1480px;
  margin: 0 auto;
  padding: 92px 0 40px;
  flex: 1 0 auto;
}
body[data-page="home"] .page {
  width: calc(100vw - 32px);
  max-width: 1840px;
}
.footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 3px 16px max(3px, env(safe-area-inset-bottom));
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.footer > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.footer a { color: inherit; }
.footer a:hover { color: var(--accent); }
.footer svg { width: 13px; height: 13px; color: var(--accent); fill: currentColor; }
