.homepro-profile-wrap .homepro-owner-categories { border: 1px solid #dce3eb; border-radius: 10px; padding: 18px; margin: 0 0 24px; min-width: 0; }
.homepro-profile-wrap .homepro-owner-categories legend { font-size: 17px; font-weight: 600; padding: 0 5px; }
.homepro-profile-wrap .homepro-owner-categories p { font-size: 14px; margin: 0 0 12px; }
.homepro-profile-wrap .homepro-setup-form { padding-top: 16px; }
.homepro-profile-wrap .homepro-setup-form fieldset { border: 0; margin: 20px 0; padding: 0; min-width: 0; }
.homepro-profile-wrap .homepro-setup-form legend { font-weight: 600; margin-bottom: 10px; }
.homepro-profile-wrap .homepro-setup-form [hidden] { display: none; }
.homepro-profile-wrap .homepro-setup-form input:not([type=checkbox]):not([type=hidden]),
.homepro-profile-wrap .homepro-setup-form select { display: block; box-sizing: border-box; width: 100%; padding: 10px; margin-top: 6px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; background: #fff; color: #0f172a; }
.homepro-profile-wrap .homepro-caption-gallery > p { margin-top: 0; font-size: 14px; }
.homepro-profile-wrap .homepro-gallery-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.homepro-profile-wrap .homepro-gallery-item { display: grid; gap: 12px; padding: 14px; border: 1px solid #dce3eb; border-radius: 8px; background: #fafbfc; min-width: 0; }
.homepro-profile-wrap .homepro-gallery-item > img { width: 100%; height: 160px; object-fit: contain; background: #eef1f5; border-radius: 4px; }
.homepro-profile-wrap .homepro-gallery-item label { display: block; font-size: 14px; font-weight: 600; }
.homepro-profile-wrap .homepro-gallery-item textarea { display: block; box-sizing: border-box; width: 100%; min-height: 82px; resize: vertical; padding: 8px; margin-top: 6px; font: inherit; font-weight: 400; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #0f172a; }
.homepro-profile-wrap .homepro-gallery-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.homepro-profile-wrap .homepro-gallery-actions button,
.homepro-profile-wrap .homepro-gallery-add { padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; border: 1px solid #cbd5e1; border-radius: 5px; background: white; color: #243b53; }
.homepro-profile-wrap .homepro-gallery-actions button:disabled,
.homepro-profile-wrap .homepro-gallery-add:disabled { opacity: .45; cursor: default; }
.homepro-profile-wrap .homepro-gallery-actions button:focus-visible,
.homepro-profile-wrap .homepro-gallery-add:focus-visible { outline: 2px solid #4a6cf7; outline-offset: 3px; }
.homepro-profile-wrap .homepro-gallery-count { margin: 12px 0 0; color: #475569; }
.homepro-gallery-picker .media-sidebar { display: none; }
.homepro-gallery-picker .acf-expand-details { display: none; }
.homepro-gallery-picker .homepro-upload-error { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 10; padding: 12px; border-left: 4px solid #b91c1c; background: #fff1f2; color: #881337; max-height: 120px; overflow: auto; }
.homepro-gallery-picker .attachments-browser .attachments,
.homepro-gallery-picker .attachments-browser .media-toolbar,
.homepro-gallery-picker .attachments-browser .uploader-inline { right: 0; }
@media (max-width: 640px) {
    .homepro-profile-wrap .homepro-gallery-items { grid-template-columns: minmax(0,1fr); }
    .homepro-profile-wrap .homepro-owner-categories { padding: 12px; }
}
