/* ==============================================
   SHARED CSS PATTERNS
   Consolidated duplicated rule blocks using :is().
   These properties were removed from individual
   component/page CSS files and centralized here.
   ============================================== */

/* stack-md: 70 selectors (part 1) */
:is(#exercise-history-modal .exercise-history-modal-container,
    #history-modal .history-modal-body,
    #home-skills-gallery-section,
    #skills-gallery-content,
    #workout-prefs-modal .prefs-days-calendar,
    #workout-prefs-modal .prefs-goals-surface,
    .add-activity-history-form,
    .assisted-swap-body,
    .auth-oauth-actions,
    .billing-usage-panel,
    .break-timer-panel-footer,
    .card-panel,
    .current-plan-feature-list,
    .entry-step-actions,
    .exercise-history-edit-form,
    .exercise-history-list,
    .exercise-snacks-panel,
    .exercise-snacks-reminder-body,
    .exercise-snacks-stats-panel__column,
    .exercise-snacks-tracker-card) {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* stack-md: 70 selectors (part 2) */
:is(.exercise-video-modal-content,
    .feedback-list,
    .finish-footer,
    .finish-loading-content,
    .finish-notes-section,
    .finish-summary-container,
    .history-drawer-content,
    .history-drawer-workouts,
    .history-modal-body,
    .history-month-section,
    .history-workout-item .workout-card__body,
    .home-onboarding-answer-dock__content,
    .home-onboarding-baseline,
    .home-onboarding-question-shell,
    .home-skills-gallery-stack,
    .home-workouts-stack,
    .icon-feature-list,
    .illustrated-modal__body,
    .logging-skeleton-exercise .card-body,
    .manual-swap-review-body) {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* stack-md: 70 selectors (part 3) */
:is(.measurements-history-page__stack,
    .measurements-type-menu-body,
    .memory-modal-field,
    .memory-notes-grid,
    .memory-page-body,
    .milestones-skill-content,
    .milestones-skill-detail-modal__panel--heatmap,
    .milestones-skill-detail-modal__panel--progressions,
    .post-workout-celebration-modal,
    .post-workout-milestone-info-stack,
    .post-workout-milestone-info-stage,
    .powerlifting-stats-prompt,
    .prefs-step-body,
    .profile-account-modal__actions,
    .profile-settings-card,
    .profile-settings-hero,
    .shared-workout-page .preview-section,
    .standard-modal-body--stack,
    .suggestions-container) {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* stack-md: 70 selectors (part 4) */
:is(.swap-loading-overlay,
    .swap-suggestions-list,
    .toggle-list,
    .welcome-desktop-panel,
    .workout-card__body,
    .workout-gen-trivia-status-stack,
    .workout-preview-modal .preview-section,
    .workouts-pdf-block-list,
    .workouts-pdf-empty-state,
    .workouts-pdf-phase,
    .workouts-timeline-section) {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* stack-sm: 97 selectors (part 1) */
:is(#skills-gallery-selected-skills .skills-gallery-selected-placeholder-locked,
    .admin-page-nav,
    .admin-sidebar-actions,
    .admin-sidebar-header,
    .admin-tabs,
    .billing-quality-guarantees__section,
    .billing-usage-member-content,
    .billing-usage-meter-layout,
    .billing-usage-panel-header,
    .billing-usage-summary-item,
    .break-timer-time-display--interval,
    .calendar-widget,
    .category-section,
    .current-plan-family-management,
    .current-plan-family-management .billing-family-content,
    .current-plan-family-management .billing-family-create,
    .current-plan-family-management .billing-family-details,
    .current-plan-family-management .billing-family-empty,
    .current-plan-family-management .billing-family-invite,
    .current-plan-family-management .billing-family-invite-code-details) {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* stack-sm: 97 selectors (part 2) */
:is(.current-plan-family-management .billing-family-members,
    .current-plan-family-management .billing-family-members-list,
    .current-plan-family-management .billing-family-usage,
    .current-plan-family-management .billing-family-usage-item,
    .current-plan-family-management .billing-family-usage-list,
    .current-plan-family-management .current-plan-family-panel,
    .download-brand-copy,
    .download-hero,
    .download-step-list,
    .exercise-history-card-content,
    .exercise-history-edit-field,
    .exercise-history-skeleton-content,
    .family-header-info,
    .feature-list,
    .feedback-detail-comments,
    .feedback-empty-state,
    .feedback-header,
    .feedback-main,
    .feedback-modal-field,
    .feedback-vote) {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* stack-sm: 97 selectors (part 3) */
:is(.finish-exercise-list,
    .finish-header,
    .finish-workout-section,
    .folder-card,
    .form-field-stack,
    .form-inline-editor,
    .history-drawer-heading,
    .history-month-grid-shell,
    .home-onboarding-field,
    .illustrated-modal__actions,
    .illustrated-modal__options,
    .invite-title-group,
    .logging-skeleton-input-groups,
    .manage-subscription-features__list,
    .measurements-history-page__card,
    .measurements-history-page__header-main,
    .measurements-type-options,
    .memory-decision-preview-card,
    .memory-injury-calendar-card,
    .memory-preferences-copy) {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* stack-sm: 97 selectors (part 4) */
:is(.memory-preferences-dislike-reason-options,
    .memory-preferences-list,
    .memory-preferences-list-section,
    .milestones-empty-state,
    .milestones-exercise-snacks-tracker-root,
    .milestones-skill-milestones-group,
    .password-requirements,
    .post-workout-celebration-body,
    .post-workout-celebration-header,
    .post-workout-powerlifting-metric-card,
    .post-workout-rank-column,
    .post-workout-rank-item,
    .post-workout-rank-list,
    .powerlifting-modal-stats,
    .powerlifting-stats-field,
    .preview-sample-meta,
    .pricing-section,
    .pricing-summary,
    .profile-settings-card .version-info,
    .profile-settings-section-group) {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* stack-sm: 97 selectors (part 5) */
:is(.profile-settings-utility-links,
    .share-workout-family,
    .share-workout-family-list,
    .smart-tooltip__body,
    .statistics-widget__stat,
    .suggestion-card,
    .summary-card,
    .swap-skeleton-card,
    .try-free-section,
    .visibility-options,
    .welcome-copy,
    .workout-gen-progress-center,
    .workout-prefs-step-question,
    .workout-summary-screen__header,
    .workouts-pdf-exercise-card,
    .workouts-pdf-exercise-group,
    .workouts-pdf-sheet-meta) {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* stack-lg: 29 selectors (part 1) */
:is(#billing-section,
    #usage-tracking-section,
    .admin-sidebar,
    .billing-usage-dashboard,
    .download-platform-card,
    .download-shell,
    .equipment-selection-wrapper,
    .exercise-reorder-phases,
    .exercise-snacks-panel__info,
    .feedback-detail,
    .feedback-modal-form,
    .feedback-page .settings-section,
    .library-workouts-list,
    .manage-subscription-features__card,
    .memory-injury-add-content,
    .milestones-skill-detail-modal__content,
    .page-subheader-body.settings-section,
    .preview-content-body,
    .preview-loading,
    .preview-skeleton) {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* stack-lg: 29 selectors (part 2) */
:is(.profile-account-modal__form,
    .profile-account-modal__panel,
    .settings-section.page-subheader-body,
    .welcome-content-panel,
    .workout-summary-card,
    .workout-summary-screen__content,
    .workouts-page-body,
    .workouts-pdf-content-wrapper,
    .workouts-pdf-preview) {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* stack-xs: 20 selectors */
:is(#home-skills-gallery-section .home-inline-skill-tile,
    #workout-prefs-modal .location-item .summary-card__header,
    .exercise-reorder-phase-list,
    .finish-difficulty-section,
    .form-surface-item__stack,
    .history-month-heading,
    .history-workout-item .workout-card__info-top,
    .home-onboarding-bubble,
    .icon-feature-item__content,
    .logging-timer-pill-section,
    .memory-injury-edit-copy,
    .memory-note-row-copy,
    .memory-note-topbar-center,
    .option-tile-grid__item,
    .profile-account-modal__copy,
    .profile-account-modal__summary,
    .pwa-update-text,
    .unified-notification-text,
    .welcome-actions,
    .workout-card__info-top) {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* row-wrap-sm: 23 selectors (part 1) */
:is(#ai-model-section .goal-selector-group,
    .billing-usage-member-list,
    .download-platform-actions,
    .exercise-snacks-panel__actions,
    .export-actions,
    .feedback-detail-tags,
    .feedback-tags,
    .filter-controls,
    .form-actions,
    .invite-code-actions,
    .measurements-history-page__meta,
    .milestone-actions,
    .milestone-filters,
    .pagination,
    .password-requirements-compact,
    .profile-menu-footer,
    .set-log-row-readonly,
    .skill-icons-title-container,
    .skill-modal-milestone-meta,
    .skills-filters) {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* row-wrap-sm: 23 selectors (part 2) */
:is(.user-actions,
    .user-search-controls,
    .workouts-pdf-skill-list) {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
