.presets-section {
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  min-height: 280px; /* Mobile height reservation */
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .presets-section {
    min-height: 160px; /* Desktop height reservation (single row) */
  }
}

.presets-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  text-align: center;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-2);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.preset-btn:hover, .preset-btn:focus-visible {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.preset-btn:active {
  transform: translateY(0);
}

.preset-btn.active {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--primary-color);
}

.preset-emoji {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  display: block;
  line-height: 1;
  height: 32px; /* Fixed height to prevent shift during font load */
}

.preset-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .presets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
