/* Scoped to enhanced entity forms. Hidden panels and native validation stay native. */
.entity-form { min-width: 0; }
.entity-intro { padding: 14px 18px; margin: 0 0 16px; border-inline-start: 3px solid #315bd6; background: #f0f5fc; color: #385477; font-size: 13px; line-height: 1.95; border-radius: 8px; }
#modal .entity-form .form-grid[data-entity-partitioned] { display: block; }
.entity-section { min-width: 0; margin: 16px 0; padding: 20px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; scroll-margin-block: 16px; }
.entity-section-title { margin: 0 0 8px; color: #294468; font-size: 15px; line-height: 1.9; }
.entity-section-hint { margin: 0 0 18px; color: #5b6d83; font-size: 12px; line-height: 1.9; }
.entity-section-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.entity-section-fields > * { min-width: 0; }
.entity-section-fields > .wide { grid-column: 1 / -1; }
.entity-form :is(input, select, textarea) { box-sizing: border-box; }
.entity-jumps { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; margin: 12px 0; border-block: 1px solid #dce5ef; }
.entity-jumps button { font: inherit; font-size: 12px; line-height: 1.8; text-align: start; min-height: 44px; padding: 8px 12px; border: 1px solid #cedbed; border-radius: 8px; color: #294b7c; background: #f4f7fd; cursor: pointer; }
.entity-jumps button:hover { background: #e8effd; }
.entity-form :is(.entity-section-title,.entity-jumps button):focus-visible { outline: 2px solid #315bd6; outline-offset: 3px; }
@media (max-width: 650px) {
  .entity-intro { padding: 12px; font-size: 12px; }
  .entity-section { padding: 14px 12px; margin: 14px 0; }
  .entity-section-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .entity-section-fields > * { max-width: 100%; }
}
