
html[data-mef-theme] {
 --ink:#182522!important;--paper:#f5f7f6!important;--surface:#fff!important;
 --line:#d6e0dc!important;--muted:#596b64!important;
 --forest:#234a40!important;--forest2:#18362e!important;--danger:#a9342c!important;
 --mef-soft:#edf3f0;--mef-action:#234a40;--mef-header:#fff;
 --mef-gold:#806015;--mef-stock:#eaf5ee;--mef-stock-ink:#17583f;
 --mef-shadow:0 8px 28px #18352a10;color-scheme:light;
}
html[data-mef-theme="dark"] {
 --ink:#e8f0ec!important;--paper:#101715!important;--surface:#1a2420!important;
 --line:#35463e!important;--muted:#b0c0b7!important;
 --forest:#a3ddc2!important;--forest2:#111d17!important;--danger:#ffaaa2!important;
 --mef-soft:#26352d;--mef-action:#286b50;--mef-header:#15221b;
 --mef-gold:#e1c16b;--mef-stock:#213f2e;--mef-stock-ink:#b9e9c8;
 --mef-shadow:0 8px 28px #0003;color-scheme:dark;
}
html[data-mef-theme] body {
 background-color:var(--paper)!important;color:var(--ink)!important;
}
html[data-mef-theme] .topbar {
 background:var(--mef-header)!important;border-bottom-color:var(--gold)!important;
}
html[data-mef-theme] .topbar :is(.ghost,.language,.status),
html[data-mef-theme] #mefThemeToggle {
 background:var(--mef-soft)!important;
 border:1px solid var(--line)!important;color:var(--ink)!important;
}
html[data-mef-theme] :is(.workspace,dialog,.empty,.login-card),
html[data-mef-theme] #results>.card {
 background:var(--surface)!important;color:var(--ink)!important;
 border-color:var(--line)!important;box-shadow:var(--mef-shadow)!important;
}
html[data-mef-theme] :is(.field input,.field select,.add-user input,.add-user select,.login-card input,#priorityAdmin input,#priorityAdmin select,.user-row button) {
 background:var(--surface)!important;color:var(--ink)!important;
 border-color:var(--line)!important;
}
html[data-mef-theme] input::placeholder {
 color:var(--muted)!important;opacity:1;
}
html[data-mef-theme] :is(.field label,.desc,.meta,.summary,.label,.spec-label,.tile-ref-label,.mef-pagination-meta,.application-heading>p),
html[data-mef-theme] #results .tile-specs span {
 color:var(--muted)!important;
}
html[data-mef-theme] :is(.workspace,dialog,.login-card,.card) :is(.pn,h1,h2,h3),
html[data-mef-theme] #results :is(.pn,.tile-specs strong) {
 color:var(--ink)!important;
}
html[data-mef-theme] :is(.catalog-line,.eyebrow) {
 color:var(--mef-gold)!important;
}
html[data-mef-theme] :is(.mode-tabs,.application-heading,.catalog-view-tabs,.user-row,.table-wrap,.specgrid,.specgrid>div,.table-wrap td,.table-wrap th,.gallery-image-card figcaption) {
 border-color:var(--line)!important;
}
html[data-mef-theme] :is(.mode,.login-language,.file-link) {
 color:var(--forest)!important;
}
html[data-mef-theme] .mode.active {
 color:var(--ink)!important;border-bottom-color:var(--gold)!important;
}
html[data-mef-theme] :is(button.primary,.mef-page-button.active,.catalog-view-tab.active,.gallery-tab.active) {
 background:var(--mef-action)!important;color:#fff!important;
 border-color:var(--mef-action)!important;
}
html[data-mef-theme] :is(.tile-ref,.ref,.spec-label,.gallery-pane,.gallery-empty,.section-empty,.catalog-view-tab:not(.active),.gallery-tab:not(.active),.mef-page-button:not(.active),.table-wrap th,.lazy-section,dialog .ghost),
html[data-mef-theme] #results .tile-specs>div {
 background:var(--mef-soft)!important;color:var(--ink)!important;
 border-color:var(--line)!important;
}
html[data-mef-theme] :is(.catalog-view-tab,.gallery-tab) span {
 background:var(--surface)!important;color:var(--ink)!important;
}
html[data-mef-theme] :is(button.tile-share,dialog button.tile-share) {
 background:var(--mef-soft)!important;color:var(--forest)!important;
 border-color:var(--line)!important;
}
html[data-mef-theme] #results .card-stock:not(:empty) {
 background:var(--mef-stock)!important;color:var(--mef-stock-ink)!important;
}
html[data-mef-theme] .stock-meta {
 color:var(--mef-stock-ink)!important;
}
html[data-mef-theme] .unified-summary {
 background:var(--mef-soft)!important;color:var(--ink)!important;
 border-color:var(--gold)!important;
}
html[data-mef-theme] .badge.UNIFIED {
 background:var(--gold)!important;color:#18231d!important;
}
html[data-mef-theme] .gallery-image-card {
 background:var(--surface)!important;border-color:var(--line)!important;
}
html[data-mef-theme] :is(.thumb,.gallery-image-card img) {
 background:#fff!important;border-color:var(--line)!important;
}
html[data-mef-theme] :is(button,a,input,select):focus-visible {
 outline:3px solid var(--gold)!important;outline-offset:3px;
}
html[data-mef-theme] #mefThemeToggle {
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-width:44px;min-height:44px;padding:9px 13px;border-radius:999px;
 font:inherit;font-weight:700;cursor:pointer;flex-shrink:0;
}
html[data-mef-theme] #mefThemeToggle svg {
 width:20px;height:20px;flex:none;
}
html[data-mef-theme] #mefThemeToggle:hover {filter:brightness(.95);}
@media(max-width:600px) {
 html[data-mef-theme] #mefThemeToggle {padding:8px;min-width:44px;}
 #mefThemeToggle span {display:none;}
}

/* MEF_THEME_ICON_ONLY_START */
html[data-mef-theme] #mefThemeToggle {
    width:44px!important;min-width:44px!important;max-width:44px!important;
    height:44px!important;min-height:44px!important;
    padding:10px!important;gap:0!important;border-radius:50%!important;
    flex:0 0 44px!important;
}
html[data-mef-theme] #mefThemeToggle span {display:none!important;}
html[data-mef-theme] #mefThemeToggle svg {width:22px;height:22px;}
/* MEF_THEME_ICON_ONLY_END */

/* MEF_DARK_STOCK_HIGHLIGHT_START */
html[data-mef-theme="dark"] #results .card-stock:not(:empty) {
    background:#3c321a!important;
    color:#fff2c2!important;
    border:1px solid #c3a651!important;
    border-inline-start-width:3px!important;
    font-weight:800!important;
    font-variant-numeric:tabular-nums;
}
/* MEF_DARK_STOCK_HIGHLIGHT_END */
