/* wearfits.me — the one-screen model sheet (wizard.js) and its height/weight control (body-input.js).
   Mobile first: a bottom sheet at 390 px; layout.css centres it from 900 px. */
.wizard-sheet .wiz-head { display: flex; justify-content: flex-end; margin-bottom: 0; }
.wizard-sheet #selfie-h { margin-top: var(--s2); }
.wizard-sheet #wiz-incoming:not([hidden]) + #selfie-h { margin-top: var(--s3); }
.wizard-sheet .wiz-plate { min-height: 132px; }
.wizard-sheet #twin-create { width: 100%; }
.wiz-legal summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; cursor: pointer; }
.wiz-legal summary::-webkit-details-marker { display: none; }

/* ---------- height / weight: number + slider ---------- */
.measure { --fill: 0%; display: grid; gap: var(--s1); }
.measure-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.measure-value { display: inline-flex; align-items: baseline; gap: var(--s1); border-bottom: 2px solid var(--ink); }
.measure-num {
  width: 3.2ch; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 30px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums;
}
.measure-num:focus { outline: none; }
.measure-value:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.measure-num::placeholder { color: var(--muted); opacity: 0.6; }
.measure-unit { font-size: 15px; font-weight: 700; color: var(--muted); }
.measure-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.measure-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.measure-range:focus { outline: none; }
.measure-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--tone-deep) var(--fill));
}
.measure-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--tone-deep); }
.measure-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.measure-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--ground); box-shadow: 0 0 0 2px var(--ink);
}
.measure-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--ground); box-shadow: 0 0 0 2px var(--ink);
}
.measure-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--tone-deep); }
/* Unset: a dashed, hollow thumb and no fill, so a value we did not ask for never looks chosen. */
.measure.is-unset .measure-range::-webkit-slider-thumb { background: var(--ground); border: 2px dashed var(--muted); box-shadow: none; }
.measure.is-unset .measure-range::-moz-range-thumb { background: var(--ground); border: 2px dashed var(--muted); box-shadow: none; }
.measure.is-unset .measure-range::-moz-range-progress { background: transparent; }
