/* Partner workspace theme. Brand tokens are read from the client palette. */
:root {
  --blue:#0049FF;--blue-soft:#edf2ff;--on-blue:#fff;
  --brand-accent:#FFAB00;--on-brand-accent:#152000;
}
.business-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;flex-shrink:0;min-height:40px}
.business-theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.auth-shell{position:relative}
.auth-shell>.business-theme-toggle{position:absolute;top:18px;right:20px}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]){
  --blue:#00F4FF;--blue-soft:#18383E;--on-blue:#06181A;
  --brand-accent:#FF7600;--on-brand-accent:#17181A;
  --ink:#e5ebf4;--muted:#a0aec1;--line:#303d50;--bg:#151b25;--nav:#111722;
  --theme-surface:#1d2532;--theme-soft:#232e3e;--theme-hover:#263544;
  color-scheme:dark;
}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) body{background:var(--bg);color:var(--ink)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.topbar,.panel,.kpi,.form-section,.drawer,.dialog,.auth-card,.search input,.input,select,textarea,.auth-card input,.period,.page-num,.suggestions,.suggestion,.vehicle-option,.mobile-submit,.skip){background:var(--theme-surface);color:var(--ink);border-color:var(--line)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.btn,.icon-button){background:var(--theme-surface);border-color:var(--line);color:var(--ink)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .btn.primary{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .btn.primary:hover{background:var(--blue);filter:brightness(.92)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .btn.danger{background:#402c36;border-color:#593640;color:#f2a2a5}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.btn:not(.primary):not(.danger):hover,.icon-button:hover,.orders-table tbody tr:hover,.address-row:hover,.template-row:hover,.suggestion:hover,.suggestion:focus-visible){background:var(--theme-hover)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.orders-table th,.note,.driver-card,.map,.vehicle-icon,.segment,.tab span,.pill,.section-number,.settings-notice){background:var(--theme-soft);border-color:var(--line);color:var(--muted)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.orders-table td,.orders-table th,.panel-head,.panel-body,.table-footer,.drawer-head,.drawer-footer,.quote-total,.quote-row,.settings-row,.member-row,.timeline li,.success-price,.stepper){border-color:var(--line)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.hint,.field label,.field-label,.field label em,.table-sub,.route-cell .route-from,.table-footer,.kpi-note,.dispatch-meta small,.vehicle-option small,.quote-legal,.quote-row small,.draft-state,.map-point small,.map-empty,.map-title span,.bar-wrap small,.bar-labels span,.employee-row p,.settings-row span,.drawer-head p,.drawer-point small,.detail-label,.driver-card p,.timeline small,.timeline time,.mobile-submit small,.demo-footer,.auth-brand span){color:var(--muted)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.quick-create,.vehicle-option.active,.map-point b,.drawer-point .letter,.employee-row .user-avatar,.page-num.active){background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.quick-create .eyebrow,.quick-create p,.quick-create .quick-foot,.kpi-note.blue,.nav a.active svg,.auth-brand){color:var(--blue)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .nav a.active{background:#18383e}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .segment button{color:var(--muted)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .segment button.active{background:var(--theme-surface);color:var(--blue)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .active .vehicle-check{box-shadow:inset 0 0 0 3px var(--theme-surface)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.vehicle-check,.bars){border-color:var(--line)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .bar{background:var(--blue-soft)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .map-caption{background:var(--theme-surface);color:var(--muted)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .status.blue{background:var(--blue-soft);color:var(--blue)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.status.amber,.note.warning){background:#3b3224;color:#ebc387;border-color:#59442d}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .status.green,html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .success-mark{background:#233b32;color:#91d9b1}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .status.violet{background:#342d47;color:#d1b6fb}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .status.gray{background:var(--theme-soft);color:var(--muted)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.status.red,.invalid){background:#402c36;color:#f2a2a5;border-color:#593640}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.auth-message,.field-error){color:#f2a2a5}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.drawer-point .letter.to,.map-point:last-child b){background:#3b3224;color:#ebc387}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .timeline li:before{border-color:var(--theme-surface);background:var(--blue);box-shadow:0 0 0 1px var(--line)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(.company-avatar,.user-avatar){background:var(--blue-soft);color:var(--blue)}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) .dialog::backdrop{background:#050a12a8}
html:is([data-business-theme="dark"],[data-admin-theme="dark"]) :is(button,a,input,select,textarea):focus-visible{outline-color:var(--blue)}
@media(max-width:767px){.top-right{gap:8px}.top-right .business-theme-toggle{width:40px;min-width:40px;padding:8px}.top-right .business-theme-toggle span{display:none}.auth-shell>.business-theme-toggle{right:16px;top:16px}}
