/* Connex field palette. Print surfaces deliberately remain white. */
@media screen {
:root{color-scheme:light;--ink:#203943;--muted:#405b67;--paper:#dbe4e9;--white:#f4f8fa;--line:#b1c5cf;--lime:#185f98;--blue:#216ba6;--rail:#d0dae0;--red:#942f35;--danger:#942f35;--accent:#185f98;background:#d0dae0;color:var(--ink)}
body{background:#d0dae0;color:var(--ink)}
body :is(.shell-header,.topbar,.top-bar,.live-bar,.project-bar,.shell-footer,.workspace-sidebar,.workspace-rail,.rail){background:#dbe4e9;color:#203943;border-color:#b1c5cf}
body :is(.daily-card,.app-card,.card,.panel,.truck,.simple-row,.metric,.inspector-card,.fleet-card,.inventory-card,.home-choice,.placement-welcome,.project-picker,.weather-values>div,.daily-list-row,.entry,.modal-content,.pour-row,.pump-card,.performance-card){background:#f4f8fa;color:#203943;border-color:#b1c5cf}
body :is(dialog,.modal,.modal-head,.modal-actions,#modal-actions,.modal-foot){background:#f4f8fa;color:#203943;border-color:#b1c5cf}
body :is(input,select,textarea){background:#ffffff;color:#203943;border-color:#8ca8b8;accent-color:#185f98;color-scheme:light}
body input::placeholder,body textarea::placeholder{color:#526c79}
body :is(.hint,.subline,.caption,.lead,.entry-meta,.photo-stamps,.metric-label,.field small,.muted){color:#405b67}
body :is(.eyebrow,.landing-kicker,.section-heading .icon,.app-card-top .icon){color:#185f98}
body :is(.wordmark,.brand,.brand-line,.page-heading h1,.inspector-heading h1,h1,h2,h3,h4,label,legend){color:inherit}
body :is(.btn,.button,.quiet,.text-btn,.filter,.daily-tabs a,.mode-switch button,.edit,.icon-button){background:#e3edf3;color:#203943;border-color:#99b4c5}
body :is(.btn.primary,.btn.lime,.button.primary,.home-choice.start,button.primary,button[type=submit],.filter.active,.mode-switch .selected,.daily-tabs a[aria-current=page]){background:#185f98;color:#ffffff;border-color:#185f98}
body :is(.btn,.button,.quiet,.app-card,.home-choice):hover{border-color:#185f98;box-shadow:0 0 0 1px #185f9840}
body :is(a){color:#155b91}body :is(.app-card,.home-choice,.workspace-nav a,.daily-tabs a){color:#203943}
body :is(.tag,.badge,.count,.project-access-ok,.inspector-saved){background:#dcebf2;color:#174d70;border-color:#94b8cb}
body :is(.notice,.view-note,.draft-hint,.sync-notice){background:#e2eef7;color:#254f73;border-color:#8bafcc}
body :is(.error,.error-text,.error-message,.danger,.alert-strip.expired){color:#8f3035}
body :is(.warning,.batch-timer.warning,.batch-timer.expired){background:#f5ead8;color:#754814;border-color:#b29871}
body :is(th,td,.section-head,.truck-top,.truck-bottom,.entry,.report-list-row){border-color:#b1c5cf}
body :is(th,.report-list-row:hover,.optional-details summary,.weather-forecast summary){background:#e7f0f5;color:#294a5a}
body :is(.report-paper,.report-preview,.report-page){background:#fff;color:#172b35;color-scheme:light}
body .report-paper :is(th,td,h1,h2,h3,h4,.hint,.subline){color:#172b35;background:transparent;border-color:#d3dde0}
body .report-paper a{color:#125a78}
:focus-visible{outline:3px solid #1567ab;outline-offset:3px}
dialog::backdrop{background:#020b11c9;backdrop-filter:blur(4px)}
body .workspace-rail nav a[aria-current="page"],body .workspace-rail nav a:hover{background:#185f98;color:#ffffff}
body .workspace-brand span,body .workspace-rail .workspace-brand span{color:#185f98}
body a.workspace-home,body button.workspace-menu{background:#e3edf3;color:#203943;border-color:#99b4c5}
body .project-dot{background:#185f98}
body :is(.users-panel,.users-panel .users-help){color:#405e6d}
body .users-row,body .users-panel button.users-button{background:#f4f8fa;color:#203943;border-color:#99b4c5}
body .users-panel button.users-button.primary{background:#185f98;color:#ffffff;border-color:#185f98}
body .users-panel :is(input,select,textarea){background:#ffffff;color:#203943;border-color:#8ca8b8}
body .users-panel :is(.users-row small,.users-help,label small){color:#405b67}
body .users-status{background:#dcebf2;color:#174d70}
body .backup-control.warning{color:#8f3035}
body :is(.scan-dialog button,.scan-dialog input){background:#e3edf3;color:#203943;border:1px solid #8ca8b8}
body .scan-dialog .scan-primary{background:#185f98;color:#ffffff}
body :is(.gate,.activation-card,.fleet-stat,.rental-card,.rental-purpose,.report-note,.ppe-person,.badge-person,.badge-photo-area,.quantity-strip,.ticket-calculation,.live-overview,.live-truck-action,.trax-account .account-controls,.yes-no span,.partner-button,.report-types a){background:#f4f8fa;color:#203943;border-color:#b1c5cf}
body :is(.inventory-row p,.inventory-row small,.badge-person span,.fleet-stat span,.rental-vendor,.rental-card dt,.fleet-history dt,.fleet-sync,.inspector-mini span,.limits-table small,.quantity-strip p,.pour-watch small,.compact-pumps summary span,.live-truck-action span,.with-workspace-nav .crumb span){color:#405b67}
body :is(.fleet-stat strong,.inspector-mini strong){color:#203943}
body :is(.rental-status,.inspector-status,.review-flag){background:#dcebf2;color:#174d70}
body :is(.rental-status.pending,.review-flag.flagged,.inspector-status.corrections,.active-delay,.quantity-pending,#fleet-status){background:#f5ead8;color:#754814;border-color:#b29871}
body :is(.inspector-status.passed,.status-ok,.status-line,.quantity-strip p b){color:#205f8a}
body :is(.yes-no input:checked+span,.partner-button[aria-pressed="true"],.report-types a[aria-current="page"]){background:#185f98;color:#ffffff;border-color:#185f98}
body :is(.daily-tabs a>span,.batch-timer.missing,.batch-timer.finished){background:#e1ecf2;color:#405e6f;border-color:#91acbd}
body :is(.central-report-table th,.limits-table th){background:#e3edf3;color:#203943}
body .central-report-table .above-limit{background:#f5ead8}
body .performance-bar,body .timeline-unload{background:#185f98}
body .performance-bar-track{background:#c4d6df}
body.with-workspace-nav .sidebar #navigation button.active span{color:#185f98}
body #toast{background:#254d70;color:#fff}
body .qr-label{background:#fff;color:#111;color-scheme:light}
/* Match the legacy compound selectors so their white controls cannot win. */
body .btn.light,body a.btn.light,body button.btn.light{background:#e3edf3;color:#203943;border-color:#99b4c5}
body .field input,body .field select,body .field textarea,body .report-project select{background:#ffffff;color:#203943;border-color:#8ca8b8;color-scheme:light}
body .field input::placeholder,body .field textarea::placeholder{color:#526c79}
body :is(.empty,.recorder-strip,.side-panel,.form-section,.truck-times div,.simple-active-card,.simple-metric){background:#f4f8fa;color:#203943;border-color:#b1c5cf}
body :is(.avatar,.load-no,.section-number){background:#dbe9f1;color:#1a577e}
body .truck-note{background:#e5eef5;color:#3b5d70}
body .btn.primary:hover,body .btn.lime:hover{background:#164d7c;color:#ffffff;border-color:#164d7c}
body .badge.waiting{background:#f5ead8;color:#754814}
body .badge.discharging,body .badge.complete{background:#dcebf2;color:#174d70}
body .badge.returned{background:#f8e6e7;color:#8f3035}
body .filter.active{background:#185f98;color:#ffffff;border-color:#185f98}
body .simple-control{background:#f4f8fa;color:#203943;border:1px solid #b1c5cf}
body .simple-control .eyebrow{color:#185f98}
body .simple-control p:not(.eyebrow){color:#405b67}
body .mode-switch{background:#ffffff}
body .simple-active-card .btn:not(.lime):not(.primary){background:#e3edf3;color:#203943;border-color:#99b4c5}
/* Bright controls own their full text palette, including legacy nested labels. */
body :is(.btn.primary,.btn.lime,.button.primary,.home-choice.start,button.primary,button[type=submit],.filter.active,.mode-switch button.selected,.daily-tabs a[aria-current=page],.report-types a[aria-current=page],.yes-no input:checked+span,.partner-button[aria-pressed=true],.inspector-status.passed){background:#185f98;color:#ffffff;border-color:#185f98}
body :is(.btn.primary,.btn.lime,.button.primary,.home-choice.start,button.primary,button[type=submit],.filter.active,.mode-switch button.selected,.daily-tabs a[aria-current=page],.report-types a[aria-current=page],.yes-no input:checked+span,.partner-button[aria-pressed=true],.inspector-status.passed) :is(span,strong,small,b,em,.icon){color:inherit}
body .home-choice:not(.start)>span:nth-child(2){color:#405b67}
body .home-choice:not(.start) .home-choice-action{color:#155b91}
body .daily-tabs a[aria-current=page]>span{background:#ffffff18;color:inherit}
}
.document-list{display:grid;gap:10px;margin-top:16px}.document-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.document-row small{display:block;color:var(--muted);margin-top:5px}.document-actions{display:flex;gap:10px;flex-wrap:wrap}.document-status{min-height:1.5em;margin:12px 0}.ticket-documents-button{margin-top:12px}.scan-dialog{width:min(760px,calc(100vw - 24px));max-height:94dvh;padding:24px;overflow:auto;border:1px solid var(--line);border-radius:16px}.scan-dialog h2{margin-top:0}.scan-dialog canvas{display:block;max-width:100%;max-height:55dvh;margin:12px auto;touch-action:none;object-fit:contain}.scan-dialog video{width:100%;max-height:55dvh;object-fit:contain}.scan-dialog .scan-controls{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.scan-dialog .scan-corners{display:grid;grid-template-columns:1fr 1fr;gap:8px}.scan-dialog .scan-corners label{font-size:13px}.scan-dialog input[type=range]{width:100%}.scan-dialog button{min-height:44px;padding:10px 16px;border-radius:8px}.scan-dialog .scan-primary{background:#185f98;color:#ffffff}.scan-dialog [hidden]{display:none!important}
@media(max-width:600px){.document-row{align-items:flex-start;flex-direction:column}.scan-dialog{padding:16px}.scan-dialog .scan-corners{grid-template-columns:1fr}.scan-dialog .scan-controls button{flex:1}}

/* Quiet maker signature, visible at every breakpoint. */
.auth-story .auth-credit{display:block!important;font-size:13px!important;letter-spacing:.025em;margin-top:20px!important;color:#405e6e!important}.auth-credit strong,.shell-footer strong,.nace-credit strong{font-weight:800;color:#244c63}.shell-footer{display:flex!important;flex-wrap:wrap;gap:12px;padding-bottom:max(22px,env(safe-area-inset-bottom))}.shell-footer span:has(strong){font-size:13px;letter-spacing:.025em}.auth-story .auth-credit strong{border-bottom:1px solid #185f9866;padding-bottom:3px}@media(max-width:760px){.auth-story .auth-credit{position:relative!important;display:block!important;margin:18px 0 0!important}.shell-footer{justify-content:center;text-align:center}.shell-footer span:has(strong){display:block!important;width:100%}}

.connex-landing .landing-copy .landing-credit{font-size:13px;color:#405e6d;margin:24px 0 0;letter-spacing:.025em}.landing-credit strong{font-weight:800;color:#244c63;border-bottom:1px solid #185f9866;padding-bottom:3px}

@media screen{body .workspace-rail-foot{display:none}}

@media screen{body .signed-building{display:flex;flex-direction:column;gap:5px;padding:10px 0;color:#203943}body .signed-building small{color:#405b67;font-size:11px;letter-spacing:.06em}body .project-picker select,body select option,body select optgroup{background:#ffffff;color:#203943}}
/* TRAX: retain readable contrast in every pour state, not only the home cards. */
@media screen{
body .pour-complete-banner{background:#e4eff5;color:#203943;border:1px solid #92b4c8;border-left:5px solid #185f98}
body .pour-complete-banner .eyebrow{color:#175d8b}
body .pour-complete-banner .text-btn{background:#e3edf3;color:#203943;border:1px solid #94adbd}
body :is(.detailed-active,.simple-active-empty,.sample-reminder,.project-access){background:#e6eff4;color:#203943;border-color:#b1c5cf}
body.with-workspace-nav .app-shell>.sidebar{background:#e6eff4;color:#203943;border-color:#b1c5cf}
body.with-workspace-nav .sidebar #navigation button{background:transparent;color:#3d5b6b}
body.with-workspace-nav .sidebar #navigation button.active{background:#185f98;color:#ffffff;border-color:#185f98}
body.with-workspace-nav .sidebar #navigation button.active span{color:inherit}
body .batch-timer{background:#e2edf4;color:#294e64;border-color:#94b8cb}
body .batch-timer.warning,body :is(.sample-reminder.near,.sample-reminder.due,.sync-problem,.alert-strip){background:#f5ead8;color:#754814;border-color:#b29871}
body :is(.batch-timer.expired,.batch-timer.late,.batch-timer.invalid,.alert-strip.expired){background:#f8e6e7;color:#8f3035;border-color:#bc8c90}
body .sample-reminder p:not(.eyebrow),body .sample-reminder small{color:#3d5b6b}
body :is(.sample-reminder.near,.sample-reminder.due) :is(p:not(.eyebrow),small){color:#754814}
body .truck-qty{color:#405b67}body .truck-qty b{color:#203943}
body .metric .metric-label,body .metric .unit,body .metric .caption{color:#405d6c}
body :is(.modal-copy,.timing-note,.activity small){color:#405b67}
body .status-error{color:#952f35}body .trax-export{color:#155b91}
body .btn.blue{background:#164f83;color:#ffffff;border-color:#6c9dbd}
body .btn.danger{background:#f8e6e7;color:#8f3035;border-color:#bc8c90}
body .pour-status-tag{background:#e3edf3;color:#3d5b6b}
body .pour-status-tag.done{background:#dcebf2;color:#174d70}
body .report-paper .report-pour-status{background:#edf7f5;color:#172b35;border-color:#9ebacb}
body .report-paper .report-pour-status .eyebrow{color:#245b56}
body a.skip{background:#185f98;color:#ffffff}
body a.backup-warning{color:#8f3035;font-weight:700}
body .performance-controls{border-color:#b1c5cf}
body.with-workspace-nav .sidebar:after{color:#405e6d}
body .ppe-product{background:#f4f8fa;color:#203943;border-color:#b1c5cf}
body .ppe-product :is(small,span){color:#405d6c}
body #notice:not(:empty){background:#e4eff5;color:#294e64;border:1px solid #94b8cb}
body .ppe-short{color:#952f35}
body .fleet-history summary{color:#155b91}
body .rental-status.done{background:#e4edf2;color:#3d5b6b}
body .fleet-error,body .users-panel .users-error,body #auth-error,body .project-access .error{color:#952f35}
body #report-status:not(:empty){color:#754814}
body .inventory-report p{color:#405d6c}
body .report-paper .inventory-report p,body .report-paper.inventory-report p{color:#546273}
body .day-toolbar input{background:#ffffff;color:#203943;border-color:#8ca8b8;color-scheme:light}
body .tag.closed{background:#dcebf2;color:#174d70}
body .tag.preview{background:#e4eff5;color:#245676}
}

@media screen{body .notice.error{background:#f8e6e7;color:#8f3035;border-color:#bc8c90}body .status-line.waiting{color:#754814}body .status-line.error,body .status-line.failed{color:#952f35}}

@media screen{body .btn:not(.primary):not(.lime):hover,body .btn:not(.primary):not(.lime):focus-visible{background:#d5e6f2;color:#203943;border-color:#185f98}body .btn:not(.primary):not(.lime):hover :is(span,strong,small,em){color:inherit}body .pour-document-access{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px;margin:0 0 20px;border:1px solid #8ca8b8;border-radius:10px;background:#f4f8fa}body .pour-document-access p{color:#3d5b6b;font-size:13px;margin:0}}

@media screen{body .workspace-rail>p{margin:8px 0 22px;font:800 11px/1.4 system-ui;letter-spacing:1.05px;color:#405d6d}}

/* Approved silver, blue and cyan field palette. */
@media screen{
:root{--ink:#203943;--muted:#405b67;--paper:#f2f6f8;--white:#fff;--line:#b1c5cf;--lime:#185f98;--accent:#155b91;--blue:#216ba6;color-scheme:light}body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:linear-gradient(112deg,#dae2e6,#c5d0d7 43%,#d6e0e5 72%,#c0cdd4);color:#203943}
body .workspace-rail{background:#c3d1d9;border-right:1px solid #96afbe}body .workspace-rail .workspace-brand{color:#203943!important}body .workspace-rail .workspace-brand span{color:#155b91}body .workspace-rail nav a{color:#203943}body .workspace-rail nav a[aria-current=page],body .workspace-rail nav a:hover{background:#dceaf3;color:#154c77;border:1px solid #94b6cc}body .workspace-rail>p{font-weight:700;color:#3a5666}
body :is(.btn.primary,.btn.lime,.button.primary,.home-choice.start,button.primary,button[type=submit],.filter.active,.mode-switch button.selected,.daily-tabs a[aria-current=page],.report-types a[aria-current=page],.yes-no input:checked+span,.partner-button[aria-pressed=true],.users-panel button.users-button.primary,.scan-dialog .scan-primary){background:radial-gradient(ellipse at 28% 8%,#84c5e033,transparent 55%),radial-gradient(ellipse at 85% 100%,#092e5b44,transparent 62%),linear-gradient(118deg,#124e83 0%,#236ca5 44%,#175991 72%,#155080 100%);color:#fff;border-color:#4a91ba;box-shadow:0 2px 0 #123e65,inset 0 1px 0 #bddde655}
body :is(.btn.primary,.btn.lime,.button.primary,.home-choice.start,button.primary,button[type=submit],.filter.active,.mode-switch button.selected,.daily-tabs a[aria-current=page],.report-types a[aria-current=page],.yes-no input:checked+span,.partner-button[aria-pressed=true],.scan-dialog .scan-primary):hover{background:#174f80;color:#fff;border-color:#71b8db}
body :is(.btn.primary,.btn.lime,.button.primary,.home-choice.start,button.primary,button[type=submit],.filter.active,.mode-switch button.selected,.daily-tabs a[aria-current=page],.report-types a[aria-current=page],.yes-no input:checked+span,.partner-button[aria-pressed=true]) :is(span,strong,small,b,em,.icon){color:inherit}
body .home-choice.start>span{color:#fff}body .btn.blue{color:#fff}body .inspector-status.passed{background:#dcebf2;color:#174d70}body .status-line{color:#205f8a}body .status-line.waiting{color:#754814}body .status-line.error,body .status-line.failed{color:#952f35}
body .document-preview{background:#e7eff4;color:#203943;border-color:#94adbd}body .document-preview header{border-color:#a6bdca}body .document-preview :is(button,a){background:#e1ebf2;color:#194d74;border-color:#9db5c5}body .document-preview a{background:#185f98;color:#fff}body .document-preview [role=status]{color:#405b67}body .document-preview nav input{background:#fff;color:#203943;border-color:#8ca8b8}body .document-preview .preview-stage{background:#c3d1d9}
body .auth-shell,body .auth-card{background:#f4f8fa;color:#203943;border-color:#9fb9c9}body .auth-story{background:linear-gradient(130deg,#dce7ec,#c2d3dd);color:#203943}body .auth-story :is(.brand,h1),body .auth-card h2,body .auth-card .field{color:#203943}body .auth-story :is(p,.brand small),body .auth-card :is(p,.auth-help,.auth-rule){color:#405b67}body .auth-story h1 span{color:#00758d}body .auth-story .auth-credit{color:#405b67!important}body .auth-story .brand span{color:#155b91}body .auth-card .auth-rule span{background:#1776aa}body .auth-card .btn:hover{background:#174f80;color:#fff}
body .shell-footer strong,body .auth-credit strong,body .nace-credit strong{color:#244c63}body .qr-label{background:#fff;color:#111}
}

@media screen{body .shell-header .quiet,body .shell-header .quiet:hover,body .shell-header .quiet:focus-visible{background:#e3edf3;color:#203943;border-color:#99b4c5}body .shell-header .quiet :is(span,strong){color:inherit}}

/* Walkthrough: seamless TRAX welcome and consistent blue action buttons. */
@media screen{
body.with-workspace-nav section.placement-welcome{background:transparent;border:0;box-shadow:none}
body :is(button,.btn,.button,.quiet,.text-btn,.filter,.daily-tabs a,.report-types a,.mode-switch button,.workspace-home,.edit,.icon-button):not(:disabled):not(.danger):not([role=switch]){background:radial-gradient(ellipse at 28% 8%,#84c5e033,transparent 55%),radial-gradient(ellipse at 85% 100%,#092e5b44,transparent 62%),linear-gradient(118deg,#124e83,#236ca5 44%,#175991 72%,#155080);color:#fff;border-color:#4a91ba;box-shadow:0 2px 0 #123e65,inset 0 1px 0 #bddde655}
body .shell-header .quiet,body .document-preview :is(button,a){background:linear-gradient(118deg,#124e83,#236ca5 44%,#155080);color:#fff;border-color:#4a91ba}
body :is(button,.btn,.button,.quiet,.text-btn,.filter,.daily-tabs a,.report-types a,.mode-switch button,.workspace-home,.edit,.icon-button):not(:disabled):not(.danger):hover,body :is(button,.btn,.quiet,.workspace-home):not(:disabled):not(.danger):focus-visible,body .shell-header .quiet:hover,body .shell-header .quiet:focus-visible{background:#174f80;color:#fff;border-color:#71b8db}
body :is(button,.btn,.button,.quiet,.workspace-home):not(.danger) :is(span,strong,small,b,em,.icon){color:inherit}
body :is(button,.btn,.button,.quiet,.workspace-home):disabled{background:#d3dfe6;color:#425967;border-color:#a5b8c3;box-shadow:none}
body :is(button,.btn,.quiet,.workspace-home):focus-visible{outline:3px solid #0096c2;outline-offset:3px}
}

@media screen{body .placement-welcome .home-choice,body .placement-welcome .home-choice>span,body .placement-welcome .home-choice .home-choice-action{color:#fff}body .placement-welcome .home-choice:hover{background:#174f80;color:#fff}}
@media screen{body.with-workspace-nav .placement-welcome .home-choice:not(.start)>span:nth-child(2){color:#fff}}

@media screen{body .account-greeting{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:0 .3em;padding:6px 0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.4;letter-spacing:.01em;color:#244b66}body .account-greeting .welcome-label{font-weight:450;color:#405b67}body .account-greeting strong{font-size:17px;font-weight:650;color:#155b91;letter-spacing:-.02em}@media(max-width:520px){body .account-greeting{font-size:14px}body .account-greeting strong{font-size:16px}}}

@media screen{body .central-report-table thead th button[data-report="sort"],body .central-report-table thead th button[data-report="sort"]:hover,body .central-report-table thead th button[data-report="sort"]:focus-visible{background:transparent!important;color:#203943!important;border:0!important;box-shadow:none!important;border-radius:0;padding:0;min-height:0;font:inherit;font-weight:650;text-align:left}body .central-report-table thead th button[data-report="sort"]:hover{text-decoration:underline;text-underline-offset:3px}body .central-report-table thead th button[data-report="sort"]:focus-visible{outline:2px solid #155b91;outline-offset:4px}}
