.quick-start-dialog {
  width: min(920px, 94vw);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: #14233b;
  background: #f8fbff;
  box-shadow: 0 32px 90px rgba(6, 24, 52, .42);
}

.quick-start-dialog::backdrop {
  background: rgba(8, 23, 46, .78);
  backdrop-filter: blur(5px);
}

.quick-start-shell {
  min-height: min(720px, 90dvh);
  display: flex;
  flex-direction: column;
}

.quick-start-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 16px;
  color: #fff;
  background: linear-gradient(135deg, #071d3c 0%, #0c3975 68%, #145cc1 100%);
}

.quick-start-head h2 {
  margin: 2px 0 0;
  color: inherit;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1;
}

.quick-start-eyebrow,
.quick-start-step-number {
  margin: 0;
  color: #175fd0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.quick-start-head .quick-start-eyebrow {
  color: #bcd8ff;
}

.quick-start-exit {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.quick-start-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 24px;
  list-style: none;
  border-bottom: 1px solid #d7e3f3;
  background: #fff;
}

.quick-start-progress[hidden] {
  display: none;
}

.quick-start-progress li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  color: #74839a;
  font-size: 12px;
  font-weight: 800;
}

.quick-start-progress li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.quick-start-progress li.current {
  color: #0b55bd;
}

.quick-start-progress li.current::after,
.quick-start-progress li.complete::after {
  background: #1767d7;
}

.quick-start-screen {
  flex: 1;
  min-height: 0;
  padding: clamp(20px, 4vw, 36px);
  overflow: auto;
}

.quick-start-screen[hidden] {
  display: none;
}

.quick-start-step-copy {
  max-width: 720px;
  margin-bottom: 22px;
}

.quick-start-step-copy h3 {
  margin: 4px 0 7px;
  font-size: clamp(24px, 3.5vw, 34px);
}

.quick-start-step-copy p:last-child {
  margin: 0;
  color: #53657f;
  font-size: 15px;
  line-height: 1.55;
}

.quick-start-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
}

.quick-start-intro-copy > .material-symbols-rounded {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: #1767d7;
  box-shadow: 0 16px 35px rgba(23, 103, 215, .3);
  font-size: 42px;
}

.quick-start-intro-copy h3 {
  margin: 24px 0 12px;
  font-size: clamp(28px, 4.8vw, 46px);
  line-height: 1.08;
}

.quick-start-intro-copy p {
  max-width: 640px;
  color: #53657f;
  font-size: 17px;
  line-height: 1.6;
}

.quick-start-intro-actions,
.quick-start-storefront-actions,
.quick-start-result-actions {
  display: grid;
  gap: 12px;
}

.quick-start-intro-actions button,
.quick-start-storefront-actions button,
.quick-start-result-actions button,
.quick-start-actions button {
  min-height: 46px;
}

.quick-start-intro-actions label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #65768f;
  font-size: 12px;
  line-height: 1.35;
}

.quick-start-primary {
  border-color: #1767d7 !important;
  color: #fff !important;
  background: #1767d7 !important;
  box-shadow: 0 10px 24px rgba(23, 103, 215, .25);
}

.quick-start-primary:hover:not(:disabled) {
  background: #0d55ba !important;
}

.quick-start-storefront-actions {
  grid-template-columns: repeat(3, 1fr);
}

.quick-start-storefront-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quick-start-storefront-preview,
.quick-start-result-preview {
  display: grid;
  width: min(680px, 100%);
  aspect-ratio: 16 / 9;
  margin: 20px auto 12px;
  place-items: center;
  overflow: hidden;
  border: 2px dashed #b9cbe4;
  border-radius: 15px;
  color: #65768f;
  background: #eaf2fd;
}

.quick-start-storefront-preview img,
.quick-start-result-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-start-field {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.quick-start-field textarea {
  min-height: 84px;
  padding: 14px;
  border: 2px solid #afc3df;
  border-radius: 12px;
  font: 800 24px/1.25 inherit;
  resize: vertical;
}

.quick-start-field textarea:focus {
  border-color: #1767d7;
  outline: 3px solid rgba(23, 103, 215, .18);
}

.quick-start-choice-group {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.quick-start-choice-group legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 900;
}

.quick-start-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-start-style-grid button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  text-align: left;
}

.quick-start-style-grid button span {
  color: #63748c;
  font-size: 11px;
}

.quick-start-style-grid button[aria-pressed="true"],
.quick-start-color-grid button[aria-pressed="true"] {
  border-color: #1767d7;
  outline: 2px solid rgba(23, 103, 215, .2);
  background: #edf5ff;
}

.quick-start-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-start-color-grid button {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quick-start-color-grid i {
  width: 22px;
  height: 22px;
  border: 1px solid #a9b6c8;
  border-radius: 50%;
  background: var(--quick-color);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75);
}

.quick-start-status {
  min-height: 20px;
  margin: 12px 0;
  color: #53657f;
  font-size: 13px;
}

.quick-start-status.error {
  color: #b42318;
}

.quick-start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.quick-start-placement-stage {
  position: relative;
  width: min(780px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #9fb4d2;
  border-radius: 14px;
  background: #dfe9f6;
  touch-action: none;
  user-select: none;
}

.quick-start-placement-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.quick-start-fascia-box {
  position: absolute;
  min-width: 12%;
  min-height: 8%;
  border: 3px solid #156cff;
  background: rgba(21, 108, 255, .12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 24px rgba(5, 42, 94, .28);
  cursor: move;
}

.quick-start-fascia-box > span {
  position: absolute;
  top: -30px;
  left: -3px;
  padding: 4px 8px;
  border-radius: 6px 6px 0 0;
  color: #fff;
  background: #156cff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.quick-start-fascia-box button {
  position: absolute;
  width: 11px !important;
  min-width: 11px !important;
  max-width: 11px !important;
  height: 11px !important;
  min-height: 11px !important;
  max-height: 11px !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  border: 2px solid #156cff;
  border-radius: 50% !important;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
  transform: none !important;
}

.quick-start-fascia-box button::after {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 50%;
}

.quick-start-fascia-box [data-quick-handle="nw"] { top: -6px; left: -6px; cursor: nwse-resize; }
.quick-start-fascia-box [data-quick-handle="ne"] { top: -6px; right: -6px; cursor: nesw-resize; }
.quick-start-fascia-box [data-quick-handle="se"] { right: -6px; bottom: -6px; cursor: nwse-resize; }
.quick-start-fascia-box [data-quick-handle="sw"] { bottom: -6px; left: -6px; cursor: nesw-resize; }

.quick-start-result-preview {
  width: min(760px, 100%);
  margin-top: 0;
  border-style: solid;
}

.quick-start-result-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(760px, 100%);
  margin: 18px auto 0;
}

.quick-start-result-actions .quick-start-email {
  grid-column: 1 / -1;
}

.account-preference-select {
  align-items: end;
}

.account-preference-select select {
  min-width: 160px;
}

@media (max-width: 700px) {
  .quick-start-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .quick-start-shell {
    min-height: 100dvh;
  }

  .quick-start-head {
    padding: 14px 16px;
  }

  .quick-start-head .quick-start-eyebrow {
    display: none;
  }

  .quick-start-exit {
    min-height: 40px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .quick-start-progress {
    padding: 0 10px;
  }

  .quick-start-progress li {
    min-height: 44px;
  }

  .quick-start-progress li span {
    display: none;
  }

  .quick-start-screen {
    padding: 18px 16px 24px;
  }

  .quick-start-intro {
    display: block;
  }

  .quick-start-intro-copy > .material-symbols-rounded {
    width: 58px;
    height: 58px;
    font-size: 34px;
  }

  .quick-start-intro-copy h3 {
    margin-top: 17px;
    font-size: 31px;
  }

  .quick-start-intro-copy p {
    font-size: 15px;
  }

  .quick-start-intro-actions {
    margin-top: 26px;
  }

  .quick-start-storefront-actions,
  .quick-start-style-grid {
    grid-template-columns: 1fr;
  }

  .quick-start-placement-stage {
    width: calc(100vw - 32px);
  }

  .quick-start-result-actions {
    grid-template-columns: 1fr;
  }

  .quick-start-result-actions .quick-start-email {
    grid-column: auto;
  }

  .quick-start-actions {
    justify-content: stretch;
  }

  .quick-start-actions button {
    flex: 1 1 130px;
  }
}
