/* QH NET Â· Concept 10 "QH Unified" â€” white/clean surface, restrained QH-orange accents.
   Token values come from QH-Portal-Ten-Design-Directions.md. Class names/layout are
   unchanged from the prior dark theme so site.js markup needs no changes here. */
:root {
  --ink: #202427;
  --muted: #5b6065;
  --line: #e0e2e3;
  --paper: #ffffff;
  --wash: #f6f6f5;
  --orange: #f06721;
  --orange-dark: #9c3b0d;
  --orange-soft: #fff1e6;
  --yellow: #f06721;   /* legacy alias kept so any missed reference still lands on brand orange */
  --amber: #9c3b0d;    /* legacy alias -> dark orange accent */
  --cyan: #b8551f;      /* muted warm accent for secondary hover states, restrained vs. --orange */
  --link: #9c3b0d;
  --ok: #1a7f4b;
  --warn: #b45309;
  --danger: #c0392b;
  --elev: #f6f6f5;
  --glow: rgba(240, 103, 33, 0.18);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--wash); color: var(--ink);
  font: 13px/1.45 "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--orange); }
button, input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* Splash stays a bold branded intro moment (dark + orange glow), distinct from the
   light shop chrome that follows â€” same idea as the logo's own dark wordmark bar. */
.splash {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 30%, #2a1508 0%, #14100c 58%, #000 100%);
  color: #fff;
}
.splash-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--orange);
  animation: splash-scan 1.7s ease-in-out infinite;
  opacity: 0.85;
}
.splash-core { position: relative; text-align: center; padding: 2rem; }
.splash-kicker {
  margin: 0 0 0.4rem; letter-spacing: 0.34em; text-transform: uppercase;
  font-size: 11px; color: var(--orange); font-weight: 700;
}
.splash-mark {
  font-size: clamp(4.2rem, 12vw, 7rem); font-weight: 800; line-height: 0.9;
  letter-spacing: 0.12em;
  text-shadow: 0 0 40px var(--glow);
  animation: splash-in 0.7s ease-out;
}
.splash-line {
  margin: 0.85rem 0 0.35rem; color: #d9c8bd;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px;
}
.splash-meta { margin: 0; color: #a99a90; font-size: 12px; }
.splash-skip {
  margin-top: 1.2rem; border: 1px solid var(--orange); background: transparent;
  color: var(--orange); padding: 0.45rem 1.1rem; cursor: pointer; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 11px; font-weight: 700;
}
.splash-skip:hover { background: var(--orange); color: var(--ink); }
@keyframes splash-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes splash-scan { 0% { top: 12%; } 100% { top: 86%; } }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--wash); }
.gate-card {
  width: min(440px, 100%);
  background: var(--paper);
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
}
.gate-card h1 { margin: 0.2rem 0 0.6rem; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.gate-card form { display: grid; gap: 0.6rem; margin-top: 1rem; }
.gate-hint { margin: 0.75rem 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.gate-remember { display: flex; align-items: center; justify-content: flex-start; gap: 0.45rem; font-size: 13px; font-weight: 700; }
.mask-secret { -webkit-text-security: disc; text-security: disc; }
.header-sign-out { margin-left: 0.35rem; }
body[data-role="customer"] #headerAdminLink,
body[data-role="customer"] a[href="#/admin"],
body[data-role="customer"] a[data-tab="admin"],
body[data-role="customer"] a[data-tab="delivery"],
body[data-role="customer"] a[data-bottom="admin"],
body[data-role="customer"] a[data-bottom="delivery"],
body[data-role="customer"] #headerCustomerChange,
body[data-role="customer"] .header-customer-change { display: none !important; }
.gate-card button:disabled { opacity: 0.65; cursor: wait; }
.err.ok { color: var(--ok); }
.gate-card .gate-remember input {
  width: 1.05rem; min-width: 1.05rem; height: 1.05rem; flex: 0 0 auto; margin: 0; padding: 0;
}
.gate-card input, .home-search input, .checkout input, .qty, .family-pick select {
  width: 100%; padding: 0.55rem 0.6rem;
  border: 1px solid var(--line); background: var(--wash); color: var(--ink);
}
.gate-card button, .search button, .cart-quick-add button, .add-btn, .checkout button, .clear-refine {
  border: 0; background: var(--orange); color: var(--ink); padding: 0.5rem 0.85rem; cursor: pointer; font-weight: 700;
}
.add-btn { letter-spacing: 0.04em; }
.add-btn:hover { filter: brightness(1.08); }
.clear-refine, .ghost-btn {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  margin-top: 0.4rem; width: 100%; cursor: pointer; padding: 0.45rem 0.7rem;
}
.ghost-btn { width: auto; margin: 0; white-space: nowrap; }
.ghost-btn:hover, .clear-refine:hover { border-color: var(--orange); color: var(--orange); }
.reset-finder, #resetGuide, #resetGuideTop, button.reset-finder {
  background: #fff1e6;
  border-color: var(--yellow);
  color: #9c3b0d;
  font-weight: 700;
}
.reset-finder:hover, #resetGuide:hover, #resetGuideTop:hover {
  background: #f06721;
  border-color: #f06721;
  color: #fff;
}
.finder-page { max-width: 1680px; margin-left: auto; margin-right: auto; }
.finder-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  background: #fff1e6;
  border: 1px solid #f0b48a;
}
.finder-toolbar .page { margin: 0.15rem 0 0.35rem; }
.finder-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.finder-modes { display: inline-flex; border: 2px solid #f06721; background: #ffe0c7; }
.finder-mode {
  min-height: 42px; padding: 0.4rem 0.9rem; border: 0; background: transparent;
  color: #9c3b0d; font: inherit; font-weight: 700; cursor: pointer;
}
.finder-mode.active { background: #f06721; color: #fff; }
.improvise-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.55rem 0.95rem;
  border: 2px solid #f06721;
  background: #ffe0c7;
  color: #9c3b0d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.improvise-btn .mm-mark { font-size: 1.25rem; line-height: 1; }
.improvise-btn small { display: block; font-weight: 600; color: #9c3b0d; font-size: 10px; }
.improvise-btn.active, .improvise-btn[aria-pressed="true"] {
  background: #f06721;
  border-color: #c44e14;
  color: #fff;
}
.improvise-btn.active small, .improvise-btn[aria-pressed="true"] small { color: #ffe8d6; }
.cust-folder-trail { margin: 0.75rem 0 0.7rem; display: flex; flex-direction: column; gap: 0.65rem; align-items: stretch; }
.cust-back-all {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.8rem 1.1rem;
  border: 2px solid var(--orange); background: var(--orange-soft);
  color: var(--orange-dark); font: inherit; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; border-radius: 8px;
}
.cust-back-all:hover { background: var(--orange); color: #fff; }
.cust-folder-now { display: flex; flex-direction: column; gap: 0.15rem; }
.cust-folder-now b { font-size: 1.2rem; }
.cust-folder-now small { color: var(--muted); }
.cust-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.55rem; margin: 0 0 0.75rem; }
.cust-folder-grid .dept-card { text-align: left; cursor: pointer; }
.cust-rep-filter:empty { display: none; }
.rep-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin: 0.6rem 0 0.2rem; }
.rep-chips-label {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px;
  font-weight: 700; color: var(--muted); margin-right: 0.15rem;
}
.rep-chip {
  border: 1px solid var(--line); background: var(--paper); color: inherit;
  font: inherit; font-size: 12px; font-weight: 700;
  padding: 0.3rem 0.6rem; border-radius: 999px; cursor: pointer; min-height: 32px;
}
.rep-chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.rep-chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.thread-ref {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 12px;
  max-width: 42rem;
}
.eyebrow { margin: 0; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; color: var(--orange-dark); font-weight: 700; }
.err { color: var(--danger); }

.app-chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  transform: translate3d(0, 0, 0);
  transition: transform 0.32s ease;
  will-change: transform;
}
.app-chrome.is-away {
  transform: translate3d(0, calc(-100% - 8px), 0);
  pointer-events: none;
  box-shadow: none;
}
.app-chrome-pad { height: var(--chrome-h, 118px); flex: 0 0 auto; }
.top {
  display: grid;
  /* Logo, search, customer chip, Change, Cart. Page Back lives in crumbs, not the header. */
  grid-template-columns: auto 1fr auto auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.nav-back { display: none; }
.nav-back:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }
.nav-back.is-root { opacity: 0.55; }
.primary-tabs {
  display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap;
  justify-content: center;
  background: var(--paper);
  border-bottom: 3px solid var(--orange);
  padding: 0.5rem 0.75rem 0.55rem;
}
.primary-tabs a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.35rem; font-weight: 700; font-size: 15px;
  color: var(--ink); background: var(--wash);
  border: 1px solid var(--line); border-radius: 3px;
  text-decoration: none; letter-spacing: 0.02em; line-height: 1.1;
}
.primary-tabs a .tab-ic { font-size: 15px; opacity: 0.75; }
.primary-tabs a:hover {
  color: var(--orange-dark); border-color: var(--orange); background: var(--orange-soft); text-decoration: none;
}
.primary-tabs a.active {
  background: var(--orange); border-color: var(--orange); color: #fff;
  box-shadow: 0 1px 0 var(--orange-dark);
}
.primary-tabs a.active .tab-ic { opacity: 1; }
.header-customer {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem; align-items: center;
  min-width: 9rem; max-width: 16rem;
  padding: 0.25rem 0.55rem; border: 1px solid var(--line); background: var(--wash);
  color: inherit; text-decoration: none; line-height: 1.2;
}
.header-customer:hover { border-color: var(--orange); color: inherit; text-decoration: none; }
.header-customer .hc-ic { font-size: 16px; line-height: 1; }
.header-customer .hc-text { display: grid; gap: 0.05rem; min-width: 0; }
.header-customer .hc-kicker {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700;
}
.header-customer .hc-change-kicker { display: none; }
.header-customer strong { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-customer .hc-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-customer-change {
  align-self: center;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 700;
}
.header-admin-link { display: none; }
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 110px); background: var(--wash); }
.shell.shell-wide { grid-template-columns: 1fr; justify-items: center; }
.shell.shell-wide .rail { display: none; }
.customer-profile {
  display: grid; gap: 0.35rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  background: var(--paper); border: 1px solid var(--line); padding: 0.85rem 0.95rem; margin: 0 auto 1rem; max-width: 1680px; width: 100%;
}
.customer-profile .cp-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.customer-profile > div { min-width: 0; }
/* Long values (email, grace wording) used to run under the next column. */
.customer-profile .cp-value {
  font-size: 14px; color: var(--ink); font-weight: 600;
  display: block; min-width: 0; overflow-wrap: anywhere;
}
.customer-extra {
  display: grid; gap: 0.75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  background: var(--paper); border: 1px solid var(--line); border-top: 0;
  padding: 0.75rem 0.95rem 0.85rem; margin: -1rem auto 1rem; max-width: 1680px; width: 100%;
}
.customer-extra .cp-label {
  display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 700; margin-bottom: 0.25rem;
}
.cp-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.cp-contacts li { display: flex; gap: 0.5rem; font-size: 13px; }
.cp-contacts li b { color: var(--muted); font-weight: 600; min-width: 5.5rem; }
.cp-extra p { margin: 0; font-size: 13px; }
.cp-memo {
  margin: 0; font: inherit; font-size: 12.5px; white-space: pre-wrap; word-break: break-word;
  background: var(--wash); border-left: 3px solid var(--orange); padding: 0.45rem 0.6rem;
  max-height: 11rem; overflow: auto;
}
/* Customer tab: three stacked areas (info, recent orders, consumption). */
.cust-block { margin: 0 auto 1.5rem; max-width: 1680px; }
.cust-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cust-head-actions { display: flex; gap: 0.4rem; align-items: center; }
.action-btn.sm { width: auto; padding: 0.4rem 0.8rem; font-size: 12px; }

/* One item line: small photo, SKU, description. Shared by history, invoices, cart,
   and the delivery desk so a part reads the same everywhere. */
.item-cell { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.item-ic {
  position: relative;
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
/* Plenty of SKUs have no photo yet; a faint glyph behind the image keeps the row from
   reading as a broken box. */
.item-ic::before { content: "▤"; position: absolute; color: #c8caca; font-size: 18px; line-height: 1; }
.item-ic img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cart-table .item-ic { width: 56px; height: 56px; }
.cart-table .item-ic img { width: 100%; height: 100%; object-fit: contain; }
.item-ic img.missing { display: none; }
button.item-open {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 0; cursor: pointer; font: inherit; color: inherit;
}
button.item-open.muted { color: var(--muted); }
.catalog-item-row:hover td { background: var(--orange-soft); }
.folder-sku-table .item-open:hover { color: var(--orange-dark); }
.admin-paste {
  border: 1px dashed var(--line, #cfc9c0);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--muted, #5c6570);
  background: rgba(0, 0, 0, .02);
  cursor: text;
}
.admin-paste:focus {
  outline: 2px solid var(--orange, #f06721);
  color: var(--ink, #27313b);
}
.admin-paste small { display: block; margin-top: 4px; opacity: .8; }

.hose-size-scroll { max-height: calc(100vh - 220px); }
.hose-size-table th { position: sticky; top: 0; z-index: 2; background: #f4f1ec; }
.hose-size-table .hose-order { display: flex; align-items: center; gap: 0.45rem; }
.hose-size-table .hose-order .qty { width: 3.2rem; }
.hose-size-table .hose-miss { color: #5c6570; }
.hose-size-label { font-weight: 650; white-space: nowrap; }
.item-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.item-copy b { font-size: 12.5px; font-family: ui-monospace, Consolas, monospace; }
.item-sku-line { display: inline-flex; align-items: center; gap: 0.7rem; flex-wrap: nowrap; }
.item-sku-line .stock-mark { margin-left: 0.15rem; }
.item-copy small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34rem; }
.item-copy .item-extra { color: var(--orange-dark); font-weight: 600; }
.compact-items td { padding-top: 0.3rem; padding-bottom: 0.3rem; vertical-align: middle; }
.compact-items .row-actions { display: flex; gap: 0.3rem; justify-content: flex-end; white-space: nowrap; }
.icon-btn { min-width: 1.7rem; text-align: center; font-weight: 700; }
.times-chip {
  display: inline-block; padding: 0.1rem 0.4rem; border: 1px solid var(--line);
  background: var(--wash); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.times-chip.hot { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }
.cadence { display: block; color: var(--muted); font-size: 10.5px; }

/* Recent orders: header row toggles, detail row carries the lines. */
.orders-table .ot-caret { width: 1.4rem; color: var(--muted); }
.order-row { cursor: pointer; }
.order-row:hover td { background: var(--orange-soft); }
.order-row.open td { background: var(--wash); }
.order-detail td { background: var(--wash); }
.order-lines { list-style: none; margin: 0; padding: 0.2rem 0; display: grid; gap: 0.3rem; }
.order-lines li { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.order-lines .ol-nums { margin-left: auto; display: flex; gap: 0.75rem; white-space: nowrap; font-size: 12px; }
.order-lines .ol-price { color: var(--muted); }
.order-lines li.ol-hose { align-items: flex-start; }
.hose-assy {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.55rem 0.75rem;
  margin: 0.15rem 0 0.25rem;
  padding: 0.45rem 0.55rem;
  background: var(--wash);
  border: 1px solid var(--line);
}
.hose-assy-photo {
  width: 88px; height: 64px; object-fit: contain; background: #fff;
  border: 1px solid var(--line);
}
.hose-assy-len { margin: 0 0 0.35rem; font-size: 12px; }
.hose-assy-bom { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.hose-assy-bom li {
  display: grid; grid-template-columns: 3.4rem minmax(0, 7rem) minmax(0, 1fr) auto;
  gap: 0.35rem; align-items: baseline; font-size: 11px; padding: 0;
  background: none; border: 0;
}
.hose-assy-role { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 9px; }
.hose-assy-bom em { font-style: normal; color: var(--muted); white-space: nowrap; }
.hose-assy-history { margin: 0.65rem 0 0.2rem; }
.hose-assy-history h4 { margin: 0 0 0.4rem; font-size: 12px; }
.hose-assy-hist-row { margin: 0 0 0.55rem; }
.hose-assy-when { margin: 0 0 0.25rem; font-size: 11px; color: var(--muted); font-weight: 700; }
.item-ic.hose-assy-ic img { width: 100%; height: 100%; object-fit: contain; }
.history-detail td { background: var(--wash); }
.hd-grid { display: grid; gap: 0.35rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0.2rem 0 0.35rem; }

/* Delivery desk. */
.delivery-bar {
  display: flex; align-items: flex-end; gap: 0.65rem; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); padding: 0.7rem 0.85rem; margin: 0 auto 0.9rem; max-width: 1680px;
}
.delivery-bar .also { margin: 0 0 0.25rem; }
.delivery-roster { margin: 0 auto 1.15rem; max-width: 1680px; }
.delivery-roster-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 0 0 0.75rem; }
.delivery-stop-bar, .delivery-pick-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #fff1e6; border: 2px solid #f06721; border-left: 6px solid #f06721;
  padding: 0.85rem 1rem; margin: 0 auto 1rem; max-width: 1680px;
}
.delivery-pick-hero.open { background: #fff8f1; }
.delivery-hero-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
.delivery-stop-bar .eyebrow, .delivery-pick-hero .eyebrow { margin: 0 0 0.1rem; color: #9c3b0d; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.delivery-stop-bar b, .delivery-pick-hero b { display: block; font-size: 1.2rem; }
.delivery-stop-bar small, .delivery-pick-hero small { color: var(--muted); }
.delivery-search-label { display: grid; gap: 0.25rem; margin: 0 0 0.85rem; font-size: 12px; font-weight: 700; color: #9c3b0d; max-width: 28rem; }
.delivery-search-label input { font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--line); }
.delivery-roster-note { color: var(--muted); font-size: 12px; margin: 0 0 0.75rem; }
.delivery-day-block { margin: 0 0 1rem; }
.delivery-day-block h3 {
  margin: 0 0 0.45rem; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange-dark);
}
.delivery-account-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem;
}
.delivery-account {
  display: grid; gap: 0.15rem; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); padding: 0.7rem 0.8rem;
  color: inherit; font: inherit; width: 100%;
}
.delivery-account:hover { border-color: var(--orange); text-decoration: none; color: inherit; }
.delivery-account.active { border-color: var(--orange); background: var(--orange-soft); }
.delivery-account b { font-size: 14px; color: var(--ink); }
.delivery-account small { color: var(--muted); font-size: 11px; }
.delivery-account .da-meta { color: var(--muted); font-size: 12px; }
.bin-chip {
  display: inline-block; padding: 0.12rem 0.45rem; font-size: 11px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--line); background: var(--wash);
}
.bin-overdue { border-color: var(--danger); color: var(--danger); background: #fdecea; }
.bin-due { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }
.bin-soon { border-color: var(--warn); color: var(--warn); background: #fff7e6; }
.bin-cold, .bin-occasional { border-color: var(--line); color: var(--muted); }
.bin-ok { border-color: var(--ok); color: var(--ok); background: #eaf7ef; }
.bin-full { border-color: var(--ok); color: var(--ok); background: #eaf7ef; }
.bin-open-order { border-color: var(--line); color: var(--muted); }
.bins-table .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bins-table .bin-act {
  min-height: 44px; min-width: 84px; padding: 0.45rem 1rem;
  font-size: 15px; font-weight: 800; border-radius: 8px;
}
.bins-table .bin-ask-btn {
  background: #fff1e6; border: 2px solid var(--orange); color: var(--orange-dark);
}
.ask-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin: 0.5rem 0;
}
.ask-fields label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 12px; }
.ask-fields .wide-search { grid-column: 1 / -1; }
.nudge-card .nudge-script { color: var(--ink); font-style: italic; }
.nudge-actions { display: flex; gap: 0.35rem; margin-top: 0.35rem; flex-wrap: wrap; }

/* Shared modal sheet: bolt add-ons and the bin "already restocked?" prompt. */
.addon-sheet {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(20, 16, 12, 0.45); padding: 1rem;
}
.addon-card {
  width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--orange);
}
.addon-card .sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line);
}
.addon-card .sheet-body { padding: 0.8rem 0.9rem; display: grid; gap: 0.6rem; }
.addon-card .sheet-foot {
  display: flex; gap: 0.5rem; padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); background: var(--wash);
}
.addon-group { display: grid; gap: 0.3rem; }
.addon-row {
  display: flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line); padding: 0.4rem 0.55rem; background: var(--paper);
}
.addon-row:hover { border-color: var(--orange); }
.addon-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.addon-copy small { color: var(--muted); font-size: 11.5px; }
.addon-row .addon-qty { width: 4.5rem; margin-left: auto; }
.ask-script {
  margin: 0; padding: 0.55rem 0.7rem; background: var(--orange-soft);
  border-left: 3px solid var(--orange); font-size: 13px;
}
.ask-options { display: grid; gap: 0.25rem; }
.ask-option { display: flex; align-items: center; gap: 0.45rem; font-size: 13px; }
.resources-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; margin: 0.75rem 0 1.25rem;
}
.resource-card {
  display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); padding: 0.85rem 0.9rem;
  color: inherit; text-decoration: none; min-height: 7rem;
}
.resource-card:hover { border-color: var(--orange); color: inherit; text-decoration: none; }
.resource-card b { font-size: 15px; }
.resource-card small { color: var(--muted); font-size: 12px; }
.resource-card .res-type {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange-dark); font-weight: 700;
}
.mark {
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem; white-space: nowrap;
}
.mark-tag {
  font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 0.5rem;
}
.mark-logo { position: relative; display: inline-block; height: 60px; }
.mark-logo img {
  display: block; height: 60px; width: auto; background: transparent; padding: 0;
}
/* The source PNG's small "HYDRAULICS" lettering is white and disappears on a white
   header. Per the design brief: overlay a decorative, clipped + darkened copy of the
   same image over just that lettering band (below 82% of the image height) so it
   reads on white without redrawing or altering the original asset. */
.mark-logo-shade {
  position: absolute; top: 0; left: 0;
  clip-path: inset(82% 0 0 0);
  filter: brightness(0);
  opacity: 0.87;
}
.mark:hover { text-decoration: none; color: var(--orange); }
@media (max-width: 860px) {
  .mark-logo, .mark-logo img { height: 28px; }
  .mark { gap: 0.3rem; }
  .mark-tag { display: none; }
}
.search { display: flex; background: var(--wash); border: 1px solid var(--line); min-width: 0; }
.search input { flex: 1; border: 0; padding: 0.7rem 0.8rem; min-width: 0; font-size: 16px; color: var(--ink); background: transparent; }
.search button { background: var(--orange); color: var(--ink); }
.acct, .cart-link { color: var(--ink); text-decoration: none; white-space: nowrap; }
.cart-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 52px; padding: 0.3rem 0.7rem 0.3rem 0.5rem;
  border: 1px solid var(--line); background: var(--wash); border-radius: 10px;
  font-weight: 700; font-size: 15px;
}
.cart-link:hover { border-color: var(--orange); color: var(--orange-dark); text-decoration: none; }
.cart-ic { font-size: 34px; line-height: 1; }
.cart-copy { display: inline-flex; align-items: center; }
/* Quick add sits on the order desk next to the cart it fills, not in the header. */
.cart-quick-add {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line);
  padding: 0.6rem 0.75rem; margin: 0 auto 0.9rem; max-width: 1680px;
}
.cart-quick-add label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--muted);
}
.cart-quick-add input {
  flex: 1 1 14rem; min-width: 0; font: inherit; padding: 0.5rem 0.6rem;
  border: 1px solid var(--line); background: var(--wash); color: var(--ink);
}
.cart-link b { background: var(--orange); color: var(--ink); padding: 0.05rem 0.35rem; margin-left: 0.2rem; }
html.qh-embedded .splash { display: none !important; }
html.qh-embedded body { background: #f3f5f7; }

.suggest {
  position: fixed; left: 180px; right: 280px; top: var(--chrome-h, 118px);
  background: var(--paper); border: 1px solid var(--line); max-height: 320px; overflow: auto; z-index: 30;
  box-shadow: 0 8px 20px rgba(32, 36, 39, 0.08);
}
.suggest button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); padding: 0.45rem 0.7rem; cursor: pointer; color: var(--ink); }
.suggest button:hover { background: var(--orange-soft); }
.suggest small { color: var(--muted); }

.rail { background: var(--paper); border-right: 1px solid var(--line); padding: 0.85rem 0.8rem 2rem; }
.rail-kicker { margin: 0.85rem 0 0.35rem; font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.1em; color: var(--orange-dark); }
.rail-kicker:first-child { margin-top: 0; }
.rail a, .rail .cat-link {
  display: flex; justify-content: space-between; width: 100%;
  border: 0; background: none; color: var(--ink); text-align: left;
  padding: 0.4rem 0.3rem; cursor: pointer; text-decoration: none;
}
.rail a:hover { background: var(--wash); text-decoration: none; color: var(--orange); }
.rail a.active { background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; }
.rail-note { color: var(--muted); font-size: 11px; margin: 0 0 0.5rem; }
.facet { margin: 0 0 0.75rem; }
.facet b { display: block; margin: 0 0 0.25rem; }
.facet label { display: flex; gap: 0.4rem; align-items: center; padding: 0.12rem 0; cursor: pointer; }
.facet input { margin: 0; }

#stage {
  padding: 1.1rem 1.35rem 8rem;
  background: var(--wash);
  width: 100%;
  max-width: none;
  justify-self: center;
}
@media (min-width: 861px) {
  #stage {
    padding-left: 1in;
    padding-right: 1in;
  }
}
.crumbs { color: var(--muted); margin: 0 0 0.7rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.45rem; }
.crumbs a { color: var(--ink); font-weight: 650; text-decoration: none; }
.crumbs a:hover { color: var(--orange-dark); }
.crumb-here { color: var(--ink); font-weight: 700; }
.crumb-sep { color: var(--muted); }
.crumb-back {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 0.2rem 0.55rem; font-weight: 700; font-size: 12px; cursor: pointer;
}
.crumb-back:hover { border-color: var(--orange); color: var(--orange-dark); }
h1.page { margin: 0 0 0.2rem; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: 1.1rem; color: var(--ink); }
.also { color: var(--muted); margin: 0 0 0.8rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.8rem; }
.active-filters span { background: var(--orange-soft); border: 1px solid var(--orange); color: var(--orange-dark); padding: 0.15rem 0.45rem; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--orange-soft); border: 1px solid var(--orange); color: var(--orange-dark);
  padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.82rem; cursor: pointer;
  min-height: 28px;
}
.filter-pill span { font-weight: 700; opacity: 0.7; }
.filter-pill:hover { background: var(--orange); color: #fff; }
.filter-pill:hover span { opacity: 1; }
.filter-pill-clear { background: transparent; border-color: var(--line); color: var(--ink); }
.filter-pill-clear:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.home-search {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  padding: 1.15rem 1.1rem; margin: 0 0 1rem;
}
.home-search input { font-size: 16px; }
.hero-tools { display: flex; gap: 0.85rem; align-items: stretch; flex-wrap: wrap; }
.hero-tools .home-search { flex: 1 1 320px; margin: 0; }
.buy-again-card {
  flex: 1 1 240px; max-width: 320px;
  background: var(--wash); border: 1px solid var(--line);
  padding: 0.75rem 0.85rem; display: grid; gap: 0.3rem; align-content: start;
}
.buy-again-card p { margin: 0; }
.buy-again-card .also { color: var(--muted); font-size: 12px; }
.buy-again-card .ghost-btn { width: auto; margin-top: 0.3rem; padding: 0.35rem 0.65rem; font-size: 12px; }
.buy-again-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.buy-again-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.buy-again-list .ba-copy { display: flex; flex-direction: column; min-width: 0; }
.buy-again-list .ba-copy small { color: var(--muted); font-size: 11px; }
.buy-again-list .ghost-btn.sm { padding: 0.25rem 0.55rem; font-size: 11px; flex-shrink: 0; }
.hero-card {
  display: flex; gap: 1rem; align-items: center;
  border: 1px solid var(--line); padding: 0.85rem 1rem; color: inherit; text-decoration: none; max-width: 620px;
  background: var(--paper);
}
.hero-card:hover { border-color: var(--orange); text-decoration: none; color: inherit; }
.hero-card b { display: block; font-size: 1.1rem; color: var(--ink); }
.hero-card small { color: var(--muted); }
.hero-card .photo-frame { width: 88px; height: 66px; }

.spec-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 0.95rem 1rem 1.15rem;
  margin: 0 auto 1rem;
}
.builder-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.connections-card h2 { margin: 0.1rem 0 0.3rem; font-size: 1.2rem; }
.step-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 0.7rem; }

.shape-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 0.5rem; }
.shape-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.35rem;
  min-height: 118px; border: 1px solid var(--line); background: var(--wash); cursor: pointer; font-weight: 700;
  padding: 0.4rem 0.3rem 0.5rem; color: var(--ink);
}
.shape-btn:hover { border-color: var(--orange); }
.shape-btn.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.shape-photo, .photo-frame {
  display: grid; place-items: center; width: 100%; height: 72px; background: var(--wash);
}
.shape-photo img, .photo-frame img {
  max-width: 100%; max-height: 72px; object-fit: contain; display: block;
}
.shape-photo .shape-icon { display: none; }
.shape-icon { color: var(--muted); }
.photo-frame { border: 1px solid var(--line); }
img.missing { visibility: hidden; }

.finder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.end-card { border: 1px solid var(--line); padding: 0.75rem 0.8rem 0.85rem; background: var(--wash); }
.end-card h3 { margin: 0 0 0.65rem; display: flex; align-items: center; gap: 0.5rem; color: var(--ink); }
.end-card h3 span { display: grid; }
.end-card h3 small { color: var(--muted); font-weight: 400; }
.step-side {
  display: inline-block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--orange); color: var(--ink); padding: 0.28rem 0.4rem; font-weight: 700;
}
.side-0 { border-top: 3px solid #17a2c8; }
.side-1 { border-top: 3px solid var(--amber); }
.side-2 { border-top: 3px solid #8b5cf6; }
.side-3 { border-top: 3px solid #0f766e; }
.end-preview { width: 54px; height: 40px; object-fit: contain; margin-left: auto; background: var(--paper); border: 1px solid var(--line); }
.end-block { margin: 0 0 0.7rem; }
.end-block b { display: block; margin: 0 0 0.35rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  border: 1px solid var(--line); background: var(--paper); padding: 0.35rem 0.55rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink);
}
.chip:hover { border-color: var(--orange); }
.chip.active { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.chip-clear { background: transparent; color: var(--muted); }
.chip-thread { flex-direction: column; min-width: 72px; padding: 0.35rem 0.4rem; }
.chip-thread img { width: 52px; height: 36px; object-fit: contain; }
.chip-thread.active img { filter: none; }

.guide-rail { margin: 0 0 0.7rem; padding-left: 1.1rem; }
.guide-rail li { margin: 0.25rem 0; color: var(--muted); }
.guide-rail li.done { color: var(--ink); font-weight: 600; }
.either { display: flex; gap: 0.4rem; align-items: center; margin: 0 0 0.5rem; }

.preset-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 0.9rem; }
.preset-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

.sheet-tools { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin: 0 0 0.55rem; }
.sort-pick { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 12px; }
.sort-pick select {
  font-weight: 400; padding: 0.3rem 0.4rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.sort-note { margin: 0; color: var(--muted); font-size: 11px; flex-basis: 100%; }

.col-tools { margin: 0 0 0.55rem; }
.col-panel {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center;
  border: 1px solid var(--line); padding: 0.55rem 0.7rem; margin-top: 0.4rem; background: var(--wash);
}
.col-panel p { width: 100%; margin: 0 0 0.25rem; color: var(--muted); }
.col-panel label { display: inline-flex; gap: 0.3rem; align-items: center; font-weight: 400; }
table.sheet th[data-col] { cursor: grab; user-select: none; }
table.sheet th[data-col]:active { cursor: grabbing; }
.body-pack { margin: 0 0 0.9rem; }
.body-kicker { margin: 0 0 0.4rem; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.family-pick { display: grid; gap: 0.3rem; font-weight: 700; max-width: 520px; }

/* Adapter results (Phase 2 rebuild): the real adapter landing page, no wizard gate. */
.adapter-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 0.5rem; }
.guide-context { margin: 0 0 0.6rem; color: var(--muted); font-size: 13px; }
.ghost-btn.sm { padding: 0.15rem 0.45rem; font-size: 11px; }
.rail-block { margin: 0 0 0.85rem; }
.rail-block > b, .rail-block label > b { display: block; margin: 0 0 0.3rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.rail-block select { width: 100%; font-size: 13px; padding: 0.3rem 0.35rem; }
.rail-end select + select { margin-top: 0.3rem; }
.chips.compact .chip { padding: 0.2rem 0.45rem; font-size: 12px; }
.rail-block .either { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; font-size: 12px; color: var(--muted); }
.rail-block .either small { color: var(--muted); }
/* Normal page-flow scrolling for the adapter results table — no fixed-height box, no
   forced nowrap/max-content sizing (that combination is what made the old sheet feel
   like a spreadsheet instead of a shop page). */
.results-scroll { overflow: visible; }
table.adapter-results { width: 100%; table-layout: auto; border-collapse: collapse; font-size: 13px; }
table.adapter-results th, table.adapter-results td {
  border-bottom: 1px solid var(--line); padding: 0.55rem 0.5rem; white-space: normal; vertical-align: top; text-align: left;
}
table.adapter-results th { background: var(--wash); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
table.adapter-results tbody tr:hover, table.adapter-results tbody tr.open-row { background: var(--orange-soft); }
table.adapter-results .col-part { width: 1%; white-space: nowrap; }
table.adapter-results .col-end { width: auto; }
table.adapter-results .col-add { width: 1%; white-space: nowrap; }
.col-part { min-width: 0; }
.col-part .photo-frame.sm { width: 36px; height: 28px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.col-part .photo-frame.sm img { max-height: 28px; }
.part-copy { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.part-copy small { color: var(--muted); }
.end-cell b { display: block; }
.end-cell small { color: var(--muted); }
.price-cell { color: var(--ink); font-weight: 600; font-size: 13px; }
.price-cell.loading { color: var(--muted); font-style: italic; font-weight: 400; }
.price-cell.unavailable { color: var(--muted); font-style: italic; font-weight: 400; font-size: 12px; }
.price-cell.muted { color: var(--muted); font-weight: 400; }
.qty-add { display: flex; gap: 0.4rem; align-items: center; }
.qty-add .qty { width: 56px; }
#loadMoreResults { margin: 0.75rem 0; }

.sheet-wrap { overflow: auto; border: 1px solid var(--line); background: var(--paper); max-height: 70vh; }
table.sheet { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 12px; }
table.sheet th, table.sheet td {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0.28rem 0.4rem; white-space: nowrap; vertical-align: middle; text-align: left;
}
table.sheet th {
  position: sticky; top: 0; z-index: 2;
  background: var(--wash); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
}
table.sheet tbody tr:nth-child(even) { background: #fafafa; }
table.sheet tbody tr:hover, table.sheet tbody tr.open-row { background: var(--orange-soft); }
table.sheet .photo-frame { width: 56px; height: 40px; }
table.sheet .photo-frame img { max-height: 40px; }
table.sheet .add-btn, .details-btn { padding: 0.25rem 0.5rem; }
.details-btn {
  border: 1px solid var(--line); background: transparent; color: var(--orange-dark); cursor: pointer;
}
.details-btn.active, tr.open-row .details-btn { border-color: var(--orange); color: var(--orange); }

.detail-row td { padding: 0 !important; white-space: normal; }
.detail-panel {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.1rem;
  padding: 0.9rem 1rem 1rem; background: var(--wash); border-top: 1px solid var(--orange-dark);
}
.photo-hero-wrap { position: relative; }
.photo-hero {
  display: grid; place-items: center; min-height: 200px;
  background: var(--paper); border: 1px solid var(--line);
}
.photo-hero img { max-width: 100%; max-height: 220px; object-fit: contain; }
.ab-tag {
  position: absolute; width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--orange); color: var(--ink); font-size: 11px; font-weight: 800;
}
.ab-a { left: 6px; top: 44%; }
.ab-b { right: 6px; top: 44%; }
.ab-c { left: 50%; bottom: 8px; transform: translateX(-50%); }
table.sheet tr.group-row td {
  background: var(--orange-soft); color: var(--orange-dark); font-weight: 700;
  letter-spacing: 0.03em; padding: 0.45rem 0.55rem; white-space: normal;
}
.sheet-hold {
  border: 1px dashed var(--line); padding: 1rem 1.05rem; background: var(--paper); max-width: 720px;
}
.detail-copy h3 { margin: 0 0 0.2rem; font-size: 1.15rem; color: var(--ink); }
.detail-sig { margin: 0 0 0.7rem; color: var(--orange-dark); font-weight: 700; letter-spacing: 0.03em; }
.detail-grid {
  display: grid; grid-template-columns: 120px 1fr; gap: 0.28rem 0.8rem; margin: 0 0 0.75rem;
}
.detail-grid b { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.detail-sides { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0 0 0.7rem; }
.detail-side {
  display: flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--line); padding: 0.35rem 0.5rem; background: var(--wash); min-width: 150px;
}
.detail-side img { width: 54px; height: 38px; object-fit: contain; background: var(--paper); }
.detail-side small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 9px; }
.alias-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.alias-pills span { border: 1px solid var(--line); padding: 0.12rem 0.4rem; font-size: 11px; color: var(--muted); }

.builder-results h2, .subhead { margin: 1rem 0 0.5rem; font-size: 1.05rem; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0.4rem 0 0.6rem; }
.result-head h2 { margin: 0; }
.result-head span { color: var(--muted); }

.product-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.product-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 0.85rem; align-items: center;
  border-bottom: 1px solid var(--line); padding: 0.65rem 0.2rem;
  color: inherit; text-decoration: none; background: var(--paper);
}
a.product-row { grid-template-columns: 92px minmax(0, 1fr); }
.product-row:hover { background: var(--orange-soft); text-decoration: none; }
.product-copy b { display: inline; font-size: 1.02rem; }
.product-copy small { display: block; color: var(--muted); margin-top: 0.15rem; }
.product-buy { display: flex; gap: 0.4rem; align-items: center; }
.product-row .photo-frame { width: 92px; height: 68px; }

table.matrix, table.cart-table { width: 100%; border-collapse: collapse; background: var(--paper); }
table.matrix th, table.matrix td, .cart-table td, .cart-table th {
  border-bottom: 1px solid var(--line); padding: 0.45rem 0.5rem; text-align: left;
}
table.matrix th { background: var(--wash); font-size: 11px; text-transform: uppercase; }
.stocked { color: var(--ok); font-weight: 700; }
.special, .unknown { color: var(--warn); font-weight: 700; }
.qty { width: 4rem; }
.checkout { margin-top: 1rem; display: grid; gap: 0.5rem; max-width: 420px; }
.order-desk { max-width: 520px; }
.order-customer, .review-card, .wide-search {
  background: var(--paper); border: 1px solid var(--line); padding: 0.8rem 0.9rem; margin: 0 0 1rem; max-width: 720px;
}
.order-customer label, .wide-search { display: grid; gap: 0.25rem; }
.order-customer input, .wide-search input, .order-desk input {
  width: 100%; padding: 0.5rem 0.55rem; border: 1px solid var(--line); background: var(--wash);
}
.customer-hits { display: grid; gap: 0.45rem; margin-top: 0.55rem; }
.customer-hit, .folder-link {
  display: block; text-align: left; border: 1px solid var(--line); background: var(--wash);
  color: inherit; padding: 0.45rem 0.6rem; cursor: pointer; text-decoration: none;
}
.customer-hit small, .folder-link small { display: block; color: var(--muted); }
.customer-hit:hover, .folder-link:hover { border-color: var(--orange); color: inherit; text-decoration: none; }
.pick-hit {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 3.5rem; padding: 0.75rem 0.9rem; border: 2px solid var(--line);
  background: #fff; width: 100%;
}
.pick-hit:hover { border-color: #f06721; background: #fff1e6; }
.pick-copy { display: grid; gap: 0.15rem; min-width: 0; }
.pick-go {
  flex: 0 0 auto; padding: 0.5rem 0.75rem; background: #f06721; color: #fff;
  font-weight: 700; font-size: 12px; white-space: nowrap;
}
.thread-badges { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; }
.thread-badge {
  display: inline-flex; align-items: center; gap: 0.2rem;
  border: 1px solid var(--line); padding: 0.1rem 0.35rem; font-size: 10px; font-weight: 700;
}
.thread-badge img { width: 18px; height: 18px; object-fit: contain; }
.combo-grid { display: grid; gap: 0.75rem; }
.combo-card { border: 1px solid var(--line); background: var(--paper); padding: 0.85rem 0.95rem; }
.combo-head span { color: #9c3b0d; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.combo-head b { display: block; margin-top: 0.15rem; }
.combo-chain { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.7rem; align-items: center; margin-top: 0.55rem; }
.combo-piece { display: grid; gap: 0.25rem; justify-items: start; }
.combo-join { text-align: center; font-weight: 700; color: #9c3b0d; }
.combo-join small { display: block; font-weight: 600; color: var(--muted); }
.mm-panel .mm-check {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem;
  list-style: none; margin: 0.6rem 0; padding: 0;
}
.mm-check li { font-weight: 700; color: var(--muted); }
.mm-check li.done { color: var(--ok); }
.mm-check li.need { color: var(--orange-dark); }
.mm-create { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.75rem 0 1rem; }
.mm-create .action-btn { width: auto; padding: 0.55rem 1.1rem; }
.mm-create .action-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.hose-app { max-width: 1680px; width: 100%; margin: 0 auto; padding: 0 0 1.5rem; }
.hose-hero {
  background: linear-gradient(165deg, #fff7f0 0%, var(--paper) 68%);
  border: 1px solid var(--line); border-top: 4px solid var(--orange);
  padding: 1.35rem 1.3rem 1.15rem; margin: 0 0 1.15rem; border-radius: 16px;
}
.hose-hero h1.page { font-size: clamp(1.65rem, 3.2vw, 2.2rem); margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.hose-hero .also { margin: 0; max-width: 34rem; }
.hose-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.95rem; margin: 0.25rem 0 0; }
.hose-type-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 0.2rem 0.9rem; text-align: left; text-decoration: none; color: inherit;
  min-height: 148px; padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); box-shadow: 0 10px 24px rgba(32, 36, 39, 0.05);
  align-content: start;
}
.hose-type-card .hose-type-ic {
  grid-row: 1 / span 4; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px; background: var(--orange-soft); color: var(--orange-dark);
}
.hose-type-card:hover { border-color: var(--orange); color: inherit; text-decoration: none; transform: translateY(-1px); }
.hose-type-card b { font-size: 1.4rem; letter-spacing: -0.02em; }
.hose-type-card small { color: var(--muted); line-height: 1.45; }
.hose-type-card .pick-go {
  margin-top: 0.45rem; font-weight: 800; color: var(--orange-dark); font-size: 13px;
}
.hose-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 0.7rem; margin: 0.25rem 0 0; }
.hose-dash-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  min-height: 100px; padding: 0.8rem 0.5rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); color: inherit; text-decoration: none; font: inherit; cursor: pointer;
  box-shadow: 0 8px 16px rgba(32, 36, 39, 0.04);
}
.hose-dash-btn b { font-size: 1.25rem; }
.hose-dash-btn small { color: var(--muted); font-size: 11px; }
.hose-dash-btn.ready { border-color: var(--orange); background: var(--orange-soft); }
.hose-dash-btn:hover { border-color: var(--orange); text-decoration: none; color: inherit; }
.hose-brand-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.hose-brand-bar button {
  padding: 0.55rem 0.9rem; border: 1px solid var(--line); background: var(--wash);
  font-weight: 700; cursor: pointer; border-radius: 999px;
}
.hose-brand-bar button.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.hose-pick-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 0.65rem; align-items: center;
  width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper);
  padding: 0.55rem 0.7rem; cursor: pointer; color: inherit; font: inherit; border-radius: 10px;
}
.hose-pick-row:hover, .hose-pick-row.active { border-color: var(--orange); background: var(--orange-soft); }
.hose-pick-row b { display: block; font-size: 13px; }
.hose-pick-row small { color: var(--muted); font-size: 12px; }
.hose-field { margin: 0 0 0.75rem; }
.hose-field > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-dark); margin: 0 0 0.3rem; }
.hose-clock { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.45rem; }
.hose-clock button {
  min-height: 48px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 800;
  border-radius: 12px;
}
.hose-clock button.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.hose-clock-note { font-size: 13px; color: var(--muted); margin: 0 0 0.65rem; text-align: center; }
.hose-clock-face {
  position: relative; width: min(300px, 84vw); aspect-ratio: 1; margin: 0.4rem auto 0.2rem;
  border-radius: 50%; border: 2px solid var(--line); background:
    radial-gradient(circle at 50% 50%, #fff 0 38%, var(--wash) 39% 100%);
  box-shadow: inset 0 0 0 18px var(--paper);
}
.hose-clock-hub {
  position: absolute; inset: 34%; display: grid; place-items: center; text-align: center;
  border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark);
  font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase;
}
.hose-clock-h {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid var(--line); background: var(--paper); border-radius: 50%;
  font-weight: 800; cursor: pointer;
  transform: rotate(var(--a, 0deg)) translateY(-118px) rotate(calc(-1 * var(--a, 0deg)));
}
.hose-clock-h.active, .hose-clock-h:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.hose-clock-h12 { --a: 0deg; } .hose-clock-h1 { --a: 30deg; } .hose-clock-h2 { --a: 60deg; }
.hose-clock-h3 { --a: 90deg; } .hose-clock-h4 { --a: 120deg; } .hose-clock-h5 { --a: 150deg; }
.hose-clock-h6 { --a: 180deg; } .hose-clock-h7 { --a: 210deg; } .hose-clock-h8 { --a: 240deg; }
.hose-clock-h9 { --a: 270deg; } .hose-clock-h10 { --a: 300deg; } .hose-clock-h11 { --a: 330deg; }
.hose-std-box { display: grid; gap: 0.45rem; margin: 0.85rem 0 0; }
.hose-std-box input { font: inherit; padding: 0.65rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; }
.hose-progress {
  display: grid; gap: 0.45rem; margin: 0 0 1rem;
  font-weight: 700; color: var(--orange-dark); letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px;
}
.hose-progress-bar { display: block; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.hose-progress-bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.hose-busy { overflow: hidden; }
.hose-busy i { width: 36%; animation: hose-busy 0.95s ease-in-out infinite; }
@keyframes hose-busy { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
.hose-busy-hero { min-height: 140px; }
.hose-fit-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .hose-fit-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hose-bucket {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  min-width: 0;
}
.hose-bucket-h {
  display: flex; align-items: center; gap: 0.4rem;
  margin: 0; padding: 0.4rem 0.55rem;
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
  background: var(--wash); border-bottom: 1px solid var(--line);
}
.hose-bucket-h img { width: 22px; height: 22px; object-fit: contain; }
.hose-bucket-h small {
  margin-left: auto; font-size: 10px; font-weight: 700; color: var(--muted);
  background: var(--paper); border-radius: 99px; padding: 0.1rem 0.4rem;
}
.hose-bucket-block + .hose-bucket-block { border-top: 1px solid var(--line); }
.hose-bucket-sub {
  margin: 0; padding: 0.28rem 0.55rem 0.1rem;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.hose-bucket .hose-row-list { border-top: 0; }
.catalog-style { margin: 0 0 1.15rem; }
.catalog-style .family-hero { margin-bottom: 0.45rem; }
.catalog-style-stack { display: flex; flex-direction: column; gap: 0.4rem; }
.ff-hero-glyph { display: flex; align-items: center; justify-content: center; }
.ff-hero-glyph .ff-ic { width: 64px; height: 64px; }
.price-cell.pending { color: var(--muted); letter-spacing: 0.08em; }
.he-type {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}
.he-type-h {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0; padding: 0.55rem 0.75rem;
  font-size: 15px; font-weight: 800;
  background: var(--wash); border-bottom: 1px solid var(--line);
}
.he-type-h img { width: 36px; height: 36px; object-fit: contain; background: var(--paper); border-radius: 6px; }
.he-type-h small {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--paper); border-radius: 99px; padding: 0.12rem 0.45rem;
}
.he-type-table th { position: sticky; top: 0; z-index: 2; background: #f4f1ec; }
.he-type-table .he-photo { width: 3.2rem; }
.he-type-table .he-photo .item-ic { width: 2.4rem; height: 2.4rem; }
.he-type-table .item-open { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; text-align: left; }
.he-type-table .item-open small { color: var(--muted); font-weight: 500; }
.hose-fit-ic { background: var(--wash); }
.hose-steps {
  display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0;
}
.hose-steps li {
  padding: 0.28rem 0.55rem; border-radius: 99px; background: var(--wash);
  color: var(--muted); font-size: 11px; letter-spacing: 0.02em; text-transform: none; font-weight: 700;
}
.hose-steps li.done { background: #e8f6ee; color: var(--ok); }
.hose-steps li.now { background: var(--orange); color: #fff; }
.hose-nav-row {
  display: flex; gap: 0.55rem; margin: 1.2rem 0 0; padding: 0.75rem 0 0.15rem;
  position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--wash) 18%);
  z-index: 6;
}
.hose-nav-row .action-btn, .hose-nav-row .ghost-btn { width: auto; min-width: 7.5rem; min-height: 46px; border-radius: 12px; }
.hose-wizard { display: grid; gap: 0.85rem; max-width: 880px; }
.hose-step {
  background: var(--paper); border: 1px solid var(--line); padding: 0.85rem 0.95rem;
}
.hose-step h2 { margin: 0 0 0.2rem; font-size: 1rem; }
.hose-step .also { margin: 0 0 0.65rem; }
/* Tighter than the original 250px/0.7rem: a size folder of fittings was several screens
   of scrolling. Cards stay for browsing; the List toggle is the low-scroll option. */
.hose-brand-grid, .hose-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 0.45rem; }

.hose-view-toggle {
  display: flex; align-items: center; gap: 0.35rem; margin: 0 0 0.6rem;
}
.hose-view-toggle span {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--muted); margin-right: 0.1rem;
}
.hose-view-toggle .ghost-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.hose-row-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hose-row-pick {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0.45rem; align-items: center; width: 100%; text-align: left;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 0.28rem 0.5rem; cursor: pointer; color: inherit; font: inherit;
}
.hose-row-pick:hover { background: var(--orange-soft); }
.hose-row-pick.active { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.hose-row-pick .hose-fit-ic, .hose-row-pick .hose-opt-ic {
  width: 28px; height: 28px; border-radius: 5px;
}
.hose-row-pick .hrp-copy { display: grid; gap: 0.05rem; min-width: 0; }
.hose-row-pick .hrp-copy b {
  font-size: 12px; font-weight: 700; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hose-row-pick .hrp-copy small { color: var(--muted); font-size: 11px; }
.hose-row-pick .hrp-price { font-weight: 800; font-size: 13px; white-space: nowrap; }
.hose-reset { margin-left: auto; }
.hose-card-spec { display: block; color: var(--orange-dark); font-weight: 700; line-height: 1.35; white-space: normal; }
.hose-card-price { display: block; margin-top: 0.2rem; font-weight: 800; color: var(--ink); }
.hose-fit-ic { width: 64px; height: 64px; border-radius: 10px; background: #f3f4f5; display: grid; place-items: center; overflow: hidden; }
.hose-fit-ic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hose-fit-card { align-items: start; padding: 0.7rem 0.8rem; }
.hose-fit-copy { display: grid; gap: 0.12rem; min-width: 0; }
.hose-fit-copy b { font-size: 13px; font-weight: 700; line-height: 1.25; }
.hose-fit-size { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.hose-fit-thread { color: var(--muted); font-size: 12px; }
.hose-fit-sku { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--muted); }
.hose-crimp-sys { display: block; color: var(--orange-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.hose-crimp-note { max-width: 42rem; }
.thread-chart {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem; margin: 0 0 1.1rem;
}
.thread-chart section {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.85rem;
}
.thread-chart h3 { margin: 0 0 0.45rem; font-size: 13px; color: var(--orange-dark); }
.thread-chart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.28rem; }
.thread-chart li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 13px; }
.thread-chart li span { color: var(--muted); text-align: right; }
.thread-chart-inline {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 0.25rem;
  grid-template-columns: none;
}
.thread-chip {
  display: inline-flex; flex-direction: column; gap: 0.08rem;
  border: 1px solid var(--line); background: var(--wash);
  padding: 0.28rem 0.5rem; border-radius: 3px; max-width: 100%;
}
.thread-chip b { font-size: 11px; color: var(--orange-dark); font-weight: 800; }
.thread-chip span {
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.25;
}
.family-body-sheet,
.sheet-wrap.family-body-sheet,
.sheet-wrap.results-scroll {
  overflow: visible;
  max-height: none;
}
.results-scroll {
  overflow: visible;
  max-height: none;
  margin-bottom: 18vh;
  border: 1px solid var(--line);
  background: var(--paper);
}
table.adapter-results { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.adapter-results th, table.adapter-results td {
  border-bottom: 1px solid var(--line); padding: 0.28rem 0.4rem; white-space: normal; vertical-align: middle; text-align: left;
}
table.adapter-results thead th {
  position: sticky; top: calc(var(--chrome-h, 96px) + var(--family-h, 0px)); z-index: 5;
  background: var(--wash); color: var(--muted);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800;
  white-space: nowrap; box-shadow: 0 1px 0 var(--line); padding: 0.35rem 0.4rem;
}
.app-chrome.is-away ~ .shell table.adapter-results thead th { top: var(--family-h, 0px); }
table.adapter-results tbody tr:hover, table.adapter-results tbody tr.open-row { background: var(--orange-soft); }
table.adapter-results .col-part { width: 22%; white-space: normal; overflow-wrap: anywhere; }
table.adapter-results .col-stock { width: 92px; white-space: nowrap; }
table.adapter-results .col-price { width: 84px; white-space: nowrap; text-align: right; }
table.adapter-results .col-add { width: 118px; white-space: nowrap; }
table.adapter-results .col-end { width: auto; overflow-wrap: anywhere; }
table.adapter-results .col-wide,
table.adapter-results .col-desc { width: auto; min-width: 0; overflow-wrap: anywhere; }
table.adapter-results th.col-add { text-align: center; }
.col-part { min-width: 0; }
.col-part .photo-frame.sm { width: 36px; height: 28px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.col-part .photo-frame.sm img { max-height: 28px; }
.part-copy {
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0.15rem;
  align-items: flex-start; min-width: 0; width: auto;
}
.part-copy .item-sku-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.part-copy .item-sku-line b { font-size: 12.5px; }
.part-copy small { color: var(--muted); }
.part-copy .details-btn {
  flex: 0 0 auto; min-height: 26px; padding: 0.12rem 0.4rem; font-size: 11px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 2px;
}
.part-copy .details-btn:hover, .part-copy .details-btn.active {
  border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft);
}
.end-cell b { display: block; font-size: 12px; font-weight: 650; line-height: 1.25; }
.end-cell small { color: var(--muted); font-size: 11px; }
table.adapter-results .col-add .qty-add {
  display: inline-flex; gap: 0.3rem; align-items: center; justify-content: center;
}
table.adapter-results .col-add .qty {
  width: 44px; min-height: 28px; padding: 0.15rem 0.25rem; text-align: center;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
}
table.adapter-results .col-add .add-btn {
  min-height: 28px; padding: 0.15rem 0.65rem; font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em; border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--orange) 70%, var(--line));
  background: var(--paper); color: var(--orange-dark);
}
table.adapter-results .col-add .add-btn:hover {
  background: var(--orange); color: #fff; border-color: var(--orange); filter: none;
}
.hose-chip, .hose-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 0.75rem; align-items: center;
  border: 1px solid var(--line); background: var(--paper); padding: 0.85rem 0.95rem;
  text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: 14px;
  min-height: 80px; box-shadow: 0 8px 16px rgba(32, 36, 39, 0.04);
}
.hose-chip { grid-template-columns: 1fr; }
.hose-card .item-ic, .hose-chip .item-ic { width: 56px; height: 56px; border-radius: 8px; }
.hose-card b, .hose-chip b { font-size: 14px; line-height: 1.3; }
.hose-card small, .hose-chip small { color: var(--muted); font-size: 12px; }
.hose-card.active, .hose-chip.active { border-color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange); }
.hose-brand-card { grid-template-columns: 1fr; min-height: 88px; justify-items: start; }
.hose-step label { display: grid; gap: 0.25rem; font-size: 12px; font-weight: 700; margin: 0 0 0.55rem; }
.hose-step select, .hose-step input, .hose-step textarea {
  font: inherit; font-weight: 500; padding: 0.5rem 0.6rem; border: 1px solid var(--line);
}
.hose-step textarea { min-height: 4.5rem; resize: vertical; }
.hose-length-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: end; }
.hose-length-row label { display: grid; gap: 0.35rem; font-size: 12px; font-weight: 700; color: var(--muted); }
.hose-length-row input { font: inherit; font-size: 1.15rem; padding: 0.7rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; }
.hose-build-summary {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--orange);
  padding: 1.1rem 1.15rem; border-radius: 16px;
}
.hose-build-summary ul { margin: 0.15rem 0 0.95rem; padding: 0; list-style: none; display: grid; gap: 0; }
.hose-build-summary li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.hose-build-summary li span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.hose-build-summary li b { font-weight: 700; text-align: right; }
.hose-build-summary .action-btn { width: 100%; min-height: 48px; border-radius: 12px; }
.hose-phasing {
  font-size: 12px; color: var(--muted); margin: 0.55rem 0 0; line-height: 1.45;
}
.cart-desk { max-width: 1680px; }
.cart-qty { width: 4.5rem; }
.cart-totals {
  display: grid; gap: 0.35rem; justify-items: end;
  max-width: 1680px; margin: 0.75rem 0 1.25rem;
  padding: 0.75rem 0.9rem; background: var(--paper); border: 1px solid var(--line);
}
.cart-totals > div { display: flex; gap: 1.5rem; align-items: baseline; min-width: 16rem; justify-content: space-between; }
.cart-totals .cart-grand { font-size: 1.05rem; }
.customer-summary {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  margin: 0 0 0.9rem; padding: 0.65rem 0.8rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; color: var(--muted);
}
.customer-summary b { color: var(--ink); font-size: 15px; }
.acct-home { margin-bottom: 1.25rem; }
.acct-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px;
}
.acct-stat, .acct-panel {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--orange);
  padding: 0.7rem 0.85rem; min-width: 0;
}
.acct-k {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange-dark);
}
.acct-stat b { display: block; margin: 0.15rem 0 0.1rem; font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.acct-stat small { color: var(--muted); font-size: 12px; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr); gap: 10px; margin: 0 0 10px; }
.acct-panel { border-top-width: 1px; }
.acct-panel h3 { margin: 0 0 0.55rem; font-size: 14px; font-weight: 800; color: var(--ink); }
.acct-chart {
  display: flex; align-items: stretch; gap: 6px; min-height: 148px; padding-top: 4px;
}
.acct-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.acct-bar-val { font-size: 10px; font-weight: 700; color: var(--muted); min-height: 14px; }
.acct-bar-plot { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; background: var(--wash); border: 1px solid var(--line); min-height: 96px; }
.acct-bar-fill { display: block; width: 100%; background: var(--orange); opacity: 0.72; min-height: 0; }
.acct-bar.is-now .acct-bar-fill { opacity: 1; background: var(--orange-dark); }
.acct-bar.is-now .acct-bar-val { color: var(--orange-dark); }
.acct-bar-mo { font-size: 10px; font-weight: 700; color: var(--ink); text-align: center; }
.acct-cat { display: grid; grid-template-columns: minmax(92px, 0.9fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; margin: 0 0 8px; }
.acct-cat-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.acct-cat-track { height: 10px; background: var(--wash); border: 1px solid var(--line); }
.acct-cat-track span { display: block; height: 100%; background: var(--orange); }
.acct-cat-amt { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.acct-table { width: 100%; margin-top: 0.2rem; }
.acct-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.7rem 0 0; }
.acct-home > .acct-panel + .acct-panel { margin-top: 10px; }
.customer-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.55rem; margin: 0 0 0.65rem;
}
.customer-toolbar-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.history-sort {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.history-sort select {
  min-height: 34px; padding: 0.3rem 0.55rem; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: 13px;
  border-radius: 3px;
}
.consumption-scroll {
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--line);
  background: var(--paper);
}
.consumption-table { width: 100%; table-layout: fixed; min-width: 0; border-collapse: separate; border-spacing: 0; }
.consumption-table th, .consumption-table td {
  vertical-align: middle; padding: 0.4rem 0.45rem; border-bottom: 1px solid var(--line);
}
.consumption-table thead th {
  position: sticky; top: var(--chrome-h, 96px); z-index: 3;
  background: var(--wash); color: var(--muted);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800;
  white-space: nowrap; box-shadow: 0 1px 0 var(--line);
}
.app-chrome.is-away ~ .shell .consumption-table thead th { top: 0; }
.consumption-table .col-photo { width: 44px; }
.consumption-table .col-sku { width: 13%; white-space: normal; overflow-wrap: anywhere; }
.consumption-table .col-desc { width: auto; min-width: 0; overflow-wrap: anywhere; }
.consumption-table .col-cat { width: 7rem; font-size: 12px; color: var(--muted); white-space: normal; }
.consumption-table .col-num { width: 4.8rem; text-align: right; white-space: nowrap; }
.consumption-table .col-often { width: 7.2rem; white-space: nowrap; }
.consumption-table .col-date { width: 8.6rem; white-space: nowrap; font-size: 12px; }
.consumption-table .col-add { width: 11rem; white-space: nowrap; }
.quote-scroll { max-width: 100%; overflow-x: auto; }
.consumption-table th.col-num, .consumption-table td.col-num { text-align: right; }
.consumption-table td.col-add .qty-add {
  display: inline-flex; align-items: center; gap: 0.3rem; justify-content: flex-end; width: 100%;
}
.consumption-table td.col-add .qty { width: 3.2rem; min-height: 32px; }
.consumption-table td.col-add .add-btn { min-height: 32px; padding: 0.25rem 0.55rem; }
.bins-table td:nth-child(5), .bins-table th:nth-child(5),
.bins-table td:nth-child(6), .bins-table th:nth-child(6) { text-align: right; white-space: nowrap; }
.customer-bar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff7f0 0%, var(--wash) 100%);
}
.customer-bar[hidden] { display: none !important; }
.customer-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem;
  padding: 0.45rem 1rem; max-width: 1400px; margin: 0 auto;
  font-size: 13px;
}
.customer-bar .cb-kicker {
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; color: var(--muted); font-weight: 600;
}
.customer-bar strong { color: var(--ink); font-size: 14px; }
.customer-bar .cb-meta { color: var(--muted); }
.history-fold { border: 1px solid var(--line); background: var(--paper); margin: 0 0 0.55rem; }
.history-fold > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.4rem 0.6rem; cursor: pointer; list-style: none; font-size: 13px;
}
.history-fold > summary::-webkit-details-marker { display: none; }
.history-fold > summary span {
  color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.history-fold[open] > summary { border-bottom: 1px solid var(--line); }
.history-fold .customer-profile { margin: 0; border: 0; }
.history-assign, .history-retrieve, .history-idle {
  background: var(--paper); border: 1px solid var(--line); padding: 0.85rem 0.95rem; margin: 0 auto 1rem; max-width: 1680px;
}
.history-assign-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.65rem;
}
.history-assign-head .also { margin: 0.2rem 0 0; }
.history-bound { display: grid; gap: 0.1rem; text-align: right; }
.history-bound-name { font-weight: 700; color: var(--ink); }
.history-bound-id { font-family: ui-monospace, Consolas, monospace; color: var(--muted); font-size: 12px; }
.history-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.65rem; }
.history-quick .ghost-btn small { color: var(--muted); margin-left: 0.25rem; }
.history-retrieve {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0.65rem 0.85rem;
}
.history-months { display: grid; gap: 0.25rem; font-size: 13px; min-width: 10rem; }
.history-months select {
  padding: 0.5rem 0.55rem; border: 1px solid var(--line); background: var(--wash); font: inherit;
}
.history-retrieve .action-btn { width: auto; padding: 0.55rem 1rem; }
.history-open-btn.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.status-chip {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--wash); border: 1px solid var(--line);
}
.status-chip.outstanding { color: #9c3b0d; background: #fff1e6; border-color: #f0c19a; }
.status-chip.past-due { color: #fff; background: var(--danger); border-color: var(--danger); }
.status-chip.paid { color: #0d5c32; background: #d8f3e4; border-color: #1a7f4b; }
.status-chip.open-order { color: #1d4e89; background: #e8f1fb; border-color: #b5cce8; }
.history-add-qty { width: 4.5rem; }
.history-idle p { margin: 0 0 0.45rem; }
.folder-list { display: grid; gap: 0.4rem; margin: 0 0 1rem; max-width: 760px; }
.review-card.ok { border-top: 3px solid var(--ok); }
.review-card.block { border-top: 3px solid var(--danger); }
.review-card.warn { border-top: 3px solid var(--warn); }
.review-list { margin: 0.4rem 0 0.7rem; padding-left: 1.1rem; }
.review-list.block { color: var(--danger); }
.review-list.warn { color: var(--warn); }
/* Staff/house links (organizer, folders, specials, customers, order desk) no longer sit
   permanently in the primary shopping rail — they live in the More sheet, reachable from
   the bottom nav on mobile, without competing with the buyer's category list. */
.house-nav { display: none; }
.home-links { margin: 0.9rem 0 0; color: var(--muted); }
.action-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.85rem 0 1.1rem; }
.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0.45rem 0.9rem; border: 0;
  background: var(--orange); color: var(--ink); font-weight: 800; text-decoration: none;
}
.action-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.action-btn:hover { filter: brightness(1.06); text-decoration: none; }
.inactive-sku td { color: var(--muted); }
pre.result { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); padding: 0.7rem; font-size: 12px; }
.coming { border: 1px solid var(--line); padding: 0.8rem 0.9rem; background: var(--paper); max-width: 640px; }
.coming b { color: var(--orange-dark); }

.shop-hero {
  background: linear-gradient(180deg, var(--orange-soft) 0%, var(--paper) 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  padding: 1.15rem 1.2rem 1rem;
  margin: 0 0 1.1rem;
}
.shop-hero h1.page { font-size: clamp(1.6rem, 3vw, 2.15rem); max-width: 34rem; }
.shop-hero .home-search { margin: 0.85rem 0 0; max-width: 34rem; }
.shop-hero .action-row { margin-bottom: 0; }
.section-head { margin: 0 0 0.7rem; }
.section-head h2 { margin: 0 0 0.15rem; font-size: 1.15rem; }
.section-head p { margin: 0; color: var(--muted); }
.promo-strip { margin: 0 0 1.25rem; }
.promo-grid, .dept-grid, .family-grid {
  display: grid;
  gap: 0.7rem;
}
.promo-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.dept-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
/* Home's master-category tiles: 3 columns on desktop, 2 on mobile, per the brief. */
.home-dept-grid { grid-template-columns: repeat(3, 1fr); margin: 0 0 1.1rem; }
@media (max-width: 860px) { .home-dept-grid { grid-template-columns: repeat(2, 1fr); } }
.buy-again-card.sm { max-width: 320px; padding: 0.6rem 0.75rem; margin: 0 0 1.3rem; }
.family-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.promo-card, .dept-card, .family-tile {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  padding: 0.85rem 0.9rem;
  min-height: 88px;
}
.hose-cat-tile {
  border-color: var(--orange);
  background: linear-gradient(165deg, #fff7f0 0%, var(--paper) 72%);
}
.hose-cat-kinds { margin: 0.4rem 0 1.2rem; }
.promo-card { border-top: 3px solid var(--orange); background: var(--orange-soft); }
.promo-card:hover, .dept-card:hover, .family-tile:hover {
  border-color: var(--orange);
  color: inherit;
  text-decoration: none;
}
.promo-card b, .dept-card b, .family-tile b { color: var(--ink); font-size: 1.02rem; }
.promo-card small, .dept-card small, .family-tile small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
}
.dept-card.with-photo {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
}
.dept-card.with-photo .photo-frame {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft, #f4f4f4);
}
.dept-card.with-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.family-tile {
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}
.family-tile .photo-frame {
  width: 78px;
  height: 58px;
  background: #fff;
}
.family-tile-copy { min-width: 0; }
.family-tile-copy strong { color: var(--orange-dark); font-size: 12px; }
.family-tile .xref { color: var(--orange-dark); font-size: 11px; }

/* Fastener-style folder browse: chips first, compact stocked rows, no 400-SKU dump. */
.ff-browse { margin: 0 0 1.2rem; }
.ff-browse .wide-search { margin: 0 0 0.7rem; }
.ff-facet { margin: 0 0 0.55rem; }
.ff-facet > b {
  display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.3rem;
}
.ff-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; max-height: 8.5rem; overflow: auto; }
.rail .ff-browse { margin: 0; }
.rail .ff-chips { display: none; }
.rail .ff-list, .rail .ff-row { display: none; }
.rail-fastener-nav { display: grid; margin: 0 0 0.85rem; }
.rail-fastener-nav a {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.32rem 0.45rem; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: inherit; text-decoration: none; font-weight: 500;
}
.rail-fastener-nav a:hover, .rail-fastener-nav a.active {
  border-color: var(--line); background: var(--orange-soft); color: var(--orange-dark); font-weight: 800;
}
.ff-box {
  max-height: 14.5rem; overflow: auto;
  border: 1px solid var(--line); background: #fff;
}
.ff-box .ff-links { display: grid; }
.ff-links { display: grid; }
.ff-link {
  display: flex; justify-content: space-between; align-items: center; gap: 0.55rem;
  width: 100%; padding: 0.32rem 0.45rem; border: 0; border-bottom: 1px solid var(--line);
  background: none; border-radius: 0; color: inherit; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; text-align: left;
}
.ff-link:last-child, .rail-fastener-nav a:last-child { border-bottom: 0; }
.ff-link-main { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.ff-link-main > span { min-width: 0; }
.ff-ic {
  flex: 0 0 auto; width: 28px; height: 28px;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.ff-ic .item-ic { width: 26px; height: 26px; border: 0; }
.ff-ic .item-ic::before { font-size: 12px; }
.ff-ic-glyph { color: #2b3036; }
.ff-glyph { width: 20px; height: 20px; display: block; }
.ff-link small { color: var(--muted); font-weight: 600; }
.ff-link:hover { color: var(--orange-dark); background: var(--wash); }
.ff-link.active { font-weight: 800; color: var(--orange-dark); background: var(--orange-soft); }
.ff-more {
  display: block; width: 100%; padding: 0.28rem 0.45rem; border: 0; background: none;
  color: var(--orange-dark); font: inherit; font-size: 12px; font-weight: 700;
  text-align: left; cursor: pointer;
}
.qh-debug {
  position: fixed; right: 10px; bottom: 10px; z-index: 80;
  width: min(320px, calc(100vw - 20px));
  padding: 0.55rem 0.65rem; border: 1px solid #1c2a3a;
  background: #0f1720; color: #d7e6f5; font: 11px/1.35 ui-monospace, Consolas, monospace;
}
.qh-debug b { display: block; margin: 0 0 0.35rem; color: #ffb84a; }
.qh-debug div { word-break: break-word; }
.ff-chip {
  display: inline-flex; align-items: center; gap: 0.28rem;
  min-height: 32px; padding: 0.25rem 0.55rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; border-radius: 999px;
}
.ff-chip small { color: var(--muted); font-weight: 600; }
.ff-chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.ff-chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.ff-chip.active small { color: #ffe8d6; }
.ff-browse-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; margin: 0.35rem 0 0.7rem; }
.ff-list { display: grid; gap: 0.4rem; }
.ff-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 64px auto;
  gap: 0.45rem; align-items: center;
  border: 1px solid var(--line); background: var(--paper);
  padding: 0.45rem 0.55rem;
}
.ff-row .ff-copy { min-width: 0; }
.ff-row .ff-copy b { display: block; font-size: 12px; }
.ff-row .ff-copy small { display: block; color: var(--muted); font-size: 11px; }
.ff-row .qty { width: 56px; min-height: 34px; }
.stock-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #c5c8cb; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d8dbde;
  flex: 0 0 auto;
}
.stock-dot.in-stock { background: var(--ok); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #b7e0c8; }
.stock-dot.special { background: var(--warn); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f3d7b0; }
.stock-dot.catalog-only { background: #7b8086; }
.stock-dot.unknown { background: #c5c8cb; }
.stock-mark {
  display: inline-flex; align-items: center; gap: 0.28rem;
  font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap;
  color: var(--muted); vertical-align: middle;
}
.stock-mark.in-stock { color: #1f7a45; }
.stock-mark.special { color: #8a5a12; }
.stock-mark.catalog-only { color: #5c6166; }
.stock-mark .stock-qty { font-variant-numeric: tabular-nums; }
.family-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.family-hero .photo-frame { width: 120px; height: 90px; background: #fff; }
.family-hero-copy .page { font-size: 1.35rem; margin: 0 0 0.15rem; }
.family-hero-copy .also { margin: 0 0 0.2rem; }
.xref-line { margin: 0.35rem 0 0; color: var(--muted); font-size: 12px; }
.xref-line span {
  display: inline-block;
  margin: 0.2rem 0.3rem 0 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--ink);
  font-size: 12px;
}
@media (max-width: 860px) {
  .family-hero { grid-template-columns: 1fr; }
  .family-hero .photo-frame { width: 100%; height: 110px; }
  .family-grid, .dept-grid, .promo-grid, .home-dept-grid, .cust-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .family-tile, .dept-card, .promo-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0.35rem 0.4rem 0.4rem;
    min-height: 0;
    gap: 0.12rem;
  }
  .family-tile .photo-frame, .dept-card.with-photo .photo-frame {
    width: 42px;
    height: 34px;
    overflow: hidden;
    border: 0;
    background: transparent;
  }
  .family-tile .photo-frame img, .dept-card.with-photo .photo-frame img {
    max-width: 40px;
    max-height: 32px;
  }
  .dept-card.with-photo { grid-template-columns: 1fr; }
  .family-tile-copy, .dept-card > span { text-align: center; min-width: 0; width: 100%; }
  .cust-folder-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .cust-folder-grid .dept-card.pick-hit {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    text-align: left; min-height: 58px; padding: 0.7rem 0.8rem; gap: 0.75rem;
  }
  .cust-folder-grid .dept-card > span { width: auto; text-align: left; }
  .cust-folder-grid .pick-copy { flex: 1 1 auto; min-width: 0; }
  .cust-folder-grid .pick-copy b { font-size: 16px; line-height: 1.25; white-space: normal; }
  .cust-folder-grid .pick-copy small { display: block; font-size: 12px; white-space: normal; }
  .cust-folder-grid .pick-go { flex: 0 0 auto; padding: 0.4rem 0.65rem; }
  .family-tile b, .dept-card b, .promo-card b { font-size: 12px; line-height: 1.15; }
  .family-tile small, .dept-card small, .promo-card small {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .family-tile .thread-badges, .dept-card .thread-badges, .family-tile .xref { display: none; }
  .family-tile-copy strong { font-size: 11px; }
  .ff-chip { min-height: 34px; font-size: 12px; padding: 0.3rem 0.6rem; }
  .ff-row { grid-template-columns: auto minmax(0, 1fr) 54px auto; padding: 0.4rem 0.45rem; }
  .ff-row .add-btn { min-height: 34px; padding: 0.3rem 0.55rem; }
}

.filters-toggle { display: none; }
.rail-sheet-head, .rail-sheet-foot { display: none; }
.bottom-nav { display: none; }
.bottom-nav > [data-bottom="more"] { display: none; }
[inert] { pointer-events: none !important; user-select: none; }

/* More panel: a small anchored dropdown, becomes a full-width bottom sheet on mobile
   (see the media query below). Opened from the bottom nav. */
.more-sheet.hidden { display: none; }
.more-sheet {
  display: flex; flex-direction: column;
  position: fixed; top: 56px; right: 12px; z-index: 50; width: 220px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(32, 36, 39, 0.14);
}
.more-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line);
}
.more-sheet a {
  padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); color: var(--ink);
  text-decoration: none;
}
.more-sheet a:last-child { border-bottom: 0; }
.more-sheet a:hover { color: var(--orange); }

@media (max-width: 860px) {
  /* Two-row phone chrome: Back + logo + customer + Cart, then search.
     The old third customer row plus a 49px logo ate the first screen. */
  .top {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    row-gap: 0.3rem;
    column-gap: 0.35rem;
    padding: 0.3rem 0.5rem 0.35rem;
  }
  .nav-back { display: none; }
  .mark { grid-column: 1; grid-row: 1; }
  .header-customer {
    display: flex !important; grid-column: 2; grid-row: 1;
    min-width: 0; max-width: none; min-height: 36px;
    padding: 0.15rem 0.45rem; align-items: center; gap: 0.35rem;
    border-color: var(--orange); background: var(--orange-soft);
  }
  .header-customer .hc-ic { font-size: 18px; }
  .header-customer .hc-kicker, .header-customer .hc-meta { display: none; }
  .header-customer .hc-change-kicker {
    display: block; font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--orange-dark); font-weight: 800;
  }
  .header-customer strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .header-customer-change { display: none; }
  .header-admin-link {
    display: inline-flex; grid-column: 3; grid-row: 1; align-self: center; justify-self: end;
    align-items: center; justify-content: center;
    min-height: 36px; min-width: 44px; padding: 0.2rem 0.5rem;
    border: 1px solid var(--orange); background: var(--orange-soft);
    color: var(--orange-dark); font-weight: 800; font-size: 12px;
    text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
  }
  .header-admin-link:hover { color: var(--orange-dark); text-decoration: none; }
  .header-admin-link.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
  .cart-link { grid-column: 4; grid-row: 1; justify-self: end; min-height: 48px; display: flex; align-items: center; font-size: 13px; padding: 0.2rem 0.5rem; }
  .cart-ic { font-size: 28px; }
  .cart-copy { font-size: 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .search input { padding: 0.4rem 0.55rem; font-size: 16px; }
  .search button { min-width: 44px; padding: 0.4rem 0.7rem; }
  .hose-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
  .hose-brand-grid, .hose-choice-grid, .hose-fit-lists { grid-template-columns: 1fr; }
  .hose-type-card { min-height: 0; padding: 0.7rem 0.75rem; grid-template-columns: 40px 1fr; }
  .hose-type-card b { font-size: 1.05rem; }
  .hose-type-card .hose-type-ic { width: 40px; height: 40px; font-size: 18px; }
  .hose-dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hose-clock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hose-clock-face { width: min(280px, 88vw); }
  .hose-clock-h { width: 40px; height: 40px; margin: -20px 0 0 -20px; transform: rotate(var(--a, 0deg)) translateY(-108px) rotate(calc(-1 * var(--a, 0deg))); }
  .hose-length-row { grid-template-columns: 1fr; }
  .hose-nav-row {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    margin-left: -0.4rem; margin-right: -0.4rem; padding: 0.55rem 0.45rem;
    background: var(--paper); border-top: 2px solid var(--orange);
    box-shadow: 0 -6px 16px rgba(32, 36, 39, 0.08);
    z-index: 35;
  }
  .hose-nav-row .action-btn, .hose-nav-row .ghost-btn { flex: 1; }
  /* minmax(0,...) instead of 1fr: a bare 1fr track floors at the content's min-content
     width, so one wide table dragged the whole page out to ~830px and every section
     inherited it. Wide content now scrolls inside its own box. */
  .shell { grid-template-columns: minmax(0, 1fr); }
  #stage { min-width: 0; }
  .suggest { left: 8px; right: 8px; top: calc(var(--chrome-h, 132px) + 4px); }
  .product-row, a.product-row { grid-template-columns: 72px 1fr; }
  .product-buy { grid-column: 2; }
  .detail-panel { grid-template-columns: 1fr; }

  /* Bottom padding so fixed bottom nav never covers the last row of content or the
     mobile filters-toggle bar. Extra room for the hose Back/Next strip. */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .hose-app { padding-bottom: 4.5rem; }
  h1.page { font-size: 1.2rem; }
  .shop-hero, .hose-hero, .family-hero { padding: 0.7rem 0.75rem; }
  .shop-hero h1.page, .hose-hero h1.page { font-size: 1.25rem; }
  #stage { padding: 0.65rem 0.65rem 8rem; }

  /* Filters + Sort become a compact sticky bar directly above the result list, and the
     rail itself becomes a bottom sheet instead of a permanent sidebar. */
  .filters-toggle {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    position: sticky; top: var(--chrome-h, 96px); z-index: 19;
    width: 100%; border: 0; border-bottom: 2px solid #1c140c;
    background: var(--orange); color: #1c140c; padding: 0.35rem 0.55rem; font-weight: 800; cursor: pointer;
    min-height: 40px; font-size: 14px; letter-spacing: 0.01em;
  }
  .filters-toggle-ic {
    width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  }
  .filters-toggle-count {
    background: var(--orange); color: var(--ink); font-size: 11px; font-weight: 800;
    padding: 0.05rem 0.4rem; min-width: 1.1rem; border-radius: 2px;
  }
  .filters-toggle-count:empty { display: none; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 82vh; transform: translateY(100%);
    transition: transform 0.22s ease-out;
    z-index: 45; border-right: 0; border-top: 1px solid var(--line);
    box-shadow: 0 -10px 26px rgba(32, 36, 39, 0.2);
    display: flex; flex-direction: column; padding: 0;
  }
  .rail.open { transform: translateY(0); }
  .rail-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); flex: 0 0 auto;
  }
  .rail-sheet-head-actions { display: flex; gap: 0.5rem; align-items: center; }
  .rail-sheet-head-actions .ghost-btn { min-height: 36px; }
  .rail-body-scroll { overflow: auto; flex: 1 1 auto; padding: 0.6rem 0.9rem; -webkit-overflow-scrolling: touch; }
  .rail-sheet-foot {
    display: block; padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); flex: 0 0 auto; background: var(--paper);
  }
  .rail-sheet-foot .action-btn { width: 100%; min-height: 44px; }
  /* The mobile filter sheet is attribute controls only — category nav and staff/house
     links now live in the bottom nav's "More" panel instead of cluttering Filters. */
  .mobile-hide-in-sheet { display: none; }
  .rail-body-scroll .rail-kicker.mobile-only-kicker { display: none; }

  /* Touch targets + iOS zoom prevention across rail/result controls. */
  .rail select, .rail input, .rail-block select { font-size: 16px; min-height: 44px; }
  .chip, .filter-pill, .ghost-btn, .details-btn, .action-btn, .add-btn, .clear-refine { min-height: 44px; }
  .qty-add .qty, table.sheet .qty { min-height: 40px; font-size: 16px; }

  /* Stacked product-row cards instead of a horizontally-scrolling spreadsheet table —
     applies to both the general table.sheet and the adapter-results 6-column table. */
  .sheet-wrap { max-height: none; overflow: visible; border: 0; background: transparent; }
  .results-scroll { overflow: visible; }
  table.sheet, table.adapter-results { width: 100%; table-layout: auto; }
  table.sheet thead, table.adapter-results thead { display: none; }
  table.sheet tbody, table.adapter-results tbody { display: block; }
  table.sheet tr, table.adapter-results tr { display: block; }
  table.sheet tbody tr:not(.group-row):not(.detail-row),
  table.adapter-results tbody tr:not(.group-row):not(.detail-row) {
    display: block; border: 1px solid var(--line); border-radius: 4px;
    background: var(--paper); margin: 0 0 0.6rem; padding: 0.4rem 0.6rem;
  }
  table.sheet td, table.adapter-results td {
    display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
    border: 0; border-bottom: 1px solid var(--line); padding: 0.4rem 0; white-space: normal; width: auto !important;
  }
  table.sheet td:last-child, table.adapter-results td:last-child { border-bottom: 0; }
  table.sheet td[data-label]::before, table.adapter-results td[data-label]::before {
    content: attr(data-label); color: var(--muted); font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.05em; font-weight: 700; flex: 0 0 auto; margin-right: 0.5rem;
  }
  table.sheet td.col-part, table.adapter-results td.col-part {
    flex-direction: column; align-items: flex-start; gap: 0.3rem;
  }
  table.sheet td.col-part::before, table.adapter-results td.col-part::before { display: none; }
  table.sheet td.col-add, table.adapter-results td.col-add { justify-content: flex-start; }
  table.adapter-results tr.group-row td, table.sheet tr.group-row td { display: block; }
  table.sheet tr.detail-row td, table.adapter-results tr.detail-row td { display: block; border: 0; padding: 0; }

  /* Bottom tools match the desktop tab row: Order history, Catalog, Resources,
     Sales tool, Admin. Cart stays in the header. */
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--paper); border-top: 3px solid var(--orange);
    box-shadow: 0 -8px 20px rgba(32, 36, 39, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.1rem; min-height: 54px; border: 0; background: transparent; color: var(--muted);
    font-size: 9px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; padding: 0.28rem 0.08rem;
    min-width: 0; text-align: center; line-height: 1.15; overflow-wrap: anywhere;
  }
  .bottom-nav-ic { font-size: 18px; line-height: 1; }
  .bottom-nav a.active, .bottom-nav a[aria-current="page"], .bottom-nav button.active {
    color: var(--orange-dark); background: var(--orange-soft);
  }
  .more-sheet:not(.hidden) {
    left: 0; right: 0; top: auto;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    width: auto; z-index: 50; max-height: min(70vh, calc(100vh - 120px));
    overflow: auto; -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line); border-right: 0; border-left: 0; border-bottom: 0;
    box-shadow: 0 -10px 26px rgba(32, 36, 39, 0.2);
    padding-bottom: 0;
  }
  .more-sheet-head { padding: 0.7rem 0.9rem; }
  .more-sheet a { padding: 0.85rem 0.9rem; min-height: 44px; display: flex; align-items: center; }

  /* The bottom nav already covers the desktop tabs, so the top strip is duplication. */
  .primary-tabs { display: none; }

  /* Item lines stay in the card. Wide spreadsheets become stacked cards so a
     phone never has to scroll sideways. */
  .item-copy small { max-width: none; white-space: normal; }
  .consumption-table { min-width: 0 !important; }
  .results-scroll, .sheet-wrap, .admin-table-wrap { overflow-x: visible; }
  table.cart-table,
  table.orders-table,
  table.consumption-table,
  table.bins-table,
  table.folder-sku-table,
  table.he-type-table,
  table.admin-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    table-layout: auto;
  }
  table.cart-table thead,
  table.orders-table thead,
  table.admin-table thead { display: none; }
  table.cart-table tbody,
  table.orders-table tbody,
  table.admin-table tbody { display: block; }
  table.cart-table tr,
  table.orders-table tr,
  table.admin-table tr { display: block; }
  table.cart-table tbody tr:not(.history-detail):not(.order-detail):not(.detail-row),
  table.orders-table tbody tr:not(.order-detail):not(.history-detail),
  table.admin-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    margin: 0 0 0.5rem;
    padding: 0.4rem 0.55rem;
  }
  table.cart-table td,
  table.orders-table td,
  table.admin-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.28rem 0;
    white-space: normal;
    width: auto !important;
  }
  table.cart-table td:last-child,
  table.orders-table td:last-child,
  table.admin-table td:last-child { border-bottom: 0; }
  table.cart-table td[data-label]::before,
  table.orders-table td[data-label]::before,
  table.admin-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    flex: 0 0 auto;
  }
  table.cart-table td:first-child,
  table.folder-sku-table td:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  table.cart-table td:first-child::before,
  table.cart-table td[data-label=""]::before,
  table.orders-table td[data-label=""]::before,
  table.admin-table td[data-label=""]::before,
  table.folder-sku-table td.folder-title-col { display: none; }
  table.orders-table td.ot-caret { display: none; }
  table.cart-table td.row-actions,
  table.orders-table td.row-actions { justify-content: flex-start; flex-wrap: wrap; }
  table.cart-table tr.history-detail td,
  table.cart-table tr.order-detail td,
  table.cart-table tr.detail-row td,
  table.orders-table tr.order-detail td {
    display: block; border: 0; padding: 0.35rem 0 0;
  }

  /* 16px is the threshold below which iOS zooms the page on focus. */
  #historyMonths, #customerSearch, .history-add-qty, .cart-table input, .cart-table select {
    font-size: 16px; min-height: 40px;
  }

  /* Section header buttons sat on mismatched heights once they wrapped. */
  .cust-head-actions { flex-wrap: wrap; align-items: stretch; }
  .cust-head-actions .action-btn.sm, .cust-head-actions .ghost-btn.sm {
    min-height: 40px; display: flex; align-items: center; justify-content: center;
  }
  .delivery-bar { align-items: stretch; }
  .delivery-bar .action-btn.sm, .delivery-bar .ghost-btn.sm { min-height: 44px; }
}

.admin-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.admin-sections {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  position: sticky; top: var(--chrome-h, 96px); z-index: 6;
  background: var(--wash); padding: 6px 0;
}
.admin-sections a {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  text-decoration: none; color: inherit; background: #fff; min-height: 32px; font-size: 13px;
}
.admin-sections a[aria-current="page"] { background: var(--orange); border-color: var(--orange); font-weight: 800; }
.portal-access-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.portal-access-head h2 { margin: 0; }
.portal-access-head .also { margin: 0.2rem 0 0; }
.portal-summary { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.portal-summary button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 6px 8px; cursor: pointer; font: inherit;
}
.portal-summary button small { color: var(--muted); font-size: 12px; }
.portal-summary button:hover { border-color: var(--orange); }
.portal-sheet {
  position: fixed; inset: 0; z-index: 80; background: rgba(28, 20, 12, 0.45);
  display: grid; place-items: center; padding: 16px;
}
.portal-sheet-card {
  width: min(560px, 100%); max-height: min(80vh, 720px); overflow: auto;
  background: var(--paper); border-top: 3px solid var(--orange); border-radius: 8px; padding: 14px;
}
.portal-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.portal-sheet-head h2 { margin: 0; font-size: 1.15rem; }
.portal-hits { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; max-height: 220px; overflow: auto; }
.portal-chosen { border-top: 1px solid var(--line); padding-top: 10px; }
.portal-chosen h3 { margin: 0 0 4px; }
.portal-saved { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.portal-add-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.portal-add-row input { flex: 1 1 140px; min-width: 0; }
.admin-savebar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  position: sticky; top: 0; z-index: 2; background: #fff; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.admin-save-state { font-size: 13px; color: var(--muted); margin-right: auto; }
.admin-save-state.is-dirty { color: #9c3b0d; font-weight: 600; }
.admin-iso { font-size: 12px; color: var(--muted); }
.admin-grid {
  display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr) minmax(240px, 280px); gap: 12px; align-items: start; min-width: 0;
}
.admin-tree, .admin-main, .admin-side, .admin-single {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; min-width: 0;
}
.admin-tree-scroll, .admin-table-wrap { max-height: 68vh; overflow: auto; }
.admin-tree-line { display: flex; align-items: center; gap: 4px; }
.admin-tree-row {
  display: flex; gap: 6px; flex: 1; min-width: 0; text-align: left; background: none; border: 0;
  padding: 4px 2px; cursor: pointer; color: inherit; font: inherit; align-items: flex-start;
}
.admin-tree-label { white-space: normal; line-height: 1.3; overflow-wrap: anywhere; }
.admin-hidden-bin {
  margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.admin-hidden-bin summary { cursor: pointer; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.admin-tree-row.is-ghost { color: var(--muted); }
.ghost-folder {
  width: 16px; height: 12px; flex: 0 0 auto; margin-top: 4px;
  border: 1.5px dashed var(--muted); border-radius: 2px; position: relative; opacity: 0.85;
}
.ghost-folder::before {
  content: ''; position: absolute; left: 1px; top: -5px; width: 7px; height: 4px;
  border: 1.5px dashed var(--muted); border-bottom: 0; border-radius: 2px 2px 0 0;
}
.admin-lib-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; }
.admin-lib-head h3, .admin-single h3 { margin: 12px 0 8px; font-size: 15px; }
.admin-lib-upload { margin: 0; }
.admin-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.admin-lib-card {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff;
}
.admin-lib-thumb {
  display: flex; align-items: center; justify-content: center; height: 96px;
  border: 1px solid var(--line); border-radius: 6px; background: #f6f6f5;
}
.admin-lib-thumb img { max-width: 100%; max-height: 88px; object-fit: contain; }
.admin-lib-card small { color: var(--muted); font-size: 12px; }
.admin-order { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.admin-order-btn {
  min-width: 32px; min-height: 32px; padding: 0; border: 1px solid var(--line);
  background: var(--wash); cursor: pointer; font-weight: 700; line-height: 1;
}
.admin-order-btn:hover { border-color: var(--orange); color: var(--orange-dark); }
.admin-order-cell { white-space: nowrap; }
.hose-admin-toolbar { margin: 0 0 1rem; }
.hose-admin-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--orange-dark); margin: 0 0 0.35rem;
}
.hose-admin-grid { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 16px; align-items: start; }
.hose-add-form {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.hose-add-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.hose-add-form input { font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.hose-title-in, .hose-sku-in {
  width: 100%; font: inherit; font-size: 13px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.hose-clean-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
}
.hose-clean-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.hose-clean-row input { font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 860px) {
  .hose-admin-grid, .hose-add-form { grid-template-columns: minmax(0, 1fr); }
}
.admin-tree-row.is-on { background: #fff1e6; border-radius: 6px; }
.admin-tree-row small { display: block; color: var(--muted); }
.admin-tree-kids { margin-left: 12px; border-left: 1px dashed var(--line); padding-left: 4px; }
.admin-tree-label em { font-style: normal; color: var(--muted); font-size: 11px; }
.admin-search, .admin-side label, .admin-res-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.admin-search input, .admin-side input, .admin-side select, .admin-res-form input, .admin-res-form select, .admin-bulk input, .admin-bulk select {
  font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: inherit; background: #fff;
}
.admin-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.admin-cust { grid-template-columns: 300px minmax(0, 1fr); }
.admin-cust .admin-card {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; min-width: 0;
}
.admin-cust .admin-card h2 { margin: 0 0 8px; font-size: 16px; }
.admin-rep-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-rep-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.admin-rep-list .rep-id {
  font-weight: 800; font-size: 11px; letter-spacing: 0.04em;
  background: var(--orange-soft); color: var(--orange-dark);
  border-radius: 4px; padding: 2px 5px;
}
.admin-rep-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-rep-add input { min-width: 0; flex: 1 1 100px; }
.admin-cust-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.admin-cust-controls input { flex: 1 1 200px; min-width: 0; }
.admin-bulk-rep {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  border: 1px dashed var(--line); border-radius: 8px; padding: 8px; margin: 0 0 10px;
  font-size: 13px;
}
.admin-cust .admin-table td small { display: block; color: var(--muted); font-size: 11px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-side h3, .admin-main h2, .admin-single h2 { margin: 0 0 8px; font-size: 16px; }
.admin-check { flex-direction: row !important; align-items: center; color: inherit !important; font-size: 14px !important; }
.admin-preview img, .admin-ph {
  width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #f6f6f5;
  display: flex; align-items: center; justify-content: center; font-size: 12px; text-align: center; padding: 6px;
}
.admin-row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.admin-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-res { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.admin-res h3 { margin: 0 0 4px; font-size: 14px; }
.admin-res ul { margin: 0; padding-left: 16px; }
.admin-sku-link.is-on { color: var(--orange); }
.admin-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.admin-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 12px; background: var(--paper);
}
.admin-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 2px; }
.admin-thumb { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; }
.admin-thumb img { max-width: 36px; max-height: 36px; object-fit: contain; }
.admin-sku-link { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.admin-grid-two { grid-template-columns: minmax(0, 1fr) 280px; }
.admin-side textarea { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.admin-hide-impact, .admin-image-review, .admin-check-note {
  margin: 0 0 8px; padding: 0.45rem 0.65rem; border-left: 3px solid var(--line); background: var(--paper); font-size: 13px; line-height: 1.4;
}
.admin-hide-impact small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-hide-impact.is-bad, .admin-image-review { border-left-color: var(--orange); background: var(--orange-soft); }
.admin-check-note { border-left-color: var(--orange); }
.admin-image-review { margin-top: 8px; }
.admin-image-choices { margin: 0 0 8px; }
.admin-image-choices small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.admin-image-choices > div { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-image-choice {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; padding: 3px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font: inherit; font-size: 10px; color: inherit;
}
.admin-image-choice img { width: 54px; height: 54px; object-fit: contain; }
.admin-image-choice span { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-image-choice.is-on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.admin-image-sku span { display: flex; gap: 6px; }
.admin-image-sku input { flex: 1 1 auto; min-width: 0; }
.admin-bulk button[disabled] { opacity: 0.55; cursor: progress; }
.admin-bulk select { max-width: 100%; min-width: 0; }
@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
  .admin-side { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-cust { grid-template-columns: minmax(0, 1fr); }
  .admin-rep-list li { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; }
  .admin-tree-scroll, .admin-table-wrap { max-height: none; }
  .admin-search input, .admin-side input, .admin-side select, .admin-res-form input, .admin-bulk input, .admin-bulk select { font-size: 16px; min-height: 40px; }
}

/* Phone order history: one short line per order and per part, not a card stack. */
@media (max-width: 680px) {
  body[data-mode="customer"] #stage { padding-top: 0.4rem; }
  body[data-mode="customer"] #stage > .crumbs,
  body[data-mode="customer"] .history-intro { display: none; }
  body[data-mode="customer"] h1.page { font-size: 1.05rem; margin: 0 0 0.35rem; }
  body[data-mode="customer"] .cust-block { margin-bottom: 0.55rem; }
  body[data-mode="customer"] .section-head { margin: 0 0 0.2rem; }
  body[data-mode="customer"] .section-head h2 { font-size: 0.95rem; }
  body[data-mode="customer"] .section-head p { display: none; }
  body[data-mode="customer"] .history-fold {
    border: 1px solid var(--line); background: var(--paper); margin: 0 0 0.4rem;
  }
  body[data-mode="customer"] .history-fold > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.35rem 0.55rem; font-size: 12px; cursor: pointer; list-style: none;
  }
  body[data-mode="customer"] .history-fold > summary::-webkit-details-marker { display: none; }
  body[data-mode="customer"] .history-fold > summary span {
    color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  }
  body[data-mode="customer"] .history-fold > summary b { font-size: 13px; }
  body[data-mode="customer"] .history-fold[open] > summary { border-bottom: 1px solid var(--line); }
  body[data-mode="customer"] .history-fold .customer-profile,
  body[data-mode="customer"] .history-fold .history-retrieve {
    margin: 0; border: 0; padding: 0.45rem 0.55rem; max-width: none;
  }
  body[data-mode="customer"] .customer-profile {
    grid-template-columns: 1fr 1fr; gap: 0.25rem 0.6rem; padding: 0.4rem 0.5rem;
  }
  body[data-mode="customer"] .customer-extra { display: none; }
  body[data-mode="customer"] .history-retrieve { gap: 0.35rem; align-items: center; }
  body[data-mode="customer"] .history-months { min-width: 0; font-size: 12px; }
  body[data-mode="customer"] .history-months select,
  body[data-mode="customer"] .history-retrieve .action-btn { min-height: 34px; padding: 0.3rem 0.55rem; font-size: 12px; }
  body[data-mode="customer"] .customer-summary { margin: 0; padding: 0; border: 0; background: transparent; font-size: 12px; gap: 0.25rem 0.6rem; }
  .acct-stats { grid-template-columns: 1fr 1fr; }
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .acct-stat, .acct-panel { padding: 0.4rem 0.5rem; }
  .acct-stat b { font-size: 1.05rem; }
  .acct-stat small { font-size: 10px; line-height: 1.25; }
  .acct-panel h3 { margin-bottom: 0.3rem; }
  .acct-chart { overflow: hidden; min-height: 0; gap: 2px; }
  .acct-bar { flex: 1 1 0; min-width: 0; gap: 2px; }
  .acct-bar-plot { min-height: 52px; }
  .acct-bar-val, .acct-bar-mo { font-size: 8px; line-height: 1; white-space: nowrap; overflow: hidden; max-width: 100%; }
  .acct-cat { gap: 4px; margin: 0 0 4px; }
  .acct-cat-track { height: 7px; }
  body[data-mode="customer"] .consumption-scroll { max-height: none; border: 0; }
  body[data-mode="customer"] table.orders-table,
  body[data-mode="customer"] table.consumption-table,
  body[data-mode="customer"] table.orders-table tbody,
  body[data-mode="customer"] table.consumption-table tbody { display: block; width: 100%; min-width: 0 !important; }
  body[data-mode="customer"] table.orders-table thead,
  body[data-mode="customer"] table.consumption-table thead { display: none; }
  body[data-mode="customer"] table.orders-table tbody tr.order-row:not(.order-detail):not(.history-detail) {
    display: flex; align-items: center; gap: 0.35rem; flex-wrap: nowrap;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: transparent; margin: 0; padding: 0.1rem 0;
  }
  body[data-mode="customer"] table.orders-table tbody tr.order-row td {
    display: block; border: 0; padding: 0; width: auto !important; white-space: nowrap; font-size: 12px;
  }
  body[data-mode="customer"] table.orders-table tbody tr.order-row td::before,
  body[data-mode="customer"] table.consumption-table td::before { content: none; display: none; }
  body[data-mode="customer"] table.orders-table tbody tr.order-row td.ot-caret,
  body[data-mode="customer"] table.orders-table tbody tr.order-row td[data-label="Items"] { display: none; }
  body[data-mode="customer"] table.orders-table td[data-label="PO"] {
    overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; max-width: 34%;
  }
  body[data-mode="customer"] table.orders-table td[data-label=""] { margin-left: auto; }
  body[data-mode="customer"] table.orders-table td[data-label=""] .ghost-btn {
    min-height: 26px; padding: 0.1rem 0.35rem; font-size: 0; line-height: 0;
  }
  body[data-mode="customer"] table.orders-table td[data-label=""] .ghost-btn::after {
    content: "Again"; font-size: 11px; line-height: 1.2;
  }
  body[data-mode="customer"] table.orders-table .status-chip,
  body[data-mode="customer"] table.acct-table .status-chip {
    font-size: 10px; padding: 0.02rem 0.28rem; letter-spacing: 0;
  }
  body[data-mode="customer"] table.acct-table,
  body[data-mode="customer"] table.acct-table tbody { display: block; width: 100%; min-width: 0 !important; }
  body[data-mode="customer"] table.acct-table thead { display: none; }
  body[data-mode="customer"] table.acct-table tbody tr:not(.order-detail):not(.history-detail):not(.detail-row) {
    display: flex; align-items: center; gap: 0.35rem; flex-wrap: nowrap;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: transparent; margin: 0; padding: 0.12rem 0;
  }
  body[data-mode="customer"] table.acct-table tbody tr:not(.order-detail):not(.history-detail):not(.detail-row) td {
    display: block; border: 0; padding: 0; width: auto !important; white-space: nowrap; font-size: 12px; min-width: 0;
  }
  body[data-mode="customer"] table.acct-table td::before { content: none; display: none; }
  body[data-mode="customer"] table.acct-table td[data-label="PO"],
  body[data-mode="customer"] table.acct-table td[data-label="Parts"],
  body[data-mode="customer"] table.acct-table td[data-label="Description"],
  body[data-mode="customer"] table.acct-table td[data-label="Part"] {
    overflow: hidden; text-overflow: ellipsis;
  }
  body[data-mode="customer"] table.acct-table td[data-label="Part"],
  body[data-mode="customer"] table.acct-table td[data-label="Parts"],
  body[data-mode="customer"] table.acct-table td[data-label="Description"] { flex: 1 1 auto; }
  body[data-mode="customer"] table.acct-table td[data-label="PO"] { flex: 1 1 3.2rem; max-width: 36%; }
  body[data-mode="customer"] table.acct-table td[data-label="Part"] .item-ic,
  body[data-mode="customer"] table.acct-table td[data-label="Part"] small { display: none; }
  body[data-mode="customer"] table.acct-table td[data-label="Part"] .item-cell,
  body[data-mode="customer"] table.acct-table td[data-label="Part"] .item-copy { display: block; min-width: 0; overflow: hidden; }
  body[data-mode="customer"] table.acct-table td.row-actions { margin-left: auto; }
  body[data-mode="customer"] table.acct-table td.row-actions .action-btn { min-height: 26px; padding: 0.05rem 0.4rem; font-size: 11px; }
  body[data-mode="customer"] table.consumption-table tbody tr:not(.history-detail):not(.order-detail):not(.detail-row) {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 0.35rem;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: transparent; margin: 0; padding: 0.12rem 0;
  }
  body[data-mode="customer"] table.consumption-table tbody tr:not(.history-detail):not(.order-detail):not(.detail-row) td {
    display: block; border: 0; padding: 0; width: auto !important; font-size: 12px; white-space: nowrap; min-width: 0;
  }
  body[data-mode="customer"] table.consumption-table td.col-photo,
  body[data-mode="customer"] table.consumption-table td.col-desc,
  body[data-mode="customer"] table.consumption-table td.col-often,
  body[data-mode="customer"] table.consumption-table td.col-cat,
  body[data-mode="customer"] table.consumption-table td[data-label="Avg"] { display: none; }
  body[data-mode="customer"] table.consumption-table td.col-sku {
    flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis;
  }
  body[data-mode="customer"] table.consumption-table td.col-add { margin-left: auto; }
  body[data-mode="customer"] table.consumption-table td.col-add .qty-add { display: flex; flex-direction: row; gap: 0.15rem; align-items: center; }
  body[data-mode="customer"] table.consumption-table td.col-add .qty,
  body[data-mode="customer"] table.consumption-table td.col-add .add-btn,
  body[data-mode="customer"] table.consumption-table td.col-add .icon-btn { min-height: 28px; }
  body[data-mode="customer"] table.consumption-table td.col-add .qty { width: 2.4rem; font-size: 16px; }
}

/* overflow-x: hidden on body makes it a scroll container, and nothing inside can be
   position: sticky. clip trims sideways overflow the same way without that. */
body { overflow-x: hidden; overflow-x: clip; }

/* Stock switch: every parts list opens with in stock + special order; one tap narrows. */
.stock-mark .stock-so,
.stock-mark .stock-more { font-weight: 700; }
.stock-switch-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.9rem;
  margin: 0.35rem 0 0.55rem;
}
.stock-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; background: var(--paper);
}
.stock-switch button {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; padding: 0.35rem 0.75rem; min-height: 32px;
}
.stock-switch button + button { border-left: 1px solid var(--line); }
.stock-switch button[aria-pressed="true"] { background: var(--orange-soft); color: var(--ink); }
.stock-switch button .stock-dot { width: 8px; height: 8px; }
.stock-switch-status { font-size: 12px; color: var(--muted); }
.stock-pref {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem;
  margin-top: 0.75rem; font-size: 12px; font-weight: 700; color: var(--muted);
}
.catalog-style.stock-empty { display: none; }
.part-sub, .refine-nudge, .stock-quick { display: none; }
button.sku-hit {
  display: block; max-width: 100%; min-height: 0; margin: 0; padding: 0;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
button.sku-hit .item-sku-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-head-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 0; background: transparent; padding: 0; font: inherit; color: var(--ink); cursor: pointer;
}
.rail-head-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#qh-charcoal-final table.adapter-results tr[hidden] { display: none !important; }

/* Tablet and phone keep a real table for parts, not a card per row. */
@media (max-width: 860px) {
  #qh-charcoal-final .results-scroll { overflow: visible; }
  #qh-charcoal-final table.adapter-results { display: table; width: 100%; table-layout: auto; }
  #qh-charcoal-final table.adapter-results thead { display: table-header-group; }
  #qh-charcoal-final table.adapter-results tbody { display: table-row-group; }
  #qh-charcoal-final table.adapter-results tr,
  #qh-charcoal-final table.adapter-results tbody tr:not(.group-row):not(.detail-row) {
    display: table-row; border: 0; border-radius: 0; background: transparent; margin: 0; padding: 0;
  }
  #qh-charcoal-final table.adapter-results th,
  #qh-charcoal-final table.adapter-results td {
    display: table-cell; width: auto !important; padding: 0.4rem 0.35rem;
    border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: normal;
  }
  #qh-charcoal-final table.adapter-results td[data-label]::before { content: none; display: none; }
  #qh-charcoal-final table.adapter-results tbody tr.open-row { background: var(--orange-soft); }
  #qh-charcoal-final .family-hero > .photo-frame:empty { display: none; }
}

/* Tablet: the charcoal layout keeps a 165px sidebar column here, so the rail sits in it
   instead of being a bottom sheet parked off-screen (which left the results 165px wide). */
@media (min-width: 681px) and (max-width: 860px) {
  #qh-charcoal-final .shell:not(.shell-wide) .rail.cc-sidebar {
    display: block; position: static; transform: none; transition: none;
    max-height: none; box-shadow: none; border-top: 0; z-index: auto; padding: 10px 9px;
  }
  #qh-charcoal-final .rail-sheet-head,
  #qh-charcoal-final .rail-sheet-foot { display: none; }
  #qh-charcoal-final .rail-body-scroll { overflow: visible; padding: 0; }
  #qh-charcoal-final .rail .mobile-hide-in-sheet { display: block; }
}

@media (max-width: 680px) {
  #qh-charcoal-final .cc-header .cart-link,
  #qh-charcoal-final .cc-header .cc-order-toggle {
    grid-column: 3; grid-row: 1; width: 40px; height: 40px; min-height: 40px;
    padding: 0; display: grid; place-items: center; justify-self: end;
  }
  #qh-charcoal-final table.adapter-results .col-end { display: none; }
  #qh-charcoal-final table.adapter-results th { font-size: 9.5px; padding: 0.15rem 0.2rem; letter-spacing: 0.02em; white-space: nowrap; }
  #qh-charcoal-final table.adapter-results td { padding: 1px 4px; font-size: 12px; }
  #qh-charcoal-final table.adapter-results tbody tr:not(.detail-row):not(.group-row) td {
    white-space: nowrap; height: 32px;
  }
  #qh-charcoal-final table.adapter-results tr.detail-row td,
  #qh-charcoal-final table.adapter-results tr.group-row td { height: auto; white-space: normal; }
  #qh-charcoal-final table.adapter-results { table-layout: fixed; }
  #qh-charcoal-final table.adapter-results td.col-part,
  #qh-charcoal-final table.adapter-results th.col-part { width: 36% !important; max-width: none; overflow: hidden; }
  #qh-charcoal-final table.adapter-results td.col-stock,
  #qh-charcoal-final table.adapter-results th.col-stock { width: 20% !important; overflow: hidden; text-overflow: ellipsis; }
  #qh-charcoal-final table.adapter-results td.col-price,
  #qh-charcoal-final table.adapter-results th.col-price { width: 18% !important; overflow: hidden; text-overflow: ellipsis; }
  #qh-charcoal-final table.adapter-results td.col-add,
  #qh-charcoal-final table.adapter-results th.col-add { width: 26% !important; }
  #qh-charcoal-final table.adapter-results th.col-price,
  #qh-charcoal-final table.adapter-results td.col-price { text-align: right; }
  #qh-charcoal-final table.adapter-results .part-copy { flex-direction: row; align-items: center; min-width: 0; }
  #qh-charcoal-final table.adapter-results .part-copy .item-sku-line,
  #qh-charcoal-final table.adapter-results button.sku-hit { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  #qh-charcoal-final table.adapter-results .part-copy .item-sku-line b { font-size: 12px; }
  #qh-charcoal-final table.adapter-results .part-sub,
  #qh-charcoal-final table.adapter-results .part-copy .details-btn { display: none; }
  #qh-charcoal-final table.adapter-results .stock-mark { white-space: nowrap; font-size: 11px; }
  #qh-charcoal-final table.adapter-results .price-cell { font-size: 12px; white-space: nowrap; }
  #qh-charcoal-final table.adapter-results .col-add .qty-add { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 0.15rem; }
  #qh-charcoal-final table.adapter-results .col-add .qty { width: 2.3rem; min-width: 2.3rem; min-height: 30px; font-size: 16px; padding: 0; }
  #qh-charcoal-final table.adapter-results .col-add .add-btn { width: auto; min-width: 2.4rem; min-height: 30px; padding: 0 0.3rem; }
  #qh-charcoal-final table.adapter-results tr.group-row td { display: table-cell; }

  /* Catalog refine becomes a sticky strip above the results. Tap it to open the
     filters inline; "Show N parts" folds it back up. */
  body[data-refine="on"] #qh-charcoal-final .filters-toggle { display: none; }
  body[data-refine="on"] #qh-charcoal-final .rail.cc-sidebar {
    display: flex; flex-direction: column;
    position: sticky; top: var(--chrome-h, 96px); z-index: 18;
    left: auto; right: auto; bottom: auto; max-height: none;
    transform: none; transition: none;
    border: 0; border-bottom: 2px solid #1c140c; border-radius: 0;
    box-shadow: none;
    background: var(--paper); padding: 0;
  }
  body[data-refine="on"] #qh-charcoal-final .app-chrome.is-away ~ .shell .rail.cc-sidebar { top: 0; }
  body[data-refine="on"] #qh-charcoal-final .rail-sheet-head {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.2rem 0.55rem; min-height: 42px; border-bottom: 0;
    background: var(--orange); color: #1c140c;
  }
  body[data-refine="on"] #qh-charcoal-final .rail.open .rail-sheet-head { border-bottom: 2px solid #1c140c; }
  body[data-refine="on"] #qh-charcoal-final .rail-head-toggle {
    flex: 1 1 auto; min-height: 36px; font-size: 15px; font-weight: 800; color: #1c140c;
  }
  body[data-refine="on"] #qh-charcoal-final .rail-head-ic { width: 15px; height: 15px; }
  body[data-refine="on"] #qh-charcoal-final .rail-head-caret::after {
    content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 0.15rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease;
  }
  body[data-refine="on"] #qh-charcoal-final .rail.open .rail-head-caret::after { transform: translateY(2px) rotate(-135deg); }
  body[data-refine="on"] #qh-charcoal-final .stock-quick {
    display: inline-flex; align-items: center; gap: 0.3rem; flex: 0 0 auto;
    min-height: 30px; padding: 0.15rem 0.55rem; border: 1.5px solid #1a7f3c; border-radius: 16px;
    background: #e7f6ec; color: #14532d; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer;
    box-shadow: 0 0 0 2px rgba(26, 127, 60, 0.14);
  }
  body[data-refine="on"] #qh-charcoal-final .stock-quick[aria-pressed="true"] {
    border-color: #14532d; background: #1a7f3c; color: #fff;
  }
  body[data-refine="on"] #qh-charcoal-final .stock-quick .stock-dot { width: 9px; height: 9px; background: #1a7f3c; }
  body[data-refine="on"] #qh-charcoal-final .stock-quick[aria-pressed="true"] .stock-dot { background: #fff; }
  body[data-refine="on"] #qh-charcoal-final #filtersClose { display: none; }
  body[data-refine="on"] #qh-charcoal-final .rail:not(.open) #filtersClearAll,
  body[data-refine="on"] #qh-charcoal-final .rail:not(.open) .rail-body-scroll,
  body[data-refine="on"] #qh-charcoal-final .rail:not(.open) .rail-sheet-foot { display: none; }
  body[data-refine="on"] #qh-charcoal-final .rail.open .rail-body-scroll {
    max-height: calc(100dvh - var(--chrome-h, 96px) - 190px); overflow: auto; overscroll-behavior: contain;
  }
  body[data-refine="on"] #qh-charcoal-final .rail-sheet-head-actions .ghost-btn { min-height: 34px; width: auto; margin: 0; }
  body[data-refine="on"] #qh-charcoal-final .rail-sheet-foot .action-btn { gap: 0.3em; }
  body[data-refine="on"] #qh-charcoal-final .stock-switch-bar .stock-switch { display: none; }
  body[data-refine="on"] #qh-charcoal-final .stock-switch-bar:not(:has(.stock-switch-status)) { display: none; }
  #qh-charcoal-final .refine-nudge { display: none; }
  #qh-charcoal-final .ff-browse-meta .also { display: none; }
  #qh-charcoal-final .dept-grid,
  #qh-charcoal-final .home-dept-grid,
  #qh-charcoal-final .family-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #qh-charcoal-final .dept-grid .dept-card,
  #qh-charcoal-final .home-dept-grid .dept-card,
  #qh-charcoal-final .family-grid .family-tile,
  #qh-charcoal-final .family-grid .dept-card {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    gap: 0.65rem; padding: 0.7rem 0.75rem; text-align: left; min-height: 56px;
  }
  #qh-charcoal-final .dept-grid .dept-card > span,
  #qh-charcoal-final .home-dept-grid .dept-card > span,
  #qh-charcoal-final .family-grid .family-tile-copy,
  #qh-charcoal-final .family-grid .dept-card > span { width: auto; text-align: left; }
  #qh-charcoal-final .dept-grid .dept-card b,
  #qh-charcoal-final .home-dept-grid .dept-card b,
  #qh-charcoal-final .family-grid .family-tile b,
  #qh-charcoal-final .family-grid .dept-card b { font-size: 15px; line-height: 1.25; }
  #qh-charcoal-final .dept-card small,
  #qh-charcoal-final .family-tile small {
    display: block; white-space: normal; overflow: visible; font-size: 12px;
    -webkit-line-clamp: 2;
  }
  #qh-charcoal-final .wide-search { display: none; }
  #qh-charcoal-final .ff-facet { margin: 0 0 0.7rem; }
  #qh-charcoal-final .ff-facet > b,
  #qh-charcoal-final .rail-kicker,
  #qh-charcoal-final .cc-sidebar .ff-facet > b,
  #qh-charcoal-final .cc-sidebar .rail-kicker {
    font-size: 11px; margin: 0.35rem 0 0.2rem; letter-spacing: 0.04em;
  }
  #qh-charcoal-final .ff-link,
  #qh-charcoal-final .cc-sidebar .ff-link,
  #qh-charcoal-final .cc-sidebar .rail-fastener-nav a,
  #qh-charcoal-final .cc-sidebar .rail-folder-nav a {
    font-size: 12px; padding: 7px 10px; min-height: 32px;
  }
  #qh-charcoal-final .rail.open .ff-box { max-height: none; overflow: visible; }
  #qh-charcoal-final .rail.open .ff-opt input,
  #qh-charcoal-final .rail.open .qh-refine-options input {
    width: 16px; height: 16px; min-height: 16px; font-size: 14px;
  }
  #qh-charcoal-final .ff-chip { min-height: 32px; font-size: 12px; padding: 0.35rem 0.55rem; }
  #qh-charcoal-final h1.page { font-size: 1.25rem; margin: 0.1rem 0 0.45rem; }
  #qh-charcoal-final .also { font-size: 13px; line-height: 1.35; margin: 0 0 0.5rem; }
  #qh-charcoal-final .section-head { margin: 0.75rem 0 0.4rem; }
  #qh-charcoal-final .section-head h2 { font-size: 16px; }
  #qh-charcoal-final .hose-assy { grid-template-columns: 64px minmax(0, 1fr); padding: 0.35rem; }
  #qh-charcoal-final .hose-assy-photo { width: 64px; height: 48px; }
  #qh-charcoal-final .hose-assy-bom li { grid-template-columns: 2.8rem minmax(0, 1fr) auto; }
  #qh-charcoal-final .hose-assy-bom li span:nth-child(3) { display: none; }
  #qh-charcoal-final .hose-assy-bom li em { display: inline; }
}

/* Admin change history, editor name, and the leave-with-unsaved-work prompt. */
.admin-editor {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto;
  font-size: 12px; color: var(--muted);
}
.admin-editor input { width: 11rem; min-height: 30px; padding: 0.25rem 0.45rem; font: inherit; font-size: 13px; }
.admin-history { margin-top: 0.75rem; }
.admin-history-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.5rem 0 0.75rem; }
.admin-history-filter .chip {
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 12px; padding: 0.3rem 0.7rem; cursor: pointer;
}
.admin-history-filter .chip.is-on { border-color: var(--orange); background: var(--orange-soft); font-weight: 700; }
.admin-history-note { padding: 0.5rem 0.7rem; border-left: 3px solid #2f8f4e; background: #eef7f0; font-size: 13px; }
.admin-history-note.is-bad { border-left-color: #b3261e; background: #fbeceb; }
.admin-history-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.admin-history-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.9rem; align-items: start;
  padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--line);
}
.admin-history-row > .ghost-btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.admin-history-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.7rem; font-size: 12px; color: var(--muted); }
.admin-history-meta time { color: var(--ink); font-weight: 700; }
.admin-history-meta .tag { border: 1px solid var(--line); border-radius: 10px; padding: 0 0.45rem; }
.admin-history-meta .tag.is-done { border-color: #2f8f4e; color: #2f8f4e; }
.admin-history-sum { margin: 0; font-size: 13px; }
.admin-history-row details { font-size: 12px; color: var(--muted); }
.admin-history-row details ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.admin-history-row .op { text-transform: capitalize; font-weight: 700; }
.admin-history-row .op-added { color: #2f8f4e; }
.admin-history-row .op-removed { color: #b3261e; }
.leave-dialog {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem;
  background: rgba(20, 24, 28, 0.45);
}
.leave-card {
  width: min(420px, 100%); background: var(--paper, #fff); border-radius: 6px; padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.leave-card h2 { margin: 0 0 0.4rem; font-size: 17px; }
.leave-card p { margin: 0 0 0.9rem; font-size: 14px; color: var(--muted); }
.leave-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.leave-actions button { width: auto; min-height: 40px; margin: 0; padding: 0.4rem 1rem; }
@media (max-width: 680px) {
  .admin-editor { margin-left: 0; width: 100%; }
  .admin-editor input { flex: 1; min-height: 40px; font-size: 16px; }
  .admin-history-row { grid-template-columns: minmax(0, 1fr); }
  .admin-history-row > .ghost-btn { grid-column: 1; grid-row: auto; justify-self: start; min-height: 40px; }
  .leave-actions button { flex: 1 1 auto; min-height: 44px; }
}
/* Admin resources list: search, filters, and review flags. */
.admin-res-filter { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: flex-end; margin: 0.5rem 0 0.6rem; }
.admin-res-filter label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 12px; color: var(--muted); }
.admin-res-filter label.grow { flex: 1 1 14rem; }
.admin-res-filter input, .admin-res-filter select { min-height: 32px; font: inherit; font-size: 13px; }
.admin-res-warn { margin: 0 0 0.5rem; padding: 0.45rem 0.65rem; border-left: 3px solid var(--orange); background: var(--orange-soft); font-size: 13px; }
.admin-res-flag {
  display: inline-block; margin-left: 0.3rem; padding: 0 0.4rem; border-radius: 9px;
  border: 1px solid var(--orange); color: var(--orange-dark); font-size: 11px; font-weight: 700; white-space: nowrap;
}
@media (max-width: 680px) {
  .admin-res-filter label, .admin-res-filter label.grow { flex: 1 1 100%; }
  .admin-res-filter input, .admin-res-filter select { min-height: 40px; font-size: 16px; }
}
.toolbox-mount-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--line); background: var(--wash); color: var(--ink);
  font-size: 13px; font-weight: 500; line-height: 1.35;
}
.toolbox-mount-note a,
.toolbox-mount-note button {
  min-height: 32px; padding: 0.15rem 0.65rem; border: 1px solid var(--orange);
  border-radius: 4px; background: var(--paper); color: var(--orange-dark);
  font-size: 12px; font-weight: 700; text-decoration: none;
}
.toolbox-mount-note button { cursor: pointer; }