/* horizon.css — Horizon Dealer Portal design system (docs/design-spec.md §2–§4). Phone-first; desktop overrides follow. */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&family=Michroma&display=swap');

:root {
  color-scheme: light;
  --hz-green:#8DC63F; --hz-green-10:#EEF6E1; --hz-green-25:#D9EDB8; --hz-green-line:#C9E39B; --hz-green-deep:#6FA82C;
  --hz-forest:#194027; --hz-forest-hover:#0F2A19; --hz-mid:#328A36; --hz-mid-10:#E6F2E6;
  --hz-warn:#ED6B2D; --hz-warn-10:#FDEEE5; --hz-danger:#B42318; --hz-danger-10:#FBEAE8; --hz-info:#2F5D8A; --hz-info-10:#E8EFF6;
  --hz-ink:#121714; --hz-ink-2:#3A423C; --hz-muted:#5F6B62; --hz-faint:#8E988F; --hz-line:#E3E8DF; --hz-line-2:#C9D1C4;
  --hz-bg:#F4F6F1; --hz-surface:#FFFFFF; --hz-surface-2:#FAFBF8; --hz-black:#000; --hz-white:#fff; --hz-scrim:rgba(18,23,20,.48);
  --font-ui: Jost,'Futura PT',Futura,'Century Gothic','Trebuchet MS',sans-serif;
  --font-code: Michroma,'Eurostile','Bank Gothic','Arial Black',sans-serif;
  --fv-num:'tnum' 1,'lnum' 1; --track-num:.02em; --track-code:.04em; --track-eyebrow:.08em; --track-cta:.06em;
  --fs-11:11px; --fs-12:12px; --fs-13:13px; --fs-14:14px; --fs-15:15px; --fs-16:16px; --fs-18:18px; --fs-22:22px; --fs-28:28px; --fs-40:40px;
  --fs-hero:clamp(40px,6vw,64px); --fs-body:15px; --fs-table:15px; --lh-tight:1.2; --lh-body:1.5;
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px; --s-8:32px; --s-10:40px; --s-12:48px; --s-16:64px;
  --gutter:16px; --section-gap:24px;
  --r-1:3px; --r-2:6px; --r-3:12px; --r-pill:999px; --hairline:1px solid var(--hz-line); --border-input:1px solid var(--hz-line-2);
  --sh-card:0 1px 2px rgba(18,23,20,.06); --sh-pop:0 8px 24px rgba(18,23,20,.14); --sh-sheet:0 -8px 32px rgba(18,23,20,.18);
  --sh-render:0 24px 40px -20px rgba(18,23,20,.35); --focus:0 0 0 2px var(--hz-surface),0 0 0 4px var(--hz-forest);
  --topbar-h:52px; --tabbar-h:56px; --rail-w:56px; --rail-w-open:224px; --bench-h:36px; --tree-w:264px; --list-w:560px;
  --content-max:1600px; --passport-max:640px; --form-max:720px; --summary-w:320px; --omnibox-w:clamp(360px,40vw,720px);
  --row-h:56px; --th-h:32px; --input-h:44px; --btn-h:44px; --btn-h-lg:48px; --chip-h:28px; --stepper-h:44px; --touch:44px;
  --ease:cubic-bezier(.2,.7,.2,1); --t-fast:120ms; --t-base:180ms; --t-zoom:360ms;
  --z-sticky:10; --z-rail:20; --z-drawer:30; --z-sheet:40; --z-popover:50; --z-toast:60;
}
@media (min-width:768px){ :root{ --topbar-h:56px; --fs-body:14px; --fs-table:13px; --gutter:24px; --section-gap:32px; --row-h:44px; --th-h:28px; } }
@media (pointer:fine){ :root{ --row-h:32px; --input-h:36px; --btn-h:36px; --btn-h-lg:44px; --chip-h:24px; --stepper-h:28px; --touch:28px; } :root[data-density="comfortable"]{ --row-h:40px; --stepper-h:32px; } }
@media (pointer:coarse) and (min-width:768px){ :root{ --row-h:44px; --stepper-h:44px; } }
@media (prefers-reduced-motion:reduce){ :root{ --t-fast:0ms; --t-base:0ms; --t-zoom:0ms; } }

/* ---------- reset & type ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--hz-bg); color:var(--hz-ink-2); font:400 var(--fs-body)/var(--lh-body) var(--font-ui); -webkit-font-smoothing:antialiased; min-height:100vh; }
h1,h2,h3,h4{ margin:0; color:var(--hz-ink); line-height:var(--lh-tight); font-weight:600; }
h1{ font-size:var(--fs-18); } h2{ font-size:var(--fs-16); } h3{ font-size:var(--fs-14); }
p{ margin:0; } a{ color:var(--hz-forest); text-decoration:none; } a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; } button,input,select,textarea{ font:inherit; color:inherit; }
:focus-visible{ outline:none; box-shadow:var(--focus); }
.num{ font-feature-settings:var(--fv-num); font-variant-numeric:tabular-nums lining-nums; letter-spacing:var(--track-num); }
.code{ font-family:var(--font-code); letter-spacing:var(--track-code); text-transform:uppercase; }
.eyebrow{ font:600 var(--fs-11)/1 var(--font-ui); letter-spacing:var(--track-eyebrow); text-transform:uppercase; color:var(--hz-muted); }
.muted{ color:var(--hz-muted); } .small{ font-size:var(--fs-12); } .ink{ color:var(--hz-ink); }
.title{ font-size:var(--fs-18); font-weight:600; color:var(--hz-ink); display:flex; align-items:center; gap:var(--s-3); flex-wrap:wrap; }
.title .code{ font-size:var(--fs-14); }
.row{ display:flex; align-items:center; gap:var(--s-2); } .row--between{ justify-content:space-between; } .grow{ flex:1; } .wrap{ flex-wrap:wrap; }
.stack{ display:flex; flex-direction:column; gap:var(--s-3); }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ---------- topbar ---------- */
.topbar{ position:sticky; top:0; z-index:var(--z-sticky); height:var(--topbar-h); background:var(--hz-surface); border-bottom:var(--hairline); display:flex; align-items:center; gap:var(--s-3); padding:0 var(--gutter); }
.topbar__logo img{ height:22px; width:auto; } .topbar__logo{ display:flex; align-items:center; padding-right:var(--s-3); border-right:var(--hairline); margin-right:var(--s-1); }
.omnibox{ display:none; }
.topbar__right{ margin-left:auto; display:flex; align-items:center; gap:var(--s-2); }
.iconbtn{ position:relative; width:var(--touch); height:var(--touch); min-width:28px; min-height:28px; border:0; background:none; border-radius:var(--r-1); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:var(--hz-ink); }
.iconbtn:hover{ background:var(--hz-green-10); }
.iconbtn svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.badge{ position:absolute; top:0; right:0; min-width:16px; height:16px; padding:0 4px; border-radius:var(--r-pill); background:var(--hz-forest); color:#fff; font:600 10px/16px var(--font-ui); text-align:center; }
.avatar{ width:28px; height:28px; border-radius:50%; background:var(--hz-forest); color:#fff; font:600 11px/28px var(--font-ui); text-align:center; }
@media (min-width:768px){
  .topbar__logo img{ height:28px; }
  .omnibox{ display:flex; align-items:center; width:clamp(200px,20vw,340px); height:36px; border:var(--border-input); border-radius:var(--r-1); background:var(--hz-surface); padding:0 var(--s-2) 0 var(--s-3); gap:var(--s-2); color:var(--hz-muted); }
  .omnibox input{ flex:1; border:0; background:none; height:100%; font-size:var(--fs-14); color:var(--hz-ink); min-width:0; } .omnibox input::placeholder{ color:var(--hz-faint); }
  .omnibox:focus-within{ box-shadow:var(--focus); border-color:transparent; }
  .omnibox svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.5; }
  .key{ display:inline-block; min-width:18px; height:18px; padding:0 4px; border:1px solid var(--hz-line-2); border-bottom-width:2px; border-radius:3px; font:500 11px/16px var(--font-ui); color:var(--hz-muted); text-align:center; }
}
.omnibox--serial{ margin-left:4px; }
.topbar .chip{ display:none; } @media (min-width:1200px){ .topbar .chip{ display:inline-flex; } }

/* ---------- layout, rail, bench strip, tab bar ---------- */
.layout{ display:grid; grid-template-columns:1fr; min-height:calc(100vh - var(--topbar-h)); }
.rail{ display:none; }
.content{ padding:var(--gutter); padding-bottom:calc(var(--tabbar-h) + var(--s-6)); max-width:var(--content-max); width:100%; }
.bench-strip{ display:none; }
.tabbar{ position:fixed; left:0; right:0; bottom:0; height:calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); background:var(--hz-surface); border-top:var(--hairline); display:flex; z-index:var(--z-sticky); }
.tabbar a{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font:500 11px var(--font-ui); color:var(--hz-muted); position:relative; }
.tabbar a svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.5; }
.tabbar a.is-active{ color:var(--hz-ink); } .tabbar a.is-active::before{ content:""; position:absolute; top:0; left:20%; right:20%; height:3px; background:var(--hz-green); }
.tabbar .scan{ width:44px; height:44px; border-radius:50%; background:var(--hz-forest); color:#fff; display:flex; align-items:center; justify-content:center; margin-top:-14px; }
@media (min-width:1200px){
  .layout{ grid-template-columns:var(--rail-w-open) 1fr; } body[data-rail="collapsed"] .layout{ grid-template-columns:var(--rail-w) 1fr; }
  .rail{ display:flex; flex-direction:column; background:var(--hz-bg); border-right:var(--hairline); position:sticky; top:var(--topbar-h); height:calc(100vh - var(--topbar-h)); padding:var(--s-4) var(--s-3); gap:var(--s-2); overflow:hidden; }
  .rail__machine{ display:flex; gap:var(--s-2); align-items:center; padding:var(--s-2); border:var(--hairline); background:var(--hz-surface); border-radius:var(--r-1); min-height:64px; }
  .rail__machine .thumb{ width:64px; height:48px; flex:none; border-radius:var(--r-1); background:var(--hz-green); overflow:hidden; display:flex; align-items:center; justify-content:center; } .rail__machine .thumb img{ width:100%; height:100%; object-fit:cover; }
  .rail__machine .code{ font-size:12px; color:var(--hz-ink); } .rail__machine .serial{ font-weight:500; font-size:13px; color:var(--hz-ink); }
  .rail__machine.is-empty{ border-style:dashed; color:var(--hz-muted); justify-content:center; font-size:13px; }
  .rail__nav{ display:flex; flex-direction:column; gap:2px; margin-top:var(--s-2); }
  .rail__nav a{ display:flex; align-items:center; gap:var(--s-3); height:40px; padding:0 var(--s-3); border-radius:var(--r-1); color:var(--hz-ink-2); font:500 13px var(--font-ui); position:relative; }
  .rail__nav a svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; flex:none; }
  .rail__nav a:hover{ background:var(--hz-green-10); text-decoration:none; }
  .rail__nav a.is-active{ background:var(--hz-surface); color:var(--hz-ink); } .rail__nav a.is-active::before{ content:""; position:absolute; left:-12px; top:8px; bottom:8px; width:3px; background:var(--hz-green); }

  .rail__grp{ font:600 10px var(--font-ui); letter-spacing:.08em; text-transform:uppercase; color:var(--hz-muted); padding:14px 12px 4px; } .rail__grp:first-child{ padding-top:4px; } body[data-rail="collapsed"] .rail__grp{ height:1px; padding:6px 0; margin:6px 8px; background:var(--hz-line); overflow:hidden; }
  .rail__nav .pill{ margin-left:auto; min-width:16px; height:16px; padding:0 5px; border-radius:var(--r-pill); background:var(--hz-forest); color:#fff; font:600 10px/16px var(--font-ui); }
  .rail__foot{ margin-top:auto; font-size:12px; color:var(--hz-muted); line-height:1.4; }
  .rail__foot b{ color:var(--hz-ink); font-weight:500; }
  .rail__collapse{ align-self:flex-start; }
  body[data-rail="collapsed"] .rail{ padding:var(--s-4) var(--s-2); } body[data-rail="collapsed"] .rail .label, body[data-rail="collapsed"] .rail__foot, body[data-rail="collapsed"] .rail__machine .meta{ display:none; }
  body[data-rail="collapsed"] .rail__machine{ padding:4px; min-height:0; } body[data-rail="collapsed"] .rail__machine .thumb{ width:40px; height:40px; }
  body[data-rail="collapsed"] .rail__nav a{ justify-content:center; padding:0; }
  .content{ padding-bottom:calc(var(--bench-h) + var(--s-8)); }
  .bench-strip{ display:flex; position:fixed; left:0; right:0; bottom:0; height:var(--bench-h); background:var(--hz-surface); border-top:var(--hairline); z-index:var(--z-sticky); align-items:stretch; padding-left:var(--rail-w-open); }
  body[data-rail="collapsed"] .bench-strip{ padding-left:var(--rail-w); }
  .bench-strip a{ display:flex; align-items:center; gap:var(--s-2); padding:0 var(--s-4); font:500 13px var(--font-ui); color:var(--hz-ink-2); border-right:var(--hairline); border-top:2px solid transparent; }
  .bench-strip a.is-active{ border-top-color:var(--hz-green); color:var(--hz-ink); } .bench-strip a:hover{ text-decoration:none; background:var(--hz-surface-2); }
  .bench-strip .new{ margin-left:auto; color:var(--hz-forest); border-right:0; }
  .tabbar{ display:none; }
}

/* ---------- panes, buttons, inputs, chips ---------- */
.pane{ background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-1); padding:var(--s-4); }
.pane--flush{ padding:0; overflow:hidden; } .pane__head{ padding:var(--s-3) var(--s-4); border-bottom:var(--hairline); display:flex; align-items:center; gap:var(--s-3); }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:var(--s-2); height:var(--btn-h); padding:0 var(--s-4); border-radius:var(--r-1); border:1px solid transparent; background:var(--hz-surface); color:var(--hz-ink); font:600 var(--fs-14)/1 var(--font-ui); cursor:pointer; white-space:nowrap; text-decoration:none; }
.btn:hover{ text-decoration:none; } .btn svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.5; }
.btn--primary{ background:var(--hz-forest); color:#fff; } .btn--primary:hover{ background:var(--hz-forest-hover); }
.btn--secondary{ border-color:var(--hz-line-2); } .btn--secondary:hover{ background:var(--hz-surface-2); }
.btn--quiet{ background:none; color:var(--hz-forest); padding:0 var(--s-2); height:auto; font-weight:500; } .btn--quiet:hover{ text-decoration:underline; }
.btn--danger{ background:var(--hz-danger); color:#fff; }
.btn--cta{ height:var(--btn-h-lg); text-transform:uppercase; letter-spacing:var(--track-cta); padding:0 var(--s-6); }
.btn--sm{ height:28px; padding:0 var(--s-3); font-size:var(--fs-12); }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }
.field{ display:flex; flex-direction:column; gap:4px; } .field > label{ font:600 var(--fs-12) var(--font-ui); color:var(--hz-muted); }
.input{ height:var(--input-h); border:var(--border-input); border-radius:var(--r-1); padding:0 var(--s-3); background:var(--hz-surface); font-size:var(--fs-14); width:100%; }
textarea.input{ height:auto; padding:var(--s-2) var(--s-3); resize:vertical; } select.input{ appearance:auto; }
.input.is-valid{ background:var(--hz-green-10); border-color:var(--hz-green-line); } .input.is-error{ border-color:var(--hz-danger); }
.field .help{ font-size:var(--fs-12); color:var(--hz-muted); } .field .help.is-error{ color:var(--hz-danger); } .field .help.is-valid{ color:var(--hz-mid); }
.chip{ display:inline-flex; align-items:center; gap:6px; height:var(--chip-h); padding:0 10px; border-radius:var(--r-pill); background:var(--hz-surface-2); border:1px solid var(--hz-line); color:var(--hz-ink); font:500 var(--fs-12)/1 var(--font-ui); white-space:nowrap; }
.chip::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--hz-muted); flex:none; }
.chip--plain::before{ display:none; }
.chip--mid{ background:var(--hz-mid-10); border-color:transparent; } .chip--mid::before{ background:var(--hz-mid); }
.chip--warn{ background:var(--hz-warn-10); border-color:transparent; } .chip--warn::before{ background:var(--hz-warn); }
.chip--danger{ background:var(--hz-danger-10); border-color:transparent; } .chip--danger::before{ background:var(--hz-danger); }
.chip--info{ background:var(--hz-info-10); border-color:transparent; } .chip--info::before{ background:var(--hz-info); }
.chip--green{ background:var(--hz-green-10); border-color:var(--hz-green-line); } .chip--green::before{ background:var(--hz-green); }
.chip--dashed{ border-style:dashed; color:var(--hz-muted); } .chip--dashed::before{ background:transparent; border:1px solid var(--hz-muted); }
.chip--forest{ background:var(--hz-forest); color:#fff; border-color:transparent; } .chip--forest::before{ display:none; }
.chip.is-selectable{ cursor:pointer; } .chip.is-selectable:hover{ background:var(--hz-green-10); }
.chips{ display:flex; flex-wrap:wrap; gap:var(--s-2); }
.segmented{ display:inline-flex; border:1px solid var(--hz-line-2); border-radius:0; overflow:hidden; }
.segmented button{ height:36px; padding:0 var(--s-4); border:0; background:var(--hz-surface); font:500 var(--fs-13) var(--font-ui); color:var(--hz-ink-2); cursor:pointer; }
.segmented button + button{ border-left:1px solid var(--hz-line-2); } .segmented button.is-on{ background:var(--hz-ink); color:#fff; }
.stepper{ display:inline-flex; align-items:center; height:var(--stepper-h); border:var(--border-input); border-radius:var(--r-1); overflow:hidden; }
.stepper button{ width:var(--stepper-h); height:100%; border:0; background:var(--hz-surface-2); cursor:pointer; font-size:16px; line-height:1; color:var(--hz-ink); }
.stepper input{ width:40px; height:100%; border:0; border-left:var(--border-input); border-right:var(--border-input); text-align:center; font-size:var(--fs-13); }
.dot{ display:inline-block; width:10px; height:10px; border-radius:50%; border:1.5px solid var(--hz-forest); background:transparent; vertical-align:middle; }
.dot--done{ background:var(--hz-forest); } .dot--warn{ background:var(--hz-warn); border-color:var(--hz-warn); } .dot--danger{ background:var(--hz-danger); border-color:var(--hz-danger); } .dot--unverified{ border-style:dashed; border-color:var(--hz-muted); }
.meter{ height:6px; border-radius:var(--r-pill); background:var(--hz-line); overflow:hidden; } .meter > i{ display:block; height:100%; background:var(--hz-green); }
.meter--warn > i{ background:var(--hz-warn); }
.divider{ border:0; border-top:var(--hairline); margin:var(--s-4) 0; }

/* ---------- tables ---------- */
.table-wrap{ overflow-x:auto; }
.table{ width:100%; border-collapse:collapse; font-size:var(--fs-table); }
.table th{ height:var(--th-h); padding:0 var(--s-3); text-align:left; background:var(--hz-surface-2); border-bottom:var(--hairline); font:600 var(--fs-11) var(--font-ui); letter-spacing:var(--track-eyebrow); text-transform:uppercase; color:var(--hz-muted); white-space:nowrap; position:sticky; top:0; }
.table td{ height:var(--row-h); padding:0 var(--s-3); border-bottom:var(--hairline); color:var(--hz-ink-2); vertical-align:middle; white-space:nowrap; }
.table td.wrapcell{ white-space:normal; }
.table tr:hover td{ background:var(--hz-bg); } .table tr.is-selected td{ background:var(--hz-green-10); } .table tr.is-selected td:first-child{ box-shadow:inset 3px 0 0 var(--hz-green); }
.table tr.is-dim td{ color:var(--hz-muted); } .table tr.needs td:first-child::before{ content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--hz-warn); margin-right:6px; vertical-align:middle; }
.table .num{ text-align:right; } .table .partno{ font-weight:500; color:var(--hz-ink); }
.table .price{ font-weight:500; color:var(--hz-ink); } .table .strike{ text-decoration:line-through; color:var(--hz-faint); margin-right:4px; font-weight:400; }
.table .sub{ display:block; font-size:var(--fs-11); color:var(--hz-muted); line-height:1.2; }
.table .add{ width:28px; height:28px; border:1px solid var(--hz-line-2); background:var(--hz-surface); border-radius:var(--r-1); cursor:pointer; font-size:16px; line-height:1; color:var(--hz-forest); }
.table .add:hover{ background:var(--hz-green-10); } .table .add.is-in{ background:var(--hz-forest); color:#fff; border-color:transparent; font-size:12px; font-weight:600; }
.table td .dot{ margin-right:2px; }

/* ---------- family cards ---------- */
.family-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--s-3); }
.family-card{ display:block; background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-1); overflow:hidden; color:inherit; transition:transform var(--t-base) var(--ease),box-shadow var(--t-base) var(--ease); }
.family-card:hover{ text-decoration:none; transform:translateY(-2px); box-shadow:var(--sh-card); }
.family-card__img{ position:relative; aspect-ratio:4/3; background:var(--hz-green); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.family-card__img img{ width:100%; height:100%; object-fit:cover; }
.family-card__img img.blend-white{ mix-blend-mode:darken; object-fit:contain; padding:8%; }
.family-card__img .flag{ position:absolute; top:8px; right:8px; }
.nameplate{ padding:var(--s-2) var(--s-3) var(--s-3); }
.nameplate .code{ font-size:var(--fs-13); color:var(--hz-ink); display:block; } .nameplate .desc{ font-size:var(--fs-12); color:var(--hz-muted); display:block; }
.nameplate .frames{ margin-top:6px; display:flex; flex-wrap:wrap; gap:4px; } .nameplate .frames span{ font-size:11px; color:var(--hz-ink-2); background:var(--hz-surface-2); border:var(--hairline); border-radius:var(--r-pill); padding:2px 8px; }
.family-card--ink .family-card__img{ background:var(--hz-surface); border-bottom:var(--hairline); color:var(--hz-ink); font:600 var(--fs-14) var(--font-ui); }
@media (min-width:768px){ .family-grid{ grid-template-columns:repeat(3,1fr); gap:var(--s-4); } }
@media (min-width:1200px){ .family-grid{ grid-template-columns:repeat(5,1fr); } }
@media (min-width:1600px){ .family-grid{ grid-template-columns:repeat(5,1fr); } }

/* ---------- attention / lists ---------- */
.attn{ display:flex; flex-direction:column; }
.attn a{ display:flex; align-items:center; gap:var(--s-3); min-height:44px; padding:6px 0; border-bottom:var(--hairline); color:var(--hz-ink-2); font-size:var(--fs-13); }
.attn a:last-child{ border-bottom:0; } .attn a:hover{ text-decoration:none; background:var(--hz-bg); }
.attn .sev{ width:8px; height:8px; border-radius:50%; flex:none; border:1.5px solid var(--hz-muted); } .attn .sev--danger{ background:var(--hz-danger); border-color:var(--hz-danger); } .attn .sev--warn{ background:var(--hz-warn); border-color:var(--hz-warn); } .attn .sev--mid{ background:var(--hz-mid); border-color:var(--hz-mid); } .attn .sev--info{ background:var(--hz-info); border-color:var(--hz-info); }
.attn .age{ margin-left:auto; color:var(--hz-muted); font-size:var(--fs-12); white-space:nowrap; } .attn .chev{ color:var(--hz-faint); }
.bench-row{ display:flex; align-items:center; gap:var(--s-3); min-height:56px; border-bottom:var(--hairline); }
.bench-row:last-of-type{ border-bottom:0; } .bench-row b{ font-weight:600; color:var(--hz-ink); } .bench-row .meta{ color:var(--hz-muted); font-size:var(--fs-12); }
.statline{ display:flex; justify-content:space-between; gap:var(--s-3); padding:6px 0; font-size:var(--fs-13); border-bottom:var(--hairline); } .statline:last-child{ border-bottom:0; } .statline b{ color:var(--hz-ink); font-weight:500; }
.section{ margin-top:var(--section-gap); } .section__head{ display:flex; align-items:baseline; gap:var(--s-3); margin-bottom:var(--s-3); } .section__head .hint{ margin-left:auto; color:var(--hz-muted); font-size:var(--fs-12); }
.grid-home-1, .grid-home-3{ display:grid; grid-template-columns:1fr; gap:var(--s-4); }
@media (min-width:1200px){ .grid-home-1{ grid-template-columns:5fr 3fr 4fr; } .grid-home-3{ grid-template-columns:8fr 4fr; } }
.footline{ margin-top:var(--s-10); padding:var(--s-4) 0; font-size:var(--fs-12); color:var(--hz-muted); }

/* ---------- status track & timeline ---------- */
.track{ display:flex; align-items:flex-start; gap:0; overflow-x:auto; padding:var(--s-2) 0; }
.track__node{ position:relative; flex:1; min-width:84px; display:flex; flex-direction:column; align-items:center; text-align:center; font-size:var(--fs-11); color:var(--hz-muted); line-height:1.3; }
.track__node::before{ content:""; position:absolute; top:13px; left:50%; width:100%; height:2px; background:var(--hz-line); } .track__node:last-child::before{ display:none; }
.track__node i{ position:relative; z-index:1; display:flex; flex:none; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; border:2px solid var(--hz-line-2); background:var(--hz-surface); margin-bottom:4px; font-style:normal; font-size:12px; color:var(--hz-muted); }
.track__node.is-done i{ background:var(--hz-forest); border-color:var(--hz-forest); color:#fff; } .track__node.is-done::before{ background:var(--hz-forest); }
.track__node.is-current i{ border-color:var(--hz-green); box-shadow:inset 0 0 0 4px var(--hz-surface); background:var(--hz-green); } .track__node.is-current{ color:var(--hz-ink); font-weight:600; }
.track__node.is-skipped i{ border-style:solid; } .track__node.is-skipped i::after{ content:"–"; }
.track__node.is-hz i{ border-style:dashed; } .track__node.is-danger i{ border-color:var(--hz-danger); background:var(--hz-danger); color:#fff; }
.track__node small{ display:block; color:var(--hz-faint); font-size:10px; }
.track__node .doc{ display:inline-block; margin-top:4px; font-size:10px; padding:1px 6px; border:var(--hairline); border-radius:var(--r-pill); background:var(--hz-surface-2); color:var(--hz-ink-2); }
.timeline{ list-style:none; margin:0; padding:0; }
.timeline li{ position:relative; padding:0 0 var(--s-4) var(--s-8); min-height:56px; }
.timeline li::before{ content:""; position:absolute; left:11px; top:24px; bottom:-4px; width:2px; background:var(--hz-line); } .timeline li:last-child::before{ display:none; }
.timeline li > i{ position:absolute; left:0; top:0; width:24px; height:24px; border-radius:50%; border:2px solid var(--hz-line-2); background:var(--hz-surface); display:flex; align-items:center; justify-content:center; font-style:normal; font-size:12px; color:#fff; }
.timeline li.is-done > i{ background:var(--hz-forest); border-color:var(--hz-forest); } .timeline li.is-done::before{ background:var(--hz-forest); }
.timeline li.is-next > i{ border-color:var(--hz-green); box-shadow:inset 0 0 0 3px var(--hz-surface); background:var(--hz-green); }
.timeline li.is-overdue > i{ border-color:var(--hz-warn); background:var(--hz-warn); }
.timeline .tl-head{ display:flex; justify-content:space-between; gap:var(--s-2); font-weight:500; color:var(--hz-ink); font-size:var(--fs-14); } .timeline .tl-head time{ color:var(--hz-muted); font-weight:400; font-size:var(--fs-12); }
.timeline .tl-sub{ font-size:var(--fs-12); color:var(--hz-muted); } .timeline .tl-action{ margin-top:var(--s-2); }

/* ---------- workbench (catalogue) ---------- */
.workbench{ display:grid; grid-template-columns:1fr; gap:var(--s-3); }
.tree{ font-size:var(--fs-13); }
.tree .frame-chips{ margin:var(--s-2) 0; } .tree .serialline{ font-size:var(--fs-12); color:var(--hz-muted); margin:var(--s-2) 0 var(--s-3); }
.tree .sec{ margin-top:var(--s-3); } .tree .sec > .eyebrow{ padding:6px 0; }
.tree a{ display:flex; align-items:center; gap:var(--s-2); height:28px; padding:0 var(--s-2); border-radius:var(--r-1); color:var(--hz-ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tree a:hover{ background:var(--hz-green-10); text-decoration:none; } .tree a.is-active{ background:var(--hz-green-10); box-shadow:inset 3px 0 0 var(--hz-green); color:var(--hz-ink); font-weight:500; }
.tree a .thumb{ width:24px; height:18px; border:var(--hairline); background:var(--hz-surface); flex:none; } .tree a.is-dim{ opacity:.6; } .tree a.is-dim .thumb{ border-style:dashed; }
.tree a.group{ font-weight:500; color:var(--hz-ink); } .tree .sub a{ padding-left:var(--s-6); }
.plate-pane{ background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-1); display:flex; flex-direction:column; min-height:360px; }
.plate-title{ height:40px; display:flex; align-items:center; gap:var(--s-3); padding:0 var(--s-3); border-bottom:var(--hairline); font-size:var(--fs-12); color:var(--hz-muted); overflow:hidden; }
.plate-title .name{ color:var(--hz-ink); font-weight:600; font-size:var(--fs-14); white-space:nowrap; } .plate-title .code{ font-size:13px; color:var(--hz-ink); }
.plate-title .right{ margin-left:auto; display:flex; align-items:center; gap:var(--s-2); flex:none; }
.plate-title .crumb{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; flex:none; }
.plate-canvas{ position:relative; flex:1; overflow:hidden; aspect-ratio:792/612; background:var(--hz-surface); cursor:grab; }
.plate-canvas svg{ width:100%; height:100%; display:block; max-height:100%; }
.plate-canvas:active{ cursor:grabbing; }
.plate-toolbar{ position:absolute; right:12px; bottom:12px; display:flex; align-items:center; gap:2px; height:36px; padding:0 6px; background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-pill); box-shadow:var(--sh-card); font-size:var(--fs-12); }
.plate-toolbar button{ height:28px; min-width:28px; padding:0 8px; border:0; background:none; border-radius:var(--r-pill); cursor:pointer; font:500 12px var(--font-ui); color:var(--hz-ink); } .plate-toolbar button:hover{ background:var(--hz-green-10); }
.balloon{ cursor:pointer; } .balloon circle{ fill:#fff; stroke:#121714; stroke-width:1.5; transition:fill var(--t-fast),stroke var(--t-fast); } .balloon text{ font:600 12px var(--font-ui); fill:#121714; text-anchor:middle; dominant-baseline:central; pointer-events:none; }
.balloon:hover circle{ fill:#EEF6E1; stroke:#8DC63F; } .balloon.is-selected circle{ fill:#8DC63F; stroke:#194027; stroke-width:2; }
.balloon.is-na circle{ stroke:#8E988F; stroke-dasharray:3 2; } .balloon.is-na text{ fill:#5F6B62; } .balloon.is-in circle{ } .balloon .indot{ fill:#194027; }
.list-pane{ background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-1); display:flex; flex-direction:column; min-width:0; }
.list-pane__head{ height:36px; display:flex; align-items:center; gap:var(--s-3); padding:0 var(--s-3); border-bottom:var(--hairline); font-size:var(--fs-12); color:var(--hz-muted); position:sticky; top:0; background:var(--hz-surface); z-index:1; }
.list-pane__head input{ flex:1; border:0; background:none; font-size:var(--fs-13); min-width:0; }
.list-pane .table td.wrapcell{ white-space:nowrap; min-width:170px; max-width:260px; overflow:hidden; text-overflow:ellipsis; }
.list-pane .table .chip{ height:22px; font-size:11px; padding:0 8px; }
.list-pane__foot{ display:flex; gap:var(--s-3); padding:var(--s-2) var(--s-3); border-top:var(--hairline); font-size:var(--fs-12); }
.tag{ font-size:10px; font-weight:600; letter-spacing:.06em; padding:1px 5px; border-radius:2px; background:var(--hz-surface-2); border:var(--hairline); color:var(--hz-muted); margin-left:6px; vertical-align:middle; }
.tag--warn{ background:var(--hz-warn-10); border-color:transparent; color:var(--hz-ink); }
.hotspot-preview{ position:absolute; z-index:var(--z-popover); background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-2); box-shadow:var(--sh-pop); padding:var(--s-2) var(--s-3); font-size:var(--fs-12); pointer-events:none; display:none; min-width:200px; }
.hotspot-preview b{ display:block; color:var(--hz-ink); font-weight:500; }
.banner{ display:flex; align-items:center; gap:var(--s-3); min-height:40px; padding:var(--s-2) var(--s-3); border-radius:var(--r-1); background:var(--hz-green-10); font-size:var(--fs-13); color:var(--hz-ink-2); }
.banner--warn{ background:var(--hz-warn-10); } .banner--danger{ background:var(--hz-danger-10); } .banner--mid{ background:var(--hz-mid-10); } .banner--info{ background:var(--hz-info-10); }
.tabs2{ display:flex; border:1px solid var(--hz-line-2); } .tabs2 button{ flex:1; height:48px; border:0; background:var(--hz-surface); font:500 var(--fs-14) var(--font-ui); } .tabs2 button.is-on{ background:var(--hz-ink); color:#fff; }
@media (min-width:768px){ .workbench{ grid-template-columns:minmax(0,55fr) minmax(340px,45fr); align-items:start; } .tree{ grid-column:1/-1; max-height:220px; overflow:auto; } .tabs2{ display:none; } .workbench .plate-pane{ position:sticky; top:calc(var(--topbar-h) + 12px); height:calc(100vh - var(--topbar-h) - 24px); } .workbench .plate-canvas{ aspect-ratio:auto; min-height:0; } .workbench .list-pane{ position:sticky; top:calc(var(--topbar-h) + 12px); max-height:calc(100vh - var(--topbar-h) - 24px); } .workbench .list-pane .table-wrap{ overflow:auto; flex:1; min-height:0; } }
@media (min-width:1000px){ .workbench{ grid-template-columns:220px minmax(320px,1fr) minmax(360px,480px); } .tree{ grid-column:auto; max-height:none; } .workbench .phone-only{ display:none; } }
@media (min-width:1400px){ .workbench{ grid-template-columns:var(--tree-w) minmax(480px,1fr) minmax(420px,var(--list-w)); } }
@media (max-width:999px){ .workbench .tree{ order:1; } .workbench .plate-pane{ order:2; } .workbench .list-pane{ order:3; } }
@media (max-width:767px){ .workbench[data-tab="parts"] .plate-pane{ display:none; } .workbench[data-tab="drawing"] .list-pane{ display:none; } .workbench .tree{ display:none; } }

/* ---------- passport (public machine page) ---------- */
.pp-bar{ height:48px; background:var(--hz-surface); border-bottom:var(--hairline); display:flex; align-items:center; padding:0 var(--gutter); gap:var(--s-3); position:sticky; top:0; z-index:var(--z-sticky); }
.pp-bar img{ height:20px; width:auto; } .pp-bar .right{ margin-left:auto; display:flex; gap:var(--s-2); align-items:center; font-size:var(--fs-13); }
.passport{ max-width:var(--passport-max); margin:0 auto; padding-bottom:calc(64px + var(--s-8)); }
.hero{ aspect-ratio:4/3; background:var(--hz-green); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hero img{ width:100%; height:100%; object-fit:cover; } .hero img.blend-white{ mix-blend-mode:darken; object-fit:contain; padding:6%; filter:drop-shadow(0 24px 24px rgba(18,23,20,.3)); }
.pp-card{ background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-1); margin:0 var(--gutter) var(--s-4); padding:var(--s-4); }
.pp-card--name{ margin-top:-32px; position:relative; }
.pp-card .model{ font-size:var(--fs-28); color:var(--hz-ink); margin:4px 0 2px; line-height:1.1; }
.serial-chip{ display:inline-flex; align-items:center; gap:var(--s-2); height:32px; padding:0 var(--s-3); border:var(--border-input); border-radius:var(--r-1); font-weight:500; color:var(--hz-ink); background:var(--hz-surface-2); }
.action-rows{ display:flex; flex-direction:column; }
.action-rows a{ display:flex; align-items:center; gap:var(--s-3); min-height:56px; padding:var(--s-2) 0; border-bottom:var(--hairline); color:var(--hz-ink); }
.action-rows a:last-child{ border-bottom:0; } .action-rows a:hover{ text-decoration:none; background:var(--hz-bg); }
.action-rows svg{ width:22px; height:22px; stroke:var(--hz-ink); fill:none; stroke-width:1.5; flex:none; } .action-rows .lbl{ font:600 var(--fs-13) var(--font-ui); } .action-rows .hlp{ font-size:var(--fs-12); color:var(--hz-muted); }
.action-rows .lock{ margin-left:auto; color:var(--hz-muted); font-size:var(--fs-12); } .action-rows .chev{ color:var(--hz-faint); margin-left:auto; }
.sticky-bar{ position:fixed; left:0; right:0; bottom:0; height:calc(64px + env(safe-area-inset-bottom)); padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background:var(--hz-surface); border-top:var(--hairline); display:flex; gap:var(--s-2); z-index:var(--z-sticky); }
.sticky-bar .btn{ flex:1; }
.contact{ font-size:var(--fs-13); } .contact b{ display:block; color:var(--hz-ink); font-weight:500; }
@media (min-width:768px){ .passport{ padding-top:var(--s-6); } .hero{ border-radius:var(--r-1); margin:0 var(--gutter); } .pp-two{ display:grid; grid-template-columns:1fr 1fr; gap:0 var(--s-4); } .sticky-bar{ position:static; margin:0 var(--gutter); border:var(--hairline); border-radius:var(--r-1); height:auto; padding:var(--s-3); } }
.pp-layout{ max-width:var(--content-max); } .pp-layout .pp-side{ display:none; }
@media (min-width:1200px){ .pp-layout{ display:grid; grid-template-columns:1fr var(--summary-w); gap:var(--s-6); } .pp-layout .pp-side{ display:block; } }

/* ---------- claim form ---------- */
.claim{ display:grid; grid-template-columns:1fr; gap:var(--s-4); }
.claim__form{ max-width:var(--form-max); display:flex; flex-direction:column; gap:var(--s-4); }
.claim__side{ display:flex; flex-direction:column; gap:var(--s-3); }
@media (min-width:1200px){ .claim{ grid-template-columns:minmax(0,var(--form-max)) var(--summary-w); align-items:start; } .claim__side{ position:sticky; top:calc(var(--topbar-h) + var(--s-4)); } }
.sect{ background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-1); padding:var(--s-4); }
.sect__num{ display:flex; align-items:center; gap:var(--s-3); margin-bottom:var(--s-3); } .sect__num .n{ font-family:var(--font-code); font-size:12px; color:var(--hz-muted); } .sect__num h2{ font-size:var(--fs-14); }
.sect.is-collapsed{ padding:var(--s-3) var(--s-4); } .sect.is-collapsed .sect__body{ display:none; } .sect.is-collapsed .sect__num{ margin:0; }
.form-grid{ display:grid; grid-template-columns:1fr; gap:var(--s-3); } @media (min-width:600px){ .form-grid{ grid-template-columns:1fr 1fr; } .form-grid .span2{ grid-column:1/-1; } }
.photos{ display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:var(--s-3); }
.photo{ aspect-ratio:1; border:var(--border-input); border-radius:var(--r-1); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:var(--fs-11); color:var(--hz-muted); text-align:center; padding:6px; background:var(--hz-surface-2); }
.photo.is-done{ background:var(--hz-green-10); border-color:var(--hz-green-line); color:var(--hz-ink); } .photo.is-missing{ border-color:var(--hz-danger); color:var(--hz-danger); }
.photo b{ font-weight:600; } .photo svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.5; }
.totals{ font-size:var(--fs-13); } .totals div{ display:flex; justify-content:space-between; padding:4px 0; } .totals .tot{ border-top:var(--hairline); margin-top:4px; padding-top:8px; font-weight:600; color:var(--hz-ink); font-size:var(--fs-14); }
.evid{ list-style:none; margin:0; padding:0; font-size:var(--fs-13); } .evid li{ display:flex; gap:var(--s-2); padding:3px 0; } .evid .ok{ color:var(--hz-mid); } .evid .no{ color:var(--hz-danger); } .evid .opt{ color:var(--hz-faint); }
.thread{ display:flex; flex-direction:column; gap:var(--s-3); } .msg{ padding:var(--s-3); border-radius:var(--r-2); background:var(--hz-surface-2); font-size:var(--fs-13); } .msg b{ color:var(--hz-ink); font-weight:500; } .msg time{ color:var(--hz-muted); font-size:var(--fs-12); margin-left:6px; }
.msg--hz{ background:var(--hz-info-10); }
.check{ display:flex; gap:var(--s-2); align-items:flex-start; font-size:var(--fs-13); } .check input{ width:18px; height:18px; margin-top:2px; accent-color:var(--hz-forest); }
.radio-cards{ display:flex; flex-direction:column; gap:var(--s-2); } .radio-card{ display:flex; align-items:center; gap:var(--s-3); min-height:56px; padding:var(--s-2) var(--s-3); border:var(--border-input); border-radius:var(--r-1); cursor:pointer; font-size:var(--fs-13); }
.radio-card.is-on{ border-color:var(--hz-green-line); background:var(--hz-green-10); } .radio-card b{ color:var(--hz-ink); font-weight:600; display:block; } .radio-card small{ color:var(--hz-muted); }
.radio-card input{ accent-color:var(--hz-forest); }

/* ---------- toast, empty, misc ---------- */
.toast{ position:fixed; left:50%; bottom:calc(var(--tabbar-h) + 16px); transform:translateX(-50%); background:var(--hz-ink); color:#fff; padding:10px 16px; border-radius:var(--r-1); font-size:var(--fs-14); box-shadow:var(--sh-pop); z-index:var(--z-toast); display:none; max-width:calc(100vw - 32px); }
.toast.is-on{ display:block; } .toast a{ color:var(--hz-green); margin-left:12px; }
@media (min-width:1200px){ .toast{ bottom:calc(var(--bench-h) + 16px); } }
.empty{ text-align:center; color:var(--hz-muted); padding:var(--s-8) var(--s-4); font-size:var(--fs-13); }
.kbd-hint{ font-size:var(--fs-11); color:var(--hz-faint); }
.phone-only{ display:block; } @media (min-width:768px){ .phone-only{ display:none; } }
.desk-only{ display:none; } @media (min-width:768px){ .desk-only{ display:block; } }

/* ---------- serial typeahead ---------- */
.ta{ position:relative; }
.ta__list{ position:absolute; left:0; top:calc(100% + 4px); min-width:100%; width:max-content; max-width:min(90vw,520px); background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-2); box-shadow:var(--sh-pop); z-index:var(--z-popover); display:none; overflow:hidden; }
.ta__list.is-on{ display:block; }
.ta__item{ display:flex; gap:var(--s-3); align-items:baseline; padding:8px 12px; cursor:pointer; font-size:var(--fs-13); border-bottom:var(--hairline); }
.ta__item:last-child{ border-bottom:0; } .ta__item:hover, .ta__item.is-hi{ background:var(--hz-green-10); }
.ta__item b{ font-weight:500; color:var(--hz-ink); } .ta__item span{ color:var(--hz-muted); }
.ta__empty{ padding:8px 12px; font-size:var(--fs-12); color:var(--hz-muted); }

/* ---------- workbench: drawing pinned, list scrolls, compact rows ---------- */
@media (min-width:1000px){
  .workbench{ align-items:start; }
  .workbench .tree{ position:sticky; top:calc(var(--topbar-h) + 12px); max-height:calc(100vh - var(--topbar-h) - var(--bench-h) - 24px); overflow:auto; }
  .workbench .plate-pane{ position:sticky; top:calc(var(--topbar-h) + 12px); height:calc(100vh - var(--topbar-h) - var(--bench-h) - 24px); }
  .workbench .plate-canvas{ aspect-ratio:auto; min-height:0; }
  .workbench .list-pane{ position:sticky; top:calc(var(--topbar-h) + 12px); max-height:calc(100vh - var(--topbar-h) - var(--bench-h) - 24px); }
  .workbench .list-pane .table-wrap{ overflow:auto; flex:1; min-height:0; }
}
.list-pane .table{ table-layout:fixed; width:100%; }
.list-pane .table th:nth-child(1), .list-pane .table td:nth-child(1){ width:34px; padding-right:0; }
.list-pane .table th:nth-child(2), .list-pane .table td:nth-child(2){ width:76px; }
.list-pane .table th:nth-child(3), .list-pane .table td:nth-child(3){ width:auto; }
.list-pane .table th:nth-child(4), .list-pane .table td:nth-child(4){ display:none; }
.list-pane .table th:nth-child(5), .list-pane .table td:nth-child(5){ display:none; }
.list-pane .table th:nth-child(6), .list-pane .table td:nth-child(6){ width:76px; padding-left:4px; }
.list-pane .table th:nth-child(7), .list-pane .table td:nth-child(7){ width:96px; padding:0 4px; }
.list-pane .table th:nth-child(8), .list-pane .table td:nth-child(8){ width:38px; padding:0 4px 0 0; }
.list-pane .table td.wrapcell{ white-space:normal; min-width:0; max-width:none; overflow:visible; line-height:1.25; padding-top:4px; padding-bottom:4px; }
.list-pane .table td.wrapcell .meta{ display:block; font-size:11px; color:var(--hz-muted); margin-top:2px; }
.list-pane .table td.wrapcell .meta .chip{ height:18px; font-size:10px; padding:0 6px; vertical-align:middle; }
.list-pane .table td{ height:auto; min-height:var(--row-h); }
.list-pane .stepper{ height:26px; } .list-pane .stepper button{ width:24px; } .list-pane .stepper input{ width:34px; font-size:12px; }

.family-card__img--white{ background:#fff; } .family-card__img--white img{ object-fit:contain; padding:6%; }

/* ---------- add to cart, whatsapp, white hero ---------- */
.list-pane .table th:nth-child(8), .list-pane .table td:nth-child(8){ width:112px; padding:0 6px 0 0; }
.list-pane .table .add, .table .add.add--cart{ width:auto; height:28px; padding:0 8px; display:inline-flex; align-items:center; gap:5px; font:600 11px var(--font-ui); color:#fff; background:var(--hz-forest); border-color:transparent; white-space:nowrap; }
.table .add svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.8; }
.table .add:hover{ background:var(--hz-forest-hover); } .table .add.is-in{ background:var(--hz-mid); }
.wa{ display:inline-flex; align-items:center; gap:6px; color:var(--hz-forest); font-weight:500; } .wa svg{ width:18px; height:18px; fill:#25D366; }
.hero--white{ background:#fff; border:var(--hairline); } .hero--white img{ object-fit:contain; padding:4%; }
.family-card__img{ background:#fff; } .family-card__img img.blend-white{ mix-blend-mode:normal; }
.rail__machine .thumb{ background:#fff; border:var(--hairline); } .rail__machine .thumb img.blend-white{ mix-blend-mode:normal; object-fit:contain; }

/* ---------- parts list as card rows ---------- */
.prows{ display:flex; flex-direction:column; }
.prow{ display:grid; grid-template-columns:34px minmax(0,1fr) auto; grid-template-areas:"pos part price" "pos desc desc" "pos meta act"; column-gap:10px; row-gap:4px; padding:8px 12px 8px 8px; border-bottom:var(--hairline); align-items:center; cursor:pointer; }
.prow:hover{ background:var(--hz-bg); } .prow.is-selected{ background:var(--hz-green-10); box-shadow:inset 3px 0 0 var(--hz-green); } .prow.is-dim{ color:var(--hz-muted); }
.prow__pos{ grid-area:pos; color:var(--hz-muted); font-size:var(--fs-12); text-align:right; align-self:start; padding-top:3px; }
.prow__part{ grid-area:part; font-weight:600; color:var(--hz-ink); font-size:var(--fs-14); }
.prow__price{ grid-area:price; font-weight:600; color:var(--hz-ink); font-size:var(--fs-14); text-align:right; white-space:nowrap; }
.prow__desc{ grid-area:desc; font-size:var(--fs-13); color:var(--hz-ink-2); line-height:1.35; overflow-wrap:anywhere; }
.prow__desc .tag{ margin-left:6px; vertical-align:middle; white-space:nowrap; }
.prow__meta{ grid-area:meta; display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:var(--fs-12); color:var(--hz-muted); }
.prow__meta .chip{ height:20px; font-size:11px; padding:0 8px; }
.prow__act{ grid-area:act; display:flex; align-items:center; gap:8px; justify-content:flex-end; }
.prow__act .stepper{ height:28px; } .prow__act .stepper button{ width:26px; } .prow__act .stepper input{ width:38px; font-size:12px; }
.prows .add{ height:28px; padding:0 10px; display:inline-flex; align-items:center; gap:5px; font:600 12px var(--font-ui); color:#fff; background:var(--hz-forest); border:0; border-radius:var(--r-1); cursor:pointer; white-space:nowrap; }
.prows .add svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.8; } .prows .add:hover{ background:var(--hz-forest-hover); } .prows .add.is-in{ background:var(--hz-mid); }
.list-pane .prows{ overflow:auto; flex:1; min-height:0; }
@media (max-width:480px){ .prow{ grid-template-columns:28px minmax(0,1fr); grid-template-areas:"pos part" "pos price" "pos desc" "pos meta" "pos act"; } .prow__price{ text-align:left; } .prow__act{ justify-content:flex-start; } }

/* cart count beside the icon */
.topbar .iconbtn[href="/cart"]{ width:auto; padding:0 8px; gap:4px; } .topbar .iconbtn[href="/cart"] .badge{ position:static; }

/* claim mode: the parts book feeds a warranty claim */
.bench-strip.is-claim{ border-top:2px solid var(--hz-green); } .bench-strip.is-claim a.is-active{ font-weight:600; }
.prows .add.is-in{ background:var(--hz-mid); }

/* ---------- emblems: function tiles on the home doors and support doorlets ---------- */
.emblem{ display:inline-flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; border-radius:var(--r-1); background:var(--hz-surface-2); border:var(--hairline); color:var(--hz-forest); transition:background var(--t-base) var(--ease),border-color var(--t-base) var(--ease); }
.emblem svg{ display:block; width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.emblem svg .ac{ stroke:var(--hz-green); } .emblem svg .acf{ fill:var(--hz-green); stroke:none; }
.door .emblem{ width:48px; height:48px; margin-bottom:var(--s-1); }
.doorlet .emblem{ width:44px; height:44px; }
.door:hover .emblem, .doorlet:hover .emblem{ background:var(--hz-green-10); border-color:var(--hz-green-line); }
.doccard .docitem .open{ padding:8px 0; } .doccard .docitem .open span:not(.sz){ white-space:normal; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.3; }

.bench-strip a.alt{ margin-left:auto; margin-right:12px; font-size:var(--fs-12); color:var(--hz-forest); text-decoration:underline; text-underline-offset:3px; } .bench-strip a.alt + a.new{ margin-left:0; }

/* tables inside .table-wrap must scroll, never widen the page (orders list at 375px) */
.layout > .content, main.content{ min-width:0; } .layout{ grid-template-columns:minmax(0,1fr); }
@media (min-width:768px){ .layout{ grid-template-columns:auto minmax(0,1fr); } }

/* machine picture after a serial is picked */
.serial-thumb{ display:none; align-items:center; gap:10px; margin:6px 0 0 4px; vertical-align:middle; }
.serial-thumb.is-on{ display:inline-flex; }
.serial-thumb img{ width:88px; height:60px; object-fit:contain; background:#fff; border:var(--hairline); border-radius:var(--r-1); padding:3px; }
.serial-thumb__t{ font-size:var(--fs-13); color:var(--hz-ink); line-height:1.3; }
.serial-thumb__none{ width:88px; height:60px; display:inline-flex; align-items:center; justify-content:center; border:1px dashed var(--hz-line); border-radius:var(--r-1); color:var(--hz-muted); }
.serialbox .serial-thumb{ margin-left:0; }

/* viewing as a dealer: unmistakable banner under the top bar (horizon.js) */
.viewas-top{ position:sticky; top:var(--topbar-h); z-index:calc(var(--z-sticky) - 1); display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:8px var(--gutter); background:#fff4d6; border-bottom:2px solid var(--hz-warn); color:var(--hz-ink); font-size:var(--fs-13); }
.viewas-top b{ font-weight:600; } .viewas-top button{ border:0; background:var(--hz-forest); color:#fff; font:600 var(--fs-13) var(--font-ui); padding:8px 14px; border-radius:var(--r-1); cursor:pointer; } .viewas-top button:hover{ background:var(--hz-forest-hover); }
[hidden]{ display:none !important; }

/* ---- phones (George, 20 Sep 2026) ------------------------------------------------------------------ */
@media (max-width:767px){
  .pane__head{ flex-wrap:wrap; } .pane__head h2{ flex:1 1 100%; }
  .table-wrap{ -webkit-overflow-scrolling:touch; }
  .table-wrap table th:first-child, .table-wrap table td:first-child{ position:sticky; left:0; background:var(--hz-surface); z-index:1; box-shadow:2px 0 0 var(--hz-line); }
  .table-wrap table thead th:first-child{ background:var(--hz-surface-2); }
  .viewas-bar{ display:none !important; }
  select.input{ max-width:100%; }
  .row.wrap > select.input{ min-width:0 !important; width:100% !important; }
  .row.wrap > .btn{ flex:1 1 auto; }
  .title{ font-size:20px; }
}
/* phone pick bar: the part tapped on a drawing, with quantity and Add to cart */
.pickbar{ position:fixed; left:8px; right:8px; bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index:70; background:var(--hz-surface); border:var(--hairline); border-radius:var(--r-2); box-shadow:var(--sh-pop); padding:10px 12px; display:flex; flex-direction:column; gap:8px; }
.pickbar__txt{ display:flex; flex-direction:column; gap:2px; font-size:var(--fs-12); color:var(--hz-ink-2); min-width:0; } .pickbar__txt b{ font-size:var(--fs-14); color:var(--hz-ink); } .pickbar__txt span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .pickbar__txt small{ color:var(--hz-muted); }
.pickbar__act{ display:flex; align-items:center; gap:8px; } .pickbar__act .btn--primary{ flex:1; } .pickbar__act .stepper input{ width:44px; text-align:center; } .pickbar__close{ border:0; background:none; font-size:22px; line-height:1; color:var(--hz-muted); padding:0 4px; cursor:pointer; }
@media (min-width:768px){ .pickbar{ display:none; } }
/* phone parts browser: one level per screen */
@media (max-width:767px){
  .workbench[data-tab="browse"] .tree{ display:block; } .workbench[data-tab="browse"] .plate-pane, .workbench[data-tab="browse"] .list-pane{ display:none; }
  .tree .ph{ margin:8px -12px 0; border-top:var(--hairline); }
  .tree .ph a{ display:flex; align-items:center; gap:12px; height:auto; min-height:54px; padding:10px 12px; border-radius:0; border-bottom:var(--hairline); white-space:normal; font-size:15px; color:var(--hz-ink); }
  .tree .ph a .txt{ flex:1; min-width:0; line-height:1.3; } .tree .ph a .num{ color:var(--hz-muted); font-size:13px; margin-right:4px; }
  .tree .ph a .chev{ color:var(--hz-muted); font-size:22px; line-height:1; } .tree .ph a .cnt{ font-size:12px; color:var(--hz-muted); white-space:nowrap; }
  .tree .ph a.back{ color:var(--hz-forest); font-weight:600; background:var(--hz-surface-2); } .tree .ph a.back .chev{ color:var(--hz-forest); }
  .tree .ph a .thumb{ width:34px; height:26px; }
}
.plate-canvas, .plate-canvas svg{ touch-action:manipulation; }
@media (pointer:coarse){ .balloon circle{ stroke-width:2.5; } .hotspot-preview{ display:none !important; } }
/* phone: the part search is the one thing every page needs, so it becomes a full-width row in the topbar */
@media (max-width:767px){
  .topbar{ height:auto; min-height:var(--topbar-h); flex-wrap:wrap; padding-top:6px; padding-bottom:6px; row-gap:6px; }
  .topbar__logo{ order:1; } .topbar__right{ order:2; margin-left:auto; }
  .omnibox--part{ order:3; display:flex; align-items:center; flex:1 1 100%; width:auto; height:38px; border:var(--border-input); border-radius:var(--r-1); background:var(--hz-surface); padding:0 var(--s-2) 0 var(--s-3); gap:var(--s-2); color:var(--hz-muted); }
  .omnibox--part input{ flex:1; border:0; background:none; height:100%; font-size:16px; color:var(--hz-ink); min-width:0; }
  .omnibox--part input::placeholder{ color:var(--hz-faint); }
  .omnibox--part svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.5; }
  .omnibox--part .key{ display:none; }
  .omnibox--serial{ display:none; }
  .viewas-top{ position:static; }
  .ta__list{ max-height:60vh; }
}
/* where used */
.wu{ position:fixed; inset:0; z-index:90; background:rgba(16,24,20,.45); display:flex; align-items:flex-end; justify-content:center; }
@media (min-width:768px){ .wu{ align-items:center; } }
.wu__card{ background:var(--hz-surface); width:min(680px,100%); max-height:86vh; display:flex; flex-direction:column; border-radius:var(--r-2) var(--r-2) 0 0; box-shadow:var(--sh-pop); }
@media (min-width:768px){ .wu__card{ border-radius:var(--r-2); } }
.wu__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:var(--s-3) var(--s-4); border-bottom:var(--hairline); flex-wrap:wrap; }
.wu__head b{ font-size:20px; color:var(--hz-ink); display:block; } .wu__desc{ display:block; width:100%; font-size:var(--fs-13); color:var(--hz-ink-2); }
.wu__x{ border:0; background:none; font-size:26px; line-height:1; color:var(--hz-muted); cursor:pointer; padding:0 4px; }
.wu__body{ overflow-y:auto; padding:var(--s-3) var(--s-4) var(--s-5); }
.wu__own{ display:block; border:var(--hairline); border-left:3px solid var(--hz-green); border-radius:var(--r-1); padding:10px 12px; background:var(--hz-surface-2); margin-bottom:6px; }
.wu__own b{ display:block; font-size:var(--fs-14); color:var(--hz-ink); } .wu__own span{ font-size:var(--fs-12); color:var(--hz-ink-2); }
.wu__book{ font:600 var(--fs-12) var(--font-ui); color:var(--hz-muted); text-transform:uppercase; letter-spacing:.04em; padding:12px 0 4px; }
.wu__row{ display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:var(--hairline); color:var(--hz-ink); }
.wu__row:hover{ background:var(--hz-green-10); text-decoration:none; }
.wu__txt{ flex:1; min-width:0; font-size:var(--fs-13); line-height:1.35; } .wu__txt b{ color:var(--hz-ink); }
.wu__sec{ display:block; font-size:var(--fs-11); color:var(--hz-muted); }
.wu__pos{ font-size:var(--fs-12); color:var(--hz-muted); white-space:nowrap; } .wu__row .chev{ color:var(--hz-muted); font-size:20px; }
.wu__mach{ display:flex; flex-wrap:wrap; gap:6px; }
.wherelink{ font-size:var(--fs-11); color:var(--hz-mid); margin-left:8px; white-space:nowrap; }
