/* 2026-05-08 | VA1: Project-wide skeleton / shimmer building blocks (overlays, lines, captions, disabled actions). */
/* Pair with a small surface-specific sheet only for host min-heights, z-index, or modal stacking (see PHF_PreferencesModal_Skeleton.css). */
/* 2026-05-12 | Monique | VB1: body.phf-mm-mail-save-skeleton-active — Mail Manager save skeleton + RadAjax spinner hide (see AREA REGISTRY mail-manager-add-mail-canvas-save). */

@keyframes phfSkeletonLoaderShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.phf-skeleton-host {
    position: relative;
}

.phf-skeleton-overlay {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    box-sizing: border-box;
    padding: var(--bigger-padding, 16px);
    border-radius: inherit;
    pointer-events: none;
    background-color: var(--input-bg, #ffffff);
}

/* 2026-10-08 | VC1: Dataset grid loading skeleton containment - any dataset-grid host using showSkeleton:true. */
.phf-skeleton-host.phf-table-grid:has(> .phf-skeleton-overlay.phf-dataset-grid-skel-overlay) {
    min-height: 320px;
}
.phf-skeleton-host.phf-table-grid > .phf-skeleton-overlay.phf-dataset-grid-skel-overlay {
    z-index: 1060;
    overflow: hidden;
}

.phf-skeleton-overlay-inner {
    max-width: 100%;
}

.phf-skeleton-caption {
    margin: var(--small-padding, 8px) 0 0 0;
    text-align: center;
    font-size: var(--small-font-size, 13px);
    color: var(--secondary-text-color, #666);
    font-family: var(--body-font, Arial, sans-serif);
}

.phf-skeleton-line {
    height: 40px;
    margin-bottom: 12px;
    border-radius: var(--input-border-radius, 8px);
    max-width: 100%;
    background: linear-gradient(
        90deg,
        var(--phf-skel-base, #e4e6eb) 0%,
        var(--phf-skel-base, #e4e6eb) 40%,
        var(--phf-skel-highlight, #f0f2f5) 50%,
        var(--phf-skel-base, #e4e6eb) 60%,
        var(--phf-skel-base, #e4e6eb) 100%
    );
    background-size: 200% 100%;
    animation: phfSkeletonLoaderShimmer 1.35s ease-in-out infinite;
}

.phf-skeleton-line--long {
    width: 100%;
}

.phf-skeleton-line--med {
    width: 88%;
}

.phf-skeleton-line--short {
    width: 62%;
}

.phf-skeleton-wait-panel {
    display: none;
    padding: var(--small-padding, 8px) var(--bigger-padding, 16px) var(--bigger-padding, 16px);
    text-align: left;
}

.phf-skeleton-host[aria-busy="true"] {
    cursor: wait;
}

a.phf-skeleton-action-disabled,
button.phf-skeleton-action-disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

/* 2026-05-12 | VA1: Suppress Telerik RadAjax loading panel + round spinners when a
   per-post skeleton overlay is active. Body class set/cleared by phfPostSeeMoreSkelBegin / Hide
   in PHF_Posts.js — works on every page without per-page RadAjax ClientEvents wiring. */
body.phf-post-skel-active .RadAjax_Default,
body.phf-post-skel-active .MyModalPanel,
body.phf-post-skel-active .raDiv {
    display: none !important;
}

/* 2026-07-29 | VC1: PostBlock Save — icon + saves-stats skeleton (suppress RadAjax round spinners). */
body.phf-newsfeed-save-skel-active .RadAjax_Default,
body.phf-newsfeed-save-skel-active .MyModalPanel,
body.phf-newsfeed-save-skel-active .raDiv {
    display: none !important;
}

/* 2026-08-14 | VC1: PostBlock reaction — Like icon + reactor-avatars skeleton (suppress RadAjax round spinners). */
body.phf-newsfeed-react-skel-active .RadAjax_Default,
body.phf-newsfeed-react-skel-active .MyModalPanel,
body.phf-newsfeed-react-skel-active .raDiv {
    display: none !important;
}

/* 2026-05-27 | VC1: Stats Views modals use RadAjaxPanel for shell — keep visible when profile/feed skeleton suppresses spinners. */
body.phf-post-skel-active #PostReactions.phf-lib-stats-views-open .RadAjax_Default,
body.phf-post-skel-active #PostReactionsReply.phf-lib-stats-views-open .RadAjax_Default,
body.phf-post-skel-active #PostReactionsDMChats.phf-lib-stats-views-open .RadAjax_Default,
body.phf-post-skel-active .blocker.current #PostReactions.modal.lib-stats-views-modal .RadAjax_Default,
body.phf-post-skel-active .blocker.current #PostReactionsReply.modal.lib-stats-views-modal .RadAjax_Default,
body.phf-post-skel-active .blocker.current #PostReactionsDMChats.modal.lib-stats-views-modal .RadAjax_Default,
body.phf-lib-stats-views-skel-active #PostReactions.phf-lib-stats-views-open .RadAjax_Default,
body.phf-lib-stats-views-skel-active #PostReactionsReply.phf-lib-stats-views-open .RadAjax_Default,
body.phf-lib-stats-views-skel-active #PostReactionsDMChats.phf-lib-stats-views-open .RadAjax_Default,
body.phf-lib-stats-views-skel-active .blocker.current #PostReactions.modal.lib-stats-views-modal .RadAjax_Default,
body.phf-lib-stats-views-skel-active .blocker.current #PostReactionsReply.modal.lib-stats-views-modal .RadAjax_Default,
body.phf-lib-stats-views-skel-active .blocker.current #PostReactionsDMChats.modal.lib-stats-views-modal .RadAjax_Default {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 2026-05-12 | Monique | VA1: Mail Manager add-mail save skeleton — suppress RadAjax default spinners (PHF_SystemAdmin_Mail_Manager.ascx PHF_MailManager_ToggleMailCanvasSaveSkeleton). */
body.phf-mm-mail-save-skeleton-active .RadAjax_Default,
body.phf-mm-mail-save-skeleton-active .MyModalPanel,
body.phf-mm-mail-save-skeleton-active .raDiv {
    display: none !important;
}

/* 2026-05-27 | Monique | VC1: Event Hosts modal — shimmer only while #phfEventHostModalSkel is active (no RadAjax round spinner). */
body.phf-event-host-modal-skel-active .RadAjax_Default,
body.phf-event-host-modal-skel-active .MyModalPanel,
body.phf-event-host-modal-skel-active .raDiv {
    display: none !important;
}

/* 2026-05-12 | Monique | VB1: Telerik RadAjax loading panel overlay while Mail save skeleton is active. */
body.phf-mm-mail-save-skeleton-active .RadAjaxLoadingPanel {
    display: none !important;
    visibility: hidden !important;
}

/* =============================================================================
   PHF SKELETON — AREA REGISTRY (add new rows when you add a new loading surface)
   -----------------------------------------------------------------------------
   | Region id (concept)          | Root class prefix           | Typical caller |
   |-----------------------------|------------------------------|-----------------|
   | newsfeed-post-block         | .phf-skel-area-postblock     | PHF_Posts.js — phfDashboardFeedAjaxSurfaceAppendOnePostBlock (Dashboard draft/schedule feed RadAjax overlay on #phfDashboardFeedAjaxSurface). |
   | comments-replies-thread     | .phf-skel-area-comments-thread | PHF_Posts.js — phfPostSeeMoreSkelAppendCommentsThreadInner (comments see more); replies use li.phf-post-replies-skel-li in #postReplies_{commentPostId}. |
   | (shared shimmer bar)        | .phf-skel-area-shim          | Children inside any region above; do not use alone as a “region”. |
   | dashboard-see-more-host     | .phf-dashboard-see-more-skel-* | PHF_PostEngine_Loader.ascx.cs (HFPhfSeeMoreSkel*) + PHF_Posts.js — overlay visibility / min-height on comment vs reply hosts + delete-post (#Post_Home_{id}). |
   | dashboard-see-more-delete   | .phf-dashboard-see-more-skel-single-row | PHF_Posts.js — rowCount 1 on delete comment/reply (one avatar row vs three for see-more). |
   | edit-inline-row             | .phf-edit-skel-inline-row     | PHF_PostEngine_Inline.js — edit comment/reply row skeleton (min-height:0 + overflow:hidden; no forced expansion). |
   | nf-comment-delete-host-div | .phf-skel-nf-comment-delete-host-div | PHF_PostEngine_Inline.js delete comment — shimmer on #Comment_Div_Col12; host overflow hidden + isolate so NF inner cannot paint over sibling comments (2026-05-14). |
   | nf-comment-delete-compact | .phf-skel-nf-comment-delete-compact | PHF_PostEngine_Inline.js delete comment fallback — li host; collapse non-overlay children (2026-05-14). |
   | dashboard-delete-post-host  | .phf-dashboard-see-more-skel-post-host | PHF_Posts.js — DeletePost skeleton on #Post_Home_{PostId} (.phf-skel-area-postblock). |
   | page-layout-save-preview    | #phfPageLayoutSkelHost + .phf-page-layout-skel-* | PHF_SystemAdmin_Page_Layout.ascx + PHF_PageLayout_Skeleton.css — mirror row/cards on Save/Preview async. |
   | site-settings-cards-save    | #siteSettingsCardsSkeletonHost + .phf-site-settings-skel-* | PHF_SystemAdmin__SiteDesign.ascx + PHF_SiteSettings_Skeleton.css — mirror breadcrumb/tabs/fonts-card rows on RadAjax save. |
   | mail-manager-add-mail-canvas-save | #phf-mm-canvas-card-skeleton-host + #phf-mm-mail-canvas-save-skeleton (.phf-mm-mail-canvas-save-composer*); #phf-mm-canvas-bottom-save-bar + #phf-mm-canvas-bottom-save-skeleton (.phf-mm-canvas-bottom-save-composer-shim); #phf-mm-canvas-editor-stack + #phf-mm-canvas-editor-skeleton | PHF_SystemAdmin_Mail_Manager.ascx — PHF_MailManager_ToggleMailCanvasSaveSkeleton; PHF_SystemAdmin_Mail_Manager.css (2026-05-20 Monique | VA1: restored save + editor skeletons). |
   | mail-manager-grids-radajax      | #pnlPhfMmGridsWrap + .phf-mm-grids-radajax-skel-overlay (.phf-skel-area-tablegrid) | PHF_SystemAdmin_Mail_Manager.ascx — phfMmMailManagerGridsAjaxSkelShow/Hide; HFPhfMmRadAjaxSkel; PHF_SkeletonLoader_RadAjax.js phfDirSkelBuildTableGrid (2026-05-20 Monique). |
   | system-admin-reviews-grids-radajax | #pnlPhfAdminReviewsGridsWrap + .phf-admin-reviews-radajax-skel-overlay (.phf-skel-area-tablegrid) | PHF_SystemAdmin_Reviews.ascx — phfAdminReviewsGridsAjaxSkelShow/Hide; HFPhfAdminReviewsRadAjaxSkel; PHF_SkeletonLoader_RadAjax.js phfDirSkelBuildTableGrid (2026-05-21 Monique). |
   | system-admin-plugins-grids-radajax | #phfAdminPluginsGridHost + .phf-admin-plugins-radajax-skel-overlay (.phf-skel-area-tablegrid) | PHF_SystemAdmin_Plugins.ascx — phfAdminPluginsGridAjaxSkelShow/Hide; HFPhfAdminPluginsRadAjaxSkel; PHF_SkeletonLoader_RadAjax.js phfDirSkelBuildTableGrid (2026-06-10 Monique). |
   | system-admin-recyclebin-grids-radajax | #phfAdminRecycleBinGridHost + .phf-admin-recyclebin-radajax-skel-overlay (.phf-skel-area-tablegrid) | PHF_SystemAdmin_RecycleBin.ascx — phfAdminRecycleBinGridAjaxSkelShow/Hide; HFPhfAdminRecycleBinRadAjaxSkel; PHF_SkeletonLoader_RadAjax.js phfDirSkelBuildTableGrid (2026-07-30 Monique). |
   | system-admin-recyclebin-view-iframe | #phfAdminRecycleBinViewModal .phf-rb-view-modal__skel-overlay | PHF_SystemAdmin_RecycleBin — iframe preview shimmer until load (2026-07-30 Monique). |
   | system-admin-postengine-grids-radajax | #phfPostEngineMgmtGridHost + .phf-postengine-mgmt-radajax-skel-overlay (.phf-skel-area-tablegrid) | PHF_SystemAdmin_PostEngine_Management.ascx — phfPostEngineMgmtGridAjaxSkelShow/Hide; HFPhfPostEngineMgmtRadAjaxSkel; PHF_SkeletonLoader_RadAjax.js phfDirSkelBuildTableGrid (2026-07-20 Monique). |
   | system-admin-postengine-form-load | #phfPostEngineFormLoadSkeleton + .phf-postengine-form-load-skel-* | PHF_SystemAdmin_PostEngine_Management.ascx — phfPostEngineShowFormLoadSkeleton/Hide; body.phf-sa-postengine-form-load-skeleton-active; PHF_SystemAdmin_PostEngine_Skeleton.css (2026-07-20 Monique). |
   | system-admin-permissions-grids-radajax | #phfPermissionsUsersGridHost + .phf-permissions-users-radajax-skel-overlay (.phf-skel-area-tablegrid) | PHF_SystemAdmin_Permissions.ascx — phfPermissionsUsersGridAjaxSkelShow/Hide; HFPhfPermissionsUsersRadAjaxSkel; PHF_SkeletonLoader_RadAjax.js phfDirSkelBuildTableGrid (2026-07-03 Monique). |
   | system-admin-analytics-builder-grids-radajax | #phfAbReportsTableCard / #phfAbCompaniesTableCard / #phfAbRequestsTableCard + .phf-ab-table-card-skel (.phf-skel-area-tablegrid) | PHF_SystemAdmin_Analytics_Builder — in-card table shimmer; command bar stays visible (2026-07-07 / 2026-07-22 Monique). |
   | system-admin-permissions-tier-radajax | .phf-permissions-form-radajax-skel-overlay (.phf-skel-area-perm-tier) | PHF_SystemAdmin_Permissions.ascx — phfPermissionsFormSkelShow/Hide; HFPhfPermissionsFormSkel; PHF_SkeletonLoader_RadAjax.js phfPermissionsSkelBuildTierEditor (2026-07-03 Monique). |
   | form-builder-canvas-save     | #phf-fb-canvas-card-skeleton-host (.phf-fb-canvas-section) + #phf-fb-canvas-card-save-skeleton.phf-fb-form-skel-overlay | PHF_FormBuilderCanvas.js — phfFbToggleCanvasSaveSkeleton; field-row mimic stubs (2026-05-18 Monique | VA1). |
   | form-builder-step-tab-switch | .phf-subs-steptab-skel-busy + .phf-subs-steptab-skel-overlay (.phf-skel-area-tablegrid for grid-first steps, .phf-skel-area-steptab-fields for field steps) | PHF_FormBuilderRuntimeSubsCard.js — phfSubsStepTabSkelShow / Hide on the shown .phf-subs-step-panel; hidden by phfSubsWizardRunStepPanelInits onDone + 600 ms safety unlock (all FormRender wizards; 2026-08-13 Monique). |
   | form-builder-subs-preview-iframe | .phf-fb-subs-preview-scroll--iframe + #phfFbSubsPreviewSkeletonOverlay.phf-fb-form-skel-overlay (full-bleed in scroll host) | PHF_FormBuilderCanvas.js — phfFbOpenSubmissionsPreviewModalRun until iframe load (PHF_FormBuilderCanvas.css). |
   | directory-tab-switch            | .phf-skel-area-cardgrid, .phf-skel-area-tablegrid, .phf-skel-area-listrows | PHF_SkeletonLoader_RadAjax.js — view-aware: cards/table/list per tab (People/Firms/Contacts). |
   | directory-people-grid-rows      | #phfDirectoryPeopleTableWrap + .phf-dir-people-grid-rows-skel-overlay (.phf-skel-area-tablegrid--rows-only) | PHF_SkeletonLoader_RadAjax.js — People GroupGridView search/sort/page; command bar + thead stay (2026-07-14 Monique). |
   | directory-firms-grid-rows       | #phfDirectoryFirmsTableWrap + .phf-dir-firms-grid-rows-skel-overlay | Firms FirmGridView rows-only (2026-07-14 Monique). |
   | directory-contacts-grid-rows    | #phfDirectoryContactsTableWrap + .phf-dir-contacts-grid-rows-skel-overlay | Contacts contactsGridView rows-only (2026-07-14 Monique). |
   | groups-tab-switch               | .phf-groups-skel-cardgrid, .phf-groups-tab-skel-busy; .phf-groups-infinite-skel-footer | PHF_GroupsListSkeleton_RadAjax.js + PHF_GroupsListSkeleton.css (_IncludePlugins/_Groups.ascx; HFPhfGroupsTabSkel). |
   | event-detail-tab-switch         | .phf-skel-area-postblock*, phfDirSkelBuildTableGrid (6/8 col) | PHF_SkeletonLoader_RadAjax.js — phfEvtTabSkelShow; event-detail-tab-skeleton.css — full-bleed .phf-evt-tab-skel-busy. |
   | event-detail-host-modal         | #phfEventHostLoadHost + .phf-event-host-modal-skel (.phf-skel-area-shim) | _EventsDetail.ascx — phfEventHostSkelShow/Hide; event-detail-skeleton.css; no RadAjax spinner (body.phf-event-host-modal-skel-active). |
   | event-detail-files-incard       | #phfEventFilesInCardSkel (.phf-skel-area-shim) | _EventsDetail.ascx — phfEventFilesInCardSkelShow/Hide; event-detail-files-tab.css layout. |
   | event-detail-view-review-modal  | #ViewReview-modal .phf-lib-review-view-modal-skel-overlay | _EventsDetail.ascx + PHF_Review_Skeleton.css; phf-skel-area-shim on line/avatar shims (event-detail-skeleton.css). |
   | firm-profile-tab-switch         | .phf-skel-area-postblock*, .phf-skel-area-tablegrid, .phf-skel-area-cardgrid | PHF_SkeletonLoader_RadAjax.js — phfFirmTabSkelShow; firm-profile-tab-skeleton.css — .phf-firm-tab-skel-busy (Directory Firm Profile). |
   | user-profile-tab-switch         | .phf-skel-area-tablegrid, .phf-user-skel-about-*, .phf-user-skel-chats-* | user-profile-tab-skeleton.js — phfUserTabSkelShow; user-profile-tab-skeleton.css — .phf-user-tab-skel-busy (_Directory_UserProfile.ascx; HFPhfUserTabSkel). |
   | user-profile-page-load          | .phf-user-profile-page-load-skel-* + .phf-skel-area-postblock* | PHF_UserProfile_PageLoad_Skeleton.js — html.phf-user-profile-page-load-skel-pending + body.phf-user-profile-page-load-skel-active; hide when ≥2 wired/visible/clickable NavMenuLInks + ProfileTimeLine/About + 650 ms min (2026-06-04 VB1; tab-switch skeleton separate). |
   | firm-profile-page-load          | .phf-firm-profile-page-load-skel-* + .phf-skel-area-postblock* | PHF_FirmProfile_PageLoad_Skeleton.js — body.phf-firm-profile-page-load-skel-active; PHF_FirmProfile_PageLoad_Skeleton.css (#phfFirmProfilePageLoadSkeleton; _Directory_FirmProfile.ascx; 2026-06-03 VB1). |
   | dashboard-page-load             | .phf-dashboard-page-load-skel-* + .phf-skel-area-postblock* | PHF_Dashboard_PageLoad_Skeleton.js — body.phf-dashboard-page-load-skel-active; PHF_Dashboard_PageLoad_Skeleton.css (#phfDashboardPageLoadSkeleton; _Dashboard.ascx; 2026-06-03 Monique). |
   | profile-chats-thread-first-open | .phf-skel-area-comments-thread* | PHF_SkeletonLoader_RadAjax.js — phfProfileChatsMsgSkelShowDm / ShowGroup (HFPhfProfileChatsMsgSkel); Chats_Profile.css — .phf-profile-chats-msg-skel-busy (User Profile Chats tab). |
   | profile-chats-contact-search    | .phf-profile-chats-contact-skel-overlay + .phf-profile-chats-contact-skel-busy | PHF_SkeletonLoader_RadAjax.js — phfProfileChatsContactSkelShowReplace / HideReplace (replace/search mode) vs phfProfileChatsContactSkelShow footer (append/scroll); Chats_Profile.css — .phf-profile-chats-contact-skel-busy min-height + overlay display on #chats-profile-contact-picker-scroll. |
   | review-reload-folder            | .phf-skel-area-tablegrid, .phf-skel-area-cardgrid, .phf-review-skel-tile-grid | PHF_Review_Skeleton.js — phfReviewReloadSkelShow/Hide (view-aware list/table vs tile grid; PHF_Review_Skeleton.css). |
   | reviews-firm-widget-card        | .phf-skel-area-reviews-firm*   | PHF_ReviewsPlugin_Skeleton.js — phfReviewWidgetSkelShow/Hide on #Widget_61 (Firm Profile add review + XHR refresh; PHF_ReviewsPlugin_Skeleton.css). |
   | reviews-user-widget-card        | .phf-skel-area-reviews-firm*   | PHF_UserReviewsPlugin_Skeleton.js — phfUserReviewWidgetSkelShow/Hide on #Widget_7 (User Profile add review + XHR refresh; PHF_UserReviewsPlugin_Skeleton.css). |
   | follow-firm-widget-card         | .phf-skel-area-follow-firm*    | PHF_FollowPlugin_Skeleton.js — phfFirmFollowWidgetSkel* on #Widget_6 / .phf-firm-follow-modern (unified _Follow.ascx). |
   | firm-profile-banner-follow      | .phf-skel-area-firm-banner-follow | PHF_FollowPlugin_Skeleton.js — phfFirmBannerFollowSkel* on .phf-event-detail__share-wrap (Firm Profile Follow/Unfollow XHR). |
   | follow-user-widget-card         | .phf-skel-area-follow-user*    | PHF_UserFollowPlugin_Skeleton.js — phfUserFollowWidgetSkelShow/Hide on #Widget_6 (PHF_UserFollowPlugin_Skeleton.css; PHF_Posts.js Follow/Unfollow). |
   | skill-user-widget-card          | .phf-skel-area-skill-user*     | PHF_UserSkillPlugin_Skeleton.js — phfUserSkillWidgetSkelShow/Hide on #Widget_8 (PHF_UserSkillPlugin_Skeleton.css; PHF_Preferences.js Manage Preferences save). |
   | contact-user-widget-card        | .phf-skel-area-contact-user*   | PHF_UserContactPlugin_Skeleton.js — phfUserContactWidgetSkelShow/Hide on #Widget_5 (PHF_UserContactPlugin_Skeleton.css; Edit Profile save). |
   | profile-banner-edit-save        | .phf-skel-area-profile-banner-edit-save__* | PHF_UserProfileHeaderInfo_Skeleton.js — phfUserProfileBannerSkelShow/Hide on #banner-page-name-wrapper (cover + avatar + name; Edit Profile Save click). |
   | profile-action-menu-item-follow   | .phf-skel-area-profile-action-menu-item-follow__* | PHF_ProfileActionMenuItems.js — phfProfileActionMenuItemFollowSkel* on [data-phf-profile-action-menu-item=follow] (PHF_ProfileActionMenuItems_Skeleton.css REGION). |
   | directory-action-menu-item-follow | .phf-skel-area-profile-action-menu-item-follow__* on [data-phf-action-menu-item=follow] | PHF_ProfileActionMenuItems.js + User_DirectoryActionMenuItem_FollowRefresh.ashx; PHF_ActionButtons.cs BuildDirectoryActionMenuItemFollowHtml. |
   | profile-action-menu-item-review (future) | (add with review item) | PHF_ProfileActionMenuItems.js + PHF_ProfileActionMenuItems_Skeleton.css REGION. |
   | stats-views-reaction-modals     | .phf-stats-views-modal-skel-*, .lib-stats-views-popup-body--skeleton | PHF_StatsViews_Skeleton.js + PHF_StatsViews_Skeleton.css — Post/Reply/DM list modals (PHF_StatsViews.ascx). |
   | profile-complete-profile-form   | .phf-skel-area-complete-profile* | PHF_UserProfile_CompleteProfile_Skeleton.js — #pnlProfileCompletionForm open/save overlay (User Profile Edit / ?mode=complete-profile). |
   | firm-profile-complete-company-form | .phf-skel-area-complete-profile* | PHF_FirmProfile_CompleteProfile_Skeleton.js — #pnlFirmProfileCompletionForm open/save overlay (Firm Profile Edit Company / ?mode=complete-company). |
   | system-admin-badges-inline-form   | .phf-skel-area-complete-profile* on #phfAdminBadgesInlineMount | PHF_SystemAdmin_Badges.js — phfAdminBadgesInlineFormSkelShow/Hide on breadcrumb Save/Cancel (2026-06-04 Monique). |
   | cover-image-pending                 | .phf-cover-pending (+ ::after shimmer); .phf-cover-bg[data-phf-cover-bg]; .phf-widget-cover-shell | PHF_CoverImageSkeleton.js — Events/Groups cards + App Code widget covers (PHF_CardTemplates + PHF_Widgets helpers); clear on img load/error or bg preload. |
   | myfav-widget-refresh                 | .phf-myfav-widget-skel-overlay + .phf-myfav-widget-skel__* | PHF_MyFavWidgetSkeleton.js — phfMyFavWidgetSkelShow/Hide over #phf-my-favourites-widget / -groups-widget / -combined-widget during heart-click fetch (Events/Groups favourite handlers). |
    | newsfeed-save-icon-stats             | .phf-newsfeed-save-skel-* on #Saved_Item_{id} + Total post saves / stats slot | PHF_Posts.js — phfNewsFeedSavedItemShowSkeletonNow (Save click; icon + saves stats only, not full Post_Home). |
    | newsfeed-react-icon-stats            | .phf-newsfeed-react-skel-* on #Emote_{id} / #ReplyEmote_{id} + .card_icon_small_post_reactions (inject host if missing; commit current-user li after ashx) | PHF_Reactions.js — phfReactionsReactSkelShow / phfReactionsReactSkelCommitCurrentUser. |
   -----------------------------------------------------------------------------
   Naming: new areas get .phf-skel-area-<region> and BEM __elements; register the row above.
   2026-08-14 | VC1: newsfeed-react-icon-stats row (PostBlock reaction — Like icon + reactor avatars only).
   2026-07-29 | VC1: newsfeed-save-icon-stats row (PostBlock Save — icon + saves stats only).
   2026-07-17 | Monique | VA1: cover-image-pending row (Events card cover shimmer until image ready).
   2026-07-17 | Monique | VA1: myfav-widget-refresh row (My Favourites widget shimmer on heart click).
   2026-05-29 | VB1: user-profile-tab-switch row (full-surface tab skeleton; Directory tablegrid parity).
   2026-05-16 | VB1: profile-chats-contact-search row (contact picker search area overlay).
   2026-05-12 | Monique | VA1: body.phf-mm-mail-save-skeleton-active — Mail Manager add-mail save (RadAjax spinner suppression).
   2026-05-12 | VA1: directory-tab-switch row (card-grid skeleton for Directory People/Firms/Contacts).
   2026-05-15 | VA1: groups-tab-switch row (_Groups.ascx card search / tab RadAjax skeleton).
   2026-05-14 | VB1: Registry + REGION headers for future callers.
   2026-05-14 | VB1: firm-profile-tab-switch registry row (_Directory_FirmProfile.ascx).
   2026-05-12 | VB1: site-settings-cards-save row (Monique).
   2026-05-11 | VB1: page-layout-save-preview row (Monique).
   2026-05-11 | VB1: form-builder-canvas-save row (Monique); 2026-05-11 Monique | VA1: host widened to full canvas column + field-card overlay mimic.
   2026-05-11 | Monique | VA1: form-builder-subs-preview-iframe row (Submissions preview modal).
   ============================================================================= */

/* ----- REGION: shared-shim (not a surface by itself; used inside regions below) ----- */
.phf-skel-area-shim {    display: block;
    box-sizing: border-box;
    border-radius: var(--input-border-radius, 8px);
    background: linear-gradient(
        90deg,
        var(--phf-skel-base, #e4e6eb) 0%,
        var(--phf-skel-base, #e4e6eb) 40%,
        var(--phf-skel-highlight, #f0f2f5) 50%,
        var(--phf-skel-base, #e4e6eb) 60%,
        var(--phf-skel-base, #e4e6eb) 100%
    );
    background-size: 200% 100%;
    animation: phfSkeletonLoaderShimmer 1.35s ease-in-out infinite;
}

/* ----- REGION: newsfeed-post-block (stack of post cards + comments strip per card) ----- */
.phf-skel-area-postblock {
    margin-bottom: var(--bigger-padding, 16px);
}

.phf-skel-area-postblock:last-child {
    margin-bottom: 0;
}

.phf-skel-area-postblock__card {
    background: var(--card-bg, #ffffff);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 14px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phf-skel-area-postblock__header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phf-skel-area-postblock__avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.phf-skel-area-postblock__headtext {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.phf-skel-area-postblock__line--name {
    height: 12px;
    width: 55%;
    border-radius: 6px;
}

.phf-skel-area-postblock__line--meta {
    height: 10px;
    width: 32%;
    border-radius: 6px;
}

.phf-skel-area-postblock__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phf-skel-area-postblock__line--long {
    height: 12px;
    width: 92%;
    border-radius: 6px;
}

.phf-skel-area-postblock__line--mid {
    height: 12px;
    width: 75%;
    border-radius: 6px;
}

.phf-skel-area-postblock__line--short {
    height: 12px;
    width: 48%;
    border-radius: 6px;
}

.phf-skel-area-postblock__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.phf-skel-area-postblock__pill {
    width: 70px;
    height: 28px;
    border-radius: 9999px;
}

.phf-skel-area-postblock__comments {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.phf-skel-area-postblock__comment-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.phf-skel-area-postblock__comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.phf-skel-area-postblock__comment-lines {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.phf-skel-area-postblock__comment-line--a {
    height: 10px;
    width: 78%;
    border-radius: 5px;
}

.phf-skel-area-postblock__comment-line--b {
    height: 10px;
    width: 52%;
    border-radius: 5px;
}

/* ----- REGION: comments-replies-thread (compact thread; see more comments / replies) ----- */
.phf-skel-area-comments-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.phf-skel-area-comments-thread__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.phf-skel-area-comments-thread__avatar {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.phf-skel-area-comments-thread__text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.phf-skel-area-comments-thread__line--a {
    height: 11px;
    width: 88%;
    border-radius: 5px;
}

.phf-skel-area-comments-thread__line--b {
    height: 11px;
    width: 64%;
    border-radius: 5px;
}

.phf-skel-area-comments-thread__line--c {
    height: 11px;
    width: 40%;
    border-radius: 5px;
}

.phf-skel-area-comments-thread--reply {
    gap: 8px;
}

.phf-skel-area-comments-thread--reply .phf-skel-area-comments-thread__avatar {
    width: 26px;
    height: 26px;
}

/* ----- REGION: dashboard-see-more-host (overlay visibility; Dashboard RadAjax see more only) ----- */
/* 2026-05-11 | VB1: Dashboard (and shared feed) — comment/reply “see more” RadAjax: host shows overlay while loading. */
.phf-dashboard-see-more-skel-active {
    min-height: 96px;
}

.phf-dashboard-see-more-skel-active .phf-skeleton-overlay.phf-dashboard-see-more-overlay {
    display: block;
}

/* Reply strip host is often shorter than comments table wrapper */
.phf-dashboard-see-more-skel-active.phf-dashboard-see-more-skel-reply-host {
    min-height: 72px;
}

/* 2026-05-27 | VC1: Show more / hide replies — li.rtreply placeholders in ul.phf-post-replies-thread (same list + .rtMid shell as live replies). */
ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* 2026-05-27 | VC1: Modal clone — skeleton list uses same horizontal inset as live replies. */
#Responsive_commentsNew #ResponsiveCommentReply .phf-comments-modal-clone ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy,
#Responsive_commentsNew #ResponsiveCommentReply .phf-comments-modal-clone ul.rtUL.rtLines.phf-post-replies-skel-ul-busy[id^="postReplies_"],
#Responsive_commentsNew .phf-comments-modal-clone ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy,
#Responsive_commentsNew .phf-comments-modal-clone ul.rtUL.rtLines.phf-post-replies-skel-ul-busy[id^="postReplies_"] {
    padding-left: var(--smaller-padding) !important;
    padding-right: var(--smaller-padding) !important;
    box-sizing: border-box !important;
}

ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li {
    list-style: none;
}

/* Match GetPostReply inline .rtMid (padding-top/bottom); padding-left 0 in modal (styles-popups / newsfeed). */
ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li > .rtreply.rtMid,
#Responsive_commentsNew #ResponsiveCommentReply .phf-comments-modal-clone ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li > .rtreply.rtMid,
#Responsive_commentsNew .phf-comments-modal-clone ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li > .rtreply.rtMid {
    padding-left: 0 !important;
    padding-top: 0;
    padding-bottom: 8px;
}

ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li .phf-post-replies-skel-avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
}

ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li .phf-post-replies-skel-lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li .phf-post-replies-skel-line--a {
    height: 11px;
    width: 88%;
    border-radius: 5px;
}

ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li .phf-post-replies-skel-line--b {
    height: 11px;
    width: 64%;
    border-radius: 5px;
}

ul.phf-post-replies-thread.phf-post-replies-skel-ul-busy > li.phf-post-replies-skel-li .phf-post-replies-skel-line--c {
    height: 11px;
    width: 40%;
    border-radius: 5px;
}

/* 2026-05-14 | VC1: Delete comment/reply — NewsFeed comment-inner card (same as add comment/reply submit); see-more keeps default 3 area-thread rows. */
/* 2026-05-14 | VB1: Min-height fits .phf-nf-feed-skel-comment-inner (PHF_NewsFeed_Skeleton.css). */
.phf-dashboard-see-more-skel-active.phf-dashboard-see-more-skel-single-row {
    min-height: 120px;
}

.phf-dashboard-see-more-skel-active.phf-dashboard-see-more-skel-single-row.phf-dashboard-see-more-skel-reply-host {
    min-height: 120px;
}

/* 2026-05-12 | VB1: Edit comment/reply — inline row skeleton keeps the row's natural height; no forced expansion. */
.phf-dashboard-see-more-skel-active.phf-edit-skel-inline-row {
    min-height: 0;
    overflow: hidden;
    margin-bottom: var(--small-padding, 10px);
}

/* 2026-05-14 | VC1: Delete comment — skeleton host on #Comment_Div_Col12 (same slot as inline edit); NF card shimmer fills host (PHF_NewsFeed_Skeleton.css). */
/* 2026-05-14 | VC1: overflow hidden + isolation — was overflow:visible so NF inner could paint past the div and cover sibling comments (same bleed as old reply host). */
.phf-dashboard-see-more-skel-active.phf-edit-skel-inline-row.phf-skel-nf-comment-delete-host-div {
    min-height: 120px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.phf-dashboard-see-more-skel-active.phf-edit-skel-inline-row.phf-skel-nf-comment-delete-host-div .phf-dashboard-see-more-overlay {
    overflow: hidden;
    z-index: 50;
}

/* 2026-05-14 | VC1: Delete comment — li.rtcomment wraps the whole reply subtree; collapse non-overlay children so only ~NF single-card shimmer height shows (avoids tall white block). */
.phf-dashboard-see-more-skel-active.phf-edit-skel-inline-row.phf-skel-nf-comment-delete-compact {
    min-height: 120px;
    overflow: hidden;
    margin-bottom: var(--small-padding, 10px);
    isolation: isolate;
}

.phf-dashboard-see-more-skel-active.phf-edit-skel-inline-row.phf-skel-nf-comment-delete-compact .phf-dashboard-see-more-overlay {
    z-index: 50;
    visibility: visible;
}

.phf-dashboard-see-more-skel-active.phf-edit-skel-inline-row.phf-skel-nf-comment-delete-compact > *:not(.phf-dashboard-see-more-overlay) {
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
}

/* 2026-05-11 | VB1: Delete post — full post-block shimmer inside #Post_Home_{id}; min-height fits phfDashboardFeedAjaxSurfaceAppendOnePostBlock. */
.phf-dashboard-see-more-skel-active.phf-dashboard-see-more-skel-post-host {
    min-height: 320px;
}

/* Optional: slight tuck when NF skeleton sits inside RadAjax overlay padding */
.phf-dashboard-see-more-overlay.phf-dashboard-see-more-overlay--nf-comment-reply .phf-skeleton-overlay-inner {
    padding-top: 4px;
}

.phf-dashboard-see-more-overlay.phf-dashboard-see-more-overlay--post-delete .phf-skeleton-overlay-inner {
    padding-top: 4px;
}

/* ==========================================================================
   REGION: directory-tab-switch — CARD GRID skeletons
   Matches actual People/Firms/Contacts card layouts from:
     PHF_Directory_People_BusinessCard.css
     PHF_Directory_Firms_BusinessCard.css
     PHF_Directory_Contacts_BusinessCard.css
   2026-05-12 | VA1: view-aware proportions; VC2: page-scoped rules moved here.
   ========================================================================== */

/* VC2: Collapse existing content while skeleton is active — prevents white block. */
.phf-dir-tab-skel-busy > *:not(.phf-skeleton-overlay) {
    flex: 0 0 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* VC2: Overlay becomes flow element (position:relative) so skeleton content
   drives host height; transparent background so cards sit on the page bg. */
.phf-dir-tab-skel-busy .phf-skeleton-overlay.phf-dir-tab-skel-overlay {
    display: block;
    position: relative;
    padding: 0;
    background-color: transparent;
}

/* 2026-07-14 | Monique | VC1: Card-list hosts — search stays; give skel area real height (avoid empty grey band). */
#CalendarSingle.phf-dir-tab-skel-busy,
#CalendarSingle_Firm.phf-dir-tab-skel-busy,
#Contacts_Single.phf-dir-tab-skel-busy {
    min-height: 420px;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

#CalendarSingle.phf-dir-tab-skel-busy .phf-skeleton-overlay.phf-dir-tab-skel-overlay,
#CalendarSingle_Firm.phf-dir-tab-skel-busy .phf-skeleton-overlay.phf-dir-tab-skel-overlay,
#Contacts_Single.phf-dir-tab-skel-busy .phf-skeleton-overlay.phf-dir-tab-skel-overlay {
    width: 100%;
    min-height: 400px;
    box-sizing: border-box;
    background-color: transparent;
}

#CalendarSingle.phf-dir-tab-skel-busy .phf-skel-area-cardgrid,
#CalendarSingle_Firm.phf-dir-tab-skel-busy .phf-skel-area-cardgrid,
#Contacts_Single.phf-dir-tab-skel-busy .phf-skel-area-cardgrid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ---------- grid container (col-xl-4 / col-lg-6 / col-md-6) ---------- */
/* 2026-05-21 | VB1: JS phfSkelCreateCardGrid sets data-phf-skel-cols + inline repeat(N) and builds N cards (one row). Fallback breakpoints below. */
.phf-skel-area-cardgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

/* Firm Profile Staff — 2-up (directory-cards.css); skeleton card count from JS. */
.ModPHFDirectoryFirmProfileC #SubProfileStaff.phf-firm-tab-skel-busy .phf-skel-area-cardgrid,
.ModPHFDirectoryFirmProfileC #SubProfileStaff .phf-dir-infinite-skel-footer__inner .phf-skel-area-cardgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
    .ModPHFDirectoryFirmProfileC #SubProfileStaff.phf-firm-tab-skel-busy .phf-skel-area-cardgrid,
    .ModPHFDirectoryFirmProfileC #SubProfileStaff .phf-dir-infinite-skel-footer__inner .phf-skel-area-cardgrid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1199px) {
    .phf-skel-area-cardgrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .phf-skel-area-cardgrid {
        grid-template-columns: 1fr;
    }
}

/* ---------- shared card shell ---------- */
.phf-skel-area-cardgrid__card {
    border-radius: var(--card-border-radius, 12px);
    border: var(--card-border-width, 0px) solid var(--bs-card-border-color, var(--border-color1, rgba(22, 8, 43, 0.1)));
    background: var(--CardBackgroundColor, #ffffff);
    box-shadow: var(--bs-card-box-shadow, 0 2px 8px rgba(0, 0, 0, 0.06));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* ---------- People card (phf-dir-people-card-v2) ---------- */

/* Banner — 88px (PHF_Directory_People_BusinessCard.css line 29) */
.phf-skel-area-cardgrid__banner {
    height: 88px;
    min-height: 88px;
    border-radius: 0;
}

/* Hero — avatar left-aligned, overlaps banner by -52px (CSS line 66 margin-top: -52px) */
.phf-skel-area-cardgrid__hero {
    position: relative;
    margin-top: -52px;
    padding: 0 var(--big-padding, 15px);
    display: flex;
    justify-content: flex-start;
}

/* Avatar — 104px circle (CSS line 75-76) */
.phf-skel-area-cardgrid__avatar {
    width: 104px;
    height: 104px;
    border-radius: 9999px;
    border: 4px solid var(--bs-paper-bg, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    margin-left: var(--big-padding, 15px);
}

/* Body — centered text lines */
.phf-skel-area-cardgrid__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px var(--big-padding, 15px) 0 var(--big-padding, 15px);
    width: 100%;
    box-sizing: border-box;
}

.phf-skel-area-cardgrid__body--left {
    align-items: flex-start;
}

/* Text lines — proportional to real font sizes */
.phf-skel-area-cardgrid__line--name {
    height: 16px;
    width: 55%;
    border-radius: 6px;
}

.phf-skel-area-cardgrid__line--role {
    height: 12px;
    width: 45%;
    border-radius: 5px;
}

/* 2026-06-02 | VB1: Contacts meta — single "JobTitle, Company" line (People roleline parity). */
.phf-skel-area-cardgrid__line--roleline {
    height: 12px;
    width: 70%;
    border-radius: 5px;
}

.phf-skel-area-cardgrid__line--loc {
    height: 11px;
    width: 35%;
    border-radius: 5px;
}

.phf-skel-area-cardgrid__stat {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    gap: 6px;
}

.phf-skel-area-cardgrid__stat-val {
    height: 14px;
    width: 32px;
    border-radius: 4px;
}

.phf-skel-area-cardgrid__stat-lbl {
    height: 9px;
    width: 48px;
    border-radius: 3px;
}

/* Skills / tags pills row */
.phf-skel-area-cardgrid__skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    width: 100%;
    padding: 10px var(--big-padding, 15px) 12px var(--big-padding, 15px);
    box-sizing: border-box;
}

.phf-skel-area-cardgrid__pill {
    width: 64px;
    height: 26px;
    border-radius: 9999px;
}

/* Footer — full-width button + dot menu; fixed padding below tags (live --bs-card-spacer-y). */
.phf-skel-area-cardgrid__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--bs-card-spacer-y, var(--spacing-cards)) var(--bs-card-spacer-x, var(--spacing-cards));
    margin-top: 0;
    border-top: 1px solid var(--border-color1, rgba(22, 8, 43, 0.1));
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.phf-skel-area-cardgrid__btn {
    flex: 1 1 auto;
    height: var(--btn-height, 44px);
    border-radius: var(--btn-border-radius, 8px);
}

.phf-skel-area-cardgrid__dot-menu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 9999px;
}

/* ---------- Firms card (phf-dir-firms-card-v2) ---------- */

/* Header row: 72px square logo + headlines (CSS line 50 width:72px) */
.phf-skel-area-cardgrid__hdr-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: var(--big-padding, 15px) var(--big-padding, 15px) 0 var(--big-padding, 15px);
    width: 100%;
    box-sizing: border-box;
}

.phf-skel-area-cardgrid__logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 14px;
    border: 1px solid var(--border-color1, rgba(22, 8, 43, 0.12));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.phf-skel-area-cardgrid__logo--round {
    border-radius: 9999px;
}

.phf-skel-area-cardgrid__headlines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0%;
    min-width: 0;
    padding-top: 2px;
}

/* Stats band — Firms / People gray strip (live: .phf-dir-firms-card-stats padding 10px 12px). */
.phf-skel-area-cardgrid__stats-band {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    min-height: 56px;
    box-sizing: border-box;
    border-radius: 8px;
    background-color: var(--input-bgcolor1, #f5f5f7);
    border: 1px solid var(--border-color1, rgba(22, 8, 43, 0.08));
    flex-shrink: 0;
}

.phf-skel-area-cardgrid__stats-band .phf-skel-area-cardgrid__stat {
    flex: 1 1 33.33%;
    padding: 6px 10px;
    gap: 6px;
}

/* 2026-05-20 | VB1: Rating row — section gap below stats/details; fixed row height (stars + link). */
.phf-skel-area-cardgrid__rating-wrap {
    width: 100%;
    margin: var(--phf-listing-card-section-gap-above, 12px) 0 0 0;
    padding: 0;
    min-height: calc(
        18px
        + 4px
        + (var(--card-meta-font-size, 0.8125rem) * 1.35)
    );
    box-sizing: border-box;
    flex-shrink: 0;
}

.phf-skel-area-cardgrid__stats-band .phf-skel-area-cardgrid__stat-divider {
    width: 1px;
    align-self: stretch;
    background-color: var(--border-color1, rgba(22, 8, 43, 0.18));
}

/* 2026-05-20 | VB1: Directory People / Firms / Contacts skeleton — listing-card spacing tokens (less cramped). */
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__hero,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__hero,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__hero {
    padding: 0 var(--bs-card-spacer-x, var(--spacing-cards));
    margin-top: -52px;
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__avatar,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__avatar {
    margin-left: 0;
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__body,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__body,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__body {
    align-items: flex-start;
    gap: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px var(--bs-card-spacer-x, var(--spacing-cards)) 0 var(--bs-card-spacer-x, var(--spacing-cards));
    box-sizing: border-box;
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__line--name,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__line--name,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__line--name {
    margin-bottom: var(--phf-listing-card-title-gap-below, 4px);
    flex-shrink: 0;
    min-height: calc(
        (var(--card-title-font-size, 1rem) * 1.4)
        + var(--phf-listing-card-title-gap-below, 4px)
    );
    box-sizing: border-box;
}

/* 2026-05-20 | VC1: People / Firms / Contacts meta — top-aligned. */
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__meta,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__meta,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--phf-listing-card-meta-inner-gap, 6px);
    width: 100%;
    margin: 0;
    min-height: calc(
        2 * (var(--card-meta-font-size, 0.8125rem) * 1.35)
        + var(--phf-listing-card-meta-inner-gap, 6px)
    );
    padding-bottom: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* 2026-06-02 | VB1: People / Firms / Contacts meta — live parity: natural height, 12px below meta (not on next section margin-top). */
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__meta,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__meta,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__meta {
    gap: 0;
    min-height: 0;
    padding-bottom: var(--phf-listing-card-section-gap-above, 12px);
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__meta + .phf-skel-area-cardgrid__stats-band,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__meta + .phf-skel-area-cardgrid__stats-band,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__meta + .phf-skel-area-cardgrid__contacts-details,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__meta + .phf-skel-area-cardgrid__stats-band--contacts-reviews {
    margin-top: 0;
    padding-top: 0;
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--role,
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--loc,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--loc,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--roleline {
    margin: 0;
    padding: 0;
}

/* 2026-06-02 | VB1: People meta — smaller-padding between role and location. */
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--role {
    padding-bottom: var(--smaller-padding);
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--loc {
    padding-bottom: 0;
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--loc {
    width: 40%;
}

.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--loc {
    width: 50%;
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__meta .phf-skel-area-cardgrid__line--roleline {
    width: 70%;
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__stats-band {
    width: 100%;
    margin: 0;
}

/* 2026-05-21 | VC1: People skills — 12px below stats (padding-top); no margin-top auto (live parity). */
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__body > .phf-skel-area-cardgrid__skills {
    justify-content: flex-start;
    align-content: flex-start;
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-top: var(--phf-listing-card-section-gap-above, 12px);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    gap: var(--phf-listing-card-meta-inner-gap, 6px) var(--smaller-padding, 10px);
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: calc(
        2 * (var(--PostHeading2-font-size, 13px) + 8px + 4px)
        + var(--smaller-padding, 8px)
    );
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: var(--bs-card-spacer-y, var(--spacing-cards)) var(--bs-card-spacer-x, var(--spacing-cards));
    border-top: var(--bs-border-width, 1px) solid var(--bs-border-color, var(--border-color1));
    box-sizing: border-box;
}

.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__footer {
    margin-top: 0;
    flex-shrink: 0;
    padding: var(--bs-card-spacer-y, var(--spacing-cards)) var(--bs-card-spacer-x, var(--spacing-cards));
    border-top: var(--bs-border-width, 1px) solid var(--bs-border-color, var(--border-color1));
    box-sizing: border-box;
}

/* 2026-06-02 | VB1: Contacts skeleton — pills under stats; footer absorbs row stretch (live card parity). */
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: var(--bs-card-spacer-y, var(--spacing-cards)) var(--bs-card-spacer-x, var(--spacing-cards));
    border-top: var(--bs-border-width, 1px) solid var(--bs-border-color, var(--border-color1));
    box-sizing: border-box;
}

.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__stats-band .phf-skel-area-cardgrid__stat {
    flex: 1 1 50%;
}

/* 2026-05-19 | VB1: Reviews column shimmer — slightly taller for stars + link row. */
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__stats-band .phf-skel-area-cardgrid__stat:last-child .phf-skel-area-cardgrid__stat-val,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__stats-band .phf-skel-area-cardgrid__stat:last-child .phf-skel-area-cardgrid__stat-val {
    height: 18px;
    width: 72%;
    max-width: 100px;
}

/* 2026-05-21 | VC1: Stats value→label — smaller-padding (live stat-value / label rhythm). */
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__stats-band .phf-skel-area-cardgrid__stat-val,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__stats-band .phf-skel-area-cardgrid__stat-val {
    margin-bottom: var(--smaller-padding);
}

/* Practice area pills section */
.phf-skel-area-cardgrid__practice {
    padding: 12px var(--big-padding, 15px) 0 var(--big-padding, 15px);
    width: 100%;
    box-sizing: border-box;
}

.phf-skel-area-cardgrid__practice-lbl {
    height: 9px;
    width: 90px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.phf-skel-area-cardgrid__practice .phf-skel-area-cardgrid__skills {
    padding: 0;
    justify-content: flex-start;
}

.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__hero .phf-skel-area-cardgrid__logo {
    margin-left: 0;
    width: 104px;
    height: 104px;
    min-width: 104px;
    border-radius: 14px;
    border: 4px solid var(--bs-paper-bg, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 2026-05-21 | VC1: Firms — no separate rating row (live: reviews in third stats column). */
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__rating-wrap {
    display: none;
}

.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__practice {
    width: 100%;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-top: var(--phf-listing-card-section-gap-above, 12px);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: calc(
        2 * (var(--PostHeading2-font-size, 13px) + 8px + 4px)
        + var(--smaller-padding, 8px)
    );
}

.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__practice .phf-skel-area-cardgrid__practice-lbl {
    display: none !important;
}

.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__practice .phf-skel-area-cardgrid__skills {
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    gap: var(--phf-listing-card-meta-inner-gap, 6px) var(--smaller-padding, 10px);
}


/* 2026-05-21 | VC1: Contacts — details natural height (parity with live card; rating margin is fixed section gap). */
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__contacts-details {
    display: flex;
    flex-direction: column;
    gap: var(--phf-listing-card-meta-inner-gap, 6px);
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 0;
    padding-bottom: 0;
    flex-shrink: 0;
    min-height: 0;
    box-sizing: border-box;
    border-radius: 0;
    background: none;
    background-color: transparent;
    border: none;
}

/* Contacts detail rows use global .phf-skel-area-cardgrid__detail-row spacing (smaller-padding; last-child 0). */

/* 2026-06-02 | VB1: Details→reviews stats band — 12px below details (live .phf-dir-contacts-card-details padding-bottom). */
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__contacts-details {
    padding-bottom: var(--phf-listing-card-section-gap-above, 12px);
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__contacts-details + .phf-skel-area-cardgrid__stats-band--contacts-reviews {
    margin-top: 0;
    padding-top: 0;
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__stats-band--contacts-reviews {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    flex-shrink: 0;
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__stats-band--contacts-reviews .phf-skel-area-cardgrid__stat--reviews-only {
    flex: 0 1 auto;
    align-items: flex-start;
    padding: 4px 0;
}

/* 2026-06-02 | VB1: Reviews column shimmer — stars + link row (People/Firms last stat column parity). */
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__stats-band--contacts-reviews .phf-skel-area-cardgrid__stat-val {
    height: 18px;
    width: 72%;
    max-width: 100px;
    margin-bottom: 4px;
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__stats-band--contacts-reviews .phf-skel-area-cardgrid__stat-lbl {
    width: 55%;
    height: 14px;
    margin: 0;
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__stats-band--contacts-reviews + .phf-skel-area-cardgrid__contacts-tags {
    margin-top: var(--phf-listing-card-section-gap-above, 12px);
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__contacts-tags {
    width: 100%;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: calc(
        2 * (var(--PostHeading2-font-size, 13px) + 8px + 4px)
        + var(--smaller-padding, 8px)
    );
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__contacts-tags .phf-skel-area-cardgrid__skills {
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    gap: var(--phf-listing-card-meta-inner-gap, 6px) var(--smaller-padding, 10px);
}

/* 2026-05-20 | VB1: Directory tab skeleton pills — explicit column gap so shimmers do not touch. */
.phf-skel-area-cardgrid__card--people .phf-skel-area-cardgrid__pill,
.phf-skel-area-cardgrid__card--firms .phf-skel-area-cardgrid__practice .phf-skel-area-cardgrid__pill,
.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__contacts-tags .phf-skel-area-cardgrid__pill {
    flex: 0 0 auto;
}

/* ---------- Contacts card detail rows (icon + text) ---------- */

.phf-skel-area-cardgrid__detail-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--phf-listing-card-meta-inner-gap, 6px);
    width: 100%;
    margin: 0;
    padding-bottom: var(--smaller-padding, 10px);
    box-sizing: border-box;
}

.phf-skel-area-cardgrid__detail-row:last-child {
    padding-bottom: 0 !important;
}

.phf-skel-area-cardgrid__card--contacts .phf-skel-area-cardgrid__detail-icon {
    width: var(--icon-small, 14px);
    height: var(--icon-small, 14px);
    min-width: var(--icon-small, 14px);
    min-height: var(--icon-small, 14px);
    border-radius: 8px;
    flex-shrink: 0;
}

.phf-skel-area-cardgrid__detail-lines {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/* ==========================================================================
   REGION: directory-tab-switch — TABLE / GRID skeleton
   Used by People GroupGridView, Firms FirmGridView, Contacts contactsGridView.
   2026-05-12 | VA1; VC1: increased row count + padding.
   ========================================================================== */
.phf-skel-area-tablegrid {
    width: 100%;
}

.phf-skel-area-tablegrid__table {
    width: 100%;
    border: 1px solid var(--border-color1, #e8e8e8);
    border-radius: var(--card-border-radius, 6px);
    overflow: hidden;
    background: var(--CardBackgroundColor, #ffffff);
}

.phf-skel-area-tablegrid__row {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color1, #e8e8e8);
}

.phf-skel-area-tablegrid__row:last-child {
    border-bottom: none;
}

.phf-skel-area-tablegrid__row--header {
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 16px;
}

.phf-skel-area-tablegrid__hcell {
    flex: 1 1 0%;
    height: 12px;
    border-radius: 4px;
}

.phf-skel-area-tablegrid__dcell {
    flex: 1 1 0%;
    height: 10px;
    border-radius: 4px;
}

/* 2026-07-14 | Monique | VA1: Rows-only table shimmer (Related-To / Directory People grid). */
.phf-skel-area-tablegrid__table--rows-only {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ==========================================================================
   REGION: directory-people-grid-rows — People GroupGridView in-table shimmer
   Host: #phfDirectoryPeopleTableWrap — command bar + real thead stay visible.
   2026-07-14 | Monique | VA1
   ========================================================================== */
#phfDirectoryPeopleTableWrap {
    position: relative;
}

/* 2026-07-14 | Monique | VC1: Busy wrap needs height — absolute overlay was clipped by .phf-profile-sp-files-card overflow:hidden when tbody empty. */
/* 2026-07-14 | Monique | VB1: Taller rows-only skel (~full page of results; no cramped scrollbar). */
#phfDirectoryPeopleTableWrap.phf-dir-people-grid-rows-skel-busy {
    min-height: 420px;
    overflow: hidden;
}

#phfDirectoryPeopleRoot:has(#phfDirectoryPeopleTableWrap.phf-dir-people-grid-rows-skel-busy) .phf-profile-sp-files-card {
    overflow: visible;
    min-height: 420px;
}

#phfDirectoryPeopleTableWrap.phf-dir-people-grid-rows-skel-busy tbody {
    visibility: hidden;
}

#phfDirectoryPeopleTableWrap .phf-skeleton-overlay.phf-dir-people-grid-rows-skel-overlay {
    display: block;
    position: absolute;
    top: var(--phf-dir-people-grid-rows-skel-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    box-sizing: border-box;
    padding: 0;
    background: var(--CardBackgroundColor, #ffffff);
    min-height: 380px;
}

#phfDirectoryPeopleTableWrap .phf-dir-people-grid-rows-skel-overlay .phf-skeleton-overlay-inner {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

#phfDirectoryPeopleTableWrap .phf-dir-people-grid-rows-skel-overlay .phf-skel-area-tablegrid__table--rows-only {
    min-height: 380px;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* 2026-07-14 | Monique | VB1: Status Log parity — keep pagination visible during rows-only skel (Showing 0–0 of 0). */
#phfDirectoryPeopleRoot:has(#phfDirectoryPeopleTableWrap.phf-dir-people-grid-rows-skel-busy) #phfDirectoryPeoplePager {
    display: flex !important;
    visibility: visible !important;
}

/* ==========================================================================
   REGION: directory-firms-grid-rows — Firms FirmGridView in-table shimmer
   Host: #phfDirectoryFirmsTableWrap — command bar + real thead stay visible.
   2026-07-14 | Monique | VA1
   ========================================================================== */
#phfDirectoryFirmsTableWrap {
    position: relative;
}

/* 2026-07-14 | Monique | VC1: Busy wrap needs height — absolute overlay was clipped when tbody empty. */
/* 2026-07-14 | Monique | VB1: Taller rows-only skel (~full page of results; no cramped scrollbar). */
#phfDirectoryFirmsTableWrap.phf-dir-firms-grid-rows-skel-busy {
    min-height: 420px;
    overflow: hidden;
}

#phfDirectoryFirmsRoot:has(#phfDirectoryFirmsTableWrap.phf-dir-firms-grid-rows-skel-busy) .phf-profile-sp-files-card {
    overflow: visible;
    min-height: 420px;
}

#phfDirectoryFirmsTableWrap.phf-dir-firms-grid-rows-skel-busy tbody {
    visibility: hidden;
}

#phfDirectoryFirmsTableWrap .phf-skeleton-overlay.phf-dir-firms-grid-rows-skel-overlay {
    display: block;
    position: absolute;
    top: var(--phf-dir-firms-grid-rows-skel-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    box-sizing: border-box;
    padding: 0;
    background: var(--CardBackgroundColor, #ffffff);
    min-height: 380px;
}

#phfDirectoryFirmsTableWrap .phf-dir-firms-grid-rows-skel-overlay .phf-skeleton-overlay-inner {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

#phfDirectoryFirmsTableWrap .phf-dir-firms-grid-rows-skel-overlay .phf-skel-area-tablegrid__table--rows-only {
    min-height: 380px;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* 2026-07-14 | Monique | VB1: Status Log parity — keep pagination visible during rows-only skel (Showing 0–0 of 0). */
#phfDirectoryFirmsRoot:has(#phfDirectoryFirmsTableWrap.phf-dir-firms-grid-rows-skel-busy) #phfDirectoryFirmsPager {
    display: flex !important;
    visibility: visible !important;
}

/* ==========================================================================
   REGION: directory-contacts-grid-rows — Contacts contactsGridView in-table shimmer
   Host: #phfDirectoryContactsTableWrap — command bar + real thead stay visible.
   2026-07-14 | Monique | VA1
   ========================================================================== */
#phfDirectoryContactsTableWrap {
    position: relative;
}

/* 2026-07-14 | Monique | VC1: Busy wrap needs height — absolute overlay was clipped when tbody empty. */
/* 2026-07-14 | Monique | VB1: Taller rows-only skel (~full page of results; no cramped scrollbar). */
#phfDirectoryContactsTableWrap.phf-dir-contacts-grid-rows-skel-busy {
    min-height: 420px;
    overflow: hidden;
}

#phfDirectoryContactsRoot:has(#phfDirectoryContactsTableWrap.phf-dir-contacts-grid-rows-skel-busy) .phf-profile-sp-files-card {
    overflow: visible;
    min-height: 420px;
}

#phfDirectoryContactsTableWrap.phf-dir-contacts-grid-rows-skel-busy tbody {
    visibility: hidden;
}

#phfDirectoryContactsTableWrap .phf-skeleton-overlay.phf-dir-contacts-grid-rows-skel-overlay {
    display: block;
    position: absolute;
    top: var(--phf-dir-contacts-grid-rows-skel-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    box-sizing: border-box;
    padding: 0;
    background: var(--CardBackgroundColor, #ffffff);
    min-height: 380px;
}

#phfDirectoryContactsTableWrap .phf-dir-contacts-grid-rows-skel-overlay .phf-skeleton-overlay-inner {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

#phfDirectoryContactsTableWrap .phf-dir-contacts-grid-rows-skel-overlay .phf-skel-area-tablegrid__table--rows-only {
    min-height: 380px;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* 2026-07-14 | Monique | VB1: Status Log parity — keep pagination visible during rows-only skel (Showing 0–0 of 0). */
#phfDirectoryContactsRoot:has(#phfDirectoryContactsTableWrap.phf-dir-contacts-grid-rows-skel-busy) #phfDirectoryContactsPager {
    display: flex !important;
    visibility: visible !important;
}

/* ==========================================================================
   REGION: system-admin-permissions-tier-radajax — Role tier editor skeleton
   Matches phf-tier-symbol-table (Page + View + Edit toggle columns) and
   phf-tier-editor-main-wrap / phf-tier-editor-sa-wrap section titles.
   2026-07-03 | Monique | VA1: Edit role, Add custom role, user override forms.
   ========================================================================== */
.phf-skel-area-perm-tier {
    width: 100%;
    box-sizing: border-box;
}

.phf-skel-area-perm-tier__field-block {
    max-width: 450px;
    margin-bottom: 1rem;
}

.phf-skel-area-perm-tier__label {
    display: block;
    width: 38%;
    max-width: 180px;
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.phf-skel-area-perm-tier__input {
    display: block;
    width: 100%;
    height: 38px;
    border-radius: var(--input-border-radius, 8px);
}

.phf-skel-area-perm-tier__section {
    margin-top: 0;
}

.phf-skel-area-perm-tier__section--sa {
    margin-top: 24px;
}

.phf-skel-area-perm-tier__title {
    display: block;
    width: 220px;
    max-width: 55%;
    height: 18px;
    margin: 0 0 8px 0;
    border-radius: 4px;
}

.phf-skel-area-perm-tier__section--sa .phf-skel-area-perm-tier__title {
    margin-top: var(--big-padding, 24px);
}

.phf-skel-area-perm-tier__subtitle {
    display: block;
    width: 92%;
    max-width: 640px;
    height: 12px;
    margin: 0 0 10px 0;
    border-radius: 4px;
}

.phf-skel-area-perm-tier__table {
    width: 100%;
    box-sizing: border-box;
}

.phf-skel-area-perm-tier__row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color1, #eee);
    box-sizing: border-box;
}

.phf-skel-area-perm-tier__row:last-child {
    border-bottom: none;
}

.phf-skel-area-perm-tier__row--head {
    padding: 10px 8px;
}

.phf-skel-area-perm-tier__cell {
    box-sizing: border-box;
}

.phf-skel-area-perm-tier__cell--page {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 12px;
}

.phf-skel-area-perm-tier__cell--sym {
    flex: 0 0 70px;
    width: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phf-skel-area-perm-tier__hcell {
    display: block;
    height: 12px;
    border-radius: 4px;
}

.phf-skel-area-perm-tier__cell--page .phf-skel-area-perm-tier__hcell {
    width: 48px;
}

.phf-skel-area-perm-tier__hcell--sym {
    width: 36px;
    margin-left: auto;
    margin-right: auto;
}

.phf-skel-area-perm-tier__page-line {
    display: block;
    width: 72%;
    max-width: 420px;
    height: 12px;
    border-radius: 4px;
}

.phf-skel-area-perm-tier__toggle {
    display: block;
    width: 38px;
    height: 22px;
    border-radius: 999px;
}


/* ==========================================================================
   REGION: directory-tab-switch — FIRMS LIST skeleton
   Matches .firm-card-list (directory-cards.css).
   Logo 142px, body with name/address/rating/two-col contacts, right badges.
   2026-05-12 | VA1; VC1: proportional to real list rows.
   ========================================================================== */
.phf-skel-area-listrows {
    display: flex;
    flex-direction: column;
    gap: var(--bigger-padding, 16px);
    width: 100%;
}

.phf-skel-area-listrows__row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: var(--big-padding, 15px);
    border: 1px solid var(--bs-card-border-color, var(--border-color1, rgba(22, 8, 43, 0.1)));
    border-radius: var(--card-border-radius, 12px);
    background: var(--CardBackgroundColor, #ffffff);
    box-shadow: var(--bs-card-box-shadow, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.phf-skel-area-listrows__logo {
    width: 142px;
    height: 142px;
    min-width: 142px;
    border-radius: 14px;
    border: 4px solid var(--bs-paper-bg, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.phf-skel-area-listrows__main {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: var(--big-padding, 15px);
    padding-top: 4px;
}

.phf-skel-area-listrows__line--name {
    height: 16px;
    width: 40%;
    border-radius: 6px;
}

.phf-skel-area-listrows__line--detail {
    height: 11px;
    width: 55%;
    border-radius: 5px;
}

.phf-skel-area-listrows__line--short {
    width: 25%;
}

.phf-skel-area-listrows__two-col {
    display: flex;
    flex-direction: row;
    gap: var(--big-padding, 15px);
    margin-top: 4px;
}

.phf-skel-area-listrows__two-col .phf-skel-area-listrows__line--detail {
    width: 120px;
}

.phf-skel-area-listrows__right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-left: var(--big-padding, 15px);
}

.phf-skel-area-listrows__badge {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .phf-skel-area-listrows__row {
        flex-direction: column;
    }

    .phf-skel-area-listrows__logo {
        width: 96px;
        height: 96px;
        min-width: 96px;
    }

    .phf-skel-area-listrows__main {
        padding-left: 0;
        padding-top: var(--small-padding, 10px);
    }

    .phf-skel-area-listrows__two-col {
        flex-direction: column;
    }

    .phf-skel-area-listrows__right {
        padding-left: 0;
        flex-direction: row;
        margin-top: var(--small-padding, 10px);
    }
}

/* ----- REGION: profile-complete-profile-form (User Profile completion / inline Edit) ----- */
/* 2026-05-27 | VA1: PHF_UserProfile_CompleteProfile_Skeleton.js — mimic cover + avatar + field rows. */

.phf-skel-area-complete-profile {
    padding: var(--bigger-padding, 24px);
    box-sizing: border-box;
}

.phf-skel-area-complete-profile__hero-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--normal-padding, 16px);
    margin-bottom: var(--bigger-padding, 24px);
}

.phf-skel-area-complete-profile__cover {
    flex: 1 1 100%;
    min-height: 140px;
    border-radius: var(--card-border-radius, 8px);
}

.phf-skel-area-complete-profile__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
}

.phf-skel-area-complete-profile__field-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--small-padding, 10px);
    margin-bottom: var(--normal-padding, 16px);
}

.phf-skel-area-complete-profile__label {
    width: 28%;
    min-width: 80px;
    height: 14px;
    border-radius: 4px;
}

.phf-skel-area-complete-profile__input {
    flex: 1 1 60%;
    min-width: 120px;
    height: 38px;
    border-radius: var(--input-border-radius, 6px);
}

/* ----- REGION: cover-image-pending (per-cover shimmer until <img> load/error) ----- */
/* 2026-07-17 | Monique | VA1: Nice shimmer on card/widget covers while the real image catches up after list skeleton. */
.phf-cover-pending {
    position: relative;
    overflow: hidden;
    background-color: var(--phf-skel-base, #e4e6eb);
}

.phf-cover-pending > img {
    opacity: 0;
    transition: opacity 0.28s ease;
}

.phf-cover-pending::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--phf-skel-base, #e4e6eb) 0%,
        var(--phf-skel-base, #e4e6eb) 35%,
        var(--phf-skel-highlight, #f0f2f5) 50%,
        var(--phf-skel-base, #e4e6eb) 65%,
        var(--phf-skel-base, #e4e6eb) 100%
    );
    background-size: 200% 100%;
    animation: phfSkeletonLoaderShimmer 1.35s ease-in-out infinite;
}

.phf-cover-pending.phf-cover-ready > img {
    opacity: 1;
}

.phf-cover-pending.phf-cover-ready::after {
    opacity: 0;
    animation: none;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

/* 2026-07-17 | Monique | VA1: After fade, drop the ::after layer so it cannot intercept hits. */
.phf-cover-pending.phf-cover-ready.phf-cover-done::after {
    display: none;
}

/* 2026-07-17 | Monique | VA1: App Code Widgets — thumb shell + background-image covers. */
.phf-widget-cover-shell {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.phf-widget-cover-shell > img.phf-widget-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phf-cover-pending.phf-cover-bg.phf-cover-ready {
    background-color: transparent;
}

/* ----- REGION: myfav-widget-refresh (overlay while heart save + widget HTML re-render) ----- */
/* 2026-07-17 | Monique | VA1: Shimmer over the My Favourites widget during a favourite fetch (PHF_MyFavWidgetSkeleton.js). */
/* 2026-07-17 | Monique | VA1: Match Groups card skeleton style with banner + body structure. */
.phf-skeleton-overlay.phf-myfav-widget-skel-overlay {
    display: block;
}

.phf-myfav-widget-skel__inner {
    width: 100%;
    box-sizing: border-box;
}

.phf-myfav-widget-skel__header {
    height: 24px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.phf-myfav-widget-skel__row {
    display: flex;
    gap: 12px;
}

.phf-myfav-widget-skel__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.phf-myfav-widget-skel__banner {
    height: 100px;
    min-height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center top;
}

.phf-myfav-widget-skel__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 4px;
}

.phf-myfav-widget-skel__line {
    height: 16px;
    border-radius: 4px;
}

.phf-myfav-widget-skel__line--title {
    width: 80%;
}

.phf-myfav-widget-skel__line--meta {
    width: 60%;
}

/* ----- REGION: newsfeed-save-icon-stats (PostBlock Save click — icon + Total post saves only) ----- */
/* 2026-07-29 | VC1: Feedback #9 — shimmer on #Saved_Item_ + saves chip; hide real glyph while busy so it does not show through. */
.phf-newsfeed-save-skel-busy {
    position: relative !important;
    display: inline-block;
    min-width: 1.25em;
    min-height: 1.25em;
    vertical-align: middle;
}

a.Bookmark.SavePost.phf-newsfeed-save-skel-busy {
    display: inline-block !important;
}

i.phf-newsfeed-save-skel-icon-hidden {
    visibility: hidden !important;
}

.phf-newsfeed-save-skel-overlay {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    box-sizing: border-box;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.phf-newsfeed-save-skel__shim--icon {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 1.15em;
    min-height: 1.15em;
    border-radius: 3px;
}

.phf-newsfeed-save-skel__shim--stats {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 3.25rem;
    min-height: 1.25rem;
    border-radius: 4px;
}

.phf-newsfeed-save-skel-stats-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 1.5rem;
    flex: 0 0 auto;
    margin-left: 4px;
}

[data-tooltip="Total post saves"].phf-newsfeed-save-skel-busy {
    display: inline-flex;
    min-width: 3.25rem;
    min-height: 1.25rem;
}

/* ----- REGION: newsfeed-react-icon-stats (PostBlock reaction save — Like icon + reactor avatars only) ----- */
/* 2026-08-14 | VC1: Same pattern as Save — not full Post_Home. */
.phf-newsfeed-react-skel-busy {
    position: relative !important;
}

.like-btn-emo.phf-newsfeed-react-skel-icon-hidden,
.like-btn-emo.phf-newsfeed-react-skel-icon-hidden i {
    visibility: hidden !important;
}

.phf-newsfeed-react-skel-overlay {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    box-sizing: border-box;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.phf-newsfeed-react-skel__shim--icon {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 1.15em;
    min-height: 1.15em;
    border-radius: 3px;
}

/* Match ListCardGroupAvatar .avatar_card / img.rounded-circle (50px). */
.phf-newsfeed-react-skel__shim--avatar {
    display: block;
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar_card.phf-newsfeed-react-skel-busy {
    position: relative !important;
}

.avatar_card.phf-newsfeed-react-skel-busy .phf-newsfeed-react-skel-overlay {
    border-radius: 50%;
    overflow: hidden;
}

.card_icon_small_post_reactions.phf-newsfeed-react-skel-busy img,
.card_icon_small_post_reactions.phf-newsfeed-react-skel-busy .avatar-initial {
    visibility: hidden !important;
}

.phf-newsfeed-react-skel-stats-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 4px;
}

.phf-newsfeed-react-skel-stats-slot .phf-newsfeed-react-skel__shim--avatar {
    margin-inline-start: -0.8rem;
}

.phf-newsfeed-react-skel-stats-slot .phf-newsfeed-react-skel__shim--avatar:first-child {
    margin-inline-start: 0;
}

.card_icon_small_post_reactions.phf-newsfeed-react-skel-busy {
    display: inline-flex;
    vertical-align: middle;
}

/* 2026-08-14 | VC1: First reaction — gold ListCardGroupAvatar host is missing until EmoteStats has rows; inject + 50px placeholder disc. */
.avatar_card.phf-newsfeed-react-skel-placeholder {
    position: relative !important;
    display: inline-block;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    list-style: none;
}

.phf-post-engage-avatars[data-phf-react-skel-injected="1"],
.posts-stats-views[data-phf-react-skel-injected="1"] {
    display: block !important;
    visibility: visible !important;
}

.phf-post-engage-avatars[data-phf-react-skel-injected="1"] .like-stat,
.posts-stats-views[data-phf-react-skel-injected="1"] .like-stat {
    display: block !important;
    width: 100%;
}

.phf-newsfeed-react-skel-overlay--avatar {
    border-radius: 50%;
    overflow: hidden;
}

/* ==========================================================================
   REGION: form-builder-step-tab-switch — wizard tab (step) switch shimmer
   Host: the .phf-subs-step-panel being shown; overlay covers the step content
   only, so the tab strip stays visible and clickable.
   Caller: PHF_FormBuilderRuntimeSubsCard.js — phfSubsStepTabSkelShow / Hide
   (all FormRender wizards: Events, Groups, Companies, Users).
   2026-08-13 | Monique | VA1
   ========================================================================== */

.phf-subs-steptab-skel-busy {
    min-height: 320px;
}

.phf-subs-steptab-skel-busy .phf-skeleton-overlay.phf-subs-steptab-skel-overlay {
    display: block;
    padding: 0;
    background-color: var(--CardBackgroundColor, #ffffff);
}

/* Mimics the Related To command bar (Add button + search) above the grid. */
.phf-skel-area-steptab-cmdbar {
    height: 34px;
    width: 220px;
    margin-bottom: 14px;
}

.phf-skel-area-steptab-fields__pair {
    display: flex;
    gap: 16px;
}

.phf-skel-area-steptab-fields__pair > .phf-skeleton-line {
    flex: 1 1 0%;
    width: auto;
}
