:root {
  --dh-navy: #080d45;
  --dh-blue: #1b2b77;
  --dh-gold: #ba8241;
  --dh-gold-soft: #fff1dc;
  --dh-mint: #edf8f5;
  --dh-mint-strong: #4fa28f;
  --dh-text: #0d1835;
  --dh-muted: #6a7487;
  --dh-line: #dce1e9;
  --dh-soft: #f5f7fa;
  --dh-white: #fff;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--dh-text);
  background: #f5f2ec;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.dh-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.dh-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 104px;
  padding: 22px 26px;
  border: 1px solid #1b265f;
  border-radius: 20px;
  color: white;
  background: var(--dh-navy);
  box-shadow: 0 16px 40px rgba(8, 13, 69, .13);
}
.dh-hero-copy {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.dh-chip {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #f4c98d;
  background: rgba(255,255,255,.07);
  font-size: 11px;
  font-weight: 900;
}
.dh-hero h1 {
  margin: 0 0 5px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.dh-hero p {
  margin: 0;
  color: #cbd2e3;
  font-size: 13px;
  line-height: 1.55;
}
.dh-hero-facts {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.dh-hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  color: #cbd2e3;
  background: rgba(255,255,255,.055);
  font-size: 11px;
}
.dh-hero-facts b { color: white; font-size: 14px; }

.dh-notice {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: 10px 0;
  padding: 10px 14px;
  border: 1px solid #d5dbe4;
  border-radius: 11px;
  color: #505b70;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(31, 42, 70, .06);
  backdrop-filter: blur(10px);
  font-size: 12px;
  line-height: 1.45;
}
.dh-notice.is-ready { border-color: #8dcbbe; color: #176654; background: rgba(239, 250, 247, .96); }
.dh-notice.is-error { border-color: #efa6a1; color: #9b312b; background: rgba(255, 242, 241, .97); }

.dh-studio {
  border: 1px solid #d9dee6;
  border-radius: 20px;
  background: rgba(255,255,255,.52);
  box-shadow: 0 18px 50px rgba(23, 32, 61, .06);
}
.dh-phase-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 8px;
  border-bottom: 1px solid #dfe3e9;
}
.dh-phase-tabs button {
  display: grid;
  grid-template-columns: 32px auto 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #516078;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.dh-phase-tabs button:hover { background: #f3f5f8; }
.dh-phase-tabs button.is-active {
  border-color: #cfd6e6;
  color: var(--dh-text);
  background: white;
  box-shadow: 0 7px 18px rgba(23, 32, 61, .07);
}
.dh-phase-tabs button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  background: var(--dh-navy);
  font-size: 11px;
  font-weight: 900;
}
.dh-phase-tabs b { font-size: 14px; }
.dh-phase-tabs small { color: var(--dh-muted); font-size: 11px; }

.dh-workspace, .dh-phase { min-width: 0; }
.dh-phase { padding: 14px; }
.dh-build-grid {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.48fr);
  gap: 14px;
  align-items: start;
}
.dh-script-column,
.dh-production-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.dh-delivery-column {
  display: grid;
  gap: 14px;
}
.dh-final-grid { min-width: 0; }
.dh-final-grid .dh-delivery-column {
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr);
  align-items: stretch;
}

.dh-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--dh-line);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
}
.dh-stage { scroll-margin-top: 64px; }
.dh-section-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.dh-section-head > span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: white;
  background: var(--dh-navy);
  font-size: 10px;
  font-weight: 900;
}
.dh-section-head > div { min-width: 0; flex: 1; }
.dh-section-head p {
  margin: 0 0 2px;
  color: #996323;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}
.dh-section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.dh-business-type,
.dh-style {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
.dh-style { grid-template-columns: repeat(3, 1fr); }
.dh-business-type legend,
.dh-style legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  font-size: 12px;
  font-weight: 850;
}
.dh-business-type label, .dh-style label { cursor: pointer; }
.dh-business-type input, .dh-style input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dh-business-type label span,
.dh-style label span {
  display: grid;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid #d7dce5;
  border-radius: 11px;
  background: #fafbfc;
  transition: .16s ease;
}
.dh-business-type input:checked + span,
.dh-style input:checked + span {
  border-color: var(--dh-blue);
  background: #f1f3fb;
  box-shadow: inset 0 0 0 1px var(--dh-blue);
}
.dh-business-type b, .dh-style b { font-size: 12px; }
.dh-business-type small, .dh-style small {
  margin-top: 2px;
  color: var(--dh-muted);
  font-size: 10px;
  line-height: 1.35;
}

.dh-avatar-source {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid #d8e6e2;
  border-radius: 11px;
  background: var(--dh-mint);
}
.dh-avatar-source div {
  display: grid;
  gap: 1px;
}
.dh-avatar-source span { color: #397566; font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.dh-avatar-source strong { font-size: 11px; }
.dh-avatar-source small { color: #547068; font-size: 10px; line-height: 1.4; }

.dh-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 10px;
}
.dh-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 3px;
  min-height: 138px;
  padding: 13px;
  overflow: hidden;
  border: 1.5px dashed #bbc4d1;
  border-radius: 13px;
  background: #f7f8fa;
  cursor: pointer;
}
.dh-upload:hover { border-color: var(--dh-blue); background: #f3f5fa; }
.dh-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dh-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dh-upload::after { content: ""; position: absolute; inset: 34% 0 0; background: rgba(7,17,63,.82); opacity: 0; }
.dh-upload.has-image::after { opacity: 1; }
.dh-upload > span,
.dh-upload > strong,
.dh-upload > small,
.dh-upload > b { position: relative; z-index: 2; }
.dh-upload.has-image > span,
.dh-upload.has-image > strong,
.dh-upload.has-image > small,
.dh-upload.has-image > b { color: white; }
.dh-upload-kicker {
  padding: 3px 6px;
  border-radius: 999px;
  color: #81531b;
  background: var(--dh-gold-soft);
  font-size: 9px;
  font-weight: 900;
}
.dh-upload strong { font-size: 12px; }
.dh-upload small { color: var(--dh-muted); font-size: 10px; line-height: 1.35; }
.dh-upload > b { margin-top: 2px; color: var(--dh-blue); font-size: 10px; }

.dh-material-guide {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #e2d3bb;
  border-radius: 11px;
  background: #fffaf2;
}
.dh-material-guide summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 9px;
  padding: 9px 11px;
  color: #704c1d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}
.dh-material-guide summary small { color: #756a5d; font-size: 9px; font-weight: 500; }
.dh-material-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  padding: 0 11px 11px;
}
.dh-material-guide-grid span {
  position: relative;
  padding-left: 13px;
  color: #535d6e;
  font-size: 10px;
  line-height: 1.4;
}
.dh-material-guide-grid span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #25806d;
  font-weight: 900;
}

.dh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 9px;
}
.dh-field {
  display: grid;
  align-content: start;
  gap: 5px;
  margin: 6px 0;
  font-size: 11px;
  font-weight: 800;
}
.dh-field-wide { grid-column: 1 / -1; }
.dh-field > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dh-field > span small { color: var(--dh-muted); font-size: 9px; font-weight: 500; }
.dh-field input:not([type="range"]),
.dh-field textarea,
.dh-field select {
  width: 100%;
  border: 1px solid #cfd5df;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--dh-text);
  background: white;
  outline: 0;
  font-size: 12px;
  font-weight: 500;
}
.dh-field input:not([type="range"]),
.dh-field select { min-height: 38px; }
.dh-field input:focus,
.dh-field textarea:focus,
.dh-field select:focus {
  border-color: var(--dh-blue);
  box-shadow: 0 0 0 3px rgba(27,43,119,.09);
}
.dh-field textarea { resize: vertical; line-height: 1.5; }
.dh-field > small { color: var(--dh-muted); font-size: 9px; font-weight: 500; line-height: 1.4; }
.dh-field i { font-style: normal; }
.dh-points { display: grid; gap: 5px; }
.dh-script-field { margin: 0; }

.dh-advanced-settings,
.dh-engine-details {
  overflow: hidden;
  border: 1px solid #dce1e9;
  border-radius: 10px;
  background: #f8f9fb;
}
.dh-advanced-settings { margin-top: 6px; }
.dh-advanced-settings > summary,
.dh-engine-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: #34415a;
  cursor: pointer;
  list-style-position: inside;
}
.dh-advanced-settings > summary span,
.dh-engine-details > summary span {
  font-size: 10px;
  font-weight: 900;
}
.dh-advanced-settings > summary small,
.dh-engine-details > summary small {
  margin-left: auto;
  color: var(--dh-muted);
  font-size: 9px;
  line-height: 1.35;
  text-align: right;
}
.dh-advanced-settings > .dh-form-grid { padding: 0 10px 8px; }
.dh-engine-details { margin-bottom: 8px; }

.dh-secondary, .dh-tertiary, .dh-primary {
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: .16s ease;
}
.dh-secondary { border: 1px solid var(--dh-blue); color: var(--dh-blue); background: white; }
.dh-secondary:hover:not(:disabled) { background: #f1f3fb; }
.dh-tertiary { border: 1px solid #c9d0db; color: #34415a; background: #f7f8fa; }
.dh-primary { border: 0; color: white; background: var(--dh-navy); }
.dh-primary:hover:not(:disabled) { background: #15256c; transform: translateY(-1px); }
.dh-secondary:disabled, .dh-primary:disabled, .dh-tertiary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.dh-guidance, .dh-inline-warning {
  padding: 9px 11px;
  border: 1px solid #cfe4df;
  border-radius: 10px;
  color: #3e5f57;
  background: #f0faf7;
  font-size: 10px;
  line-height: 1.45;
}
.dh-creative-suite {
  display: grid;
  gap: 14px;
}
.dh-creative-suite > .dh-section-head { margin-bottom: 0; }
.dh-creative-guidance { margin-top: -4px; }
.dh-creative-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce1e9;
  border-radius: 13px;
  background: #f8f9fb;
}
.dh-direction-block { background: white; }
.dh-creative-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.dh-creative-block-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dh-creative-block-head span {
  color: #996323;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
}
.dh-creative-block-head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}
.dh-creative-block-head small {
  max-width: 270px;
  color: var(--dh-muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}
.dh-creative-block .dh-engine-details,
.dh-creative-block .dh-voice-preview { background: white; }
.dh-creative-block .dh-empty { padding: 18px 12px 12px; }
.dh-creative-block .dh-script-field textarea { min-height: 124px; }
.dh-empty {
  display: grid;
  gap: 3px;
  padding: 22px 14px;
  color: var(--dh-muted);
  text-align: center;
  font-size: 10px;
}
.dh-empty strong { color: #35415a; font-size: 11px; }
.dh-direction-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.dh-direction-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 122px;
  padding: 11px;
  border: 1px solid #d7dce5;
  border-radius: 11px;
  background: #fbfcfd;
  text-align: left;
  cursor: pointer;
}
.dh-direction-card:hover,
.dh-direction-card.is-selected {
  border-color: var(--dh-blue);
  box-shadow: inset 0 0 0 1px var(--dh-blue);
}
.dh-direction-card.is-selected { background: #f1f3fb; }
.dh-direction-card > span { color: #946126; font-size: 9px; font-weight: 900; }
.dh-direction-card strong { font-size: 12px; }
.dh-direction-card p { margin: 0; color: #45526a; font-size: 10px; line-height: 1.4; }
.dh-direction-card small { margin-top: auto; color: var(--dh-muted); font-size: 9px; line-height: 1.35; }
.dh-direction-editor {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #d7dce5;
  border-radius: 11px;
  background: #f8f9fb;
}
.dh-direction-editor > summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.dh-direction-editor > summary div { display: grid; gap: 1px; }
.dh-direction-editor > summary span { color: #946126; font-size: 9px; font-weight: 900; }
.dh-direction-editor h3 { margin: 0; font-size: 12px; }
.dh-direction-editor > summary small { color: var(--dh-muted); font-size: 9px; }
.dh-inline-warning { border-color: #ecd2a6; color: #805a20; background: #fff8e9; }

.dh-voice-source {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.dh-voice-source legend { margin-bottom: 6px; color: var(--dh-muted); font-size: 9px; font-weight: 900; }
.dh-voice-source label { position: relative; cursor: pointer; }
.dh-voice-source input { position: absolute; opacity: 0; pointer-events: none; }
.dh-voice-source span {
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 10px 11px;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  background: #f8f9fb;
}
.dh-voice-source b { font-size: 11px; }
.dh-voice-source small { color: var(--dh-muted); font-size: 9px; line-height: 1.35; }
.dh-voice-source input:checked + span { border-color: #407d70; background: #eff9f6; box-shadow: 0 0 0 1px #407d70 inset; }

.dh-custom-audio {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) 1.15fr;
  gap: 8px 12px;
  align-items: center;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid #8cc9bd;
  border-radius: 11px;
  background: #f1f9f6;
}
.dh-custom-audio[hidden] { display: none; }
.dh-audio-drop { cursor: pointer; }
.dh-audio-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dh-audio-drop span { display: grid; gap: 3px; padding: 10px; border: 1px dashed #64a597; border-radius: 9px; background: white; }
.dh-audio-drop b { font-size: 11px; }
.dh-audio-drop small { color: var(--dh-muted); font-size: 9px; line-height: 1.4; }
.dh-audio-drop.has-audio span { border-style: solid; border-color: #347565; }
.dh-custom-audio audio { width: 100%; min-height: 34px; }
.dh-custom-audio p { grid-column: 1 / -1; margin: 0; color: #3f4e5e; font-size: 9px; line-height: 1.45; }

.dh-engine-route {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}
.dh-engine-route > div {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  background: #f8f9fb;
}
.dh-engine-route > div.is-primary { border-color: #8cc9bd; background: #eff9f6; }
.dh-engine-route span { color: var(--dh-muted); font-size: 9px; font-weight: 900; }
.dh-engine-route strong { font-size: 11px; }
.dh-engine-route p { grid-column: 1 / -1; margin: 0; color: var(--dh-muted); font-size: 9px; line-height: 1.45; }

.dh-voice-preview {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 7px 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #dce1e9;
  border-radius: 10px;
  background: #f8fafc;
}
.dh-voice-preview audio { width: 100%; min-height: 34px; }
.dh-voice-preview small { grid-column: 1 / -1; color: var(--dh-muted); font-size: 9px; line-height: 1.4; }

.dh-pro-contract {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) 1.45fr;
  gap: 4px 14px;
  align-items: center;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #8acdbf;
  border-radius: 11px;
  background: #f1f9f6;
}
.dh-pro-contract div { grid-row: 1 / 3; }
.dh-pro-contract span, .dh-pro-contract strong { display: block; }
.dh-pro-contract span { color: #347565; font-size: 9px; font-weight: 900; }
.dh-pro-contract strong { margin-top: 2px; font-size: 13px; }
.dh-pro-contract p { margin: 0; color: #3f4e5e; font-size: 10px; line-height: 1.4; }
.dh-pro-contract small { color: #6e5a35; font-size: 9px; line-height: 1.4; }

.dh-summary-card {
  padding: 16px;
  border-radius: 15px;
  color: white;
  background: var(--dh-navy);
  box-shadow: 0 15px 35px rgba(7,17,63,.14);
}
.dh-summary-card > span { color: #aeb8d1; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.dh-summary-card > strong { display: block; margin: 5px 0 10px; font-size: 16px; line-height: 1.3; }
.dh-summary-card dl { margin: 0; }
.dh-summary-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 10px;
}
.dh-summary-card dt { color: #aeb8d1; }
.dh-summary-card dd { margin: 0; text-align: right; font-weight: 800; }
.dh-summary-card p {
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #bdc6da;
  font-size: 9px;
  line-height: 1.45;
}

.dh-submit-panel { background: #fff; }
.dh-delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dh-contract, .dh-preflight { padding: 11px; border-radius: 10px; background: #f4f7fb; }
.dh-contract strong, .dh-preflight strong { font-size: 11px; }
.dh-contract ul { margin: 6px 0 0; padding-left: 16px; color: #4b5870; font-size: 9px; line-height: 1.6; }
.dh-preflight { color: #72501f; background: #fff7e8; }
.dh-preflight strong, .dh-preflight p, .dh-preflight span { display: block; }
.dh-preflight p { margin: 6px 0; font-size: 10px; line-height: 1.45; }
.dh-preflight span { font-size: 9px; line-height: 1.4; }
.dh-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 11px 0;
  font-size: 10px;
  line-height: 1.45;
  cursor: pointer;
}
.dh-consent input { width: 17px; height: 17px; margin-top: 1px; flex: 0 0 auto; }
.dh-submit-panel > .dh-primary { width: 100%; padding: 11px 14px; }

.dh-phase-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 12px 2px 0;
}
.dh-phase-actions span { max-width: 560px; color: var(--dh-muted); font-size: 10px; line-height: 1.4; }
.dh-phase-actions .dh-primary { min-width: 190px; }
.dh-phase-actions.is-back { justify-content: flex-start; }
.dh-phase-actions.is-back span { margin-left: auto; text-align: right; }

.dh-activity {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #d9dee6;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
}
.dh-activity > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.dh-activity > summary small { color: var(--dh-muted); font-size: 9px; font-weight: 500; }
.dh-activity[open] > summary { border-bottom: 1px solid var(--dh-line); }
.dh-task {
  margin: 12px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 20px;
  align-items: center;
}
.dh-task-copy > span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #80531e;
  background: var(--dh-gold-soft);
  font-size: 10px;
  font-weight: 900;
}
.dh-task h2 { margin: 10px 0 5px; font-size: 18px; }
.dh-task p, .dh-task small { color: var(--dh-muted); font-size: 10px; }
.dh-progress { height: 8px; margin: 13px 0 7px; overflow: hidden; border-radius: 999px; background: #e8ebf1; }
.dh-progress i { display: block; width: 4%; height: 100%; border-radius: inherit; background: var(--dh-blue); transition: width .35s ease; }
.dh-task-engine { margin-top: 8px; color: #49566d; font-size: 10px; line-height: 1.45; }
.dh-result video { width: 100%; max-height: 520px; border-radius: 12px; background: #050816; }
.dh-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.dh-result-actions .dh-primary { grid-column: 1 / -1; }
.dh-result > p { margin: 7px 0 0; font-size: 9px; line-height: 1.4; }
.dh-history { padding: 12px; }
.dh-history .dh-section-head { margin-bottom: 8px; }
.dh-history-list { display: grid; gap: 6px; }
.dh-history-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--dh-line);
  border-radius: 9px;
  color: inherit;
  background: #fafbfc;
  text-align: left;
  cursor: pointer;
}
.dh-history-item b, .dh-history-item span { display: block; }
.dh-history-item span, .dh-history-item time { margin-top: 2px; color: var(--dh-muted); font-size: 9px; }

@media (min-width: 99999px) {
  .dh-shell {
    width: min(1380px, calc(100% - 28px));
    padding: 12px 0 32px;
  }
  .dh-hero {
    min-height: 72px;
    padding: 12px 18px;
    border-radius: 15px;
  }
  .dh-hero-copy { gap: 12px; }
  .dh-chip { padding: 5px 8px; font-size: 9px; }
  .dh-hero h1 { margin-bottom: 2px; font-size: 21px; }
  .dh-hero p { font-size: 10px; line-height: 1.4; }
  .dh-hero-facts span {
    min-height: 32px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 9px;
  }
  .dh-hero-facts b { font-size: 11px; }
  .dh-notice {
    top: 6px;
    margin: 6px 0;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.35;
  }
  .dh-studio { border-radius: 15px; }
  .dh-phase-tabs { padding: 5px; }
  .dh-phase-tabs button {
    grid-template-columns: 27px auto 1fr;
    min-height: 42px;
    padding: 5px 10px;
    border-radius: 9px;
  }
  .dh-phase-tabs button > span {
    width: 27px;
    height: 27px;
    font-size: 9px;
  }
  .dh-phase-tabs b { font-size: 11px; }
  .dh-phase-tabs small { font-size: 9px; }
  .dh-phase { padding: 9px; }
  .dh-build-grid {
    grid-template-columns: minmax(360px, .88fr) minmax(0, 1.42fr);
    gap: 9px;
  }
  .dh-script-column,
  .dh-delivery-column { gap: 9px; }
  .dh-generate-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, .6fr);
    gap: 9px;
  }
  .dh-panel {
    padding: 11px;
    border-radius: 11px;
  }
  .dh-section-head {
    gap: 8px;
    margin-bottom: 8px;
  }
  .dh-section-head > span {
    min-width: 29px;
    height: 23px;
    padding: 0 7px;
    font-size: 8px;
  }
  .dh-section-head p { margin-bottom: 0; font-size: 8px; }
  .dh-section-head h2 { font-size: 14px; }
  .dh-business-type,
  .dh-style {
    gap: 6px;
    margin-bottom: 6px;
  }
  .dh-business-type legend,
  .dh-style legend,
  .dh-voice-source legend { margin-bottom: 3px; font-size: 9px; }
  .dh-business-type span,
  .dh-style span {
    min-height: 39px;
    padding: 6px 8px;
    border-radius: 8px;
  }
  .dh-business-type b,
  .dh-style b { font-size: 10px; }
  .dh-business-type small,
  .dh-style small { font-size: 8px; }
  .dh-avatar-source {
    gap: 2px 8px;
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 8px;
  }
  .dh-avatar-source span { font-size: 8px; }
  .dh-avatar-source strong { font-size: 10px; }
  .dh-avatar-source small { font-size: 8px; }
  .dh-upload-grid { gap: 6px; margin-bottom: 6px; }
  .dh-upload {
    gap: 1px;
    min-height: 88px;
    padding: 8px;
    border-radius: 9px;
  }
  .dh-upload-kicker { padding: 2px 5px; font-size: 7px; }
  .dh-upload strong { font-size: 10px; }
  .dh-upload small,
  .dh-upload > b { font-size: 8px; }
  .dh-material-guide { margin-bottom: 5px; border-radius: 8px; }
  .dh-material-guide summary { padding: 6px 8px; font-size: 9px; }
  .dh-material-guide summary small { font-size: 8px; }
  .dh-facts-grid { grid-template-columns: .72fr 1.28fr; gap: 0 7px; }
  .dh-facts-grid > .dh-field-wide:not(.dh-advanced-settings) { grid-column: auto; }
  .dh-field { gap: 3px; margin: 3px 0; font-size: 9px; }
  .dh-field input:not([type="range"]),
  .dh-field textarea,
  .dh-field select {
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 10px;
  }
  .dh-field input:not([type="range"]),
  .dh-field select { min-height: 30px; }
  .dh-field > span small,
  .dh-field > small { font-size: 8px; }
  .dh-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .dh-points input { min-width: 0; }
  .dh-facts-grid > .dh-field:nth-child(2) { grid-column: 1 / -1; }
  .dh-advanced-settings { margin-top: 3px; }
  .dh-advanced-settings > summary,
  .dh-engine-details > summary { padding: 6px 8px; }
  .dh-advanced-settings > summary span,
  .dh-engine-details > summary span { font-size: 9px; }
  .dh-advanced-settings > summary small,
  .dh-engine-details > summary small { font-size: 8px; }
  .dh-guidance,
  .dh-inline-warning {
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 8px;
  }
  .dh-empty {
    gap: 1px;
    padding: 10px 8px;
    font-size: 8px;
  }
  .dh-empty strong { font-size: 9px; }
  .dh-direction-list { gap: 6px; margin-top: 6px; }
  .dh-direction-card {
    gap: 3px;
    min-height: 92px;
    padding: 8px;
    border-radius: 8px;
  }
  .dh-direction-card strong { font-size: 10px; }
  .dh-direction-card p { font-size: 8px; }
  .dh-direction-card small,
  .dh-direction-card > span { font-size: 7px; }
  .dh-direction-editor {
    margin-top: 6px;
    padding: 8px;
    border-radius: 8px;
  }
  .dh-script-field textarea { min-height: 82px; }
  .dh-secondary,
  .dh-tertiary,
  .dh-primary {
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 9px;
  }
  .dh-voice-source {
    gap: 6px;
    margin-bottom: 6px;
  }
  .dh-voice-source span {
    min-height: 39px;
    padding: 6px 8px;
    border-radius: 8px;
  }
  .dh-voice-source b { font-size: 10px; }
  .dh-voice-source small { font-size: 8px; }
  .dh-engine-details { margin-bottom: 4px; }
  .dh-engine-route {
    gap: 6px;
    padding: 0 8px 8px;
  }
  .dh-engine-route > div { padding: 7px 8px; border-radius: 8px; }
  .dh-engine-route span,
  .dh-engine-route p { font-size: 8px; }
  .dh-engine-route strong { font-size: 9px; }
  .dh-voice-preview {
    grid-template-columns: auto minmax(160px, 1fr) minmax(180px, 1.2fr);
    gap: 6px 8px;
    margin-top: 4px;
    padding: 6px 8px;
    border-radius: 8px;
  }
  .dh-voice-preview small { grid-column: auto; font-size: 8px; }
  .dh-custom-audio { margin-top: 4px; padding: 7px; }
  .dh-custom-audio p { font-size: 8px; }
  .dh-pro-contract {
    grid-template-columns: minmax(150px, .52fr) 1.05fr .7fr;
    gap: 4px 10px;
    margin-top: 5px;
    padding: 7px 9px;
    border-radius: 8px;
  }
  .dh-pro-contract div { grid-row: auto; }
  .dh-pro-contract strong { font-size: 10px; }
  .dh-pro-contract p,
  .dh-pro-contract small { font-size: 8px; }
  .dh-summary-card {
    padding: 11px;
    border-radius: 11px;
  }
  .dh-summary-card > strong {
    margin: 3px 0 5px;
    font-size: 13px;
  }
  .dh-summary-card dl > div { padding: 4px 0; font-size: 8px; }
  .dh-summary-card p { margin-top: 5px; padding-top: 5px; font-size: 8px; }
  .dh-delivery-grid { gap: 6px; }
  .dh-contract,
  .dh-preflight { padding: 8px; border-radius: 8px; }
  .dh-contract strong,
  .dh-preflight strong { font-size: 9px; }
  .dh-contract ul { margin-top: 4px; padding-left: 14px; font-size: 8px; line-height: 1.45; }
  .dh-preflight p { margin: 4px 0; font-size: 8px; }
  .dh-preflight span { font-size: 8px; }
  .dh-consent {
    gap: 6px;
    margin: 7px 0;
    font-size: 8px;
  }
  .dh-consent input { width: 14px; height: 14px; }
  .dh-submit-panel > .dh-primary { padding: 8px 10px; }
  .dh-phase-actions {
    gap: 10px;
    padding: 7px 2px 0;
  }
  .dh-phase-actions span { font-size: 8px; }
  .dh-phase-actions .dh-primary { min-width: 170px; }
  .dh-activity {
    margin-top: 7px;
    border-radius: 11px;
  }
  .dh-activity > summary { padding: 9px 12px; font-size: 10px; }
}

@media (min-width: 1121px) {
  .dh-shell {
    width: min(1320px, calc(100% - 48px));
    padding: 20px 0 48px;
  }
  .dh-hero {
    min-height: 94px;
    padding: 20px 24px;
  }
  .dh-hero h1 { font-size: 27px; }
  .dh-hero p { font-size: 13px; }
  .dh-chip { font-size: 12px; }
  .dh-hero-facts span { min-height: 42px; font-size: 12px; }
  .dh-hero-facts b { font-size: 15px; }
  .dh-notice {
    margin: 10px 0;
    padding: 10px 14px;
    font-size: 13px;
  }
  .dh-phase-tabs { padding: 8px; }
  .dh-phase-tabs button {
    min-height: 60px;
    padding: 10px 15px;
  }
  .dh-phase-tabs b { font-size: 15px; }
  .dh-phase-tabs small { font-size: 12px; }
  .dh-phase { padding: 18px; }
  .dh-build-grid {
    grid-template-columns: minmax(420px, .82fr) minmax(0, 1.18fr);
    gap: 16px;
  }
  .dh-script-column,
  .dh-production-column,
  .dh-delivery-column { gap: 16px; }
  .dh-final-grid .dh-delivery-column {
    grid-template-columns: minmax(320px, .62fr) minmax(0, 1.38fr);
  }
  .dh-panel {
    padding: 20px;
    border-radius: 16px;
  }
  .dh-section-head { margin-bottom: 16px; }
  .dh-section-head > span {
    min-width: 38px;
    height: 31px;
    font-size: 11px;
  }
  .dh-section-head p { font-size: 11px; }
  .dh-section-head h2 { font-size: 22px; }
  .dh-business-type legend,
  .dh-style legend,
  .dh-voice-source legend { font-size: 13px; }
  .dh-business-type label span,
  .dh-style label span,
  .dh-voice-source span {
    min-height: 60px;
    padding: 11px 13px;
  }
  .dh-business-type b,
  .dh-style b,
  .dh-voice-source b { font-size: 14px; }
  .dh-business-type small,
  .dh-style small,
  .dh-voice-source small { font-size: 11px; }
  .dh-avatar-source { padding: 11px 13px; }
  .dh-avatar-source span { font-size: 11px; }
  .dh-avatar-source strong { font-size: 14px; }
  .dh-avatar-source small { font-size: 12px; }
  .dh-upload {
    min-height: 158px;
    padding: 15px;
  }
  .dh-upload-kicker { font-size: 10px; }
  .dh-upload strong { font-size: 14px; }
  .dh-upload small,
  .dh-upload > b { font-size: 12px; }
  .dh-material-guide summary { padding: 11px 13px; font-size: 13px; }
  .dh-material-guide summary small { font-size: 11px; }
  .dh-material-guide-grid span { font-size: 11px; line-height: 1.5; }
  .dh-field {
    gap: 6px;
    margin: 8px 0;
    font-size: 13px;
  }
  .dh-field input:not([type="range"]),
  .dh-field textarea,
  .dh-field select {
    padding: 10px 12px;
    font-size: 14px;
  }
  .dh-field input:not([type="range"]),
  .dh-field select { min-height: 44px; }
  .dh-field > span small,
  .dh-field > small { font-size: 11px; }
  .dh-advanced-settings > summary,
  .dh-engine-details > summary { padding: 11px 13px; }
  .dh-advanced-settings > summary span,
  .dh-engine-details > summary span { font-size: 12px; }
  .dh-advanced-settings > summary small,
  .dh-engine-details > summary small { font-size: 11px; }
  .dh-guidance,
  .dh-inline-warning { padding: 10px 12px; font-size: 12px; }
  .dh-creative-suite { gap: 16px; }
  .dh-creative-block { padding: 17px; }
  .dh-creative-block-head { margin-bottom: 13px; }
  .dh-creative-block-head span,
  .dh-creative-block-head small { font-size: 11px; }
  .dh-creative-block-head h3 { font-size: 17px; }
  .dh-empty { padding: 28px 16px; font-size: 12px; }
  .dh-empty strong { font-size: 14px; }
  .dh-direction-card {
    min-height: 148px;
    padding: 13px;
  }
  .dh-direction-card > span { font-size: 10px; }
  .dh-direction-card strong { font-size: 14px; }
  .dh-direction-card p { font-size: 12px; }
  .dh-direction-card small { font-size: 11px; }
  .dh-direction-editor { padding: 13px; }
  .dh-direction-editor > summary span,
  .dh-direction-editor > summary small { font-size: 11px; }
  .dh-direction-editor h3 { font-size: 14px; }
  .dh-secondary,
  .dh-tertiary,
  .dh-primary {
    padding: 10px 15px;
    font-size: 13px;
  }
  .dh-engine-route span,
  .dh-engine-route p { font-size: 11px; }
  .dh-engine-route strong { font-size: 13px; }
  .dh-voice-preview small,
  .dh-custom-audio p,
  .dh-audio-drop small { font-size: 11px; }
  .dh-audio-drop b { font-size: 13px; }
  .dh-pro-contract strong { font-size: 14px; }
  .dh-pro-contract span,
  .dh-pro-contract p,
  .dh-pro-contract small { font-size: 11px; }
  .dh-summary-card { padding: 19px; }
  .dh-summary-card > span { font-size: 11px; }
  .dh-summary-card > strong { font-size: 19px; }
  .dh-summary-card dl > div { padding: 9px 0; font-size: 12px; }
  .dh-summary-card p { font-size: 11px; }
  .dh-contract,
  .dh-preflight { padding: 13px; }
  .dh-contract strong,
  .dh-preflight strong { font-size: 13px; }
  .dh-contract ul,
  .dh-preflight span { font-size: 11px; }
  .dh-preflight p { font-size: 12px; }
  .dh-consent { font-size: 12px; }
  .dh-submit-panel > .dh-primary { min-height: 46px; font-size: 14px; }
  .dh-phase-actions { padding-top: 15px; }
  .dh-phase-actions span { font-size: 12px; }
  .dh-activity > summary { padding: 15px 18px; font-size: 14px; }
  .dh-activity > summary small { font-size: 11px; }
  .dh-history-item span,
  .dh-history-item time { font-size: 11px; }
}

@media (min-width: 1600px) {
  .dh-shell { width: min(1880px, calc(100% - 48px)); }
  .dh-build-grid {
    grid-template-columns: minmax(560px, .9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 1120px) {
  .dh-hero-facts span:last-child { display: none; }
  .dh-build-grid { grid-template-columns: 1fr; }
  .dh-final-grid .dh-delivery-column { grid-template-columns: 1fr; }
  .dh-material-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .dh-material-panel > .dh-section-head,
  .dh-material-panel > .dh-business-type,
  .dh-material-panel > .dh-avatar-source,
  .dh-material-panel > .dh-form-grid { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .dh-shell { width: min(100% - 22px, 680px); padding-top: 14px; }
  .dh-hero { align-items: flex-start; padding: 18px; }
  .dh-hero-copy { align-items: flex-start; }
  .dh-hero-facts { display: none; }
  .dh-hero h1 { font-size: 23px; }
  .dh-phase-tabs { grid-template-columns: 1fr; }
  .dh-phase-tabs button { grid-template-columns: 30px auto; }
  .dh-phase-tabs small { grid-column: 2; }
  .dh-phase { padding: 10px; }
  .dh-material-panel { display: block; }
  .dh-creative-block-head { align-items: flex-start; }
  .dh-direction-list { grid-template-columns: 1fr; }
  .dh-direction-card { min-height: 0; }
  .dh-task { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .dh-shell { width: calc(100% - 16px); padding-bottom: 34px; overflow-x: clip; }
  .dh-hero-copy { display: grid; gap: 8px; }
  .dh-hero { border-radius: 15px; }
  .dh-hero p { font-size: 11px; }
  .dh-panel { padding: 14px; border-radius: 13px; }
  .dh-section-head { align-items: flex-start; flex-wrap: wrap; }
  .dh-section-head .dh-secondary { width: 100%; }
  .dh-creative-block { padding: 12px; }
  .dh-creative-block-head {
    align-items: stretch;
    flex-direction: column;
  }
  .dh-creative-block-head small {
    max-width: none;
    text-align: left;
  }
  .dh-creative-block-head .dh-secondary { width: 100%; }
  .dh-business-type,
  .dh-upload-grid,
  .dh-form-grid,
  .dh-style,
  .dh-voice-source,
  .dh-engine-route,
  .dh-delivery-grid,
  .dh-material-guide-grid,
  .dh-pro-contract { grid-template-columns: 1fr; }
  .dh-field-wide, .dh-engine-route p { grid-column: 1; }
  .dh-avatar-source { grid-template-columns: 1fr; }
  .dh-voice-preview { grid-template-columns: 1fr; }
  .dh-custom-audio { grid-template-columns: 1fr; }
  .dh-custom-audio p { grid-column: 1; }
  .dh-voice-preview small { grid-column: 1; }
  .dh-pro-contract div { grid-row: auto; }
  .dh-phase-actions { align-items: stretch; flex-direction: column; }
  .dh-phase-actions .dh-primary { width: 100%; min-width: 0; }
  .dh-phase-actions.is-back span { margin-left: 0; text-align: left; }
  .dh-activity > summary { align-items: flex-start; flex-direction: column; }
  .dh-result-actions { grid-template-columns: 1fr; }
  .dh-result-actions .dh-primary { grid-column: 1; }
}
