/* (#390) the setup wizard header: brand, progress bar + "N of M", EN/ES, Close. Shared by /owner/setup/ and /start/ so sign-up reads as one wizard. */
.wzh{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:12px 16px;padding:16px clamp(16px,4vw,40px);position:sticky;top:0;z-index:5;background:var(--c-bg)}
.wzmid{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.wzx{width:44px;height:44px;border-radius:12px;border:1.5px solid var(--c-border-strong);background:var(--c-surface);color:var(--c-text);font:700 28px/1 var(--font-body);cursor:pointer;display:grid;place-items:center}
.wzx[hidden]{display:none} /* (#253) hidden on the password screen while the account is being made */
.wzx:hover{border-color:var(--c-primary)}.wzx:focus-visible{outline:3px solid var(--c-primary);outline-offset:2px}.wzx[aria-busy=true]{color:transparent;position:relative}.wzx[aria-busy=true]::after{content:'';position:absolute;width:18px;height:18px;border:2.5px solid var(--c-primary);border-right-color:transparent;border-radius:50%;animation:wzsp .7s linear infinite}
.wzbar{position:absolute;left:0;right:0;bottom:-1px;height:4px;background:var(--c-border);overflow:hidden;pointer-events:none}.wzbar i{display:block;height:100%;width:0;background:var(--c-primary);border-radius:0 99px 99px 0;transition:width .32s cubic-bezier(.32,.72,0,1)} /* (#429) fills in step with the screen slide. (#465) edge to edge along the header's bottom edge, on every width */
.wzn{font-size:13px;color:var(--c-muted);font-variant-numeric:tabular-nums;min-width:52px;text-align:right}
.wzh .wzbrand{flex:none;margin-right:14px;max-width:44vw}.wzh .wzbrand .prb-sub{font-size:11px}@media (max-width:520px){.wzh .wzbrand .prb-sub{display:none}}
@media (max-width:600px){.wzh{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:12px 16px}.wzh .nslogo{display:none}}
/* (#317) phones: one row. (#465) the bar runs edge to edge under the header, so the shop name (or logo), "N of M", EN | ES and × fit the top row at 320–430px */
@media (max-width:600px){.wzh{grid-template-columns:minmax(0,1fr) auto auto}.wzh .wzbrand,.wzh .nslogo{grid-column:1;grid-row:1;min-width:0}.wzh .wzbrand{max-width:none;margin-right:0;overflow:hidden}.wzh .wzmid{grid-column:2;grid-row:1}.wzh .wzend{grid-column:3;grid-row:1}.wzn{min-width:0}}
/* (#253 EN/ES) the language switch next to Close; the wizard follows the owner's own language. (#465) one EN | ES pill, the current language filled in.
   Inside the PeliFlo app the app's own EN/ES pill is the one switch, so this one stays hidden there. */
.wzend{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.wzlang{min-width:44px;height:44px;padding:0 12px;border-radius:12px;border:1.5px solid var(--c-border-strong);background:var(--c-surface);color:var(--c-text);font:700 14px/1 var(--font-body);letter-spacing:.04em;cursor:pointer;transition:border-color .15s,opacity .2s}
.wzlang[hidden]{display:none}.wzlang:hover{border-color:var(--c-primary)}.wzlang:focus-visible{outline:3px solid var(--c-primary);outline-offset:2px}
.wzlang[aria-busy=true]{opacity:.55}
.wzlang.pill{display:inline-flex;align-items:center;gap:0;padding:3px;border-radius:99px}.wzlang.pill>span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:34px;padding:0 8px;border-radius:99px;color:var(--c-muted);transition:background .2s,color .2s}.wzlang.pill>span.on{background:var(--c-primary);color:var(--c-on-primary,#fff)}

/* In the native app the shell already has a logo (and EN/ES on sign-up). Don't draw a second one.
   Hiding the logo must not let the remaining grid items shift (or × sits in the 1fr column, not on the right).
   When every control in .wzend is hidden (the in-app EN/ES pill, or Close on the password screen),
   drop that column so the right-side item — "N of M", or × when it shows — lines up with the
   cards' right edge, the same inset as the logo on the left. */
html.pf-app .wzh .nslogo,html.in-app .wzh .nslogo,html.in-app-staff .wzh .nslogo,html.pr-native .wzh .nslogo{display:none}
html.pf-app .wzh,html.in-app .wzh,html.in-app-staff .wzh,html.pr-native .wzh{grid-template-columns:auto minmax(0,1fr) auto}
html.pf-app .wzh .wzbrand,html.in-app .wzh .wzbrand,html.in-app-staff .wzh .wzbrand,html.pr-native .wzh .wzbrand{grid-column:1;grid-row:1}
html.pf-app .wzh .wzmid,html.in-app .wzh .wzmid,html.in-app-staff .wzh .wzmid,html.pr-native .wzh .wzmid{grid-column:2;grid-row:1}
html.pf-app .wzh .wzend,html.in-app .wzh .wzend,html.in-app-staff .wzh .wzend,html.pr-native .wzh .wzend{grid-column:3;grid-row:1}
.wzend:not(:has(> :not([hidden]))){display:none}
.wzh:not(:has(.wzend > :not([hidden]))){grid-template-columns:auto minmax(0,1fr)}
.wzh:not(:has(.wzend > :not([hidden]))) .wzmid{grid-column:2;grid-row:1}
@media (max-width:600px){
  html.pf-app .wzh,html.in-app .wzh,html.in-app-staff .wzh,html.pr-native .wzh{grid-template-columns:minmax(0,1fr) auto auto}
  html.pf-app .wzh .wzbrand,html.in-app .wzh .wzbrand,html.in-app-staff .wzh .wzbrand,html.pr-native .wzh .wzbrand{grid-column:1}
  html.pf-app .wzh .wzmid,html.in-app .wzh .wzmid,html.in-app-staff .wzh .wzmid,html.pr-native .wzh .wzmid{grid-column:2}
  html.pf-app .wzh .wzend,html.in-app .wzh .wzend,html.in-app-staff .wzh .wzend,html.pr-native .wzh .wzend{grid-column:3}
  html.pf-app .wzh:not(:has(.wzend > :not([hidden]))),html.in-app .wzh:not(:has(.wzend > :not([hidden]))),html.in-app-staff .wzh:not(:has(.wzend > :not([hidden]))),html.pr-native .wzh:not(:has(.wzend > :not([hidden]))),
  .wzh:not(:has(.wzend > :not([hidden]))){grid-template-columns:minmax(0,1fr) auto}
}
