/*
 * H&S Music Artist Panel – Release Wizard shell
 *
 * Nur gemeinsame Wizard-Struktur.
 * Formular-Controls liegen in release-wizard-controls.css.
 */

main:has(.wizard-workspace) {
  width: 100%;
  min-height: calc(100vh - 150px);
  padding: 12px 0 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.wizard-top-bar.compact {
  width: min(var(--hs-wizard-max), 100%);
  margin: 0 auto;
  padding: 0 0 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-top-context {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.wizard-top-bar.compact .wizard-back-button {
  width: fit-content;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hs-text-subtle);
  font-size: 13px;
  font-weight: var(--hs-weight-medium);
  letter-spacing: 0;
  text-transform: none;
}

.wizard-top-bar.compact .wizard-back-button:hover,
.wizard-top-bar.compact .wizard-back-button:focus-visible {
  color: var(--hs-text);
  background: transparent;
  box-shadow: none;
}

.wizard-release-identity {
  min-width: 0;
}

.wizard-release-identity h1 {
  margin: 0;
  color: var(--hs-text);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.14;
  font-weight: var(--hs-weight-semibold);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.wizard-release-identity p {
  margin: 6px 0 0;
  max-width: 680px;
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: var(--hs-weight-regular);
  overflow-wrap: anywhere;
}

.wizard-top-bar.compact .wizard-meta-row {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.wizard-top-bar.compact .badge {
  min-height: 27px;
  padding: 5px 8px;
  border-radius: var(--hs-radius-sm);
  background: transparent;
  font-size: 11px;
  line-height: 1.25;
  font-weight: var(--hs-weight-medium);
  letter-spacing: 0;
}

.wizard-top-bar.compact .badge.brand {
  background: rgba(243,143,177,.045);
}

.wizard-top-bar.compact .badge.warn {
  background: rgba(255,159,67,.07);
}

.wizard-top-bar.compact .badge.good {
  background: rgba(74,222,128,.06);
}

.wizard-save-status {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: var(--hs-text-subtle);
  font-size: 11px;
  line-height: 1.3;
  font-weight: var(--hs-weight-regular);
  white-space: nowrap;
}

.wizard-save-status.is-saving,
.wizard-save-status.is-dirty {
  color: var(--hs-warning);
}

.wizard-save-status.is-error {
  color: var(--hs-danger);
}

.wizard-workspace,
.wizard-workspace.has-help {
  width: min(var(--hs-wizard-max), 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

.wizard-workspace.help-collapsed {
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 18px;
}

.wizard-workspace-main {
  min-width: 0;
}

.wizard-step-list {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-step-section {
  width: 100%;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--hs-line-subtle);
  border-radius: 0;
  background: transparent;
  scroll-margin-top: 18px;
}

.wizard-step-section.is-open {
  margin: 12px 0 18px;
  overflow: visible;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-md);
  background: var(--hs-surface-1);
}

button.wizard-step-toggle {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-4);
  padding: 15px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hs-text);
  text-align: left;
}

.wizard-step-section.is-open button.wizard-step-toggle {
  padding-inline: 18px;
  border-bottom: 1px solid var(--hs-line-subtle);
}

button.wizard-step-toggle:hover {
  background: rgba(255,255,255,.018);
}

button.wizard-step-toggle:focus-visible {
  outline: 2px solid var(--hs-brand-500);
  outline-offset: -3px;
}

.wizard-step-left {
  min-width: 0;
  display: flex;
  align-items: center;
}

.wizard-step-left strong {
  color: var(--hs-text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
  letter-spacing: -.012em;
}

.wizard-step-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.wizard-step-status {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--hs-radius-sm);
  font-size: 12px;
  line-height: 1;
  font-weight: var(--hs-weight-semibold);
}

.wizard-step-status.is-open {
  border: 1px solid rgba(255,159,67,.38);
  background: rgba(255,159,67,.08);
  color: #ffd7ad;
}

.wizard-step-status.is-complete {
  border: 1px solid rgba(74,222,128,.30);
  background: rgba(74,222,128,.07);
  color: #c8f8d8;
}

.wizard-step-chevron {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: var(--hs-text-subtle);
  font-size: 22px;
  line-height: 1;
  font-weight: var(--hs-weight-regular);
}

button.wizard-step-toggle:hover .wizard-step-chevron,
button.wizard-step-toggle:focus-visible .wizard-step-chevron {
  color: var(--hs-brand-400);
}

.wizard-step-content-shell[aria-hidden="true"] {
  display: none;
}

.wizard-step-content-shell[aria-hidden="false"] {
  display: block;
}

.wizard-step-content {
  padding: 0;
  border-top: 0;
}

.wizard-section-desktop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.wizard-section-desktop-layout.has-side-menu {
  grid-template-columns: 230px minmax(0, 1fr);
}

.wizard-section-main,
.wizard-section-main-stack {
  min-width: 0;
  width: 100%;
  padding: 30px 32px 34px;
}

.wizard-section-desktop-layout.has-side-menu > .wizard-section-main {
  border-left: 1px solid var(--hs-line-subtle);
}

.wizard-section-main-stack > form,
.wizard-section-main-stack > section {
  width: 100%;
  box-sizing: border-box;
}

.wizard-section-side-menu {
  position: sticky;
  top: 20px;
  align-self: start;
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 26px 18px 30px 20px;
}

.wizard-section-side-menu-items {
  display: grid;
  gap: 1px;
}

button.wizard-section-side-menu-item {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 8px 9px 12px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hs-text-subtle);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

button.wizard-section-side-menu-item:hover {
  background: transparent;
  color: var(--hs-text);
}

button.wizard-section-side-menu-item:focus-visible {
  outline: 2px solid var(--hs-brand-500);
  outline-offset: -2px;
}

button.wizard-section-side-menu-item.is-active {
  border-left-color: var(--hs-brand-500);
  background: transparent;
  color: var(--hs-text);
}

.wizard-section-side-menu-number {
  width: 34px;
  color: var(--hs-text-subtle);
  font-size: 11px;
  line-height: 1;
  font-weight: var(--hs-weight-medium);
  font-variant-numeric: tabular-nums;
}

.wizard-section-side-menu-number::before {
  content: "0";
}

button.wizard-section-side-menu-item.is-active
.wizard-section-side-menu-number {
  color: var(--hs-brand-400);
  font-weight: var(--hs-weight-semibold);
}

.wizard-section-side-menu-label {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: var(--hs-weight-regular);
}

button.wizard-section-side-menu-item.is-active
.wizard-section-side-menu-label {
  font-weight: var(--hs-weight-semibold);
}

.wizard-help-panel {
  position: sticky;
  top: 20px;
  align-self: start;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--hs-line-subtle);
  border-radius: var(--hs-radius-md);
  background: var(--hs-surface-1);
  box-shadow: none;
}

.wizard-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-help-head .eyebrow {
  color: var(--hs-brand-400);
  font-size: 10px;
  font-weight: var(--hs-weight-semibold);
  letter-spacing: .08em;
}

.wizard-help-head h2 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: var(--hs-weight-medium);
  letter-spacing: -.01em;
}

.wizard-help-intro {
  margin: 0 0 12px;
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: var(--hs-weight-regular);
}

.wizard-help-tips {
  display: grid;
  gap: 0;
}

.wizard-help-tip {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-help-tip:last-child {
  border-bottom: 0;
}

.wizard-help-tip-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--hs-brand-400);
  font-size: 12px;
  font-weight: var(--hs-weight-semibold);
}

.wizard-help-tip-icon.is-warning {
  color: #ffc98f;
}

.wizard-help-tip-icon.is-success {
  color: #a7edbf;
}

.wizard-help-tip p {
  margin: 1px 0 0;
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: var(--hs-weight-regular);
}

.wizard-help-support {
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-help-support-label {
  display: block;
  margin-bottom: 6px;
  color: var(--hs-text);
  font-size: 13px;
  font-weight: var(--hs-weight-semibold);
}

.wizard-help-support p {
  margin: 0;
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: var(--hs-weight-regular);
}

.wizard-help-panel.is-collapsed {
  width: 82px;
  min-width: 82px;
  padding: 0;
  border: 0;
  background: transparent;
}

.wizard-top-save-button {
  flex: 0 0 auto;
}

.wizard-help-close {
  flex: 0 0 auto;
}

.wizard-help-support-button {
  margin-top: 13px;
}

.wizard-help-toggle {
  width: 76px;
  min-width: 76px;
}

button.wizard-help-toggle .wizard-help-toggle-icon {
  color: var(--hs-brand-400);
  font-size: 14px;
  font-weight: var(--hs-weight-semibold);
}

#basic-title,
#basic-dates,
#basic-release,
#basic-genre,
#cover-artwork,
#cover-canvas,
#cover-motion,
#tracks-overview,
#rights-basic,
#rights-instagram-facebook,
#rights-lines,
#review-overview,
#review-release-data,
#review-tracks-rights,
#review-note,
#review-submit {
  scroll-margin-top: 24px;
}

@media (max-width: 980px) {
  main:has(.wizard-workspace) {
    padding-top: 4px;
  }

  .wizard-top-bar.compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .wizard-top-bar.compact .wizard-meta-row {
    width: 100%;
    justify-content: flex-start;
  }

  .wizard-workspace,
  .wizard-workspace.has-help,
  .wizard-workspace.help-collapsed {
    width: 100%;
    margin-top: 22px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wizard-section-desktop-layout,
  .wizard-section-desktop-layout.has-side-menu {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wizard-section-side-menu,
  .wizard-help-panel,
  .wizard-help-panel.is-collapsed {
    position: static;
  }

  .wizard-section-side-menu {
    padding: 18px 18px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--hs-line-subtle);
  }

  .wizard-section-side-menu-items {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 2px 10px;
  }

  .wizard-section-main,
  .wizard-section-main-stack {
    padding: 26px 22px 30px;
  }

  .wizard-section-main,
  .wizard-section-desktop-layout.has-side-menu > .wizard-section-main {
    border-left: 0;
  }

  .wizard-help-panel.is-collapsed {
    width: auto;
    min-width: 0;
  }

  button.wizard-help-toggle {
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  main:has(.wizard-workspace) {
    padding-top: 0;
    padding-bottom: 26px;
  }

  .wizard-release-identity h1 {
    font-size: 25px;
  }

  .wizard-top-bar.compact {
    gap: 14px;
    padding-bottom: 16px;
  }

  .wizard-top-bar.compact .wizard-meta-row {
    gap: 6px;
  }

  .wizard-workspace,
  .wizard-workspace.has-help,
  .wizard-workspace.help-collapsed {
    margin-top: 16px;
    gap: 14px;
  }

  .wizard-step-section.is-open {
    margin: 8px 0 14px;
    border-radius: var(--hs-radius-sm);
  }

  button.wizard-step-toggle {
    min-height: 58px;
    padding: 13px 6px;
  }

  .wizard-step-section.is-open button.wizard-step-toggle {
    padding-inline: 14px;
  }

  .wizard-step-left strong {
    font-size: 16px;
  }

  .wizard-step-right {
    gap: 7px;
  }

  .wizard-step-content {
    padding: 0;
  }

  .wizard-section-side-menu {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0 8px;
    scrollbar-width: none;
  }

  .wizard-section-side-menu::-webkit-scrollbar {
    display: none;
  }

  .wizard-section-side-menu-items {
    width: max-content;
    min-width: 100%;
    display: flex;
    gap: 0;
  }

  button.wizard-section-side-menu-item {
    width: auto;
    min-width: max-content;
    min-height: 46px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    grid-template-columns: auto auto;
    gap: 6px;
    padding: 10px 12px 9px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  button.wizard-section-side-menu-item.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--hs-brand-500);
  }

  .wizard-section-side-menu-number {
    width: auto;
  }

  .wizard-section-main,
  .wizard-section-main-stack {
    padding: 20px 14px 24px;
  }

  .wizard-help-panel {
    padding: 16px;
  }
}
