/* Studio Task 702/713: Create Album navigation, allowance, identity preview, and restored stage emphasis. */
.workspace-journey > .workspace-create-stage-rail {
  position: sticky;
  z-index: 42;
  top: var(--create-stage-dock-top, 72px);
  isolation: isolate;
  width: min(1180px, calc(100vw - 32px));
  max-width: calc(100% - 32px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid rgba(104, 65, 214, .2);
  border-radius: 22px;
  background: rgba(255, 254, 251, .95);
  box-shadow: 0 16px 42px rgba(40, 29, 53, .16);
  backdrop-filter: blur(14px);
}

.workspace-journey > .workspace-create-stage-rail::before,
.workspace-journey > .workspace-create-stage-rail::after {
  top: 50px;
}

.workspace-journey > .workspace-create-stage-rail button {
  min-width: 0;
  min-height: 112px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 64px auto auto;
  align-items: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 15px;
  text-align: center;
}

.workspace-journey > .workspace-create-stage-rail button[data-status="current"] {
  background: rgba(140, 98, 246, .09);
}

.workspace-journey > .workspace-create-stage-rail button > span {
  width: 56px;
  height: 56px;
  grid-row: 1;
  grid-column: 1;
  border-width: 2px;
  box-shadow: 0 0 0 7px rgba(255, 254, 251, .9);
  font-size: 1rem;
}

.workspace-journey > .workspace-create-stage-rail button[data-status="current"] > span {
  box-shadow: 0 0 0 7px rgba(140, 98, 246, .12);
}

.workspace-journey > .workspace-create-stage-rail button[data-status="complete"] > span,
.workspace-journey > .workspace-create-stage-rail button[data-status="attention"] > span {
  font-size: 0;
}

.workspace-journey > .workspace-create-stage-rail button strong {
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  overflow: hidden;
  max-width: 100%;
  font-size: .82rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-journey > .workspace-create-stage-rail button small {
  grid-row: 3;
  grid-column: 1;
  align-self: center;
  overflow: hidden;
  max-width: 100%;
  font-size: .64rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-journey > .workspace-create-stage-rail.is-build-progress {
  width: min(300px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr);
}

.workspace-journey > .workspace-create-stage-rail.is-build-progress::before,
.workspace-journey > .workspace-create-stage-rail.is-build-progress::after,
.workspace-journey > .workspace-create-stage-rail.is-build-progress button:not([data-workspace-step="review"]) {
  display: none;
}

.workspace-journey > .workspace-create-stage-rail.is-build-progress [data-workspace-step="review"] {
  width: 100%;
}

.workspace-create-plan {
  position: relative;
  width: fit-content;
  min-width: 0;
  justify-self: end;
}

.workspace-create-plan > summary {
  display: grid;
  min-height: 40px;
  grid-template-columns: auto 24px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 14px;
  border: 1px solid #d7d0df;
  border-radius: 999px;
  color: #27212d;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  list-style: none;
}

.workspace-create-plan > summary::-webkit-details-marker { display: none; }

.workspace-create-plan > summary > span {
  color: #6841d6;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.workspace-create-plan > summary > i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #6841d6;
  font: 900 .7rem/1 var(--font-sans, inherit);
}

.workspace-create-plan > summary:focus-visible {
  outline: 3px solid rgba(104, 65, 214, .24);
  outline-offset: 3px;
}

.workspace-create-plan > div {
  position: absolute;
  z-index: 48;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: min(370px, calc(100vw - 36px));
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(45, 34, 55, .14);
  border-radius: 15px;
  color: #302837;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(42, 31, 52, .18);
}

.workspace-create-plan:not([open]) > div { display: none; }
.workspace-create-plan > div > strong { font-size: .78rem; }
.workspace-create-plan > div > small { color: #6e6572; font-size: .67rem; line-height: 1.5; }
.workspace-create-plan > div > a { justify-self: start; color: #6841d6; font-size: .66rem; font-weight: 900; }
.workspace-create-plan.is-error > summary > i { background: #a76d16; }

.workspace-create-artist-overlay {
  --create-artist-ring: transparent;
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 18px;
  width: clamp(64px, 21%, 86px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--create-artist-ring);
  border-radius: 50%;
  background: #17131b;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 12px 28px rgba(8, 7, 11, .3);
  pointer-events: none;
}

.workspace-create-artist-overlay[hidden] { display: none; }

.workspace-create-artist-overlay canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.workspace-cover:has(.workspace-create-artist-overlay:not([hidden])) .workspace-cover-title-preview {
  right: clamp(104px, 31%, 126px);
}

@media (max-width: 720px) {
  .workspace-journey > .workspace-create-stage-rail {
    width: calc(100vw - 18px);
    max-width: calc(100% - 18px);
    grid-template-columns: repeat(5, minmax(142px, 1fr));
    gap: 5px;
    margin-bottom: 12px;
    padding: 8px;
    scroll-padding-inline: 8px;
  }

  .workspace-journey > .workspace-create-stage-rail button {
    min-height: 100px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 54px auto auto;
    gap: 3px;
    padding: 7px;
  }

  .workspace-journey > .workspace-create-stage-rail button > span {
    width: 46px;
    height: 46px;
  }

  .workspace-journey > .workspace-create-stage-rail::before,
  .workspace-journey > .workspace-create-stage-rail::after {
    top: 40px;
  }

  .workspace-journey .workspace-cycle-strip {
    grid-template-columns: 1fr;
  }

  .workspace-create-plan {
    width: 100%;
    justify-self: stretch;
  }

  .workspace-create-plan > summary { width: 100%; }
  .workspace-create-plan > div { position: static; width: 100%; margin-top: 8px; }
  .workspace-create-artist-overlay { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-journey > .workspace-create-stage-rail,
  .workspace-create-plan > div {
    scroll-behavior: auto;
  }
}
