#models-panel { min-width: 0; overflow: hidden; }
#models-panel fieldset { min-width: 0; padding: 0; border: 0; }
#models-panel details { padding: 16px 0; border-top: 1px solid #e3e8f0; }
#models-panel summary { cursor: pointer; font-weight: 650; margin-bottom: 14px; }
#models-panel .settings-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
#models-panel .settings-grid label { min-width: 0; }
#models-panel input, #models-panel select, #models-panel textarea { min-width: 0; max-width: 100%; }
#models-panel .model-toggle { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
#models-panel input[type="checkbox"] { display: inline-block; width: auto; margin: 0; }
#models-panel textarea { width: 100%; font: inherit; resize: vertical; }
#models-panel .table-scroll { width: 100%; overflow-x: auto; }
#models-panel table { min-width: 1200px; }
#models-panel table input, #models-panel table select { width: 100%; }
#models-panel .model-group { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(160px, 2fr) auto; margin: 12px 0; }
#models-panel .model-group input { width: 100%; }
#model-bulk-preview { white-space: pre-wrap; max-height: 14rem; overflow: auto; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  #models-panel .model-group { grid-template-columns: 1fr; }
}
