.edit-page { max-width: 56rem; }
textarea { width: 100%; resize: vertical; min-height: 5rem; box-sizing: border-box; font: inherit; color: inherit; background: #122321; border: 1px solid #718c7d; border-radius: .35rem; padding: .75rem; }
select, textarea, input { max-width: 100%; }
.portrayal-draft { min-width: 0; }
.portrayal-draft legend { font-size: 1.25rem; font-weight: 700; }
.detail-text[readonly] { color: #b2c4ba; border-style: dashed; }
.download-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.download-actions form { margin: 0; }
.edit-groups { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.edit-group > summary { color: #dfc88f; font-size: 1.1rem; padding: .3rem 0; }
.edit-group { scroll-margin-top: 1rem; }
.edit-group .portrayal-draft { margin: 1.5rem 0; border: 1px solid #466354; padding: 1rem; }
.portrayal-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.portrayal-comparison h3 { font-size: .95rem; color: #dfc88f; }
.portrayal-comparison p { white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-candidate { border-left: 2px solid #d5ba79; padding-left: 1rem; }
.preview-candidate[hidden] { display: none; }
.field-error, .edit-errors { color: #f4b9a6; font-size: .9rem; }
.field-error:empty { display: none; }
[aria-invalid=true] { border-color: #f4b9a6; }
.edit-actions { position: sticky; bottom: 0; background: #122321; padding: 1rem; border-top: 1px solid #466354; z-index: 1; }
@media (max-width: 650px) { .portrayal-comparison { grid-template-columns: 1fr; } .preview-candidate { border-left: 0; border-top: 2px solid #d5ba79; padding: .5rem 0; } }
