/*
 * Tanur Graphics Dieline Generator
 * Focused, responsive two-step production-dieline interface.
 */

.dlg-root,
.dlg-root * {
  box-sizing: border-box;
}

/*
 * The shortcode can sit inside opinionated page-builder/theme typography.
 * The ID raises specificity without leaking any generator styles outward.
 */
#dlg-root.dlg-root {
  width: 100%;
  max-width: none !important;
}

#dlg-root .dlg-shell {
  width: min(1440px, calc(100% - 64px));
  max-width: 100%;
  margin-inline: auto;
}

#dlg-root button,
#dlg-root input,
#dlg-root select,
#dlg-root summary,
#dlg-root label {
  font: inherit;
}

#dlg-root h2,
#dlg-root h3,
#dlg-root p,
#dlg-root fieldset,
#dlg-root legend {
  margin: 0;
  padding: 0;
}

.dlg-root {
  --dlg-ink: #17151c;
  --dlg-muted: #696471;
  --dlg-faint: #918b98;
  --dlg-line: #e7e2ea;
  --dlg-line-strong: #d7d0dc;
  --dlg-surface: #ffffff;
  --dlg-surface-soft: #f8f6f9;
  --dlg-canvas: #f3f1f5;
  --dlg-brand: #6d28d9;
  --dlg-brand-dark: #5520ad;
  --dlg-brand-pale: #f3edff;
  --dlg-cut: #243c88;
  --dlg-crease: #d14754;
  --dlg-glue: #d18a16;
  --dlg-danger: #b42318;
  --dlg-danger-bg: #fff3f1;
  --dlg-warning: #8a5600;
  --dlg-warning-bg: #fff8e8;
  --dlg-success: #167548;
  --dlg-shadow: 0 18px 55px rgba(36, 27, 45, .08);
  width: 100%;
  max-width: none !important;
  min-height: 0;
  margin: 0;
  color: var(--dlg-ink);
  background: #fbfafc;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.dlg-root button,
.dlg-root input,
.dlg-root select {
  font: inherit;
}

.dlg-root button,
.dlg-root select,
.dlg-root summary,
.dlg-root label {
  -webkit-tap-highlight-color: transparent;
}

.dlg-root button,
.dlg-root a,
.dlg-root input,
.dlg-root select,
.dlg-root summary,
.dlg-root [tabindex] {
  outline: none;
}

.dlg-root button:focus-visible,
.dlg-root a:focus-visible,
.dlg-root input:focus-visible,
.dlg-root select:focus-visible,
.dlg-root summary:focus-visible,
.dlg-root [tabindex]:focus-visible {
  outline: 3px solid rgba(109, 40, 217, .22);
  outline-offset: 2px;
}

.dlg-root h1,
.dlg-root h2,
.dlg-root h3,
.dlg-root p,
.dlg-root fieldset,
.dlg-root legend {
  margin: 0;
  padding: 0;
}

.dlg-root fieldset {
  min-width: 0;
  border: 0;
}

.dlg-root [hidden] {
  display: none !important;
}

.dlg-disabled-notice {
  max-width: 760px;
  margin: 32px auto;
  padding: 18px 20px;
  border: 1px solid #e7e2ea;
  border-radius: 10px;
  background: #fff;
  color: #504958;
  font: 500 15px/1.5 system-ui, sans-serif;
}

.dlg-entitlement {
  color: var(--dlg-muted);
  font-size: 12px;
  font-weight: 650;
}

/* Buttons */
.dlg-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.dlg-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.dlg-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.dlg-button[aria-disabled="true"],
.dlg-button.is-loading {
  cursor: wait;
  opacity: .68;
  pointer-events: none;
}

.dlg-button-primary {
  color: #fff !important;
  border-color: var(--dlg-brand);
  background: var(--dlg-brand);
}

.dlg-button-primary:hover:not(:disabled) {
  border-color: var(--dlg-brand-dark);
  background: var(--dlg-brand-dark);
}

.dlg-button-secondary {
  color: var(--dlg-ink) !important;
  border-color: var(--dlg-line-strong);
  background: #fff;
}

.dlg-button-secondary:hover:not(:disabled) {
  color: var(--dlg-brand) !important;
  border-color: #bda9df;
  background: var(--dlg-brand-pale);
}

.dlg-button-compact {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

.dlg-button-wide {
  width: 100%;
  justify-content: space-between;
  padding-inline: 20px;
}

/* Shortcode content */
.dlg-app-content {
  padding-block: 32px 80px;
}

.dlg-workflow-view[hidden] {
  display: none !important;
}

.dlg-template-section {
  min-height: min(760px, calc(100vh - 160px));
}

.dlg-eyebrow {
  margin-bottom: 13px !important;
  color: var(--dlg-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dlg-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.dlg-section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.dlg-step {
  color: var(--dlg-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.dlg-section-heading h2 {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -.025em;
}

.dlg-section-heading > p {
  color: var(--dlg-muted);
  font-size: 13px;
}

/* Selector landing page */
.dlg-sales-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  margin: 4px 0 68px;
  padding: clamp(36px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid #e5deeb;
  border-radius: 24px;
  background:
    radial-gradient(circle at 9% 12%, rgba(109, 40, 217, .09), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fbf8ff 58%, #f4effb 100%);
  box-shadow: 0 30px 90px rgba(43, 30, 56, .09);
}

.dlg-sales-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(109, 40, 217, .11);
  border-radius: 50%;
  pointer-events: none;
}

.dlg-sales-hero-copy,
.dlg-sales-hero-visual {
  position: relative;
  z-index: 1;
}

.dlg-sales-hero h2 {
  max-width: 720px;
  font-size: clamp(34px, 4.4vw, 65px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.dlg-sales-lead {
  max-width: 650px;
  margin-top: 22px !important;
  color: var(--dlg-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.dlg-sales-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.dlg-sales-actions .dlg-button {
  min-height: 48px;
  padding-inline: 22px;
}

.dlg-sales-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 0;
  padding: 25px 0 0;
  border-top: 1px solid var(--dlg-line);
  list-style: none;
}

.dlg-sales-facts li {
  min-width: 0;
}

.dlg-sales-facts strong,
.dlg-sales-facts span {
  display: block;
}

.dlg-sales-facts strong {
  color: var(--dlg-brand-dark);
  font-size: 21px;
  letter-spacing: -.03em;
}

.dlg-sales-facts span {
  margin-top: 2px;
  color: var(--dlg-muted);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.35;
}

.dlg-sales-hero-visual {
  padding: 16px;
  border: 1px solid #dcd3e5;
  border-radius: 17px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 24px 60px rgba(63, 41, 83, .12);
}

.dlg-sales-visual-head,
.dlg-sales-visual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--dlg-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.dlg-sales-visual-head {
  padding: 2px 2px 13px;
}

.dlg-sales-visual-head b {
  color: var(--dlg-brand);
  font-size: inherit;
}

.dlg-sales-preview {
  height: clamp(300px, 31vw, 455px);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #ece7ef;
  border-radius: 12px;
  background-color: #f9f7fa;
  background-image: radial-gradient(#ddd6e2 .7px, transparent .7px);
  background-size: 18px 18px;
}

#dlg-root .dlg-sales-preview > svg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  fill: none;
  overflow: hidden;
}

.dlg-sales-preview #DLG_ANNOTATION,
.dlg-sales-preview #DLG_DIMENSIONS,
.dlg-sales-preview #DLG_INFO {
  display: none !important;
}

.dlg-sales-preview .dlg-cut {
  stroke: var(--dlg-cut) !important;
}

.dlg-sales-preview .dlg-crease {
  stroke: var(--dlg-crease) !important;
}

.dlg-sales-preview .dlg-glue {
  fill: rgba(209, 138, 22, .14) !important;
  stroke: var(--dlg-glue) !important;
}

.dlg-sales-visual-foot {
  align-items: end;
  padding: 13px 2px 1px;
  text-transform: none;
  letter-spacing: 0;
}

.dlg-sales-visual-foot span:first-child {
  color: var(--dlg-ink);
  font-size: 12px;
  font-weight: 760;
}

.dlg-sales-visual-foot span:last-child {
  text-align: right;
}

.dlg-section-intro h2 {
  max-width: 780px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.dlg-section-intro > p:last-child {
  max-width: 710px;
  margin-top: 13px !important;
  color: var(--dlg-muted);
  font-size: 14px;
}

.dlg-workflow-proof {
  margin-top: 76px;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 20px;
  background: #17131d;
  color: #fff;
}

.dlg-workflow-proof .dlg-section-intro > p:last-child {
  color: #aaa2b1;
}

.dlg-workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #39313f;
  border-radius: 13px;
  background: #39313f;
  list-style: none;
}

.dlg-workflow-steps li {
  min-height: 190px;
  padding: 28px;
  background: #211b27;
}

.dlg-workflow-steps li > span {
  color: #a578f0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.dlg-workflow-steps strong {
  display: block;
  margin-top: 28px;
  font-size: 18px;
}

.dlg-workflow-steps p {
  margin-top: 8px !important;
  color: #aaa2b1;
  font-size: 12px;
  line-height: 1.55;
}

.dlg-plans {
  margin-top: 84px;
  scroll-margin-top: 24px;
}

.dlg-plans-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.dlg-billing-toggle {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px !important;
  border: 1px solid var(--dlg-line) !important;
  border-radius: 9px;
  background: #f2eff4;
}

.dlg-billing-toggle label {
  cursor: pointer;
}

.dlg-billing-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.dlg-billing-toggle span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  color: var(--dlg-muted);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.dlg-billing-toggle input:checked + span {
  color: var(--dlg-brand-dark);
  background: #fff;
  box-shadow: 0 3px 12px rgba(34, 24, 43, .08);
}

.dlg-billing-toggle input:focus-visible + span {
  outline: 3px solid rgba(109, 40, 217, .22);
  outline-offset: 2px;
}

.dlg-billing-toggle b {
  padding: 2px 5px;
  color: #106c43;
  border-radius: 4px;
  background: #e9f8f0;
  font-size: 8px;
  text-transform: uppercase;
}

.dlg-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 34px auto 0;
}

.dlg-plan-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--dlg-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(41, 31, 50, .06);
}

.dlg-plan-card-pro {
  color: #fff;
  border-color: #23192d;
  background: #1d1723;
  box-shadow: 0 26px 65px rgba(32, 22, 40, .17);
}

.dlg-plan-ribbon {
  align-self: flex-start;
  margin: -59px 0 28px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 5px;
  background: var(--dlg-brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dlg-plan-name {
  color: var(--dlg-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dlg-plan-card-pro .dlg-plan-name {
  color: #b895f4;
}

.dlg-plan-price {
  min-height: 63px;
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 13px !important;
}

.dlg-plan-price strong {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1;
}

.dlg-plan-price span {
  margin-bottom: 5px;
  color: var(--dlg-muted);
  font-size: 11px;
}

.dlg-plan-card-pro .dlg-plan-price span,
.dlg-plan-card-pro .dlg-plan-card-head > p:last-child,
.dlg-plan-card-pro .dlg-plan-note {
  color: #aaa2b1;
}

.dlg-plan-card-head > p:last-child {
  min-height: 44px;
  margin-top: 13px !important;
  color: var(--dlg-muted);
  font-size: 12px;
}

.dlg-plan-features {
  display: grid;
  gap: 15px;
  margin: 27px 0 31px;
  padding: 27px 0 0;
  border-top: 1px solid var(--dlg-line);
  list-style: none;
}

.dlg-plan-card-pro .dlg-plan-features {
  border-top-color: #3d3444;
}

.dlg-plan-features li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  color: #544d59;
  font-size: 12px;
  line-height: 1.45;
}

.dlg-plan-card-pro .dlg-plan-features li {
  color: #d6d0da;
}

.dlg-plan-features li > span {
  min-width: 0;
}

.dlg-plan-features li > span:first-child {
  color: var(--dlg-success);
  font-weight: 800;
}

.dlg-plan-features b {
  display: inline;
  font-weight: 760;
}

.dlg-plan-card .dlg-button {
  margin-top: auto;
}

.dlg-plan-note {
  min-height: 32px;
  margin-top: 10px !important;
  color: var(--dlg-faint);
  font-size: 9px;
  text-align: center;
}

.dlg-plan-clarifier {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 900px;
  margin: 22px auto 0;
  color: var(--dlg-muted);
  font-size: 11px;
  text-align: center;
}

.dlg-plan-clarifier strong {
  color: var(--dlg-ink);
}

.dlg-final-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-top: 84px;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid #ded4e8;
  border-radius: 20px;
  background: var(--dlg-brand-pale);
}

.dlg-final-cta > div:first-child {
  max-width: 760px;
}

.dlg-final-cta h2 {
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.13;
}

.dlg-final-cta > div:first-child > p:last-child {
  margin-top: 14px !important;
  color: var(--dlg-muted);
  font-size: 12px;
}

.dlg-final-cta .dlg-sales-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

/* Template library */
.dlg-template-section {
  scroll-margin-top: 24px;
}

.dlg-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dlg-template-card {
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--dlg-ink);
  border: 1px solid var(--dlg-line);
  border-radius: 12px;
  background: var(--dlg-surface);
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dlg-template-card:hover {
  z-index: 1;
  border-color: #c4b2de;
  box-shadow: 0 13px 36px rgba(47, 34, 58, .08);
  transform: translateY(-2px);
}

.dlg-template-card[aria-current="true"] {
  border-color: var(--dlg-brand);
  box-shadow: 0 0 0 1px var(--dlg-brand), 0 13px 36px rgba(74, 39, 112, .09);
}

.dlg-template-card.is-disabled {
  opacity: .52;
  cursor: not-allowed;
}

.dlg-template-figure {
  height: 220px;
  display: grid;
  place-items: center;
  padding: 16px 18px;
  overflow: hidden;
  border-bottom: 1px solid #efebf1;
  background-color: #fcfbfd;
  background-image: radial-gradient(#e3dee7 .65px, transparent .65px);
  background-size: 16px 16px;
}

#dlg-root .dlg-template-figure > svg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  fill: none;
  overflow: hidden;
}

/* Selector thumbnails show structure only. Production annotations and
   dimensions belong in the dedicated generator view. */
.dlg-template-figure #DLG_ANNOTATION,
.dlg-template-figure #DLG_DIMENSIONS,
.dlg-template-figure #DLG_INFO {
  display: none !important;
}

.dlg-template-figure .dlg-cut {
  stroke: var(--dlg-cut) !important;
  stroke-width: 1 !important;
}

.dlg-template-figure .dlg-crease {
  stroke: var(--dlg-crease) !important;
  stroke-width: .8 !important;
  stroke-dasharray: 3 2 !important;
}

.dlg-template-figure .dlg-glue {
  fill: rgba(209, 138, 22, .14) !important;
  stroke: var(--dlg-glue) !important;
  stroke-width: .7 !important;
}

.dlg-thumbnail-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--dlg-faint);
  border: 1px solid var(--dlg-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.dlg-template-copy {
  min-height: 82px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 17px 18px 10px;
}

.dlg-template-copy strong {
  font-size: 14px;
  font-weight: 730;
}

.dlg-template-copy small {
  color: var(--dlg-muted);
  font-size: 12px;
  line-height: 1.45;
}

.dlg-template-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 18px 17px;
  color: var(--dlg-brand);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .03em;
}

.dlg-template-card:focus-visible .dlg-template-action span {
  transform: translateX(3px);
}

.dlg-template-action span {
  font-size: 16px;
  transition: transform .16s ease;
}

.dlg-template-card:hover .dlg-template-action span {
  transform: translateX(3px);
}

/* Editor */
.dlg-editor-section {
  margin-top: 0;
  scroll-margin-top: 24px;
}

.dlg-editor-nav {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dlg-line);
}

.dlg-back-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  color: var(--dlg-brand);
  border: 1px solid var(--dlg-line-strong);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.dlg-back-button:hover {
  border-color: #bda9df;
  background: var(--dlg-brand-pale);
}

.dlg-back-button > span:first-child {
  font-size: 16px;
  line-height: 1;
}

.dlg-current-structure {
  min-width: 0;
  overflow: hidden;
  color: var(--dlg-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dlg-editor-grid {
  display: grid;
  grid-template-columns: minmax(320px, 370px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.dlg-settings-card,
.dlg-preview-card {
  border: 1px solid var(--dlg-line);
  border-radius: 13px;
  background: var(--dlg-surface);
  box-shadow: 0 12px 42px rgba(35, 26, 43, .055);
}

.dlg-settings-card {
  overflow: hidden;
}

.dlg-settings-card form {
  padding: 25px;
}

.dlg-field-group + .dlg-field-group {
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid #efebf1;
}

.dlg-label {
  display: block;
  margin-bottom: 9px !important;
  color: #37323d;
  font-size: 12px;
  font-weight: 750;
}

.dlg-select,
.dlg-input-with-unit {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--dlg-line-strong);
  border-radius: 7px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.dlg-select {
  padding: 0 39px 0 12px;
  color: var(--dlg-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23696471' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  appearance: none;
  font-size: 13px;
  font-weight: 620;
}

.dlg-select:hover,
.dlg-input-with-unit:hover {
  border-color: #bdb4c3;
}

.dlg-select:focus,
.dlg-input-with-unit:focus-within {
  border-color: var(--dlg-brand);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .09);
}

.dlg-field-help {
  margin-top: 8px !important;
  color: var(--dlg-faint);
  font-size: 11px;
  line-height: 1.5;
}

.dlg-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border-radius: 8px;
  background: #f0edf2;
}

.dlg-segment label {
  position: relative;
  cursor: pointer;
}

.dlg-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dlg-segment span {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  color: var(--dlg-muted);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.dlg-segment input:checked + span {
  color: var(--dlg-brand);
  border-color: var(--dlg-line);
  background: #fff;
  box-shadow: 0 2px 6px rgba(42, 31, 51, .08);
}

.dlg-segment input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .2);
}

.dlg-dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dlg-dimension-grid > label > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--dlg-muted);
  font-size: 10px;
  font-weight: 650;
}

.dlg-dimension-grid b {
  color: var(--dlg-brand);
  font-weight: 800;
}

.dlg-input-with-unit {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.dlg-input-with-unit input {
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 5px 0 11px;
  color: var(--dlg-ink);
  border: 0 !important;
  border-radius: 0;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 650;
  appearance: textfield;
}

.dlg-input-with-unit input::-webkit-inner-spin-button,
.dlg-input-with-unit input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.dlg-input-with-unit em {
  flex: 0 0 auto;
  padding: 0 9px 0 3px;
  color: var(--dlg-faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}

.dlg-input-with-unit input::placeholder {
  color: #aaa4af;
  font-weight: 500;
}

.dlg-input-with-unit:has(input:invalid:not(:placeholder-shown)) {
  border-color: var(--dlg-danger);
}

.dlg-subfield {
  display: block;
  margin-top: 13px;
}

.dlg-subfield > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--dlg-muted);
  font-size: 10px;
  font-weight: 700;
}

.dlg-subfield small {
  color: var(--dlg-faint);
  font-size: 9px;
  font-weight: 500;
}

/* Advanced controls */
.dlg-advanced {
  margin-block: 24px;
  padding-block: 20px;
  border-top: 1px solid #efebf1;
  border-bottom: 1px solid #efebf1;
}

.dlg-advanced summary {
  position: relative;
  display: grid;
  gap: 2px;
  padding-right: 28px;
  cursor: pointer;
  list-style: none;
}

.dlg-advanced summary::-webkit-details-marker {
  display: none;
}

.dlg-advanced summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 3px;
  color: var(--dlg-brand);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.dlg-advanced[open] summary::after {
  content: "−";
}

.dlg-advanced summary span {
  color: #37323d;
  font-size: 12px;
  font-weight: 750;
}

.dlg-advanced summary small {
  color: var(--dlg-faint);
  font-size: 10px;
}

.dlg-advanced-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 8px;
  padding-top: 19px;
}

.dlg-advanced-fields > label > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: var(--dlg-muted);
  font-size: 10px;
  font-weight: 650;
}

.dlg-validation,
.dlg-server-messages,
.dlg-download-status {
  padding: 11px 13px;
  border: 1px solid #f1c7c3;
  border-radius: 7px;
  color: var(--dlg-danger);
  background: var(--dlg-danger-bg);
  font-size: 11px;
  line-height: 1.55;
}

.dlg-validation {
  margin-bottom: 14px;
}

.dlg-validation strong,
.dlg-server-messages strong,
.dlg-download-status strong {
  display: block;
  margin-bottom: 2px;
}

.dlg-validation ul,
.dlg-server-messages ul {
  margin: 4px 0 0 17px;
  padding: 0;
}

.dlg-auto-note {
  margin-top: 9px !important;
  color: var(--dlg-faint);
  font-size: 10px;
  text-align: center;
}

/* Preview */
.dlg-preview-card {
  min-width: 0;
  overflow: hidden;
}

.dlg-preview-header {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 25px;
  border-bottom: 1px solid var(--dlg-line);
}

.dlg-preview-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--dlg-brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dlg-preview-header h3 {
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.02em;
}

.dlg-preview-header p {
  margin-top: 4px;
  color: var(--dlg-muted);
  font-size: 11px;
}

.dlg-pricing-summary {
  margin-top: 5px !important;
  color: var(--dlg-brand) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
}

.dlg-pricing-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, auto);
  align-items: center;
  gap: 10px 18px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #ddd0f5;
  border-radius: 9px;
  background: var(--dlg-brand-pale);
}

.dlg-pricing-details > strong {
  color: #3f285d;
  font-size: 12px;
}

.dlg-pricing-details > span {
  display: grid;
  gap: 1px;
  text-align: right;
}

.dlg-pricing-details small {
  color: var(--dlg-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dlg-pricing-details b {
  color: var(--dlg-brand-dark);
  font-size: 12px;
}

.dlg-preview-toolbar {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--dlg-line);
  background: #fcfbfc;
}

.dlg-zoom-controls,
.dlg-view-toggles {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dlg-tool-button {
  min-width: 40px;
  height: 32px;
  margin: 0;
  padding: 4px 10px;
  color: var(--dlg-muted);
  border: 1px solid var(--dlg-line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.dlg-tool-button:hover {
  color: var(--dlg-brand);
  border-color: #bda9df;
  background: var(--dlg-brand-pale);
}

.dlg-tool-icon {
  min-width: 32px;
  padding: 0;
  font-size: 17px;
  font-weight: 500;
}

.dlg-zoom-controls output {
  min-width: 45px;
  color: var(--dlg-muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.dlg-view-toggles {
  gap: 13px;
}

.dlg-view-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dlg-muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.dlg-view-toggles input,
.dlg-info-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--dlg-brand);
}

.dlg-preview-viewport {
  position: relative;
  height: clamp(510px, 48vw, 720px);
  min-height: 510px;
  overflow: hidden;
  background-color: var(--dlg-canvas);
  background-image: radial-gradient(#d9d4dd .7px, transparent .7px);
  background-size: 18px 18px;
  touch-action: none;
  user-select: none;
}

.dlg-preview-viewport.is-pannable {
  cursor: grab;
}

.dlg-preview-viewport.is-panning {
  cursor: grabbing;
}

.dlg-preview-object {
  position: absolute;
  inset: 0;
}

.dlg-svg-wrap {
  position: absolute;
  inset: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  will-change: transform;
}

#dlg-root .dlg-svg-wrap > svg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  overflow: visible;
}

.dlg-svg-wrap svg path,
.dlg-svg-wrap svg line,
.dlg-svg-wrap svg rect,
.dlg-svg-wrap svg ellipse,
.dlg-svg-wrap svg circle,
.dlg-svg-wrap svg polyline,
.dlg-svg-wrap svg polygon {
  vector-effect: non-scaling-stroke;
}

.dlg-preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--dlg-muted);
  text-align: center;
}

.dlg-preview-empty strong {
  margin-top: 15px;
  color: #4b4551;
  font-size: 13px;
}

.dlg-preview-empty > span:last-child {
  max-width: 340px;
  margin-top: 5px;
  color: var(--dlg-faint);
  font-size: 11px;
}

.dlg-empty-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #b0a9b6;
  border: 1px solid #d8d2dc;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
}

#dlg-root .dlg-empty-mark > svg {
  width: 34px !important;
  height: 34px !important;
  max-width: none !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-dasharray: 4 2;
}

.dlg-preview-loading {
  position: absolute;
  top: 13px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: var(--dlg-muted);
  border: 1px solid var(--dlg-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 16px rgba(38, 29, 46, .07);
  font-size: 10px;
  font-weight: 650;
  transform: translateX(-50%);
  transition: opacity .15s ease, visibility .15s ease;
}

.dlg-preview-loading:not(.is-visible) {
  visibility: hidden;
  opacity: 0;
}

.dlg-preview-loading span {
  width: 11px;
  height: 11px;
  border: 2px solid #d9cced;
  border-top-color: var(--dlg-brand);
  border-radius: 50%;
  animation: dlg-spin .75s linear infinite;
}

@keyframes dlg-spin {
  to { transform: rotate(360deg); }
}

.dlg-preview-legend {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px 24px;
  padding: 11px 16px;
  border-top: 1px solid var(--dlg-line);
  border-bottom: 1px solid var(--dlg-line);
  background: #fff;
}

.dlg-preview-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dlg-faint);
  font-size: 9px;
}

.dlg-preview-legend b {
  color: var(--dlg-muted);
  font-size: 9px;
  letter-spacing: .03em;
}

.dlg-preview-legend i {
  width: 25px;
  height: 7px;
  display: inline-block;
  border-radius: 1px;
}

.dlg-preview-legend .is-cut {
  border-top: 2px solid var(--dlg-cut);
}

.dlg-preview-legend .is-crease {
  border-top: 2px dashed var(--dlg-crease);
}

.dlg-preview-legend .is-glue {
  border: 1px dashed var(--dlg-glue);
  background: rgba(209, 138, 22, .13);
}

.dlg-hide-labels #DLG_ANNOTATION .dlg-annotation,
.dlg-hide-dimensions #DLG_DIMENSIONS,
.dlg-hide-legend .dlg-preview-legend {
  display: none !important;
}

.dlg-server-messages {
  margin: 16px 20px 0;
}

.dlg-server-messages.is-warning {
  color: var(--dlg-warning);
  border-color: #edcf8d;
  background: var(--dlg-warning-bg);
}

.dlg-production-note {
  padding: 13px 20px 15px !important;
  color: var(--dlg-faint);
  background: #fff;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

/* Download modal */
.dlg-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dlg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 29, .61);
  backdrop-filter: blur(2px);
}

.dlg-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  padding: 31px;
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(10, 7, 14, .3);
}

.dlg-modal-dialog h2 {
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -.03em;
}

.dlg-modal-dialog > p:not(.dlg-eyebrow):not(.dlg-modal-footnote) {
  margin-top: 8px;
  color: var(--dlg-muted);
  font-size: 12px;
  line-height: 1.6;
}

.dlg-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  color: var(--dlg-muted);
  border: 1px solid var(--dlg-line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.dlg-modal-close:hover {
  color: var(--dlg-brand);
  border-color: #c8b3e5;
}

.dlg-format-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 23px !important;
}

.dlg-format-list label {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--dlg-line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.dlg-format-list label:hover {
  border-color: #c6b1e4;
  background: #fcfaff;
}

.dlg-format-list label:has(input:checked) {
  border-color: var(--dlg-brand);
  background: var(--dlg-brand-pale);
  box-shadow: inset 0 0 0 1px var(--dlg-brand);
}

.dlg-format-list input {
  position: absolute;
  opacity: 0;
}

.dlg-format-list input:focus-visible ~ span {
  outline: 2px solid rgba(109, 40, 217, .25);
  outline-offset: 3px;
}

.dlg-format-list label > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dlg-format-list strong {
  color: #39333f;
  font-size: 11px;
  line-height: 1.25;
}

.dlg-format-list small {
  color: var(--dlg-faint);
  font-size: 9px;
  line-height: 1.35;
}

.dlg-format-badge {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}

.dlg-format-badge.is-pdf { background: #bc3c41; }
.dlg-format-badge.is-svg { background: #b96c1d; }
.dlg-format-badge.is-dxf { background: #2674a9; }
.dlg-format-badge.is-ai { background: #49267f; }

.dlg-info-option {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--dlg-line);
  border-radius: 8px;
  cursor: pointer;
}

.dlg-info-option > span {
  display: grid;
  gap: 3px;
}

.dlg-info-option strong {
  font-size: 11px;
}

.dlg-info-option small {
  color: var(--dlg-faint);
  font-size: 9px;
  line-height: 1.4;
}

.dlg-download-auth {
  margin-top: 18px;
  padding: 16px;
  color: #4d3a17;
  border: 1px solid #e9cb8e;
  border-radius: 8px;
  background: #fff9ed;
}

.dlg-download-auth > strong {
  font-size: 12px;
}

.dlg-download-auth p {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
}

.dlg-download-auth > div {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.dlg-download-status {
  margin-top: 16px;
}

.dlg-download-status.is-success {
  color: var(--dlg-success);
  border-color: #9dd2b8;
  background: #effaf4;
}

.dlg-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 9px;
  margin-top: 18px;
}

.dlg-modal-footnote {
  margin-top: 9px !important;
  color: var(--dlg-faint);
  font-size: 9px;
  text-align: center;
}

body.dlg-modal-open {
  overflow: hidden;
}

.dlg-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Tablet */
@media (max-width: 1120px) {
  #dlg-root .dlg-shell {
    width: min(100% - 40px, 1160px);
  }

  .dlg-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dlg-editor-grid {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  }

  .dlg-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dlg-view-toggles {
    width: 100%;
    justify-content: space-between;
  }

  .dlg-preview-viewport {
    min-height: 480px;
  }
}

@media (max-width: 880px) {
  .dlg-app-content {
    padding-block: 28px 70px;
  }

  .dlg-editor-grid {
    grid-template-columns: 1fr;
  }

  .dlg-settings-card form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .dlg-field-group + .dlg-field-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .dlg-advanced,
  .dlg-validation,
  .dlg-button-wide,
  .dlg-auto-note {
    grid-column: 1 / -1;
  }

  .dlg-advanced {
    margin: 0;
  }

  .dlg-preview-viewport {
    height: min(72vw, 650px);
    min-height: 520px;
  }

  .dlg-sales-hero {
    grid-template-columns: 1fr;
  }

  .dlg-sales-hero-copy {
    max-width: 720px;
  }

  .dlg-sales-preview {
    height: min(62vw, 490px);
  }

  .dlg-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #dlg-root .dlg-shell {
    width: min(100% - 28px, 600px);
  }

  .dlg-app-content {
    padding-block: 24px 60px;
  }

  .dlg-template-section {
    min-height: 0;
  }

  .dlg-sales-hero {
    gap: 30px;
    margin-bottom: 54px;
    padding: 27px 20px 20px;
    border-radius: 17px;
  }

  .dlg-sales-hero h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .dlg-sales-lead {
    font-size: 14px;
  }

  .dlg-sales-actions,
  .dlg-sales-actions .dlg-button {
    width: 100%;
  }

  .dlg-sales-facts {
    gap: 9px;
  }

  .dlg-sales-facts strong {
    font-size: 18px;
  }

  .dlg-sales-preview {
    height: 280px;
    padding: 12px;
  }

  .dlg-sales-visual-head,
  .dlg-sales-visual-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .dlg-sales-visual-foot span:last-child {
    text-align: left;
  }

  .dlg-section-heading {
    display: block;
  }

  .dlg-section-heading > p {
    margin: 7px 0 0 33px;
  }

  .dlg-section-heading h2 {
    font-size: 19px;
  }

  .dlg-template-grid {
    grid-template-columns: 1fr;
  }

  .dlg-template-card {
    min-height: 0;
  }

  .dlg-template-figure {
    height: 190px;
    padding: 14px 16px;
  }

  .dlg-workflow-proof,
  .dlg-plans,
  .dlg-final-cta {
    margin-top: 58px;
  }

  .dlg-workflow-proof {
    padding: 30px 20px 20px;
    border-radius: 15px;
  }

  .dlg-workflow-steps,
  .dlg-plan-grid {
    grid-template-columns: 1fr;
  }

  .dlg-workflow-steps li {
    min-height: 150px;
    padding: 23px;
  }

  .dlg-workflow-steps strong {
    margin-top: 18px;
  }

  .dlg-plans-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dlg-billing-toggle {
    width: 100%;
  }

  .dlg-plan-grid {
    gap: 36px;
  }

  .dlg-plan-ribbon {
    margin-top: -46px;
  }

  .dlg-final-cta {
    padding: 30px 21px;
    border-radius: 15px;
  }

  .dlg-editor-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .dlg-current-structure {
    max-width: 100%;
  }

  .dlg-settings-card form {
    display: block;
    padding: 20px;
  }

  .dlg-field-group + .dlg-field-group {
    margin-top: 22px;
    padding-top: 21px;
    border-top: 1px solid #efebf1;
  }

  .dlg-advanced {
    margin-block: 23px;
  }

  .dlg-validation {
    margin-bottom: 13px;
  }

  .dlg-button-wide {
    width: 100%;
  }

  .dlg-preview-header {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 19px;
  }

  .dlg-preview-header .dlg-button {
    width: 100%;
  }

  .dlg-preview-toolbar {
    padding: 10px;
  }

  .dlg-zoom-controls {
    width: 100%;
  }

  .dlg-zoom-controls output {
    flex: 1;
  }

  .dlg-view-toggles {
    gap: 5px;
  }

  .dlg-view-toggles label {
    gap: 4px;
    font-size: 9px;
  }

  .dlg-preview-viewport {
    height: 450px;
    min-height: 450px;
  }

  .dlg-svg-wrap {
    inset: 18px;
  }

  .dlg-preview-legend {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .dlg-modal {
    align-items: end;
    padding: 0;
  }

  .dlg-modal-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 25px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }

  .dlg-pricing-details {
    grid-template-columns: 1fr 1fr;
  }

  .dlg-pricing-details > strong {
    grid-column: 1 / -1;
  }

  .dlg-pricing-details > span {
    text-align: left;
  }

  .dlg-format-list {
    grid-template-columns: 1fr;
  }

  .dlg-modal-actions {
    grid-template-columns: 1fr;
  }

  .dlg-download-auth > div {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .dlg-dimension-grid,
  .dlg-advanced-fields {
    grid-template-columns: 1fr;
  }

  .dlg-dimension-grid > label > span:first-child {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dlg-root *,
  .dlg-root *::before,
  .dlg-root *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .dlg-template-section,
  .dlg-settings-card,
  .dlg-preview-header .dlg-button,
  .dlg-preview-toolbar,
  .dlg-preview-legend,
  .dlg-production-note {
    display: none !important;
  }

  .dlg-app-content,
  .dlg-editor-section {
    margin: 0;
    padding: 0;
  }

  #dlg-root .dlg-shell {
    width: 100%;
  }

  .dlg-editor-grid {
    display: block;
  }

  .dlg-preview-card,
  .dlg-preview-viewport {
    border: 0;
    box-shadow: none;
    background: #fff;
  }
}

/* v5 searchable parametric packaging structure library */
.dlg-library-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(170px, .7fr));
  gap: 12px;
  margin: -4px 0 14px;
  padding: 15px;
  border: 1px solid var(--dlg-line);
  border-radius: 12px;
  background: #fff;
}

.dlg-library-controls label {
  display: grid;
  gap: 6px;
  color: var(--dlg-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.dlg-library-controls input[type="search"],
.dlg-library-controls .dlg-select {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  color: var(--dlg-ink);
  border: 1px solid var(--dlg-line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: normal;
  text-transform: none;
}

.dlg-library-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
  color: var(--dlg-muted);
  font-size: 12px;
}

.dlg-library-summary strong {
  flex: 0 0 auto;
  color: var(--dlg-ink);
  font-size: 13px;
}

.dlg-template-card {
  text-decoration: none !important;
}

.dlg-template-figure > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.dlg-template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 0;
  color: var(--dlg-faint);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dlg-template-meta b {
  padding: 3px 6px;
  color: #fff;
  border-radius: 999px;
  background: var(--dlg-brand);
  font-size: 8px;
  letter-spacing: .08em;
}

.dlg-template-meta b.is-free {
  color: var(--dlg-success);
  background: #eaf8f1;
}

.dlg-library-more {
  margin: 22px auto 0;
}

.dlg-library-empty {
  margin: 20px 0 0 !important;
  padding: 20px;
  color: var(--dlg-muted);
  border: 1px dashed var(--dlg-line-strong);
  border-radius: 10px;
  background: var(--dlg-surface-soft);
  text-align: center;
}

.dlg-reference-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  color: #564619;
  border: 1px solid #eadfae;
  border-radius: 10px;
  background: #fffbed;
  font-size: 12px;
}

.dlg-reference-note strong {
  flex: 0 0 auto;
  color: #72570b;
}

.dlg-reference-mode .dlg-settings-card input[readonly],
.dlg-reference-mode .dlg-settings-card select:disabled,
.dlg-reference-mode .dlg-settings-card input:disabled {
  cursor: not-allowed;
  opacity: .72;
  background: #f5f3f6;
}

.dlg-seo-detail {
  margin: 54px 0 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--dlg-line);
  border-radius: 16px;
  background: #fff;
}

.dlg-seo-detail h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.04em;
  line-height: 1.08;
}

.dlg-seo-detail > p:not(.dlg-eyebrow) {
  max-width: 980px;
  margin-top: 15px !important;
  color: var(--dlg-muted);
  line-height: 1.7;
}

.dlg-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.dlg-tech-grid > div {
  padding: 14px;
  border: 1px solid var(--dlg-line);
  border-radius: 9px;
  background: var(--dlg-surface-soft);
}

.dlg-tech-grid dt {
  color: var(--dlg-faint);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dlg-tech-grid dd {
  margin: 5px 0 0;
  color: var(--dlg-ink);
  font-size: 12px;
  font-weight: 680;
}

.dlg-industry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dlg-industry-links a {
  padding: 7px 10px;
  color: var(--dlg-brand) !important;
  border: 1px solid #d8cbea;
  border-radius: 999px;
  background: var(--dlg-brand-pale);
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .dlg-library-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlg-tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .dlg-library-controls { grid-template-columns: 1fr; }
  .dlg-library-summary { display: block; }
  .dlg-library-summary span { display: block; margin-top: 5px; }
  .dlg-tech-grid { grid-template-columns: 1fr; }
  .dlg-reference-note { display: block; }
  .dlg-reference-note span { display: block; margin-top: 5px; }
}

/* v5.2 SEO discovery and industry hub content */
#dlg-root .dlg-sales-hero h1,
#dlg-root .dlg-industry-hero h1,
#dlg-root .dlg-structure-hero h1 {
  margin: 0;
  color: var(--dlg-ink);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.04;
}

#dlg-root .dlg-sales-hero h1 {
  max-width: 720px;
  font-size: clamp(34px, 4.4vw, 65px);
}

.dlg-industry-hubs {
  margin: 0 0 72px;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--dlg-line);
  border-radius: 22px;
  background: #fff;
}

.dlg-industry-intro {
  max-width: 900px;
  margin-bottom: 28px;
}

.dlg-industry-intro h2,
.dlg-industry-guide h2,
.dlg-industry-faq h2,
.dlg-industry-quick-guide h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 740;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.dlg-industry-intro > p:last-child,
.dlg-industry-guide .dlg-section-intro > p:last-child {
  max-width: 920px;
  margin-top: 14px !important;
  color: var(--dlg-muted);
  line-height: 1.7;
}

.dlg-industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dlg-industry-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--dlg-line);
  border-radius: 14px;
  color: var(--dlg-ink) !important;
  background: var(--dlg-surface-soft);
  text-decoration: none !important;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.dlg-industry-card:hover {
  transform: translateY(-2px);
  border-color: #cdbbe8;
  background: #fff;
  box-shadow: 0 14px 34px rgba(54, 38, 74, .08);
}

.dlg-industry-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dlg-industry-card-top strong {
  font-size: 18px;
  line-height: 1.25;
}

.dlg-industry-card-top b {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--dlg-brand);
  background: var(--dlg-brand-pale);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dlg-industry-card > span:not(.dlg-industry-card-top) {
  color: var(--dlg-muted);
  font-size: 13px;
  line-height: 1.6;
}

.dlg-industry-card em {
  margin-top: auto;
  color: var(--dlg-brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.dlg-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--dlg-faint);
  font-size: 12px;
}

.dlg-breadcrumbs a {
  color: var(--dlg-muted) !important;
  text-decoration: none !important;
}

.dlg-breadcrumbs a:hover {
  color: var(--dlg-brand) !important;
}

.dlg-industry-hero,
.dlg-structure-hero {
  margin: 4px 0 56px;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid #e5deeb;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #fbf9fd 100%);
  box-shadow: 0 24px 70px rgba(43, 30, 56, .06);
}

.dlg-industry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
}

.dlg-industry-hero-main h1,
.dlg-structure-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 4vw, 58px);
}

.dlg-industry-hero-main > p:not(.dlg-eyebrow),
.dlg-structure-hero > p:not(.dlg-eyebrow):not(.dlg-seo-note) {
  max-width: 900px;
  margin-top: 16px !important;
  color: var(--dlg-muted);
  font-size: 15px;
  line-height: 1.75;
}

.dlg-industry-hero-main .dlg-sales-actions {
  margin-top: 26px;
}

.dlg-industry-quick-guide {
  padding: 24px;
  border: 1px solid var(--dlg-line);
  border-radius: 16px;
  background: var(--dlg-surface-soft);
}

.dlg-industry-quick-guide h2 {
  font-size: 22px;
}

.dlg-industry-quick-guide ul,
.dlg-industry-tips {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.dlg-industry-quick-guide li,
.dlg-industry-tips li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-top: 1px solid var(--dlg-line);
  color: var(--dlg-muted);
  line-height: 1.55;
}

.dlg-industry-quick-guide li::before,
.dlg-industry-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dlg-brand);
}

.dlg-industry-quick-guide > p:last-child {
  margin-top: 18px !important;
  color: var(--dlg-muted);
  font-size: 12px;
}

.dlg-industry-quick-guide > p:last-child strong {
  color: var(--dlg-ink);
  font-size: 18px;
}

.dlg-industry-guide,
.dlg-industry-faq {
  margin-top: 52px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--dlg-line);
  border-radius: 20px;
  background: #fff;
}

.dlg-industry-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin-top: 24px;
}

.dlg-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.dlg-faq-list details {
  border: 1px solid var(--dlg-line);
  border-radius: 12px;
  background: var(--dlg-surface-soft);
}

.dlg-faq-list summary {
  cursor: pointer;
  padding: 17px 20px;
  color: var(--dlg-ink);
  font-weight: 700;
}

.dlg-faq-list details p {
  padding: 0 20px 18px !important;
  color: var(--dlg-muted);
  line-height: 1.7;
}

.dlg-structure-hero .dlg-tech-grid {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .dlg-industry-hero {
    grid-template-columns: 1fr;
  }
  .dlg-industry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dlg-industry-hubs,
  .dlg-industry-hero,
  .dlg-structure-hero,
  .dlg-industry-guide,
  .dlg-industry-faq {
    border-radius: 16px;
  }
  .dlg-industry-tips {
    grid-template-columns: 1fr;
  }
  .dlg-industry-card-top {
    flex-direction: column;
    gap: 9px;
  }
}

/* v6.0.1 preview updates */
.dlg-sales-preview .dlg-glue,
.dlg-template-figure .dlg-glue,
.dlg-svg-wrap .dlg-glue {
  display: none !important;
}

.dlg-preview-viewport.is-watermarked .dlg-svg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    repeating-linear-gradient(45deg, rgba(86, 69, 113, .14) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(-45deg, rgba(86, 69, 113, .11) 0 1px, transparent 1px 56px);
}

.dlg-preview-viewport.is-watermarked .dlg-svg-wrap::before {
  content: 'FREE PREVIEW';
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 3;
  pointer-events: none;
  padding: 4px 8px;
  color: rgba(74, 39, 112, .72);
  border: 1px solid rgba(74, 39, 112, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .08em;
}
