/* Shared desktop/mobile workbench rules, scoped away from printed document frames. */
@media screen{
body.ux-consistent{--ux-text:#1e293b;--ux-muted:#526177;--ux-accent:#2563eb;--ux-border:#dce3ec}
body.ux-consistent :is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid var(--ux-accent)!important;outline-offset:3px}
body.ux-consistent :is(button,summary,a){touch-action:manipulation}
body.ux-consistent :is(input,select,textarea){font-variant-numeric:tabular-nums}
body.ux-consistent input[aria-invalid=true],body.ux-consistent select[aria-invalid=true],body.ux-consistent textarea[aria-invalid=true]{border-color:#dc2626!important;box-shadow:0 0 0 1px #dc2626}
body.ux-consistent :is(h1,h2,h3){text-wrap:pretty;overflow-wrap:anywhere}
body.ux-consistent table{font-variant-numeric:tabular-nums}
body.ux-consistent dialog{overscroll-behavior:contain;max-width:calc(100vw - 24px);color:var(--ux-text)}
body.ux-consistent dialog>header{position:sticky;top:0;z-index:5;background:#fff;padding-bottom:12px;border-bottom:1px solid var(--ux-border)}
body.ux-consistent dialog>footer{position:sticky;bottom:0;z-index:4;background:#fff;padding-top:12px;border-top:1px solid var(--ux-border)}
body.ux-consistent dialog :is(input,textarea,select){box-sizing:border-box;max-width:100%}
body.ux-consistent dialog :is(p,small,label,span){overflow-wrap:anywhere}
body.ux-consistent #pageDraftStatus5[data-ux-idle=true]{display:none!important}
.ux-skip{position:fixed;top:8px;left:16px;z-index:2147483600;transform:translateY(-180%);padding:12px 20px;background:#1e293b;color:#fff;border-radius:8px;text-decoration:none}.ux-skip:focus{transform:translateY(0)}
#uxMobileQuickActions[hidden]{display:none!important}
body.ux-consistent #lgProjectBasics header small,body.ux-consistent .lg-flow-top .lg-eyebrow{display:none}
body.ux-consistent .wd-dialog .pw-note:has(input){padding:14px 16px;background:#eff6ff;border:1px solid #c9dbf2;border-radius:10px;gap:7px;color:#1e3a5f}
body.ux-consistent .wd-dialog .pw-note:has(input)>span{font-size:15px;font-weight:600}
body.ux-consistent .wd-dialog .pw-note:has(input) input{width:20px;height:20px;accent-color:#2563eb;vertical-align:middle;margin:0 9px 0 0}
body.ux-consistent .wd-dialog .pw-note small{font-size:13px;color:#3e5878}
body.ux-consistent #productGrid .fl-primary>[data-open-card]{flex:1;color:#fff!important;background:#2855ff!important;border:1px solid #2855ff!important}
body.ux-consistent #productGrid .fl-primary>[data-md-card-preview]{flex:1;color:#245ca5!important;background:#fff!important;border-color:#cad8e8!important}
body.ux-consistent #productGrid .fl-menu>button{width:100%;text-align:left;min-height:40px}
@media(max-width:760px){
 body.ux-consistent :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:16px!important;line-height:1.5;min-height:44px}
 body.ux-consistent :is(button,summary){min-height:44px}
 body.ux-consistent dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:16px!important;border-radius:12px;box-sizing:border-box}
 body.ux-consistent dialog :is(header,footer){flex-wrap:wrap;gap:10px}
 body.ux-consistent .wd-dialog .wd-columns{grid-template-columns:1fr!important}
 body.ux-consistent .wd-dialog footer button{flex:1;min-width:130px}
 body.ux-consistent #lgPrimaryFields,body.ux-consistent #lgClassificationFields{grid-template-columns:1fr!important}
 body.ux-consistent #lgPrimaryFields>*,body.ux-consistent #lgClassificationFields>*{grid-column:1/-1!important;min-width:0}
 body.ux-consistent #lgProjectBasics{padding:16px!important}
 body.ux-consistent #lgProjectBasics input,body.ux-consistent #lgProjectBasics select{width:100%!important;max-width:none!important}
 body.ux-consistent.lg-editor #lgFlowFooter{left:12px!important;right:12px!important;bottom:calc(68px + env(safe-area-inset-bottom,0px))!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;padding:10px!important;z-index:45;box-sizing:border-box}
 body.ux-consistent #lgFlowFooter>button{width:100%;margin:0!important;font-size:13px!important;min-height:42px!important;padding:8px!important}
 body.ux-consistent #lgNext{grid-column:1/-1;font-size:14px!important;min-height:44px!important}
 body.ux-consistent #lgFlowNote{display:none}
 body.ux-consistent #uxMobileQuickActions{position:relative;margin:0}
 body.ux-consistent #uxMobileQuickActions>summary{min-height:42px;display:flex;align-items:center;justify-content:center;border:1px solid #d6dfeb;border-radius:8px;background:#fff;font-size:13px;cursor:pointer}
 body.ux-consistent #uxMobileQuickActions .ux-quick-popup{position:absolute;bottom:calc(100% + 10px);right:0;width:min(260px,calc(100vw - 44px));display:grid!important;gap:8px!important;padding:12px;background:white;border:1px solid #dce3ec;border-radius:10px;box-shadow:0 8px 24px #18334d18;z-index:46}
 body.ux-consistent #uxMobileQuickActions:not([open]) .ux-quick-popup{display:none!important}
 body.ux-consistent #uxMobileQuickActions .ux-quick-popup button{min-height:44px!important;font-size:14px!important;padding:10px!important;text-align:left}
 body.ux-consistent.lg-editor #fvEditorWorkspace,body.ux-consistent.lg-editor #lgArchive{padding-bottom:170px}
 body.ux-consistent #lgSteps{display:flex!important;overflow:auto;scrollbar-width:thin;gap:6px!important;scroll-padding:12px}
 body.ux-consistent #lgSteps button{min-width:114px;flex:0 0 auto;font-size:13px!important;min-height:46px}
 body.ux-consistent #lgStepNumber{font-size:12px}
 body.ux-consistent #lgTitle{font-size:21px}
 body.ux-consistent #lgProjectBasics>header{align-items:flex-start}
 body.ux-consistent #lgMachineBadge img{max-width:70px}
 body.ux-consistent #pageDraftStatus5{left:12px!important;right:12px!important;max-width:none;bottom:calc(225px + env(safe-area-inset-bottom,0px))!important;top:auto!important;font-size:12px!important;pointer-events:none}
 body.ux-consistent #roleManager5 .rm-staff-table5 td:last-child{display:flex;flex-wrap:wrap;gap:6px;max-width:170px}
 body.ux-consistent #roleManager5 .rm-staff-table5 button{white-space:normal;font-size:13px}
 body.ux-consistent #roleManager5 .rm-status-action5{margin-left:0}
}
@media(prefers-reduced-motion:reduce){body.ux-consistent *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
}

@media(max-width:760px){body.ux-consistent #lgFlowFooter>#lgQuickActions{display:block!important;margin:0!important;min-width:0}body.ux-consistent #lgFlowFooter>#lgQuickActions>[data-dw-save]{min-height:42px!important;width:100%;margin:0!important;padding:8px!important;font-size:13px!important}}
@media screen and (min-width:761px){body.ux-consistent #wbTopActions{flex-shrink:0;white-space:nowrap}body.ux-consistent #wbTopActions :is(button,summary){white-space:nowrap;flex-shrink:0}body.ux-consistent #wbPilotSearch{min-width:80px;max-width:180px}body.ux-consistent #wbTopbar{gap:10px!important}}
