.wizard-main {
  padding: clamp(24px, 5vw, 66px) clamp(20px, 5vw, 72px) 64px;
  background: radial-gradient(ellipse at 70% 0, color-mix(in srgb, var(--brand-soft) 64%, transparent), transparent 62%), var(--bg);
}
.wizard-wrap { max-width: 1130px; margin-inline: auto; }
.wizard-heading { margin-bottom: clamp(24px, 3.8vw, 43px); }
.wizard-heading h1 { font-size: clamp(30px, 4vw, 54px); line-height: 1.07; letter-spacing: -.055em; font-weight: 720; }
.wizard-heading p { max-width: 60ch; color: var(--text-2); font-size: clamp(15px, 1.6vw, 18px); margin: 14px 0 0; }
.wizard-topbar .waffle { font-size: 24px; text-decoration: none; line-height: 1; }
.wizard-progress ol { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wizard-progress button { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 6px; min-height: 48px; background: transparent; border: 0; border-top: 2px solid var(--stroke); color: var(--text-2); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.wizard-progress button:disabled { cursor: default; }
.wizard-progress button[aria-current] { border-color: var(--brand); color: var(--text); }
.wizard-progress button.wizard-completed { border-color: color-mix(in srgb, var(--brand) 54%, var(--stroke)); color: var(--text); }
.wizard-step-dot { width: 29px; height: 29px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--stroke); background: var(--surface); font-size: 13px; }
.wizard-completed .wizard-step-dot { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
[aria-current] .wizard-step-dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(212px, 268px); align-items: start; gap: 22px; }
.wizard-card, .wizard-summary { background: var(--surface); border: 1px solid var(--stroke-2); border-radius: 18px; box-shadow: 0 14px 35px color-mix(in srgb, var(--text) 6%, transparent); }
.wizard-card { padding: clamp(22px, 3.4vw, 43px); min-width: 0; }
.wizard-card h2 { font-size: clamp(23px, 2.8vw, 32px); line-height: 1.16; margin: 0 0 10px; letter-spacing: -.035em; font-weight: 690; }
.wizard-intro { color: var(--text-2); font-size: 15px; margin: 0 0 26px; min-height: 20px; }
.wizard-segment { display: inline-flex; gap: 4px; background: var(--surface-3); padding: 4px; border-radius: 12px; margin-bottom: 22px; max-width: 100%; }
.wizard-segment button { appearance: none; padding: 9px 14px; min-height: 40px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; font: inherit; font-weight: 650; line-height: 1.25; }
.wizard-segment button[aria-pressed=true] { border-color: var(--stroke-2); color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.wizard-field, .wizard-fields label { font-size: 14px; font-weight: 650; }
.wizard-fields label span { font-size: 12px; color: var(--text-2); font-weight: 400; margin-left: 4px; }
.wizard-card input, .wizard-card select, .wizard-card textarea { display: block; width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--stroke); border-radius: 9px; padding: 10px 12px; background: var(--surface); color: var(--text); font-weight: 400; line-height: 1.35; font-family: inherit; font-size: 16px; }
:root[data-theme=dark] .wizard-card { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .wizard-card { color-scheme: dark; } }
.wizard-card input::placeholder { color: var(--text-2); opacity: .8; }
.wizard-card :is(input, select, textarea):focus { border: 1px solid var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 22%, transparent); outline-offset: 1px; }
.wizard-card textarea { resize: vertical; }
.wizard-search { margin-top: 5px; }
.wizard-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.wizard-fields :is(input, select, textarea) { margin-top: 5px; }
.wizard-span { grid-column: 1 / -1; }
.wizard-help { min-height: 17px; color: var(--text-2); font-size: 13px; margin: 10px 0 4px; }
.wizard-results { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 7px; }
.wizard-results button { display: flex; align-items: center; text-align: left; justify-content: space-between; gap: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--stroke-2); border-radius: 10px; padding: 11px 13px; min-height: 48px; width: 100%; cursor: pointer; font: inherit; }
.wizard-results button:hover { border-color: var(--brand); }
.wizard-results button[aria-pressed=true] { border-color: var(--brand); background: var(--brand-soft); }
.wizard-results button span { min-width: 0; overflow-wrap: anywhere; }
.wizard-results button strong { display: block; font-size: 15px; }
.wizard-results button small { display: block; color: var(--text-2); margin: 2px 0 0; }
.wizard-results button [data-check] { visibility: hidden; color: var(--brand); font-size: 19px; flex: 0 0 auto; }
.wizard-results button[aria-pressed=true] [data-check] { visibility: visible; }
.wizard-info { border-radius: 10px; border: 1px solid var(--stroke-2); background: var(--surface-2); padding: 16px; overflow-wrap: anywhere; }
.wizard-info p { margin: 4px 0 0; color: var(--text-2); }
.wizard-error { border: 1px solid var(--err); padding: 10px 12px; border-radius: 9px; margin: 22px 0 0; background: var(--err-soft); color: var(--err); }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--stroke-2); margin-top: 26px; padding-top: 21px; }
.wizard-card .btn { height: auto; min-height: 44px; padding: 9px 15px; font-size: 14px; border-radius: 9px; justify-content: center; text-decoration: none; text-align: center; }
.wizard-summary { padding: 22px; background: var(--surface-2); }
.wizard-summary h2 { font-size: 17px; margin: 0 0 7px; }
.wizard-summary dl { margin: 0; }
.wizard-summary dl div { padding: 11px 0; border-bottom: 1px solid var(--stroke-2); }
.wizard-summary dt { font-size: 12px; color: var(--text-2); }
.wizard-summary dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.wizard-summary p { margin: 14px 0 0; color: var(--text-2); font-size: 13px; }
.wizard-success { max-width: 650px; }
.wizard-success-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 23px; }
.wizard-success p { color: var(--text-2); margin: 0 0 18px; }
.wizard-success-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
@media (max-width: 1000px) { .wizard-shell .rail { width: 166px; } .wizard-main { padding-inline: 25px; } }
@media (max-width: 790px) {
  .wizard-shell .rail { display: none; }
  .wizard-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .wizard-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
}
@media (max-width: 500px) {
  .wizard-topbar .user span { display: none; }
  .wizard-main { padding: 28px 14px 40px; }
  .wizard-card, .wizard-summary { border-radius: 13px; padding: 19px 16px; }
  .wizard-progress ol { gap: 5px; margin-bottom: 14px; }
  .wizard-progress button { flex-direction: column; justify-content: start; gap: 5px; font-size: 12px; }
  .wizard-step-dot { width: 25px; height: 25px; }
  .wizard-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .wizard-segment { width: 100%; }
  .wizard-segment button { flex: 1; padding-inline: 7px; }
  .wizard-actions { gap: 6px; }
  .wizard-actions .btn { padding-inline: 10px; }
}
@media (max-width: 500px) and (min-height: 500px) {
  .wizard-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: var(--surface);
    margin-inline: -16px;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    border-radius: 0 0 13px 13px;
  }
}
