.wizard-section { scroll-margin-top: 6rem; }
.wizard-intro { max-width: 47rem; }
.wizard-intro h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.3; letter-spacing: -.04em; }
.wizard-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
.wizard-steps { padding: 0; margin: 0; list-style: none; counter-reset: wizard; }
.wizard-steps li { counter-increment: wizard; padding: .8rem .6rem; color: var(--muted); border-left: 3px solid var(--line); }
.wizard-steps li::before { content: counter(wizard, decimal-leading-zero); font: 600 .8rem ui-monospace, monospace; margin-right: .8rem; }
.wizard-steps [aria-current] { color: var(--blue-dark); background: #e9edff; border-color: var(--blue); font-weight: 750; border-radius: 0 .6rem .6rem 0; }
.wizard-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2.4rem); min-width: 0; box-shadow: 0 12px 35px rgba(27,37,65,.05); }
.wizard-card h3 { font-size: 1.5rem; margin: 0 0 .6rem; scroll-margin-top: 6rem; }
.wizard-card h3:focus { outline: none; }
.wizard-card fieldset { border: 0; margin: 1.4rem 0; padding: 0; min-width: 0; }
.wizard-card legend { font-weight: 750; margin-bottom: .6rem; }
.wizard-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.wizard-option { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; cursor: pointer; }
.wizard-option:has(input:checked) { border-color: var(--blue); background: #f0f3ff; }
.wizard-option small { display: block; color: var(--muted); line-height: 1.5; margin-top: .25rem; }
.wizard-option input { margin: .35rem 0 0; accent-color: var(--blue); flex-shrink: 0; }
.wizard-field { display: block; font-weight: 650; margin: 1rem 0; }
.wizard-field select { display: block; width: 100%; margin-top: .4rem; padding: .8rem; font: inherit; font-weight: 400; border: 1px solid #b9c2d2; border-radius: .6rem; color: var(--ink); background: white; }
.wizard-note { background: #f2f5fb; border-radius: .7rem; padding: 1rem; margin: 1rem 0; font-size: .93rem; }
.wizard-warning { background: #fff4e1; border-left: 3px solid #ad6800; color: #684000; }
.wizard-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.wizard-card button { font: inherit; cursor: pointer; border: 1px solid var(--line); }
.wizard-card button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.wizard-card :is(button, select, input, textarea, a):focus-visible { outline: 3px solid #294ccd; outline-offset: 4px; }
.wizard-footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.2rem; }
.wizard-output { display: block; width: 100%; height: 19rem; resize: vertical; padding: 1rem; border: 1px solid #b9c2d2; border-radius: .6rem; font: .86rem/1.7 ui-monospace, monospace; background: #fafbfe; color: var(--ink); }
.wizard-status { font-weight: 650; color: var(--blue-dark); min-height: 1.6rem; margin-top: .8rem; }
.wizard-progress { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }
.wizard-check { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.wizard-check input { margin-top: .4rem; accent-color: var(--blue); }
.wizard-card [hidden], .wizard-section [hidden] { display: none !important; }
.wizard-links { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .9rem; }
.wizard-links a { text-underline-offset: 3px; }
.tool-guide { border: 1px solid var(--line); border-radius: .7rem; margin: 1rem 0; padding: .85rem 1rem; }
.tool-guide summary { cursor: pointer; font-weight: 750; }
.tool-guide pre { overflow-x: auto; background: #f2f5fb; border-radius: .5rem; padding: .8rem; font-size: .9rem; }
.tool-guide p { font-size: .93rem; }
@media(max-width: 760px) {
  .wizard-layout { grid-template-columns: 1fr; gap: 1rem; }
  .wizard-steps { display: flex; flex-wrap: wrap; font-size: .8rem; }
  .wizard-steps li { padding: .45rem; }
  .wizard-steps li::before { margin-right: .3rem; }
  .wizard-options { grid-template-columns: 1fr; }
  .wizard-footer .button { padding: .6rem .85rem; }
}
