/* base.css — BanguiBazar design tokens + components
   Ported from Claude Design "Design System" — warm-rust on Tailwind grays. */

:root {
  /* neutrals — Tailwind gray (matches observed body bg / text) */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* surfaces */
  --shop-gray: #e3e6e6;
  --bg: var(--shop-gray);
  --surface: #ffffff;
  --surface-sunken: var(--gray-50);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);

  /* text */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  --text-inverse: #ffffff;

  /* commerce shell */
  --header-bg: #131921;
  --header-sub: #232f3e;
  --urgency: #f3a847;

  /* accent — warm rust */
  --accent-50: #fff5f0;
  --accent-100: #ffe3d6;
  --accent-300: #f5a984;
  --accent-500: #d97757;
  --accent-600: #c0613f;
  --accent-700: #9c4a2d;
  --accent: var(--accent-500);
  --accent-hover: var(--accent-600);
  --accent-soft: rgba(217, 119, 87, 0.18);

  /* status */
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --info: #1d4ed8;
  --info-bg: #dbeafe;

  /* type scale (1.25, base 14 — scaled down ~12% site-wide) */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 21px;
  --text-3xl: 26px;
  --text-4xl: 32px;
  --text-5xl: 42px;

  /* line heights */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-loose: 1.7;

  /* spacing — 4px base */
  --s-0: 0;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  /* legacy aliases (existing rules still reference these) */
  --space-1: var(--s-1);
  --space-2: var(--s-2);
  --space-3: var(--s-3);
  --space-4: var(--s-4);
  --space-6: var(--s-6);
  --space-8: var(--s-8);
  --space-12: var(--s-12);

  /* radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);

  /* shadows */
  --shadow-xs: 0 1px 1px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 4px 8px rgba(17, 24, 39, 0.06), 0 2px 4px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 12px 24px rgba(17, 24, 39, 0.08), 0 4px 8px rgba(17, 24, 39, 0.04);

  /* fonts */
  --font-sans: Inter, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --container: 1200px;
  --gutter: 24px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* typography */
h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  margin: var(--s-8) 0 var(--s-4);
}
h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-2);
}
p { margin: 0 0 var(--s-4); }
small, .text-muted { color: var(--text-muted); font-size: var(--text-xs); }


/* layout: main */
main {
  width: 100%;
  margin: 0 auto;
  padding: var(--s-6) var(--gutter);
}
/* default pages render as a single white tile on the shop-gray background;
   home/browse/detail manage their own surfaces. NOTE: wide/grid pages must
   opt into `.page-wide` (uncapped tile) via their body_class block. */
body:not(.page-home):not(.page-browse):not(.page-detail) main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: var(--s-4) auto;
  padding: var(--s-6);
}
body:not(.page-home):not(.page-browse):not(.page-detail):not(.page-wide) main {
  max-width: 720px;
}

/* buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s, box-shadow 0.12s, transform 0.04s;
}
.btn-primary:active, .btn-secondary:active, .btn-ghost:active, .btn-danger:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent-500);
  color: var(--text-inverse);
  border-color: var(--accent-600);
  box-shadow: 0 1px 2px rgba(156, 74, 45, 0.25);
}
.btn-primary:hover {
  background: var(--accent-600);
  color: var(--text-inverse);
  text-decoration: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--text-primary);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 8px 12px;
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--text-primary);
  text-decoration: none;
}
.btn-danger {
  background: var(--danger);
  color: var(--text-inverse);
  border-color: #991b1b;
}
.btn-danger:hover {
  background: #991b1b;
  color: var(--text-inverse);
  text-decoration: none;
}
.btn-primary[disabled], .btn-primary.is-disabled,
.btn-secondary[disabled], .btn-secondary.is-disabled,
.btn-ghost[disabled], .btn-ghost.is-disabled,
.btn-danger[disabled], .btn-danger.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* default <button> in forms = primary */
button:not([class*="btn-"]) {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  background: var(--accent-500);
  color: var(--text-inverse);
  border: 1px solid var(--accent-600);
  border-radius: var(--r-md);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(156, 74, 45, 0.25);
  transition: background 0.12s, border-color 0.12s;
}
button:not([class*="btn-"]):hover { background: var(--accent-600); }

/* forms */
form p { margin: 0 0 var(--s-4); }
form p > label, .label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
form p > input[type="text"],
form p > input[type="email"],
form p > input[type="password"],
form p > input[type="url"],
form p > input[type="number"],
form p > input[type="tel"],
form p > input[type="search"],
form p > input:not([type]),
form p > input[type="file"],
form p > select,
form p > textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="url"], input[type="number"], input[type="tel"],
input[type="search"], input:not([type]), select, textarea, .input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color 0.12s, box-shadow 0.12s;
}
form p > input:focus,
form p > select:focus,
form p > textarea:focus,
input:focus, select:focus, textarea:focus, .input:focus {
  outline: 0;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 96px; resize: vertical; line-height: var(--lh-normal); }
.input.is-error, input.is-error { border-color: var(--danger); }
.input.is-error:focus, input.is-error:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}
.errorlist {
  list-style: none;
  margin: 0 0 var(--s-2);
  padding: 0;
  color: var(--danger);
  font-size: var(--text-xs);
}
.helptext {
  display: block;
  margin-top: var(--s-1);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: none; transition: box-shadow .12s; }
.card:hover { box-shadow: var(--shadow-md); }
.card-link { color: inherit; display: block; text-decoration: none; }
.card-link:hover { text-decoration: none; color: inherit; }
.card-photo {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--gray-100) 0 12px, var(--gray-200) 12px 24px);
  position: relative;
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo-fallback {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, var(--gray-100) 0 12px, var(--gray-200) 12px 24px);
}
.card-body { padding: var(--s-3) var(--s-4) var(--s-4); }
.card-price { font-size: var(--text-lg); font-weight: 800; color: var(--text-primary); }
.card-cur { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.card-title {
  font-size: var(--text-sm); font-weight: 400; color: var(--gray-700); margin: 2px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.card-trust { font-size: var(--text-xs); margin-top: 4px; font-weight: 600; }
.card-trust.ok { color: var(--success); }

/* status pill — overlaid on card photo (used on My listings) */
.status-pill {
  font-size: var(--text-xs);
  font-weight: 500;
}
.card-status {
  margin-top: var(--s-2);
  padding: 0 var(--s-5) var(--s-4);
  color: var(--text-muted);
}
.card-actions + .card-status { padding-left: calc(var(--s-5) + 10px); }
.status-pill.status-active { color: var(--success); border-color: var(--success-bg); }
.status-pill.status-pending { color: var(--warning); border-color: var(--warning-bg); }
.status-pill.status-draft { color: var(--gray-700); border-color: var(--gray-200); }
.status-pill.status-muted { color: var(--gray-700); border-color: var(--gray-200); }

/* badges */
.badge-success, .badge-warning, .badge-muted, .verified-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.badge-success, .verified-badge { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-muted {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-200);
}

/* leaving banner */
.leaving-banner { font-size: var(--text-xs); color: var(--warning); font-weight: 600; margin-top: 4px; background: none; padding: 0; border: 0; }

/* listing grid — dense: 3 columns even on phones, gap widens with viewport */
.grid-listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* compact cards so 3-up fits on narrow phones */
@media (max-width: 599px) {
  .card-body { padding: var(--s-2); }
  .card-price { font-size: var(--text-base); }
}

/* results line + sort */
.results-line { display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-sm); color: var(--text-secondary); margin: var(--s-3) 0; flex-wrap: wrap; gap: var(--s-2); }
.sort-form select { padding: 4px 8px; font-size: var(--text-sm); border-radius: var(--r-sm); width: auto; }

/* browse layout: sidebar + results */
.browse-layout { display: flex; gap: var(--s-4); align-items: flex-start; }
.filters { width: 165px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.filters summary { display: none; cursor: pointer; font-weight: 700; }
.filter-group h2 { font-size: var(--text-sm); font-weight: 600; margin: var(--s-3) 0 var(--s-1); }
.filter-group ul { list-style: none; margin: 0; padding: 0; }
.filter-group a { font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none; display: block; padding: 3px 0; }
.filter-group a:hover { color: var(--accent-700); }
.filter-group a.active { color: var(--accent-700); font-weight: 700; }
.filter-clear { display: inline-block; margin-top: var(--s-3); font-size: var(--text-sm); color: var(--danger); }
.browse-results { flex: 1; min-width: 0; }

/* pager */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.pager a {
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text-primary);
}
.pager a:hover { background: var(--gray-50); text-decoration: none; }
.pager span { color: var(--text-muted); font-size: var(--text-sm); }

/* detail */
.breadcrumb { font-size: var(--text-sm); color: var(--text-muted); margin: var(--s-3) 0; }
.breadcrumb a { color: var(--text-secondary); }
.detail-commerce { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,4fr) 280px;
  gap: var(--s-6); align-items: start; }
.detail-gallery img#gallery-main { width: 100%; height: auto; border-radius: var(--r-md); }
.detail-photo-fallback { aspect-ratio: 4 / 3; height: auto; border-radius: var(--r-md); }
.gallery-thumbs { display: flex; gap: var(--s-2); margin-top: var(--s-2); flex-wrap: wrap; }
.gallery-thumbs .gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm);
  background: none; cursor: pointer; line-height: 0; box-shadow: none; color: inherit; }
.gallery-thumbs .gallery-thumb:hover { background: none; }
.gallery-thumbs .gallery-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.gallery-thumbs .gallery-thumb.active { border-color: var(--accent); }
.detail-description { margin-top: var(--s-4); }
.about-heading { font-size: var(--text-lg); margin-top: var(--s-5); }
.about-list { padding-left: var(--s-5); line-height: var(--lh-loose); }
.buy-box { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4);
  background: var(--surface); position: sticky; top: var(--s-4); }
.buy-price { font-size: var(--text-xl); font-weight: 800; }
.buy-trust { color: var(--success); font-size: var(--text-sm); font-weight: 600; margin-top: var(--s-2); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: var(--s-3); }
@media (max-width: 999px) {
  .detail-commerce { display: flex; flex-direction: column; }
  .buy-box { position: static; order: 2; width: 100%; }
  .detail-gallery { order: 1; }
  .detail-info { order: 3; }
}

/* alerts list */
.alerts-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.alert-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.alert-row .alert-name { font-size: var(--text-lg); font-weight: 600; flex: 1; min-width: 200px; }
.alert-row .alert-actions { display: flex; gap: var(--s-2); margin-left: auto; flex-wrap: wrap; }
.alert-row form { margin: 0; }

/* save-search inline form */
.save-search {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: end;
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-4);
}
.save-search input, .save-search select { width: auto; flex: 1; min-width: 140px; }

/* messages list (Q&A, reviews) */
.message-thread, .reviews { list-style: none; padding: 0; margin: 0; }
.message-thread li, .reviews li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-5);
  margin-bottom: var(--s-2);
}

/* focus-visible (keyboard) */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.btn-danger:focus-visible,
button:not([class*="btn-"]):focus-visible,
.pager a:focus-visible,
.card-link:focus-visible,
.topbar .brand:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* responsive */
@media (max-width: 899px) {
  .browse-layout { display: block; }
  .filters { width: auto; margin-bottom: var(--s-3); }
  .filters summary { display: list-item; }
}

@media (min-width: 600px) {
  .grid-listings { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
}

@media (min-width: 900px) {
  .grid-listings { grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
}

/* Wide-viewport listings grid (applies wherever .grid-listings appears) */
@media (min-width: 1200px) {
  .grid-listings { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 1500px) {
  .grid-listings { grid-template-columns: repeat(10, 1fr); }
}
@media (min-width: 1800px) {
  .grid-listings { grid-template-columns: repeat(12, 1fr); }
}
/* owner action buttons + flash messages */
.card-actions, .owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.card-actions { padding: 0 var(--s-5); }
.owner-actions { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--border); }
.owner-actions .meta { width: 100%; margin: 0 0 var(--s-2); color: var(--text-muted); font-size: var(--text-sm); }
.inline-form { display: inline; margin: 0; }
.btn-sm { padding: 4px 10px; font-size: var(--text-xs); }
.btn-danger-link { color: var(--danger, #b3261e); }
.btn-danger-link:hover { background: rgba(179, 38, 30, 0.08); }

.flash-messages {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.flash-messages li {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.flash-success { border-color: #c2e0c2; background: #eaf7ea; color: #1f5b1f; }
.flash-error   { border-color: #e6c2c2; background: #fbeaea; color: #7a1f1f; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: var(--s-3);
  top: var(--s-3);
  z-index: 1000;
  padding: var(--s-2) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.error-page {
  text-align: center;
  padding: var(--s-6) 0;
}

/* ===== commerce shell ===== */
.topbar {
  background: var(--header-bg);
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-2) var(--s-4);
}
.topbar .brand { color: #fff; font-weight: 800; font-size: var(--text-xl); text-decoration: none; }
.topbar .brand-dot { color: var(--accent); }
.header-search { flex: 1; max-width: 640px; display: flex; border-radius: var(--r-sm); overflow: hidden; }
.header-search input {
  flex: 1; border: 0; border-radius: 0; padding: 10px 12px; font-size: var(--text-sm); min-width: 0;
}
.header-search button {
  border: 0; border-radius: 0; background: var(--accent); color: #fff;
  padding: 0 14px; font-size: var(--text-lg); cursor: pointer;
}
.header-search button:hover { background: var(--accent-hover); }
.account-nav { display: flex; align-items: center; gap: var(--s-4); }
.account-block { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; }
.account-line { color: var(--gray-300); font-size: var(--text-xs); }
.account-strong { color: #fff; font-size: var(--text-sm); font-weight: 700; }
.account-small { color: var(--gray-300); font-size: var(--text-xs); text-decoration: none; }
.account-small:hover, .account-block:hover .account-strong { text-decoration: underline; color: #fff; }
.btn-header-cta {
  background: var(--accent-700); color: #fff; font-weight: 700; font-size: var(--text-sm);
  padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap;
}
.btn-header-cta:hover { background: var(--accent-600); text-decoration: none; }
.catbar {
  background: var(--header-sub); display: flex; gap: var(--s-5); align-items: center;
  padding: 7px var(--s-4); overflow-x: auto; scrollbar-width: none;
}
.catbar::-webkit-scrollbar { display: none; }
.catbar a {
  color: var(--gray-200); font-size: var(--text-sm); text-decoration: none; white-space: nowrap;
  padding: 2px 0; min-height: 28px; display: inline-flex; align-items: center;
}
.catbar a:hover { color: #fff; text-decoration: underline; }
.catbar-all { font-weight: 700; color: #fff; }
.catbar-leaving { color: var(--urgency); font-weight: 700; }
.site-footer {
  background: var(--header-sub); color: var(--gray-300);
  text-align: center; padding: var(--s-5) var(--s-4); margin-top: var(--s-8);
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; }
  .topbar .brand { order: 1; }
  .account-nav { order: 2; margin-left: auto; gap: var(--s-3); }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .account-block .account-line { display: none; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.price-was { color: var(--text-muted); font-size: var(--text-xs); font-weight: 400; }
.discount-chip {
  background: #ef4444; /* brighter deal-red; --danger stays for errors */
  color: var(--text-inverse);
  font-size: var(--text-xs); font-weight: 500;
  border-radius: var(--r-sm); padding: 1px 6px; white-space: nowrap;
}
.buy-was { margin-bottom: 2px; }
.price-form .price-row { display: flex; gap: var(--s-2); margin-top: var(--s-1); }
.price-form input { min-width: 0; }
