/* Older imported sections inherit the surrounding skin unless their markup sets a background. */
.qs-studio.is-wrapper div.is-section:not([class*="is-section-"]) {
  min-height: 0;
}

/* The runtime paints every section white. Let the theme's page background show through instead, so
   dark mode stays readable; sections with a background class or an overlay keep their own color. */
.qs-studio.is-wrapper div.is-section:not([class*="is-bg-"]) {
  background: transparent;
}

.qs-studio.is-wrapper div.is-section.is-bg-light:not(.is-light-text),
.qs-studio.is-wrapper div.is-section.is-bg-grey:not(.is-light-text) {
  color: #121518;
}

.qs-studio.is-wrapper div.is-section.is-bg-dark:not(.is-dark-text) {
  color: #eef2f6;
}

.qs-studio.is-wrapper .is-boxed-layout .is-container {
  background: var(--bg-elev, #f7f8fa);
}


.qs-studio-empty p {
  margin: 0 0 12px;
}

.qs-studio-draft-note {
  font-size: 12px;
  opacity: .8;
  margin: 12px 0;
}

.qs-studio-preview-notice.dnnFormMessage {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font: 600 12.5px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: none;
}

.qs-studio-preview-notice.dnnFormMessage a {
  margin-left: auto;
  color: #00658a;
  font-weight: 600;
  text-decoration: none;
}

.qs-studio-preview-notice.dnnFormMessage a:hover {
  text-decoration: underline;
}

.qs-studio-module-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.qs-studio-module-edit {
  min-width: 0;
}
