/* =============================================================
   SECRET THEME - NEUMORPHISM / SOFT UI  (html.esdm-neu)
   -------------------------------------------------------------
   via https://superdesign.dev/styles/neumorphism
   Enabled ONLY by the URL in the browser ("...?=neumorphism") - it is
   never persisted and never offered by the theme dot. WHITE MODE ONLY:
   every rule is scoped to body:not(.dark), so if the app flips dark on,
   neumorphism simply stops applying.
   One surface colour (#e0e5ec) everywhere; raised = dual shadow
   (dark #bec3c9 + light #ffffff); wells = inset; accent #4d6bfe.
   NOTE: neumorphism is intentionally low-contrast garnish - real focus
   rings are kept so keyboard users can still see focus.
   ============================================================= */

/* surface + primary text (recipe: solid #E0E5EC / #3D4852, no borders) */
html.esdm-neu body:not(.dark){
    background:#e0e5ec !important;
    background-image:none !important;
    color:#3d4852 !important;
}
html.esdm-neu body:not(.dark) .navbar-container{
    background:#e0e5ec !important;
    color:#3d4852 !important;
}
html.esdm-neu body:not(.dark) .navbar-session-container::before{
    color:#6c63ff !important;
}
html.esdm-neu body:not(.dark) .resources-controls-icon-btn,
html.esdm-neu body:not(.dark) .resources-controls-icon-btn i{
    color:#6c63ff !important;
}
/* main panel = large container (32px radius, extruded, no border) */
html.esdm-neu body:not(.dark) .tenants-container{
    background:#e0e5ec !important;
    border:1px solid transparent !important;
    border-radius:32px !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    box-shadow:
        9px 9px 16px rgba(163,177,198,.6),
        -9px -9px 16px rgba(255,255,255,.5) !important;
}
/* tenant header = raised pillow. Hover keeps the SAME surface (the recipe
   never shifts colour on hover - only shadow depth changes).
   Real DOM has no .tenant-header-container wrapper. */
html.esdm-neu body:not(.dark) .tenant-header,
html.esdm-neu body:not(.dark) .tenant-header:hover,
html.esdm-neu body:not(.dark) .tenant-header:focus,
html.esdm-neu body:not(.dark) .tenant-header:focus-within,
html.esdm-neu body:not(.dark) .tenant-header:active,
html.esdm-neu body:not(.dark) .tenant-header-container .tenant-header{
    background:#e0e5ec !important;
    border:1px solid transparent !important;
    border-radius:16px !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    box-shadow:
        9px 9px 16px rgba(163,177,198,.6),
        -9px -9px 16px rgba(255,255,255,.5) !important;
    color:#3d4852 !important;
}
html.esdm-neu body:not(.dark) .tenant-header .tenant-display-name,
html.esdm-neu body:not(.dark) .tenant-header-container .tenant-header .tenant-display-name{
    color:#3d4852 !important;
    -webkit-text-fill-color:#3d4852 !important;
    background-image:none !important;
    font-weight:700 !important;
}
html.esdm-neu body:not(.dark) .tenant-header-expand-button,
html.esdm-neu body:not(.dark) .tenant-header-expand-button .custom-chevron{
    color:#6b7280 !important;
}
/* tiles = raised buttons; hover lifts by shadow only, press goes inset.
   Explicitly pinned so the theme-4 blue border/glow can't leak in. */
html.esdm-neu body:not(.dark) .tenant-resources .tile-view .tenant-resources-btn{
    background:#e0e5ec !important;
    border:1px solid transparent !important;
    border-radius:16px !important;
    box-shadow:
        9px 9px 16px rgba(163,177,198,.6),
        -9px -9px 16px rgba(255,255,255,.5) !important;
    transition:box-shadow .3s ease-out,transform .3s ease-out !important;
}
html.esdm-neu body:not(.dark) .tenant-resources .tile-view:hover .tenant-resources-btn,
html.esdm-neu body:not(.dark) .tenant-resources .tile-view .tenant-resources-btn:hover{
    background:#e0e5ec !important;
    border:1px solid transparent !important;
    transform:translateY(-1px) !important;
    box-shadow:
        12px 12px 20px rgba(163,177,198,.7),
        -12px -12px 20px rgba(255,255,255,.6) !important;
}
html.esdm-neu body:not(.dark) .tenant-resources .tile-view .tenant-resources-btn:active{
    transform:translateY(.5px) !important;
    box-shadow:
        inset 6px 6px 10px rgba(163,177,198,.6),
        inset -6px -6px 10px rgba(255,255,255,.5) !important;
}
html.esdm-neu body:not(.dark) .tenant-resources .tile-view .tile-view-label-container{
    background:transparent !important;
    border:none !important;
}
html.esdm-neu body:not(.dark) .tenant-resources .tile-view .tile-view-label{
    color:#3d4852 !important;
    -webkit-text-fill-color:#3d4852 !important;
    background-image:none !important;
    text-shadow:none !important;
    font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif !important;
    font-weight:600 !important;
}
/* list rows = raised pills; hover lifts by shadow only, NO colour change */
html.esdm-neu body:not(.dark) .tenant-resources .list-view,
html.esdm-neu body:not(.dark) .tenant-resources .list-view:hover{
    background:#e0e5ec !important;
    border:1px solid transparent !important;
    border-radius:16px !important;
    box-shadow:
        9px 9px 16px rgba(163,177,198,.6),
        -9px -9px 16px rgba(255,255,255,.5) !important;
}
html.esdm-neu body:not(.dark) .tenant-resources .list-view:hover{
    box-shadow:
        12px 12px 20px rgba(163,177,198,.7),
        -12px -12px 20px rgba(255,255,255,.6) !important;
}
html.esdm-neu body:not(.dark) .tenant-resources .list-view .list-view-label{
    color:#3d4852 !important;
    -webkit-text-fill-color:#3d4852 !important;
    background-image:none !important;
    font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif !important;
    font-weight:600 !important;
}
/* accent (single soft violet) + mandatory visible focus ring */
html.esdm-neu body:not(.dark) #esdm-brand-toggle .esdm-brand-dot{
    background:#6c63ff !important;
}
html.esdm-neu body:not(.dark) a:focus-visible,
html.esdm-neu body:not(.dark) button:focus-visible,
html.esdm-neu body:not(.dark) [tabindex]:focus-visible{
    outline:2px solid #6c63ff !important;
    outline-offset:2px !important;
}