.law-profile-original { display: none !important; }
.law-profile-groups { margin-bottom: 16px; }
.law-profile-section { margin: 0 0 8px; border: 1px solid var(--border); border-radius: 8px; }
.law-profile-section > summary { padding: 10px 12px; cursor: pointer; font-weight: 700; color: var(--navy); }
.law-profile-section > .fg, .law-profile-config-list { padding: 4px 12px 12px; }
.law-profile-field { min-width: 0; }
.law-profile-field > small { display: block; font-size: 11px; color: #526783; line-height: 1.5; }
.law-profile-field > .law-profile-over-limit { color: #915400; font-weight: 700; }
.law-profile-field > textarea, .law-profile-config-row textarea { width: 100%; font: inherit; resize: vertical; }
#law-profile-config .modal-body { font-family: inherit; font-size: 12px; line-height: 1.6; }
.law-profile-config-list { display: grid; gap: 10px; }
.law-profile-config-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto auto; gap: 8px; min-width: 0; border: 1px solid var(--border); border-radius: 7px; padding: 8px; align-items: end; }
.law-profile-config-row legend { padding: 0 4px; color: var(--navy); font-size: 11px; font-weight: 700; }
.law-profile-config-row .fl { min-width: 0; }
.law-profile-config-row .fl[hidden] { display: none; }
.law-profile-config-row input[type=checkbox] { width: auto; margin: 4px; }
.law-profile-config-row .fl:has(textarea) { grid-column: 1 / -1; }
@media (max-width: 680px) {
  .law-profile-config-row { grid-template-columns: 1fr 1fr; }
}
