/**
 * Sommelier interactivo de maridajes • Estilos prémium
 * Paleta enológica y cervecera adaptativa (claro / oscuro) con soporte de alto contraste WCAG AA/AAA
 */

:root {
  --wine-primary: #780016;
  --wine-primary-light: #9e1b32;
  --wine-surface: #170d11;
  --wine-surface-card: #22151b;
  --wine-surface-elevated: #2d1b24;
  --wine-border: rgba(212, 175, 55, 0.25);
  --gold-accent: #d4af37;
  --gold-hover: #f3cf55;
  --beer-amber: #d97706;
  --beer-dark: #b45309;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(34, 21, 27, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
  --badge-bg: rgba(212, 175, 55, 0.12);
  --badge-border: rgba(212, 175, 55, 0.3);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition-fast: 0.2s ease;
}

[data-theme="light"] {
  --wine-primary: #880022;
  --wine-primary-light: #a81035;
  --wine-surface: #fff8f8;
  --wine-surface-card: #ffffff;
  --wine-surface-elevated: #fbf0f2;
  --wine-border: rgba(136, 0, 34, 0.18);
  --gold-accent: #926607;
  --gold-hover: #b07d0d;
  --text-main: #0f172a;
  --text-muted: #334155;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --badge-bg: rgba(136, 0, 34, 0.08);
  --badge-border: rgba(136, 0, 34, 0.22);
}

/* Contenedor general */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--wine-surface);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.tool-layout {
  max-width: 1240px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Modos de búsqueda: Plato vs Bebida vs Calculadora a medida */
.mode-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.mode-toggle-group {
  display: inline-flex;
  background: var(--wine-surface-card);
  padding: 5px;
  border-radius: 40px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  min-height: 40px;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.btn-mode.active {
  background: var(--wine-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(120, 0, 22, 0.4);
}

/* Barra de filtros y categorías */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 14px 44px;
  font-size: 1rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--wine-surface-card);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--gold-accent);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--wine-surface-card);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  cursor: pointer;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  border-color: var(--gold-accent);
  color: var(--text-main);
}

.chip-btn.active {
  background: var(--badge-bg);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  font-weight: 600;
}

/* Panel de Calculadora Sommelier a Medida (Sliders) */
.custom-dish-panel {
  background: var(--wine-surface-card);
  border: 1px solid var(--wine-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.custom-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.custom-panel-title {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
}

.custom-panel-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
  max-width: 750px;
  line-height: 1.5;
}

.sliders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 1.5rem;
}

.slider-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.slider-val-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--gold-accent);
  background: var(--badge-bg);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.slider-input {
  width: 100%;
  accent-color: var(--gold-accent);
  cursor: pointer;
  height: 6px;
  border-radius: 3px;
}

.slider-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Presets rápidos para la calculadora a medida */
.presets-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
}

.preset-chip {
  background: var(--wine-surface-elevated);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

/* Rejilla de platos / selección */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 2.5rem;
}

.dish-card-thumb {
  background: var(--wine-surface-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-card-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--gold-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dish-card-thumb.selected {
  border-color: var(--wine-primary);
  box-shadow: 0 0 0 2px var(--wine-primary);
  background: linear-gradient(135deg, var(--wine-surface-card) 85%, var(--badge-bg) 100%);
}

.selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--wine-primary);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.dish-thumb-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-main);
}

.dish-thumb-category {
  font-size: 0.78rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Panel central de informe del sommelier */
.sommelier-showcase {
  background: var(--wine-surface-card);
  border: 1px solid var(--wine-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

@keyframes showcasePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 163, 89, 0.85);
    border-color: var(--gold-accent);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 163, 89, 0);
    border-color: var(--gold-accent);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--wine-border);
  }
}

.sommelier-showcase.highlight-pulse {
  animation: showcasePulse 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sommelier-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wine-primary), var(--gold-accent), var(--beer-amber));
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1.25rem;
}

.showcase-title-area h2 {
  font-size: 1.85rem;
  margin: 0 0 6px 0;
}

.showcase-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 800px;
  line-height: 1.5;
}

.btn-action-group {
  display: flex;
  gap: 10px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--badge-bg);
  color: var(--text-main);
  transition: all var(--transition-fast);
  min-height: 40px;
  height: 40px;
}

.btn-action:hover {
  background: var(--wine-primary);
  color: #fff;
  border-color: var(--wine-primary);
}

/* Badges de puntuación de afinidad */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.score-celestial {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}

.score-alta {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-accent);
  border-color: rgba(212, 175, 55, 0.4);
}

.score-correcta {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.35);
}

.score-arriesgada {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.35);
}

.score-destructiva {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="light"] .score-celestial {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

[data-theme="light"] .score-alta {
  background: #fefce8;
  color: #854d0e;
  border-color: #fde047;
}

[data-theme="light"] .score-correcta {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

[data-theme="light"] .score-arriesgada {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

[data-theme="light"] .score-destructiva {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Área sensorial dual: Radar SVG + Desglose de puntos */
.sensory-area {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.8rem;
  align-items: center;
}

[data-theme="light"] .sensory-area {
  background: #fdf6f7;
  border-color: rgba(136, 0, 34, 0.1);
}

.radar-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radar-svg {
  width: 100%;
  max-width: 290px;
  height: auto;
  overflow: visible;
}

.radar-legend {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  margin-top: 8px;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color-dish {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--gold-accent);
}

.legend-color-drink {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--wine-primary);
}

.flavor-profile-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flavor-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.flavor-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--wine-surface-card);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.flavor-item strong {
  color: var(--text-main);
  font-size: 0.84rem;
}

.flavor-dots {
  display: inline-flex;
  gap: 4px;
  margin-top: 2px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-border);
}

.dot.active {
  background: var(--gold-accent);
}

/* Tarjetas de maridaje */
.pairings-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.pairing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.pairing-card.wine-card {
  border-top: 4px solid var(--wine-primary);
}

.pairing-card.beer-card {
  border-top: 4px solid var(--beer-amber);
}

.pairing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 0.8rem;
}

.badge-wine {
  background: rgba(158, 27, 50, 0.15);
  color: #f472b6;
}

.badge-beer {
  background: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
}

[data-theme="light"] .badge-wine {
  background: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

[data-theme="light"] .badge-beer {
  background: #fef3c7;
  color: #9a3412;
  border: 1px solid #fde68a;
}

.pairing-hero-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.pairing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--gold-accent);
  margin-bottom: 1rem;
}

.pairing-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

.pairing-explanation {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0 0 1.2rem 0;
  flex-grow: 1;
}

.pairing-suboptions {
  background: rgba(0, 0, 0, 0.08);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-left: 3px solid var(--gold-accent);
}

[data-theme="light"] .pairing-suboptions {
  background: #f8fafc;
  color: #334155;
  border-left: 3px solid var(--gold-accent);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left-width: 3px;
}

/* Alerta de maridaje destructivo y principio molecular con alto contraste WCAG */
.insights-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.insight-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.55;
}

.insight-clash {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.insight-clash h4 {
  margin: 0 0 8px 0;
  color: #ef4444;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="light"] .insight-clash {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

[data-theme="light"] .insight-clash h4 {
  color: #991b1b;
}

.insight-science {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #bae6fd;
}

.insight-science h4 {
  margin: 0 0 8px 0;
  color: #0ea5e9;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="light"] .insight-science {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #075985;
}

[data-theme="light"] .insight-science h4 {
  color: #0369a1;
}

/* Lista de ranking en modo Calculadora Libre */
.ranking-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
}

.ranking-card {
  background: var(--wine-surface-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.ranking-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-accent);
}

.ranking-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ranking-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.ranking-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ranking-bar-wrapper {
  width: 140px;
  height: 8px;
  background: var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}

.ranking-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-accent), #10b981);
  border-radius: 4px;
}

/* Reglas de oro y combinaciones prohibidas */
.golden-rules-section {
  background: var(--wine-surface-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 1.8rem 0;
  font-size: 0.96rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.rule-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rule-icon {
  font-size: 1.5rem;
}

.rule-badge {
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 3px 8px;
  border-radius: 12px;
}

[data-theme="light"] .rule-badge {
  background: #fee2e2;
  color: #b91c1c;
}

.rule-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 4px 0 0 0;
}

.rule-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.rule-solution {
  margin-top: auto;
  font-size: 0.84rem;
  color: var(--gold-accent);
  font-weight: 500;
  background: var(--badge-bg);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--gold-accent);
}

[data-theme="light"] .rule-solution {
  background: #fdf9ee;
  color: #854d0e;
}

/* Modal de confirmación o alerta */
.fijate-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.fijate-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.fijate-modal {
  background: var(--wine-surface-card);
  border: 1px solid var(--wine-border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  text-align: center;
}

.fijate-modal-overlay.active .fijate-modal {
  transform: translateY(0);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.4rem;
  margin: 0 0 8px 0;
}

.modal-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.btn-modal-close {
  width: 100%;
  min-height: 44px;
  height: 44px;
  background: var(--wine-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-modal-close:hover {
  background: var(--wine-primary-light);
}

/* Responsividad móvil y carrusel de categorías */
@media (max-width: 900px) {
  .pairings-container,
  .insights-row,
  .sensory-area {
    grid-template-columns: 1fr;
  }
  
  .showcase-header {
    flex-direction: column;
  }

  .btn-action-group {
    width: 100%;
  }

  .btn-action {
    flex: 1;
    justify-content: center;
  }

  .radar-chart-container {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .category-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 6px;
  }

  .chip-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .sliders-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tool-layout {
    padding: 0 0.75rem;
  }

  .sommelier-showcase {
    padding: 1.25rem;
  }

  .showcase-title-area h2 {
    font-size: 1.4rem;
  }

  .mode-toggle-group {
    width: 100%;
  }

  .btn-mode {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.84rem;
  }
}
