/* Shared storefront chrome — dark glass header, no empty top gap, mobile row. */

.sf-install-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  min-height: 40px;
  padding: 7px 14px;
  background: rgba(8, 6, 14, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6f3fb;
  text-align: center;
  position: relative;
  z-index: 60;
}
.sf-install-top.is-away,
.sf-install-top[hidden] { display: none; }
.sf-install-top__label {
  margin: 0;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  opacity: 0.82;
}
.sf-install-top__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.sf-install-top__hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 11px;
  opacity: 0.7;
}

/* Dark apps: header must stay readable over scrolled content. */
header.glass,
header.site-header,
.site-header.glass {
  background: rgba(8, 10, 12, 0.94) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 1023px) {
  .site-header-nav { display: none !important; }
  .site-header-actions .online-chip,
  header .online-chip { display: none !important; }
  .site-header-inner,
  .site-header-actions {
    align-items: center !important;
  }
  .site-header-actions { gap: 0.4rem !important; }
}

/* Meirl / Maker family — no header plate; lockup sits on the page wash. */
html:not(.is-room):not(.is-live-room) body {
  padding-top: 0 !important;
}
html:not(.is-room):not(.is-live-room) .shell:not(.shell-fill) {
  padding-top: 14px !important;
  background: transparent !important;
}
html:not(.is-room):not(.is-live-room) .topbar,
html:not(.is-room):not(.is-live-room) .shell:not(.shell-fill) > .topbar,
html:not(.is-room):not(.is-live-room) .shell-wide:not(.shell-fill) > .topbar {
  position: relative !important;
  top: auto !important;
  z-index: 8;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 8px !important;
  padding: 4px 0 10px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html:not(.is-room):not(.is-live-room) .topbar::before,
html:not(.is-room):not(.is-live-room) .topbar::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
html:not(.is-room):not(.is-live-room) .brand,
html:not(.is-room):not(.is-live-room) .brand-lockup-img {
  background: transparent !important;
  box-shadow: none !important;
}
html:not(.is-room):not(.is-live-room) .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}
html:not(.is-room):not(.is-live-room) .brand-lockup-img {
  height: 44px !important;
  width: auto !important;
  max-width: min(72vw, 440px) !important;
  object-fit: contain;
}
@media (max-width: 767px) {
  html:not(.is-room):not(.is-live-room) .shell:not(.shell-fill) {
    padding-top: 10px !important;
  }
  html:not(.is-room):not(.is-live-room) .topbar {
    gap: 8px;
    margin-bottom: 6px !important;
    padding: 2px 0 8px !important;
  }
  html:not(.is-room):not(.is-live-room) .topbar-actions { gap: 8px; }
  html:not(.is-room):not(.is-live-room) .brand-lockup-img {
    height: 38px !important;
    max-width: min(62vw, 280px) !important;
  }
}
@media (max-width: 479px) {
  html:not(.is-room):not(.is-live-room) .brand-lockup-img {
    height: 34px !important;
    max-width: min(58vw, 220px) !important;
  }
}
