.dp-dialog, .dp-confirm {
  --dp-ink: #201b2f;
  --dp-muted: #746d83;
  --dp-accent: #7745f5;
  --dp-line: #e8e3f0;
  color-scheme: light;
  color: var(--dp-ink);
  background: #fff;
  border: 1px solid #e8e0f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0;
  box-shadow: 0 32px 120px #160a3845;
}
.dp-dialog { width: min(1140px, calc(100vw - 48px)); max-width: none; max-height: min(850px, calc(100dvh - 48px)); border-radius: 24px; overflow: hidden; }
.dp-dialog::backdrop, .dp-confirm::backdrop { background: #0d0b1cb3; backdrop-filter: blur(6px); }
.dp-dialog button, .dp-dialog input, .dp-dialog select, .dp-confirm button { font: inherit; color: inherit; }
.dp-dialog button, .dp-confirm button { cursor: pointer; }
.dp-dialog svg, .dp-confirm svg { flex: none; width: 22px; height: 22px; }
.dp-dialog button:focus-visible, .dp-dialog input:focus-visible, .dp-dialog select:focus-visible, .dp-confirm button:focus-visible { outline: 3px solid #a889ff; outline-offset: 3px; box-shadow: none; }
.dp-dialog button:disabled, .dp-confirm button:disabled { cursor: wait; opacity: .5; }
.dp-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 630px; height: min(780px, calc(100dvh - 50px)); }
.dp-sidebar { border-right: 1px solid var(--dp-line); padding: 29px 18px 20px; display: flex; flex-direction: column; background: linear-gradient(170deg, #fcfaff 0%, #fff 60%); min-width: 0; overflow-y: auto; }
.dp-brandline { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; color: var(--dp-muted); margin: 0 12px 27px; }
.dp-brandmark { background: #211632; color: white; border-radius: 7px; padding: 6px 5px; font-size: 10px; letter-spacing: .6px; }
.dp-sidebar h2 { font-size: 28px; line-height: 1.13; font-weight: 700; letter-spacing: -.8px; margin: 0 12px 10px; }
.dp-intro { color: var(--dp-muted); font-size: 13px; margin: 0 12px 26px; line-height: 1.5; }
.dp-navigation { display: grid; gap: 5px; }
.dp-nav-item { width: 100%; border: 0; border-radius: 12px; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 13px; font-size: 14px; line-height: 1.3; }
.dp-nav-item svg { color: #867c99; }
.dp-nav-item:hover { background: #f5f1fc; }
.dp-nav-item.is-active { color: #6232d6; background: #efe7ff; font-weight: 650; }
.dp-nav-item.is-active svg { color: #7848ed; }
.dp-nav-divider { height: 1px; background: var(--dp-line); margin: 14px 12px; }
.dp-sidebar-note { margin: auto 12px 0; padding-top: 35px; display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.5; color: var(--dp-muted); }
.dp-note-dot { width: 6px; height: 6px; background: #40ab88; border-radius: 50%; margin-top: 5px; flex: none; }
.dp-content { padding: 35px 35px 26px; position: relative; overflow: auto; min-width: 0; overscroll-behavior: contain; }
.dp-close { width: 34px; height: 34px; border: 0; padding: 6px; display: grid; place-items: center; border-radius: 50%; background: #f5f2fa; position: absolute; right: 17px; top: 14px; z-index: 1; }
.dp-close:hover { background: #eae2f7; }
.dp-search { display: flex; align-items: center; gap: 12px; border: 1.5px solid #ba9df4; border-radius: 13px; height: 52px; padding: 0 17px; margin-top: 22px; background: white; }
.dp-search svg { color: #6d43bd; }
.dp-search:focus-within { border-color: #7745f5; box-shadow: 0 0 0 3px #efe7ff; }
.dp-search input { width: 100%; border: 0; outline: none; box-shadow: none !important; min-width: 0; background: transparent; font-size: 15px; padding: 0; height: 100%; }
.dp-search input:focus-visible { outline: none; }
.dp-search input::placeholder { color: #91899e; opacity: 1; }
.dp-content-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 34px 0 19px; }
.dp-eyebrow { color: #8d79aa; font-size: 9px; font-weight: 750; letter-spacing: 1.35px; line-height: 1.5; margin: 0 0 8px; }
.dp-content h3 { font-size: 24px; letter-spacing: -.6px; line-height: 1.2; margin: 0; font-weight: 700; }
.dp-count { font-size: 11px; color: var(--dp-muted); white-space: nowrap; padding-bottom: 3px; }
.dp-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px 17px; }
.dp-preset-card { min-width: 0; text-align: left; border: 0; border-radius: 13px; background: transparent; padding: 0; transition: transform 160ms ease; }
.dp-preset-card:hover { transform: translateY(-3px); }
.dp-preset-card:focus-visible { outline-offset: 6px !important; }
.dp-card-art { display: block; width: 100% !important; height: auto !important; border: 1px solid #f0edf5; border-radius: 13px; background: #f6f4f9; margin-bottom: 11px; transition: background-color 160ms; }
.dp-preset-card:hover .dp-card-art { background: #ede8f7; border-color: #d1c3ec; }
.dp-card-name { display: block; font-size: 12px; font-weight: 620; line-height: 1.4; margin-bottom: 3px; }
.dp-card-size { display: block; font-size: 10px; line-height: 1.5; color: var(--dp-muted); }
.dp-tone-violet { --dp-art: #8d5bea; --dp-art-light: #b89beb; }
.dp-tone-pink { --dp-art: #d66bb5; --dp-art-light: #e5a8d6; }
.dp-tone-peach { --dp-art: #c78063; --dp-art-light: #e0b197; }
.dp-tone-red { --dp-art: #d96e72; --dp-art-light: #efb0ad; }
.dp-tone-blue { --dp-art: #698ac9; --dp-art-light: #a8bce4; }
.dp-tone-rose { --dp-art: #b85979; --dp-art-light: #d6a0b1; }
.dp-tone-mint { --dp-art: #68a693; --dp-art-light: #aed1c3; }
.dp-art-shadow { fill: #20133417; }
.dp-art-paper { fill: white; stroke: #ddd9e4; stroke-width: .7; }
.dp-art-accent { fill: var(--dp-art); }
.dp-art-circle { fill: white; opacity: .55; }
.dp-art-mountain { fill: var(--dp-art-light); }
.dp-art-ink { fill: #474051; }
.dp-art-soft { fill: #dad5e2; }
.dp-art-logo { fill: none; stroke: white; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.dp-presets-note { margin: 25px 0 0; font-size: 11px; color: var(--dp-muted); line-height: 1.5; }
.dp-empty { text-align: center; padding: 50px 22px; }
.dp-empty > svg { width: 42px; height: 42px; color: #ab97ce; margin-bottom: 20px; }
.dp-empty h3 { font-size: 20px; }
.dp-empty p { font-size: 13px; line-height: 1.6; color: var(--dp-muted); max-width: 350px; margin: 14px auto 23px; }
.dp-custom-view { padding-top: 24px; }
.dp-custom-view h3 { font-size: 30px; letter-spacing: -.8px; }
.dp-description { font-size: 13px; color: var(--dp-muted); line-height: 1.6; margin: 11px 0 32px; }
.dp-dimensions { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(145px, 1fr); align-items: end; gap: 9px; }
.dp-field { display: grid; gap: 9px; min-width: 0; }
.dp-field > span { font-size: 12px; font-weight: 620; color: #645970; }
.dp-field input, .dp-field select { width: 100%; min-width: 0; height: 48px; border: 1px solid #cfc7dc; background: #fff; border-radius: 10px; font-size: 15px; padding: 0 12px; }
.dp-field input:hover, .dp-field select:hover { border-color: #a797bb; }
.dp-field input[aria-invalid="true"] { border-color: #d091a1; }
.dp-ratio, .dp-swap { border: 0; background: transparent; height: 48px; padding: 0; display: grid; place-items: center; border-radius: 8px; color: #746185 !important; }
.dp-ratio:hover, .dp-swap:hover { background: #f3eefb; }
.dp-ratio[aria-pressed="true"] { background: #eee5fc; color: #7244cb !important; }
.dp-ratio svg, .dp-swap svg { width: 18px; height: 18px; }
.dp-resolution-row { display: flex; align-items: flex-end; gap: 18px; margin: 24px 0 28px; }
.dp-dpi-field { flex: 0 0 115px; }
.dp-resolution-row p { color: var(--dp-muted); font-size: 11px; line-height: 1.6; max-width: 300px; margin: 0 0 4px; }
.dp-size-preview { border: 1px solid var(--dp-line); background: #faf8fd; border-radius: 15px; padding: 12px 16px 12px 6px; display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: center; gap: 12px; }
.dp-paper-preview { width: 185px !important; height: 132px !important; }
.dp-result { margin: 0 0 7px; font-size: 19px; font-weight: 650; letter-spacing: -.4px; line-height: 1.35; overflow-wrap: anywhere; }
.dp-result-detail { font-size: 11px; color: #817390; margin: 0; line-height: 1.5; }
.dp-limits { font-size: 10px; color: #93879f; margin: 17px 0 0; line-height: 1.5; }
.dp-validation { color: #a23550; background: #fff2f5; border-radius: 9px; padding: 12px 14px; font-size: 12px; line-height: 1.5; margin: 14px 0; }
.dp-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.dp-primary, .dp-secondary { border: 0; border-radius: 10px; padding: 13px 17px; font-weight: 650 !important; font-size: 12px !important; display: inline-flex; align-items: center; justify-content: center; gap: 9px; line-height: 1.4; min-height: 44px; }
.dp-primary { color: #fff !important; background: linear-gradient(135deg, #8f59fc, #713ae7); box-shadow: 0 4px 12px #7542dd26; }
.dp-primary:hover { background: linear-gradient(135deg, #8349f3, #612cdb); }
.dp-primary svg { width: 17px; height: 17px; }
.dp-primary:disabled { cursor: not-allowed !important; box-shadow: none; }
.dp-secondary { color: #635277 !important; background: #f1ecf8; border: 1px solid #e6deef; }
.dp-secondary:hover { background: #e9e1f4; }
.dp-current-size { color: #7c638f !important; font-size: 11px !important; background: transparent; border: 0; padding: 0; margin: 20px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.dp-action-error { color: #a23550; background: #fff2f5; border-radius: 9px; padding: 13px 15px; font-size: 12px; line-height: 1.5; }
.dp-confirm { max-width: min(460px, calc(100vw - 32px)); border-radius: 20px; padding: 30px; }
.dp-confirm-icon { border-radius: 13px; background: #fff1e1; color: #b37c31; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; }
.dp-confirm h2 { font-size: 22px; letter-spacing: -.4px; margin: 0 0 12px; line-height: 1.3; }
.dp-confirm p { color: var(--dp-muted); font-size: 13px; line-height: 1.7; margin: 0 0 24px; }
.dp-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (min-width: 1400px) { .dp-dialog { width: min(1230px, calc(100vw - 80px)); } .dp-shell { grid-template-columns: 280px minmax(0, 1fr); } .dp-content { padding: 35px 42px 30px; } .dp-card-grid { gap: 28px 23px; } }
@media (max-width: 920px) { .dp-shell { grid-template-columns: 215px minmax(0, 1fr); } .dp-sidebar { padding-inline: 12px; } .dp-sidebar h2 { font-size: 25px; } .dp-nav-item { padding-inline: 12px; font-size: 12px; gap: 10px; } .dp-content { padding-inline: 25px; } .dp-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dp-dimensions { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px; } .dp-unit-field { grid-column: 1 / -1; margin-top: 10px; } .dp-size-preview { grid-template-columns: 120px minmax(0, 1fr); gap: 8px; padding-right: 12px; } .dp-paper-preview { width: 120px !important; height: 100px !important; } .dp-result { font-size: 16px; } }
@media (max-width: 640px) {
  .dp-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 17px; }
  .dp-shell { display: flex; flex-direction: column; height: calc(100dvh - 18px); min-height: 0; }
  .dp-sidebar { padding: 19px 16px 13px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--dp-line); background: #fdfbff; }
  .dp-brandline, .dp-intro, .dp-sidebar-note { display: none; }
  .dp-sidebar h2 { font-size: 24px; margin: 0 45px 18px 2px; }
  .dp-navigation { display: flex; overflow-x: auto; gap: 7px; margin-inline: -2px; padding: 3px 2px 6px; scrollbar-width: thin; }
  .dp-nav-item { width: auto; white-space: nowrap; padding: 11px 12px; border: 1px solid #eee7f5; background: white; font-size: 11px; gap: 7px; flex: none; }
  .dp-nav-item svg { width: 16px; height: 16px; }
  .dp-nav-item.is-active { border-color: #d9c7fc; }
  .dp-nav-divider { display: none; }
  .dp-content { padding: 18px 20px 25px; position: static; flex: 1; }
  .dp-close { right: 12px; top: 13px; }
  .dp-search { margin-top: 0; height: 47px; padding-inline: 13px; }
  .dp-search input { font-size: 14px; }
  .dp-content-heading { margin-top: 27px; }
  .dp-content h3 { font-size: 21px; }
  .dp-eyebrow { font-size: 8px; letter-spacing: 1px; }
  .dp-card-grid { gap: 22px 14px; }
  .dp-card-name { font-size: 11px; }
  .dp-card-size { font-size: 9px; }
  .dp-custom-view { padding-top: 4px; }
  .dp-custom-view h3 { font-size: 25px; }
  .dp-description { font-size: 12px; margin-bottom: 24px; }
  .dp-field input, .dp-field select { font-size: 16px; }
  .dp-resolution-row { gap: 13px; }
  .dp-dpi-field { flex-basis: 105px; }
  .dp-resolution-row p { font-size: 10px; }
  .dp-size-preview { grid-template-columns: 104px minmax(0, 1fr); padding-left: 0; gap: 5px; }
  .dp-paper-preview { width: 104px !important; }
  .dp-result { font-size: 15px; }
  .dp-result-detail { font-size: 10px; }
  .dp-limits { font-size: 9px; margin-top: 10px; }
  .dp-form-actions > button { width: 100%; }
  .dp-confirm { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) { .dp-preset-card, .dp-card-art { transition: none; } .dp-preset-card:hover { transform: none; } }
