.dvd-tool-wrap { position: relative; background: #000000; }
.dvd-stage {
  position: relative;
  height: min(74dvh, 620px);
  min-height: 380px;
  width: 100%;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}
.dvd-stage.is-expanded {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  min-height: 100dvh;
  z-index: 9999;
}
.dvd-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.dvd-stage.is-live .dvd-overlay-top,
.dvd-stage.is-live .dvd-stage-actions { display: none !important; }
.dvd-overlay-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  pointer-events: none;
}
.dvd-title {
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.dvd-stats {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}
.dvd-stage[data-bg-tone="dark"] .dvd-title,
.dvd-stage[data-bg-tone="dark"] .dvd-stats {
  color: #f6f1e8;
  background: rgba(20, 17, 13, 0.72);
  border: 1px solid rgba(246, 241, 232, 0.18);
}
.dvd-stage[data-bg-tone="light"] .dvd-title,
.dvd-stage[data-bg-tone="light"] .dvd-stats {
  color: #1c1712;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 17, 13, 0.14);
}
.dvd-corner-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ff3b1f;
  color: #ffffff;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.dvd-stage-actions {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(94%, 520px);
}
.dvd-cta, .dvd-btn-ghost {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.dvd-cta {
  background: #ff3b1f;
  color: #ffffff;
  border: 2px solid #ff3b1f;
}
.dvd-cta:hover { filter: brightness(0.92); }
.dvd-stage[data-bg-tone="dark"] .dvd-btn-ghost {
  background: rgba(20, 17, 13, 0.84);
  color: #f6f1e8;
  border: 1px solid rgba(246, 241, 232, 0.35);
}
.dvd-stage[data-bg-tone="light"] .dvd-btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: #1c1712;
  border: 1px solid rgba(20, 17, 13, 0.25);
}
.dvd-deck {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding: 20px;
  display: grid;
  gap: 18px;
}
@media (min-width: 800px) {
  .dvd-deck {
    padding: 24px max(32px, calc((100% - var(--page)) / 2));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 28px;
  }
  .dvd-wide { grid-column: span 3; }
}
.dvd-control-group { display: grid; gap: 8px; min-width: 0; align-content: start; }
.dvd-label-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.dvd-label {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.dvd-val {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}
.dvd-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dvd-seg button, .dvd-toggle, .dvd-color-pick, .dvd-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}
.dvd-seg button[aria-pressed="true"],
.dvd-toggle[aria-pressed="true"] {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--primary);
}
.dvd-color-pick input[type="color"] {
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.dvd-deck input[type="range"] {
  width: 100%;
  min-height: 36px;
  accent-color: var(--primary);
  cursor: pointer;
}
.dvd-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dvd-sw {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.dvd-sw[aria-pressed="true"] {
  border-color: var(--bg);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.dvd-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dvd-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.dvd-custom-box {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.dvd-custom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.dvd-text-field {
  flex: 1 1 240px;
  display: grid;
  gap: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.dvd-text-field input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  box-sizing: border-box;
}
.dvd-upload-btn input[type="file"] { display: none; }
.dvd-note {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.faq-accordion {
  display: grid;
  gap: 10px;
  margin: 16px 0 28px;
  max-width: 44rem;
}
.faq-accordion details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}
.faq-accordion summary {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: "+";
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  flex: 0 0 auto;
}
.faq-accordion details[open] summary::after { content: "−"; }
.faq-accordion details p {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
@media (max-width: 640px) {
  .dvd-stage { min-height: 340px; height: 60dvh; }
  .dvd-overlay-top { top: 10px; left: 10px; right: 10px; }
  .dvd-stage-actions { bottom: 12px; }
  .dvd-cta, .dvd-btn-ghost { flex: 1 1 auto; padding: 10px 14px; }
  .dvd-toggles .dvd-toggle, .dvd-upload-btn { width: 100%; }
}
.dvd-tool-wrap [hidden] { display: none !important; }
