/* wizard: the search builder (public/js/wizard.js). Tokens only; see docs/design-system.md. */

/* ---------- dialog ---------- */
dialog.sheet.wz-dlg {
  width: min(1080px, calc(100vw - 48px));
  height: min(940px, calc(100vh - 48px));
  max-height: none;
  overflow: hidden;
}
dialog.sheet.wz-dlg.wz-start { width: min(760px, calc(100vw - 48px)); height: fit-content; max-height: calc(100vh - 48px); overflow: auto; }

.wz-dlg .wz-top { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) var(--s3) var(--s2) var(--s5); border-bottom: 1px solid var(--border); min-width: 0; }
.wz-dlg .wz-top h2 { font-size: var(--fs-md); white-space: nowrap; }
.wz-top-name { min-width: 0; color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-top-name::before { content: '·'; margin-right: var(--s3); color: var(--faint); }
.wz-of { display: none; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- start: templates ---------- */
.wz-start-body { display: grid; gap: var(--s3); padding: var(--s5) var(--s6) var(--s6); }
.wz-start-q { display: grid; gap: 2px; margin-bottom: var(--s1); }
.wz-start-q h3 { font-size: var(--fs-md); }
.wz-start-q p { color: var(--muted); font-size: var(--fs-sm); }
/* Copart / IAAI choice above the templates */
.wz-auction { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s1); }
.wz-auction-l { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.wz-scratch {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s4); width: 100%;
  padding: var(--s4) var(--s5); border: 1px solid var(--teal); border-radius: var(--r-lg); background: var(--teal-soft); color: var(--text); text-align: left;
  transition: background var(--ease), border-color var(--ease);
}
.wz-scratch:hover { border-color: var(--teal-hover); }
.wz-scratch-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--teal); color: #fff; }
.wz-scratch-i svg { width: 20px; height: 20px; }
.wz-scratch-t { display: grid; gap: 2px; min-width: 0; }
.wz-scratch-t b { font-size: 15px; }
.wz-scratch-t span { color: var(--text-2); font-size: var(--fs-sm); }
.wz-scratch-a { color: var(--teal-text); }
.wz-scratch-a svg { width: 18px; height: 18px; display: block; transition: transform var(--ease); }
.wz-scratch:hover .wz-scratch-a svg { transform: translateX(2px); }
.wz-start-sep { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.wz-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.wz-tpl {
  display: flex; align-items: flex-start; gap: var(--s3); min-width: 0; padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); color: var(--text); text-align: left; transition: border-color var(--ease), background var(--ease);
}
.wz-tpl:hover { border-color: var(--border-strong); background: var(--surface-2); }
.wz-tpl[aria-pressed='true'] { border-color: var(--teal); }
.wz-tpl > svg { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.wz-tpl:hover > svg { color: var(--teal-text); }
.wz-tpl b { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.wz-tpl span span { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }

/* ---------- builder layout ---------- */
.wz {
  position: relative; display: grid; height: 100%; min-height: 0;
  grid-template-columns: 212px minmax(0, 1fr) 316px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: 'top top top' 'nav main sum';
}
.wz > .wz-top { grid-area: top; }

/* Section list */
.wz-nav { grid-area: nav; position: relative; display: flex; flex-direction: column; gap: var(--s3); min-height: 0; padding: var(--s3); border-right: 1px solid var(--border); overflow-y: auto; }
.wz-steps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.wz-step {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 8px 8px; border: 0; border-radius: var(--r);
  background: none; color: var(--text-2); text-align: left; transition: background var(--ease), color var(--ease);
}
.wz-step:hover { background: var(--surface-3); color: var(--text); }
.wz-step.cur { background: var(--surface-3); color: var(--text); }
.wz-mark {
  display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--border-strong); border-radius: 50%;
  background: var(--surface); color: var(--muted); font: 600 11px/1 var(--font); font-variant-numeric: tabular-nums;
}
.wz-mark svg { width: 12px; height: 12px; }
.wz-step.cur .wz-mark { border-color: var(--teal); background: var(--teal); color: #fff; }
.wz-step.done .wz-mark { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-text); }
.wz-step.bad .wz-mark { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.wz-step-t { display: grid; gap: 1px; min-width: 0; }
.wz-step-t b { font-size: var(--fs-sm); font-weight: 500; line-height: 1.45; }
.wz-step.cur .wz-step-t b { font-weight: 600; }
.wz-step-t span { color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-tplnote { display: grid; gap: 2px; margin-top: auto; padding: var(--s3) 8px 4px; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted); }
.wz-tplnote span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wz-tplnote .linklike { justify-self: start; font-size: var(--fs-xs); }

/* Form */
.wz-main { grid-area: main; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.wz-scroll { min-height: 0; overflow-y: auto; padding: var(--s5) var(--s8) var(--s8); overscroll-behavior: contain; }
.wz-head { display: grid; gap: 2px; margin-bottom: var(--s5); }
.wz-head h3 { font-size: var(--fs-md); line-height: 1.4; }
.wz-head h3:focus, .wz-head h3:focus-visible { outline: none; box-shadow: none; }
.wz-head p { color: var(--muted); font-size: var(--fs-sm); }
.wz-form { display: grid; gap: var(--s5); max-width: 620px; }
.wz-field { display: grid; gap: var(--s2); min-width: 0; }
.wz-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s2); font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.wz-label .hint { font-size: var(--fs-xs); }
.wz-err { margin: 0; color: var(--danger); font-size: var(--fs-xs); line-height: 1.45; }
.wz-field.has-error input:not([type='checkbox']), .wz-phonerow.has-error input { border-color: var(--danger); }
.wz-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.wz-note { margin-top: 2px; }
.wz-note a, .wz-toggle a, .limit-note a { font-weight: 500; white-space: nowrap; }
.wz-sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding-left: 42px; }

.wz-range { display: grid; grid-template-columns: minmax(0, 160px) auto minmax(0, 160px); justify-content: start; align-items: center; gap: var(--s2); }
.wz-dash { color: var(--faint); text-align: center; }
.wz-times { grid-template-columns: minmax(0, 130px) auto minmax(0, 130px); padding-left: 42px; }
.wz-money { position: relative; display: block; min-width: 0; }
.wz-money > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: var(--fs); }
.wz-money input { padding-left: 24px; }
.wz-form input[type='number'] { font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.wz-form input[type='number']::-webkit-inner-spin-button, .wz-form input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wz-seg { justify-self: start; flex-wrap: wrap; }
.wz-form input[type='time'] {
  width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--surface); color: var(--text); font: 400 var(--fs) / 1.4 var(--font); font-variant-numeric: tabular-nums; box-shadow: var(--shadow-xs);
}
.wz-form input[type='time']:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }
.pk-words .pk-caret { display: none; }
.pk-words .pk-box { padding-right: 4px; }
.wz-chips { gap: 6px; }

.wz-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); min-height: 32px; }
.wz-toggle .switch { align-items: flex-start; }
.wz-toggle .switch .track { margin-top: 1px; }
.wz-toggle-t { display: grid; gap: 1px; font-size: var(--fs); line-height: 1.45; }
.wz-toggle .switch input:disabled + .track { opacity: 0.5; }
.wz-toggle .switch:has(input:disabled) { cursor: not-allowed; color: var(--muted); }

.wz-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s3); font-size: var(--fs-sm); }
.wz-quick > span { color: var(--muted); font-size: var(--fs-xs); }
.wz-quick button { border: 0; background: none; padding: 2px 0; color: var(--teal-text); font: 500 var(--fs-sm) / 1.4 var(--font); border-radius: 4px; }
.wz-quick button:hover { text-decoration: underline; text-underline-offset: 2px; }

/* More filters */
.wz-adv { border-top: 1px solid var(--border); }
.wz-adv > summary {
  display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: var(--s2) 0; list-style: none; cursor: pointer;
  color: var(--text); font-size: var(--fs-sm); font-weight: 500; border-radius: var(--r-sm);
}
.wz-adv > summary::-webkit-details-marker { display: none; }
.wz-adv > summary:hover .wz-adv-t { color: var(--teal-text); }
.wz-adv-n { color: var(--teal-text); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.wz-adv-c { margin-left: auto; color: var(--muted); display: grid; }
.wz-adv-c svg { width: 16px; height: 16px; transition: transform var(--ease); }
.wz-adv[open] .wz-adv-c svg { transform: rotate(180deg); }
.wz-adv-body { display: grid; gap: var(--s5); padding: var(--s2) 0 var(--s2); }

/* Phones */
.wz-phones { display: grid; gap: var(--s2); }
.wz-phonerow { display: grid; gap: 4px; }
.wz-phone { display: flex; align-items: center; gap: var(--s1); max-width: 340px; position: relative; }
.wz-cc { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: var(--fs); font-variant-numeric: tabular-nums; pointer-events: none; }
.wz-phone input { padding-left: 52px; font-variant-numeric: tabular-nums; }
.wz-add { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: var(--fs-sm); padding: 4px 0; }
.wz-add svg { width: 14px; height: 14px; }
.wz-field .limit-note { align-items: flex-start; flex-wrap: wrap; }

/* Pager under the form (desktop) */
.wz-pager { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s8); border-top: 1px solid var(--border); min-height: 61px; }
.wz-pager .btn svg { width: 16px; height: 16px; }

/* ---------- picker: searchable multi-select ---------- */
.pk { display: grid; min-width: 0; }
.pk-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 36px; padding: 3px 34px 3px 4px; position: relative;
  border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-xs); cursor: text;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.pk-box:hover { border-color: var(--faint); }
.pk-box:focus-within { border-color: var(--teal); box-shadow: var(--ring); }
.pk-tags { display: contents; }
.pk-box input.pk-input { flex: 1 1 140px; width: auto; min-width: 96px; height: 28px; padding: 0 8px; border: 0; background: transparent; box-shadow: none; }
.pk-box input.pk-input:focus { box-shadow: none; }
.pk-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; color: var(--muted); cursor: pointer; }
.pk-caret svg { width: 16px; height: 16px; transition: transform var(--ease); }
.pk.open .pk-caret svg { transform: rotate(180deg); }
.pk-tag {
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 26px; padding: 0 2px 0 8px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); font-weight: 500;
}
.pk-tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-tag button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--muted); flex: none; }
.pk-tag button:hover { background: var(--border); color: var(--text); }
.pk-tag svg { width: 12px; height: 12px; }
.pk-list { position: relative; max-height: 264px; overflow-y: auto; margin-top: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overscroll-behavior: contain; }
.pk-list[hidden] { display: none; }
.pk-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 34px; padding: 4px 8px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs); color: var(--text); }
.pk-opt:hover { background: var(--surface-2); }
.pk-opt.active { background: var(--surface-3); }
.pk-check { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: #fff; }
.pk-check svg { width: 12px; height: 12px; }
.pk-opt[aria-selected='true'] .pk-check { border-color: var(--teal); background: var(--teal); }
.pk-opt.add .pk-check { border: 0; background: none; color: var(--teal-text); }
.pk-opt.add .pk-check svg { width: 14px; height: 14px; }
.pk-opt.add { color: var(--teal-text); font-weight: 500; }
.pk-text { display: flex; gap: var(--s2); min-width: 0; align-items: baseline; }
.pk-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-code { min-width: 24px; font-weight: 600; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.pk-count { color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.pk-empty { padding: 10px 8px; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- summary ---------- */
.wz-sum { grid-area: sum; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; border-left: 1px solid var(--border); background: var(--surface-2); }
.wz-sum-top { display: none; grid-row: 1; }
.wz-sum-scroll { grid-row: 2; }
.wz-sum-foot { grid-row: 3; }
.wz-sum-scroll { display: grid; align-content: start; gap: var(--s5); min-height: 0; overflow-y: auto; padding: var(--s5); overscroll-behavior: contain; }
.wz-kicker { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.wz-name { margin-top: 2px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.wz-rows { display: grid; margin-top: var(--s3); border-top: 1px solid var(--border); }
.wz-row { display: grid; gap: 1px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); text-align: left; border-radius: 0; }
.wz-row:focus-visible { border-radius: var(--r-sm); }
.wz-row-k { color: var(--muted); font-size: var(--fs-xs); }
.wz-row-v { font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
.wz-row:hover .wz-row-v { color: var(--teal-text); }

.wz-live { display: grid; gap: var(--s2); }
.wz-count { display: grid; gap: 0; }
.wz-count-n { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--text); transition: opacity var(--ease); }
.wz-count.is-loading .wz-count-n { opacity: 0.45; }
.wz-count-l { display: flex; align-items: center; gap: var(--s2); color: var(--text-2); font-size: var(--fs-sm); }
.wz-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--text-2); animation: spin 0.7s linear infinite; flex: none; }
.wz-skel-n { display: block; width: 72px; height: 26px; margin-bottom: 4px; }
.wz-skel-row { display: block; height: 48px; }
.wz-live-msg { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); }
.wz-live-msg.bad { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }
.wz-live-msg .linklike { justify-self: start; font-size: var(--fs-sm); }
.wz-live > .wz-kicker { margin-top: var(--s2); }
.wz-cars { display: grid; gap: 2px; margin: 0 -6px; }
.wz-car { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 6px; border-radius: var(--r); color: var(--text); text-decoration: none; transition: background var(--ease); }
.wz-car:hover { background: var(--surface-3); text-decoration: none; }
.wz-car-img { display: grid; place-items: center; width: 56px; height: 42px; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-3); color: var(--faint); }
.wz-car-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wz-car-img svg { width: 18px; height: 18px; }
.wz-car-t { display: grid; min-width: 0; }
.wz-car-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-car-t b { font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.wz-car-t span { color: var(--muted); font-size: var(--fs-xs); }
.wz-car-p { display: grid; justify-items: end; text-align: right; }
.wz-car-p b { font-size: var(--fs-sm); font-weight: 600; }
.wz-car-p span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.wz-car-p .good { color: var(--success); }
.wz-car-p .ok { color: var(--warning); }
.wz-car-p .bad { color: var(--danger); }
.wz-plan { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }
.wz-sum-foot { display: grid; gap: var(--s2); padding: var(--s3) var(--s5) var(--s4); border-top: 1px solid var(--border); background: var(--surface-2); }
.wz-sum-foot .btn { height: 40px; }

/* Bottom bar (phones and tablets) */
.wz-bar { display: none; }

/* ---------- tablets: summary opens from the bottom bar ---------- */
@media (max-width: 1099px) {
  dialog.sheet.wz-dlg { width: min(900px, calc(100vw - 32px)); height: calc(100vh - 32px); }
  .wz { grid-template-columns: 196px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: 'top top' 'nav main' 'bar bar'; }
  .wz-pager { display: none; }
  .wz-scroll { padding: var(--s5) var(--s6) var(--s6); }
  .wz-sum {
    grid-area: auto; grid-column: 1 / -1; grid-row: 2; justify-self: end; z-index: 5; width: min(380px, 100%);
    box-shadow: var(--shadow-pop); visibility: hidden; opacity: 0; transform: translateY(8px);
    transition: opacity var(--ease-pop), transform var(--ease-pop), visibility 0s linear 180ms;
  }
  .wz.sum-open .wz-sum { visibility: visible; opacity: 1; transform: none; transition: opacity var(--ease-pop), transform var(--ease-pop); }
  .wz-sum-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s2) var(--s2) var(--s5); border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
  .wz-bar { grid-area: bar; display: flex; align-items: center; gap: var(--s2); padding: 10px var(--s3) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
  .wz-bar > .btn { height: 44px; flex: none; }
  .wz-bar-count {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s2); height: 44px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r);
    background: var(--surface-2); color: var(--text); text-align: left;
  }
  .wz-bar-count:hover { border-color: var(--border-strong); }
  .wz-bar-thumbs { display: flex; flex: none; }
  .wz-bar-thumbs img { width: 30px; height: 30px; border-radius: var(--r-sm); object-fit: cover; border: 2px solid var(--surface-2); background: var(--surface-3); }
  .wz-bar-thumbs img + img { margin-left: -10px; }
  .wz-bar-n { font-weight: 600; font-size: 15px; transition: opacity var(--ease); }
  .wz-bar-n.is-loading { opacity: 0.45; }
  .wz-bar-l { min-width: 0; color: var(--text-2); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wz-bar-c { margin-left: auto; display: grid; color: var(--muted); }
  .wz-bar-c svg { width: 16px; height: 16px; transform: rotate(180deg); transition: transform var(--ease); }
  .wz.sum-open .wz-bar-c svg { transform: none; }
}

/* ---------- phones: full screen ---------- */
@media (max-width: 760px) {
  dialog.sheet.wz-dlg, dialog.sheet.wz-dlg.wz-start {
    width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; inset: 0; border: 0; border-radius: 0;
  }
  dialog.sheet.wz-dlg.wz-start { overflow-y: auto; }
  .wz-dlg .wz-top { min-height: 52px; padding: 6px var(--s2) 6px var(--s4); }
  .wz-top-name { display: none; }
  .wz-of { display: inline; }
  .wz-start-body { padding: var(--s4) var(--s4) calc(var(--s6) + env(safe-area-inset-bottom)); }
  .wz-scratch { padding: var(--s4); gap: var(--s3); }
  .wz-tpls { grid-template-columns: 1fr; }
  .wz-tpl { min-height: 56px; }

  .wz { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: 'top' 'nav' 'main' 'bar'; }
  .wz-nav { flex-direction: row; gap: 0; padding: 6px var(--s2); border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .wz-nav::-webkit-scrollbar { display: none; }
  .wz-steps { display: flex; gap: 2px; }
  .wz-step { display: flex; align-items: center; gap: 6px; width: auto; min-height: 40px; padding: 0 10px 0 6px; white-space: nowrap; }
  .wz-mark { margin-top: 0; }
  .wz-step-t span { display: none; }
  .wz-tplnote { display: none; }
  .wz-scroll { padding: var(--s4) var(--s4) var(--s6); }
  .wz-head { margin-bottom: var(--s4); }
  .wz-form { gap: var(--s5); }
  .wz-pair { grid-template-columns: 1fr; }
  .wz-range { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .wz-times { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-left: 0; }
  .wz-sub { padding-left: 0; }
  .wz-phone { max-width: none; }
  .wz-form .seg { flex-wrap: wrap; }
  .wz-form .seg > button { height: 36px; flex: 1 0 auto; justify-content: center; }
  .wz-form .chip { height: 36px; padding: 0 12px; }
  .wz-form .pk-box { min-height: 44px; }
  .wz-form .pk-box input.pk-input { height: 36px; }
  .pk-tag { height: 32px; }
  .pk-tag button { width: 28px; height: 28px; }
  .pk-opt { min-height: 44px; }
  .pk-list { max-height: 240px; }
  .wz-quick { gap: 2px var(--s4); }
  .wz-quick button { padding: 6px 0; }
  .wz-toggle { min-height: 40px; }
  .wz-add { padding: 8px 0; }
  .wz-sum { grid-row: 2 / 4; width: 100%; border-left: 0; box-shadow: none; }
  .wz-sum-scroll { padding: var(--s4); }
  .wz-sum-foot { padding: var(--s3) var(--s4); }
  .wz-row { min-height: 44px; }
  .wz-sum-top .btn { width: 40px; height: 40px; }
}
@media (max-width: 430px) {
  .wz-bar-thumbs { display: none; }
}
@media (max-width: 1099px) {
  /* With the summary open, its own button is the action: the bar only closes it. */
  .wz.sum-open .wz-bar > .btn { display: none; }
}
.wz-cars.is-loading { opacity: 0.45; transition: opacity var(--ease); }
