:root {
  --nav-bg: #201f1b;
  --nav-line: #35332c;
  --nav-gold: #edcd52;
  --nav-gold-soft: rgba(237, 205, 82, 0.12);
  --nav-ink-2: #b8b3a4;
}

* {
  box-sizing: border-box;
}

body.nav-shell {
  margin: 0;
  padding: 0;
  height: 100dvh;
  overflow: hidden;
  font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
}

.app-nav {
  flex-shrink: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-line);
}

.app-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  max-width: 1120px;
  margin: 0 auto;
}

.app-nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.app-nav-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.app-nav-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}

.app-nav-tab {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nav-ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.app-nav-tab:hover {
  color: var(--nav-gold);
}

.app-nav-tab[aria-selected="true"] {
  background: var(--nav-gold-soft);
  border-color: var(--nav-gold);
  color: var(--nav-gold);
}

.app-nav-tab:focus-visible {
  outline: 2px solid var(--nav-gold);
  outline-offset: 2px;
}

.app-view {
  flex: 1;
  min-height: 0;
  position: relative;
}

.app-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.app-frame[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .app-nav-brand img {
    height: 42px;
  }

  .app-nav-tab {
    font-size: 0.95rem;
    padding: 0.55rem 1.3rem;
  }

  .app-nav-inner {
    flex-direction: row;
  }
}
