html.wizard-open { overflow: hidden; }
.contact-entry { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact-entry button {
  min-height: 48px;
  padding: .9rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.contact-entry button + button { background: transparent; color: var(--ink); }
.contact-entry button:hover { opacity: .82; }

.customization-dialog {
  width: min(860px, calc(100% - 2rem));
  max-width: none;
  height: min(780px, calc(100dvh - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
#customization-content { height: 100%; min-height: 0; }
.wizard-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100%; min-height: 0; }
.wizard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 2rem 2.5rem 1.25rem; border-bottom: 1px solid var(--line); }
.wizard-header h2 { margin: .45rem 0 0; font-family: Manrope, sans-serif; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.07em; line-height: 1.08; }
.wizard-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 2rem; cursor: pointer; }
.wizard-progress { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 2.5rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.progress-track { flex: 1; height: 2px; background: var(--line); }
.progress-track span { display: block; height: 100%; background: var(--ink); }
.wizard-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 2.5rem 2rem; }
.wizard-body h3 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -.06em; }
.wizard-body h3:focus { outline: none; }
.wizard-intro { max-width: 37rem; color: var(--muted); line-height: 1.55; margin: .8rem 0 1.8rem; }
.choice-group { margin: 1.5rem 0 2rem; padding: 0; border: 0; }
.choice-group legend { margin-bottom: .8rem; font-size: .78rem; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.choice { position: relative; min-height: 64px; display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1.3; }
.choice:hover { border-color: #86877f; }
.choice:has(input:checked) { border-color: var(--ink); background: #efefea; }
.choice:has(input:focus-visible) { outline: 2px solid #686b5e; outline-offset: 2px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-mark { width: 2rem; height: 2rem; flex: 0 0 2rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .65rem; font-weight: 700; color: var(--muted); }
.choice:has(input:checked) .choice-mark { border-color: var(--ink); background: var(--ink); color: #fff; }
.field-label { display: block; margin: 1.2rem 0 .45rem; font-size: .78rem; font-weight: 700; }
.wizard-body textarea, .wizard-body input[type="text"], .wizard-body input[type="email"] { width: 100%; min-height: 44px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.wizard-body textarea { min-height: 96px; resize: vertical; }
.wizard-body textarea:focus, .wizard-body input:focus { outline: 2px solid #686b5e; outline-offset: 2px; }
.review-list { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.review-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.review-row dt { color: var(--muted); font-size: .78rem; font-weight: 700; }
.review-row dd { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.contact-fields { margin-top: 2rem; }
.contact-fields h3 { font-size: 1.25rem; letter-spacing: -.03em; }
.concept-note { margin: 2rem 0 .4rem; font-weight: 700; }
.privacy-note { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.consent-choice { display: flex; align-items: flex-start; gap: .7rem; margin: 1.2rem 0; font-size: .85rem; line-height: 1.45; cursor: pointer; }
.consent-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--ink); }
.unavailable-note { color: #a3342c; font-size: .85rem; font-weight: 700; }
.manual-copy { margin-top: 1.2rem; }
.manual-copy[hidden] { display: none; }
.manual-copy textarea { min-height: 180px; }
.wizard-error { min-height: 1.5rem; color: #a3342c; font-size: .82rem; font-weight: 700; }
.wizard-status { min-height: 1.5rem; color: #38684c; font-size: .82rem; font-weight: 700; }
.wizard-footer { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 2.5rem; border-top: 1px solid var(--line); background: var(--bg); font-size: inherit; letter-spacing: normal; }
.wizard-footer button { min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--ink); cursor: pointer; font-weight: 700; white-space: nowrap; }
.wizard-footer a { min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--ink); display: inline-flex; align-items: center; font-weight: 700; }
.wizard-back { background: transparent; color: var(--ink); }
.wizard-back:disabled { opacity: .35; cursor: default; }
.wizard-copy { background: transparent; color: var(--ink); }
.wizard-next { margin-left: auto; display: inline-flex; align-items: center; gap: 1.5rem; background: var(--ink); color: #fff; }
.wizard-next:disabled { opacity: .4; cursor: not-allowed; }
.wizard-footer-note { color: var(--muted); font-size: .72rem; letter-spacing: 0; }
@media (max-width: 640px) {
  .customization-dialog { width: calc(100% - 1rem); height: calc(100dvh - 1rem); max-height: calc(100dvh - 1rem); }
  .wizard-header { padding: 1.2rem 1.2rem .9rem; }
  .wizard-header h2 { font-size: 1.7rem; }
  .wizard-progress { padding: .9rem 1.2rem; }
  .wizard-body { padding: .3rem 1.2rem 1.2rem; }
  .wizard-body h3 { font-size: 1.7rem; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .choice { min-height: 52px; }
  .review-row { grid-template-columns: 1fr; gap: .25rem; }
  .wizard-footer { padding: .8rem 1.2rem; flex-wrap: wrap; }
  .wizard-footer button { white-space: normal; }
  .wizard-footer .wizard-next { margin-left: auto; }
  .wizard-footer-note { display: none; }
  .contact-entry { flex-direction: column; align-items: stretch; width: 100%; }
}
@media (max-height: 550px) {
  .wizard-header { padding-top: .8rem; padding-bottom: .65rem; }
  .wizard-progress { padding-top: .6rem; padding-bottom: .6rem; }
  .wizard-footer { padding-top: .6rem; padding-bottom: .6rem; }
}
