/* Approved navy/cyan theme. Colours only: no sizing, layout or money behaviour. */
/* Important theme colours precede page-local important colours, even when a
   partial inserts its style block later. Light mode has no matching selectors. */
@layer v2-theme-controls {
@media screen {
html.app-color-inverted,
html.app-color-inverted body {
    color-scheme: dark;
    --bg: #101925 !important;
    --bg-accent: #14212e !important;
    --surface: #172635 !important;
    --surface-strong: #172635 !important;
    --surface-soft: #1e3040 !important;
    --card: #172635 !important;
    --card-2: #1e3040 !important;
    --panel: #172635 !important;
    --line: #354b5d !important;
    --line-soft: #2c4052 !important;
    --line-strong: #4b667a !important;
    --text: #d9e2eb !important;
    --sub: #b0bfce !important;
    --text-secondary: #b0bfce !important;
    --muted: #b0bfce !important;
    --brand: #5fa6b5 !important;
    --brand-soft: #203947 !important;
    --primary: #5fa6b5 !important;
    --primary-hover: #7bb7c4 !important;
    --primary-strong: #7bb7c4 !important;
    --primary-soft: #203947 !important;
    --accent: #7fb8c3 !important;
    --hover-surface: #203947 !important;
    --hover-surface-strong: #284655 !important;
    --hover-line: #7fb8c3 !important;
    --danger: #ff99a8 !important;
    --danger-soft: #321c2b !important;
    --success: #72e5b3 !important;
    --success-soft: #102c2c !important;
    --ui-ink: #d9e2eb !important;
    --ui-muted: #b0bfce !important;
    --ui-border: #354b5d !important;
    --ui-bg: #101925 !important;
    --ui-blue: #5fa6b5 !important;
    --ui-blue-soft: #203947 !important;
    --ui-success: #72e5b3 !important;
    --ui-warning: #ffd58a !important;
    --ui-danger: #ff99a8 !important;
    background: #101925 !important;
    color: #d9e2eb !important;
}
/* Settlement summary uses legacy fallback tokens scoped to this component. */
html.app-color-inverted .settlement-money-overview {
    --panel-bg:#172635 !important;
    --accent-soft:#203947 !important;
    --border-color:#354b5d !important;
    --text-secondary:#b0bfce !important;
}
/* Remove old whole-document and compensating media filters, including dialogs. */
html.app-color-inverted body,
html.app-color-inverted :is(img,video,canvas,iframe,svg,.brand-mark,.login-mark,.app-dialog) {
    filter: none !important;
}
html.app-color-inverted :is(dialog,.app-dialog)::backdrop { background: #010714b8 !important; }
html.app-color-inverted :is(.sidebar,.mobile-bottom-nav,.rider-bottom-nav) {
    background: #14212e !important; border-color: #354b5d !important;
}
html.app-color-inverted .app-shell.v1-parity,
html.app-color-inverted .app-shell.v1-parity > .content { background:#101925 !important; }
html.app-color-inverted :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=hidden]),select,textarea) {
    background: #101925 !important; color: #d9e2eb !important;
    border-color: #354b5d !important; caret-color: #7fb8c3;
    color-scheme: dark;
}
html.app-color-inverted :is(input,textarea)::placeholder { color: #91a9be !important; opacity:1; }
html.app-color-inverted :is(select option,select optgroup) { background:#172635 !important; color:#d9e2eb !important; }
html.app-color-inverted :is(input,select,textarea):disabled { color:#91a9be !important; background:#1c2b39 !important; }
html.app-color-inverted input:-webkit-autofill {
    -webkit-text-fill-color:#d9e2eb !important;
    box-shadow:0 0 0 1000px #101925 inset !important;
    caret-color:#7fb8c3;
}
html.app-color-inverted input::-webkit-calendar-picker-indicator { filter:none !important; opacity:1; }
html.app-color-inverted :is(input[type=checkbox],input[type=radio],progress) { accent-color:#5fa6b5 !important; }
html.app-color-inverted :is(button,a,input,select,textarea,summary):focus-visible {
    outline:2px solid #7fb8c3 !important; outline-offset:3px;
}
html.app-color-inverted :is(.primary-btn,.login-btn,.login-submit,.submit-btn,.rider-withdrawal-open-button,.rider-password-top-button,.customer-support-compose button,.customer-support-human-submit) {
    background:#5fa6b5 !important; border-color:#5fa6b5 !important; color:#04121f !important;
    box-shadow:none !important;
}
html.app-color-inverted :is(.primary-btn,.login-btn,.login-submit,.submit-btn):hover { background:#7bb7c4 !important; }
html.app-color-inverted :is(.primary-btn,.login-btn,.login-submit,.submit-btn) :is(span,strong,small) { color:inherit !important; }
html.app-color-inverted :is(.brand-mark,.login-mark,.login-badge,.brand-badge) { background:#5fa6b5 !important; color:#04121f !important; }
html.app-color-inverted :is(.nav-link.active,.nav-link[aria-current=page],.mobile-bottom-nav a.active) {
    background:#203947 !important; color:#7fb8c3 !important; border-color:#354b5d !important;
}
html.app-color-inverted .color-invert-switch { background:#5fa6b5 !important; border-color:#5fa6b5 !important; }
html.app-color-inverted .color-invert-switch::after { background:#04121f !important; }
html.app-color-inverted ::selection { background:#5fa6b5; color:#04121f; }
html.app-color-inverted :is(h1,h2,h3,h4) { color:#d9e2eb !important; }
html.app-color-inverted :is(.primary-btn,.login-btn,.login-submit,.submit-btn,.standalone-theme-toggle,.login-card button[type=submit],.rider-withdrawal-open-button,.rider-password-top-button,.brand-mark,.login-mark,.brand-badge,.login-badge) {
    background:#5fa6b5 !important; border-color:#5fa6b5 !important; color:#04121f !important;
}
html.app-color-inverted :is(.hero-card,.login-card,.card,.panel,.surface,.sidebar) { background-image:none !important; }
html.app-color-inverted .payout-pg-fee-option,
html.app-color-inverted [data-fee-payer] { color:#ff99a8 !important; }
/* Rider option labels use fallback tokens outside the roster scope. */
html.app-color-inverted .rider-dialog {
    --rider-text: #d9e2eb !important;
    --rider-sub: #b0bfce !important;
    --rider-brand: #5fa6b5 !important;
}
/* Standalone help keeps the same readable ink as filled action buttons. */
html.app-color-inverted body:not(.admin-font-scale) .help-manual-launcher {
    color: #04121f !important;
    box-shadow: none !important;
}
/* The compact topbar owns its field backgrounds, not the label wrappers. */
html.app-color-inverted .app-shell.v1-parity :is(.topbar-tab-scope-form, .dashboard-topbar-month-form) {
    background: transparent !important;
    box-shadow: none !important;
}
/* Native print/receipt colours remain light and are governed by existing print CSS. */
}
}
.standalone-theme-toggle { min-height:44px; padding:8px 12px; margin:12px 16px; border:1px solid var(--line,#cbd5e1); border-radius:8px; background:var(--card,#fff); color:var(--text,#172033); font:inherit; cursor:pointer; }
@media print { .standalone-theme-toggle { display:none !important; } }
