/* Hank Sourcing — white, airy, soft pastel accents. */

:root {
  --bg: #ffffff;
  --soft: #f7f8fa;
  --softer: #fbfbfd;
  --ink: #20242e;
  --muted: #737a87;
  --line: #ececf1;

  /* soft accent family */
  --coral: #ff7a59;
  --coral-soft: #fff0eb;
  --sky: #4a9de0;
  --sky-soft: #ecf5fd;
  --sage: #3fa776;
  --sage-soft: #e9f6ef;
  --sand: #c98f2b;
  --sand-soft: #fdf3df;
  --lavender: #7d74d8;
  --lavender-soft: #f0eefb;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(32, 36, 46, .04), 0 8px 24px rgba(32, 36, 46, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner {
  max-width: 980px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo:hover .logo-mark { background: var(--coral); color: #fff; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--coral-soft); color: var(--coral);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { font-weight: 750; font-size: 17px; letter-spacing: -.01em; }
.logo-text em { font-style: normal; color: var(--coral); }
.statsbar { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Hero & search ───────────────────────────────────────── */
main { max-width: 1240px; margin: 0 auto; padding: 0 24px 56px; }
.hero, .flow > .status, .no-match { max-width: 980px; margin-left: auto; margin-right: auto; }
.hero { padding: 52px 0 8px; text-align: center; }
.hero h1 {
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.12; margin: 0 0 12px; font-weight: 800; letter-spacing: -.022em;
}
.hero .hl { color: var(--coral); white-space: nowrap; }
.sub { color: var(--muted); font-size: 16px; margin: 0 auto 30px; max-width: 600px; }

.searchbar {
  display: flex; align-items: center; gap: 10px;
  max-width: 680px; margin: 0 auto;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 8px 8px 8px 18px; box-shadow: var(--shadow);
  transition: border-color .15s ease;
}
.searchbar:focus-within { border-color: var(--coral); }
.search-ic { color: var(--muted); display: inline-flex; }
.search-ic svg { width: 19px; height: 19px; }
.searchbar input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 16.5px; color: var(--ink); font-family: var(--sans); min-width: 60px;
}
.searchbar input::placeholder { color: #aab0bc; }
.go {
  background: var(--coral); color: #fff; font-weight: 700; font-size: 15.5px;
  border: none; border-radius: 11px; padding: 11px 26px;
  transition: filter .12s ease;
}
.go:hover { filter: brightness(1.05); }
.zip-wrap {
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line);
  color: var(--muted);
}
.zip-ic { width: 16px; height: 16px; flex: none; color: var(--sky); }
.zip-wrap input {
  width: 58px; border: none; outline: none; background: none;
  font-size: 14px; font-family: var(--mono); color: var(--ink);
}
.zip-wrap select {
  border: none; outline: none; background: none; color: var(--muted);
  font-size: 13px; font-family: var(--sans); cursor: pointer; max-width: 86px;
}
.loc-note { color: var(--sky); }
.go:disabled { opacity: .55; cursor: wait; }

.examples { margin: 14px auto 0; max-width: 720px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; }
.examples-label { font-size: 13px; color: var(--muted); }
.chip {
  font-family: var(--mono); font-size: 11.5px; padding: 5px 11px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  transition: all .12s ease;
}
.chip:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-soft); }
.chip small { color: var(--muted); font-family: var(--sans); }

/* ── Status ──────────────────────────────────────────────── */
.flow { margin-top: 34px; }
.status { font-size: 14px; color: var(--muted); margin-bottom: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.status strong { color: var(--ink); font-size: 16px; }
.status .ms { font-variant-numeric: tabular-nums; background: var(--soft); border-radius: 6px; padding: 1px 8px; font-size: 12px; }
.status .price-from { color: var(--sage); font-weight: 650; }
.status .err { color: #c4453a; font-weight: 600; }

/* ── Results bar (count + sort) ──────────────────────────── */
.results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -6px 0 14px;
}
.rb-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rb-sort { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.rb-sort select {
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px;
  cursor: pointer;
}
.rb-sort select:focus { outline: 2px solid var(--coral); border-color: transparent; }

/* ── Pager ───────────────────────────────────────────────── */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 22px 0 6px; flex-wrap: wrap; }
.pg {
  min-width: 34px; height: 34px; padding: 0 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pg:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.pg.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.pg-gap { color: var(--muted); padding: 0 2px; }

/* ── Result cards ────────────────────────────────────────── */
.results { display: flex; flex-direction: column; gap: 18px; }

/* ── 5-up tile grid ──────────────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.tile {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #dfe1e6; text-decoration: none; }
.tile-photo {
  position: relative; aspect-ratio: 1 / 1; background: var(--softer);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.tile-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8px; }
.tile-photo .ph { color: #cfd4de; }
.tile-photo .ph svg { width: 34px; height: 34px; }
.tile-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  max-width: calc(100% - 50px);
}
.match-pct {
  font-size: 9.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.match-pct.exact { color: var(--sage); }
.match-pct.alias { color: var(--sand); }
.match-pct.prefix { color: var(--lavender); }
.match-pct.text { color: var(--sky); }
.tile-badges .badge { font-size: 10px; padding: 2px 7px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.tile-badges .badge .mono { display: none; }
.add-quote {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 8px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; line-height: 1;
  color: var(--sand); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.add-quote:hover { color: #fff; background: var(--sand); }
.add-quote.added { color: #fff; background: var(--sage); border-color: var(--sage); }

.tile-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.tile-title {
  font-size: 13px; font-weight: 650; line-height: 1.28; margin: 0; letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-pn { font-family: var(--mono); font-size: 11px; color: #c2410c; background: #fff8f3; border: 1px solid #ffd9c4; border-radius: 5px; padding: 1px 6px; align-self: flex-start; }
.tile-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-desc {
  font-size: 11.5px; color: var(--muted); margin: 1px 0 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.tile-price .price { font-size: 17px; font-weight: 780; letter-spacing: -.01em; }
.tile-price .price.unknown { font-size: 12px; font-weight: 600; color: var(--muted); }
.avail { font-size: 11px; font-weight: 600; }
.avail.in { color: var(--sage); }
.avail.low { color: var(--sand); }
.avail.out { color: var(--muted); }
.tile-vendor { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 7px; border-top: 1px solid var(--soft); }
.tile-vendor .v-logo { width: 18px; height: 18px; flex-basis: 18px; border-radius: 5px; font-size: 8px; }
.tv-name { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-dist { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--sky); background: var(--sky-soft); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.tv-city { margin-left: auto; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.tile-cta { font-size: 11px; font-weight: 650; color: var(--sky); margin-top: 2px; }
.tile:hover .tile-cta { text-decoration: underline; }

@media (max-width: 1100px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px)  { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px)  { .tile-grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card-main { display: flex; gap: 16px; }
.thumb {
  flex: 0 0 124px; width: 124px; height: 124px; border-radius: 12px;
  background: var(--softer); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb .ph { color: #c8cdd8; }
.thumb .ph svg { width: 38px; height: 38px; }

.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; letter-spacing: .01em;
}
.badge.exact { background: var(--sage-soft); color: var(--sage); }
.badge.alias { background: var(--sand-soft); color: var(--sand); }
.badge.prefix { background: var(--lavender-soft); color: var(--lavender); }
.badge.text { background: var(--sky-soft); color: var(--sky); }
.badge.seen { background: var(--soft); color: var(--muted); font-weight: 600; }
.badge .mono { font-family: var(--mono); font-weight: 600; }

.title { font-size: 16px; font-weight: 680; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.meta-line { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.pn-chip {
  font-family: var(--mono); font-size: 11.5px; background: var(--soft);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--ink);
}
.pn-chip b { font-weight: 400; color: var(--muted); }
.desc {
  font-size: 13px; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 4px; }
.price { font-size: 21px; font-weight: 780; letter-spacing: -.01em; }
.price.unknown { font-size: 14px; font-weight: 600; color: var(--muted); }
.avail { font-size: 12.5px; color: var(--sage); font-weight: 600; }

.vendor-row {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px;
}
.v-logo {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; overflow: hidden;
}
.v-logo img { width: 100%; height: 100%; object-fit: contain; }
.v-name { font-size: 13.5px; font-weight: 650; }
.v-domain { font-size: 12px; color: var(--muted); }
.state-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--sage); background: var(--sage-soft);
  border-radius: 5px; padding: 2px 6px;
}
/* IL is the home market (sage, above). Out-of-state vendors get a neutral tag
   so the local Illinois ones still stand out at a glance. */
.state-tag.is-out { color: var(--muted); background: #eceef2; }
.v-link {
  margin-left: auto; white-space: nowrap;
  font-size: 13px; font-weight: 650; color: var(--sky);
  background: var(--sky-soft); border-radius: 9px; padding: 7px 14px;
  transition: filter .12s ease;
}
.v-link:hover { filter: brightness(.96); text-decoration: none; }

.more-row { text-align: center; margin-top: 4px; }
.more-row .note { font-size: 13px; color: var(--muted); }

/* ── No match ────────────────────────────────────────────── */
.no-match {
  background: var(--softer); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 24px; max-width: 640px; margin: 0 auto;
}
.no-match h3 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.no-match h3 .ic { color: var(--sand); display: inline-flex; }
.no-match h3 .ic svg { width: 19px; height: 19px; }
.no-match p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-form input, .quote-form textarea {
  font-family: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: transparent; }
.quote-form textarea { grid-column: 1 / -1; resize: vertical; min-height: 64px; }
.quote-form .send {
  grid-column: 1 / -1; justify-self: start;
  background: var(--ink); color: #fff; font-weight: 650; border: none; border-radius: 10px; padding: 10px 22px;
}
.quote-ok {
  background: var(--sage-soft); border: 1px solid #cdebdc; border-radius: 12px;
  padding: 14px 16px; font-size: 14px; color: #21684a;
}

/* ── Quote builder dock ──────────────────────────────────── */
.add-quote {
  margin-left: auto;
  font-size: 12px; font-weight: 650; color: var(--sand);
  background: var(--sand-soft); border: none; border-radius: 8px; padding: 6px 12px;
  transition: filter .12s ease; white-space: nowrap;
}
.add-quote:hover { filter: brightness(.97); }

.quote-dock {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.quote-fab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  border: none; border-radius: 999px; padding: 12px 20px;
  box-shadow: 0 6px 22px rgba(32,36,46,.22);
}
.quote-fab svg { width: 16px; height: 16px; }
.fab-count {
  background: var(--coral); border-radius: 999px; padding: 1px 8px; font-size: 12px;
}
.quote-panel {
  width: min(380px, calc(100vw - 36px)); max-height: 72vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(32,36,46,.16); padding: 16px;
}
.qd-head { font-weight: 750; font-size: 15px; margin-bottom: 10px; }
.qd-count { color: var(--muted); font-weight: 600; font-size: 12.5px; margin-left: 6px; }
.qd-items { display: flex; flex-direction: column; }
.qd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--soft);
}
.qd-info { flex: 1; min-width: 0; }
.qd-title { font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qd-meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.qd-qty { display: flex; align-items: center; gap: 6px; }
.qd-qty button {
  width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--soft); font-weight: 700; line-height: 1; color: var(--ink);
}
.qd-qty span { font-size: 13px; font-weight: 650; min-width: 16px; text-align: center; }
.qd-price { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qd-x { background: none; border: none; color: #b9bec9; font-size: 13px; padding: 2px; }
.qd-x:hover { color: #c4453a; }
.qd-total { font-size: 13px; color: var(--muted); margin: 10px 0 12px; }
.qd-total strong { color: var(--ink); }
.qd-note { font-size: 11px; }
.qd-form { grid-template-columns: 1fr 1fr; }
.qd-form .send { width: 100%; justify-self: stretch; background: var(--coral); }

/* ── Vendors strip ───────────────────────────────────────── */
.vendors-sect { margin-top: 56px; }
.vendors-sect h2 {
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
}
.vendors-sect .ic-truck { color: var(--sky); display: inline-flex; }
.vendors-sect .ic-truck svg { width: 18px; height: 18px; }
/* Balanced multi-column layout: each .vcol is one column; categories stack
   inside it. app.js (vendorColCount/layoutVendors) distributes categories
   across columns greedily by vendor count so the heights even out, and drops a
   column while the split-screen console is open (body.hank-drawer-open) — that
   replaces the old CSS-only .vcat-pills grid that used to react to the drawer. */
.vendor-strip { display: flex; flex-direction: row; align-items: flex-start; gap: 22px; }
.vcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.vcat { display: flex; flex-direction: column; }
.vcat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.vcat-name {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink);
}
.vcat-name::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 2px;
  background: var(--vcat-accent, var(--sky));
}
.vcat-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.vcat-list { display: flex; flex-direction: column; gap: 6px; }
.v-row {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 11px; font-size: 12.5px; color: var(--ink); text-decoration: none;
  transition: all .12s ease;
}
.v-row:hover { border-color: var(--sky); box-shadow: var(--shadow); text-decoration: none; }
.v-row .v-logo { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; font-size: 9.5px; }
.v-row .v-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-row .state-tag { flex: 0 0 auto; }
.v-row .count { color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }

/* ── Footer ──────────────────────────────────────────────── */
.foot {
  max-width: 980px; margin: 0 auto; padding: 20px 24px 40px;
  font-size: 12px; color: #a4a9b4; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}

@media (max-width: 600px) {
  .hero { padding-top: 36px; }
  .searchbar { flex-wrap: wrap; padding: 10px; }
  .searchbar input { width: 100%; order: 1; padding: 4px 6px; }
  .search-ic { display: none; }
  .go { order: 2; width: 100%; }
  .card-main { flex-direction: column; }
  .thumb { width: 100%; flex-basis: auto; height: 180px; }
  .quote-form { grid-template-columns: 1fr; }
  .v-link { padding: 6px 10px; }
  /* Touch targets ≥44px on mobile (iOS HIG / WCAG 2.5.5) */
  .add-quote { width: 44px; height: 44px; top: 8px; right: 8px; font-size: 22px; border-radius: 10px; }
  .qd-qty button { width: 44px; height: 44px; border-radius: 9px; }
  .qd-x { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
}

/* ════════════════════════════════════════════════════════════════════════
   PORTAL — accounts, vendor book, saved parts, chat, inventory audit
   ════════════════════════════════════════════════════════════════════════ */

/* ── topbar account control ─────────────────────────────── */
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-slot { display: flex; align-items: center; gap: 8px; }
.acct-btn {
  font-size: 13.5px; font-weight: 650; border-radius: 10px; padding: 8px 15px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .12s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.acct-btn.ghost { border-color: transparent; background: none; }
.acct-btn.ghost:hover { background: var(--soft); }
.acct-btn.solid { background: var(--coral); border-color: var(--coral); color: #fff; }
.acct-btn.solid:hover { filter: brightness(1.05); }
.acct-btn.user { position: relative; padding: 6px 12px 6px 6px; }
.acct-btn.user:hover { border-color: var(--coral); }
.acct-ava {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--coral-soft); color: var(--coral); font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.acct-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* unread-message badge on the account button */
.acct-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--coral); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px #fff; /* punch out from the white top bar */
}
.acct-badge.pop { animation: acctPop .32s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes acctPop { 0% { transform: scale(.3); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ── result-tile extras (connect / save / my vendor) ────── */
.tile-extras { margin-top: 4px; }
.x-row { display: flex; flex-wrap: wrap; gap: 5px; }
.x-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 650; line-height: 1;
  padding: 5px 9px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .12s ease;
  white-space: nowrap; text-decoration: none;
}
.x-btn svg { width: 12px; height: 12px; }
.x-btn:hover { border-color: var(--sky); color: var(--sky); text-decoration: none; }
.x-btn.call:hover { border-color: var(--sage); color: var(--sage); }
.x-btn.save.on { color: var(--coral); border-color: #ffd9c4; background: var(--coral-soft); }
.x-btn.save:hover { color: var(--coral); border-color: var(--coral); }
.x-btn.msg:hover { border-color: var(--lavender); color: var(--lavender); }
.x-btn.danger:hover { border-color: #e2675c; color: #c4453a; }
.x-mine {
  margin-top: 6px; font-size: 10.5px; font-weight: 650; color: var(--sage);
  background: var(--sage-soft); border-radius: 7px; padding: 4px 8px;
  display: flex; align-items: center; gap: 5px;
}
.x-mine svg { width: 12px; height: 12px; flex: none; }

/* ── shared form / button atoms ─────────────────────────── */
.btn-primary {
  background: var(--coral); color: #fff; font-weight: 700; font-size: 14px;
  border: none; border-radius: 11px; padding: 11px 20px; cursor: pointer; transition: filter .12s ease;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-mini {
  background: var(--soft); color: var(--ink); font-weight: 650; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 13px; cursor: pointer; transition: all .12s ease;
}
.btn-mini:hover { border-color: var(--coral); color: var(--coral); }
.btn-mini.danger:hover { border-color: #e2675c; color: #c4453a; }
.linkish { background: none; border: none; color: var(--coral); font-weight: 650; cursor: pointer; padding: 0; font-size: inherit; }
.linkish:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-size: 13.5px; padding: 22px; text-align: center; background: var(--softer); border: 1px dashed var(--line); border-radius: 12px; }
.tab-intro { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.af { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 650; color: var(--muted); min-width: 0; }
.af input, .af textarea, .af select {
  font-family: inherit; font-size: 14px; font-weight: 400; color: var(--ink);
  width: 100%; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.af input:focus, .af textarea:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: transparent; }
.af.invalid input { border-color: #e2675c; }
.af.invalid input:focus { outline-color: #e2675c; }
.af-err { font-size: 11px; font-weight: 600; color: #c4453a; }
.af textarea { resize: vertical; min-height: 56px; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.af-grid-3 { grid-template-columns: 1.4fr .7fr 1fr; }
.af-section { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; }
.af-opt { font-weight: 500; text-transform: none; letter-spacing: 0; }
.af-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── modal (auth + composer) ────────────────────────────── */
.hank-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.hm-backdrop { position: fixed; inset: 0; background: rgba(32,36,46,.42); backdrop-filter: blur(2px); }
.hm-card {
  position: relative; z-index: 1; width: min(520px, 100%);
  background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(32,36,46,.28);
  padding: 28px; margin: auto;
}
.hm-x { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 9px; border: none; background: var(--soft); color: var(--muted); font-size: 14px; cursor: pointer; }
.hm-x:hover { background: var(--line); color: var(--ink); }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-logo { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 13px; background: var(--coral-soft); color: var(--coral); display: flex; align-items: center; justify-content: center; }
.auth-logo svg { width: 22px; height: 22px; }
.auth-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.auth-sub { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.auth-hint { background: var(--sky-soft); color: #2b6ca3; font-size: 13px; border-radius: 10px; padding: 10px 13px; margin-bottom: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 11px; }
.auth-submit { background: var(--coral); color: #fff; font-weight: 700; font-size: 15px; border: none; border-radius: 12px; padding: 13px; cursor: pointer; margin-top: 6px; transition: filter .12s ease; }
.auth-submit:hover { filter: brightness(1.05); }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-err { background: #fdecea; color: #c4453a; font-size: 13px; border-radius: 10px; padding: 10px 13px; font-weight: 600; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
/* signup: shop vs vendor chooser */
.acct-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.acct-type-opt { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; transition: all .12s ease; }
.acct-type-opt:hover { border-color: var(--coral); }
.acct-type-opt.on { border-color: var(--coral); background: var(--coral-soft); }
.att-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.acct-type-opt.on .att-ic { background: #fff; color: var(--coral); }
.att-ic svg { width: 19px; height: 19px; }
.att-txt { display: flex; flex-direction: column; gap: 1px; }
.att-txt b { font-size: 13.5px; }
.att-txt small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.sp-row-2 { grid-template-columns: 1.4fr 1fr auto; }
.hank-modal.wide .hm-card { width: min(640px, 100%); }
.ss-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.ss-head svg { width: 15px; height: 15px; flex: none; }
.sp-rows { display: flex; flex-direction: column; gap: 8px; }
.sp-row { display: grid; grid-template-columns: 1.2fr .9fr 1fr auto; gap: 7px; align-items: center; }
.sp-row input { font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.sp-row input:focus { outline: 2px solid var(--coral); border-color: transparent; }
.sp-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); cursor: pointer; }
.sp-x:hover { color: #c4453a; border-color: #e8b5b0; }
.sp-add { align-self: flex-start; background: none; border: 1px dashed var(--line); border-radius: 9px; padding: 8px 13px; font-size: 12.5px; font-weight: 650; color: var(--sky); cursor: pointer; }
.sp-add:hover { border-color: var(--sky); background: var(--sky-soft); }

/* ── drawer (split-screen: console on the right half, live search on the left) ── */
:root { --drawer-w: 50vw; }
.hank-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: var(--drawer-w); z-index: 110; }
.hd-backdrop { display: none; } /* no dimming — the search side stays fully usable */
.hd-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 100%;
  background: var(--softer); box-shadow: -18px 0 60px rgba(32,36,46,.14);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  /* The console is its own scroll region: it never hands a scroll off to the
     search side behind it (overscroll-behavior: contain), so the two halves
     scroll fully independently. */
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
}
.hd-panel.in { transform: translateX(0); }
/* Header + tabs stay pinned while the console body scrolls under them. */
.hd-top { position: sticky; top: 0; z-index: 3; background: #fff; }

/* When the drawer is open, reflow the search site into the left half so it
   stays visible and interactive next to the console. */
#pageScroll { transition: padding-right .26s cubic-bezier(.4,0,.2,1); }
/* Lock the document and make each half its own scroll region — a scroll on one
   side never bleeds onto the other, even when a side has nothing left to
   scroll (CSS overscroll-behavior alone can't stop that). */
body.hank-drawer-open { height: 100vh; overflow: hidden; }
body.hank-drawer-open #pageScroll {
  height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  padding-right: var(--drawer-w);
}
body.hank-drawer-open .quote-dock { right: calc(var(--drawer-w) + 18px); }
/* tiles auto-fit the narrower left column — no horizontal scroll */
body.hank-drawer-open .tile-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.hd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.hd-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hd-ava { width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--coral-soft); color: var(--coral); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hd-name { font-size: 16px; font-weight: 750; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-mail { font-size: 12.5px; color: var(--muted); }
.hd-headbtns { display: flex; align-items: center; gap: 8px; flex: none; }
.hd-logout { font-size: 12.5px; font-weight: 650; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.hd-logout:hover { color: #c4453a; border-color: #e8b5b0; }
.hd-x { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 15px; cursor: pointer; }
.hd-x:hover { background: var(--soft); color: var(--ink); }
.hd-tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 8px 16px 0; background: #fff; border-bottom: 1px solid var(--line); }
.hd-tab {
  font-size: 13px; font-weight: 650; color: var(--muted); background: none; border: none;
  padding: 9px 11px 11px; cursor: pointer; white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
}
.hd-tab:hover { color: var(--ink); }
.hd-tab.active { color: var(--coral); border-bottom-color: var(--coral); }
.hd-badge { font-size: 10.5px; font-weight: 800; background: var(--coral-soft); color: var(--coral); border-radius: 999px; padding: 1px 7px; }
.hd-body { flex: 1 0 auto; padding: 22px; }
.hd-loading { color: var(--muted); font-size: 13.5px; padding: 30px; text-align: center; }

/* ── overview ───────────────────────────────────────────── */
.ov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ov-grid.ov-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ov-stat { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px 8px; text-align: center; cursor: pointer; transition: all .12s ease; display: flex; flex-direction: column; gap: 2px; }
.ov-stat:hover { border-color: var(--coral); box-shadow: var(--shadow); }
.ov-n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ov-l { font-size: 11px; color: var(--muted); font-weight: 600; }
.ov-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.ov-card-h { font-size: 13.5px; font-weight: 750; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ov-card-h svg { width: 16px; height: 16px; color: var(--sky); }
.ov-card p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ov-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--soft); }
.ov-actions { margin-top: 8px; }
.ov-zip { display: block; margin-top: 10px; font-size: 12px; font-weight: 650; color: var(--muted); }
.ov-zip-in { display: flex; gap: 8px; margin-top: 6px; }
.ov-zip-in input { flex: 1; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); }
.ov-zip-in input:focus { outline: 2px solid var(--coral); border-color: transparent; }
.ov-toggle { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; margin-bottom: 8px; cursor: pointer; }
.ov-radius { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; gap: 10px; }
.ov-radius select { font-family: var(--sans); font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; width: auto; min-width: 0; }
.ov-hint { margin-top: 8px !important; font-size: 12px !important; }

/* ── my vendors ─────────────────────────────────────────── */
.mv-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mv-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.mv-main { flex: 1; min-width: 0; }
.mv-name { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mv-tag { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 8px; letter-spacing: .02em; }
.mv-tag.pref { background: var(--sand-soft); color: var(--sand); }
.mv-tag.fav { background: var(--coral-soft); color: var(--coral); }
.mv-contact { font-size: 12.5px; color: var(--ink); margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mv-contact.muted { color: var(--muted); display: block; margin-top: 5px; }
.mv-c-name { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.mv-c-name svg { width: 13px; height: 13px; }
.mv-c-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-weight: 650;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; transition: all .12s ease;
}
.mv-c-link svg { width: 13px; height: 13px; }
.mv-c-link.tel { color: var(--sage); }
.mv-c-link.tel:hover { background: var(--sage-soft); border-color: var(--sage); text-decoration: none; }
.mv-c-link.mail { color: var(--sky); }
.mv-c-link.mail:hover { background: var(--sky-soft); border-color: var(--sky); text-decoration: none; }
.mv-terms { font-size: 12px; color: var(--sage); font-weight: 650; margin-top: 4px; }
.mv-notes { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.mv-acts { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex: none; }
.mv-acts .x-btn { padding: 6px 10px; }
.mv-edit { background: #fff; border: 1px solid var(--coral); border-radius: 14px; padding: 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 11px; }
.mv-checks { display: flex; gap: 18px; font-size: 13px; font-weight: 600; }
.mv-checks label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.mv-formbtns { display: flex; gap: 10px; align-items: center; }

/* ── saved parts ────────────────────────────────────────── */
.sp-list { display: flex; flex-direction: column; gap: 9px; }
.sp-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px; display: flex; align-items: center; gap: 12px; }
.sp-thumb { width: 52px; height: 52px; border-radius: 9px; flex: none; background: var(--softer); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #cfd4de; }
.sp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sp-thumb svg { width: 24px; height: 24px; }
.sp-info { flex: 1; min-width: 0; }
.sp-title { font-size: 13.5px; font-weight: 650; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-sub { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sp-acts { display: flex; flex-direction: column; gap: 5px; flex: none; }

/* ── search history ─────────────────────────────────────── */
.hist-list { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.hist-row { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; transition: all .12s ease; }
.hist-row:hover { border-color: var(--coral); box-shadow: var(--shadow); }
.hist-q { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.hist-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ── messages / chat ────────────────────────────────────── */
.msg-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 12px; height: 460px; }
.th-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; overscroll-behavior: contain; }
.th-row { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; cursor: pointer; transition: all .12s ease; }
.th-row:hover { border-color: var(--sky); }
.th-row.active { border-color: var(--coral); background: var(--coral-soft); }
.th-v { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-last { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-row.unread .th-v { font-weight: 800; }
.th-row.unread .th-last { color: var(--ink); font-weight: 600; }
.th-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 5px; vertical-align: middle;
  border-radius: 999px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 800;
}
.th-view { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.th-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.msg-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; }
.msg-b { font-size: 13px; line-height: 1.45; padding: 9px 12px; border-radius: 12px; }
.msg-t { font-size: 10px; color: var(--muted); margin-top: 3px; }
.msg.user { align-self: flex-end; text-align: right; }
.msg.user .msg-b { background: var(--coral); color: #fff; border-bottom-right-radius: 4px; }
.msg.vendor .msg-b, .msg.system .msg-b { background: var(--soft); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.system .msg-b { background: var(--sky-soft); color: #2b6ca3; font-style: italic; }
.msg-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.msg-form input { flex: 1; font-size: 14px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; }
.msg-form input:focus { outline: 2px solid var(--coral); border-color: transparent; }
.msg-form .btn-primary { padding: 10px 16px; }
.msg-form .btn-primary svg { width: 15px; height: 15px; }

/* ── inventory audit ────────────────────────────────────── */
.inv-up { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.inv-up textarea { width: 100%; font-family: var(--mono); font-size: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; resize: vertical; }
.inv-up textarea:focus { outline: 2px solid var(--coral); border-color: transparent; }
.inv-or { font-size: 12.5px; color: var(--muted); margin: 10px 0; }
.inv-file { color: var(--sky); font-weight: 650; cursor: pointer; text-decoration: underline; }
.inv-up .ov-toggle { margin: 12px 0; }
/* vendor inventory: actions, website import, listed table */
.inv-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.inv-file.btn-mini { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.inv-file.btn-mini svg { width: 15px; height: 15px; }
.inv-web { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px 18px; margin-bottom: 16px; }
.inv-web-row { display: flex; gap: 8px; }
.inv-web-row input { flex: 1; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.inv-web-row input:focus { outline: 2px solid var(--coral); border-color: transparent; }
.inv-web code { font-family: var(--mono); font-size: 11.5px; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.inv-listed { margin-top: 8px; }
/* customer finder modal */
.cf-search { display: flex; gap: 8px; margin-bottom: 14px; }
.cf-search input { flex: 1; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.cf-search select { font-size: 13px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cf-search input:focus { outline: 2px solid var(--coral); border-color: transparent; }
.cf-results { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.cf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; }
.cf-name { font-size: 13.5px; font-weight: 700; }
.cf-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* compose a new conversation: button above the thread list + clickable picker rows */
.nm-btn { margin-bottom: 12px; }
.nm-pick { cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.nm-pick:hover { border-color: var(--coral); background: var(--coral-soft); }
.inv-summary { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 650; margin-bottom: 12px; padding: 12px 14px; background: var(--softer); border: 1px solid var(--line); border-radius: 12px; }
.inv-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.inv-table th { text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.inv-table td { padding: 10px 12px; border-bottom: 1px solid var(--soft); font-variant-numeric: tabular-nums; }
.inv-table tbody tr:last-child td { border-bottom: none; }
.im-pn { font-family: var(--mono); font-weight: 600; }
.im-verdict { font-weight: 700; white-space: nowrap; }
.v-above, tr.v-above .im-verdict { color: #c4453a; }
.v-below, tr.v-below .im-verdict { color: var(--sage); }
.v-at, tr.v-at .im-verdict { color: var(--sky); }
.v-none, tr.v-none .im-verdict { color: var(--muted); }

/* ── profile & shop ─────────────────────────────────────── */
.pf-form { display: flex; flex-direction: column; gap: 11px; margin-bottom: 8px; }
.pf-splist { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.pf-sp { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.pf-sp > div:first-child { flex: 1; min-width: 0; }
.pf-sp .muted { font-size: 11.5px; margin-top: 2px; }
.pf-default { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }
.pf-spadd { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1fr auto; gap: 7px; align-items: center; }
.pf-spadd input { font-size: 13px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; }
.pf-spadd input:focus { outline: 2px solid var(--coral); border-color: transparent; }

/* ── geolocation banner ─────────────────────────────────── */
.geo-banner {
  position: fixed; left: 18px; bottom: 18px; z-index: 70; max-width: 380px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(32,36,46,.16); font-size: 13px; color: var(--ink);
}
.geo-banner svg { width: 20px; height: 20px; color: var(--sky); flex: none; }
.geo-banner span { flex: 1; line-height: 1.4; }
.geo-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; flex: none; }

/* ── toasts ─────────────────────────────────────────────── */
.hank-toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.hank-toast {
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 11px; box-shadow: 0 8px 28px rgba(32,36,46,.28);
  opacity: 0; transform: translateY(-10px); transition: opacity .22s ease, transform .22s ease;
}
.hank-toast.in { opacity: 1; transform: translateY(0); }
.hank-toast.err { background: #c4453a; }
.hank-toast.ok { background: #2c8a5f; }
.hank-toast.msg { background: var(--coral); }

/* ── portal responsive ──────────────────────────────────── */
/* Give the console a little more room on mid widths, and on phones drop the
   split entirely — the drawer becomes a full-screen panel over the search. */
@media (max-width: 1200px) { :root { --drawer-w: 56vw; } }
@media (max-width: 820px) {
  :root { --drawer-w: 100vw; }
  .hank-drawer { width: 100vw; }
  body.hank-drawer-open #pageScroll { padding-right: 0; }
  body.hank-drawer-open .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .acct-name, .rank-badge-tx { display: none; }
  .af-grid, .af-grid-3 { grid-template-columns: 1fr; }
  .sp-row { grid-template-columns: 1fr 1fr; }
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
  .msg-wrap { grid-template-columns: 1fr; height: auto; }
  .th-list { flex-direction: row; overflow-x: auto; }
  .pf-spadd { grid-template-columns: 1fr 1fr; }
  .hm-card { padding: 22px 18px; }
}

/* ── photo → inventory: scan, review & manage ──────────────────────────── */
.inv-scan { background: linear-gradient(180deg, var(--coral-soft), #fff); border: 1px solid #f6ddd3; border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.scan-drop { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; background: #fff; border: 1.5px dashed #f0c9bb; border-radius: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.scan-drop:hover { border-color: var(--coral); background: #fffaf8; }
.scan-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--coral-soft); color: var(--coral); }
.scan-ic svg { width: 22px; height: 22px; }
.scan-txt { display: flex; flex-direction: column; line-height: 1.35; }
.scan-txt b { font-weight: 700; }
.scan-txt small { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.scan-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: #fff; border: 1.5px solid #f0c9bb; border-radius: 11px; cursor: pointer; font-weight: 650; font-size: 13.5px; transition: border-color .15s, background .15s, color .15s; }
.scan-btn:hover { border-color: var(--coral); background: #fffaf8; color: var(--coral); }
.scan-btn svg { width: 18px; height: 18px; color: var(--coral); }
.scan-hint { font-size: 11.5px; color: var(--muted); margin: 9px 2px 0; }
.scan-note { font-size: 12px; color: var(--sand); margin-top: 9px; }
.scan-files { font-size: 12.5px; color: var(--sage); font-weight: 650; margin: 7px 2px 0; min-height: 16px; }
.inv-scan .btn-primary { margin-top: 11px; }
.inv-scanoff { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); background: var(--softer); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.inv-scanoff svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.inv-more { margin-bottom: 14px; }
.inv-more > summary { font-size: 12.5px; color: var(--muted); cursor: pointer; padding: 7px 2px; font-weight: 650; }
.inv-more > summary:hover { color: var(--coral); }
.inv-more[open] > summary { margin-bottom: 8px; }
.inv-web-row { display: flex; gap: 8px; margin-top: 10px; }
.inv-web-row input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.inv-web-row .btn-mini { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.inv-web-row .btn-mini svg { width: 14px; height: 14px; }
.inv-contact { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); background: var(--softer); border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; margin-bottom: 16px; }
.inv-contact svg { width: 15px; height: 15px; flex: none; color: var(--sage); }
.inv-contact b { color: var(--ink); font-weight: 650; }

/* draft review table */
.dr-card { border: 1px solid #f6ddd3; border-radius: 16px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.dr-head { font-size: 12.5px; padding: 13px 15px; background: var(--coral-soft); color: var(--ink); }
.dr-head .dr-note { color: var(--muted); }
.dr-card .inv-tablewrap { border: none; border-radius: 0; border-top: 1px solid var(--line); }
.dr-table td, .li-table td { vertical-align: middle; }
.dr-img, .li-img { width: 46px; }
.dr-img img, .li-img img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.dr-noimg { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--soft); color: #c5cad3; }
.dr-noimg svg { width: 18px; height: 18px; }
.dr-f { width: 100%; min-width: 70px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; font-family: inherit; background: #fff; }
.dr-pn, .li-pn { font-family: var(--mono); }
.dr-f:focus, .li-f:focus { outline: 2px solid var(--coral); border-color: transparent; }
.dr-pricecell { white-space: nowrap; }
.dr-pricecell span, .li-pricewrap { color: var(--muted); }
.dr-pr, .li-pr { width: 78px; min-width: 60px; display: inline-block; }
.dr-row.need-price .dr-pr { border-color: var(--coral); background: var(--coral-soft); }
.dr-flags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.dr-flag { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; white-space: nowrap; background: var(--soft); color: var(--muted); }
.dr-flag.f-no-price { background: var(--coral-soft); color: var(--coral); }
.dr-flag.f-pn-uncertain { background: var(--sand-soft); color: var(--sand); }
.dr-rm { margin-left: auto; background: none; border: none; color: #c5cad3; padding: 4px; border-radius: 7px; line-height: 0; }
.dr-rm:hover { color: #c4453a; background: #fdeceb; }
.dr-rm svg { width: 15px; height: 15px; }
.dr-actions { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-top: 1px solid var(--line); }

/* editable listed catalog */
.li-act { white-space: nowrap; text-align: right; }
.li-btn { background: none; border: 1px solid transparent; color: var(--muted); padding: 5px; border-radius: 8px; line-height: 0; margin-left: 2px; }
.li-btn:hover { border-color: var(--line); color: var(--coral); background: #fff; }
.li-btn.danger:hover { color: #c4453a; background: #fdeceb; }
.li-btn.save { color: var(--sage); }
.li-btn.save:hover { color: #fff; background: var(--sage); border-color: var(--sage); }
.li-btn svg { width: 15px; height: 15px; }
.li-row.editing { background: var(--coral-soft); }
.li-row.editing td { padding: 7px 12px; }

/* ── public vendor storefront (/vendor/:id) ────────────────────────────── */
.vendor-main { max-width: 1100px; margin: 0 auto; padding: 24px; }
.vp-loading { color: var(--muted); padding: 60px; text-align: center; }
.vp-empty { color: var(--muted); padding: 50px; text-align: center; background: var(--softer); border: 1px dashed var(--line); border-radius: 14px; }
.vp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.vp-id { display: flex; gap: 15px; align-items: center; }
.vp-ava { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; flex: none; border-radius: 14px; background: var(--coral-soft); color: var(--coral); font-weight: 800; font-size: 19px; }
.vp-name { margin: 0; font-size: 23px; letter-spacing: -.01em; }
.vp-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.vp-contact { font-size: 13px; margin-top: 5px; color: var(--ink); }
.vp-actions { display: flex; gap: 9px; }
.vp-call, .vp-mail { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px; }
.vp-call { background: var(--sage); color: #fff; }
.vp-call:hover { filter: brightness(1.05); text-decoration: none; }
.vp-mail { border: 1px solid var(--line); color: var(--ink); }
.vp-mail:hover { border-color: var(--coral); color: var(--coral); text-decoration: none; }
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vp-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.vp-card:hover { box-shadow: var(--shadow); border-color: #e0e2ea; }
.vp-thumb { height: 150px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.vp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.vp-box { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.vp-cbody { padding: 12px 13px 14px; }
.vp-pn { font-family: var(--mono); font-size: 12px; color: var(--coral); font-weight: 600; }
.vp-title { font-size: 13.5px; margin: 3px 0 9px; line-height: 1.35; }
.vp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vp-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.vp-avail { font-size: 11px; color: var(--sage); font-weight: 650; }
@media (max-width: 560px) {
  .scan-txt small { font-size: 11px; }
  .vp-head { flex-direction: column; }
  .vp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ── Feedback widget (home page) ─────────────────────────── */
.hf-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; font-family: var(--sans); }
.hf-fab {
  display: inline-flex; align-items: center; gap: 8px; border: none;
  background: var(--coral); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 16px; border-radius: 26px; box-shadow: var(--shadow);
}
.hf-fab svg { width: 18px; height: 18px; }
.hf-fab:hover { filter: brightness(1.04); }
.hf-fab.on { background: var(--ink); }
.hf-panel {
  position: absolute; right: 0; bottom: 56px; width: min(360px, 92vw);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.hf-head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.hf-head-t { display: flex; flex-direction: column; }
.hf-head-t strong { font-size: 15px; }
.hf-head-t span { font-size: 12px; color: var(--muted); }
.hf-x { margin-left: auto; border: none; background: none; font-size: 22px; line-height: 1; color: var(--muted); }
.hf-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.hf-msg { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.hf-hank { align-self: flex-start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 4px; }
.hf-me { align-self: flex-end; background: var(--coral-soft); color: var(--ink); border-bottom-right-radius: 4px; }
.hf-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 4px; }
.hf-cat { font-size: 12px; padding: 5px 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.hf-cat.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hf-compose { display: flex; align-items: flex-end; gap: 6px; padding: 8px 12px 6px; }
.hf-compose textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  font-family: inherit; font-size: 13.5px; color: var(--ink); max-height: 90px;
}
.hf-compose textarea:focus { outline: none; border-color: var(--coral); }
.hf-mic { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 10px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.hf-mic svg { width: 17px; height: 17px; }
.hf-mic.on { background: var(--coral); color: #fff; border-color: var(--coral); animation: hf-pulse 1.1s infinite; }
@keyframes hf-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,122,89,.5);} 50% { box-shadow: 0 0 0 6px rgba(255,122,89,0);} }
.hf-send { padding: 9px 14px; border: none; border-radius: 10px; }
.hf-foot { font-size: 10.5px; color: var(--muted); padding: 2px 14px 12px; }

/* ── Join (invite registration) ──────────────────────────── */
.join-wrap { max-width: 460px; margin: 0 auto; padding: 48px 20px 60px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.join-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.join-card { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 26px 24px; }
.join-card h1 { font-size: 24px; margin: 6px 0 6px; letter-spacing: -.02em; }
.join-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--coral); background: var(--coral-soft); padding: 4px 9px; border-radius: 10px; }
.join-blurb { color: var(--muted); font-size: 14px; margin: 0 0 18px; line-height: 1.5; }
.jf { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.jf > span { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.jf > span small { font-weight: 500; color: var(--muted); }
.jf input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; color: var(--ink); }
.jf input:focus { outline: none; border-color: var(--coral); }
.jf input[readonly] { background: var(--soft); color: var(--muted); }
.jf-row { display: flex; gap: 12px; }
.jf-row .jf { flex: 1; }
.join-go { width: 100%; margin-top: 6px; padding: 12px; border: none; border-radius: 11px; font-size: 15px; }
.join-err { background: var(--coral-soft); color: #b8431f; border-radius: 9px; padding: 9px 11px; font-size: 13px; margin-bottom: 10px; }
.join-foot { font-size: 11.5px; color: var(--muted); text-align: center; max-width: 380px; line-height: 1.5; }
.join-bad h1 { font-size: 21px; margin: 0 0 8px; }
.join-bad p { color: var(--muted); }
.join-muted { font-size: 13px; }
.join-loading { color: var(--muted); text-align: center; padding: 20px; }

/* ── Develop console ─────────────────────────────────────── */
.dev-body { background: var(--soft); }
.dev-login { max-width: 420px; margin: 0 auto; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.dev-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 11px 22px; flex-wrap: wrap; }
.dev-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.dev-tab { border: none; background: none; color: var(--muted); font-weight: 650; font-size: 14px; padding: 7px 12px; border-radius: 9px; }
.dev-tab:hover { background: var(--soft); }
.dev-tab.on { background: var(--ink); color: #fff; }
.dev-top-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.dev-refresh { border: 1px solid var(--line); background: #fff; border-radius: 9px; width: 34px; height: 34px; font-size: 16px; }
.dev-out { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 12px; font-size: 13px; color: var(--muted); }
.dev-main { max-width: 1100px; margin: 0 auto; padding: 22px; }
.dev-loading, .dev-empty { color: var(--muted); text-align: center; padding: 32px; }
.dev-note { color: var(--muted); font-size: 13px; background: var(--sky-soft); border-radius: 10px; padding: 10px 13px; }

.dev-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px; margin-bottom: 16px; }
.dev-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.dev-stat-n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dev-stat-l { font-size: 13px; font-weight: 650; color: var(--ink); margin-top: 2px; }
.dev-stat-h { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.dev-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13.5px; }
.dev-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 11px 13px; border-bottom: 1px solid var(--line); font-weight: 700; }
.dev-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dev-table tr:last-child td { border-bottom: none; }
.dev-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.dev-table .mono { font-family: var(--mono); font-size: 12px; }
.dev-table td.zero, .num.zero { color: var(--coral); font-weight: 700; }
.dev-row { cursor: pointer; }
.dev-row:hover { background: var(--softer); }
.dev-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dev-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; text-transform: capitalize; }
.dev-pill.s { background: var(--sky-soft); color: var(--sky); }
.dev-pill.v { background: var(--sage-soft); color: var(--sage); }

.dev-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.dev-check { font-size: 13px; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.dev-sel { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-family: inherit; font-size: 13px; background: #fff; }

.dev-fb-list { display: flex; flex-direction: column; gap: 11px; }
.dev-fb { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; }
.dev-fb.new { border-left: 3px solid var(--coral); }
.dev-fb.resolved { opacity: .62; }
.dev-fb-h { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.dev-cat { font-weight: 700; font-size: 13px; }
.dev-voice { font-size: 11px; color: var(--lavender); background: var(--lavender-soft); padding: 2px 7px; border-radius: 9px; }
.dev-fb-when { margin-left: auto; font-size: 12px; color: var(--muted); }
.dev-fb-body { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.dev-fb-acts { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dev-fb-acts button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--muted); }
.dev-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9px; text-transform: capitalize; }
.dev-status.new { background: var(--coral-soft); color: var(--coral); }
.dev-status.read { background: var(--soft); color: var(--muted); }
.dev-status.resolved { background: var(--sage-soft); color: var(--sage); }
.dev-status.pending { background: var(--sand-soft); color: var(--sand); }
.dev-status.opened { background: var(--sky-soft); color: var(--sky); }
.dev-status.registered { background: var(--sage-soft); color: var(--sage); }
.dev-status.expired, .dev-status.revoked { background: var(--soft); color: var(--muted); }

.dev-invite-new { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.dev-invite-new h3 { margin: 0 0 12px; font-size: 16px; }
.dev-inv-form { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.dev-inv-form input { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-family: inherit; font-size: 13.5px; flex: 1; min-width: 160px; }
.dev-inv-form input:focus { outline: none; border-color: var(--coral); }
.dev-inv-form .go { padding: 9px 15px; border: none; border-radius: 9px; }
.dev-type { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dev-type-opt { border: none; background: #fff; color: var(--muted); font-weight: 650; font-size: 13px; padding: 9px 14px; }
.dev-type-opt.on { background: var(--coral); color: #fff; }
.dev-inv-ok { margin-top: 13px; background: var(--sage-soft); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--ink); }
.dev-inv-link { display: flex; gap: 7px; margin-top: 7px; }
.dev-inv-link input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 12px; background: #fff; }
.dev-copy, .dev-revoke { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 11px; font-size: 12.5px; }
a.dev-copy, a.dev-email { color: var(--ink); text-decoration: none; display: inline-block; }
a.dev-copy:hover { text-decoration: none; background: var(--soft); }
.dev-revoke { color: var(--coral); }
.dev-invites td { vertical-align: middle; }

.dev-overlay { position: fixed; inset: 0; background: rgba(32,36,46,.4); z-index: 220; display: flex; justify-content: flex-end; }
.dev-sheet { width: min(460px, 94vw); background: #fff; height: 100%; overflow-y: auto; padding: 24px; box-shadow: -18px 0 60px rgba(32,36,46,.18); position: relative; }
.dev-sheet-x { position: absolute; top: 14px; right: 16px; }
.dev-sheet h2 { margin: 6px 0 4px; font-size: 21px; }
.dev-tl { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.dev-tl-item { display: flex; gap: 10px; align-items: flex-start; }
.dev-tl-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); font-size: 13px; }
.dev-tl-ic.zero { background: var(--coral-soft); }
.dev-tl-ic.fb { background: var(--lavender-soft); }
.dev-tl-item b { font-weight: 650; font-size: 13.5px; }

@media (max-width: 640px) {
  .dev-top { gap: 10px; }
  .dev-main { padding: 16px 12px; }
  .dev-table { font-size: 12.5px; }
  .dev-table th, .dev-table td { padding: 9px 9px; }
}

/* ── Invite gate (Sign up in invite-only mode) ───────────── */
.auth-or { display: flex; align-items: center; text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-or span { padding: 0 10px; }
.auth-submit.ghost-submit { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.auth-submit.ghost-submit:hover { background: var(--soft); }
.acct-type-sm { gap: 6px; }
.acct-type-sm .acct-type-opt { padding: 9px 12px; justify-content: center; font-weight: 650; font-size: 13px; text-align: center; }

/* ── demo lite: vendor apply · search-rank chip · leaderboard ───────────── */
.apply-intro { margin-bottom: 16px; }
.apply-intro .apply-lead { font-size: 15px; font-weight: 750; color: var(--ink); margin: 0 0 6px; }
.apply-intro p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* rank chip above the home search (signed-in shops) */
/* rank badge in the top bar, left of the account button */
.rank-badge-slot { display: flex; align-items: center; }
.rank-badge { cursor: pointer; padding: 6px 12px 6px 6px; }
.rank-badge:hover { border-color: var(--coral); }
.rank-badge-ic { width: 26px; height: 26px; border-radius: 8px; flex: none; background: var(--coral-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.rank-badge-tx { font-weight: 700; }

/* leaderboard tab */
.lb-you-card { display: flex; align-items: center; gap: 14px; background: var(--coral-soft); border: 1px solid #ffd9cc; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.lb-you-rank { font-size: 30px; line-height: 1; }
.lb-you-title { font-size: 15px; }
.lb-you-title b { font-weight: 800; }
.lb-you-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lb-list { display: flex; flex-direction: column; gap: 7px; }
.lb-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.lb-row.me { border-color: var(--coral); background: var(--coral-soft); }
.lb-pos { flex: none; width: 28px; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); }
.lb-main { flex: 1; min-width: 0; }
.lb-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-you { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--coral); color: #fff; border-radius: 5px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.lb-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.lb-n { flex: none; text-align: right; font-weight: 800; font-size: 16px; }
.lb-n span { display: block; font-size: 10px; font-weight: 600; color: var(--muted); }
.vp-done { margin-top: 14px; }

/* leaderboard: ranks ladder (thresholds to climb) */
/* compact ranks ladder — all tiers in a row, threshold under each */
.lb-ladder { background: var(--softer); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 13px; margin-bottom: 12px; }
.lb-ladder-caption { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 9px; }
.lb-ladder-row { display: flex; gap: 6px; }
.lb-tier { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 7px 3px; border-radius: 10px; border: 1px solid transparent; }
.lb-tier.on { background: var(--coral-soft); border-color: #ffd9cc; }
.lb-tier-ic { font-size: 19px; line-height: 1; }
.lb-tier-name { font-size: 11px; font-weight: 700; line-height: 1.15; }
.lb-tier-req { font-size: 11px; font-weight: 700; color: var(--coral); }
.lb-intro { font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1.5; margin: 2px 0 14px; text-align: center; }
.lb-list-h { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; text-align: center; }

/* invite tab (shop referrals) */
.inv-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.inv-thanks { display: flex; gap: 13px; align-items: flex-start; background: var(--coral-soft); border: 1px solid #ffd9cc; border-radius: 13px; padding: 14px 16px; margin-bottom: 18px; }
.inv-thanks-ic { flex: none; color: var(--coral); }
.inv-thanks-ic svg { width: 22px; height: 22px; }
.inv-thanks-h { font-size: 14.5px; font-weight: 750; margin-bottom: 3px; }
.inv-thanks p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.inv-link-l { display: block; font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.inv-link { display: flex; gap: 8px; }
.inv-link input { flex: 1; min-width: 0; font-size: 13.5px; font-family: var(--mono); padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--softer); color: var(--ink); }
.inv-link input:focus { outline: 2px solid var(--coral); border-color: transparent; }
.inv-actions { margin-top: 12px; }
.inv-email { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.inv-email svg { width: 15px; height: 15px; }
.inv-count { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.inv-count-n { font-size: 20px; font-weight: 800; color: var(--ink); }

/* develop: remove-tester button (two-click confirm) */
.dev-rm { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 11px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .12s ease; }
.dev-rm:hover { border-color: #e2675c; color: #c4453a; }
.dev-rm.armed { background: #fdecea; border-color: #e2675c; color: #c4453a; font-weight: 700; }
.dev-rm:disabled { opacity: .6; cursor: wait; }
.dev-actions { display: flex; gap: 7px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.dev-reset { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 11px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .12s ease; }
.dev-reset:hover { border-color: var(--coral); color: var(--coral); }
.dev-reset.armed { background: #fff3ef; border-color: var(--coral); color: #d9542f; font-weight: 700; }
.dev-reset:disabled { opacity: .6; cursor: wait; }
.dev-temp { font-size: 12.5px; color: var(--ink); }
.dev-temp code { background: var(--sky-soft); border-radius: 6px; padding: 2px 7px; font-weight: 700; letter-spacing: .3px; }
.dev-copy { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--muted); cursor: pointer; }
.dev-copy:hover { border-color: var(--coral); color: var(--coral); }

/* develop: Account → change console password */
.dev-account { max-width: 440px; }
.dev-h { font-size: 17px; font-weight: 800; color: var(--ink); margin: 4px 0 10px; }
.dev-pwform { display: grid; gap: 12px; margin: 16px 0; }
.dev-pwform label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.dev-pwform input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fff; }
.dev-pwform input:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: transparent; }
.dev-btn { background: var(--coral); color: #fff; border: none; border-radius: 10px; padding: 11px 16px; font-size: 14px; font-weight: 700; cursor: pointer; justify-self: start; }
.dev-btn:hover { filter: brightness(1.05); }
.dev-btn:disabled { opacity: .6; cursor: wait; }
.dev-pwmsg { font-size: 13px; min-height: 1px; }
.dev-pwmsg.ok { color: #1f9d62; }
.dev-pwmsg.err { color: #c4453a; }
.dev-note-dim { background: transparent; padding: 6px 0; color: var(--muted); }
.dev-note-dim code { background: var(--sky-soft); border-radius: 5px; padding: 1px 6px; }
