/* Appearance changes color and contrast, retaining the shared Rivo layout. */
.rivo-appearance-launcher{position:fixed;right:20px;bottom:20px;z-index:50;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line,#2a2a30);border-radius:50%;background:var(--surface,#101012);color:var(--text,#f4f4f5);box-shadow:0 4px 20px #0002;cursor:pointer}
.rivo-appearance-launcher[hidden]{display:none!important}
.rivo-appearance-dialog{box-sizing:border-box;width:min(430px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid var(--line,#2a2a30);border-radius:20px;background:var(--surface,#101012);color:var(--text,#f4f4f5);font:400 15px/1.6 "Vend Sans",sans-serif;box-shadow:0 20px 70px #0004}
.rivo-appearance-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}
.rivo-appearance-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.rivo-appearance-heading h2{margin:0;font-size:24px;font-weight:600;letter-spacing:-.035em}
.rivo-appearance-heading button{background:transparent;color:inherit;border:0;border-radius:50%;width:44px;height:44px;cursor:pointer}
.rivo-appearance-dialog p{color:var(--muted,#a1a1aa);font-size:14px;margin:14px 0}.rivo-appearance-choices{display:grid;gap:10px}
.rivo-appearance-choices button{text-align:left;min-height:64px;padding:12px 16px;border:1px solid var(--line,#2a2a30);border-radius:12px;background:var(--surface-strong,#19191d);color:inherit;font:inherit;font-size:15px;font-weight:600;line-height:1.5;cursor:pointer}
.rivo-appearance-choices small{display:block;font-weight:400;color:var(--muted,#a1a1aa);font-size:12px;margin-top:3px}
.rivo-appearance-choices button[aria-pressed=true]{border-color:var(--accent,#78adff);box-shadow:inset 0 0 0 1px var(--accent,#78adff)}
.rivo-appearance-dialog :is(button,select):focus-visible,.rivo-appearance-launcher:focus-visible{outline:2px solid var(--accent,#78adff);outline-offset:3px}
.rivo-display-settings p{color:var(--muted);font-size:14px}.rivo-display-settings label{display:grid;gap:8px}.rivo-display-settings select{width:100%;max-width:360px}
html[data-theme=light]{color-scheme:light;background:#f4f7fb;--bg:#f4f7fb;--surface:#fff;--surface-strong:#edf1f7;--text:#172033;--muted:#596579;--line:#d4dce7;--border:#d4dce7;--accent:#245bd6;--blue:#245bd6;--blue-dark:#1849a9;--ink:#172033;--paper:#f4f7fb;--panel:#fff;--soft:#edf1f7;--dark:#edf1f7;--dark-2:#fff;--green:#166b46;--green-dark:#166b46;--amber:#885414;--red:#b4233a;--shadow:0 4px 24px #17203309;--ri:#172033;--rm:#596579;--rb:#245bd6;--rl:#d4dce7;--rp:#fff}
html[data-theme=light] :is(body,.rivo-site,.app-shell,.app-shell .main,body.rivo-full-demo){background:var(--bg);color:var(--text)}
html[data-theme=light] :is(.rivo-site,.rivo-full-demo){--ri:var(--text);--rm:var(--muted);--rb:var(--accent);--rl:var(--line);--rp:var(--surface)}
html[data-theme=light] :is(.app-shell .sidebar,.rivo-site header,.nav,.rivo-full-demo .nav,.tour-sidebar,.demo-app-sidebar,.tour-window-bar,footer,.rivo-site footer){background:#fff;border-color:var(--line);color:var(--muted)}
html[data-theme=light] :is(h1,h2,h3,h4,.brand-name,.wordmark,.brand,.page-title,.panel-title,.item-title,.order-customer-name,.demo-workspace-metrics strong,.tour-stats strong,.tour-heading h2){color:var(--text)!important}
html[data-theme=light] :is(.page-subtitle,.panel-subtitle,.eyebrow,.item-detail,.form-note,.privacy-copy,.brand-subtitle,.app-shell .sidebar-footer,.hero .description,.trial-note,.lede,.links a:not(.nav-cta),.rivo-site nav,.rivo-site nav a,.account,.tour-nav-label,.tour-sidebar nav button,.demo-app-sidebar nav>*,.tour-workspace-status){color:var(--muted)}
html[data-theme=light] :is(.panel,.driver-focus-card,.dispatch-order-column,.dispatch-route-column,.modal-panel,.action-dialog,.mileage-dialog,.metric,.item,.signup-card,.invite-card,.driver-roster-card,.integration-card,.settings-section,.order-editor-grid,.invite-result,.proof-record,.webhook-card,.workspace-switcher,.integration-step,.tour-panel,.tour-trip-record,.tour-mileage-summary,.demo-panel,.card,.band,.plan,.steps article,.industry-card,.industry-example,.sector-panel,.sector-product,.sector-window-bar,.contact form){background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)}
html[data-theme=light] :is(.dispatch-day-strip>div,.demo-workspace-metrics>div,.tour-stats>div){background:linear-gradient(135deg,#fff,#f3f6fb);border-color:var(--line)}
html[data-theme=light] :is(.dispatch-day-strip strong,.dispatch-day-strip span,.tour-stats span){color:var(--text)}
html[data-theme=light] :is(.dispatch-pane-tabs,.demo-workspace-tabs,.tour-pane-tabs,.tour-mileage-tabs,.mileage-tabs,.mobile-tabs,.route-draft-stops,.today-glance,.setup-strip,.dashboard-customizer,.login-support,.onboarding-step,.setting-toggle,.credential-box,.endpoint-box,.code-block,.driver-facts>div,.tour-avatar,.demo-app-main .route-box){background:var(--surface-strong)!important;border-color:var(--line)!important;color:var(--muted)}
html[data-theme=light] :is(.button,.hero-start,.nav-start,.nav-cta,.tour-primary,.rivo-site .hero-start,.rivo-site .nav-start){background:#172033!important;border-color:#172033!important;color:#fff!important}
html[data-theme=light] :is(.button,.hero-start,.nav-start,.nav-cta,.tour-primary):not(:disabled):hover{background:#294263!important;border-color:#294263!important;color:#fff!important}
html[data-theme=light] :is(.button.secondary,.button.ghost,.button.subtle,.hero-demo,.rivo-site .hero-demo,.plan a,.password-toggle,.stop-reorder button,.map-control){background:#edf1f7!important;border-color:#c9d3e1!important;color:#24334b!important}
html[data-theme=light] :is(.button.secondary,.button.ghost,.button.subtle,.hero-demo,.plan a,.password-toggle,.stop-reorder button):not(:disabled):hover{background:#dce5f1!important;color:#172033!important;border-color:#aabbd2!important}
html[data-theme=light] :is(.button.success,.status.available,.status.completed,.wix-fulfilled){background:#dcf2e7!important;border-color:#8ac4a8!important;color:#165b3e!important}
html[data-theme=light] :is(.button.warning,.status.exception,.wix-pending,.mileage-warning){background:#fff0d9!important;border-color:#e0b16b!important;color:#784608!important}
html[data-theme=light] :is(.button.danger,.status.failed){background:#fce4e8!important;border-color:#dfa3b0!important;color:#99213c!important}
html[data-theme=light] :is(.status,.badge,.mini-tag,.count-chip,.pane-count){background:#e6ecf5;color:#34445d;border-color:var(--line)}
html[data-theme=light] :is(.app-shell .nav-link,.app-shell .nav-action,.app-shell .nav-more>summary,.mobile-tab){color:var(--muted)}
html[data-theme=light] :is(.nav-link.active,.nav-link.active:hover,.workspace-switcher button.active,.dispatch-pane-tabs .button[aria-pressed=true],.mileage-tabs .button[aria-pressed=true],.mileage-actions .button[aria-pressed=true],.mobile-tab.active,.demo-workspace-tabs>.active,.demo-app-sidebar nav>.active,.tour-sidebar nav button[aria-pressed=true],.tour-pane-tabs>.is-active,.tour-mileage-tabs>.is-active){background:#dce7f7!important;color:#173963!important;border-color:#b0c6e5!important;box-shadow:none}
html[data-theme=light] :is(.nav-link:hover,.nav-action:hover,.manage-summary:hover,.manage-panel[open]>.manage-summary,.manage-summary:focus-visible,.bulk-more[open]>summary,.orders-empty-state,.order-queue-item:hover,.order-card:hover,.order-queue-item.is-selected,.order-card.is-selected,.item.is-selected,.tour-order-row.is-selected){background:#eaf0f9!important;color:var(--text)!important;box-shadow:none;border-color:var(--line)}
html[data-theme=light] :is(.bulk-more-menu,.bulk-more-menu .button,.bulk-action-bar.has-selection){background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme=light] :is(.input,.select,textarea,input:not([type=checkbox]):not([type=color]),select,.signup-shell input){background:#fff!important;color:#172033!important;border-color:#b8c6d8!important;color-scheme:light}
html[data-theme=light] :is(.field label,.setting-toggle,.field-help,.mileage-header p,.mileage-trip p,.privacy-note,.tour-privacy,.tour-mileage-note,.tour-trip-bottom>span,.demo-app-sidebar small){color:var(--muted)!important}
html[data-theme=light] :is(.trial-strip,.driver-access-banner,.driver-assignment-banner,.owner-recovery,.app-gateway-status,.app-gateway-grid>div){background:#e9f1fc!important;border-color:#bdcfe9!important;color:#25446f!important}
html[data-theme=light] :is(.trial-strip,.driver-access-banner,.driver-assignment-banner) :is(strong,h2,p,span){color:inherit!important}
html[data-theme=light] :is(.app-gateway-title,.app-gateway-title span,.app-gateway-subtitle,.app-gateway-grid strong,.app-status-dot,.login-panel h2,.invite-title){color:var(--text)}
html[data-theme=light] :is(.app-gateway-copy,.login-panel,.public-header,.signup-shell,.invite-shell,.page-hero,.closing,.rivo-site .closing){background:var(--bg)!important;color:var(--text)}
html[data-theme=light] :is(.app-shell .brand-mark,.rova-symbol img,.brand-mark,.brand-logo img,.tour-wordmark img,.demo-app-sidebar .brand img){filter:brightness(0) saturate(100%)}
html[data-theme=light] .app-shell .topbar::before{filter:brightness(0) saturate(100%)}
html[data-theme=light] :is(.app-shell table th){background:#edf1f7;color:var(--muted)}
html[data-theme=light] :is(.app-shell table td,.app-shell tbody tr){border-color:var(--line);color:var(--text)}
html[data-theme=light] .app-shell tbody tr:hover{background:#edf1f7}
html[data-theme=light] #product-tour{--tour-bg:#f4f7fb;--tour-surface:#fff;--tour-strong:#edf1f7;--tour-text:#172033;--tour-muted:#596579;--tour-line:#d4dce7;--tour-accent:#245bd6;background:var(--tour-bg);border-color:var(--tour-line);box-shadow:0 20px 60px #17203312}
html[data-theme=light] :is(.tour-status,.tour-driver-chip,.tour-trip-day,.tour-classify button){background:#edf1f7;color:#34445d;border-color:var(--line)}
html[data-theme=light] .tour-classify button[aria-pressed=true]{background:#dce7f7;color:#173963;border-color:#b0c6e5}
html[data-theme=light] :is(.tour-order-row,.tour-order-footer,.tour-panel-heading,.tour-story,.tour-steps,.tour-bottom,.demo-app-frame){border-color:var(--line);color:var(--text)}
html[data-theme=light] .tour-steps button{background:#fff;color:var(--muted)}
html[data-theme=light] .tour-steps button[aria-pressed=true]{background:#dce7f7;color:#173963}
html[data-theme=light] :is(.sector-tabs,.sector-sidebar){background:#edf1f7;border-color:var(--line)}
html[data-theme=light] :is(.sector-tab,.sector-tab:hover,.sector-tab[aria-selected=true]){background:#fff;color:var(--text);border-color:var(--line)}
html[data-theme=light] :is(.sector-description,.sector-story p,.sector-story h2,.sector-story h3,.sector-product strong,.sector-product p,.sector-product span,.sector-closing h2,.foundation-heading h2,.foundation-item h3){color:var(--text)}
html[data-theme=light] .toast{background:#172033;color:white;border-color:#394b64}
html[data-theme=light] .mileage-error{color:#b4233a}
html[data-theme=light] .tour-window-bar>span:first-child{color:var(--muted)}
html[data-theme=light] .route-order-check>span[aria-hidden=true]{background:#fff;border-color:#8093ad}
html[data-theme=light] .route-order-check input:checked+span{background:#245bd6;border-color:#245bd6;color:white}
html[data-theme=light] .button.success:not(:disabled):hover{background:#c6e8d7!important;color:#145235!important;border-color:#6ea68a!important}
html[data-theme=light] .button.warning:not(:disabled):hover{background:#ffe2b4!important;color:#684007!important;border-color:#c39451!important}
html[data-theme=light] .button.danger:not(:disabled):hover{background:#f6ccd5!important;color:#861a33!important;border-color:#c67c90!important}
html[data-theme=light] :is(.sectors-hero-bottom p,.sectors-hero-bottom>a,.sectors-hero-bottom>a span,.foundation-heading p,.sector-description,.sector-story li,.sector-closing p,.sector-window-footer,.sector-fields .field-label,.sample-label,.order-number){color:var(--muted)!important}
html[data-theme=light] :is(.sector-tab,.sector-panel){--sector-accent:#245bd6!important}
html[data-theme=light] .mini-rivo img{filter:brightness(0) saturate(100%)}
.mini-rivo:has(img){background:none;border:0;box-shadow:none}.mini-rivo img{width:16px;height:16px;display:block}
html[data-theme=light] :is(.rivo-site .price,.demo-app-main .order-head strong,.mileage-totals strong,.mileage-distance,.mileage-week-summary strong,.mileage-workspace .mileage-trip h3){color:var(--text)!important}
html[data-theme=light] :is(.rivo-site .price small,.rivo-site .price span,.plan p,.plan li){color:var(--muted)!important}
html[data-theme=light] .demo-app-main .order-card.selected{background:#eaf0f9!important;color:var(--text)}
html[data-theme=light] .order-meta span{background:#edf1f7;color:#34445d;border-color:var(--line)}

/* Rivo deep-blue brand, with a lighter mark on dark surfaces. */
html[data-theme] img[src*="rivo-pinwheel.svg"]{filter:none!important}
html[data-theme=dark] img[src*="rivo-pinwheel.svg"]{content:url('/assets/rivo-pinwheel-on-dark.svg?v=103')}
html[data-theme]{--accent:#91bfe8;--blue:#91bfe8;--blue-dark:#bad9f0}
html[data-theme=light]{--accent:#245b85;--blue:#245b85;--blue-dark:#194563;--rb:#245b85}
html[data-theme=light] .button:not(.secondary):not(.danger):not(.ghost):not(.subtle):not(.success):not(.warning){background:#245b85!important;border-color:#245b85!important;color:#fff!important}
html[data-theme=light] .button:not(.secondary):not(.danger):not(.ghost):not(.subtle):not(.success):not(.warning):not(:disabled):hover{background:#194563!important;border-color:#194563!important}

/* The workspace logo wrapper must not monochrome its coloured child image. */
html[data-theme] .app-shell .brand-mark,html[data-theme] .app-shell .brand-mark img{filter:none!important}
