/* APP-001 home hierarchy: alerts -> brand -> navigation -> introduction -> modules.
 * Scoped to the new staging header. Preserve the frozen production snapshot.
 */
.redesigned-topbar {
  display: block;
  padding: calc(18px + env(safe-area-inset-top)) 22px 4px;
}
.app-topline, .app-navline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.app-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
}
.app-wordmark strong {
  font-size: clamp(23px, 5.8vw, 28px);
  font-weight: 850;
  letter-spacing: -.7px;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(27, 37, 53, .07);
}
.app-navline {
  margin-top: 15px;
  min-height: 44px;
}
.app-navline .brand-title {
  font-size: 13px;
  font-weight: 740;
  white-space: nowrap;
}
.app-navline .brand-divider {
  margin: 0 6px;
}
.profile-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.3;
  white-space: nowrap;
}
.profile-shortcut-icon {
  font-size: 17px;
  line-height: 1;
}
.profile-shortcut:hover { border-color: var(--brand-red-border); }
.profile-shortcut:active { background: var(--brand-red-pale); }
.profile-shortcut:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-hero #homeEyebrow { display: none; }
.home-view .home-hero {
  padding-top: 26px;
  padding-bottom: 12px;
}
.home-view .home-hero h1 { margin-bottom: 16px; }
.home-view .home-hero .subtitle { max-width: 520px; }
.app-alerts {
  display: grid;
  gap: 0;
}
.app-alerts > .status-banner,
.app-alerts > .membership-alert {
  margin: 0;
}
.app-alerts > :not(.hidden) {
  margin-bottom: 12px;
}
.is-demo .app-alerts .status-banner {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 590;
}
.app-alerts .membership-alert {
  min-height: 62px;
  padding: 14px 15px;
  border-radius: 16px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.home-view .home-grid { margin-top: 0; }

body.telegram-dark .profile-shortcut {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
body.telegram-dark.is-demo .app-alerts .status-banner {
  background: var(--panel);
  color: var(--secondary);
  border-color: var(--line);
}

@media (max-width: 360px) {
  .redesigned-topbar { padding-inline: 16px; }
  .app-wordmark strong { font-size: 22px; }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .app-navline .brand-title { font-size: 12px; }
  .profile-shortcut { min-height: 40px; padding: 0 10px; font-size: 12px; }
}
