/* MAHIN V2 — Five signature styles, three new approved image-inspired identities.
   The real functional DOM stays in place; styles are keyed only to the selected
   signature. No changes are made to the offline license, inventory data, widget
   arrangement, navigation behaviors or authentication.
*/
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen {
  --mi-sig-radius:18px;
  --mi-sig-control-radius:12px;
  --mi-sig-shadow:0 9px 23px var(--mi-sig-shadow-color),inset 0 1px 0 var(--mi-sig-glint);
  --mi-sig-active-ink:#fff;
  color:var(--mi-sig-ink)!important;
  --mi-ui-settings-card-bg:var(--mi-sig-card)!important;
  --mi-ui-border:var(--mi-sig-line)!important;
  --mi-ui-surface:var(--mi-sig-card)!important;
  --mi-ui-ink:var(--mi-sig-ink)!important;
  --mi-ui-muted:var(--mi-sig-muted)!important;
  --mi-global-card:var(--mi-sig-card)!important;
  --mi-global-background:var(--mi-sig-page)!important;
  --mi-global-line:var(--mi-sig-line)!important;
}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen {
  --mi-sig-page:#fff4fb;
  --mi-sig-sidebar:#fff2fa;
  --mi-sig-head:linear-gradient(100deg,#fff4fb 0%,#ffe6f5 52%,#ffe2f4 100%);
  --mi-sig-banner:#ffe6f5;
  --mi-sig-card:rgba(255,248,254,.96);
  --mi-sig-ink:#4c1636;
  --mi-sig-muted:#81546f;
  --mi-sig-line:#f4cbe2;
  --mi-sig-accent:#ef348b;
  --mi-sig-secondary:#a45bee;
  --mi-sig-shadow-color:rgba(181,74,135,.16);
  --mi-sig-glint:rgba(255,255,255,.96);
  --mi-sig-active:linear-gradient(112deg,#fa3d92,#ee78b3 86%,#e28cd3);
  --mi-sig-hero-art:url('../art/sakura-hero-clean.svg');
  --mi-sig-sidebar-art:url('../art/sakura-sidebar-clean.svg');
  --mi-sig-card-art:linear-gradient(138deg,rgba(255,255,255,.68),rgba(255,233,247,.35) 65%,rgba(243,194,230,.17));
  --mi-sig-focus:#d72b83;
  --mi-sig-ico-bg:linear-gradient(135deg,#fff2fb,#f9c5e4);
  --mi-sig-ico-fg:#e72183;
  --mi-sig-table:rgba(246,200,231,.28);
}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen {
  --mi-sig-page:#0b0b0c;
  --mi-sig-sidebar:#111214;
  --mi-sig-head:linear-gradient(100deg,#131313 0%,#1c1a18 70%,#121315 100%);
  --mi-sig-banner:#151312;
  --mi-sig-card:rgba(27,27,29,.96);
  --mi-sig-ink:#fff9f1;
  --mi-sig-muted:#bcb4ad;
  --mi-sig-line:rgba(255,144,39,.36);
  --mi-sig-accent:#ff941e;
  --mi-sig-secondary:#ffcd86;
  --mi-sig-shadow-color:rgba(0,0,0,.42);
  --mi-sig-glint:rgba(255,170,64,.18);
  --mi-sig-active:linear-gradient(108deg,#7b3007,#da5a0a 68%,#ff9a27);
  --mi-sig-hero-art:url('../art/ember-hero-clean.svg');
  --mi-sig-sidebar-art:url('../art/ember-sidebar-clean.svg');
  --mi-sig-card-art:linear-gradient(123deg,rgba(255,146,30,.075),transparent 50%,rgba(255,103,0,.045));
  --mi-sig-focus:#ffaa45;
  --mi-sig-ico-bg:linear-gradient(130deg,#302217,#1b1715);
  --mi-sig-ico-fg:#ff9d26;
  --mi-sig-table:rgba(128,72,27,.24);
}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen {
  --mi-sig-page:#fff9ec;
  --mi-sig-sidebar:#005440;
  --mi-sig-head:linear-gradient(100deg,#fffaf0 0%,#fff7e7 72%,#ffeed3);
  --mi-sig-banner:#004b3a;
  --mi-sig-card:#fffdf7;
  --mi-sig-ink:#122920;
  --mi-sig-muted:#5f6a5a;
  --mi-sig-line:rgba(201,148,65,.56);
  --mi-sig-accent:#006b50;
  --mi-sig-secondary:#d7a84c;
  --mi-sig-shadow-color:rgba(108,77,31,.17);
  --mi-sig-glint:#fff;
  --mi-sig-active:linear-gradient(112deg,#004d38,#08785c 76%,#bb8a31);
  --mi-sig-hero-art:url('../art/emerald-hero-clean.svg');
  --mi-sig-sidebar-art:url('../art/emerald-sidebar-clean.svg');
  --mi-sig-card-art:linear-gradient(145deg,rgba(255,255,255,.95),rgba(255,249,235,.96)),url('../art/mihrab-pattern.svg');
  --mi-sig-focus:#b58736;
  --mi-sig-ico-bg:linear-gradient(135deg,#006549,#003d30);
  --mi-sig-ico-fg:#ffe4a1;
  --mi-sig-table:rgba(230,210,171,.31);
  --mi-sig-radius:17px;
}
/* Distinct permanent visual language for all existing pages. */
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen,
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen .main {
  color:var(--mi-sig-ink)!important;
  background-color:var(--mi-sig-page)!important;
  background-image:radial-gradient(ellipse 80% 54% at 85% 0%,color-mix(in srgb,var(--mi-sig-accent) 6%,transparent),transparent 74%),linear-gradient(140deg,var(--mi-sig-page),var(--mi-sig-page))!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar {
  background-color:var(--mi-sig-sidebar)!important;
  background-image:var(--mi-sig-sidebar-art),linear-gradient(160deg,var(--mi-sig-sidebar),var(--mi-sig-sidebar))!important;
  background-repeat:no-repeat!important;
  background-position:bottom center,center!important;
  background-size:100% auto,cover!important;
  border-right:1px solid var(--mi-sig-line)!important;
  box-shadow:4px 0 20px var(--mi-sig-shadow-color)!important;
}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen #sidebar {color:#531c43!important;}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen #sidebar {color:#f9e6d4!important;}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #sidebar {color:#fff0c5!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(#topbar,.mi-topbar-shell) {
  background:var(--mi-sig-head)!important;
  color:var(--mi-sig-ink)!important;
  border-bottom:1px solid var(--mi-sig-line)!important;
  box-shadow:0 5px 19px var(--mi-sig-shadow-color)!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(#topbar,.mi-topbar-shell) :is(button,.button,[role="button"]),
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(#moduleTabs,.mi-module-tabs,.mi-settings-header-tabs,.mi-v5-tabs) :is(button,a){
  background:var(--mi-sig-card)!important;
  border:1px solid var(--mi-sig-line)!important;
  color:var(--mi-sig-ink)!important;
  box-shadow:0 3px 9px var(--mi-sig-shadow-color),inset 0 1px 0 var(--mi-sig-glint)!important;
  border-radius:var(--mi-sig-control-radius)!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(#topbar,.mi-topbar-shell) :is(button,.button,[role="button"]):hover {border-color:var(--mi-sig-focus)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(
.mi-ui-settings-banner,.mi-ui-titlebar--banner,.mi-v5-intro,.mi-hub-hero,.mi-six-category-banner,.mi-v2-page-banner,
.mi-appearance-heading,.mi-preferences-heading,.mi-ui-titlebar:not(.mi-ui-titlebar--flush),.mi-dash-toolbar
){
  background-color:var(--mi-sig-banner)!important;
  background-image:linear-gradient(90deg,var(--mi-sig-banner) 0%,color-mix(in srgb,var(--mi-sig-banner) 93%,transparent) 44%,transparent 76%),var(--mi-sig-hero-art)!important;
  background-position:left center,right center!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%,auto 100%!important;
  border:1px solid var(--mi-sig-line)!important;
  color:var(--mi-sig-ink)!important;
  border-radius:var(--mi-sig-radius)!important;
  box-shadow:var(--mi-sig-shadow)!important;
  padding:18px 22px!important;
  min-height:76px;
}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen :is(
.mi-ui-settings-banner,.mi-ui-titlebar--banner,.mi-v5-intro,.mi-hub-hero,.mi-six-category-banner,.mi-v2-page-banner,
.mi-appearance-heading,.mi-preferences-heading,.mi-ui-titlebar:not(.mi-ui-titlebar--flush),.mi-dash-toolbar
){color:#fff9f2!important;}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen :is(
.mi-ui-settings-banner,.mi-ui-titlebar--banner,.mi-v5-intro,.mi-hub-hero,.mi-six-category-banner,.mi-v2-page-banner,
.mi-appearance-heading,.mi-preferences-heading,.mi-ui-titlebar:not(.mi-ui-titlebar--flush),.mi-dash-toolbar
){color:#fff6dc!important;}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen :is(
.mi-ui-settings-banner,.mi-ui-titlebar--banner,.mi-v5-intro,.mi-hub-hero,.mi-six-category-banner,.mi-v2-page-banner,
.mi-appearance-heading,.mi-preferences-heading,.mi-ui-titlebar:not(.mi-ui-titlebar--flush),.mi-dash-toolbar
){color:#5d1e44!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(
.mi-ui-settings-banner,.mi-ui-titlebar--banner,.mi-v5-intro,.mi-hub-hero,.mi-six-category-banner,.mi-v2-page-banner,
.mi-appearance-heading,.mi-preferences-heading,.mi-ui-titlebar:not(.mi-ui-titlebar--flush),.mi-dash-toolbar
) :is(h1,h2,h3,p,small,strong){color:inherit!important;}
/* Unified card paint for live dashboard, all module pages, settings, and dialogs. */
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(
 .mi-dashboard-widget,.mi-dashboard-stat,.mi-dash-card,.mi-dash-dialog,
 .mi-pro-card,.mi-ui-card,.mi-ui-settings-card,.mi-v2-settings-card,.mi-v2-settings-tile,
 .mi-hub-card,.mi-six-category-card,.mi-v6-card,.mi-dash-card,.mi-settings-category,
 .mi-preference-card,.mi-module-content-card,.panel,.stat
) {
  background:var(--mi-sig-card-art),var(--mi-sig-card)!important;
  color:var(--mi-sig-ink)!important;
  border:1px solid var(--mi-sig-line)!important;
  border-radius:var(--mi-sig-radius)!important;
  box-shadow:var(--mi-sig-shadow)!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(
 .mi-dash-card,.mi-pro-card,.mi-hub-card,.mi-ui-card,.mi-v2-settings-card
) :is(h1,h2,h3,h4,strong,.mi-dash-metric,.mi-dash-card-title){color:var(--mi-sig-ink)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(
 .mi-dash-card,.mi-pro-card,.mi-hub-card,.mi-ui-card,.mi-v2-settings-card
) :is(p,small,.muted,.mi-dash-caption){color:var(--mi-sig-muted)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(
 .mi-hub-heading-icon,.mi-hub-card-icon,.mi-pro-icon,.mi-ui-settings-symbol,.mi-dash-card-icon,.mi-six-category-icon,.mi-v2-cat-symbol
){
  background:var(--mi-sig-ico-bg)!important;
  color:var(--mi-sig-ico-fg)!important;
  border:1px solid var(--mi-sig-line)!important;
  border-radius:12px!important;
  box-shadow:0 3px 8px var(--mi-sig-shadow-color)!important;
}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen :is(.mi-hub-card-icon,.mi-dash-card-icon,.mi-pro-icon,.mi-ui-settings-symbol){border-radius:34% 34% 10px 10px!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar :is(
 .nav-item,.mi-v2-sidebar-link,.mi-settings-parent-row,.mi-settings-home-trigger,.mi-nav-parent
){color:inherit!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar :is(
 .nav-item.active,.nav-item[aria-current="page"],.mi-v2-sidebar-link.mi-v2-current,
 .mi-settings-parent-row[data-mi-active="true"],.mi-nav-parent[aria-expanded="true"]
){
  background:var(--mi-sig-active)!important;
  color:var(--mi-sig-active-ink)!important;
  border:1px solid var(--mi-sig-line)!important;
  box-shadow:0 4px 14px var(--mi-sig-shadow-color),0 0 0 1px var(--mi-sig-line)!important;
  border-radius:12px!important;
}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #sidebar :is(.nav-item.active,.nav-item[aria-current="page"],.mi-v2-sidebar-link.mi-v2-current){color:#fff0b9!important;border-color:#e9c067!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar :is(
 .nav-item,.mi-v2-sidebar-link,.mi-settings-home-trigger,.mi-nav-parent
):hover:not(.active){background:color-mix(in srgb,var(--mi-sig-accent) 19%,transparent)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(#moduleTabs,.mi-module-tabs,.mi-settings-header-tabs,.mi-v5-tabs) :is(.active,[aria-selected="true"],[aria-current="page"]){
 background:var(--mi-sig-active)!important;
 color:#fff!important;
 border-color:var(--mi-sig-focus)!important;
 box-shadow:0 0 14px var(--mi-sig-shadow-color)!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(
 .mi-dash-button,.mi-dash-shortcuts button,.mi-ui-button,.button,.mi-ui-search,input:not([type="checkbox"]):not([type="radio"]),textarea,select
){border:1px solid var(--mi-sig-line)!important;border-radius:var(--mi-sig-control-radius)!important;color:var(--mi-sig-ink)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(input,textarea,select,.mi-dash-shortcuts button){background:var(--mi-sig-card)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(.mi-dash-button,.mi-ui-button,.button):not(:disabled):hover {border-color:var(--mi-sig-focus)!important;box-shadow:0 0 12px var(--mi-sig-shadow-color)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(.mi-dash-button.mi-dash-primary,.mi-dash-primary){background:var(--mi-sig-active)!important;color:#fff!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(table,.mi-dash-table){color:var(--mi-sig-ink)!important;border-collapse:separate;border-spacing:0;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(table,.mi-dash-table) :is(th,thead){background:var(--mi-sig-table)!important;color:var(--mi-sig-ink)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(table,.mi-dash-table) tr:hover td{background:color-mix(in srgb,var(--mi-sig-accent) 8%,transparent)!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--mi-sig-focus)!important;outline-offset:2px!important;}
/* Native visibility rules remain authoritative (no phantom buttons when hidden). */
@media(max-width:680px){
 html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen .mi-dash-toolbar{padding:12px!important;}
 html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(.mi-dash-card,.mi-ui-card,.mi-pro-card){border-radius:12px!important;}
}
@media(prefers-reduced-motion:reduce){
 html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen *{animation:none!important;transition:none!important;}
}
/* Exact reference miniatures in Look & Feel selection; artwork is local. */
#appScreen #miVisualStyleCollection [data-preview-style="sakura-pearl"]{
 background:linear-gradient(90deg,rgba(255,235,249,.70),rgba(255,229,245,.2)),url('../art/sakura-hero-clean.svg') right center/auto 100% no-repeat,#fff1f9;
}
#appScreen #miVisualStyleCollection [data-preview-style="obsidian-ember"]{
 background:linear-gradient(90deg,#19191d99,transparent),url('../art/ember-hero-clean.svg') right center/auto 100% no-repeat,#17171b;
}
#appScreen #miVisualStyleCollection [data-preview-style="emerald-mihrab"]{
 background:linear-gradient(90deg,#005641bb,transparent),url('../art/emerald-hero-clean.svg') right center/auto 100% no-repeat,#005641;
}
#appScreen #miVisualStyleCollection :is([data-preview-style="sakura-pearl"],[data-preview-style="obsidian-ember"],[data-preview-style="emerald-mihrab"]) .mi-visual-preview-head{opacity:.65;}
/* Lock controls advertise fixed identity without blocking non-theme settings. */
html[data-mi-signature-mode-lock="light"] #appScreen #themeToggle,
html[data-mi-signature-mode-lock="dark"] #appScreen #themeToggle{opacity:.55;cursor:not-allowed!important;}


/* ========================================================================
  FIX: GENUINE ARTWORK, NEVER CROPPED UI IMAGES
  All art assets above are text-free vector illustrations. These selectors
  style the REAL interactive elements, not fake controls baked in images.
  No business logic, navigation state or dashboard grid geometry is changed.
   ======================================================================== */

/* Business header: textured ivory / blossom pearl / obsidian metal; real buttons
   remain clickable and readable, with no text or fake controls in artwork. */
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #topbar {
 background-image:linear-gradient(90deg,#fffaf0ed,#fff8ebef),url('../art/mihrab-pattern.svg')!important;
 background-size:cover,210px 210px!important;
 background-repeat:no-repeat,repeat!important;
 background-position:center,top right!important;
 border-bottom:2px solid #d8a94f!important;
 box-shadow:0 5px 18px rgba(91,58,17,.15)!important;
 color:#123e30!important;
}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen #topbar {
 background:linear-gradient(105deg,#fff8fc,#ffecf7 60%,#ffe7f6)!important;
 border-bottom:1px solid #eec3de!important;
 color:#602445!important;
}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen #topbar {
 background:linear-gradient(106deg,#131416,#252020 52%,#141516)!important;
 border-bottom:1px solid rgba(255,132,34,.54)!important;
 color:#fff1e3!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #topbar :is(#headerBusiness,.mi-topbar-brand,.topbar-actions,#userInfo){color:inherit!important;}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #topbar .topbar-actions>button {
 background:linear-gradient(175deg,#fffdf7,#fff1d8)!important;
 color:#123d30!important;
 border:1px solid #d4a650!important;
 box-shadow:0 3px 10px rgba(76,58,22,.15),inset 0 1px #fff!important;
}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #topbar .topbar-actions>button:hover {background:#fff0cd!important;border-color:#b9872e!important;}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen #topbar .topbar-actions>button {color:#ffe6c2!important;background:#191818!important;border-color:rgba(255,137,38,.6)!important;}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen #topbar .topbar-actions>button {color:#732753!important;background:#fff7fc!important;border-color:#edb9d8!important;}

/* Sidebar decorations are art-only. Text belongs entirely to real DOM nodes.
   Bottom artwork never carries the old fake Settings or About labels. */
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar {
 background-size:100% auto,cover!important;
 background-position:center bottom,center!important;
 background-attachment:local!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar :is(.nav-item,.mi-settings-parent-row,.mi-nav-parent,.mi-settings-home-trigger,.mi-sidebar-footer) {
 position:relative;
 z-index:1;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar .mi-sidebar-footer {
 flex-shrink:0!important;
 margin-top:auto!important;
 margin-bottom:3px!important;
 padding:12px 9px 9px!important;
 border:1px solid var(--mi-sig-line)!important;
 border-radius:15px!important;
 background:var(--mi-sig-footer-bg)!important;
 color:var(--mi-sig-sidebar-ink)!important;
 box-shadow:0 5px 15px rgba(0,0,0,.12)!important;
 backdrop-filter:blur(8px);
}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen {--mi-sig-footer-bg:rgba(0,57,41,.94);--mi-sig-sidebar-ink:#fff1cc;}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen {--mi-sig-footer-bg:rgba(255,247,253,.95);--mi-sig-sidebar-ink:#622b4c;}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen {--mi-sig-footer-bg:rgba(22,20,21,.94);--mi-sig-sidebar-ink:#ffdfb1;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar :is(.mi-footer-brand,.mi-footer-about,.mi-footer-label,.mi-footer-icon){
 color:var(--mi-sig-sidebar-ink)!important;
 -webkit-text-fill-color:currentColor!important;
 text-shadow:none!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar .mi-footer-about {border:1px solid transparent!important;background:transparent!important;min-height:39px!important;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar .mi-footer-about:hover {background:color-mix(in srgb,var(--mi-sig-secondary) 18%,transparent)!important;border-color:var(--mi-sig-line)!important;}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #sidebar .mi-footer-mark {background:#a9781e!important;color:#fff9ea!important;}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen #sidebar .mi-footer-mark {background:#ed6ba7!important;color:white!important;}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen #sidebar .mi-footer-mark {background:#99430e!important;color:#fff5e7!important;}

/* The live Dashboard Customize control is NOT part of the banner artwork.
   Do not cover input controls or draw mock buttons within background imagery. */
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #miDashboardView .mi-dash-toolbar {
 display:flex!important;
 align-items:center!important;
 justify-content:space-between!important;
 gap:12px!important;
 padding:18px 20px!important;
 min-height:100px!important;
 background-image:linear-gradient(90deg,var(--mi-sig-banner) 0%,var(--mi-sig-banner) 35%,transparent 85%),var(--mi-sig-hero-art)!important;
 background-size:100% 100%,auto 100%!important;
 background-position:left center,right center!important;
 background-repeat:no-repeat!important;
 isolation:isolate!important;
 overflow:hidden!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #miDashboardView .mi-dash-toolbar>* {position:relative;z-index:1;}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #miDashboardView .mi-dash-toolbar :is(.mi-dash-actions,.mi-dash-editor-actions) {
 padding:5px;border-radius:12px;
 background:var(--mi-sig-toolbar-actions);
 backdrop-filter:blur(4px);
}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen {--mi-sig-toolbar-actions:rgba(1,65,47,.87);}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen {--mi-sig-toolbar-actions:rgba(255,243,251,.88);}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen {--mi-sig-toolbar-actions:rgba(17,17,18,.85);}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #miDashboardView .mi-dash-toolbar :is(.mi-dash-heading,.mi-dash-heading h1){color:#fff6dd!important;}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen #miDashboardView .mi-dash-toolbar :is(.mi-dash-heading,.mi-dash-heading h1){color:#fff3e6!important;}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen #miDashboardView .mi-dash-toolbar :is(.mi-dash-heading,.mi-dash-heading h1){color:#562340!important;}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #miDashboardView .mi-dash-toolbar :is(.mi-dash-button,.mi-dash-actions button){
 background:#024c39!important;border:1px solid #e3b65e!important;color:#fff3cf!important;
 box-shadow:0 3px 10px rgba(0,0,0,.25)!important;
}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen #miDashboardView .mi-dash-toolbar :is(.mi-dash-button,.mi-dash-actions button){background:#211711!important;border:1px solid #ff8a27!important;color:#ffe9d1!important;}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen #miDashboardView .mi-dash-toolbar :is(.mi-dash-button,.mi-dash-actions button){background:#fff5fc!important;border:1px solid #eb9ecb!important;color:#7f2b55!important;}

/* Image-free controls for all settings/details pages, preserving real tabindex,
   click handlers, aria-current, input and business records. */
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(.mi-ui-settings-search,.mi-ui-search,.mi-hub-searchbar,.mi-dash-catalog-search){
 background:var(--mi-sig-card)!important;
 color:var(--mi-sig-ink)!important;
 border:1px solid var(--mi-sig-line)!important;
 box-shadow:inset 0 1px var(--mi-sig-glint),0 3px 10px var(--mi-sig-shadow-color)!important;
}
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen :is(.mi-ui-settings-search,.mi-ui-search,.mi-hub-searchbar) :is(input,button){color:var(--mi-sig-ink)!important;}

/* Preserve the separate visible menu links, never paint an active menu item
   based solely on its parent expanded state. */
html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar :is(.nav-item,.mi-settings-home-trigger,.mi-nav-parent){border:1px solid transparent!important;}
html[data-mi-visual-style="emerald-mihrab"] #appScreen#appScreen #sidebar :is(.nav-item.active,.nav-item[aria-current="page"],#dashboardNav.active){border-color:#eac36b!important;box-shadow:inset 0 1px 0 #fff6cb66,0 5px 15px #001e1855!important;}
html[data-mi-visual-style="sakura-pearl"] #appScreen#appScreen #sidebar :is(.nav-item.active,.nav-item[aria-current="page"],#dashboardNav.active){border-color:#f7b8d9!important;box-shadow:inset 0 1px #fff9fb,0 5px 16px #bc4a862c!important;}
html[data-mi-visual-style="obsidian-ember"] #appScreen#appScreen #sidebar :is(.nav-item.active,.nav-item[aria-current="page"],#dashboardNav.active){border-color:#f78d31!important;box-shadow:0 0 14px #e85b1638!important;}

@media(max-width:760px) {
 html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #miDashboardView .mi-dash-toolbar{padding:13px!important;min-height:85px!important;}
 html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen #sidebar{background-size:100% auto,cover!important;}
}
@media(prefers-reduced-motion:reduce) {
 html:is([data-mi-visual-style="sakura-pearl"],[data-mi-visual-style="obsidian-ember"],[data-mi-visual-style="emerald-mihrab"]) #appScreen#appScreen *{animation:none!important;transition:none!important;}
}
