.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
}

.app-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 88px;
  padding: 18px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  backdrop-filter: blur(18px);
  background: rgba(246, 244, 240, .86);
  border-bottom: 1px solid rgba(229, 223, 215, .72);
}

.topbar-title {
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.05em;
  line-height: 1;
}

.top-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.page-surface {
  padding: 20px 34px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

.page-surface.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.page-surface.is-entering {
  animation: pageIn 260ms ease both;
}

.auth-body,
.public-body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #ffffff 0, #f7f4ee 42%, #ede8df 100%);
}

.auth-card-wrap,
.sign-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .mobile-only {
    display: inline-grid !important;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 16px;
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .top-actions {
    display: none;
  }

  .page-surface {
    padding: 18px 14px 32px;
  }
}