/* Last layer: one readable foreground/surface system across legacy UI components. */
:root{--fulora-text:#152447;--fulora-muted:#1a3359;--fulora-line:#c2cddd}
html body{color:#152447;font-size:16px;line-height:1.6}
html body :is(p,span,small,label,legend,caption,li,dt,dd,time){color:#1a3359!important}
html body :is(h1,h2,h3,h4,strong,b,summary,td,button,a,input,select,textarea){color:#152447!important}
html body :is(small,.small,.hint,.sub,.portal-footnote,.auth-footer,.process-stamp dt,.process-stamp dd,.service-source,.nav-caption,.workspace-eyebrow,.eyebrow,.metric-label,.metric-detail){font-size:13px!important;line-height:1.65!important}
html body :is(label,summary){font-size:15px;line-height:1.6}
html body :is(td,th){line-height:1.6}html body th{font-size:13px!important;letter-spacing:.4px;color:#182e53!important}html body td{font-size:15px}html body td small{font-size:13px!important}
html body :is(button,.button){font-size:14px;line-height:1.5;font-weight:650;min-height:44px;background-color:#eff2f8!important;background-image:none!important;border-color:#c4cfdf!important;color:#152447!important;opacity:1}
html body :is(button,.button):hover:not(:disabled){background-color:#ecf0f6!important;border-color:#214073!important}
html body :is(button.primary,.button.primary,.portal-tabs button.active,.label-mode-tabs button.selected,#fulora-assistant [type=submit],.assistant-launch){background:#bec5de!important;background-image:linear-gradient(120deg,#c4cae0,#bcc4dc)!important;color:#2b2b2b!important;border-color:#1f336c!important}
html body :is(button.primary,.button.primary):hover:not(:disabled){background:#c1c8df!important;background-image:none!important}
html body :is(input:not([type=checkbox]):not([type=radio]),select,textarea),html body #fulora-assistant input{background:#f2f4f9!important;color:#152447!important;border-color:#c5cede!important;font-size:16px;caret-color:#2b2b2b}
html body input::placeholder,html body textarea::placeholder{color:#2e4365!important;opacity:1}
html body :is(input:disabled,select:disabled,textarea:disabled,button:disabled){opacity:1!important;background:#eef2f7!important;background-image:none!important;color:#283d5e!important;border-color:#bcc6d8!important;-webkit-text-fill-color:#283d5e;cursor:not-allowed}
html body :is(input:disabled,select:disabled,textarea:disabled)::placeholder{color:#283d5e!important}
html body :is(.panel,.card,.dashboard-panel,.dashboard-metric,.business-dashboard,.business-chart,.quota-card,.business-summary>div,.warehouse-setup,.warehouse-shortcut,.warehouse-alert-summary,.fast-photo,.phone-workspace .fast-photo,.replenishment-card,.dashboard-stockline,.ordercard,.product,.statuspanel,.boxhero,.mobile-time,.mobile-time-totals>div,#mobile-quota,.mobile-shift-summary,.mobile-task-status,.personal-month-totals,.personal-time-day,.personal-order-time,.mobile-order-row,.mobile-chat-answer,.mobile-tiles>*,.portal-login,.auth-card,.employee-admin-note,.audit-values>div,.app-install-help,.mobile-install,.install-download-card){background-color:#f1f4f9!important;background-image:none!important;color:#152447!important;border-color:#bac7da!important;backdrop-filter:none}
html body :is(.tablewrap,.orders-list-wrap,.orders-empty,.orders-secondary,.order-list-pagination,.order-list-tabs,.order-detail-content,.order-detail-row>td,.order-detail-content .tablewrap,.order-summary-row,.orders-list .order-summary-row:nth-of-type(4n+3),.orders-list .order-summary-row:hover,.orders-list .has-problem,.order-summary-row.has-problem){background:#f1f4f9!important;color:#152447!important;border-color:#bac7da!important}
html body :is(table,.customer-portal table){background:#f1f4f9!important;color:#152447!important}html body :is(th,.customer-portal th,.orders-list>thead>tr>th){background:#eef2f7!important;border-color:#c1cbdb!important}
html body :is(td,.customer-portal td){border-color:#b2c1d7!important}html body tbody tr:nth-child(even)>td{background:#f0f3f8!important}html body tbody tr:hover>td{background:#edf1f7!important}
html body :is(.service-order-info,.service-order-info.due,.service-order-info.optional,.service-order-info.unknown,.service-priority-strip,.mobile-service,.mobile-service.due,.mobile-service.optional,.shopify-notice,.shopify-import-summary,.catalog-intake-help,.intake-split,.intake-split-grid>div,.preview,.capture-live-status,.delivery-checks,.delivery-posted,.delivery-capture-actions [role=status],.print-bridge-panel,.print-bridge-panel .bridge-code,#label-expand form,.box-status,.box-status.occupied,.order-demo-tag,.portal-preview-note,.employee-status,.employee-status.inactive,.employee-avatar,.document-file-icon){background:#eff3f8!important;color:#152447!important;border-color:#c3cfe0!important}
html body :is(.service-order-info,.mobile-service,.shopify-notice,.preview,.intake-split) :is(p,span,small,strong,[data-clock-detail],[data-clock-hint],dt,dd){color:#172d51!important}
html body :is(.process-stamp,.finance-breakdown,.operations-stage,.operations-flow-heading,.operations-boxes,.operations-flow,.operations-flow-heading,.rack-box,.stage-code,.task-icon,.task-count,.subtle-count,.listtabs span){background-color:#eff3f8!important;color:#172d51!important;border-color:#c0cbdb!important}
html body .process-stamp :is(strong,time,small,dt,dd){color:#172d51!important;font-size:13px!important}
html body :is(.tag,.badge,.nav-count,.order-status,.order-box-code,.location){background:#ecf0f6!important;color:#162c4d!important;border-color:#c6d1e0!important}
html body :is(.workspace-nav.active,#workspace-tabs button.selected,.order-list-tabs button.selected,.service-filter button.selected,.order-detail-toggle[aria-expanded=true],.listtabs button[aria-selected=true],.mobile-bottom-nav button.selected){background:#b0bed6!important;color:#2b2b2b!important;border-color:#223e75!important}
html body :is(.workspace-nav.active,#workspace-tabs button.selected,.mobile-bottom-nav button.selected) span{color:#2b2b2b!important}
html body :is(.badge.green,.tag.ready,.status-done,.found,.found.selected,.capture-live-status.received,#notice:not(.error),#message.success,.employee-status.active){background:#f0f8f7!important;color:#1b5e45!important;border-color:#c3e0d8!important}
html body :is(.badge.green,.tag.ready,.found,.found.selected,#notice:not(.error),#message.success) :is(p,span,small,strong){color:#1b5e45!important}
html body :is(.success-text,.timeline .finished,.replenishment-card:not(.needs-refill)>strong){color:#1d6447!important}
html body :is(.missing,.missing.selected,.service-order-info.overdue,.mobile-service.overdue,.order-status.status-print_uncertain,.arrival-body .arrival-error,.catalog-errors,#notice.error,#fast-error,#delivery-error,#delivery-scan-error,#replenishment-notice.error){background:#f7eef2!important;color:#521824!important;border-color:#7b2438!important}
html body :is(.missing,.service-order-info.overdue,.mobile-service.overdue,.catalog-errors,#notice.error,#fast-error,#delivery-error,#delivery-scan-error) :is(p,span,small,strong,[data-clock-main],[data-clock-detail],[data-clock-hint]){color:#521824!important}
html body :is(.arrival-heading,.arrival-actions,.order-detail-heading){background:#eff3f8!important;border-color:#bfcada!important}
html body .scan-overlay>div{background:#f0f4f8!important;border-color:#c6cfdd!important;border-top-color:#732136!important}html body .scan-overlay p{color:#4f1724!important}
html body #fulora-assistant :is(.assistant-panel,.assistant-answer){background:#f0f4f8!important;color:#152a49!important;border-color:#c4d0e0!important}html body #fulora-assistant header{background:#edf1f7!important}html body #fulora-assistant .assistant-answer{font-size:15px;line-height:1.75}
html body :is(.fulora-install-dialog,.master-dialog,.arrival-form,.arrival-dialog){color:#152447!important}html body .fulora-install-dialog [data-install-status]{font-size:14px;line-height:1.7}
html body :is(.quota-ring-value,svg text){fill:#152447!important}html body .quota-ring-caption{fill:#1b365e!important}
html body .pair-card{background:#eff3f8!important}html body .pair-card>svg{background:#2b2b2b!important}html body .pair-card>svg text{fill:#f7f7f7!important}
html body :is(a:not(.button):not(.portal-brand):not(.mobile-tiles>a)){color:#1b365c!important}html body :is(a:not(.button)):hover{color:#2b2b2b!important;text-decoration:underline}
html body :is(button,a,input,select,textarea):focus-visible{outline:3px solid #1c3b61!important;outline-offset:3px}
@media(max-width:600px){html body :is(small,.small,.hint,.portal-footnote,.process-stamp dt,.process-stamp dd){font-size:13px!important}html body .service-priority-strip button{font-size:13px;min-height:44px}html body .workspace-nav{font-size:14px}html body td{font-size:14px}html body .portal-tabs button{font-size:14px;min-height:46px}html body .mobile-bottom-nav button{font-size:12px;min-height:55px}html body .install-download-grid{grid-template-columns:1fr}}
@media print{html body :is(p,span,small,label,legend,caption,li,dt,dd,time,h1,h2,h3,h4,strong,b,summary,td,th,a){color:#f7f7f7!important}html body :is(table,th,td,.panel,.card,.service-order-info,.process-stamp){background:#2b2b2b!important;background-image:none!important}html body :is(svg text,.quota-ring-value,.quota-ring-caption){fill:#f7f7f7!important}}
html body details,html body #mobile-home details{background-color:#f0f3f8!important;color:#152447!important;border-color:#c2cddd!important}
html body :is(.dashboard-all-clear>span,.task-icon,.task-count,.employee-avatar,.dashboard-task.attention .task-icon,.dashboard-task.attention .task-count){background:#ecf1f7!important;color:#16304d!important;border-color:#355780!important}
html body :is(.stage-label,.operations-flow-heading,.dashboard-text-link,.workspace-profile,.owner,.location,.task-copy>span,.legend,.status-ring-legend,.quota-ring-legend){font-size:14px!important;line-height:1.6!important}
html.fulora-installed .fulora-install-button,html.fulora-installed #mobile-install-button,html.fulora-installed .mobile-install,html.fulora-installed .app-install-help{display:none!important}
html.fulora-menu-open{overflow:hidden!important;overscroll-behavior:none}
html.fulora-menu-open .mobile-menu-bar,html.fulora-menu-open .phone-workspace-toolbar{z-index:150}
html.fulora-menu-open .mobile-menu-bar nav,html.fulora-menu-open .phone-area-menu nav{overscroll-behavior:contain;touch-action:pan-y;overflow-y:auto;max-height:calc(100dvh - 145px)}
html body a.fulora-auto-link{color:#1a355a!important;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
html.fulora-menu-open .mobile-menu-bar,html.fulora-menu-open .phone-workspace-toolbar{position:fixed!important;top:var(--fulora-menu-top,0px)!important;left:0;right:0;width:100%;z-index:150}
.fulora-menu-backdrop{position:fixed;inset:0;z-index:140;background:#f5f7fa55;touch-action:none}

/* Native touch/trackpad momentum stays with the OS; no wheel interception. */
@media screen {
 html { scroll-behavior:smooth; scroll-padding-top:90px; }
 body,body.customer-portal { background-attachment:scroll; }
 body :is(.tablewrap,.portal-tabs,dialog,.assistant-panel,aside nav,.mobile-menu-bar nav,.phone-area-menu nav) { -webkit-overflow-scrolling:touch; }
 body :is(dialog,.assistant-panel) { overscroll-behavior:contain; }
 /* Avoid repeatedly sampling moving content behind pinned chrome. */
 html body :is(main>header,.portal-header,.mobile-menu-bar,.phone-workspace-toolbar,body>header,.mobile-bottom-nav) { backdrop-filter:none; -webkit-backdrop-filter:none; background-color:#f1f4f9; }
 body :is(.panel,.card,.dashboard-panel,.dashboard-metric,.business-dashboard,.business-chart,.quota-card,.ordercard,.product,.portal-login,.shopify-connect,.print-bridge-panel,.personal-time-history) { backdrop-filter:none; -webkit-backdrop-filter:none; }
}
@media (prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
}

/* Final light palette: clear hierarchy, consistent controls and semantic accents. */
@media screen {
 :root { color-scheme:light;--fulora-bg:#f3f6fb;--fulora-panel:#fff;--fulora-raised:#edf3ff;--fulora-line:#c5d1e1;--fulora-text:#172b49;--fulora-muted:#465b76;--fulora-blue:#2458cf;background:#f3f6fb; }
 html body,html body.customer-portal { background:radial-gradient(ellipse at 95% 0,#e4edff,transparent 55%),#f3f6fb;color:#172b49; }
 html body :is(aside,main>header,.portal-header,.mobile-menu-bar,.phone-workspace-toolbar,.mobile-bottom-nav,body>header,.phone-area-menu nav,.mobile-menu-bar nav,dialog,.master-dialog,.arrival-form,.auth-card,.portal-tabs) { background:#fff!important;color:#172b49!important;border-color:#c5d1e1!important;box-shadow:0 6px 24px #18355b0a; }
 html body :is(.brand,.portal-brand,.auth-brand,.fulora-intro-word) {color:#172b49!important;}
 html body :is(.brand,.portal-brand,.auth-brand,.fulora-intro-word) span {color:#2458cf!important;}
 html body :is(input:not([type=checkbox]):not([type=radio]),select,textarea),html body #fulora-assistant input {background:#fff!important;color:#172b49!important;caret-color:#172b49;}
 html body select option {background:#fff;color:#172b49;}
 html body :is(button.primary,.button.primary,.portal-tabs button.active,.label-mode-tabs button.selected,#fulora-assistant [type=submit],#fulora-assistant .assistant-launch,.workspace-nav.active,#workspace-tabs button.selected,.order-list-tabs button.selected,.service-filter button.selected,.order-detail-toggle[aria-expanded=true],.listtabs button[aria-selected=true],.mobile-bottom-nav button.selected,.tabs button[aria-selected=true]) {background:#2458cf!important;background-image:none!important;color:#fff!important;border-color:#2458cf!important;}
 html body :is(button.primary,.button.primary):hover:not(:disabled) {background:#1945a8!important;}
 html body :is(.primary,.workspace-nav.active,.mobile-bottom-nav button.selected,.assistant-launch) :is(span,small,strong,b) {color:#fff!important;}
 html body :is(a:not(.button):not(.portal-brand):not(.mobile-tiles>a),a.fulora-auto-link) {color:#174fbf!important;}
 html body :is(a:not(.button)):hover {color:#113c94!important;}
 html body :is(.quota-ring-value,svg text) {fill:#172b49!important;}
 html body .quota-ring-caption {fill:#465b76!important;}
 html body .quota-ring circle[stroke="#edf1f7"] {stroke:#e3eaf4;}
 html body .quota-ring circle[stroke="#2563eb"] {stroke:#2458cf;}
 html body :is(.badge.green,.tag.ready,.status-done,.found,.found.selected,.capture-live-status.received,#notice:not(.error),#message.success,.employee-status.active) {background:#e6f5ee!important;color:#14603f!important;border-color:#8fc9ae!important;}
 html body :is(.badge.green,.tag.ready,.found,.found.selected,#notice:not(.error),#message.success) :is(p,span,small,strong) {color:#14603f!important;}
 html body :is(.missing,.missing.selected,.error,#portal-error,.service-order-info.overdue,.mobile-service.overdue,.catalog-errors,#notice.error,#fast-error,#delivery-error,#delivery-scan-error) {background:#fff0f1!important;color:#a1263c!important;border-color:#e4a6b0!important;}
 html body :is(.missing,.service-order-info.overdue,.mobile-service.overdue,.catalog-errors,#notice.error,#fast-error,#delivery-error,#delivery-scan-error) :is(p,span,small,strong,[data-clock-main],[data-clock-detail],[data-clock-hint]) {color:#a1263c!important;}
 html body .pair-card>svg {background:#fff!important;}html body .pair-card>svg text {fill:#111!important;}
 html body .fulora-intro {background:radial-gradient(ellipse at 60% 35%,#dce8ff,#f6f9ff 70%);}
 html body .fulora-intro-tagline {color:#465b76!important;}
 html body dialog::backdrop,html body .scan-overlay {background:#172b4966;backdrop-filter:none;}
 html body :is(button,a,input,select,textarea):focus-visible {outline-color:#2458cf!important;}
 html body input[type=file]::file-selector-button {background:#edf3ff;color:#174fbf;border-color:#b8cae8;}
}
@media print {
 html,html body {background:#fff!important;color:#111!important;}
 html body :is(p,span,small,label,legend,caption,li,dt,dd,time,h1,h2,h3,h4,strong,b,summary,td,th,a) {color:#111!important;}
 html body :is(table,th,td,.panel,.card,.service-order-info,.process-stamp) {background:#fff!important;background-image:none!important;}
 html body :is(svg text,.quota-ring-value,.quota-ring-caption) {fill:#111!important;}
}

@media screen {
 html body :is(.service-order-info.completed-late,.mobile-service.completed-late,.order-deadline.completed-late) {background:#fff6e5!important;color:#795017!important;border-color:#dabb7e!important;}
 html body :is(.service-order-info.completed-late,.mobile-service.completed-late,.order-deadline.completed-late) :is(strong,span,small) {color:#795017!important;}
 html body [data-service-clock] [data-clock-hint]:empty {display:none!important;}
 html body .order-deadline {min-width:190px;font-variant-numeric:tabular-nums;}
}

html body :is(img.pick-product-photo,img.product-thumb) {cursor:zoom-in;}
html body :is(img.pick-product-photo,img.product-thumb):focus-visible {outline:3px solid #2458cf;outline-offset:4px;}
html body dialog.product-photo-viewer {width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;overflow:auto;overscroll-behavior:contain;background:#fff!important;}
html body .product-photo-viewer>button {display:block;margin:0 0 12px auto;}
html body .product-photo-viewer>img {display:block;width:100%;height:auto;max-height:calc(100dvh - 180px);object-fit:contain;touch-action:pan-x pan-y pinch-zoom;}
html body .product-photo-viewer>p {margin:12px 0 0;font-size:13px;}

html body #fulora-assistant>.assistant-launch{display:none!important;}
html body .mobile-bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr));}
html.production-workspace body :is([data-test-tool],#install-orders,#new-scan-round,[data-demo-volume],.workspace-mobile-help){display:none!important;}
html.production-workspace body .customer-start>p.hint{display:none!important;}
.inbox-progress{min-height:26px;font-variant-numeric:tabular-nums;}
.inbox-connection{padding:12px 0;}

.inbox-queue-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.inbox-status{display:block;width:fit-content;padding:5px 9px;margin-bottom:8px;border-radius:6px;font-weight:700;white-space:normal;background:#e9efff;color:#173b84}.inbox-status-payment{background:#fff0cf;color:#704400}.inbox-status-review{background:#ffe6e5;color:#8a1e1a}.inbox-status-stock{background:#e8efff;color:#173b84}.inbox-status-checked{background:#e2f3eb;color:#175239}
