/* Butterfly Cafe v7.4.2 — final visual regression hardening */
:root{--bf-dark-bg:#08131c;--bf-dark-surface:#0f202b;--bf-dark-surface-2:#122632;--bf-dark-line:rgba(143,183,232,.16);--bf-dark-text:#edf5f8;--bf-dark-muted:#9db0bc}
.brand-lockup .brand-logo-full{width:76px!important;height:76px!important;object-fit:contain!important;background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;filter:drop-shadow(0 7px 16px rgba(73,48,17,.15))}
.side-brand{min-height:88px}.side-brand .side-logo-full{display:block!important;width:74px!important;height:80px!important;object-fit:contain!important;background:transparent!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 6px 14px rgba(0,0,0,.2))}.side-brand .side-logo-mark{display:none!important;background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important}
.admin-layout.sidebar-collapsed .side-brand .side-logo-full{display:none!important}.admin-layout.sidebar-collapsed .side-brand .side-logo-mark{display:block!important;width:50px!important;height:50px!important;object-fit:contain!important}
html[data-theme="dark"],html.dark{color-scheme:dark;--ink:var(--bf-dark-text)!important;--muted:var(--bf-dark-muted)!important;--paper:var(--bf-dark-surface)!important;--surface:var(--bf-dark-surface-2)!important;--line:var(--bf-dark-line)!important;--blue-deep:#90bee6!important;--gold:#dfbd78!important}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"] body,html.dark body{background:radial-gradient(circle at 18% 0%,rgba(79,134,198,.14),transparent 34%),linear-gradient(145deg,#07121b,#0c1c27 54%,#102535)!important;color:var(--bf-dark-text)!important}
html[data-theme="dark"] :is(.login-shell,.welcome-intro),html.dark :is(.login-shell,.welcome-intro){background:radial-gradient(circle at 40% 12%,rgba(79,134,198,.14),transparent 32%),linear-gradient(145deg,#07131c,#0c1e2a 62%,#112838)!important}
html[data-theme="dark"] :is(.login-card,.topbar,.panel,.metric,.pricing-workspace,.inventory-hero,.stock-alert-panel,.menu-card,.order,.history-item,.modal-card,.cost-table,.recipe-draft-row,.option-group-card,.pricing-card,.smart-cost-model,.pricing-controls,.pricing-overview>div,.pricing-metrics>div,.smart-model-stats>div,.stock-alert-item,.inventory-flow,.inventory-row,.movement-row,.search-admin,.categories,.product-card,.detail-card,.cart-panel,.option-picker-card,.option-picker-group,.order-form,.menu-shell,.hero,.hero-art),html.dark :is(.login-card,.topbar,.panel,.metric,.pricing-workspace,.inventory-hero,.stock-alert-panel,.menu-card,.order,.history-item,.modal-card,.cost-table,.recipe-draft-row,.option-group-card,.pricing-card,.smart-cost-model,.pricing-controls,.pricing-overview>div,.pricing-metrics>div,.smart-model-stats>div,.stock-alert-item,.inventory-flow,.inventory-row,.movement-row,.search-admin,.categories,.product-card,.detail-card,.cart-panel,.option-picker-card,.option-picker-group,.order-form,.menu-shell,.hero,.hero-art){background-color:var(--bf-dark-surface)!important;color:var(--bf-dark-text)!important;border-color:var(--bf-dark-line)!important}
html[data-theme="dark"] :is(.items,.availability,.archive,.cost-section-nav,.system-list div,.cost-summary span,.menu-thumb,.pill,.badge,.verified,.location-test,.option-row,.pricing-recommendation,.type-switch span,.mobile-dock),html.dark :is(.items,.availability,.archive,.cost-section-nav,.system-list div,.cost-summary span,.menu-thumb,.pill,.badge,.verified,.location-test,.option-row,.pricing-recommendation,.type-switch span,.mobile-dock){background-color:#0b1a24!important;color:#cbd9e2!important;border-color:var(--bf-dark-line)!important}
html[data-theme="dark"] :is(input,textarea,select,.input,.cost-tr input,.cost-tr select,.recipe-draft-row input,.recipe-draft-row select,.pricing-controls input,.searchbox input),html.dark :is(input,textarea,select,.input,.cost-tr input,.cost-tr select,.recipe-draft-row input,.recipe-draft-row select,.pricing-controls input,.searchbox input){background:#081720!important;color:#eef6fa!important;border-color:rgba(143,183,232,.20)!important;box-shadow:none!important}
html[data-theme="dark"] :is(.cost-tr.cost-th,.cost-tr,.pricing-card-head,.option-group-head),html.dark :is(.cost-tr.cost-th,.cost-tr,.pricing-card-head,.option-group-head){background-color:#0d1d27!important;color:#dce8ef!important;border-color:var(--bf-dark-line)!important}
html[data-theme="dark"] :is(.btn.soft,.btn.ghost,.tab,.status,.circle,.theme-toggle),html.dark :is(.btn.soft,.btn.ghost,.tab,.status,.circle,.theme-toggle){background:#102632!important;color:#d7e8f1!important;border-color:var(--bf-dark-line)!important}
html[data-theme="dark"] :is(.btn.danger,.danger-confirm,.location-test.error),html.dark :is(.btn.danger,.danger-confirm,.location-test.error){background:#2b1716!important;color:#f0b0a8!important;border-color:#5d302a!important}
html[data-theme="dark"] .location-test.success,html.dark .location-test.success{background:#10271f!important;color:#9ed8bb!important;border-color:#285941!important}
html[data-theme="dark"] :is(.verified,.price-status.healthy),html.dark :is(.verified,.price-status.healthy){background:#10281f!important;color:#9ed8bb!important;border-color:#285941!important}
html[data-theme="dark"] :is(.banner,.cost-warn,.stock-badge.low,.price-status.underpriced,.price-status.watch),html.dark :is(.banner,.cost-warn,.stock-badge.low,.price-status.underpriced,.price-status.watch){background:#302714!important;color:#edcc82!important;border-color:#5c4b20!important}
html[data-theme="dark"] :is(.price-status.loss),html.dark :is(.price-status.loss){background:#311817!important;color:#f1aaa3!important;border-color:#61302b!important}
html[data-theme="dark"] :is(.price-status.premium),html.dark :is(.price-status.premium){background:#11263a!important;color:#a9caeb!important;border-color:#294965!important}
html[data-theme="dark"] :is(.price-status.incomplete),html.dark :is(.price-status.incomplete){background:#20272b!important;color:#b7c3ca!important;border-color:#3c484e!important}
html[data-theme="dark"] :is(.metric b,.panel h2,.panel h3,.panel h4,.cost-head h3,.modal-card h3,.order-code,.price,.product-title h3,.hero-copy h1,.pricing-card-head b,.pricing-recommendation strong),html.dark :is(.metric b,.panel h2,.panel h3,.panel h4,.cost-head h3,.modal-card h3,.order-code,.price,.product-title h3,.hero-copy h1,.pricing-card-head b,.pricing-recommendation strong){color:#eff7fa!important}
html[data-theme="dark"] :is(.muted,.meta,.metric small,.metric span,.panel small,.field label,.system-list span,.pricing-card-foot,.pricing-overview small,.pricing-overview span,.smart-cost-head p,.smart-cost-fields small),html.dark :is(.muted,.meta,.metric small,.metric span,.panel small,.field label,.system-list span,.pricing-card-foot,.pricing-overview small,.pricing-overview span,.smart-cost-head p,.smart-cost-fields small){color:var(--bf-dark-muted)!important}
html[data-theme="dark"] :is(.brand-logo-full,.side-logo-full,.side-logo-mark,.login-logo,.hero-logo,.welcome-logo),html.dark :is(.brand-logo-full,.side-logo-full,.side-logo-mark,.login-logo,.hero-logo,.welcome-logo){background:transparent!important;box-shadow:none!important;border:0!important}
.sidebar-toggle{touch-action:manipulation}.admin-layout.sidebar-collapsed .admin-main{min-width:0}.admin-layout.sidebar-collapsed .sidebar{width:auto!important}
@media(max-width:900px) and (min-width:651px){.side-brand .side-logo-full{display:none!important}.side-brand .side-logo-mark{display:block!important;width:50px!important;height:50px!important}.side-brand>div{display:none!important}}
@media(max-width:650px){.sidebar-toggle{display:none!important}.brand-lockup .brand-logo-full{width:62px!important;height:62px!important}.mast{min-height:76px}.top-actions{max-width:58%;justify-content:flex-start}.topbar h2{font-size:23px!important}.panel{padding:15px!important}.pricing-card-body{grid-template-columns:1fr!important}.pricing-metrics{grid-template-columns:1fr 1fr!important}}
@media(max-width:420px){.brand-lockup .brand-logo-full{width:54px!important;height:54px!important}.cards{grid-template-columns:1fr!important}.metric:last-child{grid-column:auto!important}.pricing-metrics{grid-template-columns:1fr!important}}
