/* Layout-only alignment shared by the website and member workspaces. */
/* Status feedback follows actions rather than touching their lower edge. */
body.workspace #verify-form .nzbn-actions + p,
body.workspace #supplier-nzbn-form > p[role=status]{margin:16px 0 0!important}
body.workspace :is(#verify-form,#supplier-nzbn-form) .nzbn-verified-badge{margin:0!important;vertical-align:middle}
body.workspace #supplier-nzbn-form > p[role=status]{text-align:center}
body.workspace #supplier-nzbn-form > p[role=status]:empty{display:none}
/* Centre ordinary action contents without changing card, calendar or menu layouts. */
body.workspace :is(#main,dialog) :is(button,a.workspace-action-link,a.primary,a.button):not(.job-listing-card,.job-card,.customer-job-card,.team-chat-person,.document-design-option,.workspace-card,.add-photo-tile,.thread,.team-chat-person,.pm-card,.pm-event,.pm-timeline-bar,.pm-schedule-card,.pm-day,.roadmap-card,.invoice-customer-row,.document-design-option,.workspace-card,.scheme-toggle,.add-photo-tile,[role=switch],[data-color],[data-colour]):not(:has(div,p,h1,h2,h3,img,header,footer,article,section)){display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;vertical-align:middle}
body.workspace :is(#main,dialog) :is(button,a.workspace-action-link,a.primary,a.button) > svg{flex-shrink:0}
body.workspace #app #main .dashboard-card-expand{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;gap:0!important;min-width:32px!important;width:32px!important;height:32px!important;min-height:32px!important;line-height:1!important}
body.workspace #main :is(.actions,.dash-actions,.invoice-tools,.settings-tabs,.review-centre-tabs,.name-check-row){row-gap:12px!important;column-gap:12px!important;align-items:center;flex-wrap:wrap}
body.workspace #main :is(.actions,.dash-actions,.invoice-tools,.settings-tabs,.review-centre-tabs,.name-check-row)>:is(button,a){margin:0!important}
/* A fixed header slot must constrain its contents, including long member names. */
body>header .account-menu{min-width:0;max-width:100%}
body>header .account-menu-toggle{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
body>header .account-menu-name{flex:1 1 auto;min-width:0}
body>header .account-menu-toggle>svg{flex-shrink:0}
/* Public website actions keep their existing sizes, with centred labels and icons. */
body:not(.workspace) :is(button.primary,button.plain,#nav-login,#nav-register,#submit-search,#results-search-button,#profile-chat,#profile-save,#sidebar-apply,#sidebar-clear,#nearby-location,#mobile-sidebar-toggle,#launch-explore,.hero-post-job,.how-switch>button,.lightbox-close,.lightbox-arrow,.hero-sound-toggle,#legal-contact>button,a.how-cta,a.launch-link,a.wb-cta,.folio-footer-contact){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;vertical-align:middle}
body:not(.workspace) :is(button,a.how-cta,a.launch-link,a.wb-cta)>svg{flex-shrink:0}
body:not(.workspace) :is(#legal-contact,#dialog-form)>label{margin-top:16px;margin-bottom:8px}
body:not(.workspace) :is(#legal-contact,#dialog-form)>.actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}
body:not(.workspace) :is(#legal-contact,#dialog-form)>.actions>:is(button,a){margin:0}
body:not(.workspace) #legal-contact>button[type=submit]{margin-top:20px}
/* Native hidden semantics take priority over the shared flex layout. */
body :is(button,a)[hidden]{display:none!important}

/* Empty upload hints must not reserve an extra flex gap. */
body.workspace #main .add-photo-tile>small:empty{display:none}
body.workspace #main .add-photo-tile{gap:6px!important;text-align:center;padding:8px!important}
body.workspace #main .add-photo-tile>span{font-size:28px;line-height:28px}
body.workspace #main .add-photo-tile>b{font-size:11px;line-height:14px;max-width:100%;overflow-wrap:anywhere}
/* Supplier verification keeps its centred action and matching status below it. */
body.workspace #main #supplier-nzbn-form>button[type=submit]{display:flex!important;margin:20px auto 0!important}
body.workspace #main a.button{box-sizing:border-box;min-height:32px;padding:7px 14px;border:1px solid var(--ui-line,#d5d5d5);border-radius:999px!important;font-size:12px;line-height:18px;font-weight:600;text-decoration:none}
