.hero-bg-modal-panel--section-bg {
  width: min(480px, 94vw);
}

.hero-bg-modal-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0 1.25rem 0.65rem;
  border-bottom: 1px solid rgba(244, 208, 111, 0.12);
}

.hero-bg-modal-tab {
  flex: 1;
  border: 1px solid rgba(244, 208, 111, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(247, 234, 208, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.hero-bg-modal-tab.is-active {
  border-color: rgba(244, 208, 111, 0.45);
  background: rgba(244, 208, 111, 0.1);
  color: var(--gold-2);
}

.hero-bg-modal-note {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 208, 111, 0.14);
  background: rgba(244, 208, 111, 0.05);
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(247, 234, 208, 0.68);
}

.hero-bg-modal-note strong {
  color: var(--gold-2);
  font-weight: 600;
}

.hero-section-bg-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-section-bg-preview {
  position: relative;
  height: 120px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(244, 208, 111, 0.28);
  background: rgba(255, 255, 255, 0.03);
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-section-bg-preview.has-image {
  border-style: solid;
  border-color: rgba(244, 208, 111, 0.35);
}

.hero-section-bg-preview__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: rgba(247, 234, 208, 0.45);
  text-align: center;
  padding: 0.75rem;
}

.hero-section-bg-preview.has-image .hero-section-bg-preview__empty {
  display: none;
}

.hero-section-bg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-section-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero-section-bg-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: rgba(247, 234, 208, 0.55);
}

.hero-section-bg-field select {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 208, 111, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.4rem 0.45rem;
  font-size: 0.78rem;
}

.hero-section-bg-field select:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(216, 171, 82, 0.18);
}

body.hero-bg-modal-open {
  overflow: hidden;
}
