.fmv-work-dialog{width:calc(100% - 28px);max-width:700px;max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #c6d9cc;border-radius:22px;padding:24px;background:#fff;color:#153e35}.fmv-work-dialog::backdrop{background:#102f3288;backdrop-filter:blur(3px)}.fmv-work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.fmv-work-heading h2{font-size:22px;font-weight:800}.fmv-work-form{display:grid;gap:16px;margin-top:20px}.fmv-work-form label{display:grid;gap:7px;font-weight:650;font-size:14px}.fmv-work-form :is(input:not([type=checkbox]),select,textarea){padding:11px;border:1px solid #bed4c5;border-radius:11px;background:white;color:#173e35;width:100%;font-size:16px;min-width:0}.fmv-work-form [type=checkbox]{width:22px;height:22px}.fmv-work-form [role=alert]{color:#a43f31}.fmv-settings-controls{display:flex;gap:10px;flex-wrap:wrap}.fmv-route-map{width:100%;max-height:340px;margin-block:18px}.fmv-route-stops{list-style:decimal;padding-left:24px}.fmv-route-stops li{padding:10px 0;border-bottom:1px solid #d5e1da}.fmv-route-stops p{margin:6px 0;font-size:14px;overflow-wrap:anywhere}.fmv-callout{padding:14px;background:#fbf4df;border:1px solid #e3d5aa;border-radius:12px;margin:16px 0;color:#695427}.fmv-chat-feed{max-height:43dvh;overflow:auto;min-height:120px;overscroll-behavior:contain}.fmv-chat-message{padding:14px;border-radius:14px;background:#eef5ef;border:1px solid #d4e4d9;margin:10px 0;overflow-wrap:anywhere}.fmv-chat-message p{white-space:pre-wrap;margin:9px 0}.fmv-chat-message small{font-size:11px}.fmv-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fmv-work-stat{border:1px solid #d0e1d7;border-radius:15px;padding:18px;background:#f1f7ef}.fmv-work-stat span{display:block;font-size:12px}.fmv-work-stat strong{display:block;font-size:24px;margin-top:9px}.fmv-work-card{padding:20px;margin:16px 0;border:1px solid #d5e3da;border-radius:17px;background:#fff;overflow-wrap:anywhere}.fmv-work-card h3{font-weight:800;font-size:19px}.fmv-work-card p{line-height:1.65;margin:12px 0}.fmv-work-card .fmv-flex{margin-block:12px}.fmv-work-list{margin-top:14px}.fmv-work-list>div{padding:12px 0;border-bottom:1px solid #d9e7dd}.fmv-work-instructions{white-space:pre-wrap}.fmv-work-micro{font-size:12px;color:#567065;line-height:1.6}.fmv-manager-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.fmv-manager-toolbar button{min-height:44px}#fmv-session-bar{display:none!important}

/* Theme pairs are intentional: every dark surface has a matching readable ink. */
:root[data-theme=dark]{color-scheme:dark;--fmv-map-bg:#1d3641}
:root[data-theme=dark] body[data-portal]{--fmv-canvas:#101e28;--fmv-ink:#e9f2fa;--fmv-navy:#132e38;--fmv-muted:#b4c7d8;--fmv-line:#3f596b;--fmv-mint-soft:#1e443c;--fmv-amber-soft:#443b27;--fmv-blue-soft:#223e5c;--fmv-coral-soft:#4b3036;--fmv-violet-soft:#3c3359;--customer-ink:#e9f2fa;--customer-muted:#b4c7d8;--customer-cream:#101e28;--customer-line:#3f596b;--customer-green:#78dec1;--admin-ink:#e9f2fa;background:#101e28!important;color:#e9f2fa!important}
:root[data-theme=dark] body[data-portal] :is(.bg-white,.fmv-panel,.fmv-work-card,.fmv-work-dialog,.fmv-operations-dialog,.fmv-handover-dialog,.fmv-auth-card,.fmv-profile-area,.fmv-profile-row,.fmv-profile-heading,.fmv-profile-identity,.fmv-profile-logout,.customer-header,.customer-product-card,.customer-order-card,.customer-subscription-card,.customer-subscription-column,.customer-orders-column,.customer-bottom-nav,.admin-header,.admin-module,.admin-module-card,.admin-bottom-nav,.driver-profile-card,.driver-time-card,.driver-history-card,.driver-safety-card,.driver-log-card,.driver-order-card,.driver-dialog-card,.driver-manifest-card,.driver-cash-detail,.fmv-campaign,.fmv-admin-campaign,.fmv-editor-form,.fmv-wallet-area,#fmv-driver-nav,#fmv-auth-gate){background:#192c3a!important;color:#e9f2fa!important;border-color:#3f596b!important;background-image:none!important}
:root[data-theme=dark] body[data-portal] :is(.fmv-work-stat,.fmv-chat-message,.fmv-cash-metrics>div,.driver-finance-metric,.driver-time-metric,.driver-shift-controls,.driver-log-summary>span,.driver-address,.driver-order-meta>span,.fmv-success-banner,.fmv-address-card,.customer-empty,.customer-pin,.fmv-empty,.fmv-checkout-address-box,.fmv-auth-tabs,.fmv-invitation-help,.fmv-table-scroll,thead,th,[class*=bg-gray-],[class*=bg-slate-],[class*=bg-blue-50],[class*=bg-green-50],[class*=bg-emerald-50],[class*=bg-amber-50],[class*=bg-yellow-50]){background:#223b4b!important;background-image:none!important;color:#e3eef8!important;border-color:#466578!important}
:root[data-theme=dark] body[data-portal] :is(h1,h2,h3,h4,h5,strong,b,dt,dd){color:#f0f6fc!important}
:root[data-theme=dark] body[data-portal] :is(p,label,small,time,li,td,summary,[class*=text-gray-],[class*=text-slate-]){color:#c6d7e5!important}
:root[data-theme=dark] body[data-portal] :is(.fmv-small,.fmv-work-micro,.driver-eyebrow,.admin-eyebrow,.customer-eyebrow,.driver-brand-caption,.customer-brand-copy p){color:#a9c6db!important}
:root[data-theme=dark] body[data-portal] :is(a,.fmv-text-button,[class*=text-blue-]){color:#91caff!important}
:root[data-theme=dark] body[data-portal] :is(input,textarea,select){background:#152936!important;color:#f1f6fb!important;border-color:#688298!important;accent-color:#60d6ad}
:root[data-theme=dark] body[data-portal] :is(input,textarea)::placeholder{color:#a6b9cd!important;opacity:1}
:root[data-theme=dark] body[data-portal] :is(.fmv-btn,.fmv-primary){background:#18735e!important;color:#fff!important;border:1px solid #5bba9b!important}
:root[data-theme=dark] body[data-portal] .fmv-btn.secondary{background:#284857!important;color:#e5f2fd!important;border-color:#66879d!important}
:root[data-theme=dark] body[data-portal] .fmv-btn.danger{background:#9c3f4f!important;color:#fff!important;border-color:#d3848d!important}
:root[data-theme=dark] body[data-portal] :is(button,a):focus-visible{outline-color:#91caff}
:root[data-theme=dark] body[data-portal] :is(.fmv-callout,.driver-time-break,.driver-finance-remit){background:#433b29!important;color:#ffe6aa!important;border-color:#8c7954!important}
:root[data-theme=dark] body[data-portal] :is(.driver-time-active .fmv-timer,.driver-finance-metric strong,.customer-product-price,.fmv-work-stat strong){color:#8aebcc!important}
:root[data-theme=dark] body[data-portal] .driver-time-break .fmv-timer{color:#ffda8a!important}
:root[data-theme=dark] body[data-portal] #shift-form .driver-checklist label{background:#223e4b!important;color:#e0edf7!important;border-color:#597786!important}
:root[data-theme=dark] body[data-portal] #shift-form .driver-checklist label:has(input:checked){background:#214c43!important;color:#b6f5d9!important;border-color:#74c2a4!important}
:root[data-theme=dark] body[data-portal] :is(.driver-topbar,.customer-hero,.admin-hero,.driver-cash-hero){background:#132e38!important;color:#f1f6fb!important;border-color:#3f596b!important}
:root[data-theme=dark] body[data-portal] :is(.driver-brand-name,.customer-brand-copy h1){color:#f2f7fc!important}
:root[data-theme=dark] body[data-portal] :is(.customer-brand-mark,.fmv-brand::before){background:#254754!important;color:#a8f1cd!important}
:root[data-theme=dark] body[data-portal] :is(#fmv-driver-nav button,.customer-bottom-nav button,.admin-bottom-nav button){background:transparent!important;color:#bed1e1!important;border-color:transparent!important}
:root[data-theme=dark] body[data-portal] :is(#fmv-driver-nav button,.customer-bottom-nav button,.admin-bottom-nav button):is([aria-selected=true],[aria-current=page]){background:#245344!important;color:#baf6db!important}
:root[data-theme=dark] body[data-portal] :is(.fmv-order-sections button,.fmv-order-queues button,.fmv-unassigned-button,.admin-icon-button,.fmv-subscription-sections button){background:#263f50!important;color:#dcebf7!important;border-color:#5a7b8e!important}
:root[data-theme=dark] body[data-portal] :is(.fmv-order-sections button,.fmv-order-queues button,.fmv-subscription-sections button):is([aria-selected=true],[aria-current=page]){background:#245344!important;color:#baf6db!important;border-color:#73b99c!important}
:root[data-theme=dark] body[data-portal] :is(.customer-status,.driver-status-chip,.driver-count-chip,.driver-duty-chip,.fmv-status,.fmv-badge,.fmv-publish-tag,#profile-key-badge){background:#25483f!important;color:#baf6d8!important;border-color:#5a927c!important}
:root[data-theme=dark] body[data-portal] :is(.customer-status.warning,.driver-status-route,.driver-duty-chip.is-break,#shift-status-badge,.fmv-status.warning){background:#4a3c25!important;color:#ffdfa0!important;border-color:#9c8354!important}
:root[data-theme=dark] body[data-portal] :is(.customer-status.danger,.customer-status.error,.driver-status-failed,.fmv-status.error){background:#4d2e37!important;color:#ffc5d0!important;border-color:#ad6e81!important}
:root[data-theme=dark] body[data-portal] tbody tr:hover{background:#244252!important}
:root[data-theme=dark] body[data-portal] :is(.driver-log-events,.fmv-row,.fmv-work-list>div,hr){border-color:#496577!important}
:root[data-theme=dark] body[data-portal] dialog::backdrop{background:#030d19b3}
.fmv-chat-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.fmv-chat-file{display:grid;gap:6px;font-size:13px}.fmv-chat-file input{max-width:230px;font-size:13px;padding:8px}.fmv-chat-attachment{margin:12px 0}.fmv-chat-attachment img{display:block;max-width:100%;max-height:360px;object-fit:contain;border-radius:12px}.fmv-chat-attachment audio{display:block;width:100%;max-width:440px}#fmv-chat-remove{justify-self:start}#fmv-chat-selected:empty{display:none}.fmv-work-form [role=alert]:empty{display:none}
:root[data-theme=dark] body[data-portal] .fmv-work-form [role=alert]{color:#ffb9c6!important}
@media(max-width:600px){.fmv-work-dialog{padding:19px}.fmv-work-grid{gap:10px}.fmv-work-stat{padding:14px}.fmv-work-stat strong{font-size:21px}.fmv-work-card{padding:16px}.fmv-work-heading h2{font-size:19px}.fmv-chat-file{width:100%}.fmv-chat-file input{max-width:100%}.fmv-chat-tools{gap:14px}}

:root[data-theme=dark] body[data-portal] :is(#fmv-driver-nav,.customer-bottom-nav,.admin-bottom-nav) button :is(span,svg){color:inherit!important}

:root[data-theme=dark] body[data-portal] .customer-column-title{color:#a8d5ff!important}
:root[data-theme=dark] body[data-portal] .customer-subscription-column .customer-column-title{color:#9ae7c9!important}
:root[data-theme=dark] body[data-portal] .customer-section-mark{background:#25485c!important;color:#9ed8ff!important}
:root[data-theme=dark] body[data-portal] :is(.fmv-order-sections span,.fmv-order-queues span,.fmv-subscription-sections span){background:#142e3c!important;color:#e0f2ff!important;border:1px solid #4b697a}
:root[data-theme=dark] body[data-portal] :is(#fmv-manifest-count,#fmv-logistics-count){background:#234d40!important;color:#e1ffe9!important}
:root[data-theme=dark] body[data-portal] :is(.fmv-driver-profile-footer button,.fmv-profile-logout button,.fmv-profile-logout){color:#ffb6c6!important}

/* Complete legacy catalog, authentication and finance surfaces as well. */
:root[data-theme=dark] body[data-portal] .fmv-brand{color:#b4f0d5!important}
:root[data-theme=dark] body[data-portal] :is(#fmv-session-status,.customer-subtle-button,.customer-quantity,.driver-manifest-card .driver-card-heading button,.admin-module>.grid>div,#fmv-session-bar){background:#223b4b!important;color:#dcecf8!important;border-color:#526f83!important}
:root[data-theme=dark] body[data-portal] .fmv-auth-tabs button{background:transparent!important;color:#c6d7e5!important}
:root[data-theme=dark] body[data-portal] .fmv-auth-tabs button[aria-selected=true]{background:#245344!important;color:#c4ffe4!important}
:root[data-theme=dark] body[data-portal] :is(.fmv-existing-account,.fmv-private-invite){background:#443b27!important;color:#ffe6aa!important;border-color:#927b4a!important}
:root[data-theme=dark] body[data-portal] .fmv-existing-account-badge{color:#ffe6aa!important}
:root[data-theme=dark] body[data-portal] :is(.customer-add-button,button[class*=bg-emerald-600],button[class*=bg-green-600],button[class*=bg-blue-600],button[class*=bg-amber-600]){background:#18735e!important;color:#fff!important;border-color:#5bba9b!important}
:root[data-theme=dark] body[data-portal] :is(.customer-quantity button,.customer-quantity span,.customer-subscribe-button,.customer-brand-dot){color:#a5f0d2!important}
:root[data-theme=dark] body[data-portal] .fmv-row-icon{background:#244b40!important;color:#a4efce!important}
:root[data-theme=dark] body[data-portal] .fmv-profile-row>span:last-child{color:#bed1e1!important}
:root[data-theme=dark] body[data-portal] :is(.driver-time-metric>span:last-child,.driver-order-items,.driver-order-cash span,.driver-finance-metric span){color:#c6d7e5!important}
:root[data-theme=dark] body[data-portal] .driver-completion-note{background:#234538!important;color:#c5f5dc!important}
:root[data-theme=dark] body[data-portal] .driver-proof-steps b{background:#254d40!important;color:#cff8e3!important}
:root[data-theme=dark] body[data-portal] [class*=text-red-]{color:#ffb6c6!important}
:root[data-theme=dark] body[data-portal] :is([class*=text-emerald-],[class*=text-green-]){color:#99edcc!important}
:root[data-theme=dark] body[data-portal] :is([class*=text-amber-],[class*=text-yellow-]){color:#ffe0a0!important}
:root[data-theme=dark] body[data-portal] .admin-finance-icon{color:#a5f0d2!important}

:root[data-theme=dark] body[data-portal] :is(.fmv-address-form,[class*=bg-blue-100],[class*=bg-emerald-100],[class*=bg-green-100],[class*=bg-amber-100],[class*=bg-yellow-100],[class*=bg-red-100]){background:#263e4e!important;border-color:#526f83!important}
:root[data-theme=dark] body[data-portal] :is(.fmv-default-tag,#cart-badge){background:#234d40!important;color:#e1ffe9!important;border-color:#669e86!important}
:root[data-theme=dark] body[data-portal] .customer-unit{background:#4a3c25!important;color:#ffdfa0!important}
:root[data-theme=dark] body[data-portal] :is(button[aria-label^=Close],button[class*=text-gray-400]){background:#294454!important;color:#e0f0ff!important;border-color:#526f83!important}
:root[data-theme=dark] body[data-portal] :is(#fmv-logout,.fmv-logout,.admin-table-hint span){color:#b6d9f6!important}
