/* =========================================================
   Portal 2.0 · components (design system v2)
   Each component is built once, here, and used everywhere. No
   colour values (tokens only), no uppercase, no gradients except
   the coverage hatching tokens, 12px type floor.

   Authority: docs/authorities/portal-2-design-system-v2.md,
   "components", "layout rules", "mobile", "accessibility".
   Behaviour lives in js/system/v2/components.js (window.ZealV2).
   ========================================================= */

/* ── buttons: primary, secondary, quiet, destructive ─────────
   primary: orange fill, ink text, one per region
   secondary: outlined        destructive: red text, confirms first */
.z .z-btn {
  height: var(--z-control); min-width: var(--z-control);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--z-s-2);
  padding: 0 var(--z-s-3); border-radius: var(--z-r);
  border: 1px solid var(--z-line-2); background: var(--z-bg-raised); color: var(--z-text);
  font-family: var(--z-f-std); font-weight: 500; font-size: var(--z-t-small);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.z .z-btn:hover { background: var(--z-bg-hover); }
.z .z-btn--primary { background: var(--z-accent); border-color: var(--z-accent); color: var(--z-on-accent); font-weight: 600; }
.z .z-btn--primary:hover { background: var(--z-orange-press); border-color: var(--z-orange-press); color: var(--z-on-accent); }
.z .z-btn--quiet { background: transparent; border-color: transparent; color: var(--z-text-2); }
.z .z-btn--quiet:hover { background: var(--z-bg-hover); color: var(--z-text); }
.z .z-btn--destructive { color: var(--z-bad); }
.z .z-btn--destructive:hover { background: var(--z-bad-soft); }
.z .z-btn--destructive.is-confirming { background: var(--z-bad-soft); border-color: var(--z-bad); }
.z .z-btn[disabled], .z .z-btn[aria-disabled="true"] { opacity: 1; color: var(--z-text-3); background: var(--z-bg-sunk); border-color: var(--z-line); cursor: default; }
.z .z-btn kbd { margin-left: 2px; }
.z .z-btn-row { display: flex; gap: var(--z-s-2); align-items: center; flex-wrap: wrap; }

/* ── status: a dot and a word ──────────────────────────────── */
.z .z-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--z-t-small); font-weight: 500; color: var(--z-text);
  white-space: nowrap; line-height: 1.2;
}
.z .z-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--z-text-3); flex: none; }
.z .z-status--ok::before { background: var(--z-ok); }
.z .z-status--warn::before { background: var(--z-warn); }
.z .z-status--bad::before { background: var(--z-bad); }
.z .z-status--info::before { background: var(--z-info); }
.z .z-status--hollow::before { background: transparent; border: 1.5px solid var(--z-text-3); width: 7px; height: 7px; }
/* absence is private: time off, leave and absence are neutral text, never red */
.z .z-status--absent { color: var(--z-text-2); }
.z .z-status--absent::before { background: transparent; border: 1.5px solid var(--z-text-3); width: 7px; height: 7px; }

/* ── the one pill a row may carry, and the pencilled chip ──── */
.z .z-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: var(--z-r); border: 1px solid var(--z-line-2);
  font-family: var(--z-f-cd); font-weight: 600; font-size: var(--z-t-label); letter-spacing: 0.03em;
  background: var(--z-bg-sunk); color: var(--z-text-2); white-space: nowrap; line-height: 1;
}
/* the pencilled chip: the hatch is a swatch beside the word, so the
   word always sits on a solid ground (hatching behind text defeats a
   contrast measurement, and orange stripes fail it in dark) */
.z .z-pill--pencil { background: var(--z-bg-raised); border-style: dashed; color: var(--z-text); }
.z .z-pill--pencil::before { content: ""; width: 10px; height: 12px; border-radius: 2px; background-image: var(--z-cov-pencil); flex: none; }
/* a pencilled booking with a clash: the coverage language's hatched orange,
   the one place orange is a state */
.z .z-pill--clash { background: var(--z-bg-raised); border-color: var(--z-accent); color: var(--z-text); }
.z .z-pill--clash::before { content: ""; width: 10px; height: 12px; border-radius: 2px; background-image: var(--z-cov-clash); flex: none; }
.z .z-pill--ok   { color: var(--z-ok);   background: var(--z-ok-soft);   border-color: transparent; }
.z .z-pill--warn { color: var(--z-warn); background: var(--z-warn-soft); border-color: transparent; }
.z .z-pill--bad  { color: var(--z-bad);  background: var(--z-bad-soft);  border-color: transparent; }
.z .z-pill--info { color: var(--z-info); background: var(--z-info-soft); border-color: transparent; }

/* ── coverage: solid booked, hatched pencilled, hatched orange clash, red open ── */
.z .z-cov { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: var(--z-r); font-size: var(--z-t-label); font-weight: 500; overflow: hidden; white-space: nowrap; }
.z .z-cov--booked { background: var(--z-ok-soft); color: var(--z-ok); }
.z .z-cov--pencil { background-color: var(--z-bg-raised); background-image: var(--z-cov-pencil); color: var(--z-text); border: 1px dashed var(--z-line-2); }
.z .z-cov--clash  { background-color: var(--z-bg-raised); background-image: var(--z-cov-clash); color: var(--z-text); border: 1px solid var(--z-accent); }
.z .z-cov--open   { background: transparent; color: var(--z-bad); border: 1px dashed var(--z-bad); }
/* words on a hatched bar sit on a solid label, never on the stripes */
.z .z-cov__label { background: var(--z-bg-raised); color: var(--z-text); padding: 1px 5px; border-radius: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ── states: loading, empty, error, denied, partial ─────────
   a failed load is never shown as empty; denied says who can
   grant access and never counts what is hidden */
.z .z-region { border: 1px solid var(--z-line); border-radius: var(--z-r); background: var(--z-bg-raised); display: flex; flex-direction: column; overflow: hidden; }
.z .z-region__head { display: flex; align-items: baseline; gap: var(--z-s-2); padding: var(--z-s-3) 14px 10px; border-bottom: 1px solid var(--z-line); }
.z .z-region__body { padding: 14px; display: flex; flex-direction: column; gap: var(--z-s-2); }
.z .z-region[data-state="error"] { border-color: var(--z-bad); }
.z .z-region[data-state="error"] .z-region__head { border-color: var(--z-bad); }
.z .z-region[data-state="partial"] { border-color: var(--z-warn); }
.z .z-region[data-state="denied"] { background: var(--z-bg-sunk); }
.z .z-state { display: flex; flex-direction: column; gap: var(--z-s-2); }
.z .z-state__title { font-weight: 600; font-size: var(--z-t-body); color: var(--z-text); }
.z .z-state__text { font-size: var(--z-t-small); color: var(--z-text-2); line-height: 1.5; }
.z .z-state__actions { display: flex; gap: var(--z-s-2); align-items: center; flex-wrap: wrap; margin-top: var(--z-s-1); }
.z .z-partial-note { display: flex; gap: var(--z-s-2); padding: 10px 14px; background: var(--z-warn-soft); color: var(--z-text); font-size: var(--z-t-label); line-height: 1.45; border-bottom: 1px solid var(--z-line); }
.z .z-skel-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 30px; gap: var(--z-s-2); align-items: center; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--z-line); }
.z .z-skel { display: block; height: 10px; border-radius: 3px; background: var(--z-bg-hover); }
.z .z-unknown { display: inline-block; width: 22px; height: 16px; border: 1px dashed var(--z-line-2); border-radius: 3px; vertical-align: middle; }

/* ── section heads: a title, a count, one link ───────────── */
.z .z-sechead { display: flex; align-items: baseline; gap: 10px; min-height: 26px; flex-wrap: wrap; }
.z .z-more { margin-left: auto; font-size: var(--z-t-small); color: var(--z-text-2); text-decoration: none; white-space: nowrap; }
.z .z-more:hover { color: var(--z-text); text-decoration: underline; text-underline-offset: 3px; }

/* ── tabs ──────────────────────────────────────────────────── */
.z .z-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--z-line); overflow-x: auto; scrollbar-width: none; }
.z .z-tabs::-webkit-scrollbar { display: none; }
.z .z-tab {
  height: 38px; padding: 0 var(--z-s-3); display: inline-flex; align-items: center; gap: 6px; flex: none;
  border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--z-text-2); font-family: var(--z-f-std); font-size: var(--z-t-small); font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.z .z-tab:hover { color: var(--z-text); }
.z .z-tab[aria-selected="true"], .z .z-tab[aria-current="page"] { color: var(--z-text); border-bottom-color: var(--z-text); }
.z .z-tab .z-count { margin-left: 2px; }

/* ── page head: two rows (title and actions; tabs or filters) ─ */
.z .z-head { display: flex; flex-direction: column; gap: var(--z-s-3); }
.z .z-head__row1 { display: flex; align-items: flex-end; gap: var(--z-s-4); flex-wrap: wrap; }
.z .z-head__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--z-s-1); }
.z .z-head__actions { display: flex; gap: var(--z-s-2); align-items: center; flex-wrap: wrap; }
.z .z-head__row2 { display: flex; align-items: center; gap: var(--z-s-3); flex-wrap: wrap; border-bottom: 1px solid var(--z-line); }
.z .z-head__row2 .z-tabs { border-bottom: 0; }
.z .z-head__filters { display: flex; align-items: center; gap: var(--z-s-2); margin-left: auto; flex-wrap: wrap; padding: var(--z-s-1) 0; }

/* ── the record header: layout rules 7 and 8 ──────────────
   eyebrow (type, reference, status, phase), title, one meta line,
   actions at the right, tabs directly beneath */
.z .z-rhead { display: flex; flex-direction: column; gap: var(--z-s-3); }
.z .z-rhead__top { display: flex; align-items: flex-start; gap: var(--z-s-5); }
.z .z-rhead__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.z .z-rhead__eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--z-f-cd); font-weight: 600; font-size: var(--z-t-label); letter-spacing: 0.03em; color: var(--z-text-3); }
.z .z-rhead__eyebrow .z-status { font-family: var(--z-f-std); letter-spacing: 0; }
.z .z-rhead__title { font-family: var(--z-f-ex); font-weight: 700; font-size: var(--z-t-h1); line-height: 1.08; letter-spacing: -0.035em; overflow-wrap: anywhere; }
/* the title with its rename control, for someone who can edit */
.z .z-rhead__titlerow { display: flex; align-items: baseline; gap: var(--z-s-2); flex-wrap: wrap; min-width: 0; }
.z .z-rhead__titlerow .z-rhead__title { min-width: 0; }
.z .z-rhead__rename { flex: none; }
.z .z-rhead__meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; column-gap: 0; font-size: var(--z-t-small); color: var(--z-text-2); }
/* the separator follows each fact, so a wrapped line ends on a dot
   rather than starting with one */
.z .z-rhead__meta > *:not(:last-child)::after { content: "·"; color: var(--z-text-3); padding: 0 var(--z-s-2); }
.z .z-rhead__actions { display: flex; gap: var(--z-s-2); align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; }

/* a fact: plain text for readers, its own control for editors */
.z .z-fact { position: relative; display: inline-flex; align-items: baseline; gap: 4px; }
.z .z-fact__label { color: var(--z-text-3); }
.z .z-fact__value { color: var(--z-text); }
.z .z-fact.is-unset .z-fact__value { color: var(--z-text-3); }
.z button.z-fact__control {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 4px; margin: -2px -4px;
  border: 1px solid transparent; border-radius: var(--z-r); background: transparent;
  color: inherit; font-size: inherit; text-align: left;
}
.z button.z-fact__control:hover { border-color: var(--z-line-2); background: var(--z-bg-hover); }
.z .z-fact.is-unset button.z-fact__control .z-fact__value { color: var(--z-accent-text); }

/* the inline fact editor: opens where the fact sits */
.z .z-factedit {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: -4px; min-width: 260px; max-width: min(360px, 90vw);
  background: var(--z-bg-raised); border: 1px solid var(--z-line-2); border-radius: 6px; box-shadow: var(--z-shadow);
  padding: var(--z-s-3); display: flex; flex-direction: column; gap: 10px;
}
.z .z-factedit__label { font-family: var(--z-f-cd); font-weight: 600; font-size: var(--z-t-label); letter-spacing: 0.03em; color: var(--z-text-3); }
.z .z-factedit__row { display: flex; gap: var(--z-s-2); align-items: center; justify-content: flex-end; }
.z .z-factedit__state { font-size: var(--z-t-label); color: var(--z-text-2); margin-right: auto; }
.z .z-factedit__state[data-state="failed"] { color: var(--z-bad); font-weight: 600; }
.z .z-factedit__state[data-state="saved"] { color: var(--z-ok); }

/* ── fields: input borders meet 3:1 (they use text-3, not a line) ── */
.z .z-input, .z .z-select, .z .z-textarea {
  width: 100%; height: var(--z-control); padding: 0 10px;
  border: 1px solid var(--z-text-3); border-radius: var(--z-r);
  background: var(--z-bg-raised); color: var(--z-text); font-size: var(--z-t-body);
}
.z .z-textarea { height: auto; min-height: 80px; padding: var(--z-s-2) 10px; resize: vertical; }
.z .z-input::placeholder { color: var(--z-text-3); opacity: 1; }
.z .z-field { display: flex; flex-direction: column; gap: 6px; }
.z .z-field__label { font-family: var(--z-f-cd); font-weight: 600; font-size: var(--z-t-label); letter-spacing: 0.03em; color: var(--z-text-2); }

/* ── the record layout and the related rail (layout rule 9) ──
   the rail drops below the main column when the main column would
   fall under 880px; ZealV2.RecordLayout measures and sets is-stacked */
.z .z-record { display: grid; grid-template-columns: minmax(0, 1fr) var(--z-related-w); align-items: start; gap: 0; }
.z .z-record__main { min-width: 0; padding: var(--z-s-6); display: flex; flex-direction: column; gap: var(--z-s-5); }
.z .z-record.is-stacked { grid-template-columns: minmax(0, 1fr); }
.z .z-rail { border-left: 1px solid var(--z-line); background: var(--z-bg-sunk); padding: var(--z-s-5); display: flex; flex-direction: column; gap: var(--z-s-5); min-width: 0; align-self: stretch; }
.z .z-record.is-stacked .z-rail { border-left: 0; border-top: 1px solid var(--z-line); display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.z .z-rail__group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.z .z-ref { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px var(--z-s-2); border-radius: var(--z-r); text-decoration: none; background: var(--z-bg-raised); border: 1px solid var(--z-line); color: var(--z-text); }
.z a.z-ref:hover { border-color: var(--z-line-2); background: var(--z-bg-hover); }
.z .z-ref--empty { background: transparent; border-style: dashed; }
.z .z-ref__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.z .z-ref__name { font-size: var(--z-t-small); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z .z-ref__sub { font-size: var(--z-t-label); color: var(--z-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z .z-ref__aside { font-size: var(--z-t-label); color: var(--z-text-3); white-space: nowrap; }

/* ── initials chips: the full name is the accessible name ─── */
.z .z-initials {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: var(--z-bg-hover); color: var(--z-text);
  font-family: var(--z-f-std); font-weight: 600; font-size: var(--z-t-label); letter-spacing: 0;
}
.z .z-initials--empty { background: transparent; border: 1px dashed var(--z-line-2); color: var(--z-text-3); }
.z .z-initials-row { display: inline-flex; gap: 4px; align-items: center; }

/* ── tables and lists: sticky header; row actions on hover and focus only ── */
.z .z-list { border: 1px solid var(--z-line); border-radius: var(--z-r); background: var(--z-bg-raised); overflow: auto; max-width: 100%; }
.z .z-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--z-t-small); }
.z .z-table th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; font-family: var(--z-f-cd); font-weight: 600; font-size: var(--z-t-label); letter-spacing: 0.03em;
  color: var(--z-text-3); height: 34px; padding: 0 var(--z-s-3);
  border-bottom: 1px solid var(--z-line-2); background: var(--z-bg-sunk); white-space: nowrap;
}
.z .z-table td { height: var(--z-row); padding: 0 var(--z-s-3); border-bottom: 1px solid var(--z-line); vertical-align: middle; }
.z .z-table tbody tr:last-child td { border-bottom: 0; }
.z .z-table tbody tr:hover td { background: var(--z-bg-hover); }
.z .z-table .z-num, .z .z-table th.z-num { text-align: right; }
/* the primary column gets the width and never truncates */
.z .z-table .z-col-primary { width: 100%; min-width: 220px; white-space: normal; overflow-wrap: anywhere; }
.z .z-table .z-col-primary a { color: var(--z-text); font-weight: 500; text-decoration: none; }
.z .z-table .z-col-primary a:hover { text-decoration: underline; text-underline-offset: 3px; }
.z .z-table .z-col-dates { white-space: nowrap; }
.z .z-table .z-col-nowrap { white-space: nowrap; }
.z .z-rowacts { display: inline-flex; gap: 4px; justify-content: flex-end; opacity: 0; }
.z .z-table tr:hover .z-rowacts, .z .z-table tr:focus-within .z-rowacts, .z .z-srow:focus-within .z-rowacts { opacity: 1; }
/* nothing depends on hover on a touch screen: row actions always show */
@media (hover: none), (max-width: 1023px) { .z .z-rowacts { opacity: 1; } }

/* the phone form of a list: stacked rows. The primary column is the
   heading, at most three facts beneath, one status */
.z .z-stack { display: flex; flex-direction: column; border: 1px solid var(--z-line); border-radius: var(--z-r); background: var(--z-bg-raised); }
.z .z-srow { display: flex; flex-direction: column; gap: 4px; min-height: 56px; padding: 10px var(--z-s-4); border-bottom: 1px solid var(--z-line); text-decoration: none; color: var(--z-text); }
.z .z-srow:last-child { border-bottom: 0; }
.z .z-srow__head { display: flex; align-items: baseline; gap: var(--z-s-2); }
.z .z-srow__title { flex: 1; min-width: 0; font-weight: 600; font-size: var(--z-t-body); overflow-wrap: anywhere; }
.z .z-srow__facts { display: flex; flex-wrap: wrap; gap: 2px var(--z-s-3); font-size: var(--z-t-small); color: var(--z-text-2); }

/* ── toast: words only, dismissible, announced ────────────── */
.z-toasts {
  position: fixed; z-index: 90; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: var(--z-s-2); width: min(560px, calc(100vw - 32px)); pointer-events: none;
}
.z-toasts .z-toast {
  pointer-events: auto; display: flex; align-items: center; gap: var(--z-s-3);
  padding: 10px 10px 10px var(--z-s-4); border-radius: 6px;
  background: var(--z-text); color: var(--z-bg); box-shadow: var(--z-shadow);
  font-family: var(--z-f-std); font-size: var(--z-t-small); line-height: 1.4;
}
.z-toasts .z-toast[data-tone="bad"] { background: var(--z-bad); color: var(--z-bg); }
.z-toasts .z-toast__text { flex: 1; min-width: 0; }
.z-toasts .z-toast__btn {
  height: var(--z-control); min-width: var(--z-control); padding: 0 var(--z-s-3); border-radius: var(--z-r);
  border: 1px solid currentColor; background: transparent; color: inherit;
  font-family: var(--z-f-std); font-size: var(--z-t-small); font-weight: 600; cursor: pointer;
}
.z-toasts .z-toast__btn:focus-visible { outline: 2px solid var(--z-focus); outline-offset: 2px; }

/* ── typeahead and searchable select: one, per 11 July 2026 ── */
.z .z-ta { position: relative; min-width: 0; }
.z .z-ta__control {
  width: 100%; height: var(--z-control); display: flex; align-items: center; gap: var(--z-s-2);
  padding: 0 10px; border: 1px solid var(--z-text-3); border-radius: var(--z-r);
  background: var(--z-bg-raised); color: var(--z-text); font-size: var(--z-t-body); text-align: left;
}
.z .z-ta__control.is-empty .z-ta__value { color: var(--z-text-3); }
.z .z-ta__value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z .z-ta__input { width: 100%; height: var(--z-control); padding: 0 10px; border: 1px solid var(--z-text); border-radius: var(--z-r); background: var(--z-bg-raised); color: var(--z-text); font-size: var(--z-t-body); }
.z .z-ta__list {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow: auto;
  margin: 0; padding: 4px; list-style: none;
  background: var(--z-bg-raised); border: 1px solid var(--z-line-2); border-radius: 6px; box-shadow: var(--z-shadow);
}
.z .z-ta__opt { display: flex; align-items: baseline; gap: var(--z-s-2); min-height: 36px; padding: 6px var(--z-s-2); border-radius: var(--z-r); cursor: pointer; color: var(--z-text); font-size: var(--z-t-body); }
.z .z-ta__opt[aria-selected="true"] { background: var(--z-bg-select); }
.z .z-ta__opt.is-current { font-weight: 600; }
.z .z-ta__opt[aria-disabled="true"] { color: var(--z-text-3); cursor: default; }
.z .z-ta__opt-meta { margin-left: auto; font-size: var(--z-t-label); color: var(--z-text-3); white-space: nowrap; }
.z .z-ta__none { padding: 10px var(--z-s-2); font-size: var(--z-t-small); color: var(--z-text-2); }
.z .z-ta__none[data-state="error"] { color: var(--z-bad); }
.z .z-ta__add { color: var(--z-accent-text); font-weight: 600; }
@media (max-width: 1023px) { .z .z-ta__opt { min-height: var(--z-target); } }

/* ── the reading edit strip: shown only to people who can edit ── */
.z .z-editstrip {
  display: flex; align-items: center; gap: var(--z-s-3); flex-wrap: wrap;
  padding: var(--z-s-2) var(--z-s-3); border: 1px solid var(--z-line-2); border-radius: var(--z-r);
  background: var(--z-bg-sunk); font-size: var(--z-t-small); color: var(--z-text-2);
}
.z .z-editstrip__who { flex: 1; min-width: 0; }

/* ── dialogs and scrims, drawn once ───────────────────────── */
.z-scrim { position: fixed; inset: 0; z-index: 70; background: var(--z-scrim); border: 0; padding: 0; }

/* ── touch: 44px targets at tablet and phone widths ───────── */
@media (max-width: 1023px) {
  .z .z-btn { height: var(--z-control); min-width: var(--z-target); }
  .z .z-tab { height: var(--z-target); min-width: var(--z-target); justify-content: center; }
  .z .z-table .z-col-primary a { display: inline-flex; align-items: center; min-height: var(--z-target); }
  .z .z-more { min-height: var(--z-target); display: inline-flex; align-items: center; }
  .z a.z-ref { min-height: 52px; }
  .z button.z-fact__control { min-height: var(--z-target); align-items: center; }
  .z-toasts .z-toast__btn { height: var(--z-target); min-width: var(--z-target); }
}

/* ── the phone: every field at 16px, so the phone never zooms into it ── */
@media (max-width: 599px) {
  .z .z-input, .z .z-select, .z .z-textarea, .z .z-ta__input, .z .z-ta__control { font-size: 16px; }
}
