/* Shared readable type scale. Compact counters and icon controls retain their size. */
html body#fernus-ui{--ff-copy-size:16px;--ff-detail-size:14px;--ff-empty-size:18px}
html body#fernus-ui.cabinet-v2 .cabinet-notice-panel .cabinet-notice-scroll :is(.notice-category-empty,.cabinet-notice-empty),
html body#fernus-ui :is(.empty-state,.bank-empty-inner-v5,.ff-empty,.quick-empty,.conversation-empty,.messenger-empty-mini,.v7-empty-mini,.m8-inline-empty,.guide-empty,.rules-empty) p,
html body#fernus-ui :is(.m8-empty-text,.m8-inline-empty small,.messenger-empty-mini span){
 font-size:var(--ff-empty-size)!important;line-height:1.6!important;overflow-wrap:anywhere;
}
html body#fernus-ui.cabinet-v2 .cabinet-notice-panel .cabinet-notice-scroll :is(.notice-category-empty,.cabinet-notice-empty){padding:16px 6px!important;margin:0!important}
html body#fernus-ui :is(.empty-state,.bank-empty-inner-v5,.ff-empty) p{max-width:48ch!important;margin:10px auto 0!important}
html body#fernus-ui :is(.form-note,.muted-copy,.pending-business-note,.ff-note,.ff-form-error,.gov-feedback,.gov-timeline p,.gov-task-row p,.gov-service-tile p,.gov-dashboard-event p,.gov-upcoming p,.gov-member-admin p,.ff-storefront p,.ff-item-copy p,.ff-order-bottom p,.ff-pickup-card p,.ff-ticket-row p,.ff-help-card p,.ff-faq-item p,.ff-commerce-dialog p,.ff-message p,.ff-directory-heading p,.ff-directory-card p,.ff-terminal-address p,.news-composer-heading p,.news-compose-help,.news-cover-field p,.m8-readonly p){
 font-size:var(--ff-copy-size)!important;line-height:1.6!important;overflow-wrap:anywhere;
}
html body#fernus-ui :is(.p-field>span,.p-label,.p-modal-head small,.business-settings-form small,.business-media-upload small,.business-metrics,.business-stock-row small,.business-point-row small,.business-request-fields dt,.business-overview-tile>span,.business-finance-summary-copy>small,.bank-owner,.data-row-main span,.metric span,.metric small,.profile-stat-tile small,.profile-time-values span,.profile-counters-v6 span,.profile-friend-grid a,.friend-person-v5 span,.bank-finance-category small,.bank-finance-account-caption,.finance-operation .data-row-main small,.gov-case-card footer,.gov-case-card>header>time,.gov-summary-grid dt,.gov-parties>div>span,.gov-timeline time,.gov-hearing small,.gov-upload small,.gov-rule-options small,.gov-rule-picker summary small,.gov-request-card small,.gov-metrics span,.gov-metrics small,.gov-obligations small,.gov-member-body small,.gov-task-row small,.gov-four-metrics span,.gov-member-duties>small,.gov-dashboard-event time,.ff-cart small,.ff-order small,.ff-order-main small,.ff-checkout-row small,.ff-detail-lines,.ff-store-address,.ff-store-location,.ff-store-service,.ff-store-card-bottom span,.ff-cart-business,.ff-payment-summary,.ff-message small,.news-date,.news-caption,.news-upload-status,.news-text-hint,.news-admin-entry small,.m8-connection,.m8-history-loader,.m8-search-panel>span,.m8-drop-overlay span,.m8-info-profile>span,.m8-file-copy small,.m8-target small,.m8-forward-preview){
 font-size:var(--ff-detail-size)!important;line-height:1.5!important;overflow-wrap:anywhere;
}
html body#fernus-ui :is(.cabinet-content,.cabinet-notice-panel,.p-modal,.government-app,.ff-commerce,.news-manager) .p-btn{
 font-size:16px!important;line-height:1.4!important;
}
html body#fernus-ui :is(.friend-actions-v5,.business-bank-actions,.business-card-secondary,.gov-header-actions,.gov-case-tabs,.gov-obligations,.gov-member-admin,.ff-dialog-actions,.ff-filter-row,.ff-tabs) .p-btn{
 min-height:44px!important;height:auto!important;box-sizing:border-box!important;padding:10px 16px!important;white-space:normal!important;overflow-wrap:anywhere;
}
html body#fernus-ui :is(.friend-actions-v5,.business-bank-actions,.business-card-secondary,.gov-header-actions,.gov-case-tabs,.ff-dialog-actions,.ff-filter-row,.ff-tabs){
 display:flex;flex-wrap:wrap!important;align-items:center;gap:10px!important;min-width:0;
}
html body#fernus-ui :is(.friend-actions-v5,.business-bank-actions,.business-card-secondary,.gov-header-actions,.ff-dialog-actions,.ff-filter-row,.ff-tabs)>.p-btn{min-width:0!important;max-width:100%!important;flex-shrink:1}
html body#fernus-ui .gov-case-tabs>.p-btn{flex:1 1 140px!important;min-width:0!important}
html body#fernus-ui :is(.ff-item-copy,.ff-directory-card,.gov-task-row,.gov-service-tile,.business-overview-tile){min-width:0;height:auto}
html body#fernus-ui .ff-item-copy p{min-height:0!important;height:auto!important}
html body#fernus-ui .cabinet-notice-panel .cabinet-notice-head [data-cabinet-notifications-read]{font-size:15px!important;min-height:44px!important;padding:10px 14px!important}
@media(max-width:400px){
 html body#fernus-ui.cabinet-v2 .cabinet-notice-panel .cabinet-notice-head{gap:8px!important}
 html body#fernus-ui .cabinet-notice-panel .cabinet-notice-head [data-cabinet-notifications-read]{font-size:14px!important;padding:10px 12px!important}
 html body#fernus-ui :is(.friend-actions-v5,.business-bank-actions,.business-card-secondary,.gov-header-actions,.ff-dialog-actions)>.p-btn{flex:1 1 120px!important}
}
/* Empty categories fit their message rather than reserving a full list height. */
html body#fernus-ui.cabinet-v2 .cabinet-notice-panel:has(.notice-category-empty:not([hidden])){height:auto!important;min-height:0!important}
html body#fernus-ui.cabinet-v2 .cabinet-notice-panel:has(.notice-category-empty:not([hidden])) .cabinet-notice-scroll{flex:0 1 auto!important}
html body#fernus-ui.cabinet-v2 :is(.friend-person-v5 span,.profile-stat-tile small,.profile-time-values span,.bank-finance-account-caption,.finance-operation .data-row-main small){font-size:14px!important;line-height:1.5!important}
html body#fernus-ui.cabinet-v2 :is(.friend-actions-v5,.business-bank-actions,.business-card-secondary,.gov-header-actions,.gov-case-tabs,.gov-obligations,.gov-member-admin,.ff-dialog-actions,.ff-filter-row,.ff-tabs) .p-btn{font-size:16px!important;min-height:44px!important;height:auto!important;line-height:1.4!important}
html body#fernus-ui .ff-empty{padding:24px 20px!important}
