.production-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.production-intro h1 {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.production-intro p,
.production-note {
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.55;
}

.production-note {
  margin: 0 0 12px;
}

.production-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.production-model {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
}

.production-model strong,
.production-model span {
  display: block;
}

.production-model strong {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  margin-bottom: 5px;
}

.production-model span {
  font-size: 0.65rem;
  line-height: 1.4;
}

.production-model.active {
  border-color: var(--neon-purple);
  background: var(--bg-card2);
  box-shadow: inset 0 0 0 1px var(--neon-purple);
}

.production-model.active strong {
  color: var(--neon-cyan);
}

.production-field {
  margin: 12px 0;
}

.production-field label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.production-range {
  display: grid;
  grid-template-columns: 105px minmax(80px, 1fr) 42px;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.production-range label,
.production-range output {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.production-range output {
  color: var(--neon-cyan);
  text-align: right;
}

.production-max[aria-pressed="true"] {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.production-workbench {
  margin-top: 16px;
}

.production-add-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.production-source-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.production-source {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
}

.production-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.production-remove {
  min-height: 36px;
  padding: 6px 10px;
  color: var(--neon-pink);
  background: transparent;
}

.production-source-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.production-core-summary {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 4px 0 10px;
}

.production-core-prompt {
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--neon-yellow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.production-studio-grid {
  margin-top: 16px;
}

.production-psycho-card {
  margin-top: 16px;
}

.psycho-card {
  border: 1px solid #56347d;
  background:
    radial-gradient(circle at 90% 0%, rgba(169, 64, 255, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(23, 230, 255, 0.08), transparent 30%),
    #10101b;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-hint {
  margin: 5px 0 0;
  color: #bdb5d5;
  font-size: 0.75rem;
  line-height: 1.5;
}

.psycho-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #2d8056;
  border-radius: 999px;
  background: #0a2117;
  color: #3de895;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.psycho-badge.warning {
  border-color: #876c22;
  background: #261d09;
  color: #ffd352;
}

.psycho-badge.danger {
  border-color: #8b2b45;
  background: #2b0b16;
  color: #ff647e;
}

.psycho-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.production-psycho-card h3 {
  margin: 8px 0 10px;
  color: var(--neon-pink);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.psycho-controls .production-field {
  padding: 10px;
  border: 1px solid #2c2945;
  border-radius: 10px;
  background: #0a0a13;
}

.psycho-controls input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--neon-pink);
}

.psycho-controls output {
  display: block;
  margin-top: 6px;
  color: var(--neon-cyan);
  font-size: 0.6875rem;
  text-align: right;
}

#haasSafety .toggle-btn.active {
  border-color: var(--neon-cyan);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: var(--bg-base);
}

.psycho-safety .toggle-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: var(--bg-base);
}

.psycho-output-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.psycho-output {
  min-width: 0;
  padding: 12px;
  border: 1px solid #302a50;
  border-radius: 10px;
  background: #090912;
}

.psycho-output span {
  display: block;
  margin-bottom: 8px;
  color: var(--neon-pink);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.psycho-output pre {
  margin: 0;
  color: var(--neon-yellow);
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.motor-card {
  margin-top: 16px;
  border-color: #235b65;
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 230, 255, 0.14), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255, 49, 141, 0.08), transparent 35%),
    #10101b;
}

.motor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.motor-controls {
  margin-top: 10px;
}

.motor-controls .range-field,
.fx-motion-controls .range-field {
  min-width: 0;
  padding: 10px;
  border: 1px solid #2c2945;
  border-radius: 10px;
  background: #0a0a13;
}

.motor-controls .range-label,
.fx-motion-controls .range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.motor-controls .range-label label,
.fx-motion-controls .range-label label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.motor-controls output,
.fx-motion-controls output {
  color: var(--neon-cyan);
  font-size: 0.6875rem;
  white-space: nowrap;
}

.motor-controls input[type="range"],
.fx-motion-controls input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--neon-cyan);
}

.motor-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #2d8056;
  border-radius: 999px;
  background: #0a2117;
  color: #3de895;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.motor-badge.warning {
  border-color: #876c22;
  background: #261d09;
  color: #ffd352;
}

.motor-badge.danger {
  border-color: #8b2b45;
  background: #2b0b16;
  color: #ff647e;
}

.motor-safety {
  margin-top: 10px;
}

.motor-safety .toggle-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
  color: var(--bg-base);
  box-shadow: 0 0 15px rgba(23, 230, 255, 0.18);
}

.motor-output-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.motor-output {
  min-width: 0;
  padding: 12px;
  border: 1px solid #293f4a;
  border-radius: 10px;
  background: #090e12;
}

.motor-output span {
  display: block;
  margin-bottom: 8px;
  color: var(--neon-cyan);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.motor-output pre {
  margin: 0;
  color: #d9fff3;
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.fx-motion-card {
  margin-top: 16px;
  border-color: #6e2b67;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 49, 141, 0.14), transparent 32%),
    radial-gradient(circle at 100% 90%, rgba(169, 64, 255, 0.12), transparent 34%),
    #10101b;
}

.fx-motion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fx-motion-controls {
  margin-top: 10px;
}

.fx-badge,
.evidence-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #2d8056;
  border-radius: 999px;
  background: #0a2117;
  color: #3de895;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.fx-badge.warning,
.evidence-badge.warning {
  border-color: #876c22;
  background: #261d09;
  color: #ffd352;
}

.fx-badge.danger,
.evidence-badge.danger {
  border-color: #8b2b45;
  background: #2b0b16;
  color: #ff647e;
}

.production-psycho-card h3,
.motor-card h3,
.fx-motion-card h3,
.evidence-card h3 {
  margin: 12px 0 8px;
  color: var(--neon-pink);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fx-family-chips .toggle-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 49, 141, 0.2);
}

.fx-safety-chips .toggle-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
  color: var(--bg-base);
}

.fx-family-chips .toggle-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.fx-motion-output-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.fx-motion-output {
  min-width: 0;
  padding: 12px;
  border: 1px solid #422745;
  border-radius: 10px;
  background: #100a13;
}

.fx-motion-output span {
  display: block;
  margin-bottom: 8px;
  color: #ff74b5;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fx-motion-output pre {
  margin: 0;
  color: #ffe0f1;
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.evidence-card {
  margin-top: 16px;
  border-color: #3f6270;
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 230, 255, 0.12), transparent 35%),
    #10101b;
}

.evidence-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.evidence-stat {
  min-width: 0;
  padding: 11px;
  border: 1px solid #2b3e48;
  border-radius: 10px;
  background: #091014;
}

.evidence-stat span {
  display: block;
  color: var(--text-dim);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--neon-cyan);
  font-size: 1.25rem;
}

.evidence-review {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #293f4a;
  border-radius: 10px;
  background: rgba(9, 14, 18, 0.72);
}

.evidence-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.evidence-output {
  min-width: 0;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #293f4a;
  border-radius: 10px;
  background: #090e12;
}

.evidence-output span {
  display: block;
  margin-bottom: 8px;
  color: var(--neon-cyan);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.evidence-output pre {
  max-height: 420px;
  margin: 0;
  overflow: auto;
  color: #d9fff3;
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.production-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.production-chips .toggle-btn {
  min-height: 42px;
}

.production-fx-grid .toggle-btn {
  font-size: 0.58rem;
}

.production-guard {
  align-items: flex-start;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.production-output {
  box-shadow: none;
}

.production-pre {
  min-height: 48px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.production-actions {
  margin: 16px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .production-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .production-models {
    grid-template-columns: 1fr;
  }

  .production-source-fields {
    grid-template-columns: 1fr;
  }

  .production-range {
    grid-template-columns: 90px minmax(60px, 1fr) 42px;
  }

  .production-add-source {
    grid-template-columns: 1fr;
  }

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

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

  .fx-motion-grid,
  .evidence-summary,
  .evidence-review-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .production-model,
  .production-remove {
    transition: none;
  }
}
