/* One account preference controls the fill of Luna's shared UI surfaces. */
body {
  --surface-glass: color-mix(in srgb, var(--panel) var(--panel-fill, 75%), transparent);
}

/* Keep containers legible while applying the same transparency to every page. */
body .panel,
body .account-tabs,
body .settings-workspace .account-tabs,
body .account-tabs-layout > [role="tabpanel"],
body .settings-identity,
body .settings-workspace .settings-identity,
body .community-lounge,
body .title-comment,
body .profile-history,
body .profile-comment-history,
body .profile-watch-card,
body .profile-comment-card,
body .notification-panel,
body .notification-orbit,
body .share-dialog,
body .social-workspace,
body .social-sidebar,
body .social-friends-panel,
body .social-conversation,
body .social-compose,
body .comment-compose,
body .public-profile-content,
body .profile-editor-panel,
body .profile-editor-panel .profile-username-form,
body .profile-photo-editor,
body .profile-banner-settings,
body .profile-bio-form,
body .profile-username-form,
body .email-newsletter,
body .account-recovery-card,
body .moderator-support-workspace,
body .moderator-support-layout,
body .moderator-support-cases,
body .moderator-support-conversation,
body .moderator-support-toolkit,
body .moderator-support-case,
body dialog,
body dialog.newsletter-dialog {
  background: var(--surface-glass);
}

/* Detail artwork stays vivid independently of the shared panel transparency. */
body .detail {
  background: transparent;
}
body .detail .hero-art {
  opacity: .76;
  object-position: center 25%;
}
body .detail::before {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--bg) 88%, transparent) 0%,
      color-mix(in srgb, var(--bg) 66%, transparent) 34%,
      color-mix(in srgb, var(--bg) 22%, transparent) 72%,
      color-mix(in srgb, var(--bg) 8%, transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 68%, transparent), transparent 72%);
}

.setting-range-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.setting-range-control input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  background: transparent;
  cursor: pointer;
}
.setting-range-value {
  min-width: 56px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: center;
}
@media (max-width: 700px) {
  .account-tabs-layout .setting-range-control { grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; }
}
