/* Add a business: one question per screen on the left, the plan building itself on the right. */
.wz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; max-width: 1120px; }
.wz > .banner, .wz > .note, .wz > .card:not(.wz-plan) { grid-column: 1 / -1; }
.wz-main { min-width: 0; }

/* Progress: five chapters and a thin bar under them. */
.wz-progress ol { display: flex; gap: 4px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.wz-progress li { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-progress li.on { color: var(--indigo); }
.wz-progress li.done { color: var(--fg); }
.wz-progress li.done::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin: 0 6px 1px 0; vertical-align: middle; }
.wz-bar { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.wz-bar i { display: block; height: 100%; background: var(--indigo); border-radius: 4px; transition: width .35s ease; }

/* The question. */
.wz-q { margin-top: 34px; }
.wz-screen { animation: wz-in .28s ease both; }
.wz-screen.back { animation-name: wz-back; }
@keyframes wz-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes wz-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.wz-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--coral); letter-spacing: .01em; }
.wz-title { font: 800 30px/1.18 var(--head); letter-spacing: -.01em; margin: 0 0 10px; outline: none; max-width: 28ch; }
.wz-hint { margin: 0 0 24px; color: var(--muted); max-width: 60ch; }
.wz-body { min-width: 0; }
.wz-gap { margin-top: 22px; }
.wz-sub { margin-top: 26px; }
.wz-sub h3 { font: 650 15px var(--font); margin: 0 0 10px; }
.wz-sub h3 .muted { font-weight: 500; font-size: 13px; margin-left: 4px; }
.wz-err { min-height: 22px; margin: 14px 0 0; color: var(--bad); font-weight: 600; font-size: 14px; }
.wz-err.shake { animation: wz-shake .3s; }
@keyframes wz-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.wz-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.wz-nav .wz-go { margin-left: auto; padding: 10px 22px; min-height: 44px; font-size: 15px; }
.wz-nav #wback { min-height: 44px; }
.wz-enter { font-size: 13px; margin-left: auto; }
.wz-enter + .wz-go { margin-left: 0; }

/* Inputs. */
.wz-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); padding: 0 12px; transition: border-color .15s, box-shadow .15s; }
.wz-input:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 18%, transparent); }
.wz-input input { border: 0; padding: 11px 0; background: transparent; outline: none; box-shadow: none; }
.wz-input input:focus-visible { outline: none; }
.wz-input.big input { font: 600 22px var(--head); padding: 14px 0; }
.wz-input.search { margin-bottom: 12px; }
.wz-input .i { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.wz-prefix { font: 700 20px var(--head); color: var(--muted); }
label.f .wz-input { font-weight: 400; }
.wz-money { align-items: flex-end; gap: 12px; flex-wrap: nowrap; }
.wz-money .wz-input { flex: 1; min-width: 0; }
.wz-cur { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); width: 104px; flex: none; }
.wz-cur select { padding: 15px 10px; border-radius: 12px; }

/* Tappable cards. */
.wz-cards { display: grid; gap: 10px; }
.wz-cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wz-cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wz-card { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 14px; min-height: 64px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.wz-card:hover { border-color: var(--indigo); }
.wz-card:active { transform: scale(.99); }
.wz-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.wz-card b { display: block; font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.wz-card small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 3px; }
.wz-card.on { border-color: var(--indigo); background: color-mix(in srgb, var(--indigo) 7%, var(--surface)); box-shadow: inset 0 0 0 1px var(--indigo); }
.wz-ic { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--indigo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.wz-card.on .wz-ic { stroke: var(--coral); }

/* Pills: smaller choices, chips, suggestions, regions. */
.wz-pills, .wz-suggest, .wz-regions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wz-suggest, .wz-regions { margin-top: 12px; }
.wz-regions { margin: 0 0 14px; }
.wz-suggest > .muted, .wz-regions > .muted { font-size: 12.5px; margin-right: 2px; width: 100%; }
.wz-pill { border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 7px 14px; font: 600 13.5px var(--font); cursor: pointer; min-height: 36px; }
.wz-pill small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.wz-pill:hover { border-color: var(--indigo); }
.wz-pill.on { background: var(--indigo); border-color: var(--indigo); color: var(--on-accent); }
.wz-pill.on small { color: inherit; opacity: .75; }
.wz-pill.ghost { border-style: dashed; color: var(--muted); }
.wz-pill.ghost:hover { color: var(--indigo); }
.wz-chipbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; background: var(--surface); min-height: 52px; }
.wz-chipbox:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 18%, transparent); }
.wz-chipbox input { flex: 1; min-width: 180px; border: 0; padding: 6px 4px; background: transparent; outline: none; }
.wz-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 4px 4px 4px 12px; font-weight: 600; font-size: 14px; animation: wz-pop .18s ease; }
.wz-chip button { border: 0; background: transparent; color: var(--muted); font-size: 17px; line-height: 1; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.wz-chip button:hover { background: var(--line); color: var(--fg); }
@keyframes wz-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* Countries. */
.wz-clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; max-height: 336px; overflow: auto; padding: 2px; }
.wz-cty { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); border-radius: 10px; padding: 9px 10px; font: 500 14px var(--font); cursor: pointer; min-height: 44px; }
.wz-cty:hover { border-color: var(--indigo); }
.wz-cty .cc { font: 700 11px var(--font); letter-spacing: .04em; color: var(--muted); background: var(--surface-2); border-radius: 5px; padding: 3px 5px; flex: none; }
.wz-cty .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-cty small { color: var(--muted); font-size: 11.5px; }
.wz-cty em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .04em; }
.wz-cty.on { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); background: color-mix(in srgb, var(--indigo) 7%, var(--surface)); }
.wz-cty.on .cc { background: var(--indigo); color: var(--on-accent); }
.wz-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.linkish { border: 0; background: none; color: var(--indigo); font: inherit; font-weight: 600; padding: 0; cursor: pointer; text-decoration: underline; }

/* Out of 10. */
.wz-ten { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wz-ten button { width: 38px; height: 44px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; padding: 0; }
.wz-ten button:hover { background: var(--surface-2); }
.wz-ten button .wz-ic { width: 28px; height: 28px; stroke: var(--line-2); stroke-width: 1.8; margin: 0; }
.wz-ten button.on .wz-ic { stroke: var(--indigo); fill: color-mix(in srgb, var(--indigo) 16%, transparent); }
.wz-tenlabel { margin-left: 10px; font-size: 14px; color: var(--muted); }
.wz-tenlabel b { color: var(--fg); }

/* Budget. */
.wz-amount { margin: 0 0 18px; font-size: 15px; color: var(--muted); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wz-amount b { font: 800 34px var(--head); color: var(--fg); letter-spacing: -.01em; }
.wz-range { position: relative; padding-bottom: 44px; margin-bottom: 6px; }
.wz-range input[type=range] { width: 100%; padding: 0; border: 0; accent-color: var(--indigo); height: 28px; background: transparent; }
.wz-marks span { position: absolute; top: 34px; transform: translateX(-50%); font-size: 11.5px; line-height: 1.3; color: var(--muted); text-align: center; white-space: nowrap; }
.wz-marks span::before { content: ""; position: absolute; top: -10px; left: 50%; width: 1px; height: 6px; background: var(--line-2); }
.wz-marks span:first-child { transform: translateX(-20%); }
.wz-marks span:last-child { transform: translateX(-80%); }
.wz-budget .row { margin-top: 14px; }

/* "Add more detail" */
.wz-more { margin-top: 10px; }
.wz-more > summary { cursor: pointer; font-weight: 600; color: var(--indigo); font-size: 14px; padding: 6px 0; }
.wz-more > summary .muted { font-weight: 500; }
.wz-more[open] > summary { margin-bottom: 12px; }

/* The live plan. */
.wz-plan { position: sticky; top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.wz-phead h2 { font: 800 19px var(--head); margin: 6px 0 2px; overflow-wrap: anywhere; }
.wz-phead p { margin: 0; font-size: 13px; }
.wz-plabel { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); display: inline-flex; align-items: center; gap: 6px; }
.wz-plabel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: wz-live 2s ease-in-out infinite; }
@keyframes wz-live { 50% { opacity: .35; } }
.wz-pmeter { height: 3px; background: var(--surface-2); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.wz-pmeter i { display: block; height: 100%; background: var(--coral); transition: width .4s ease; }
.wz-psec { border-top: 1px solid var(--line); padding: 13px 0 2px; margin-top: 13px; border-radius: 6px; }
.wz-psec h3 { font: 650 12px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.wz-psec.fresh { animation: wz-fresh 1.1s ease; }
@keyframes wz-fresh { 0% { background: color-mix(in srgb, var(--coral) 14%, transparent); } 100% { background: transparent; } }
.wz-pbig { font: 800 20px var(--head); margin: 0 0 4px; overflow-wrap: anywhere; }
.wz-pbig small { font: 500 13px var(--font); color: var(--muted); }
.wz-psmall { font-size: 12.5px; color: var(--muted); margin: 4px 0 6px; }
.wz-ghost { margin: 0; display: grid; gap: 7px; }
.wz-ghost span { display: block; height: 9px; border-radius: 5px; background: var(--surface-2); width: 80%; }
.wz-ghost span + span { width: 55%; }
.wz-ghost em { font-style: normal; font-size: 12px; color: var(--muted); }
.wz-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wz-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 38px; gap: 8px; align-items: center; font-size: 13px; }
.wz-bars .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wz-bars .br { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.wz-bars .br i { display: block; height: 100%; background: var(--indigo); border-radius: 4px; transition: width .4s ease; }
.wz-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.wz-groups { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.wz-groups li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 12.5px; }
.wz-groups i { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); align-self: center; }
.wz-groups li.later i { background: transparent; border: 1.5px dashed var(--line-2); }
.wz-groups li.later { color: var(--muted); }
.wz-groups small { color: var(--muted); white-space: nowrap; }
.wz-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.wz-nums div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.wz-nums dt { font-size: 11.5px; color: var(--muted); }
.wz-nums dd { margin: 0; font: 800 17px var(--head); font-variant-numeric: tabular-nums; }
.wz-nums.big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wz-nums.big dd { font-size: 20px; }
.wz-verdict { margin: 10px 0 0; font-size: 13px; }
.wz-verdict b { display: inline-block; border-radius: 999px; padding: 1px 9px; margin-right: 4px; font-size: 12px; }
.wz-verdict.good b { background: var(--good-soft); color: var(--good); }
.wz-verdict.warn b { background: var(--warn-soft); color: var(--warn); }
.wz-verdict.bad b { background: var(--bad-soft); color: var(--bad); }
.wz-mini { display: none; }

@media (max-width: 980px) {
  .wz { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wz-plan { position: static; }
  .wz-mini { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
  .wz-mini span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
  .wz-mini a { font-weight: 600; white-space: nowrap; }
}
@media (max-width: 620px) {
  .wz-q { margin-top: 22px; }
  .wz-title { font-size: 24px; }
  .wz-cards.c2, .wz-cards.c3 { grid-template-columns: minmax(0, 1fr); }
  .wz-progress ol { font-size: 11px; }
  .wz-progress li:not(.on) { flex: .6; }
  .wz-nums.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wz-clist { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
  .wz-enter { display: none; }
  .wz-ten button { width: 28px; }
  .wz-ten button .wz-ic { width: 24px; height: 24px; }
  .wz-tenlabel { width: 100%; margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wz-screen, .wz-chip, .wz-psec.fresh, .wz-err.shake, .wz-plabel::before { animation: none; }
  .wz-bar i, .wz-bars .br i, .wz-pmeter i { transition: none; }
}
