.legal-entities-page { max-width: 900px; margin: 38px auto; }
.legal-entities-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; }
.legal-entities-heading h1 { margin: 4px 0; }
.legal-entities-heading p { margin-bottom: 0; color: var(--muted); }
.legal-new-panel, .legal-edit-panel { margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #f7f4ec; }
.legal-new-panel h2 { margin-top: 0; }
.legal-entity-form { display: grid; grid-template-columns: minmax(180px, .55fr) 1fr auto; gap: 12px; align-items: end; }
.legal-entities-list { display: grid; gap: 12px; }
.legal-entity-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.legal-entity-card h2 { margin: 3px 0 14px; font-size: 18px; }
.legal-entity-card small { color: var(--muted); }
.legal-entity-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.legal-entity-actions form { margin: 0; }
.legal-edit-panel { margin: 16px 0 0; }
@media (max-width: 650px) { .legal-entities-heading { align-items: stretch; flex-direction: column; } .legal-entity-form { grid-template-columns: 1fr; } }
