/* ==========================================================================
   VIALFLIGHT v2.1 — Global Search · Price Meter · Hipmunk Sort · Mobile Nav
   ========================================================================== */

.global-search-shell {
  position: relative;
  margin-bottom: 16px;
}

.global-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px 6px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.global-search-bar:focus-within {
  border-color: var(--accent-cognac);
  box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.14);
}

.global-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-primary);
  padding: 7px 0;
  outline: none;
}

.global-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}

.global-search-results.open {
  display: block;
}

.gs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s;
}

.gs-row:hover {
  background: var(--bg-hover);
}

.gs-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-cognac-soft);
  color: var(--accent-cognac);
  white-space: nowrap;
}

.gs-badge.note {
  background: var(--accent-cypress-soft);
  color: var(--accent-cypress);
}

/* Google Flights Price Insight Meter */
.price-insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.price-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.price-insight-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.price-insight-title .low {
  color: var(--accent-cypress);
}

.price-insight-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.meter-track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-recessed);
  margin: 6px 0 6px;
}

.meter-pin {
  position: absolute;
  top: -4px;
  left: 20%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--accent-cypress);
  box-shadow: 0 1px 4px rgba(23, 21, 19, 0.22);
  transition: left 0.3s ease;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Hipmunk-style Sort Pills */
.hipmunk-sort-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.sort-chip {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.sort-chip:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.sort-chip.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #fff;
}

/* Parfumo Sync & Follow-up Email */
.parfumo-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.parfumo-row .input-text {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  font-size: 12px;
}

.followup-card {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--accent-cognac-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.followup-card h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cognac-hover);
}

.followup-card p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink-secondary);
}

/* Sticky Android/Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px max(10px, env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
  .mobile-bottom-nav {
    display: grid;
  }
}

.mnav-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
}

.mnav-btn.active {
  color: var(--accent-cognac);
  background: var(--accent-cognac-soft);
}

/* Love / Dislike Feedback Controls */
.fb-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fb-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.14s ease;
}

.fb-btn.up:hover,
.fb-btn.up.active {
  background: var(--accent-cognac-soft);
  border-color: var(--accent-cognac);
  color: var(--accent-cognac);
}

.fb-btn.down:hover,
.fb-btn.down.active {
  background: var(--accent-terracotta-soft);
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

.fb-btn.skip {
  color: var(--ink-muted);
  border-color: var(--border-subtle);
}

.fb-btn.skip:hover {
  background: var(--bg-recessed);
  color: var(--ink-primary);
}

.vial-reject-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-muted);
  border-radius: 6px;
  font-size: 11px;
  padding: 2px 6px;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.12s;
}

.vial-reject-btn:hover {
  background: var(--accent-terracotta-soft);
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

.vial-like-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-muted);
  border-radius: 6px;
  font-size: 12px;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.12s;
}

.vial-like-btn:hover,
.vial-like-btn.active {
  background: var(--accent-cognac-soft);
  border-color: var(--accent-cognac);
  color: var(--accent-cognac);
}

/* Google Flights Compact Header + Quick Taste Trainer */
.flights-hero-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.flights-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  line-height: 1.2;
}

.flights-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

.btn-train-pill {
  border: 1px solid var(--border-strong);
  background: var(--accent-cognac-soft);
  color: var(--accent-cognac);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-train-pill:hover {
  border-color: var(--accent-cognac);
  background: var(--bg-card);
}

.nonstop-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cypress);
  background: var(--accent-cypress-soft);
  border-radius: 4px;
  padding: 2px 8px;
}

.quick-train-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.quick-train-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.quick-train-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cognac);
  margin-right: 8px;
}

.quick-train-meta {
  font-size: 12px;
  color: var(--ink-secondary);
}

.qt-scent-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.qt-scent-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.qt-scent-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
}

.qt-scent-name:hover {
  color: var(--accent-cognac);
}

.qt-scent-vibe {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.qt-price {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-cypress);
  white-space: nowrap;
}

.qt-actions {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  gap: 8px;
  margin-top: 12px;
}

.qt-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.qt-btn.up {
  background: var(--accent-cognac-soft);
  border-color: var(--accent-cognac);
  color: var(--accent-cognac);
}

.qt-btn.down {
  background: var(--accent-terracotta-soft);
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

.qt-btn.flight.added {
  background: var(--accent-cognac-soft);
  border-color: var(--border-strong);
  color: var(--accent-cognac);
}

/* Comp Fragrances Grid in Modal & Flight Drawer */
.comps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.comp-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.comp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.comp-match-sub {
  font-size: 11px;
  color: var(--accent-cypress);
  font-weight: 600;
  margin-top: 2px;
}

.comp-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-comps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-comp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.gs-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .flights-title {
    font-size: 20px;
  }
  .qt-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.tertiary-via {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 400;
}

.best-sample-bar {
  margin-top: 10px;
  padding: 8px 11px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.tertiary-fold {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.tertiary-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.tertiary-fold > summary::-webkit-details-marker {
  display: none;
}

.tertiary-fold[open] > summary {
  color: var(--ink-primary);
}

/* Simplified Minimalist Layout */
.container-narrow {
  max-width: 980px;
}

.simple-control-card {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.simple-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.control-actions-inline {
  display: flex;
  align-items: flex-end;
}

.mini-more-options {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.mini-more-options > summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  list-style: none;
}

.mini-more-options > summary::-webkit-details-marker {
  display: none;
}

.mini-more-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.taste-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.compact-cloud {
  max-height: 78px;
  overflow-y: auto;
}

@media (max-width: 860px) {
  .simple-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .simple-filter-grid .control-group[style*="span 2"] {
    grid-column: span 2;
  }
}

/* Inline custom flight size pill */
.seg-custom-input {
  width: 44px;
  min-width: 40px;
  border: 0;
  border-left: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 5px 4px;
  outline: none;
  -moz-appearance: textfield;
}
.seg-custom-input::-webkit-outer-spin-button,
.seg-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.seg-custom-input.active,
.seg-custom-input:focus {
  background: var(--ink-primary);
  color: #fff;
  border-radius: 6px;
}
.seg-custom-input.active::placeholder,
.seg-custom-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Custom Notes inline box & typeahead dropdown */
.custom-notes-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-typeahead-wrap {
  position: relative;
}

.note-suggest-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 70;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}
.note-suggest-menu.open {
  display: block;
}

.note-suggest-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-primary);
  font-size: 13px;
  text-align: left;
  padding: 7px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.note-suggest-item:hover,
.note-suggest-item.active {
  background: var(--bg-page);
}
.note-suggest-kind {
  font-size: 11px;
  color: var(--ink-muted);
}

/* New Mix experimentation pill */
.shuffle-chip {
  margin-left: auto;
  border-color: var(--border-strong, var(--border-subtle));
  color: var(--ink-primary);
  font-weight: 600;
}
.shuffle-chip:hover {
  background: var(--bg-page);
}

/* Direct 1–10 rating bar on scent detail modal */
.detail-rate-bar {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-rate-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.detail-rate-slider {
  flex: 1;
  min-width: 120px;
  max-width: 210px;
  accent-color: var(--accent-cypress);
  cursor: pointer;
}
.detail-rate-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  min-width: 48px;
}

/* Topbar Sign in pill + unmistakable cart pop feedback */
.btn-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 4px;
  cursor: pointer;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-auth-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-auth-pill:hover {
  background: var(--bg-page);
  color: var(--ink-primary);
}
.btn-auth-pill.signed-in {
  color: var(--accent-cypress);
  border-color: rgba(45, 106, 79, 0.35);
}

/* Sleek monochrome Dial In Taste button */
.btn-train-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, background 0.15s;
}
.btn-train-pill:hover {
  border-color: var(--accent-cognac);
  background: var(--bg-page);
}
.btn-train-pill svg {
  color: var(--accent-cognac);
  flex-shrink: 0;
}

@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(45, 106, 79, 0.22); }
  100% { transform: scale(1); }
}
.btn-flight-dock.cart-bump {
  animation: cartBump 420ms ease-out;
}

/* Primary Add-to-Flight + quiet secondary store checkout on cards */
.pack-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pack-actions-row .btn-checkout {
  flex: 1;
}
.pack-direct-link {
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 4px;
}
.pack-direct-link:hover {
  color: var(--ink-primary);
  background: var(--bg-page);
}

/* Profile modal (account, Google sign-in, security note, collection imports) */
.profile-signed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}
.profile-signed-card > div {
  min-width: 0;
  flex: 1;
}
.profile-signed-card #auth-current-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-signed-card .btn-sm {
  flex-shrink: 0;
  white-space: nowrap;
}
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-muted);
}
.auth-security-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-cypress);
}
.profile-import-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.profile-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Distinct signature color for the recommended "My Taste" preset pill */
.preset-chip.preset-mytaste {
  background: var(--accent-cognac-soft);
  color: var(--accent-cognac);
  border-color: var(--accent-cognac);
  font-weight: 600;
}
.preset-chip.preset-mytaste:hover {
  background: var(--accent-cognac-soft);
  border-color: var(--accent-cognac);
}
.preset-chip.preset-mytaste.active {
  background: var(--accent-cognac);
  color: #FFFFFF;
  border-color: var(--accent-cognac);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28);
}

/* Clean category exclusion pills */
.exclude-summary-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
}
.exclude-summary-badge.empty {
  display: none;
}
.exclude-cat-block {
  margin-top: 10px;
}
.exclude-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.exclude-chip {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.exclude-chip:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}
.exclude-chip.active {
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  border-color: #F87171;
  font-weight: 600;
}
.exclude-chip.active::before {
  content: "✕ ";
  font-size: 10px;
}

/* Uploaded VialFlight logo mark */
.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.14);
}

/* Note exclusion search row & negative pills */
.exclude-note-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.mini-note.neg {
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  border-color: var(--border-strong);
}
.reset-skip-pill {
  cursor: pointer;
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  border: 1px solid var(--border-strong);
  font-family: inherit;
}
.reset-skip-pill:hover {
  border-color: var(--accent-terracotta);
}

/* Clear mechanics hint for thumbs up / down cart removal */
.mechanics-hint {
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 6px 10px;
  margin: 0 0 10px;
  line-height: 1.4;
}

/* Per-scent Swap / Skip button on Mix cards */
.vial-swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.vial-swap-btn:hover {
  background: var(--accent-cognac-soft);
  color: var(--accent-cognac);
  border-color: var(--accent-cognac);
}
.vial-swap-btn.swapping {
  opacity: 0.7;
  pointer-events: none;
  background: var(--accent-cognac-soft);
  color: var(--accent-cognac);
}

/* Unmistakable animated mix loading state */
@keyframes vfSpin {
  to { transform: rotate(360deg); }
}
@keyframes vfProgressSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}
@keyframes vfShimmer {
  0% { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}

.mix-loading-state {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.mix-loading-banner {
  display: flex;
  align-items: center;
  gap: 13px;
}
.mix-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--accent-cognac-soft);
  border-top-color: var(--accent-cognac);
  animation: vfSpin 0.72s linear infinite;
  flex-shrink: 0;
}
.mix-loading-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
}
.mix-loading-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.mix-progress-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--accent-cognac-soft);
  overflow: hidden;
  margin: 14px 0 16px;
  position: relative;
}
.mix-progress-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 4px;
  background: var(--bg-recessed);
  animation: vfProgressSlide 1.25s ease-in-out infinite;
}
.skeleton-pack-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-page);
}
.skel-line,
.skel-row {
  border-radius: 6px;
  background: var(--bg-recessed);
  background-size: 600px 100%;
  animation: vfShimmer 1.3s ease-in-out infinite;
}
.skel-line.skel-lg {
  height: 18px;
  width: 55%;
}
.skel-line.skel-sm {
  height: 12px;
  width: 38%;
  margin-bottom: 4px;
}
.skel-row {
  height: 36px;
  width: 100%;
}

.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  animation: vfSpin 0.65s linear infinite;
  vertical-align: -2px;
  margin-right: 4px;
}
.btn-spinner.dark {
  border-color: rgba(31, 41, 55, 0.22);
  border-top-color: var(--accent-cognac);
}
.btn-primary.is-loading,
.sort-chip.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.conc-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  border-radius: 4px;
  background: var(--bg-recessed);
  color: var(--ink-muted);
  border: 1px solid var(--border-subtle);
}

/* iOS Safari & narrow-iPhone spacing/overflow polish */
.seg-custom-input {
  flex: 0.9 1 0;
  width: 100%;
  min-width: 32px;
  padding: 5px 2px;
}

@media (max-width: 640px) {
  .container {
    padding: 14px 12px 92px;
    width: 100%;
    max-width: 100%;
  }
  .topbar-inner {
    padding: 9px 12px;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
  }
  .brand {
    gap: 7px;
    flex-shrink: 0;
  }
  .brand-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
  }
  .brand-mark {
    font-size: 16px;
  }
  .topbar-actions {
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
  }
  .btn-auth-pill {
    padding: 6px 9px;
    font-size: 12px;
    max-width: 90px;
  }
  .btn-auth-pill.signed-in {
    padding: 7px 9px;
    background: var(--accent-cognac-soft);
    border-color: var(--accent-cognac);
  }
  .btn-auth-pill.signed-in #auth-btn-label {
    display: none;
  }
  .btn-flight-dock {
    padding: 6px 10px;
    gap: 5px;
    font-size: 12px;
    white-space: nowrap;
  }
  .global-search-bar {
    width: 100%;
    max-width: 100%;
  }
  .workspace {
    min-width: 0;
    max-width: 100%;
  }
  .flights-hero-compact {
    margin-bottom: 8px;
    gap: 8px;
  }
  .flights-sub {
    font-size: 12.5px;
  }
  .simple-control-card {
    padding: 12px 11px;
    width: 100%;
    max-width: 100%;
  }
  .simple-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 8px;
  }
  .segmented.compact .seg-btn {
    padding: 6px 2px;
    font-size: 11.5px;
    letter-spacing: -0.01em;
  }
  /* Prevent iOS Safari focus auto-zoom on form fields */
  .input-text,
  .input-select,
  .global-search-input {
    font-size: 16px;
    min-width: 0;
    max-width: 100%;
  }
  /* Prevent Android right-border cutoff on Flight cards */
  .hero-packs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }
  .pack-card {
    padding: 15px 14px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 11px;
  }
  .pack-card-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pack-store-heading {
    font-size: 20px;
    word-break: break-word;
  }
  .pack-total {
    font-size: 21px;
  }
  .pack-item-row {
    gap: 7px;
    min-width: 0;
  }
  .pack-item-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .pack-item-left > div {
    min-width: 0;
    overflow: hidden;
  }
  .pack-item-right {
    flex-shrink: 0;
  }
}

/* About VialFlight (crisp high-trust enthusiast tool aesthetic) */
.about-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
}
.about-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cognac);
  margin-bottom: 8px;
}
.about-headline {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink-primary);
}
.about-lead {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-primary);
  font-weight: 500;
}
.about-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.about-callout {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-cognac);
  background: var(--accent-cognac-soft);
  border: 1px solid var(--accent-cognac);
  padding: 6px 12px;
  border-radius: 4px;
}
.about-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 0 2px;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.about-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.about-pillar-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.about-pillar-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
}
.about-pillar-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
}
.about-origin-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.about-origin-box p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

@media (max-width: 760px) {
  .about-headline {
    font-size: 22px;
  }
  .about-hero-card {
    padding: 18px 16px;
  }
  .about-pillars {
    grid-template-columns: 1fr;
  }
}

/* Transparent Vendor Trust Pills */
.vendor-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--ink-primary);
  max-width: 100%;
  flex-wrap: wrap;
}
.vendor-check-icon {
  color: var(--accent-cognac);
  flex-shrink: 0;
}
.vendor-trust-meta {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 400;
}

/* 1-Tap Share Flight button */
.pack-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.pack-share-btn:hover {
  background: var(--bg-page);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

/* Full Bottle Market Price card on Fragrance Detail Modal */
.bottle-market-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.bottle-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bottle-market-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
}
.bottle-market-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bottle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 12.5px;
}
.bottle-row.best {
  border-color: rgba(19, 115, 51, 0.35);
  background: var(--accent-cognac-soft);
}

/* About Vetted Vendors Directory */
.about-vendors-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.about-vendors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.vendor-dir-pill {
  padding: 8px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 12.5px;
}
.vendor-dir-sub {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}
@media (max-width: 760px) {
  .about-vendors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .about-vendors-grid {
    grid-template-columns: 1fr;
  }
}

/* Live Prices (#tracker-table): clean stacked mobile cards showing Sample $/mL + Full Bottle deal */
@media (max-width: 640px) {
  #view-tracker .table-wrap {
    overflow-x: visible;
  }
  #tracker-table,
  #tracker-table tbody {
    display: block;
    width: 100%;
  }
  #tracker-table thead {
    display: none;
  }
  #tracker-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "name name"
      "ppm bottle"
      "spark spark"
      "actions actions";
    gap: 8px 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    align-items: stretch;
  }
  #tracker-table tbody tr:last-child {
    border-bottom: none;
  }
  #tracker-table tbody tr td {
    display: block;
    padding: 0;
    border: none;
    text-align: left;
    white-space: normal;
  }
  #tracker-table tbody tr td.tracker-col-name {
    grid-area: name;
    min-width: 0;
  }
  #tracker-table tbody tr td.tracker-col-ppm {
    grid-area: ppm;
    min-width: 0;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 7px 9px;
  }
  #tracker-table tbody tr td.tracker-col-bottle {
    grid-area: bottle;
    text-align: left;
    min-width: 0;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 7px 9px;
  }
  #tracker-table tbody tr td.tracker-col-entry {
    display: none;
  }
  #tracker-table tbody tr td.tracker-col-spark {
    grid-area: spark;
    min-width: 0;
    padding-top: 0;
  }
  #tracker-table tbody tr td.tracker-col-spark:empty {
    display: none;
  }
  #tracker-table tbody tr td.tracker-col-actions {
    grid-area: actions;
    text-align: left;
    padding-top: 2px;
  }
  #tracker-table tbody tr td.tracker-col-actions > div {
    display: flex !important;
    width: 100%;
    gap: 6px !important;
  }
  #tracker-table tbody tr td.tracker-col-actions .btn-sm {
    margin-left: auto;
  }
  #tracker-table tbody tr td[colspan] {
    grid-column: 1 / -1;
  }
  .tracker-col-label {
    display: block;
  }
}

/* Collapsible Flights Filters Bar (keeps Taste pills + live flight above the fold) */
.flights-filters-fold {
  margin-top: 2px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}
.flights-filters-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  user-select: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.flights-filters-summary::-webkit-details-marker {
  display: none;
}
.flights-filters-summary:hover {
  border-color: var(--border-strong);
}
.flights-filters-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  flex-shrink: 0;
}
.filters-summary-pills {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-family: var(--font-mono);
}
.filters-chevron {
  font-size: 12px;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.flights-filters-fold[open] .filters-chevron {
  transform: rotate(180deg);
}
.flights-filters-body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filters-exclusions-section {
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}
.filters-exclusions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Prices Tab: All / Samples / Full Bottles / Sets Toggle + Full-Bottle Price Cell */
.tracker-type-seg {
  max-width: 330px;
  flex-shrink: 0;
}
.bottle-price-val {
  font-weight: 600;
  color: var(--accent-cognac);
  cursor: pointer;
}
.bottle-price-val:hover {
  text-decoration: underline;
}
/* Full Bottles mode: hide sample $/mL & entry vial columns so only full-bottle deals + spark show */
#tracker-table.mode-bottles th:nth-child(2),
#tracker-table.mode-bottles th:nth-child(4),
#tracker-table.mode-bottles td.tracker-col-ppm,
#tracker-table.mode-bottles td.tracker-col-entry {
  display: none;
}
/* Samples mode: hide full-bottle column */
#tracker-table.mode-samples th:nth-child(3),
#tracker-table.mode-samples td.tracker-col-bottle {
  display: none;
}
@media (max-width: 640px) {
  .tracker-type-seg {
    max-width: 100%;
    width: 100%;
  }
  .tracker-type-seg .seg-btn {
    padding: 6px 6px;
    font-size: 12px;
  }
  #tracker-table.mode-bottles tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name bottle"
      "spark spark"
      "actions actions";
  }
  #tracker-table.mode-bottles td.tracker-col-bottle {
    text-align: right;
  }
  #tracker-table.mode-samples tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name entry"
      "ppm entry"
      "spark spark"
      "actions actions";
  }
}

.tracker-subbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tracker-subbar .input-select {
  max-width: 210px;
}

/* Typable House Combobox */
.house-combobox {
  position: relative;
  flex: 1 1 210px;
  max-width: 260px;
  min-width: 170px;
}
.house-combo-input {
  width: 100%;
  padding-right: 36px;
}
.house-combo-clear {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg-recessed);
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.house-combo-clear:hover {
  background: var(--border-subtle);
  color: var(--ink-primary);
}
.house-combo-clear[hidden] {
  display: none;
}
.house-combo-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 70;
  padding: 4px;
}
.house-combo-dropdown[hidden] {
  display: none;
}
.house-combo-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-primary);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}
.house-combo-item:hover,
.house-combo-item:focus-visible {
  background: var(--accent-cognac-soft);
  color: var(--accent-cognac-hover);
  outline: none;
}
.house-combo-all {
  font-weight: 600;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 4px 4px 0 0;
  margin-bottom: 2px;
}
.house-combo-empty {
  padding: 9px 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Prices Table Explicit Loading State */
#tracker-table-wrap {
  position: relative;
}
#tracker-table-wrap.is-loading #tracker-tbody {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.tracker-loading-overlay {
  position: sticky;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  height: 0;
  overflow: visible;
}
.tracker-loading-overlay[hidden] {
  display: none;
}
.tracker-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--bg-recessed);
  background-size: 200% 100%;
  animation: vf-loading-sweep 1s linear infinite;
}
.tracker-loading-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.9);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(4px);
}
.tracker-spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  animation: vf-spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes vf-spin {
  to { transform: rotate(360deg); }
}
@keyframes vf-loading-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tracker-skeleton-row td {
  padding-top: 12px;
  padding-bottom: 12px;
}
.skel-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-recessed);
  background-size: 200% 100%;
  animation: vf-loading-sweep 1.25s ease-in-out infinite;
}
.skel-title { width: 65%; height: 14px; margin-bottom: 6px; }
.skel-sub { width: 42%; height: 10px; }
.skel-num { width: 72px; }
.skel-sm { width: 52px; margin-left: auto; }
.skel-btn { width: 84px; height: 26px; margin-left: auto; border-radius: 4px; }
@media (max-width: 640px) {
  .house-combobox {
    max-width: none;
    flex: 1 1 100%;
  }
}

/* --- 4-Tier Vendor Trust Badge System --- */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tier-badge.authorized {
  background: var(--accent-cognac-soft);
  color: var(--accent-cognac);
  border-color: var(--accent-cognac);
}
.tier-badge.decanter {
  background: var(--bg-recessed);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}
.tier-badge.discounter {
  background: var(--bg-page);
  color: var(--ink-secondary);
  border-color: var(--border-strong);
}
.tier-badge.low_trust {
  background: var(--bg-recessed);
  color: var(--ink-muted);
  border-color: var(--border-strong);
}

/* --- Functional Metadata Pills (Spray/Dabber, Retail Box/Tester, Delayed Ship) --- */
.offer-meta-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--bg-recessed);
  color: var(--ink-secondary);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.meta-pill.spray {
  background: var(--bg-page);
  color: var(--accent-cognac);
  border-color: var(--border-strong);
}
.meta-pill.dabber {
  background: var(--bg-page);
  color: var(--ink-secondary);
  border-color: var(--border-strong);
}
.meta-pill.tester {
  background: var(--bg-page);
  color: var(--ink-secondary);
  border-color: var(--border-strong);
}
.meta-pill.boxed {
  background: var(--bg-page);
  color: var(--ink-secondary);
  border-color: var(--border-subtle);
}
.meta-pill.delayed {
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  border-color: var(--border-strong);
}
.ship-hint {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  white-space: nowrap;
}
.ship-hint.free {
  color: var(--accent-cognac);
  font-weight: 600;
}

/* --- Exclude Vendors Filter Strip --- */
.exclude-vendors-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}
.exclude-vendors-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.exclude-vendors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.exclude-vendor-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}
.exclude-vendor-chip:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}
.exclude-vendor-chip.excluded {
  background: var(--accent-terracotta-soft);
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
  text-decoration: line-through;
  font-weight: 600;
}
.exclude-vendor-chip.low-trust-hint:not(.excluded) {
  border-color: var(--border-strong);
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
}

/* --- 3-Rating Recommender Recalc Queue Banner --- */
.recalc-queue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 13px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-recessed);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  font-size: 12.5px;
}
.recalc-queue-banner strong {
  font-weight: 700;
}

/* --- About Page: How We Vet Vendors --- */
.vetting-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.vetting-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.vetting-tier-box {
  padding: 11px 12px;
  border-radius: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
}
.vetting-tier-box p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-secondary);
}
@media (max-width: 640px) {
  .vetting-tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Swipe-to-Skip Cards (Taste Match & Quick Rate) --- */
.swipe-card {
  position: relative;
  touch-action: pan-y;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.swipe-card.swiping {
  will-change: transform, opacity;
  transition: none;
}
.swipe-card.swipe-dismissed {
  opacity: 0;
  pointer-events: none;
}
.swipe-skip-indicator {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}
.swipe-card.swiping .swipe-skip-indicator {
  opacity: 1;
}

.pack-item-row.swipe-card {
  overflow: visible;
}
.tracker-table td.tracker-col-name {
  position: relative;
}

/* --- Profile Modal: Loves, Dislikes & Paused Manager --- */
.profile-activity-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.profile-activity-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.pa-tab {
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.12s ease;
}
.pa-tab.active {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}
.profile-activity-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
}
.pa-row-name {
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pa-row-name:hover {
  color: var(--accent-cognac);
  text-decoration: underline;
}
.pa-row-name.is-static {
  cursor: default;
  color: var(--ink-secondary);
}
.pa-row-name.is-static:hover {
  color: var(--ink-secondary);
  text-decoration: none;
}
.pa-row.is-unmatched {
  background: var(--bg-page);
  border-style: dashed;
  border-color: var(--border-subtle);
}
.pa-row-sub {
  font-size: 11px;
  color: var(--ink-muted);
}

/* --- Editable Budget Combo-Input with Suggestions --- */
.budget-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.budget-prefix {
  position: absolute;
  left: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  pointer-events: none;
  z-index: 2;
}
.budget-input {
  padding-left: 23px !important;
  padding-right: 34px !important;
  -moz-appearance: textfield;
}
.budget-input::-webkit-outer-spin-button,
.budget-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.budget-clear-btn {
  position: absolute;
  right: 4px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.budget-clear-btn:hover {
  background: var(--border-subtle);
  color: var(--ink-primary);
}
.budget-presets-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 132px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 70;
  padding: 4px;
  flex-direction: column;
  gap: 2px;
}
.budget-presets-menu.open {
  display: flex;
}
.budget-opt {
  border: none;
  background: transparent;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-primary);
  cursor: pointer;
}
.budget-opt:hover,
.budget-opt.active {
  background: var(--bg-page);
  color: var(--accent-cognac);
  font-weight: 600;
}

/* --- Non-Shopify Direct Product Links inside My Flight Drawer --- */
.cart-direct-note {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.cart-item-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.cart-item-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.cart-item-link-row:hover {
  border-color: var(--accent-cognac);
  background: var(--bg-card);
}
.cart-item-link-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-link-price {
  flex-shrink: 0;
  color: var(--accent-cognac);
  font-size: 12px;
}

/* ==========================================================================
   EDITORIAL APOTHECARY & PRICING TERMINAL OVERRIDES (STRICT DESIGN RULES)
   Newsreader Headings · IBM Plex Sans UI · IBM Plex Mono tabular-nums
   Warm Paper (#FAF8F5) · Ink (#171513) · Hairlines (#E4DFD7) · Forest (#1B4332)
   ========================================================================== */

/* 1. Editorial Serif Headings */
.flights-title,
.about-headline,
.modal-title,
.drawer-header h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
.flights-title {
  font-size: 28px;
  line-height: 1.12;
}
.about-headline {
  font-size: 30px;
  line-height: 1.15;
}
.pack-store-heading,
.rec-name,
.qt-scent-name {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pack-store-heading {
  font-size: 19px;
  line-height: 1.2;
}

/* 2. Tabular Monospace for ALL Prices, Sizes, $/mL, Shipping & Counts */
.pack-total,
.pack-ppm,
.pack-item-size,
.rec-ppm-main,
.rec-ppm-sub,
.bottle-price-val,
.delta-pill,
.match-pill,
.nonstop-pill,
.about-stat-val,
.vendor-dir-count,
.count-badge,
.ship-hint,
.tier-badge,
.meta-pill,
.promo-tag,
.conc-tag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* 3. Strict Single Accent & Hairline Surfaces (Zero Shadows, Zero Rainbow) */
.control-card,
.pack-card,
.rec-card,
.about-hero-card,
.vetting-card,
.about-vendors-card,
.table-wrap,
.quick-train-card,
.global-search-bar {
  box-shadow: none;
  border-color: var(--border-subtle);
  border-radius: 6px;
}

.btn-primary,
.btn-checkout {
  background: var(--accent-cognac);
  border: 1px solid var(--accent-cognac);
  color: #FAF8F5;
  border-radius: 4px;
  box-shadow: none;
}
.btn-primary:hover,
.btn-checkout:hover {
  background: var(--accent-cognac-hover);
  border-color: var(--accent-cognac-hover);
}

.btn-auth-pill {
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-secondary);
}
.btn-auth-pill:hover,
.btn-auth-pill.signed-in {
  border-color: var(--border-strong);
  color: var(--ink-primary);
  background: var(--bg-card);
}

.btn-train-pill {
  border-radius: 4px;
  box-shadow: none;
  border-color: var(--border-strong);
}

.preset-chip,
.seg-btn,
.btn-sm,
.btn-secondary,
.exclude-vendor-chip,
.exclude-cat-chip {
  border-radius: 4px;
  box-shadow: none;
}
.preset-chip.preset-mytaste {
  background: var(--bg-card);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}
.preset-chip.preset-mytaste:hover {
  background: var(--bg-recessed);
  border-color: var(--accent-cognac);
}
.preset-chip.active,
.preset-chip.preset-mytaste.active,
.btn-sm.added,
.qt-btn.flight.added {
  background: var(--accent-cognac);
  color: #FAF8F5;
  border-color: var(--accent-cognac);
  box-shadow: none;
}

/* 4. Sharp Uppercase Monospace Micro-Tags (1px Border, Zero Pastel Soup) */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-secondary);
}
.tier-badge.authorized {
  border-color: var(--accent-cognac);
  color: var(--accent-cognac);
  background: var(--accent-cognac-soft);
}
.tier-badge.decanter {
  border-color: var(--border-strong);
  color: var(--ink-primary);
  background: var(--bg-page);
}
.tier-badge.discounter {
  border-color: var(--border-strong);
  color: var(--ink-secondary);
  background: transparent;
}
.tier-badge.low_trust {
  border-style: dashed;
  border-color: var(--border-strong);
  color: var(--ink-muted);
  background: transparent;
}

.meta-pill,
.pack-badge,
.nonstop-pill,
.delta-pill,
.match-pill,
.promo-tag,
.conc-tag {
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--ink-secondary);
}
.meta-pill.spray,
.delta-pill.down,
.match-pill,
.pack-badge.primary,
.pack-badge.value {
  border-color: var(--accent-cognac);
  background: var(--accent-cognac-soft);
  color: var(--accent-cognac);
}
.meta-pill.delayed,
.delta-pill.up {
  border-color: var(--accent-terracotta);
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
}
.ship-hint.free {
  color: var(--accent-cognac);
  font-weight: 600;
}

.vendor-trust-pill {
  border-radius: 3px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  padding: 3px 7px;
}
.dot-swatch {
  display: none;
}

/* 5. Edge-to-Edge Hairline Lists (Flights, Vendor Directory, Shop Tiers, Comps) */
.pack-items-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.pack-item-row {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 10px 4px;
  margin: 0;
}
.pack-item-row:last-child {
  border-bottom: none;
}
.pack-item-row:hover {
  background: var(--bg-hover);
}

.bottle-market-rows {
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}
.bottle-row {
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 9px 11px;
}
.bottle-row:last-child {
  border-bottom: none;
}
.bottle-row.best {
  background: var(--accent-cognac-soft);
}

.about-actions-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .about-stat-cell {
    border-bottom: 1px solid var(--border-subtle);
  }
  .about-stat-cell:nth-child(2n) {
    border-right: none;
  }
  .about-stat-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.vetting-card,
.about-vendors-card {
  padding: 0;
  overflow: hidden;
}
.vetting-card .about-section-label,
.about-vendors-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.about-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.vetting-tiers-list {
  display: flex;
  flex-direction: column;
}
.vetting-tier-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.vetting-tier-row:last-child {
  border-bottom: none;
}
.vetting-tier-row .tier-badge {
  justify-self: start;
}

.about-vendors-list {
  display: flex;
  flex-direction: column;
}
.vendor-dir-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(160px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: background 0.12s ease;
}
.vendor-dir-row:last-child {
  border-bottom: none;
}
.vendor-dir-row:hover {
  background: var(--bg-hover);
}
.vendor-dir-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vendor-dir-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-primary);
}
.vendor-dir-meta {
  font-size: 12px;
  color: var(--ink-muted);
}
.vendor-dir-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .vendor-dir-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 10px 14px;
  }
  .vendor-dir-meta {
    grid-column: 1 / -1;
    order: 3;
    font-size: 11.5px;
  }
  .vetting-tier-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 11px 14px;
  }
}

/* 6. Uniform Monochrome 1.5px Lucide Icon Buttons & Flat Loaders */
.fb-btn,
.qt-btn,
.vial-like-btn,
.vial-reject-btn,
.vial-swap-btn,
.pa-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
}
.vial-like-btn.active,
.fb-btn.up.active,
.qt-btn.up.active {
  color: var(--accent-cognac);
  border-color: var(--accent-cognac);
  background: var(--accent-cognac-soft);
}

.tracker-loading-bar {
  height: 2px;
  background: var(--border-subtle);
  overflow: hidden;
  border-radius: 0;
  animation: none;
}
.tracker-loading-bar::after {
  content: "";
  display: block;
  width: 38%;
  height: 100%;
  background: var(--accent-cognac);
  animation: vf-bar-slide 0.9s ease-in-out infinite;
}
@keyframes vf-bar-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}
.tracker-loading-pill {
  border-radius: 4px;
  background: var(--ink-primary);
  color: #FAF8F5;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(23, 21, 19, 0.16);
}
.skel-bar {
  border-radius: 3px;
  background: var(--bg-recessed);
  animation: vf-skel-pulse 1.2s ease-in-out infinite;
}
@keyframes vf-skel-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.price-meter-track {
  background: var(--border-subtle);
  border-radius: 2px;
}
.score-bar-fill {
  background: var(--accent-cognac);
  border-radius: 2px;
}

/* 7. MILP Drawer Controls, Smart Discovery Bundles & Saved Flights (Flight-to-Bottle) */
.drawer-milp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 11px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}
.drawer-maxshops {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.drawer-maxshops-lbl {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 500;
}
.seg-control.compact {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-card);
  overflow: hidden;
}
.seg-control.compact .seg-btn {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border: 0;
  border-radius: 0;
}
.seg-control.compact .seg-btn + .seg-btn {
  border-left: 1px solid var(--border-subtle);
}

.smart-bundle-card {
  padding: 12px 13px;
  background: var(--bg-card);
  border: 1px solid var(--accent-cognac);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.smart-bundle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.smart-bundle-delta {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.smart-bundle-delta.cheaper {
  color: var(--accent-cognac);
}
.smart-bundle-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1.25;
}
.smart-bundle-voucher {
  font-size: 11.5px;
  color: var(--accent-cognac);
  font-weight: 500;
}
.smart-bundle-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.free-ship-nudge {
  font-size: 11.5px;
  color: var(--accent-cognac);
  background: var(--accent-cognac-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 5px 8px;
}

.detail-bundle-callout {
  margin-top: 12px;
  padding: 11px 13px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-bundle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.profile-activity-tabs .pa-tab {
  padding: 6px 9px;
  font-size: 11.5px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.profile-activity-tabs .pa-tab svg {
  flex-shrink: 0;
}
.profile-activity-search {
  width: 100%;
  font-size: 12.5px;
  padding: 7px 10px;
}
.profile-activity-list {
  max-height: 290px;
}
.pa-rank {
  font-size: 11px;
  color: var(--ink-muted);
  min-width: 26px;
  text-align: right;
  flex-shrink: 0;
}
.pa-row-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.pa-action-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.pa-tier-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-secondary);
}
.pa-tier-pill.loved {
  border-color: rgba(27, 67, 50, 0.28);
  background: rgba(27, 67, 50, 0.07);
  color: var(--accent-cypress);
}
.pa-tier-pill.disliked {
  border-color: rgba(154, 52, 18, 0.28);
  background: rgba(154, 52, 18, 0.07);
  color: var(--accent-terracotta);
}
.pa-offer-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}
.pa-offer-badge.live {
  color: var(--accent-cypress);
  background: var(--bg-card);
  border-color: rgba(27, 67, 50, 0.22);
}
.pa-offer-badge.none {
  color: var(--accent-terracotta);
  background: rgba(154, 52, 18, 0.06);
  border-color: rgba(154, 52, 18, 0.25);
  text-transform: uppercase;
  font-weight: 600;
}
.pa-offer-badge.unmatched {
  color: var(--ink-muted);
  background: var(--bg-recessed);
  border-color: var(--border-strong);
  text-transform: uppercase;
  font-weight: 600;
}
.no-offers-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-terracotta);
  border-radius: 4px;
  background: var(--bg-page);
}
.no-offers-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.no-offers-banner-body {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.saved-flight-card {
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}
.saved-flight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}
.saved-flight-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}
.saved-flight-items {
  display: flex;
  flex-direction: column;
}
.saved-flight-item {
  padding: 8px 11px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.saved-flight-item:last-child {
  border-bottom: 0;
}
.saved-flight-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.saved-bottle-upgrade {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-cognac);
  background: var(--accent-cognac-soft);
  border: 1px solid var(--accent-cognac);
  border-radius: 4px;
  padding: 4px 8px;
  text-decoration: none;
}
.saved-bottle-upgrade:hover {
  background: var(--accent-cognac);
  color: #FAF8F5;
}

/* 8. Transparent Forest-Green Brand Mark & Scannable Mobile-First About */
.brand-logo-svg {
  color: var(--accent-cognac);
  flex-shrink: 0;
  display: block;
}
.about-bullets {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.about-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent-cognac);
}
.about-bullets li strong {
  color: var(--ink-primary);
  font-weight: 600;
}
.about-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}
@media (max-width: 640px) {
  .about-shell {
    gap: 12px;
  }
  .about-hero-card,
  .vetting-card,
  .about-vendors-card {
    margin-left: -12px;
    margin-right: -12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .about-hero-card {
    padding: 18px 16px 16px;
  }
  .about-headline {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .about-lead {
    font-size: 14px;
    line-height: 1.52;
    margin-bottom: 12px;
  }
}

/* 9. Kayak $/mL Price Gauge & Multi-Year Seasonality Chart */
.price-intel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-intel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.kayak-gauge-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.kayak-track {
  position: relative;
  height: 7px;
  background: #DFD8CC;
  border-radius: 2px;
  overflow: visible;
}
.kayak-zone-low {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent-cognac);
  opacity: 0.75;
  border-radius: 2px 0 0 2px;
}
.kayak-zone-typ {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #C9C1B4;
}
.kayak-marker {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 15px;
  background: var(--ink-primary);
  border-radius: 1px;
  transform: translateX(-50%);
}
.kayak-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-muted);
}
.price-intel-tabs {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.pi-tab {
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pi-tab.active {
  color: var(--accent-cognac);
  border-bottom-color: var(--accent-cognac);
  font-weight: 600;
}
.pi-svg {
  width: 100%;
  height: auto;
  display: block;
}
.pi-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.pi-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pi-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-secondary);
}
.pi-leg-swatch {
  display: inline-block;
  width: 14px;
  border-radius: 1px;
}
.pi-empty {
  padding: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   INLINE KAYAK $/mL SPARKLINE STRIP (Prices rows/cards & Taste cards)
   ========================================================================== */
#tracker-table td.tracker-col-spark {
  min-width: 168px;
}
.inline-spark-strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.14s ease;
}
.inline-spark-strip:hover {
  border-color: var(--accent-cypress);
}
.inline-spark-strip.compact {
  margin-top: 8px;
  padding: 6px 8px;
}
.inline-spark-strip.single {
  padding: 5px 8px;
}
.inline-spark-top,
.inline-spark-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.spark-kind {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}
.spark-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-muted);
}
.spark-verdict {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  line-height: 1.3;
}
.spark-verdict.low {
  color: #1B4332;
  background: #EDF5F0;
  border-color: #B7D8C5;
}
.spark-verdict.typ {
  color: var(--ink-secondary);
  background: var(--bg-card);
}
.spark-verdict.high {
  color: #8C3B2B;
  background: #FAF0ED;
  border-color: #E3BEB4;
}
.inline-spark-body {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline-spark-svg {
  flex-shrink: 0;
  display: block;
}
.inline-kayak-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.inline-kayak-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: #E4DFD7;
}
.inline-kayak-pin {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid #FFFFFF;
  background: #1B4332;
}
.inline-kayak-pin.typ {
  background: #6B655E;
}
.inline-kayak-pin.high {
  background: #8C3B2B;
}
.inline-kayak-nums {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 9.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.inline-kayak-nums .kayak-cur {
  color: var(--ink-primary);
  font-weight: 600;
}

/* ==========================================================================
   INTEGRATED DISCOVERY SET PRICE OPTIMIZATION CARDS
   ========================================================================== */
.flight-bundle-opt-card {
  border-left: 3px solid var(--accent-cypress);
}
.bundle-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 560px) {
  .bundle-stat-grid {
    grid-template-columns: 1fr;
  }
}
.bundle-stat-box {
  padding: 10px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}
.bundle-stat-val {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-primary);
}

/* ==========================================================================
   EDITORIAL SIMPLIFICATION PASS & GLOBAL COMPLIANCE FOOTER
   ========================================================================== */
.global-search-shell {
  margin-bottom: 8px;
}
.global-search-bar {
  padding: 7px 11px;
}
.flights-hero-compact {
  margin-bottom: 6px;
  align-items: center;
}
.flights-title {
  font-size: 22px;
  line-height: 1.15;
}

/* Flatten control chrome onto warm paper canvas so white surfaces belong only to results */
.control-card.simple-control-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 0 0 8px;
  margin-bottom: 8px;
  box-shadow: none;
}
.control-card.simple-control-card .flights-filters-fold {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin-top: 6px;
  padding-top: 0;
}
.hipmunk-sort-strip {
  margin-bottom: 8px;
  gap: 6px;
}
.sort-chip.reset-skip-chip {
  color: var(--accent-terracotta);
  border-color: rgba(154, 52, 18, 0.28);
  background: rgba(154, 52, 18, 0.05);
}

/* Ultra-compact 1-line Price Insight Banner */
.price-insight-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-secondary);
}
.price-insight-line {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-insight-line strong.low {
  color: var(--accent-cypress);
}
.insight-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.insight-dot.low {
  background: var(--accent-cypress);
}
.insight-dot.typ {
  background: var(--accent-amber, #B45309);
}

/* Live Prices Card labels & clean vendor line */
.tracker-col-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
@media (max-width: 640px) {
  .tracker-col-label {
    display: block;
  }
}
.tracker-vendor-line {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Taste Match Card: prominent + Add to Flight CTA row + clean feedback row */
.rec-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
}
.rec-primary-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.btn-flight-cta {
  flex: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--accent-cypress);
  background: var(--accent-cypress);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}
.btn-flight-cta:hover {
  background: #143326;
  border-color: #143326;
}
.btn-flight-cta.added {
  background: rgba(27, 67, 50, 0.08);
  color: var(--accent-cypress);
}
.rec-primary-row .btn-sm {
  flex: 1;
  padding: 8px 10px;
  white-space: nowrap;
}
.rec-fb-row {
  display: flex;
  gap: 6px;
  width: 100%;
}
.rec-fb-row .fb-btn {
  flex: 1;
  justify-content: center;
}

/* 10-Second Taste Cold-Start Onboarding Card (shown only when <3 ratings) */
.taste-coldstart-card {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cypress);
  border-radius: 6px;
}
.tcs-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tcs-prog {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cypress);
  background: rgba(27, 67, 50, 0.08);
  padding: 2px 7px;
  border-radius: 3px;
}
.tcs-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.tcs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.tcs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}
.tcs-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcs-house {
  font-size: 11px;
  color: var(--ink-muted);
}
.tcs-btns {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.tcs-btns .fb-btn {
  padding: 5px 8px;
  font-size: 11.5px;
}

/* Tighter Prices toolbar + unified Filters fold */
.tracker-toolbar {
  gap: 8px;
  margin-bottom: 8px;
}
.tracker-filters-fold {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin-bottom: 12px;
}
.tracker-filters-top {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}
.tracker-filters-top .house-combobox {
  flex: 1 1 200px;
  max-width: 300px;
}
.tracker-filters-toggles {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Inline discovery-set price-optimization link inside Prices rows */
.inline-set-opt-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #B7D8C5;
  background: #EDF5F0;
  color: #1B4332;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}
.inline-set-opt-btn:hover {
  background: #DCECE2;
}

/* Quiet global FTC disclosure & compliance colophon */
.site-footer {
  margin-top: 20px;
  padding: 14px 0 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-muted);
  font-size: 11.5px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.site-footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
}
.site-footer-links a:hover {
  color: var(--accent-cypress);
  text-decoration: underline;
}
.site-footer-sep {
  color: var(--border-strong);
  user-select: none;
}
/* Editorial hero & 3-chip single-row mode bar */
.flights-hero-compact {
  flex-wrap: nowrap !important;
  justify-content: space-between;
  gap: 8px;
}
.flights-hero-compact .btn-train-pill {
  flex-shrink: 0;
  white-space: nowrap;
}
#preset-buttons.presets-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
#preset-buttons.presets-three .preset-chip {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 7px 6px;
  white-space: nowrap;
  font-size: 12.5px;
}
.hipmunk-sort-strip {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hipmunk-sort-strip::-webkit-scrollbar {
  display: none;
}
.hipmunk-sort-strip .sort-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 5px 9px;
  font-size: 12px;
}
.hipmunk-sort-strip .shuffle-chip {
  margin-left: auto;
}
.note-suggest-item.style-opt .ns-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.note-suggest-item.style-opt .ns-sub {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 400;
}
@media (max-width: 760px) {
  .flights-title {
    font-size: 21px;
  }
  .site-footer {
    padding-bottom: 82px;
  }
}

/* --- PCPartPicker-style Above-the-Fold 3-Tile Price Strip & Shipping Table --- */
.detail-price-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 4px;
}
.detail-price-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.detail-price-tile.avail {
  border-top: 2px solid var(--accent-cypress);
}
.detail-price-tile.empty {
  background: var(--bg-page);
  opacity: 0.78;
}
.dpt-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dpt-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.2;
}
.dpt-sub {
  font-size: 11px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dpt-foot {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
}
.dpt-store {
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dpt-buy {
  color: var(--accent-cypress);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.dpt-buy:hover {
  text-decoration: underline;
}
.detail-offers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.detail-ship-free {
  color: var(--accent-cypress);
  font-weight: 600;
}
.detail-ship-sub {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
  font-weight: 400;
}
@media (max-width: 640px) {
  .detail-img {
    width: 48px;
    height: 48px;
  }
  .detail-header {
    gap: 8px;
    padding-bottom: 14px;
  }
  .detail-price-strip {
    gap: 6px;
    margin: 8px 0 4px;
  }
  .detail-price-tile {
    padding: 8px 8px;
  }
  .dpt-kicker {
    font-size: 8.5px;
  }
  .dpt-price {
    font-size: 15px;
  }
  .dpt-sub {
    font-size: 10px;
  }
  .dpt-foot {
    font-size: 10px;
  }
}

/* --- Bayesian Longevity & $/hr Value Bar --- */
.longevity-bar {
  margin-top: 8px;
  padding: 8px 11px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.longevity-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}
.longevity-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.longevity-hrs {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
}
.longevity-src {
  font-size: 11px;
  color: var(--ink-muted);
}
.longevity-val-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cypress);
  background: #EEF4F0;
  border: 1px solid #CFE0D5;
  border-radius: 3px;
  padding: 1px 6px;
}
.longevity-vote-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.longevity-vote-lbl {
  font-size: 11px;
  color: var(--ink-muted);
}
.longevity-pills {
  display: inline-flex;
  gap: 4px;
}
.longevity-pill {
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid var(--border-strong, var(--border-subtle));
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}
.longevity-pill:hover {
  border-color: var(--accent-cypress);
  color: var(--accent-cypress);
}
.longevity-pill.active {
  background: var(--accent-cypress);
  border-color: var(--accent-cypress);
  color: #FAF8F5;
}

/* --- Baseball Savant / Tufte Horizontal Vendor Dot Plot --- */
.dotplot-card {
  margin: 12px 0 14px;
  padding: 12px 14px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.dotplot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.dotplot-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
}
.dotplot-sub {
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-muted);
}
.dotplot-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--ink-muted);
}
.dotplot-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dp-leg-iqr {
  display: inline-block;
  width: 11px;
  height: 7px;
  border-radius: 1px;
  background: #E8E3DA;
  border: 1px solid #CEC6B8;
}
.dp-leg-med {
  display: inline-block;
  width: 2px;
  height: 10px;
  background: #6B655E;
}
.dp-leg-ret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FAF8F5;
  border: 1.6px solid #171513;
}
.dp-leg-low {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1B4332;
}
.dotplot-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  user-select: none;
}
.dotplot-pt {
  cursor: pointer;
  outline: none;
}
.dotplot-pt:focus-visible .dotplot-ring {
  opacity: 1;
}
.dotplot-readout {
  margin-top: 8px;
  padding: 7px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.dotplot-readout-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.dotplot-track-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--ink-muted);
}
.dotplot-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 2px;
}
.dotplot-tag.sniper {
  background: #EEF4F0;
  color: var(--accent-cypress);
  border: 1px solid #CFE0D5;
}
.dotplot-tag.retail {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--ink-primary);
}
.dotplot-readout-nums {
  font-size: 11.5px;
  color: var(--ink-secondary);
}
.dotplot-buy-btn {
  flex-shrink: 0;
  font-weight: 600;
}
@media (max-width: 640px) {
  .longevity-bar {
    padding: 7px 9px;
  }
  .longevity-pill {
    padding: 4px 7px;
  }
  .dotplot-card {
    padding: 10px 10px 8px;
  }
  .dotplot-sub {
    display: none;
  }
  .dotplot-readout {
    padding: 7px 8px;
    font-size: 11.5px;
  }
}

