/* V60.55: opt-in admin-only palettes. Classic mode has no palette overrides.
   Keep order channel/status colors, QR previews, maps and destructive actions intact. */
.mp-appearance-label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;flex-wrap:wrap}
.mp-appearance-label select{width:auto;max-width:100%;min-width:150px;margin:0}
.mp-admin-language{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mp-appearance-note{font-size:13px;margin:8px 0 0}
.mp-appearance-settings{margin:0 0 16px}
.mp-appearance-settings h3{margin-top:0}
[data-mp-appearance-status]:empty{display:none}
.mp-admin-shell[data-admin-theme="orange"]{--mp-shell:#26282c;--mp-shell-raised:#30343a;--mp-shell-border:#454a50;--mp-shell-text:#f4f5f6;--mp-shell-muted:#c6c9ce;--mp-bg:#f3f4f6;--mp-surface:#fff;--mp-soft:#f8f5f2;--mp-ink:#26282c;--mp-muted:#626872;--mp-line:#d8dce1;--mp-accent:#ff791f;--mp-action:#a84407;--mp-on-action:#fff;--mp-accent-soft:#fff0e5}
.mp-admin-shell[data-admin-theme="dark"]{--mp-shell:#17191d;--mp-shell-raised:#26282c;--mp-shell-border:#41464d;--mp-shell-text:#f4f5f6;--mp-shell-muted:#c4c9d0;--mp-bg:#202226;--mp-surface:#2d3035;--mp-soft:#363a41;--mp-ink:#f4f5f6;--mp-muted:#c2c8d0;--mp-line:#505760;--mp-accent:#ff9b57;--mp-action:#ff9b57;--mp-on-action:#241508;--mp-accent-soft:#493427;color-scheme:dark}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]){background:var(--mp-bg);color:var(--mp-ink);--primary:var(--mp-action);--text:var(--mp-ink);--muted:var(--mp-muted);--border:var(--mp-line);--background:var(--mp-bg)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-sidebar{background:var(--mp-shell);color:var(--mp-shell-text);border-color:var(--mp-shell-border)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-sidebar-brand strong{color:var(--mp-accent)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp-sidebar-brand small,.mp-control-label){color:var(--mp-shell-muted)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp-sidebar-restaurant,.mp-sidebar-controls,.mp-sidebar-nav .mp-nav-group[open]){background:var(--mp-shell-raised);border-color:var(--mp-shell-border);color:var(--mp-shell-text)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp-nav-group-label,.mp-sidebar-controls summary,.mp-sidebar .mp-nav-item){color:var(--mp-shell-text)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp-nav-group-label:hover,.mp-nav-group[open]>.mp-nav-group-label,.mp-sidebar .mp-nav-item:hover){background:var(--mp-shell-raised);color:var(--mp-accent)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-sidebar .mp-nav-item.is-active{background:var(--mp-accent);color:#21150d}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-sidebar-controls button{background:var(--mp-action);color:var(--mp-on-action);border-color:var(--mp-action)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-sidebar-controls button[aria-pressed="false"]{background:var(--mp-shell-raised);border-color:var(--mp-shell-border);color:var(--mp-shell-text)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-sidebar-footer a{color:var(--mp-accent)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-sidebar-footer button{background:var(--mp-shell-raised);border-color:var(--mp-shell-border);color:var(--mp-shell-text)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-sidebar :is(button,summary,a):focus-visible{outline-color:var(--mp-accent)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-admin-eyebrow{color:var(--mp-muted)}
/* The customer's actual preview is a separate theme; restore original inherited variables. */
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-public{--primary:#176b4d;--text:#17251e;--muted:#718078;--border:#e2e9e4;--background:#f5f7f6;color:#17251e;color-scheme:light}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.card,.panel,.mp-category-tile,.mp606-listwrap,.mp606-panel,.mp-theme-card,.mp6041-card,.mp6040-qr-card,.mp6040-tables .mp-table-entry,.mp-subscription-plans .plan,.mp-checkout-summary,.mp-campaign-picker):not(.mp-public,.mp-public *){background:var(--mp-surface);color:var(--mp-ink);border-color:var(--mp-line)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp606-head,.mp602-actions,.mp6041-tabs,.mp6041-table-card th,.mp6041-chart-kpis,.mp6041-table-total,.mp6041-filter,.mp6041-kpi,.mp6041-total):not(.mp-public *){background:var(--mp-soft);color:var(--mp-ink);border-color:var(--mp-line)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(input:not([type=checkbox],[type=radio],[type=color],[type=range]),select,textarea):not(.mp-public *,.leaflet-container *){background:var(--mp-surface);color:var(--mp-ink);border-color:var(--mp-line)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(input[type=checkbox],input[type=radio]):not(.mp-public *){accent-color:var(--mp-action)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp-admin-main a,.mp-category-arrow,.mp-subscription-plans .price,.mp-subscription-plans .mp-checkout-total dd,.mp6041-chart-kpis b):not(.mp-public *){color:var(--mp-action)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp6041,.mp-category-info,.mp606-open,.mp-theme-meta,.mp-subscription-plans,.mp6040-tables){color:var(--mp-ink)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp6041-header p,.mp6041-status,.mp6041-legend,.mp6041-chart-period,.mp6041-heat-info,.mp6041-heat-legend,.mp6041 small,.mp-category-info small,.mp-category-hint,.mp-category-breadcrumb small,.mp-theme-meta small,.mp-subscription-plans .mp-plan-note,.mp-subscription-plans .mp-plan-head p,.mp-subscription-plans .plan p){color:var(--mp-muted)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp6041-icon,.mp6041-table-total,.mp-subscription-plans .mp-checkout-step){background:var(--mp-accent-soft);color:var(--mp-action)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp6041-kpi-main,.mp6041-total .mp6041-table-total,.mp6041-tabs button[aria-pressed=true],.mp-subscription-plans button.primary,.mp606-panel #productform .mp-form-btn-primary,.mp606-panel #productform #mp-ingredient-add,.mp-campaign-tabs button[aria-pressed=true],.mp-compact-order .mp-compact-right>button.mp-table-settle-button){background:var(--mp-action);border-color:var(--mp-action);color:var(--mp-on-action)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp6041-kpi-main :is(small,.mp6041-icon){color:var(--mp-on-action)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp6041-chart text{fill:var(--mp-muted)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp6041-heat th,.mp6041-heat th:first-child){background:var(--mp-surface);color:var(--mp-muted)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) :is(.mp6041-secondary,.mp-subscription-plans button.secondary,.mp-category-back,#mp606-cancel-sort,.mp606-panel #productform .mp-form-btn-ghost,.mp606-panel #productform .mp-form-btn-soft){background:var(--mp-surface);color:var(--mp-action);border-color:var(--mp-line)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-subscription-plans .plan.featured{border-color:var(--mp-accent)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp-admin-main :is(button,input,select,textarea,a,summary):not(.mp-public *):focus-visible{outline:2px solid var(--mp-action);outline-offset:2px}
/* Dark mode keeps QR codes, maps and semantic order colors on their own light surfaces. */
.mp-admin-shell[data-admin-theme="dark"] .mp-compact-order{color:#17251e;color-scheme:light;--text:#17251e;--muted:#526b5e}
.mp-admin-shell[data-admin-theme="dark"] .mp-compact-order :is(input,select,textarea){background:#fff;color:#17251e}
.mp-admin-shell[data-admin-theme="dark"] .mp-compact-order .mp-order-muted{color:#526b5e}
.mp-admin-shell[data-admin-theme="dark"] .mp6040-tables .mp-table-qr{background:white;color:#17251e;color-scheme:light}
.mp-admin-shell[data-admin-theme="dark"] .mp606-open{color:var(--mp-ink)!important}
.mp-admin-shell[data-admin-theme="dark"] .mp606-dirty{color:#34260b}
.mp-admin-shell[data-admin-theme="dark"] :is(.mp6041-tabs button[aria-pressed=false],.mp6041 .mp6041-tabs button:not([aria-pressed=true])){color:var(--mp-ink)}
/* Existing legacy light overlays remain readable and keep warning/status semantics. */
body:has(.mp-admin-shell[data-admin-theme="dark"]) :is(.mp-payment-modal,.mp-connection-panel,.mp-table-settlement-dialog,.mp-order-payment-dialog,.mp-schedule-drawer,.mp-plan-dialog,.mp-theme-dialog,.mp-library-dialog){color-scheme:light}
@media(max-width:500px){.mp-admin-language{width:100%;gap:8px}.mp-appearance-label{width:100%}.mp-appearance-label select{flex:1;min-width:0}}

/* V60.55 contrast follow-up: preserve white default button text on a darker action color. */
.mp-admin-shell[data-admin-theme="dark"]{--primary:#a84407}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) #mp-bundle-editor{background:var(--mp-surface);color:var(--mp-ink);border-color:var(--mp-line)}
.mp-admin-shell[data-admin-theme="dark"] .card[style*="background:#f9fcfa"]{background:var(--mp-surface)!important;border-color:var(--mp-line)!important}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp6041 .mp6041-kpi-main{background:var(--mp-action);border-color:var(--mp-action);color:var(--mp-on-action)}
.mp-admin-shell:is([data-admin-theme="orange"],[data-admin-theme="dark"]) .mp6041 .mp6041-kpi-main .mp6041-icon{background:transparent;color:var(--mp-on-action)}
.mp-admin-shell[data-admin-theme="dark"] .mp606-dirty{color:#34260b}
