/* R452 — one mobile adaptation layer; desktop >=901px is untouched.
   Uses the existing sidebar, authenticated .workspace-panel renderer, and R280 split control.
   CSS only: no hidden API fields or actions are removed from the DOM. */
#wlc-r452-bottom-nav{display:none}
@media (max-width:900px){
 html,body{max-width:100%;min-width:0;overflow-x:clip}
 body *,body *::before,body *::after{box-sizing:border-box}
 :is(.portal-main,.register-screen,.auth-layout,.form-panel,.msg-panel){max-width:100%;min-width:0}
 :is(input,select,textarea){max-width:100%;min-width:0}
 :is(.field,.form-grid>*,.wizard-step,.r300-doc-field,.r374-field){min-width:0}
 body.saas-on .saas-workspace{--wlc-r452-bottom:calc(62px + env(safe-area-inset-bottom,0px))}
 body.saas-on .saas-workspace .saas-shell{display:block!important;width:100%!important;min-width:0!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
 body.saas-on .saas-workspace .saas-page{margin:0!important;padding:0!important;width:100%!important;max-width:100%!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
 body.saas-on .saas-workspace .saas-toolbar{height:56px!important;min-height:56px!important;flex:0 0 56px!important;padding:0 12px!important;gap:8px!important;max-width:100%!important;position:relative!important;z-index:20}
 body.saas-on .saas-workspace :is(.saas-toolbar-left,.saas-toolbar-right,.r277-top-page,.r277-top-copy){min-width:0}
 body.saas-on .saas-workspace .r277-top-copy h1{font-size:15px!important;line-height:1.25!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.saas-on .saas-workspace .r277-top-copy small{font-size:9px!important}
 body.saas-on .saas-workspace .saas-menu-button{display:inline-flex!important;align-items:center;justify-content:center;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
 body.saas-on .saas-workspace .saas-main{width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;height:calc(100dvh - 56px - var(--wlc-r452-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;padding:10px 10px 14px!important;scrollbar-width:thin}
 body.saas-on .saas-workspace .saas-panel-body{width:100%;min-width:0!important;min-height:0!important;overflow:visible!important}
 body.saas-on .saas-workspace .workspace-panel:not([hidden]){max-width:100%!important;min-width:0!important;overflow-x:hidden!important;overscroll-behavior:contain}
 body.saas-on .saas-workspace .saas-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:min(88vw,310px)!important;max-width:310px!important;height:100dvh!important;max-height:100dvh!important;z-index:120!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;transform:translateX(-105%);transition:transform .18s ease;visibility:hidden}
 body.saas-on .saas-workspace.menu-open .saas-sidebar{transform:translateX(0);visibility:visible}
 body.saas-on #saas-sidebar-shade:not([hidden]){position:fixed!important;inset:0!important;z-index:115!important;background:rgba(7,22,42,.54)!important}
 body.saas-on .saas-workspace .saas-sidebar .workspace-tab{min-height:44px!important;height:auto!important;padding-block:10px!important;font-size:13px!important}
 body.saas-on .saas-workspace .saas-sidebar .workspace-nav{max-height:none!important;overflow-y:auto!important}
 body.saas-on .saas-workspace .saas-side-bottom{padding-bottom:env(safe-area-inset-bottom,8px)!important}
 body.saas-on .saas-workspace .r93-account-menu,body.saas-on .saas-workspace #r94-notice-menu{max-width:calc(100vw - 24px)!important;max-height:min(70dvh,520px);overflow:auto}
 /* Shared bottom bar; all items route via existing sidebar navigation. */
 body.saas-on .saas-workspace #wlc-r452-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;position:fixed!important;bottom:0;left:0;right:0;z-index:60;height:var(--wlc-r452-bottom);padding:5px max(5px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left));background:#fff;border-top:1px solid #dbe5ee;box-shadow:0 -2px 12px #0e35551a;gap:2px}
 body.saas-on .saas-workspace.menu-open #wlc-r452-bottom-nav{visibility:hidden}
 body.saas-on .saas-workspace #wlc-r452-bottom-nav button{appearance:none;border:0!important;background:transparent;color:#667c91;border-radius:8px;min-width:0;min-height:48px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px 1px;font:650 10.5px/1.15 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
 body.saas-on .saas-workspace #wlc-r452-bottom-nav button.is-current{color:#0f3558;background:#eff5fb}
 body.saas-on .saas-workspace #wlc-r452-bottom-nav button[hidden]{display:none!important}
 .wlc-r452-icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.75;flex:0 0 20px}
 /* Adapt the EXISTING R280 master/detail; never create a second renderer. */
 body.saas-on .saas-workspace :is(.r278-job-split,.r278-data-split,#r83-candidate-split,.wlc-account-grid),
 body.saas-on .saas-workspace #jobs-panel .r278-job-split,
 body.saas-on .saas-workspace #candidates-panel #r83-candidate-split,
 body.saas-on #profile-panel .wlc-account-grid{display:flex!important;flex-direction:column!important;grid-template-columns:1fr!important;gap:0!important;flex:1 1 auto!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:hidden!important}
 body.saas-on .saas-workspace :is(.r278-job-master,.r278-data-master,.r83-candidate-main,.r278-context-panel,.r83-candidate-aside),
 body.saas-on .saas-workspace #candidates-panel #r83-candidate-split .r83-candidate-aside:not([hidden]),
 body.saas-on #profile-panel :is(.wlc-account-left,.wlc-account-right){width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;height:auto!important;flex:1 1 auto!important;border-radius:9px!important}
 body.saas-on .saas-workspace .r280-mobile-tabs{display:flex!important;flex:0 0 auto!important;position:sticky;top:0;z-index:8;gap:6px!important;min-height:44px!important;margin:0 0 8px!important;padding:4px!important;background:#ecf2f8;border:1px solid #dbe6ef;border-radius:9px}
 body.saas-on .saas-workspace .r280-mobile-tabs button{min-height:36px!important;min-width:0!important;flex:1 1 0!important;font-size:13px!important;white-space:normal!important;border-radius:7px!important}
 body.saas-on .saas-workspace .r280-mobile-tabs button[aria-pressed="true"]{background:#fff!important;color:#153e61!important;box-shadow:0 1px 4px #1239581c}
 body.saas-on .saas-workspace .r280-split[data-r280-view="master"] > :is(.r278-context-panel,.r83-candidate-aside,.wlc-account-right){display:none!important}
 body.saas-on .saas-workspace .r280-split[data-r280-view="detail"] > :is(.r278-job-master,.r278-data-master,.r83-candidate-main,.wlc-account-left){display:none!important}
 body.saas-on .saas-workspace .r280-split[data-r280-view="detail"] > :is(.r278-context-panel,.r83-candidate-aside,.wlc-account-right):not([hidden]){display:flex!important;flex-direction:column!important;overflow:auto!important}
 body.saas-on .saas-workspace .r280-split > [hidden]{display:none!important}
 body.saas-on .saas-workspace #candidates-panel #r83-candidate-split .r83-candidate-aside:not([hidden]){display:block!important;overflow:auto!important}
 body.saas-on .saas-workspace #jobs-panel.wlc-r452-detail > :is(.r279-single-toolbar,.r94-quick-filters,.r94-advanced-filters){display:none!important}
 body.saas-on .saas-workspace #candidates-panel.wlc-r452-detail > .v43-candidate-filters{display:none!important}
 body.saas-on .saas-workspace :is(#jobs-panel,#worklist-panel,#candidates-panel,#payouts-panel){display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
 body.saas-on .saas-workspace :is(#jobs-panel,#worklist-panel,#candidates-panel,#payouts-panel)[hidden]{display:none!important}
 body.saas-on .saas-workspace #jobs-panel .r278-job-master .r97-job-column-head,
 body.saas-on .saas-workspace :is(#worklist-panel,#candidates-panel,#payouts-panel) .r278-table-head{display:none!important}
 body.saas-on .saas-workspace :is(#jobs-list,.r278-data-list,.r278-detail-body){overflow-y:auto!important;overflow-x:hidden!important;max-width:100%!important;scrollbar-width:thin}
 /* Job rows -> cards in the CURRENT job renderer */
 body.saas-on .saas-workspace #jobs-panel #jobs-list[data-view="list"] .r94-job-item,
 body.saas-on .saas-workspace #jobs-panel #jobs-list[data-view="card"] .r94-job-item{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;grid-template-columns:none!important;gap:7px!important;min-height:0!important;height:auto!important;max-height:none!important;margin:8px!important;padding:13px!important;border:1px solid #dce6ef!important;border-radius:10px!important;box-shadow:none!important;background:#fff!important;overflow:visible!important}
 body.saas-on .saas-workspace #jobs-panel .r94-job-item :is(.r93-job-primary,.r93-job-details,.r93-job-reward,.r93-job-actions){display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;grid-column:auto!important;grid-row:auto!important;overflow-wrap:anywhere}
 body.saas-on .saas-workspace #jobs-panel .r94-job-item .r93-job-title{font-size:15px!important;line-height:1.45!important;overflow-wrap:anywhere;max-width:100%}
 body.saas-on .saas-workspace #jobs-panel .r94-job-item .r93-job-meta{font-size:12px!important;line-height:1.45!important}
 body.saas-on .saas-workspace #jobs-panel .r94-job-item .r93-job-reward{font-size:14px!important;line-height:1.35!important;white-space:normal!important}
 body.saas-on .saas-workspace #jobs-panel .r94-job-item .r93-job-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-start!important}
 body.saas-on .saas-workspace #jobs-panel .r94-job-item .r94-view-job{display:inline-flex!important}
 /* Existing worklist, candidates and payout ROWS become cards, not new templates. */
 body.saas-on .saas-workspace :is(#worklist-list,#candidates-list,#payouts-list) .r278-data-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;grid-template-columns:none!important;gap:7px!important;min-height:0!important;height:auto!important;padding:14px!important;margin:8px 7px!important;border:1px solid #dce6ef!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}
 body.saas-on .saas-workspace .r278-data-row :is(.r278-row-primary,.r278-row-job,.r278-data-cell,.r278-row-actions){width:100%!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
 body.saas-on .saas-workspace .r278-row-title{white-space:normal!important;font-size:14px!important;text-align:left!important;overflow-wrap:anywhere}
 /* All forms: 16px input text prevents iOS focus-zoom; keyboard-safe buttons. */
 body :is(#register-screen,#login-screen,#reset-screen,#password-setup-screen,#dashboard-screen) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;line-height:1.35!important;min-height:44px!important;width:100%;max-width:100%;border-radius:8px}
 body :is(#register-screen,#login-screen,#reset-screen,#password-setup-screen,#dashboard-screen) :is(input[type=file]){width:100%!important;min-width:0!important;min-height:44px;overflow:hidden;text-overflow:ellipsis;padding:8px!important}
 body.saas-on .saas-workspace :is(.form-grid,.r374-form-grid,.v44-fields,.r90-details-grid,.r300-review-list,.r393-form-grid,.r286-intake-grid,.v44-bottom-layout,.r282-overview-grid,.r282-support-grid,.r376-page-layout){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;max-height:none!important}
 body.saas-on .saas-workspace :is(.r282-overview-grid,.r282-support-grid,.r376-page-layout,.r286-intake-grid){overflow:visible!important}
 body.saas-on .saas-workspace :is(.r90-profile,.r72-onboarding-panel,.r282-support,.r374-referrals,.r376-updates-page,#intakes-panel){max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
 body.saas-on #profile-panel{height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
 body.saas-on #profile-panel .wlc-account-grid{overflow:visible!important;height:auto!important}
 body.saas-on #profile-panel :is(.wlc-account-left,.wlc-account-right,.wlc-account-aside-scroll){overflow:visible!important;height:auto!important;max-height:none!important}
 body.saas-on .saas-workspace :is(button,.primary,.secondary,[role=button]){touch-action:manipulation}
 body.saas-on .saas-workspace :is(button,.primary,.secondary):not(.r94-quick):not(.wlc-account-tab):not(.r278-detail-tab):not(.wlc-r452-nav-item){min-height:40px}
 body.saas-on .saas-workspace :is(.r278-detail-tabs,.r94-quick-filters,.wlc-account-tabs,.r376-filterbar,.r282-support-tabs){display:flex!important;gap:5px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;max-width:100%!important;min-width:0!important}
 body.saas-on .saas-workspace :is(.r278-detail-tabs,.r94-quick-filters,.wlc-account-tabs,.r376-filterbar,.r282-support-tabs) > *{flex:0 0 auto!important;white-space:nowrap!important;scroll-snap-align:start}
 body.saas-on .saas-workspace :is(.r278-detail-actions,.r90-bank-form-actions,.profile-actions,.r92-form-actions,.r374-form-footer,.r72-document-buttons){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;max-width:100%;min-width:0}
 body.saas-on .saas-workspace :is(.r278-detail-actions,.r90-bank-form-actions,.profile-actions,.r92-form-actions,.r72-document-buttons) > button{flex:1 1 140px;max-width:100%;white-space:normal}
 body.saas-on .saas-workspace :is(.r278-detail-fields,.r83-detail-list){max-width:100%;overflow-wrap:anywhere}
 body.saas-on .saas-workspace .r278-detail-fields{grid-template-columns:1fr 1fr!important}
 /* Partner referrals: actual HTML table is visually cardified; table DOM and events retained. */
 body.saas-on #client-referrals-panel .r374-list-table{overflow:visible!important;max-width:100%!important}
 body.saas-on #client-referrals-panel .r374-list-table :is(table,tbody,tr){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
 body.saas-on #client-referrals-panel .r374-list-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap}
 body.saas-on #client-referrals-panel .r374-list-table tbody tr{border:1px solid #dce6ef!important;border-radius:10px!important;background:#fff!important;margin:8px 0!important;padding:10px!important}
 body.saas-on #client-referrals-panel .r374-list-table tbody td{display:flex!important;align-items:start!important;gap:10px!important;justify-content:space-between!important;padding:8px 4px!important;border:0!important;border-bottom:1px solid #edf1f5!important;white-space:normal!important;overflow-wrap:anywhere;text-align:right;min-width:0!important;font-size:13px!important}
 body.saas-on #client-referrals-panel .r374-list-table tbody td:last-child{border-bottom:0!important}
 body.saas-on #client-referrals-panel .r374-list-table tbody td[data-r452-label]::before{content:attr(data-r452-label);font-size:12px;font-weight:700;color:#5a7084;min-width:95px;flex:0 0 95px;text-align:left}
 body.saas-on #client-referrals-panel .r374-list-table tbody td[colspan]{display:block!important;text-align:left!important}
 /* Uploads, signing and document viewers must fit viewport; do NOT alter their handlers. */
 body.saas-on .saas-workspace :is(.r406-dialog,.r72-document-block,.r58-mou-top,.r393-upload-action,.r393-signature-canvas,.r58-signature-panel){max-width:100%!important;min-width:0!important}
 body .r406-viewer:not([hidden]){max-width:100vw!important;max-height:100dvh!important;overflow:auto!important;padding:8px!important}
 body .r406-viewer .r406-dialog{width:min(100%,700px)!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto!important;margin:0 auto!important}
 body :is(canvas,video,img,iframe,embed,object){max-width:100%}
 /* Support and profile summary cells should wrap long identifiers and addresses. */
 body.saas-on .saas-workspace :is(p,small,dd,strong,span,li,a){overflow-wrap:anywhere}
 body.saas-on .saas-workspace .r278-detail-actions{padding-bottom:max(10px,env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:430px){
 body.saas-on .saas-workspace .saas-main{padding:8px 8px 14px!important}
 body.saas-on .saas-workspace .r278-detail-fields{grid-template-columns:minmax(0,1fr)!important}
 body.saas-on .saas-workspace .r93-account-name{display:none!important}
 body.saas-on .saas-workspace .r278-detail-tabs button{min-height:40px!important;font-size:12px!important;padding-inline:9px!important}
 body.saas-on .saas-workspace .r282-overview-left,body.saas-on .saas-workspace .r282-overview-right{max-width:100%!important;min-width:0!important}
}
@media(max-width:350px){
 body.saas-on .saas-workspace #wlc-r452-bottom-nav button{font-size:9.5px!important}
 body.saas-on .saas-workspace .r277-top-copy small{display:none!important}
 body.saas-on .saas-workspace .r278-detail-actions > button{flex-basis:100%!important}
}
@media(prefers-reduced-motion:reduce){
 body.saas-on .saas-workspace .saas-sidebar{transition:none!important}
}
@media print{
 #wlc-r452-bottom-nav{display:none!important}
}
/* R452 account-specific override: account's canonical Overview / Profile / Verification /
   Security tabs are the mobile navigation. Do not split one account into two competing views. */
@media(max-width:900px){
 body.saas-on #profile-panel .r280-mobile-tabs{display:none!important}
 body.saas-on #profile-panel .wlc-account-grid.r280-split{display:flex!important;flex-direction:column!important;overflow:visible!important}
 body.saas-on #profile-panel .wlc-account-grid.r280-split > :is(.wlc-account-left,.wlc-account-right):not([hidden]){display:block!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
 body.saas-on #profile-panel .wlc-account-head{height:auto!important;min-height:0!important;padding:4px 2px 6px!important}
 body.saas-on #profile-panel .wlc-account-tabs{display:flex!important;position:relative!important;top:auto!important;height:auto!important;min-height:44px!important;max-height:none!important;margin:5px 0 10px!important;padding:4px 2px 6px!important;align-items:center!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none}
 body.saas-on #profile-panel .wlc-account-tab{min-height:38px!important;font-size:13px!important;line-height:1.3!important;white-space:nowrap!important;padding:7px 12px!important}
 body.saas-on #profile-panel :is(.r90-profile-head,.v44-block-heading,.r90-profile-section,.r90-profile-edit){max-width:100%!important;min-width:0!important;overflow-wrap:anywhere}
}
@media(max-width:900px){
 body.saas-on #profile-panel .r90-profile-overview{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;align-items:start!important;gap:12px 10px!important;width:100%!important;height:auto!important;min-height:100px!important;max-height:none!important;overflow:visible!important;padding:12px!important;margin:8px 0 12px!important}
 body.saas-on #profile-panel .r90-profile-overview > div{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;min-height:40px!important;height:auto!important;max-height:none!important;padding:0!important;overflow:visible!important}
 body.saas-on #profile-panel .r90-profile-overview :is(span,strong){position:static!important;display:block!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere}
 body.saas-on #profile-panel .v44-profile-jump{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;scrollbar-width:none!important;margin:7px 0 11px!important;min-height:43px!important}
 body.saas-on #profile-panel .v44-profile-jump button{flex:0 0 auto!important;white-space:nowrap!important;min-height:38px!important}
}
/* Legibility for small device labels while keeping desktop typography untouched. */
@media(max-width:900px){
 body.saas-on .saas-workspace :is(.r90-profile-overview,.v44-fields,.r90-details-grid,.r83-detail-list,.r278-detail-fields,.r293-pipeline-grid) :is(span,dt,small){font-size:max(12px,0.78rem)!important;line-height:1.45!important}
 body.saas-on .saas-workspace :is(.r90-profile-overview,.v44-fields,.r90-details-grid,.r83-detail-list,.r278-detail-fields) :is(strong,dd){font-size:max(13px,0.84rem)!important;line-height:1.45!important}
 body.saas-on .saas-workspace :is(.r278-row-primary,.r278-row-job,.r278-data-cell,.r93-job-details,.r376-feed-items,.r374-list-card){font-size:13px!important;line-height:1.45!important}
 body.saas-on .saas-workspace :is(.r286-intake-grid,.r72-onboarding-panel,.r90-profile,.r374-referrals,.r282-support) :is(label,.field label){font-size:13px!important;line-height:1.45!important}
 body.saas-on .saas-workspace :is(.r278-detail-body,.r286-intake-grid,.r72-onboarding-panel,.r374-referrals) p{line-height:1.55!important}
}
@media(max-width:900px){
 body.saas-on .saas-workspace #wlc-r452-bottom-nav button{color:#405a73}
 body.saas-on .saas-workspace #wlc-r452-bottom-nav button:focus-visible,
 body.saas-on .saas-workspace .r280-mobile-tabs button:focus-visible{outline:2px solid #d65d28!important;outline-offset:2px!important}
}
