:root {
  /* Gruve 2026 brand palette (see Brand Guidelines) */
  --gruve-agate: #062D1F;         /* deepest — dark backgrounds, headings */
  --gruve-agate-mid: #0E4A32;     /* between agate and emerald */
  --gruve-emerald: #21A55E;       /* primary brand (text on white, buttons, fills) */
  --gruve-emerald-mid: #178048;   /* gradient mid-tone */
  --gruve-bright: #00E96C;        /* bright emerald — accent only, never bg */
  --gruve-peridot: #CCFC00;       /* CTA / emphasis only */
  --gruve-soft: #EDF6F0;          /* very light emerald-tinted fill */
  --gruve-softer: #F7FBF8;        /* page background hint */
  --grey-light: #F2F2F2;          /* light gray per brand */
  --grey-mid: #7F7F7F;            /* dark gray per brand */
  --black: #000000;
  --border: #DDE3DE;
  --border-strong: #B8C4BC;
  --text: #062D1F;                /* body text = agate */
  --text-dim: #3F5449;
  --muted: #6B7876;
  --danger: #C41E3A;
  --ok: #21A55E;                  /* pass = emerald */
  --warn: #B87300;
  --shadow-sm: 0 1px 2px rgba(6,45,31,0.06);
  --shadow-md: 0 4px 12px rgba(6,45,31,0.10);
  --shadow-lg: 0 10px 32px rgba(6,45,31,0.14);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: var(--text);
  background: var(--gruve-softer);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Topbar ===== */
.topbar {
  background: linear-gradient(120deg, var(--gruve-agate) 0%, var(--gruve-emerald) 45%, var(--gruve-emerald-mid) 100%);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .logo {
  font-size: 26px;
  font-weight: 500;                 /* Inter Regular per brand rules */
  letter-spacing: -0.5px;
  color: #fff;
  text-transform: lowercase;        /* wordmark is always lowercase "gruve" */
  line-height: 1;
}
.brand .sub  {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 4px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--gruve-bright);
  white-space: nowrap;
}
.topbar-nav { flex: 1; display: flex; gap: 4px; justify-content: center; }
.topbar-nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.topbar-nav a:hover { background: rgba(255,255,255,0.10); color: white; }
.version { font-size: 10.5px; opacity: 0.65; letter-spacing: 0.5px; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 78% 0%, rgba(0,233,108,0.18) 0%, transparent 65%),
    linear-gradient(160deg, var(--gruve-agate) 0%, var(--gruve-agate-mid) 55%, var(--gruve-emerald) 100%);
  color: white;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(255,255,255,0.06) 0%, transparent 25%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.hero-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 28px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
  position: relative;
}
.hero-text h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 500;                 /* Inter Regular per brand */
  letter-spacing: -0.4px;
  color: #fff;
}
.hero-text h1 .accent { color: var(--gruve-bright); font-weight: 500; }
.hero-text p {
  margin: 0 0 18px;
  font-size: 15.5px;
  max-width: 660px;
  color: rgba(255,255,255,0.85);
}
.hero-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.hero-pill b { color: #fff; font-weight: 700; }
.hero-art { display: flex; justify-content: flex-end; opacity: 0.95; }
.hero-art svg { width: 100%; max-width: 320px; }

/* ===== Sticky Deal Context Bar ===== */
.context-bar {
  position: sticky;
  top: 61px;
  z-index: 90;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.context-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.context-item { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.context-item .ctx-lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 600;
}
.context-item .ctx-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gruve-emerald);
  margin-top: 2px;
}
.context-item.highlight .ctx-val { color: var(--gruve-emerald); font-weight: 700; }
.context-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ===== Layout ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 22px 28px 32px;
  max-width: 1500px;
  margin: 0 auto;
}

/* ===== Cards ===== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card.span2 { grid-column: span 2; }
.card h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--gruve-agate);
  border-bottom: 1px solid var(--gruve-soft);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.1px;
}
.card h2 .sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gruve-emerald) 0%, var(--gruve-emerald) 100%);
  color: white;
  font-size: 12.5px;
  font-weight: 700;
}
.card h3 {
  margin: 18px 0 8px;
  font-size: 13px;
  color: var(--gruve-emerald);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.grid-est { grid-template-columns: repeat(6, 1fr); }

label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
input, select, textarea {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gruve-emerald);
  box-shadow: 0 0 0 3px rgba(0,122,194,0.15);
}
textarea { width: 100%; resize: vertical; }
.suffix {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}

button {
  background: linear-gradient(135deg, var(--gruve-emerald) 0%, var(--gruve-emerald-mid) 100%);
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15,30,55,0.10);
  letter-spacing: 0.1px;
}
button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,122,194,0.30); }
button:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(15,30,55,0.10); }
button.ghost {
  background: white;
  color: var(--gruve-emerald);
  border: 1px solid var(--gruve-emerald);
  box-shadow: none;
}
button.ghost:hover { background: var(--gruve-soft); }
button.danger {
  background: white;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 4px 10px;
  margin: 0;
  box-shadow: none;
}
button.danger:hover { background: var(--danger); color: white; transform: none; box-shadow: none; }
button.primary {
  background: linear-gradient(135deg, var(--gruve-emerald) 0%, var(--gruve-emerald-mid) 100%);
}
button.primary:hover { box-shadow: 0 4px 14px rgba(33,165,94,0.35); }
/* Peridot CTA — reserved for the primary customer-facing action (Quote) */
button.quote-btn {
  background: var(--gruve-peridot);
  color: var(--gruve-agate);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(6,45,31,0.15);
}
button.quote-btn:hover { box-shadow: 0 4px 14px rgba(204,252,0,0.45); background: var(--gruve-peridot); color: var(--gruve-agate); }

.muted { color: var(--muted); }
.small { font-size: 13px; }

.rationale {
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  min-height: 100px;
}
.rationale strong { color: var(--gruve-emerald); }

/* Comparison input bar */
.cmp-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto 1fr 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: linear-gradient(0deg, var(--gruve-soft) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.cmp-bar label { font-size: 11px; }
.small-btn {
  margin: 0;
  padding: 6px 10px;
  font-size: 11px;
  height: 30px;
  white-space: nowrap;
}

/* Pricing override grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--gruve-soft);
  display: flex;
  flex-direction: column;
}
.pricing-card.recommended {
  border: 2px solid var(--gruve-emerald);
  background: #eaf4fb;
}
.pricing-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--gruve-emerald);
}
.pricing-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.pricing-card .row label { font-size: 11px; flex: 1; }
.pricing-card .row input { padding: 4px 6px; font-size: 12px; }
.pricing-card .computed {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
}
.pricing-card .computed .line {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.pricing-card .computed .line .lbl { color: var(--muted); font-size: 11px; }
.pricing-card .computed .line .val { font-weight: 600; color: var(--gruve-emerald); }
.pricing-card .sku-id {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  word-break: break-all;
}
.pricing-card .use-btn {
  margin-top: 8px;
  font-size: 11px;
  padding: 6px 10px;
  background: var(--gruve-emerald);
}
.pricing-card .use-btn.active {
  background: var(--ok);
}
.pricing-card .gm-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 6px;
}
.pricing-card .gm-tag.pass { background: #d6f0e0; color: var(--ok); }
.pricing-card .gm-tag.fail { background: #fbe1e3; color: var(--danger); }

/* Catalog browser */
.catalog-section .catalog-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.catalog-section .catalog-header h2 { flex: 0 0 auto; }
.catalog-section .catalog-summary { flex: 1; }
.catalog-section .catalog-body { margin-top: 14px; }

.tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 12px;
}
.tab-bar .tab {
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 8px 14px;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
}
.tab-bar .tab:hover { background: var(--gruve-soft); color: var(--gruve-emerald); }
.tab-bar .tab.active {
  color: var(--gruve-emerald);
  border-bottom-color: var(--gruve-emerald);
  background: transparent;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--gruve-soft);
  border-radius: 5px;
}
.catalog-filters label { font-size: 12px; min-width: 116px; }
.catalog-filters input, .catalog-filters select { padding: 5px 7px; font-size: 12px; }
.catalog-filters .catalog-count {
  flex: 1;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.table-scroll {
  max-height: 480px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
}
table.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.catalog-table th, table.catalog-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
table.catalog-table th {
  position: sticky;
  top: 0;
  background: var(--gruve-emerald);
  color: white;
  z-index: 2;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  cursor: pointer;
  user-select: none;
}
table.catalog-table th:hover { background: var(--gruve-emerald); }
table.catalog-table th .sort-arrow { opacity: 0.6; margin-left: 4px; font-size: 9px; }
table.catalog-table td { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; }
table.catalog-table td:nth-child(2), table.catalog-table td:nth-child(3) {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
table.catalog-table tbody tr:hover td { background: #eaf4fb; cursor: default; }
table.catalog-table tbody tr:nth-child(even) td { background: #fafbfd; }
table.catalog-table tbody tr:nth-child(even):hover td { background: #eaf4fb; }
table.catalog-table .gm-good { color: var(--ok); font-weight: 600; }
table.catalog-table .gm-bad { color: var(--danger); font-weight: 600; }

.bundles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.bundle-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  background: white;
}
.bundle-card .bid {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.bundle-card h4 {
  margin: 4px 0 6px;
  color: var(--gruve-emerald);
  font-size: 14px;
}
.bundle-card .meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.bundle-card .price-row {
  display: flex;
  justify-content: space-between;
  background: var(--gruve-soft);
  padding: 6px 10px;
  border-radius: 4px;
  margin: 8px 0;
  font-size: 12px;
}
.bundle-card .price-row .v { font-weight: 700; color: var(--gruve-emerald); }
.bundle-card .attaches {
  font-size: 11.5px;
  color: var(--text);
  margin-top: 6px;
}
.bundle-card .attaches b { color: var(--gruve-emerald); }
.bundle-card .narrative {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.45;
}
.bundle-card .use-bundle-btn {
  margin-top: 8px;
  padding: 5px 10px;
  font-size: 11px;
  background: var(--gruve-emerald);
}

/* Quotes panel */
#quotes-card .catalog-header button { margin: 0; }
#quotes-table tbody tr { cursor: pointer; }
#quotes-table .status-pill {
  display: inline-block;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--gruve-soft);
  color: var(--gruve-emerald);
}
#quotes-table .status-pill.signed { background: #d6f0e0; color: var(--ok); }
#quotes-table .status-pill.lost   { background: #fbe1e3; color: var(--danger); }
#quotes-table .status-pill.sent   { background: #fef3d3; color: #8a6d00; }

/* Exec summary toolbar */
.exec-summary-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.exec-summary-toolbar button { margin: 0; }
#executive_summary { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }

/* Multi-select polish */
select[multiple] {
  padding: 4px 6px;
  min-height: 92px;
}

/* Inventory tables */
table.inv {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 13.5px;
}
table.inv th, table.inv td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
table.inv th {
  background: var(--gruve-emerald);
  color: white;
  font-weight: 600;
  font-size: 11.5px;
}
table.inv td input {
  padding: 3px 6px;
  font-size: 12px;
  border: 1px solid transparent;
  background: transparent;
}
table.inv td input:hover, table.inv td input:focus {
  border-color: var(--border);
  background: white;
}
table.inv tbody tr:nth-child(even) td { background: #fafbfd; }
table.inv tr.placeholder td { color: var(--muted); font-style: italic; text-align: center; }

/* Document buttons */
.doc-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.doc-buttons button { margin-top: 0; }

/* SKU banner */
.sku-banner {
  font-size: 13px;
  padding: 8px 12px;
  background: var(--gruve-soft);
  border-left: 4px solid var(--gruve-emerald);
  border-radius: 4px;
  margin-bottom: 12px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.sku-banner b { color: var(--gruve-emerald); font-family: -apple-system, BlinkMacSystemFont, sans-serif; }

/* Attach table */
.attach-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.attach-toolbar select { flex: 1; }
.attach-toolbar button { margin: 0; }

table.bom {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 13.5px;
}
table.bom th, table.bom td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.bom th {
  background: var(--gruve-emerald);
  color: white;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.3px;
}
table.bom tr:nth-child(even) td { background: #fafbfd; }
table.bom td input { padding: 3px 6px; font-size: 12px; }
table.bom .qty input { width: 60px; }
table.bom .price input { width: 90px; }
table.bom .empty { color: var(--muted); padding: 16px; text-align: center; }

/* Totals tiles */
.totals {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.totals .tile {
  background: linear-gradient(180deg, white 0%, var(--gruve-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 12px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.totals .tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.totals .tile .label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}
.totals .tile .value {
  font-size: 19px;
  color: var(--gruve-agate);
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -0.3px;
}
.totals .gm-pass { color: var(--ok) !important; }
.totals .gm-fail { color: var(--danger) !important; }

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, var(--gruve-agate) 0%, var(--gruve-emerald) 100%);
  color: rgba(255,255,255,0.78);
  padding: 24px 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .logo-sm {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: white;
  text-transform: lowercase;
}
.footer-brand .muted { color: rgba(255,255,255,0.65); }
.footer-meta { text-align: right; }
.footer-meta .muted { color: rgba(255,255,255,0.55); }

/* SKU IDs use mono font */
.sku-banner,
table.catalog-table td,
.pricing-card .sku-id {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .card.span2 { grid-column: span 1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-est { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .totals { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-content: center; }
  .topbar-nav { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner { padding: 10px 16px; flex-wrap: wrap; }
  .hero-inner { padding: 24px 16px; }
  .hero-text h1 { font-size: 24px; }
  .layout { padding: 16px; }
  .context-inner { gap: 14px; padding: 10px 16px; }
  .footer-inner { padding: 0 16px; }
}

/* ==================== v2: SKU detail page ==================== */
.sku-hero {
  background: linear-gradient(160deg, var(--gruve-agate) 0%, var(--gruve-agate-mid) 60%, var(--gruve-emerald) 100%);
  color: #fff;
  padding: 22px 0 26px;
}
.sku-hero-inner { max-width: 1500px; margin: 0 auto; padding: 0 28px; }
.back-link { color: rgba(255,255,255,.72); text-decoration: none; font-size: 12.5px; }
.back-link:hover { color: #fff; }
.sku-code-lg {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px; color: var(--gruve-bright);
  letter-spacing: .5px; margin: 10px 0 4px;
}
.sku-hero h1 { margin: 0 0 12px; font-size: 30px; font-weight: 500; letter-spacing: -.3px; }
.sku-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 11px; padding: 3px 11px; border-radius: 999px; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.chip.ga    { background: rgba(0,233,108,.20); border-color: rgba(0,233,108,.45); color: var(--gruve-bright); }
.chip.beta  { background: rgba(204,252,0,.18); border-color: rgba(204,252,0,.45); color: var(--gruve-peridot); }
.chip.base  { background: rgba(255,255,255,.20); }
.chip.addon { background: transparent; border-style: dashed; }

.mini-sel {
  width: auto; padding: 1px 4px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 4px; color: var(--gruve-emerald);
}

.sku-desc { font-size: 15px; line-height: 1.65; margin: 0 0 16px; max-width: 105ch; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 22px; }
.kv { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.kv .k { color: var(--muted); min-width: 132px; font-weight: 600; }
.kv .v { color: var(--text); flex: 1; }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11.5px; padding: 3px 10px; border-radius: 5px;
  background: var(--gruve-soft); border: 1px solid var(--border); color: var(--gruve-agate);
}
.pill.accent { background: var(--gruve-emerald); color: #fff; border-color: var(--gruve-emerald); }

.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.rel-item {
  border: 1px solid var(--border); border-radius: 7px; padding: 10px 12px;
  background: var(--gruve-softer); font-size: 12.5px;
}
.rel-item a { color: var(--gruve-emerald); text-decoration: none; font-family: "JetBrains Mono", monospace; font-size: 11px; }
.rel-item a:hover { text-decoration: underline; }
.rel-item > div { margin-top: 3px; }

/* pricing waterfall */
table.waterfall { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
table.waterfall th {
  background: var(--gruve-agate); color: #fff; padding: 7px 10px;
  font-size: 11px; text-align: left; font-weight: 600;
}
table.waterfall td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.waterfall .wf-n {
  width: 26px; color: #fff; font-weight: 700; font-size: 11px; text-align: center;
}
table.waterfall tbody tr:nth-child(odd) .wf-n { background: var(--gruve-emerald); }
table.waterfall tbody tr:nth-child(even) .wf-n { background: var(--gruve-emerald-mid); }
table.waterfall .num { text-align: right; font-family: "JetBrains Mono", monospace; font-size: 12.5px; white-space: nowrap; }
table.waterfall .running { font-weight: 600; color: var(--gruve-agate); }
table.waterfall .running.strong { font-size: 14.5px; font-weight: 800; }
table.waterfall .running.final { color: var(--gruve-emerald); }
table.waterfall .wf-sep td { border-bottom: 2px solid var(--gruve-emerald); padding: 3px; }
table.waterfall .wf-sep .wf-n { background: transparent !important; }
.wf-note {
  margin-top: 12px; padding: 9px 13px; font-size: 12.5px;
  background: var(--gruve-soft); border-left: 3px solid var(--gruve-emerald); border-radius: 4px;
}

table.buildup tr.grp td {
  background: var(--gruve-soft) !important; font-weight: 700;
  color: var(--gruve-agate); font-size: 11.5px; letter-spacing: .3px;
}
table.catalog-table td.num, table.catalog-table th.num { text-align: right; }
table.catalog-table td.strong { font-weight: 700; color: var(--gruve-agate); }
table.catalog-table td.mono { font-family: "JetBrains Mono", monospace; font-size: 10.5px; }

.assump-row {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; padding: 9px 13px;
  background: var(--gruve-softer); border: 1px solid var(--border); border-radius: 6px; font-size: 12px;
}
.assump-row b { color: var(--gruve-emerald); }

/* scope lists */
.scope-list { margin: 4px 0 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.scope-list li { font-size: 13.5px; line-height: 1.55; margin-bottom: 7px; break-inside: avoid; }
.scope-list.excl li::marker { color: var(--danger); }
.scope-list.incl li::marker { color: var(--ok); }
.card h2 .sec-num.excl { background: var(--danger); }
.card h2 .sec-num.incl { background: var(--ok); }
.card h2 .sec-num.resp,
.card h2 .sec-num.deliv { background: linear-gradient(135deg, var(--gruve-agate), var(--gruve-emerald)); }

/* clickable SKU codes in any table */
a.sku-link {
  color: var(--gruve-emerald); text-decoration: none;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
}
a.sku-link:hover { text-decoration: underline; }

.status-ga   { color: var(--ok); font-weight: 700; font-size: 10.5px; }
.status-beta { color: var(--warn); font-weight: 700; font-size: 10.5px; }

@media (max-width: 900px) { .scope-list { columns: 1; } }


/* ==================== service needs + solution narrative ==================== */
.needs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
  gap: 6px 16px; margin: 8px 0 4px;
}
.need {
  display: flex; align-items: center; gap: 9px; padding: 7px 11px;
  border: 1px solid var(--border); border-radius: 7px; background: white;
  font-size: 13.5px; cursor: pointer; transition: all .12s ease;
}
.need:hover { border-color: var(--gruve-emerald); background: var(--gruve-softer); }
.need input { width: auto; margin: 0; accent-color: var(--gruve-emerald); }
.need.on { background: var(--gruve-soft); border-color: var(--gruve-emerald); font-weight: 600; }

.solution-box {
  margin-top: 16px; padding: 16px 18px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gruve-soft) 0%, var(--gruve-softer) 100%);
  border: 1px solid var(--border); border-left: 4px solid var(--gruve-emerald);
}
.solution-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.solution-head h3 { color: var(--gruve-agate); text-transform: none; letter-spacing: 0; font-size: 15px; }
#solution-text { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text); }
#fx-note { margin: 10px 0 0; }
.needs-added { margin-top: 8px; font-size: 13px; }
.needs-added .tag {
  display: inline-block; padding: 2px 9px; margin: 2px 4px 2px 0; border-radius: 999px;
  background: var(--gruve-emerald); color: #fff; font-size: 11.5px; font-weight: 600;
}
.needs-added .tag.covered { background: var(--gruve-soft); color: var(--gruve-agate); border: 1px solid var(--border); }

/* ==================== deal builder: pillar grouping + relationships ==================== */
table.bom th.num, table.bom td.num { text-align: right; }
table.bom th { vertical-align: bottom; }

tr.pillar-row td {
  background: var(--gruve-agate) !important;
  color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: .4px; text-transform: uppercase; padding: 7px 9px !important;
}
tr.pillar-row .pillar-count {
  font-weight: 500; text-transform: none; letter-spacing: 0;
  color: var(--gruve-bright); margin-left: 8px; font-size: 11.5px;
}
tr.pillar-row td.num { color: var(--gruve-bright); font-weight: 700; text-transform: none; }

tr.row-base td { background: #fff; }
tr.row-addon td { background: var(--gruve-softer); }
td.sku-cell { line-height: 1.35; }
td.sku-cell.indent { padding-left: 30px !important; border-left: 3px solid var(--gruve-soft); }
td.sku-cell .svc-name { font-size: 13px; color: var(--text); margin-top: 2px; }
td.sku-cell .parent-note {
  font-size: 11px; color: var(--muted); margin-top: 2px;
  font-family: "JetBrains Mono", monospace;
}
.rel-chip {
  display: inline-block; padding: 1px 7px; border-radius: 4px; margin-right: 7px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .6px; vertical-align: 1px;
}
.rel-chip.base  { background: var(--gruve-emerald); color: #fff; }
.rel-chip.addon { background: var(--gruve-soft); color: var(--gruve-agate); border: 1px dashed var(--border-strong); }
.legend-row { margin-top: 8px; }

/* percent + fx inputs */
.pct-wrap, .fx-wrap { position: relative; display: flex; align-items: center; gap: 6px; }
.pct-wrap input { padding-right: 26px; text-align: right; }
.pct-suffix {
  position: absolute; right: 9px; font-size: 13px; font-weight: 700;
  color: var(--gruve-emerald); pointer-events: none;
}
.fx-wrap input { text-align: right; font-family: "JetBrains Mono", monospace; }
.fx-wrap button { margin: 0; padding: 6px 9px; line-height: 1; }

/* narrative broken out per pillar */
.narr-open { margin: 0 0 12px; font-size: 14.5px; line-height: 1.7; }
.narr-pillar {
  margin: 0 0 12px; padding: 10px 13px; background: rgba(255,255,255,.72);
  border: 1px solid var(--border); border-radius: 7px; border-left: 3px solid var(--gruve-emerald);
}
.narr-pillar.commercial { border-left-color: var(--gruve-peridot); }
.narr-pillar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 5px; flex-wrap: wrap;
}
.narr-pillar-name {
  font-weight: 700; font-size: 13px; color: var(--gruve-agate);
  text-transform: uppercase; letter-spacing: .4px;
}
.narr-pillar-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.narr-pillar p { margin: 0; font-size: 14px; line-height: 1.68; }

/* right-align every numeric column everywhere */
table.catalog-table th.num, table.catalog-table td.num,
table.waterfall th.num, table.waterfall td.num,
table.inv th.num, table.inv td.num { text-align: right; }
table.bom td.qty input { width: 58px; text-align: right; }

/* ================================================================
   SKU detail page — navigator toolbar
   One row, one baseline: every control is exactly --nav-h tall and
   vertically centred, so the search box and the selects line up.
   ================================================================ */
.sku-nav {
  --nav-h: 36px;
  position: sticky;
  top: 65px;                 /* == .topbar height; JS re-measures on load */
  z-index: 95;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.sku-nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 11px 28px;
  display: grid;
  grid-template-columns: minmax(300px, 1.3fr) minmax(0, 210px) minmax(0, 150px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
/* the price strip stacks below the navigator on this page */
body[data-sku] .context-bar { top: 124px; }
body[data-sku] { scroll-padding-top: 190px; }

/* ---- shared control chrome: identical box on every element ---- */
.sku-nav .nav-sel,
.sku-nav .nav-search input {
  height: var(--nav-h);
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  color: var(--text);
  background: var(--gruve-softer);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sku-nav .nav-sel {
  padding: 0 30px 0 11px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236B7876' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
  text-overflow: ellipsis;
}
.sku-nav .nav-sel:hover { border-color: var(--border-strong); }
.sku-nav .nav-sel:focus-visible,
.sku-nav .nav-search input:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--gruve-emerald);
  box-shadow: 0 0 0 3px rgba(33,165,94,0.15);
}
/* the active-filter state reads at a glance */
.sku-nav .nav-sel.is-set {
  background-color: var(--gruve-soft);
  border-color: rgba(33,165,94,0.45);
  color: var(--gruve-agate);
}

/* ---- search ---- */
.nav-search { position: relative; min-width: 0; }
.nav-search input { padding: 0 62px 0 34px; }
.nav-search input::placeholder { color: var(--muted); font-weight: 400; }
.nav-search-icon {
  position: absolute; left: 12px; top: 0; height: var(--nav-h);
  display: flex; align-items: center;
  font-size: 16px; color: var(--muted); pointer-events: none;
}
.nav-search:focus-within .nav-search-icon { color: var(--gruve-emerald); }
.nav-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; color: var(--muted);
  background: #fff; border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 6px; line-height: 1.2;
  pointer-events: none;
}
.nav-search:focus-within .nav-kbd, .nav-search.has-q .nav-kbd { display: none; }
.nav-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 20px; height: 20px; padding: 0;
  border: none; border-radius: 50%; background: var(--border);
  color: var(--text-dim); font-size: 14px; line-height: 1; cursor: pointer;
}
.nav-search.has-q .nav-clear { display: flex; }
.nav-clear:hover { background: var(--danger); color: #fff; }

/* ---- results dropdown ---- */
.nav-results {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: max(100%, 520px);
  max-height: min(60vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 5px;
}
.nav-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  column-gap: 11px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-item.on { background: var(--gruve-soft); }
.nav-pill {
  grid-row: span 2;
  display: flex; align-items: center; justify-content: center;
  height: 22px;
  background: var(--gruve-agate); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  border-radius: 6px;
}
.nav-item-name {
  font-size: 13.5px; font-weight: 600; color: var(--gruve-agate);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-item-price {
  font-size: 13px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
}
.nav-item-meta {
  grid-column: 2 / 4;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted); margin-top: 1px;
}
.nav-item-code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; color: var(--gruve-emerald);
}
.nav-item-meta .dot { color: var(--border-strong); }
.nav-item-meta .status-ga { color: var(--ok); font-weight: 700; }
.nav-item-meta .status-beta { color: var(--warn); font-weight: 700; }
.nav-empty { padding: 18px 12px; font-size: 13px; color: var(--muted); text-align: center; }
.nav-more {
  margin: 5px -5px -5px;
  padding: 8px 12px;
  border-top: 1px solid var(--grey-light);
  background: var(--gruve-softer);
  border-radius: 0 0 11px 11px;
  font-size: 11.5px; color: var(--muted); text-align: center;
}

/* ---- prev / next steppers ---- */
.nav-steppers {
  display: flex; align-items: center; gap: 2px;
  height: var(--nav-h);
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--gruve-softer);
}
.nav-step {
  width: 26px; height: 26px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 6px; background: transparent;
  color: var(--gruve-agate); font-size: 17px; line-height: 1; cursor: pointer;
}
.nav-step:hover:not(:disabled) { background: var(--gruve-soft); color: var(--gruve-emerald); }
.nav-step:disabled { opacity: .3; cursor: default; }
.nav-pos {
  min-width: 58px; text-align: center;
  font-size: 11.5px; font-weight: 700; color: var(--text-dim);
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
}

/* ---- hero breadcrumbs ---- */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; margin-bottom: 12px;
}
.crumbs a { color: rgba(255,255,255,.72); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumb-sep { color: rgba(255,255,255,.35); }
.crumb-dim { color: rgba(255,255,255,.72); }
.crumb-current { color: var(--gruve-bright); font-weight: 600; }
.sku-hero h1 { margin: 0 0 6px; }
.sku-code-lg { margin: 0 0 14px; }

/* ---- responsive: wrap to two rows, then stack ---- */
@media (max-width: 1240px) {
  .sku-nav-inner { grid-template-columns: minmax(200px, 1fr) auto minmax(180px, 260px) auto; }
  .sku-nav #nav-type { display: none; }
  body[data-sku] .context-bar { top: 124px; }
}
@media (max-width: 900px) {
  .sku-nav { position: static; }
  .sku-nav-inner { grid-template-columns: 1fr auto; padding: 10px 20px; }
  .nav-search { grid-column: 1 / -1; }
  .sku-nav .nav-sel-sku { grid-column: 1 / -1; }
  .nav-results { width: 100%; }
  body[data-sku] .context-bar { top: 65px; }
}

/* ===== Home page: direct SKU jump + pillar-scoped catalog ===== */
.cat-jump {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px;
  padding: 12px 14px; margin-bottom: 12px;
  background: var(--gruve-softer);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cat-jump-field { flex: 1; min-width: 260px; max-width: 460px; gap: 5px; }
.cat-jump-field select { width: 100%; }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px;
  background: var(--gruve-emerald); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--gruve-emerald); white-space: nowrap;
}
.btn-link:hover { background: var(--gruve-emerald-mid); }
.btn-link[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-link.ghost-link {
  background: #fff; color: var(--gruve-emerald); border-color: var(--border-strong);
}
.btn-link.ghost-link:hover { background: var(--gruve-soft); }

.pillar-scope {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 10px 14px; margin-bottom: 12px;
  background: var(--gruve-soft);
  border: 1px solid rgba(33,165,94,.35);
  border-left: 3px solid var(--gruve-emerald);
  border-radius: var(--radius);
}
.scope-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--gruve-emerald);
}
.scope-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.scope-pill {
  background: #fff; border: 1px solid rgba(33,165,94,.4);
  color: var(--gruve-agate); font-size: 11.5px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
}
.scope-toggle {
  margin-left: auto; flex-direction: row; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-dim); font-weight: 600; white-space: nowrap;
}
.scope-toggle input { width: auto; }

/* price ladder tile in the deal totals */
.tile .value.ladder {
  display: flex; flex-direction: column; gap: 1px;
  font-size: 11.5px; font-weight: 500; line-height: 1.45;
}
.tile .value.ladder b { font-weight: 700; }
.tile .value.ladder .up { color: var(--gruve-emerald); }
.tile .value.ladder .down { color: var(--warn); }
.tile .value.ladder .net {
  color: var(--gruve-agate); font-size: 12.5px;
  border-top: 1px solid var(--border); margin-top: 3px; padding-top: 3px;
}

/* Deal-builder control row now carries 7 levers (geo, term, uplift, discount,
   bundle, currency, FX) — keep them on one line on wide screens. */
#section-builder .grid-est { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1400px) {
  #section-builder .grid-est { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #section-builder .grid-est { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-jump { flex-direction: column; align-items: stretch; }
  .cat-jump-field { max-width: none; }
  .scope-toggle { margin-left: 0; }
}
/* Hints under some labels ("raises list") make those labels taller — pin every
   control to the bottom of its cell so the inputs share one baseline. */
#section-builder .grid-est > label { justify-content: flex-end; }

/* ===== Presales proposal ===== */
#solution_proposal {
  width: 100%; font: inherit; font-size: 14px; line-height: 1.6;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--gruve-softer); color: var(--text); resize: vertical; min-height: 130px;
}
#solution_proposal:focus {
  outline: none; background: #fff; border-color: var(--gruve-emerald);
  box-shadow: 0 0 0 3px rgba(33,165,94,.15);
}
.proposal-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 12px; flex-wrap: wrap;
}

/* ===== Recommendation: lean header + pillar-grouped line-up ===== */
.rec-head { margin-bottom: 6px; }
.rec-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.rec-stat {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 14px; min-width: 96px;
  background: var(--gruve-soft); border: 1px solid rgba(33,165,94,.28);
  border-radius: 9px;
}
.rec-stat .rs-l {
  font-size: 10px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); font-weight: 700;
}
.rec-stat .rs-v { font-size: 15px; font-weight: 700; color: var(--gruve-agate); }
.rec-inferred { margin: 12px 0 0; font-size: 13px; color: var(--text-dim); }
.rec-inferred .tag { margin-left: 4px; }

.lineup-pillar { margin-top: 18px; }
.lineup-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 12px; border-radius: 8px 8px 0 0;
  background: var(--gruve-agate); color: #fff;
}
.lineup-name { font-size: 13.5px; font-weight: 700; }
.lineup-meta { font-size: 11.5px; color: var(--gruve-bright); margin-left: auto; }
.lineup-table { margin-top: 0; }
.lineup-table td.qty-cell { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== SKUs & bundles page ===== */
.tabs { display: flex; gap: 4px; }
.tab {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 7px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text-dim);
}
.tab:hover { background: var(--gruve-soft); }
.tab.on {
  background: var(--gruve-emerald); border-color: var(--gruve-emerald); color: #fff;
}
.ctx-spacer { flex: 1; }
.cat-page-search { max-width: 380px; --nav-h: 34px; }
.cat-page-search input {
  height: 34px; width: 100%; font: inherit; font-size: 13px;
  padding: 0 12px 0 32px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--gruve-softer); color: var(--text);
}
.cat-page-search input:focus {
  outline: none; background: #fff; border-color: var(--gruve-emerald);
  box-shadow: 0 0 0 3px rgba(33,165,94,.15);
}
.cat-page-search .nav-search-icon { height: 34px; }
.topbar-nav a.on { background: rgba(255,255,255,.16); color: #fff; }

.pillar-card h2 .sec-num { font-size: 11px; letter-spacing: .5px; width: auto; padding: 0 8px; }
.bundle-card h2 .sec-num { font-size: 10px; letter-spacing: .5px; width: auto; padding: 0 8px; }
.bundle-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.bm {
  display: flex; flex-direction: column; gap: 1px; padding: 7px 13px;
  background: var(--gruve-softer); border: 1px solid var(--border); border-radius: 8px;
}
.bm-l {
  font-size: 10px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted); font-weight: 700;
}
.bm-v { font-size: 14px; font-weight: 700; color: var(--gruve-agate); }
.bundle-line { margin: 6px 0; font-size: 13.5px; line-height: 1.6; }
.bundle-line b {
  display: inline-block; min-width: 132px; color: var(--gruve-emerald);
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px; vertical-align: top;
}
.bundle-line.kill b { color: var(--danger); }
