/* Wizard (6.2 K-2): markup from aida_shell/ui/wizard.html, behaviour from ui/wizard.js. Sizes sm 480, md 720, lg 960. */
dialog.dlg.wiz {
  --wiz-w: 720px; width: min(var(--wiz-w), calc(100vw - var(--rail) - 32px)); max-height: 86vh; padding: 0; overflow: hidden;
}
dialog.dlg.wiz[data-size="sm"] { --wiz-w: 480px; }
dialog.dlg.wiz[data-size="lg"] { --wiz-w: 960px; }
dialog.dlg.wiz[open] { display: flex; }
.wiz > form { display: flex; flex-direction: column; min-width: 0; min-height: 0; width: 100%; max-height: 86vh; margin: 0; }
.wiz header { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-3); }
.wiz header > div { flex: 1; min-width: 0; }
.wiz header > svg.i { width: 22px; height: 22px; margin-top: 1px; color: var(--ink-2); }
.wiz header > svg.i.ai { color: var(--ai); }
.wiz header .lead { margin: var(--s-1) 0 0; font: var(--t-small); color: var(--ink-2); }
.wiz .wiz-steps { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0 var(--s-5) var(--s-3); counter-reset: wiz; }
.wiz .wiz-steps li { counter-increment: wiz; display: inline-flex; align-items: center; gap: var(--s-2); font: var(--t-small); color: var(--ink-3); white-space: nowrap; }
.wiz .wiz-steps li::before {
  content: counter(wiz); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-1); font: var(--t-micro); font-variant-numeric: tabular-nums;
}
.wiz .wiz-steps li[aria-current="step"] { color: var(--ink); }
.wiz .wiz-steps li[aria-current="step"]::before { background: var(--gold); color: var(--on-gold); }
.wiz .wiz-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--s-3) var(--s-5) var(--s-5); }
.wiz .wiz-step { display: grid; gap: var(--s-4); }
/* Labels sit above their field, the field takes the full width. */
.wiz .wiz-step label:not(.choice) { display: grid; gap: var(--s-2); font: var(--t-small); color: var(--ink-2); }
.wiz .wiz-step :is(input:not([type="radio"], [type="checkbox"], [type="range"]), select, textarea) { width: 100%; min-width: 0; }
.wiz .wiz-step textarea { resize: vertical; min-height: 4.5em; }
/* A choice is a card: icon, name, one line on what it does, and the price. */
.wiz .choice {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-1) var(--s-3); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-card); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--hairline); cursor: pointer;
}
.wiz .choice:hover { background: color-mix(in srgb, var(--surface-1), var(--ink) 4%); }
.wiz .choice:has(input:checked) { box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-wash); }
.wiz .choice:has(:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.wiz .choice > input { position: absolute; opacity: 0; pointer-events: none; }
.wiz .choice > svg.i { grid-row: 1 / span 2; color: var(--ink-2); }
.wiz .choice .name { font: 500 13px/18px var(--font); color: var(--ink); }
.wiz .choice .effect { grid-column: 2; font: var(--t-small); color: var(--ink-2); }
.wiz .choice .price { grid-row: 1; grid-column: 3; }
.wiz footer { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--hairline); }
.wiz .wiz-cost { flex: 1; min-width: 0; font: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
