/* Trainee editor v2: dedicated photo header, balanced fields, fixed footer */
#housingManagementRoot .editor-dialog:has(.cm-photo-editor){max-width:850px;width:min(850px,100%);padding:0;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;max-height:min(92vh,950px)}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-head{padding:22px 28px 16px;margin:0;border-bottom:1px solid #e8edf5;flex:none}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-head h2{font-size:21px;letter-spacing:-.35px}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-form{padding:22px 28px 0;overflow-y:auto;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px;align-items:start}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-editor{grid-column:1/-1;display:flex;align-items:center;gap:20px;margin:0 0 4px;padding:18px 20px;background:#f5f8fd;border:1px solid #dde7f3;border-radius:16px}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-preview{width:110px;height:110px;border-radius:14px;background:#e1eaf5;flex-shrink:0;overflow:hidden}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-preview img{width:100%;height:100%;object-fit:cover}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-editor>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-editor strong{font-size:15px;color:#1c3553}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-upload input{max-width:min(100%,280px);font-size:13px}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-remove{display:flex;align-items:center;gap:7px;font-size:13px}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-remove input{width:17px;height:17px;margin:0;accent-color:#d04545}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-editor small{font-size:12px;line-height:1.45}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-buttons{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:10px;position:sticky;bottom:0;background:#fff;padding:18px 0 20px;margin-top:7px;border-top:1px solid #e8edf5;z-index:1}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-buttons .cm-delete-trainee{margin-right:auto;background:#fff;color:#bc303c;border:1px solid #f0c4c8;font-weight:700}
#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-buttons .cm-delete-trainee:hover{background:#fff1f2}
@media(max-width:620px){#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-head{padding:18px 17px 14px}#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-form{padding:16px 17px 0;grid-template-columns:1fr;gap:14px}#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-editor{gap:13px;padding:13px}#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .cm-photo-preview{width:78px;height:78px}#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-buttons{flex-wrap:wrap;padding-bottom:16px}#housingManagementRoot .editor-dialog:has(.cm-photo-editor) .editor-buttons .cm-delete-trainee{width:100%;margin-right:0;order:2}}
