/* Negative Formatter Styles */
.compiledNegPrompt {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.neg-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  background: rgba(14, 13, 11, 0.4);
}
.neg-chip {
  padding: 0.35rem 0.55rem;
  background: rgba(22, 20, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
}
.neg-chip:hover {
  border-color: rgba(230, 75, 75, 0.4);
  background: rgba(230, 75, 75, 0.05);
  color: var(--text-primary);
}
.neg-chip.active {
  background: rgba(230, 75, 75, 0.15);
  border-color: rgba(230, 75, 75, 0.7);
  color: #ff6b6b;
  font-weight: 500;
  box-shadow: 0 0 8px rgba(230, 75, 75, 0.15);
}
.neg-chip.active::before {
  content: '✕';
  font-size: 0.55rem;
  font-weight: bold;
  color: #ff6b6b;
}
.neg-category-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: 0.2rem;
}
.neg-category-header:first-of-type {
  margin-top: 0;
}
.neg-mockup-tag {
  padding: 0.25rem 0.5rem;
  background: rgba(230, 75, 75, 0.08);
  border: 1px dashed rgba(230, 75, 75, 0.3);
  border-radius: 4px;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: #ff8b8b;
  text-decoration: line-through;
  animation: pulseRed 2s infinite alternate;
}
@keyframes pulseRed {
  0% { border-color: rgba(230, 75, 75, 0.25); }
  100% { border-color: rgba(230, 75, 75, 0.5); }
}

/* Mobile Overrides */
@media (max-width: 768px) {
  /* Replace fixed-height scroll traps with auto height —
     page scroll handles navigation, no inner scroll needed */
  .neg-chip-container {
    max-height: none !important;
    overflow-y: visible !important;
  }

  /* Enlarge chip touch targets */
  .neg-chip {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.7rem !important;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .compiledNegPrompt {
    min-height: 120px;
    resize: none;
    font-size: 0.68rem;
  }
  #compiledNegPrompt::placeholder {
    font-size: 0.68rem; 
  }

  /* Enlarge "Toggle All" buttons */
  .neg-category-header button.btn {
    font-size: 0.6rem !important;
    padding: 0.35rem 0.6rem !important;
    min-height: 32px;
    min-width: 60px !important;
  }
}
