.app-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #0b1220 0, #0b1220 164px, var(--bg) 164px, var(--bg) 100%);
}

.app-frame {
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  color: #fff;
  background: rgba(11, 18, 32, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0;
  color: #7dd3c7;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.main-content {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 18px 16px 28px;
  outline: none;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 226, 234, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
}

.nav-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
}

.sidebar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  font-weight: 900;
}

.brand img {
  width: 36px;
  height: 36px;
}

.side-nav {
  display: grid;
  gap: 6px;
}
