.wizard-page{max-width:960px}.wizard-progress{display:flex;gap:1rem;padding:0;margin:1.2rem 0 1.5rem;list-style:none}.wizard-progress li{flex:1;display:flex;gap:.55rem;align-items:center;color:var(--muted)}.wizard-progress li>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border:1px solid var(--line);border-radius:50%;font-weight:700}.wizard-progress [aria-current=step]{color:var(--ink)}.wizard-progress [aria-current=step]>span{background:var(--accent);color:#fff;border-color:var(--accent)}.wizard-panel{border:1px solid var(--line);border-radius:18px;padding:1.5rem;background:var(--white)}.wizard-step h2{margin:0 0 .75rem;font-size:1.5rem;line-height:1.2}.wizard-step>p{color:var(--muted);line-height:1.55}.wizard-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.2rem 0}.wizard-fields label{display:flex;flex-direction:column;gap:.5rem;font-weight:600}.wizard-fields input,.wizard-fields select{width:100%;min-height:45px;border:1px solid var(--line);border-radius:9px;padding:.6rem .8rem;background:var(--white);color:var(--ink);font:inherit}.wizard-budgets{display:flex;flex-wrap:wrap;gap:.5rem}.wizard-budgets button,.wizard-actions>button:not(.primary-button){min-height:40px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);padding:.5rem .9rem;font:inherit;cursor:pointer}.wizard-budgets [aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.wizard-step fieldset{border:0;padding:0;margin:1rem 0 1.3rem;min-width:0}.wizard-step legend{font-weight:600;margin-bottom:.7rem}.wizard-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.wizard-choice{display:flex;align-items:center;gap:.65rem;border:1px solid var(--line);border-radius:10px;padding:.85rem;cursor:pointer;line-height:1.3;min-height:52px}.wizard-choice:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--white))}.wizard-choice input{accent-color:var(--accent);flex:none}.wizard-note{font-size:.84rem;line-height:1.5;color:var(--muted)}.wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.35rem}.wizard-actions .primary-button{border:0;cursor:pointer}.wizard-parts{list-style:none;margin:1rem 0;padding:0}.wizard-part{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:1rem;padding:.9rem 0;border-bottom:1px solid var(--line)}.wizard-part img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:8px}.wizard-part-placeholder{display:grid;place-items:center;width:64px;height:64px;background:var(--line);border-radius:8px}.wizard-part>div{min-width:0}.wizard-part a{display:block;font-weight:600;overflow-wrap:anywhere;line-height:1.3}.wizard-part small{display:block;font-size:.75rem;color:var(--muted);margin:.2rem 0;overflow-wrap:anywhere}.wizard-part>strong{font-size:.95rem}.wizard-total{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0;font-weight:700}.wizard-total strong{font-size:1.3rem}.wizard-warnings{font-size:.84rem;background:var(--page);border:1px solid var(--line);border-radius:10px;padding:.5rem .75rem;margin:1rem 0}.wizard-warnings ul,.wizard-reasons ul,.wizard-checks ul{padding-left:1.2rem;line-height:1.5}.wizard-warnings li+li,.wizard-checks li+li{margin-top:.45rem}.wizard-reasons,.wizard-checks{margin:1rem 0;font-size:.85rem}.wizard-reasons summary,.wizard-checks summary{cursor:pointer;font-weight:600}.wizard-open{margin-top:.6rem}.wizard-panel :focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:600px){.wizard-page{padding-top:1rem}.wizard-progress{gap:.4rem;margin:.8rem 0 1rem}.wizard-progress li{justify-content:center;gap:.3rem;flex-direction:column;text-align:center}.wizard-progress small{font-size:.68rem;line-height:1.2}.wizard-panel{padding:1rem;border-radius:12px}.wizard-fields{gap:.7rem}.wizard-choices{grid-template-columns:1fr;gap:.5rem}.wizard-choice{padding:.65rem .75rem;min-height:44px}.wizard-part{grid-template-columns:48px minmax(0,1fr);gap:.7rem}.wizard-part img,.wizard-part-placeholder{width:48px;height:48px}.wizard-part>strong{grid-column:2;margin-top:-.2rem}.wizard-actions{margin-top:1rem}.wizard-step h2{font-size:1.3rem}}

html[data-theme="dark"] .wizard-progress [aria-current=step]>span{color:#16191c}

.wizard-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.wizard-step-enter{animation:wizard-step-enter 220ms ease-out both;--wizard-step-offset:10px}.wizard-step-back{--wizard-step-offset:-10px}.wizard-calculating{display:flex;align-items:center;justify-content:center;gap:1rem;min-height:130px;padding:1.5rem;color:var(--ink)}.wizard-calculating p{margin:0;font-weight:600;line-height:1.5}.wizard-spinner{display:block;flex:0 0 36px;width:36px;height:36px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:wizard-spinner-turn 800ms linear infinite;will-change:transform}
@keyframes wizard-step-enter{from{opacity:0;transform:translate3d(var(--wizard-step-offset),0,0)}to{opacity:1;transform:translate3d(0,0,0)}}@keyframes wizard-spinner-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.wizard-step-enter,.wizard-spinner{animation:none}.wizard-spinner{will-change:auto}}

.wizard-progress li>span{width:30px}
.wizard-budget-field{min-width:0}.wizard-budget-field>label{margin-bottom:.5rem}.wizard-budget-control{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:.8rem}.wizard-budget-range{min-width:0}.wizard-fields .wizard-budget-slider{min-height:44px;padding:0;border:0;border-radius:0;background:transparent;accent-color:var(--accent);cursor:pointer}.wizard-budget-scale{display:flex;justify-content:space-between;gap:.5rem;color:var(--muted);font-size:.74rem;line-height:1.3;white-space:nowrap}.wizard-budget-control>input{align-self:start}@media(max-width:600px){.wizard-budget-field{grid-column:1/-1}.wizard-budget-control{grid-template-columns:minmax(0,1fr) 105px;gap:.65rem}}

.wizard-page-results{max-width:1320px}.wizard-proposals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.5rem;align-items:stretch}.wizard-proposal{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:12px;padding:1.15rem;background:var(--white)}.wizard-proposal[data-proposal-tier=value]{border-color:var(--accent)}.wizard-proposal-header{display:flex;align-items:center;gap:.65rem}.wizard-proposal-header h3{font-size:1.2rem;line-height:1.3;margin:0;overflow-wrap:anywhere}.wizard-proposal-number{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:50%;background:var(--page);color:var(--muted);font-size:.8rem;font-weight:700}.wizard-proposal-method{margin:.65rem 0 .25rem;font-size:.84rem;color:var(--muted);line-height:1.5;min-height:3.8em}.wizard-proposal .wizard-total{padding:.9rem 0;align-items:center;border-bottom:1px solid var(--line);font-size:.78rem;line-height:1.35}.wizard-proposal .wizard-total strong{font-size:1.4rem;white-space:nowrap;color:var(--accent)}.wizard-proposal-status,.wizard-duplicate{margin:.7rem 0 0}.wizard-duplicate{font-style:italic}.wizard-proposal .wizard-parts{margin:.55rem 0}.wizard-proposal .wizard-part{grid-template-columns:48px minmax(0,1fr);column-gap:.7rem;row-gap:.15rem;padding:.85rem 0;align-items:start}.wizard-proposal .wizard-part img,.wizard-proposal .wizard-part-placeholder{width:48px;height:48px;grid-row:1/3}.wizard-proposal .wizard-part>strong{grid-column:2;font-size:.88rem;margin-top:0}.wizard-proposal .wizard-part a{font-size:.88rem}.wizard-proposal .wizard-part small{font-size:.71rem}.wizard-proposal .wizard-reasons,.wizard-proposal .wizard-checks{margin:.7rem 0}.wizard-proposal .wizard-checks{background:var(--page);padding:.6rem .7rem;border-radius:8px}.wizard-proposal .wizard-open{margin-top:auto;padding-top:.7rem;padding-bottom:.7rem;width:100%;text-align:center;line-height:1.35;font-size:.86rem}.wizard-proposal .wizard-reasons+.wizard-open,.wizard-proposal .wizard-checks+.wizard-open{margin-top:1rem}.wizard-proposal-unavailable>.wizard-open{margin-top:auto}.wizard-proposal-unavailable>p{font-size:.86rem;line-height:1.5}.wizard-proposal-unavailable .wizard-proposal-method{font-size:.84rem}@media(max-width:1050px){.wizard-proposals{grid-template-columns:1fr}.wizard-proposal-method{min-height:0}.wizard-proposal .wizard-part{grid-template-columns:48px minmax(0,1fr) auto;align-items:center}.wizard-proposal .wizard-part>strong{grid-column:3;grid-row:1}.wizard-proposal .wizard-part img,.wizard-proposal .wizard-part-placeholder{grid-row:1}.wizard-proposal .wizard-open{width:auto;align-self:flex-start}.wizard-proposal .wizard-total{justify-content:flex-start;gap:1rem}}@media(max-width:600px){.wizard-proposals{margin-top:1rem;gap:.85rem}.wizard-proposal{padding:.9rem}.wizard-proposal-header h3{font-size:1.1rem}.wizard-proposal .wizard-part{grid-template-columns:48px minmax(0,1fr);align-items:start}.wizard-proposal .wizard-part>strong{grid-column:2;grid-row:2}.wizard-proposal .wizard-part img,.wizard-proposal .wizard-part-placeholder{grid-row:1/3}.wizard-proposal .wizard-open{width:100%;align-self:stretch}.wizard-proposal .wizard-total strong{font-size:1.35rem}}

@media(min-width:1051px){.wizard-proposal-header{min-height:3.2rem}.wizard-proposal-method{min-height:4.5em}.wizard-proposal .wizard-checks{margin-bottom:1.2rem}.wizard-proposal .wizard-reasons+.wizard-open,.wizard-proposal .wizard-checks+.wizard-open{margin-top:auto}}

.wizard-budget-manual{grid-template-columns:minmax(0,200px)}.wizard-budget-field>[data-budget-note]{margin:.6rem 0 0}.wizard-part-name{display:block;font-weight:600;overflow-wrap:anywhere;line-height:1.3;font-size:.88rem}.wizard-result-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.wizard-result-heading h2{margin:0}.wizard-result-budget{display:flex;align-items:center;gap:.65rem;margin:0;color:var(--muted);font-size:.9rem}.wizard-result-budget strong{color:var(--ink);font-size:1.25rem;white-space:nowrap}.wizard-step [hidden]{display:none!important}@media(max-width:600px){.wizard-result-heading{gap:.65rem}.wizard-result-budget{width:100%;font-size:.84rem}.wizard-result-budget strong{font-size:1.1rem}}

.wizard-result-answers{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:.7rem 1rem;margin:.9rem 0 1.2rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.wizard-result-answers>div{min-width:0}.wizard-result-answers dt{font-size:.75rem;color:var(--muted);line-height:1.4}.wizard-result-answers dd{margin:.25rem 0 0;font-size:.9rem;line-height:1.4;font-weight:600;overflow-wrap:anywhere}@media(max-width:600px){.wizard-result-answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem .8rem;margin:.8rem 0 1rem}.wizard-result-answers dd{font-size:.84rem}}

/* Visible from the first paint, including catalogue and module loading. */
#wizard-loading:not(.wizard-announcement):not(.wizard-loading-error){display:flex;align-items:center;justify-content:center;gap:.85rem;min-height:130px;margin:0;padding:1.5rem;text-align:center;font-weight:600}
#wizard-loading[hidden]{display:none!important}
.wizard-minimum-loading{display:flex;align-items:center;gap:.6rem}
#wizard-loading:not(.wizard-announcement):not(.wizard-loading-error)::before,.wizard-minimum-loading::before{content:"";display:block;width:28px;height:28px;flex-shrink:0;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:wizard-spinner-turn 800ms linear infinite}
.wizard-minimum-loading::before{width:16px;height:16px;border-width:2px}
@media(prefers-reduced-motion:reduce){#wizard-loading::before,.wizard-minimum-loading::before{animation:none}}

/* Stars fix exact selections within one proposal, not account favourites. */
.wizard-proposal .wizard-part{grid-template-columns:48px minmax(0,1fr) 32px;gap:.5rem .7rem}
.wizard-proposal .wizard-part>img,.wizard-proposal .wizard-part>.wizard-part-placeholder{width:48px;height:48px;grid-row:1 / span 2}
.wizard-proposal .wizard-part>div{grid-column:2;grid-row:1}
.wizard-proposal .wizard-part>strong{grid-column:2;grid-row:2;margin:0}
.wizard-component-star{grid-column:3;grid-row:1 / span 2;align-self:start;display:grid;place-items:center;width:32px;height:36px;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--white);color:var(--muted);cursor:pointer;touch-action:manipulation}
.wizard-component-star svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.wizard-component-star[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
.wizard-component-star[aria-pressed=true] svg{fill:currentColor}
.wizard-component-star:disabled{opacity:.55;cursor:wait}
.wizard-proposal-controls{margin-top:auto;padding-top:1rem}
.wizard-reroll{display:flex;align-items:center;justify-content:center;gap:.55rem;width:100%;min-height:44px;padding:.65rem .8rem;border:1px solid var(--accent);border-radius:8px;background:var(--white);color:var(--accent);font:inherit;font-weight:600;cursor:pointer}
.wizard-reroll:disabled{opacity:.65;cursor:wait}
.wizard-reroll .wizard-spinner{width:18px;height:18px;flex:none;margin:0;border-width:2px}
.wizard-reroll-feedback:empty{display:none}
.wizard-reroll-feedback{margin:.6rem 0 0}
.wizard-proposal .wizard-open{margin-top:.75rem}
