/**
 * App shell: fixed header, scrollable main, fixed tab bar.
 * BEM. See docs/plans/app-style-wrap-fsd-refactor.md
 */

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-header {
  view-transition-name: app-header;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.5rem 1rem;
  padding-top: env(safe-area-inset-top, 0.5rem);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.app-header__pwa-install {
  margin-left: auto;
}

.app-header__pwa-install[hidden] ~ .app-header__theme {
  margin-left: auto;
}

.app-header__theme {
  margin-left: 0;
}

.app-header__title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-text);
}

.app-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
}
