.app {
  position: relative;
  width: var(--shell-app-width, 100%);
  min-height: 100vh;
  min-height: var(--telegram-viewport-stable-height, 100dvh);
  max-height: 100vh;
  max-height: var(--telegram-viewport-stable-height, 100dvh);
  margin: 0 auto;
  background: var(--shell-app-background, var(--surface));
  border-radius: var(--shell-app-radius, 24px);
  overflow: hidden;
  box-shadow: var(--shell-app-shadow, var(--shadow-soft));
  border: var(--shell-app-border, none);
  backdrop-filter: var(--shell-app-backdrop-filter, none);
  -webkit-backdrop-filter: var(--shell-app-backdrop-filter, none);
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(
    --shell-topbar-background,
    linear-gradient(135deg, var(--vk-blue) 0%, var(--vk-blue-dark) 100%)
  );
  color: var(--shell-topbar-color, #ffffff);
  padding: var(--shell-topbar-padding, 18px 22px);
  padding-top: calc(var(--shell-topbar-padding-top, 18px) + var(--telegram-top-inset));
  flex-shrink: 0;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-meta {
  min-width: 0;
}

.topbar-title {
  font-size: var(--shell-topbar-title-size, 22px);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.topbar-subtitle {
  margin-top: var(--shell-topbar-subtitle-margin, 3px);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.84;
}

.content {
  padding: var(--shell-content-padding, 14px 0 10px);
  background: var(--shell-content-background, transparent);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.status {
  padding: var(--shell-status-padding, 8px 20px 12px);
  font-size: 14px;
  color: var(--shell-status-color, var(--ink-60));
}

.status.is-error {
  color: #b42318;
}

.status.is-empty {
  color: var(--ink-40);
}
