.dn {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 3rem;
}

.dn-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}
.dn-head h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.dn-head h1 em {
  font-style: normal;
  color: var(--orange);
}
.dn-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.dn-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
}
.dn-tab {
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dn-tab small {
  margin-left: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb763;
}
.dn-tab:hover {
  color: var(--ink);
}
.dn-tab.is-on {
  background: var(--orange);
  color: #16110b;
}
.dn-tab.is-on small {
  color: #3b1d08;
}

.dn-split {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.dn-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elev);
}
.dn-step {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.dn-step h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.dn-step h2 b {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.16);
  color: var(--orange);
  font-size: 0.75rem;
}

.dn-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.dn-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.dn-swatch.is-on {
  border-color: var(--ink);
}
.dn-swatch--custom {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#ff5a1f, #f7c948, #2ecc71, #1e90ff, #8e44ad, #ff5a1f);
}
.dn-swatch--custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dn-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.dn-choice button {
  flex: 1 1 auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.dn-choice button:hover {
  color: var(--ink);
}
.dn-choice button.is-on {
  border-color: var(--orange);
  background: rgba(255, 90, 31, 0.12);
  color: var(--ink);
}
.dn-choice--sm button {
  flex: 0 0 auto;
  width: 2.2rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.dn-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dn-row input[type="range"] {
  flex: 1;
  accent-color: var(--orange);
}
.dn-label {
  min-width: 3.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.dn-text {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.dn-text:focus {
  outline: none;
  border-color: var(--orange);
}

.dn-upload {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  cursor: pointer;
}
.dn-upload:hover {
  border-color: var(--orange);
  color: var(--ink);
}
.dn-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.dn-upload svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}
.dn-upload.is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.dn-upload.is-err {
  border-color: #e5484d;
  color: #ffb4b4;
}

.dn-actions {
  display: grid;
  gap: 0.6rem;
}
.dn-actions .btn svg {
  width: 1rem;
  height: 1rem;
}
.dn-fine {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}
.dn-fine svg {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.1rem;
}

.dn-stage {
  display: grid;
  gap: 0.6rem;
  position: sticky;
  top: 5.5rem;
}
.dn-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.dn-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.dn-screen:fullscreen {
  border-radius: 0;
  border: 0;
}
.dn-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  background: #0b0c0e;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
.dn-loading.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dn-loading.is-done .dn-spinner {
  animation: none;
}
.dn-loading p {
  margin: 0;
}
.dn-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--orange);
  animation: dn-spin 0.9s linear infinite;
}
@keyframes dn-spin {
  to {
    transform: rotate(360deg);
  }
}
.dn-stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dn-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.dn-soon {
  display: grid;
  place-items: center;
  min-height: 50vh;
}
.dn-soon__card {
  max-width: 560px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elev);
  text-align: center;
}
.dn-soon__card h2 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
}
.dn-soon__card p {
  color: var(--ink-soft);
}
.dn-soon__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

@media (max-width: 960px) {
  .dn-split {
    grid-template-columns: 1fr;
  }
  .dn-stage {
    position: static;
    order: -1;
  }
  .dn-head {
    align-items: flex-start;
  }
  .dn-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .dn-tab {
    white-space: nowrap;
  }
}
