/* Elvensong visual refresh — 2026-10-06.
 * Presentation only. Existing DOM, grids, positioning, scrolling, breakpoints,
 * requests, business rules and print layouts are retained.
 * Disable by removing link#elvensong-design-20261006 from index.html.
 */
@font-face{font-family:Elvensong Inter;src:url('/elvensong-design-inter-cyrillic.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Elvensong Inter;src:url('/elvensong-design-inter-latin.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@media screen {
 html:root {
  --ev-canvas:#f3f5f9;--ev-surface:#fff;--ev-soft:#f7f9fc;
  --ev-ink:#202b40;--ev-muted:#57667c;--ev-line:#dde4ed;
  --ev-blue:#315fd5;--ev-blue-hover:#244bb3;--ev-selected:#eaf0ff;
  --ev-green:#166746;--ev-amber:#8b4d0c;--ev-red:#b42335;
  --ev-shadow:0 1px 2px #20304a05,0 4px 16px #20304a05;
  --ev-font:'Elvensong Inter','Segoe UI',Arial,sans-serif;
  --app-font-sans:var(--ev-font);--font:var(--ev-font);
 }
 html body,html .ops-root,html #esw-overlay{font-family:var(--ev-font)!important;-webkit-font-smoothing:antialiased}
 html :is(input,select,textarea,button){font-family:inherit}
 html :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--ev-blue)!important;outline-offset:3px!important}
 html input:is([type=checkbox],[type=radio]){accent-color:var(--ev-blue)}
 html :is(button,input,select,textarea):disabled{cursor:not-allowed}

 /* Public catalog: fixed header/search dimensions and product grids preserved. */
 html[data-storefront="1"]{
  color-scheme:light;
  /* redesign: shadcn/Tailwind semantic vars -> warm light palette #f4f1ea */
  --background:42 31% 94%;--foreground:43 12% 12%;
  --card:40 33% 98%;--card-foreground:43 12% 12%;
  --popover:40 33% 98%;--popover-foreground:43 12% 12%;
  --primary:234 56% 58%;--primary-foreground:0 0% 100%;
  --secondary:42 29% 91%;--secondary-foreground:43 12% 12%;
  --muted:42 26% 89%;--muted-foreground:43 7% 40%;
  --accent:234 56% 58%;--accent-foreground:0 0% 100%;
  --border:41 24% 87%;--input:41 20% 86%;--ring:234 56% 58%;--radius:12px;
  /* redesign: warm light tokens, accent indigo #5E6AD2, emerald = stock badge only */
  --ev-canvas:#f4f1ea;--ev-surface:#fff;--ev-soft:#faf8f3;--ev-raised:#f0ece3;
  --ev-ink:#211f1a;--ev-muted:#6e6a60;--ev-faint:#97928a;
  --ev-line:#e5e0d5;--ev-line-strong:#d6d0c2;
  --ev-blue:#5E6AD2;--ev-blue-hover:#4F5ABF;--ev-selected:#eaecfb;
  --ev-accent-text:#4F5ABF;--ev-accent-soft:rgba(94,106,210,.12);
  --ev-green:#047857;--ev-green-text:#065f46;
  --ev-amber:#92400e;--ev-amber-soft:#fdf3e2;
  --ev-red:#b91c1c;--ev-red-soft:#fdeaea;
  --ev-shadow:0 1px 2px rgba(31,29,24,.06),0 6px 20px rgba(31,29,24,.08);
 }
 html[data-storefront="1"] body{color:var(--ev-ink);background:var(--ev-canvas)}
 html[data-storefront="1"] #root .bg-background{background:var(--ev-canvas)}
 /* redesign: sticky header — glass blur */
 html[data-storefront="1"] #root header{background:rgba(244,241,234,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:var(--ev-line);box-shadow:0 1px 0 rgba(33,31,26,.06)}
 html[data-storefront="1"] header a[href="/"]{color:var(--ev-ink)}
 html[data-storefront="1"] header a[href="/"] .font-bold{font-weight:600;letter-spacing:-.02em}
 html[data-storefront="1"] header a[href="/"] svg{color:var(--ev-blue)}
 html[data-storefront="1"] header .text-muted-foreground{color:var(--ev-muted)}
 html[data-storefront="1"] main>.fixed{background:rgba(244,241,234,.92)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:var(--ev-line);box-shadow:0 4px 16px rgba(31,29,24,.1)}
 /* redesign: light inputs + indigo focus ring (later + !important beats storefront-controls-fix) */
 html[data-storefront="1"] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--ev-surface)!important;color:var(--ev-ink)!important;border-color:var(--ev-line-strong)!important;border-radius:8px;box-shadow:none}
 html[data-storefront="1"] :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:var(--ev-blue)!important;box-shadow:0 0 0 3px rgba(94,106,210,.2)!important}
 html[data-storefront="1"] input::placeholder{color:var(--ev-faint)!important}
 html[data-storefront="1"] :is(input,textarea):-webkit-autofill{box-shadow:0 0 0 1000px var(--ev-soft) inset!important;-webkit-text-fill-color:var(--ev-ink)!important;caret-color:var(--ev-ink)}
 /* redesign: category sidebar */
 html[data-storefront="1"] main aside .bg-card{background:var(--ev-surface)!important;border-color:var(--ev-line);border-radius:12px;box-shadow:none}
 html[data-storefront="1"] main aside button{color:var(--ev-muted);font-weight:500;letter-spacing:-.015px}
 html[data-storefront="1"] main aside button.bg-primary{background:var(--ev-selected)!important;color:var(--ev-accent-text)!important;font-weight:500;box-shadow:none}
 /* redesign: sidebar must not lift: pin it exactly at its resting spot (177px = band bottom 145 + pt 32), desktop only; mobile untouched */
 @media (min-width:768px){
  html[data-storefront="1"] main aside .sticky{position:sticky!important;top:177px!important}
 }
 /* redesign: product card — white surface on warm canvas, hairline border, 12px radius */
 html[data-storefront="1"] a[href^="/product/"].group{color:var(--ev-ink);background:var(--ev-surface);border-color:var(--ev-line);border-radius:12px;box-shadow:0 1px 2px rgba(31,29,24,.05);transition:border-color .15s ease,box-shadow .15s ease}
 html[data-storefront="1"] a[href^="/product/"].group>.aspect-square{background:var(--ev-raised);border-bottom:1px solid var(--ev-line)}
 html[data-storefront="1"] a[href^="/product/"].group img{object-fit:contain;transform:none!important}
 html[data-storefront="1"] a[href^="/product/"].group h3{color:var(--ev-ink);font-weight:600;line-height:1.4;letter-spacing:-.01em;transition:color .15s ease}
 html[data-storefront="1"] a[href^="/product/"].group .font-mono{color:var(--ev-faint);font-size:11px;letter-spacing:0}
 html[data-storefront="1"] a[href^="/product/"].group .text-amber-700{color:var(--ev-ink);font-weight:600}
 html[data-storefront="1"] a[href^="/product/"].group .bg-amber-600{background:var(--ev-amber-soft);color:var(--ev-amber);font-weight:600;letter-spacing:0;text-transform:none;box-shadow:0 0 0 1px rgba(146,64,14,.25)}
 /* redesign: emerald "in stock" badge = opaque pill, readable over any photo (accent stays indigo) */
 html[data-storefront="1"] a[href^="/product/"].group [class~="bg-black/70"]{background:#d1fae5;color:var(--ev-green-text);font-weight:600;box-shadow:0 0 0 1px rgba(4,120,87,.22)}
 /* redesign: buttons */
 html[data-storefront="1"] :is(button.bg-primary,a.bg-primary){background:var(--ev-blue)!important;color:#fff!important;border-color:var(--ev-blue)!important;box-shadow:0 1px 2px rgba(31,29,24,.16),0 4px 12px rgba(94,106,210,.22);transition:background .15s ease,box-shadow .15s ease}
 html[data-storefront="1"] button.bg-primary svg{color:inherit}
 html[data-storefront="1"] :is(header button,button.bg-secondary){background:var(--ev-surface);color:var(--ev-ink);border-color:var(--ev-line-strong);border-radius:8px;transition:background .15s ease}
 html[data-storefront="1"] main h1{color:var(--ev-ink);letter-spacing:-.02em;font-weight:600}
 html[data-storefront="1"] footer{background:var(--ev-surface);border-color:var(--ev-line);border-top:1px solid var(--ev-line);color:var(--ev-muted)}

 /* Admin tokens cover the embedded Ops app as well as React pages. */
 html.es-admin-shell:root{
  color-scheme:light;
  /* redesign: warm storefront palette (variants 1+2) — admin recolors itself through existing var() usages */
  --ev-canvas:#f4f1ea;--ev-surface:#fff;--ev-soft:#faf8f3;--ev-raised:#f0ece3;
  --ev-ink:#211f1a;--ev-muted:#6e6a60;--ev-faint:#97928a;
  --ev-line:#e5e0d5;--ev-line-strong:#d6d0c2;
  --ev-blue:#5E6AD2;--ev-blue-hover:#4F5ABF;--ev-selected:#eaecfb;--ev-accent-text:#4F5ABF;
  --ev-accent-soft:rgba(94,106,210,.12);
  --ev-green:#047857;--ev-green-text:#065f46;
  --ev-amber:#92400e;--ev-amber-soft:#fdf3e2;
  --ev-red:#b91c1c;--ev-red-soft:#fdeaea;
  --ev-shadow:0 1px 2px rgba(31,29,24,.06),0 6px 20px rgba(31,29,24,.08);
  --bg:var(--ev-canvas);--panel:var(--ev-surface);--panel-2:var(--ev-soft);
  --line:var(--ev-line);--text:var(--ev-ink);--muted:var(--ev-muted);--title:var(--ev-ink);
  --blue:var(--ev-blue);--blue-hover:var(--ev-blue-hover);--green:var(--ev-green);--gold:var(--ev-amber);--danger:var(--ev-red);
  --inset:#fff;--inset-2:#f6f3ec;--inset-border:#d6d0c2;--control-text:var(--ev-ink);--control-muted:var(--ev-muted);
  --finance-box:var(--ev-soft);--finance-label:var(--ev-muted);--finance-value:var(--ev-ink);--finance-value-accent:var(--ev-ink);
  --foreground:43 12% 12%;--muted-foreground:43 7% 40%;--primary:234 56% 58%;--background:42 31% 94%;
 }
 html.es-admin-shell body{background:var(--ev-canvas);color:var(--ev-ink)}
 html.es-admin-shell :is(.bg-slate-950,.bg-slate-950\/50){background:var(--ev-canvas)!important}
 html.es-admin-shell :is(.bg-slate-900,.bg-slate-900\/50,.bg-slate-900\/60,.bg-slate-900\/70){background:var(--ev-surface)!important}
 html.es-admin-shell :is(.bg-slate-800,.bg-slate-800\/50,.bg-slate-800\/60,.bg-slate-800\/80,.bg-slate-700){background:var(--ev-soft)!important}
 html.es-admin-shell :is(.border-slate-800,.border-slate-700,.border-slate-600,.divide-slate-800>*+*){border-color:var(--ev-line)!important}
 html.es-admin-shell :is(.text-white,.text-slate-100,.text-slate-200,.text-slate-300){color:var(--ev-ink)!important}
 html.es-admin-shell body :is(.text-slate-400,.text-slate-500,.text-slate-600,.text-gray-400,.text-gray-500,.text-muted,.text-muted-foreground,.muted){color:var(--ev-muted)!important}
 html.es-admin-shell :is(.text-blue-300,.text-blue-400,.text-cyan-300,.text-cyan-400){color:#4F5ABF!important}
 html.es-admin-shell :is(.text-green-300,.text-green-400,.text-emerald-400){color:var(--ev-green)!important}
 html.es-admin-shell :is(.text-red-300,.text-red-400){color:var(--ev-red)!important}
 html.es-admin-shell :is(.text-amber-300,.text-amber-400,.text-yellow-300,.text-yellow-400){color:var(--ev-amber)!important}
 html.es-admin-shell :is(h1,h2){letter-spacing:-.45px}
 html.es-admin-shell :is(td,.price,.finance-card b,.sales-stat b){font-variant-numeric:tabular-nums}
 html.es-admin-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important;border-radius:8px;box-shadow:0 1px 2px #20304a03}
 html.es-admin-shell :is(input,textarea)::placeholder{color:#97928a!important}
 html.es-admin-shell body button:not(:disabled){color:var(--ev-ink)!important}
 html.es-admin-shell button:disabled{color:var(--ev-muted)!important}
 html.es-admin-shell :is(button.bg-blue-600,button.bg-primary,button.bg-blue-700,.ops-btn,.ops-btn:not(:disabled)){
  background:var(--ev-blue)!important;color:#fff!important;border-color:var(--ev-blue)!important;border-radius:8px;box-shadow:0 1px 3px #5e6ad21a;
 }
 html.es-admin-shell body :is(.ops-btn.secondary,button.border-slate-600,button.border-cyan-700,button.border-green-700,button.border-amber-700,.esia-launch,#enu-btn){background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important;box-shadow:0 1px 2px #20304a05}
 html.es-admin-shell body :is(.ops-btn.good,button.bg-green-600){background:var(--ev-green)!important;color:#fff!important;border-color:var(--ev-green)!important}
 html.es-admin-shell body :is(.ops-btn.gold){background:#fff3df!important;color:var(--ev-amber)!important;border-color:#e9c991!important}
 html.es-admin-shell body :is(.ops-btn.danger,button.bg-red-600,button.bg-red-700){background:#fff0f1!important;color:var(--ev-red)!important;border-color:#ecc6cd!important}
 html.es-admin-shell :is(.bg-blue-950\/20,.bg-blue-950\/30,.bg-blue-950\/40,.bg-blue-900\/20){background:var(--ev-selected)!important;border-color:#d4d7f4!important}
 html.es-admin-shell :is(.bg-red-950\/20,.bg-red-950\/30){background:#fff0f1!important}
 html.es-admin-shell :is(.bg-green-950\/20,.bg-green-900\/20){background:#edf7f1!important}

 /* The primary navigation keeps its existing width, order and mobile drawer. */
 html.es-admin-shell #root aside{background:#fff!important;border-color:var(--ev-line)!important;box-shadow:2px 0 12px #20304a03}
 html.es-admin-shell #root aside>div>div:first-child{background:#fff}
 html.es-admin-shell #root aside>div>div:first-child p:first-child{color:#4F5ABF!important;font-size:18px;letter-spacing:-.5px}
 html.es-admin-shell #root aside nav a>span{color:var(--ev-muted)!important;border-radius:8px;font-weight:500}
 html.es-admin-shell #root aside nav a>span.bg-blue-600{background:var(--ev-selected)!important;color:#4F5ABF!important;font-weight:650}
 html.es-admin-shell #root aside nav a>span svg{color:inherit}
 html.es-admin-shell #root aside nav a[href="/admin/products"],html.es-admin-shell #root aside nav a[href="/admin/backup"]{border-top-color:var(--ev-line)}

 /* Operational surfaces: exact class names, never change positioning/overflow. */
 html.es-admin-shell :is(.ops-top,.ops-mobile-top,.ops-more-sheet){background:#fff!important;border-color:var(--ev-line)!important;box-shadow:0 2px 8px #20304a03}
 html.es-admin-shell :is(.finance-card,.sales-stat,.settings-card,.receipt-box,.login-card,.picker,.suggest-box,.deal-page,.table-scroll){border-color:var(--ev-line)!important;box-shadow:var(--ev-shadow);background:#fff!important}
 html.es-admin-shell .finance-card.total{background:#eaecfb!important;border-color:#d4d7f4!important}
 html.es-admin-shell :is(.finance-card b,.sales-stat b){font-weight:650;letter-spacing:-.4px}
 html.es-admin-shell :is(.finance-card span,.sales-stat span,.section-title,.sales-dates,.sales-seller,.table th){text-transform:none;letter-spacing:0;color:var(--ev-muted)}
 html.es-admin-shell .kanban-col{background:#f3efe6!important;border-color:var(--ev-line)!important}
 html.es-admin-shell .deal-card{background:#fff!important;border-color:var(--ev-line)!important;box-shadow:0 1px 3px #20304a08}
 html.es-admin-shell .deal-card :is(h3,.price){color:var(--ev-ink)!important}
 html.es-admin-shell :is(.deal-card .muted,.deal-card .card-meta){color:var(--ev-muted)!important}
 html.es-admin-shell .card-finance{background:var(--ev-soft)!important;border-color:var(--ev-line)!important}
 html.es-admin-shell :is(.kanban-col-head,.kanban-col-head * ){color:#fff!important}
 html.es-admin-shell .thumb{background:#fff;border-color:var(--ev-line)}
 html.es-admin-shell .table{background:#fff}
 html.es-admin-shell :is(table thead,table th){background:var(--ev-soft)!important;color:var(--ev-muted)!important;border-color:var(--ev-line)!important}
 html.es-admin-shell table td{border-color:#e5e0d5!important}
 html.es-admin-shell :is(.table tbody tr:nth-child(even):not(.row-active) td){background:#fbfcfe}
 html.es-admin-shell :is(.period-chip,.sales-tabs button){background:#fff;border-color:#d6d0c2;color:var(--ev-ink)!important}
 html.es-admin-shell :is(.period-chip.active,.sales-tabs button.active,.tabs button.active){background:var(--ev-selected)!important;color:#4F5ABF!important;border-color:#ccd0ee!important}
 html.es-admin-shell :is(.img-lightbox-panel,.modal,.modal-panel,.modal-card){background:#fff!important;border-color:var(--ev-line)!important;color:var(--ev-ink)}
 html.es-admin-shell .es-remember span{color:var(--ev-muted)}
 html.es-admin-shell #es-aa-bar{background:var(--ev-soft)!important;border-color:var(--ev-line)!important;color:var(--ev-ink)!important}
 html.es-admin-shell #root aside>div>div.border-t{background:#fff!important;box-shadow:0 -1px 0 var(--ev-line)!important}
 html.es-admin-shell #es-aa-bar :is(span,b){color:var(--ev-ink)!important}
 html.es-admin-shell #es-aa-bar .es-aa-muted{color:var(--ev-muted)!important}
 html.es-admin-shell #es-aa-bar button{background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important}
 html.es-admin-shell #es-aa-bar button.primary{background:var(--ev-blue)!important;color:#fff!important}
 html.es-admin-shell #es-bxauto{background:#fff!important;color:var(--ev-ink)!important;border-color:var(--ev-line)!important;box-shadow:var(--ev-shadow)}
 html.es-admin-shell #es-bxauto-title,html.es-admin-shell #es-bxauto-grid :is(.es-bxauto-k,.es-bxauto-v){color:var(--ev-ink)!important}
 html.es-admin-shell #es-bxauto-grid .es-bxauto-card{background:var(--ev-soft)!important;border-color:var(--ev-line)!important}
 html.es-admin-shell #es-bxauto-acts button{background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important}
 html.es-admin-shell #es-bxauto-badge.wait,html.es-admin-shell #es-bxauto-msg{color:var(--ev-muted)!important}
html.es-admin-shell #es-bxauto-steps .es-bxauto-step{background:var(--ev-soft)!important;border-color:var(--ev-line)!important}html.es-admin-shell #es-bxauto-steps .es-bxauto-num{background:#d6d0c2!important;color:var(--ev-ink)!important}html.es-admin-shell #es-bxauto-steps .es-bxauto-step b{color:var(--ev-ink)!important}html.es-admin-shell #es-bxauto-steps .es-bxauto-step span,html.es-admin-shell #es-bxauto-card .es-bxauto-h,html.es-admin-shell #es-bxauto-sub,html.es-admin-shell #es-bxauto-note{color:var(--ev-muted)!important}
 html.es-admin-shell table tr{border-color:#e5e0d5!important}
 /* Maintenance extensions have isolated, hard-coded palettes. */
 html.es-admin-shell :is(#es-safety,#es-journal,#es-dbguard,#elvensong-iso-backup-guide){background:#fff!important;color:var(--ev-ink)!important;border-color:var(--ev-line)!important;box-shadow:var(--ev-shadow)}
 html.es-admin-shell :is(#es-safety,#es-journal,#es-dbguard,#elvensong-iso-backup-guide) :is(h2,b,p,li,td){color:var(--ev-ink)!important}
 html.es-admin-shell :is(#es-safety-sub,#es-safety-int,#es-dbguard-note,#es-dbguard-msg,.es-safety-mut,#es-journal-sub){color:var(--ev-muted)!important}
 html.es-admin-shell :is(.es-safety-card,#es-dbguard-card,.es-journal-card,.es-bk-card,#es-dbguard-log,#es-safety-out){background:var(--ev-soft)!important;border-color:var(--ev-line)!important;color:var(--ev-ink)!important}
 html.es-admin-shell :is(#es-safety,#es-journal,#es-dbguard,#elvensong-iso-backup-guide) button{background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important}
 html.es-admin-shell :is(.es-safety-btn.primary,#es-dbguard-btn){background:var(--ev-blue)!important;color:#fff!important}
 html.es-admin-shell .es-safety-btn.danger{background:#fff0f1!important;color:var(--ev-red)!important;border-color:#ecc6cd!important}
 html.es-admin-shell #es-safety-note{background:#edf7f1!important;color:var(--ev-green)!important;border-color:#c5dfcf!important}
 html.es-admin-shell :is(#es-safety,#es-journal,#es-dbguard) :is(span,i){color:inherit}
 html.es-admin-shell #es-dw-root{color:var(--ev-ink)!important}
 html.es-admin-shell #es-dw-root :is(h1,h2,.es-dw-card b){color:var(--ev-ink)!important}
 html.es-admin-shell #es-dw-root :is(.es-dw-sub,.es-dw-card span,.es-dw-note){color:var(--ev-muted)!important}
 html.es-admin-shell #es-dw-root :is(.es-dw-panel,.es-dw-card){background:#fff!important;border-color:var(--ev-line)!important;box-shadow:var(--ev-shadow)}
 html.es-admin-shell #es-dw-root button{background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important}
 html.es-admin-shell #es-dw-root button.primary{background:var(--ev-blue)!important;color:#fff!important}
 html.es-admin-shell #es-dw-root .es-dw-ok{color:var(--ev-green)!important}
 html.es-admin-shell #es-dw-root .es-dw-bad{color:var(--ev-red)!important}
 html.es-admin-shell #es-dw-root .es-dw-warn{color:var(--ev-amber)!important}
 html.es-admin-shell :is(#es-journal-ret,#es-journal-list){background:var(--ev-soft)!important;border-color:var(--ev-line)!important;color:var(--ev-ink)!important}
 html.es-admin-shell :is(#es-journal-ret label,#es-journal-ret-msg,#es-journal-item .m,#es-journal-item .t,#es-journal-empty){color:var(--ev-muted)!important}
 html.es-admin-shell #es-journal-item .tag{color:#4F5ABF!important}
 html.es-admin-shell #es-journal-btn.primary{background:#fff0f1!important;color:var(--ev-red)!important;border-color:#ecc6cd!important}
 html.es-admin-shell :is(.card-chip,.badge){background:#f6f3ec!important;color:var(--ev-muted)!important;border-color:var(--ev-line)!important}
 html.es-admin-shell :is(.card-chip.track){background:var(--ev-soft)!important;color:var(--ev-ink)!important;border-color:var(--ev-line)!important}
 html.es-admin-shell :is(.card-chip.warn,.badge.warn){background:#fff3df!important;color:var(--ev-amber)!important;border-color:#e9c991!important}
 html.es-admin-shell :is(.card-chip.bad,.badge.bad){background:#fff0f1!important;color:var(--ev-red)!important;border-color:#ecc6cd!important}
 html.es-admin-shell :is(.card-chip.ok,.badge.ok){background:#edf7f1!important;color:var(--ev-green)!important;border-color:#c5dfcf!important}
 html.es-admin-shell body .ops-icon-btn{background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important}
 html.es-admin-shell body .ops-icon-btn-bitrix{background:var(--ev-blue)!important;color:#fff!important;border-color:var(--ev-blue)!important}
 html.es-admin-shell :is(#es-safety-badge,#es-dbguard-badge.ok,#es-bxauto-badge.on){background:#edf7f1!important;color:var(--ev-green)!important;border-color:#c5dfcf!important}
 html.es-admin-shell :is(#es-safety-badge.warn,#es-bxauto-badge.off){background:#fff3df!important;color:var(--ev-amber)!important;border-color:#e9c991!important}
 html.es-admin-shell #es-dbguard-badge.bad{background:#fff0f1!important;color:var(--ev-red)!important;border-color:#ecc6cd!important}
 html.es-admin-shell #es-settings-page{color:var(--ev-ink)!important}
 html.es-admin-shell #es-settings-page :is(h1,h2,.es-lbl){color:var(--ev-ink)!important}
 html.es-admin-shell #es-settings-page :is(.es-sub,.es-hint,.es-lbl small){color:var(--ev-muted)!important}
 html.es-admin-shell #es-settings-page .es-card{background:#fff!important;border-color:var(--ev-line)!important;box-shadow:var(--ev-shadow)}
 html.es-admin-shell #es-settings-page .es-btn{background:var(--ev-blue)!important;color:#fff!important}
 html.es-admin-shell #es-settings-page .es-btn.sec{background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important}

 /* Standalone warehouse overlay uses its own token namespace. */
 html:root #esw-overlay{
  --esw-bg:var(--ev-canvas);--esw-sidebar:#fff;--esw-card:#fff;--esw-slate-900:var(--ev-soft);--esw-slate-800:var(--ev-line);--esw-slate-700:#d6d0c2;--esw-slate-600:#8b99ac;--esw-slate-500:var(--ev-muted);--esw-slate-400:var(--ev-muted);--esw-slate-300:var(--ev-ink);--esw-blue-600:var(--ev-blue);--esw-blue-700:var(--ev-blue-hover);--esw-line:var(--ev-line);
  background:var(--ev-canvas)!important;color:var(--ev-ink)!important;
 }
 html:root #esw-overlay .esw-brand::before{color:#4F5ABF!important}
 html:root #esw-overlay .esw-nav.active{background:var(--ev-selected)!important;color:#4F5ABF!important}
 html:root #esw-overlay :is(.esw-note,.esw-sub,.esw-field label,.esw-card span){color:var(--ev-muted)!important}
 html:root #esw-overlay :is(.esw-panel,.esw-card){border-color:var(--ev-line)!important;box-shadow:var(--ev-shadow)!important}
 html:root #esw-overlay .esw-btn{background:var(--ev-blue)!important;color:#fff!important;border-color:var(--ev-blue)!important}
 html:root #esw-overlay .esw-btn.secondary{background:#fff!important;color:var(--ev-ink)!important;border-color:#d6d0c2!important}
 html:root #esw-overlay .esw-btn.danger{background:#fff0f1!important;color:var(--ev-red)!important;border-color:#ecc6cd!important}
 html:root #esw-overlay .esw-btn.good{background:var(--ev-green)!important;color:#fff!important}
 html:root #esw-overlay .esw-btn.gold{background:#fff3df!important;color:var(--ev-amber)!important}
 html:root #esw-overlay .esw-table th{background:var(--ev-soft)!important;color:var(--ev-muted)!important;letter-spacing:0;text-transform:none}
 @media (hover:hover) and (pointer:fine){
  html[data-storefront="1"] a[href^="/product/"].group:hover{border-color:var(--ev-line-strong);box-shadow:0 2px 4px rgba(31,29,24,.05),0 12px 32px rgba(31,29,24,.1)}
  html[data-storefront="1"] a[href^="/product/"].group:hover h3{color:var(--ev-accent-text)}
  html[data-storefront="1"] main aside button:not(.bg-primary):hover{background:rgba(33,31,26,.045);color:var(--ev-ink)}
  html[data-storefront="1"] :is(header button,button.bg-secondary):hover{background:rgba(33,31,26,.05);border-color:rgba(33,31,26,.18)}
  html[data-storefront="1"] button.bg-primary:hover,html.es-admin-shell :is(button.bg-blue-600,.ops-btn:not(.secondary):not(.good):not(.gold):not(.danger)):hover:not(:disabled){background:var(--ev-blue-hover)!important;color:#fff!important}
  html.es-admin-shell #root aside nav a>span:not(.bg-blue-600):hover{background:var(--ev-soft)!important;color:var(--ev-ink)!important}
  html.es-admin-shell .ops-btn.secondary:hover:not(:disabled){background:var(--ev-soft)!important;color:var(--ev-ink)!important}
  html.es-admin-shell .deal-card:hover{border-color:#c6c9ea!important;box-shadow:0 3px 10px #20304a10}
  html.es-admin-shell table tbody tr:hover td{background:#f7f5ef!important}
 }
 @media (prefers-reduced-motion:reduce){
  html[data-storefront="1"] a[href^="/product/"].group,html[data-storefront="1"] a[href^="/product/"].group img,html.es-admin-shell .deal-card{transition:none!important}
 }
}

/* Mobile card tables: override the legacy dark palette, preserve geometry. */
@media screen and (max-width:767px){
 html:root.es-admin-shell body table.es-m-cards{background:transparent!important}
 html:root.es-admin-shell body table.es-m-cards tbody tr{background:var(--ev-surface,#fff)!important;border-color:var(--ev-line,#dde4ed)!important;box-shadow:var(--ev-shadow)!important}
 html:root.es-admin-shell body table.es-m-cards tbody tr td{background:transparent!important;color:var(--ev-ink,#202b40)!important}
 html:root.es-admin-shell body table.es-m-cards tbody tr td::before{color:var(--ev-muted,#57667c)!important;font-weight:500!important}
 html:root.es-admin-shell body table.es-m-cards :is(td.es-m-primary,td.es-m-actions){border-color:var(--ev-line,#dde4ed)!important}
 html:root.es-admin-shell body table.es-m-cards td.es-m-actions button{background:var(--ev-soft,#f7f9fc)!important;border-color:var(--ev-line,#dde4ed)!important;color:var(--ev-ink,#202b40)!important}
 html:root.es-admin-shell body table.es-m-cards td.es-m-actions button:has(.lucide-trash-2){background:#fff0f1!important;color:var(--ev-red,#b42335)!important;border-color:#ecc6cd!important}
 html:root.es-admin-shell body table.es-m-cards tr:has(input[type=checkbox]:checked){background:var(--ev-selected,#eaf0ff)!important;border-color:#c6c9ea!important}
}
/* redesign: mobile drawer — the scrim (z-40) tied with page chrome HEADER.ops-top (z-40) and lost by DOM order, leaving bright white strips over the dimmed background; raise ONLY the scrim above page chrome (z-40..49), still below the z-50 drawer panel */
html.es-admin-shell .fixed.inset-0.z-40.bg-black\/60{z-index:45!important}
/* redesign: mobile — compact Bitrix24 automation panel (#es-bxauto): size only; position, DOM and handlers untouched */
@media screen and (max-width:767px){
 html.es-admin-shell #es-bxauto{padding:8px 10px!important;margin:0 0 12px!important;border-radius:12px!important}
 html.es-admin-shell #es-bxauto-top{gap:6px!important;margin-bottom:6px!important}
 html.es-admin-shell #es-bxauto-title{font-size:12.5px!important;max-width:66%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html.es-admin-shell #es-bxauto-badge{font-size:9.5px!important;padding:3px 7px!important}
 html.es-admin-shell #es-bxauto-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
 html.es-admin-shell #es-bxauto-grid .es-bxauto-card{display:block!important;padding:5px 6px!important;border:1px solid var(--ev-line)!important;border-radius:8px!important;background:var(--ev-soft)!important;min-width:0!important}
 html.es-admin-shell #es-bxauto-grid .es-bxauto-card .es-bxauto-k{display:block!important;font-style:normal!important;font-size:8px!important;font-weight:700!important;letter-spacing:.03em!important;text-transform:uppercase!important;line-height:1.3!important;margin:0!important;color:var(--ev-muted)!important}
 html.es-admin-shell #es-bxauto-grid .es-bxauto-card .es-bxauto-v{display:block!important;text-decoration:none!important;font-size:11px!important;font-weight:700!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ev-ink)!important}
 html.es-admin-shell #es-bxauto-acts{display:flex!important;gap:8px!important;margin-top:8px!important;align-items:center}
 html.es-admin-shell #es-bxauto-acts button{width:46px!important;height:46px!important;padding:0!important;margin:0!important;border-radius:11px!important;font-size:0!important;line-height:1!important;overflow:hidden;white-space:nowrap}
 html.es-admin-shell #es-bxauto-acts button::after{font-size:11px!important;font-weight:700;letter-spacing:0}
 html.es-admin-shell #es-bxauto-on::after{content:"Вкл"}
 html.es-admin-shell #es-bxauto-off::after{content:"Выкл"}
 html.es-admin-shell #es-bxauto-msg{margin-top:6px!important;font-size:11px!important}
html.es-admin-shell #es-bxauto-steps,html.es-admin-shell #es-bxauto-note,html.es-admin-shell #es-bxauto-sub,html.es-admin-shell #es-bxauto-card .es-bxauto-h{display:none!important}
 html.es-admin-shell #es-bxauto-msg:empty{display:none!important}
}
/* redesign: thin warm-gray scrollbars (storefront) */
html[data-storefront="1"],html[data-storefront="1"] body{scrollbar-width:thin;scrollbar-color:rgba(33,31,26,.25) transparent}
html[data-storefront="1"]::-webkit-scrollbar,html[data-storefront="1"] body::-webkit-scrollbar{width:10px;height:10px}
html[data-storefront="1"]::-webkit-scrollbar-track,html[data-storefront="1"] body::-webkit-scrollbar-track{background:transparent}
html[data-storefront="1"]::-webkit-scrollbar-thumb,html[data-storefront="1"] body::-webkit-scrollbar-thumb{background:rgba(33,31,26,.22);border-radius:999px;border:2px solid transparent;background-clip:content-box}
html[data-storefront="1"]::-webkit-scrollbar-thumb:hover,html[data-storefront="1"] body::-webkit-scrollbar-thumb:hover{background:rgba(33,31,26,.38);background-clip:content-box}
html[data-storefront="1"]::-webkit-scrollbar-corner{background:transparent}
/* redesign: indigo text selection */
html[data-storefront="1"] ::selection{background:rgba(94,106,210,.28);color:#211f1a}
/* redesign: detailed reports block (#es-detrep) — warm light palette, COLORS ONLY (no layout/size changes).
   The addon injects its own #es-detrep rules (dark slate palette, some with !important); these selectors
   are prefixed with html.es-admin-shell so they always outrank them, on desktop and on mobile alike.
   ELVENSONG_REPORTS_WARM_1_0_0 */
html.es-admin-shell #es-detrep{background:#fff!important;border-color:var(--ev-line)!important;color:var(--ev-ink)!important}
html.es-admin-shell #es-detrep h3{color:var(--ev-ink)!important}
html.es-admin-shell #es-detrep .esdr-hint{color:var(--ev-muted)!important}
html.es-admin-shell #es-detrep .esdr-field span{color:var(--ev-muted)!important}
html.es-admin-shell #es-detrep .esdr-tab{background:#fff!important;border-color:var(--ev-line-strong)!important;color:var(--ev-ink)!important}
html.es-admin-shell #es-detrep .esdr-tab:hover{color:var(--ev-blue)!important;border-color:var(--ev-blue)!important}
html.es-admin-shell #es-detrep .esdr-tab.active{background:var(--ev-blue)!important;border-color:var(--ev-blue)!important;color:#fff!important}
html.es-admin-shell :is(#es-detrep input,#es-detrep select){background:#fff!important;border-color:var(--ev-line-strong)!important;color:var(--ev-ink)!important}
html.es-admin-shell #es-detrep button.esdr-btn{background:var(--ev-raised)!important;color:var(--ev-ink)!important}
html.es-admin-shell #es-detrep button.esdr-btn:hover{background:var(--ev-line)!important}
html.es-admin-shell #es-detrep button.esdr-btn.primary{background:var(--ev-blue)!important;color:#fff!important}
html.es-admin-shell #es-detrep button.esdr-btn.primary:hover{background:var(--ev-blue-hover)!important}
html.es-admin-shell #es-detrep button.esdr-btn.green{background:var(--ev-green)!important;color:#fff!important}
html.es-admin-shell #es-detrep button.esdr-btn.green:hover{background:#03664e!important}
html.es-admin-shell #es-detrep .esdr-chip{background:var(--ev-soft)!important;border-color:var(--ev-line)!important}
html.es-admin-shell #es-detrep .esdr-chip b{color:var(--ev-ink)!important}
html.es-admin-shell #es-detrep .esdr-msg.info{color:var(--ev-muted)!important}
html.es-admin-shell #es-detrep .esdr-msg.err{color:var(--ev-red)!important}
html.es-admin-shell #es-detrep .esdr-tablewrap{border-color:var(--ev-line)!important}
html.es-admin-shell #es-detrep table.esdr-table th{background:var(--ev-soft)!important;color:var(--ev-muted)!important;border-bottom-color:var(--ev-line)!important}
html.es-admin-shell #es-detrep table.esdr-table td{border-bottom-color:var(--ev-line)!important;color:var(--ev-ink)!important}
html.es-admin-shell #es-detrep table.esdr-table tr:nth-child(even) td{background:#fbfcfe!important}
html.es-admin-shell #es-detrep table.esdr-table tr:hover td{background:var(--ev-raised)!important}
html.es-admin-shell #es-detrep .esdr-pager{color:var(--ev-muted)!important}
/* seller day-rows injected by elvensong-reports-tidy.js (day-group/day-total carry !important there) */
html.es-admin-shell #es-detrep tr.esdr-day-group>td{background:var(--ev-selected)!important;color:var(--ev-accent-text)!important}
html.es-admin-shell #es-detrep tr.esdr-day-total>td{background:var(--ev-soft)!important;color:var(--ev-muted)!important}
html.es-admin-shell #es-detrep tr.esdr-day-item>td{color:var(--ev-ink)!important}
html.es-admin-shell #es-detrep .esdr-table tr.esdr-seller-row:hover td{background:var(--ev-raised)!important}

/* ELVENSONG_LIGHT_UNIFY_1_0_0 — ЕДИНАЯ СВЕТЛАЯ ТЕМА.
   Остаточные тёмные блоки аддонов, найденные аудитом 16 вкладок 09.10.2026:
   /admin/backup (.esbc-btn), /admin/ops-settings (ops-backup-панель, .btn-save,
   .es-off), /admin/dewatermark (.es-dw-log), /admin/receipt (.import-note.warn).
   Меняются ТОЛЬКО цвета/фоны; раскладка и геометрия не трогаются.
   Перебивает инъекции аддонов независимо от порядка загрузки:
   html.es-admin-shell #root + !important. Откат — удалить этот блок. */
html.es-admin-shell #root #elvensong-ops-backup-panel-root{
  background:#fff!important;color:var(--ev-ink,#211f1a)!important;
  border-color:var(--ev-line,#e5e0d5)!important;box-shadow:var(--ev-shadow)}
html.es-admin-shell #root #elvensong-ops-backup-panel-root :is(h3,b,label){
  color:var(--ev-ink,#211f1a)!important}
html.es-admin-shell #root #elvensong-ops-backup-panel-root :is(.hint,.status){
  color:var(--ev-muted,#6e6a60)!important}
html.es-admin-shell #root #elvensong-ops-backup-panel-root :is(input,select){
  background:#fff!important;color:var(--ev-ink,#211f1a)!important;
  border-color:var(--ev-line-strong,#d6d0c2)!important}
html.es-admin-shell #root #elvensong-ops-backup-panel-root .btn-save{
  background:var(--ev-blue,#5E6AD2)!important;color:#fff!important}
html.es-admin-shell #root #elvensong-ops-backup-panel-root .btn-off{
  background:#fff3df!important;color:var(--ev-amber,#92400e)!important;
  border:1px solid #e9c991!important}
html.es-admin-shell #root .esbc-btn{
  background:#fff!important;color:var(--ev-ink,#211f1a)!important;
  border-color:var(--ev-line-strong,#d6d0c2)!important}
html.es-admin-shell #root .esbc-btn.primary{
  background:var(--ev-blue,#5E6AD2)!important;color:#fff!important;
  border-color:var(--ev-blue,#5E6AD2)!important}
html.es-admin-shell #root .es-off{
  background:var(--ev-soft,#f7f9fc)!important;color:var(--ev-muted,#6e6a60)!important;
  border-color:var(--ev-line,#e5e0d5)!important}
html.es-admin-shell #root .es-dw-log{
  background:#fff!important;color:var(--ev-ink,#211f1a)!important;
  border-color:var(--ev-line,#e5e0d5)!important}
html.es-admin-shell #root .import-note.warn{
  background:var(--ev-amber-soft,#fdf3e2)!important;color:var(--ev-amber,#92400e)!important;
  border-color:#e9c991!important}
