/* NexoWatt EOS native shell v91
   Clean presentation layer for the NexoWatt fork of ioBroker Admin.
   This stylesheet deliberately avoids broad pointer-event, visibility and DOM-structure overrides. */

:root {
    --nx-bg-0: #020914;
    --nx-bg-1: #061526;
    --nx-bg-2: #0a2438;
    --nx-panel: rgba(8, 25, 41, 0.91);
    --nx-panel-strong: rgba(4, 16, 29, 0.97);
    --nx-border: rgba(108, 192, 255, 0.18);
    --nx-border-accent: rgba(0, 255, 136, 0.34);
    --nx-text: #edf8ff;
    --nx-muted: rgba(220, 238, 249, 0.70);
    --nx-accent: #00ff88;
    --nx-accent-2: #00d4ff;
    --nx-danger: #ff4d67;
    --nx-warning: #ffc933;
    --nx-page-x: 16px;
    --nx-shell-top: 12px;
    --nx-header-h: 70px;
    --nx-nav-gap: 12px;
    --nx-nav-h: 74px;
    --nx-content-top: calc(var(--nx-shell-top) + var(--nx-header-h) + var(--nx-nav-gap) + var(--nx-nav-h) + 12px);
}

html,
body,
#root {
    min-height: 100%;
    color: var(--nx-text);
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 255, 136, 0.10), transparent 33%),
        radial-gradient(circle at 82% 14%, rgba(0, 170, 255, 0.10), transparent 36%),
        linear-gradient(135deg, var(--nx-bg-0), var(--nx-bg-1) 54%, #01050b) !important;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(0, 255, 136, 0.026) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, rgba(255,255,255,0.025), transparent 38%);
    opacity: .5;
}

#root { position: relative; z-index: 1; }

/* Login */
html.eos-login #root {
    min-height: 100vh;
    display: grid;
    place-items: center;
}
html.eos-login main.MuiPaper-root {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
/* The outer frame is decorative only. Keeping it as a pseudo element prevents
   the viewport-sized main Paper from being mistaken for a second form card. */
html.eos-login main.MuiPaper-root::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    box-sizing: border-box;
    width: min(440px, calc(100vw - 20px)) !important;
    height: min(580px, calc(100dvh - 20px)) !important;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 229, 138, .34);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(10, 34, 52, .82), rgba(3, 15, 27, .88));
    box-shadow: 0 26px 70px rgba(0, 0, 0, .52), 0 0 42px rgba(0, 255, 136, .08);
    pointer-events: none;
}
html.eos-login main.MuiPaper-root > .eos-login-card-modern,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username),
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) {
    position: relative;
    z-index: 1;
    box-sizing: border-box !important;
    width: min(380px, calc(100vw - 52px)) !important;
    height: auto !important;
    min-height: 510px !important;
    max-width: 380px !important;
    max-height: none !important;
    padding: 28px 30px 26px !important;
    overflow: visible !important;
    border-radius: 24px !important;
    color: var(--nx-text) !important;
    background: linear-gradient(180deg, rgba(14, 36, 56, .97), rgba(4, 15, 27, .96)) !important;
    border: 1px solid var(--nx-border-accent) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}
html.eos-login img[src*="admin"],
html.eos-login .MuiAvatar-img { object-fit: contain !important; filter: drop-shadow(0 0 18px rgba(0,255,136,.35)); }

/* Main header */
html.eos-app .MuiAppBar-root {
    position: fixed !important;
    z-index: 1600 !important;
    top: var(--nx-shell-top) !important;
    left: var(--nx-page-x) !important;
    right: var(--nx-page-x) !important;
    width: auto !important;
    height: var(--nx-header-h) !important;
    min-height: var(--nx-header-h) !important;
    margin: 0 !important;
    color: var(--nx-text) !important;
    border-radius: 23px !important;
    overflow: visible !important;
    border: 1px solid var(--nx-border-accent) !important;
    background:
        radial-gradient(circle at 8% 50%, rgba(0,255,136,.16), transparent 27%),
        radial-gradient(circle at 90% 50%, rgba(0,212,255,.08), transparent 30%),
        linear-gradient(135deg, rgba(4,24,36,.98), rgba(2,9,20,.97)) !important;
    box-shadow: 0 16px 42px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06) !important;
    z-index: 1400 !important;
}

html.eos-app .eos-top-toolbar {
    height: var(--nx-header-h) !important;
    min-height: var(--nx-header-h) !important;
    padding: 0 16px !important;
    gap: 8px !important;
    overflow: hidden !important;
    color: var(--nx-text) !important;
}

.eos-brand-badge {
    min-width: 260px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 19px;
    border: 1px solid rgba(0,255,136,.40);
    background:
        radial-gradient(circle at 20% 50%, rgba(0,255,136,.22), transparent 48%),
        linear-gradient(135deg, rgba(0,255,136,.11), rgba(0,212,255,.055));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 22px rgba(0,0,0,.22);
    flex: 0 0 auto;
}
.eos-brand-badge-full {
    min-width: 0;
    display: flex;
    align-items: center;
}
.eos-brand-badge-full-logo {
    width: 205px;
    max-width: min(48vw, 205px);
    height: auto;
    max-height: 56px;
    object-fit: contain;
    object-position: left center;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0,255,136,.24));
}
.eos-brand-badge-mark,
.eos-brand-badge-logo,
.eos-brand-badge-copy { display: none !important; }
.eos-brand-led { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--nx-accent); box-shadow: 0 0 12px rgba(0,255,136,.85); }

.eos-native-toolbar-identity-hidden,
.eos-native-toolbar-menu-hidden {
    display: none !important;
}

html.eos-app .eos-top-toolbar .MuiIconButton-root,
html.eos-app .eos-top-toolbar button.MuiButtonBase-root {
    color: rgba(229,245,255,.92) !important;
    border: 1px solid rgba(108,192,255,.15) !important;
    background: linear-gradient(180deg, rgba(11,31,48,.88), rgba(5,17,29,.94)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 18px rgba(0,0,0,.20) !important;
    transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease !important;
}
html.eos-app .eos-top-toolbar .MuiIconButton-root:hover,
html.eos-app .eos-top-toolbar button.MuiButtonBase-root:hover {
    transform: translateY(-1px);
    color: #fff !important;
    border-color: rgba(0,255,136,.30) !important;
    background: linear-gradient(180deg, rgba(14,42,60,.96), rgba(6,23,36,.96)) !important;
}

/* Horizontal NexoWatt navigation */
html.eos-app .MuiDrawer-root { width: 0 !important; flex: 0 0 0 !important; }
html.eos-app .MuiDrawer-paper,
html.eos-app .eos-drawer {
    position: fixed !important;
    top: calc(var(--nx-shell-top) + var(--nx-header-h) + var(--nx-nav-gap)) !important;
    left: var(--nx-page-x) !important;
    right: var(--nx-page-x) !important;
    width: auto !important;
    height: var(--nx-nav-h) !important;
    min-height: var(--nx-nav-h) !important;
    max-height: var(--nx-nav-h) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 8px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    color: var(--nx-text) !important;
    border-radius: 23px !important;
    border: 1px solid rgba(0,255,136,.28) !important;
    background:
        radial-gradient(circle at 4% 50%, rgba(0,255,136,.12), transparent 30%),
        linear-gradient(135deg, rgba(7,28,43,.97), rgba(2,9,20,.96)) !important;
    box-shadow: 0 14px 38px rgba(0,0,0,.31), inset 0 1px 0 rgba(255,255,255,.055) !important;
    z-index: 1300 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,.72) rgba(3,15,26,.65);
}
html.eos-app .MuiDrawer-paper::-webkit-scrollbar { height: 6px; }
html.eos-app .MuiDrawer-paper::-webkit-scrollbar-track { background: rgba(3,15,26,.65); border-radius: 999px; }
html.eos-app .MuiDrawer-paper::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--nx-accent), var(--nx-accent-2)); border-radius: 999px; }

html.eos-app .eos-native-drawer-header { display: none !important; }

.eos-standalone-nav-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: grid;
    place-items: center;
    color: #efffff;
    border-radius: 16px;
    border: 1px solid rgba(0,255,136,.34);
    background: linear-gradient(145deg, rgba(0,255,136,.14), rgba(0,212,255,.07));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 18px rgba(0,0,0,.22);
    cursor: pointer;
    flex: 0 0 auto;
}
.eos-standalone-nav-toggle:hover { border-color: rgba(0,255,136,.58); background: linear-gradient(145deg, rgba(0,255,136,.22), rgba(0,212,255,.10)); }
.eos-standalone-nav-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
html.eos-nav-compact .eos-standalone-nav-toggle svg { transform: rotate(180deg); }

html.eos-app .eos-scroll-nav,
html.eos-app .MuiDrawer-paper > .MuiList-root {
    height: 56px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: max-content !important;
    overflow: visible !important;
}

html.eos-app .eos-scroll-nav > div,
html.eos-app .eos-scroll-nav > li { width: auto !important; flex: 0 0 auto !important; }
html.eos-app .eos-scroll-nav a { color: inherit !important; text-decoration: none !important; }

html.eos-app .nexowatt-native-nav-item {
    height: 52px !important;
    min-height: 52px !important;
    min-width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    border-radius: 17px !important;
    color: rgba(234,247,255,.92) !important;
    border: 1px solid rgba(123,204,255,.12) !important;
    background: rgba(2,12,22,.38) !important;
    transition: transform .17s ease, border-color .17s ease, background .17s ease, box-shadow .17s ease !important;
}
html.eos-app .nexowatt-native-nav-item:hover {
    transform: translateY(-1px);
    border-color: rgba(0,255,136,.28) !important;
    background: linear-gradient(135deg, rgba(0,255,136,.10), rgba(0,212,255,.055)) !important;
}
html.eos-app .nexowatt-native-nav-item.Mui-selected,
html.eos-app .nexowatt-native-nav-item[aria-selected="true"] {
    color: #f8ffff !important;
    border-color: rgba(0,255,136,.48) !important;
    background: linear-gradient(135deg, rgba(0,255,136,.32), rgba(0,212,255,.18)) !important;
    box-shadow: 0 0 22px rgba(0,255,136,.13), inset 0 1px 0 rgba(255,255,255,.07) !important;
}

.eos-native-nav-icon,
.nexowatt-native-nav-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-grid;
    place-items: center;
    color: rgba(229,246,255,.94);
    border-radius: 12px;
    border: 1px solid rgba(98,190,255,.18);
    background:
        radial-gradient(circle at 30% 28%, rgba(0,255,136,.18), transparent 48%),
        linear-gradient(180deg, rgba(17,43,66,.96), rgba(7,19,33,.96));
    box-shadow: 0 8px 17px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.055);
    transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease;
}
.eos-native-nav-icon svg,
.nexowatt-native-nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nexowatt-native-nav-item:hover .eos-native-nav-icon,
.nexowatt-native-nav-item:hover .nexowatt-native-nav-icon {
    transform: translateY(-1px);
    border-color: rgba(0,255,136,.30);
}
.nexowatt-native-nav-item.Mui-selected .eos-native-nav-icon,
.nexowatt-native-nav-item[aria-selected="true"] .eos-native-nav-icon,
.nexowatt-native-nav-item.Mui-selected .nexowatt-native-nav-icon,
.nexowatt-native-nav-item[aria-selected="true"] .nexowatt-native-nav-icon {
    color: #022030;
    border-color: rgba(255,255,255,.30);
    background: linear-gradient(135deg, rgba(0,255,136,.98), rgba(0,212,255,.92));
    box-shadow: 0 0 20px rgba(0,255,136,.20), inset 0 1px 0 rgba(255,255,255,.28);
}
.eos-native-legacy-icon { display: none !important; }
html.eos-app .nexowatt-native-nav-item .MuiListItemText-root { margin: 0 !important; }
html.eos-app .nexowatt-native-nav-item .MuiTypography-root { color: inherit !important; font-size: 14px !important; font-weight: 800 !important; white-space: nowrap !important; }

html.eos-nav-compact .nexowatt-native-nav-item { width: 48px !important; min-width: 48px !important; padding: 0 6px !important; justify-content: center !important; }
html.eos-nav-compact .nexowatt-native-nav-item .MuiListItemText-root { display: none !important; }
html.eos-nav-compact .eos-native-nav-icon,
html.eos-nav-compact .nexowatt-native-nav-icon { width: 32px; height: 32px; min-width: 32px; }

/* Full-width content surface */
html.eos-app #app-paper {
    margin-top: var(--nx-content-top) !important;
    margin-left: var(--nx-page-x) !important;
    margin-right: var(--nx-page-x) !important;
    width: auto !important;
    max-width: none !important;
    min-height: calc(100vh - var(--nx-content-top) - 12px) !important;
    color: var(--nx-text) !important;
    border-radius: 23px !important;
    border: 1px solid var(--nx-border) !important;
    background: linear-gradient(180deg, rgba(8,25,41,.82), rgba(3,12,23,.86)) !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.24) !important;
    overflow: hidden;
}
html.eos-app main,
html.eos-app [role="main"] { margin-left: 0 !important; width: auto !important; max-width: none !important; }

/* Native MUI surfaces keep their behavior; only visual styling changes. */
html.eos-app .MuiPaper-root,
html.eos-app .MuiCard-root,
html.eos-app .MuiDialog-paper,
html.eos-app .MuiPopover-paper,
html.eos-app .MuiMenu-paper {
    color: var(--nx-text) !important;
    background-color: var(--nx-panel) !important;
    border-color: var(--nx-border) !important;
}
html.eos-app .MuiDialog-root,
html.eos-app .MuiModal-root { z-index: 9000 !important; }
html.eos-app .MuiPopover-root,
html.eos-app .MuiMenu-root,
html.eos-app .MuiPopper-root { z-index: 9100 !important; }
html.eos-app .MuiTooltip-popper { z-index: 9200 !important; pointer-events: none !important; }

html.eos-app .MuiTableCell-root,
html.eos-app .MuiDataGrid-cell,
html.eos-app .MuiDataGrid-columnHeaders,
html.eos-app .MuiDivider-root { color: var(--nx-text) !important; border-color: rgba(120,190,255,.14) !important; }
html.eos-app .MuiInputBase-root,
html.eos-app .MuiOutlinedInput-root,
html.eos-app .MuiInputBase-input,
html.eos-app .MuiSelect-select { color: var(--nx-text) !important; background-color: rgba(4,17,29,.60) !important; }
html.eos-app .MuiOutlinedInput-notchedOutline { border-color: rgba(93,190,255,.30) !important; }
html.eos-app .MuiInputLabel-root,
html.eos-app .MuiFormLabel-root,
html.eos-app .MuiTypography-colorTextSecondary { color: var(--nx-muted) !important; }
html.eos-app .MuiButton-contained { color: #02101d !important; font-weight: 900 !important; background: linear-gradient(135deg, var(--nx-accent), var(--nx-accent-2)) !important; }
html.eos-app .MuiButton-outlined { color: var(--nx-text) !important; border-color: rgba(0,255,136,.30) !important; }

html.eos-route-adapters #app-paper .MuiCard-root,
html.eos-route-intro #app-paper .MuiCard-root {
    border-radius: 20px !important;
    border: 1px solid rgba(108,192,255,.18) !important;
    background: linear-gradient(180deg, rgba(9,31,48,.96), rgba(5,18,31,.96)) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.24) !important;
    transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease !important;
}
html.eos-route-adapters #app-paper .MuiCard-root:hover,
html.eos-route-intro #app-paper .MuiCard-root:hover { transform: translateY(-2px); border-color: rgba(0,255,136,.28) !important; box-shadow: 0 18px 36px rgba(0,0,0,.30), 0 0 20px rgba(0,255,136,.06) !important; }

/* Datapoints: native interaction remains authoritative. */
html.eos-objects-surface .eos-object-value-cell {
    min-height: 30px !important;
    border-radius: 7px !important;
    pointer-events: auto !important;
    transition: background .12s ease, box-shadow .12s ease;
}
html.eos-objects-surface .eos-object-value-cell[data-eos-object-writable="1"] { cursor: pointer !important; }
html.eos-objects-surface .eos-object-value-cell[data-eos-object-writable="1"]:hover {
    background: rgba(0,255,136,.12) !important;
    box-shadow: inset 0 0 0 1px rgba(0,255,136,.28) !important;
}
html.eos-objects-surface .eos-object-value-cell[data-eos-expert-only="1"] { cursor: not-allowed !important; opacity: .72; background: rgba(255,201,51,.055) !important; }
html.eos-objects-surface .eos-object-value-cell[data-eos-direct-control="1"] * { pointer-events: none !important; }
html.eos-objects-surface .eos-object-value-dialog,
html.eos-objects-surface .MuiDialog-root:has(#edit-value-dialog-title) { z-index: 10000 !important; }

/* Roles */
.eos-role-hidden { display: none !important; }

/* Assistant */
.eos-assist-root {
    position: fixed;
    right: 118px;
    bottom: 22px;
    z-index: 8700;
}
.eos-assist-button {
    min-width: 156px;
    min-height: 46px;
    display: grid;
    grid-template-columns: 12px 1fr;
    align-items: center;
    gap: 2px 10px;
    padding: 7px 15px;
    color: #effffc;
    border: 1px solid rgba(0,255,136,.38);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,255,136,.20), rgba(0,212,255,.10)), rgba(2,12,22,.96);
    box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 20px rgba(0,255,136,.10);
    cursor: pointer;
}
.eos-assist-dot { grid-row: 1 / span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--nx-accent); box-shadow: 0 0 12px rgba(0,255,136,.9); }
.eos-assist-button strong { grid-column: 2; font-size: 13px; line-height: 1; }
.eos-assist-button small { grid-column: 2; color: rgba(226,255,247,.72); font-size: 10px; }
.eos-assist-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(430px, calc(100vw - 30px));
    padding: 18px;
    color: var(--nx-text);
    border: 1px solid rgba(0,255,136,.30);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8,28,44,.98), rgba(3,13,24,.98));
    box-shadow: 0 24px 60px rgba(0,0,0,.48);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.eos-assist-open .eos-assist-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.eos-assist-head { display: grid; grid-template-columns: 38px 1fr 32px; align-items: start; gap: 10px; }
.eos-assist-head img { width: 36px; height: 36px; object-fit: contain; }
.eos-assist-head strong { display: block; font-size: 16px; }
.eos-assist-head span { display: block; margin-top: 4px; color: var(--nx-muted); font-size: 12px; line-height: 1.35; }
.eos-assist-close { width: 32px; height: 32px; color: #fff; border: 1px solid rgba(0,255,136,.24); border-radius: 11px; background: rgba(0,0,0,.30); cursor: pointer; }
.eos-assist-input-row { display: flex; gap: 8px; margin-top: 14px; }
.eos-assist-input { flex: 1; min-width: 0; padding: 10px 12px; color: var(--nx-text); border: 1px solid rgba(98,190,255,.26); border-radius: 13px; background: rgba(0,7,13,.60); outline: none; }
.eos-assist-send { padding: 0 14px; color: #001019; font-weight: 900; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--nx-accent), var(--nx-accent-2)); cursor: pointer; }
.eos-assist-answer { margin-top: 12px; padding: 12px; color: rgba(238,255,250,.92); font-size: 12px; line-height: 1.45; border: 1px solid rgba(0,212,255,.18); border-radius: 15px; background: rgba(0,0,0,.25); }
.eos-assist-config-hidden { display: none !important; }

@media (max-width: 1220px) {
    :root { --nx-page-x: 10px; --nx-header-h: 64px; --nx-nav-h: 68px; }
    .eos-brand-badge { min-width: 66px; padding: 6px 9px; }
    .eos-brand-led { display: none; }
    .eos-brand-badge-full-logo { width: 165px; height: auto; max-height: 46px; max-width: min(44vw, 165px); }
    html.eos-app .nexowatt-native-nav-item { padding: 0 12px !important; }
    .eos-native-nav-icon,
    .nexowatt-native-nav-icon { width: 31px; height: 31px; min-width: 31px; }
}

@media (max-width: 760px) {
    :root { --nx-page-x: 7px; --nx-shell-top: 7px; --nx-header-h: 58px; --nx-nav-gap: 8px; --nx-nav-h: 64px; }
    html.eos-app .eos-top-toolbar { padding: 0 8px !important; gap: 5px !important; }
    .eos-brand-badge { min-width: 52px; min-height: 48px; padding: 5px 8px; }
    .eos-brand-badge-full-logo { width: 120px; height: auto; max-height: 34px; max-width: min(40vw, 120px); }
    html.eos-app .nexowatt-native-nav-item { height: 48px !important; min-height: 48px !important; }
    .eos-assist-root { right: 14px; bottom: 14px; }
    .eos-assist-button { min-width: 52px; width: 52px; height: 52px; padding: 0; place-items: center; grid-template-columns: 1fr; }
    .eos-assist-button strong, .eos-assist-button small { display: none; }
    .eos-assist-dot { grid-column: 1; grid-row: 1; width: 14px; height: 14px; }
}

/* Native React icon slot */
.nexowatt-native-nav-icon-slot {
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* v88 role access */
html.eos-security-nonadmin .eos-admin-only-control,
html.eos-security-nonadmin [data-eos-admin-only-control="1"] { display: none !important; pointer-events: none !important; }
.eos-role-landing { min-height: 100%; display: grid; place-items: center; padding: 30px; }
.eos-role-landing-card { width: min(760px, 100%); padding: 28px; color: var(--nx-text); border: 1px solid rgba(0,255,136,.28); border-radius: 24px; background: linear-gradient(150deg, rgba(4,31,42,.96), rgba(2,12,23,.98)); box-shadow: 0 24px 60px rgba(0,0,0,.38); }
.eos-role-landing-eyebrow { color: var(--nx-accent); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eos-role-landing-card h1 { margin: 8px 0 10px; font-size: clamp(25px,4vw,38px); }
.eos-role-landing-card p { margin: 0; color: var(--nx-muted); line-height: 1.55; }
.eos-role-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin-top: 22px; }
.eos-role-actions button { min-height: 48px; padding: 10px 14px; color: #03121b; font-weight: 900; border: 0; border-radius: 14px; background: linear-gradient(135deg,var(--nx-accent),var(--nx-accent-2)); cursor: pointer; }
.eos-role-actions button:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* v88 RC4: role-safe installer basic settings and first-login security */
.eos-basic-settings-overlay { position: fixed; inset: 0; z-index: 25000; display: grid; place-items: center; padding: 24px; background: rgba(0,7,14,.78); backdrop-filter: blur(5px); }
.eos-basic-settings-dialog { width: min(1120px, 96vw); max-height: min(880px, 92vh); overflow: auto; color: #e9f8ff; border: 1px solid rgba(0,255,136,.28); border-radius: 22px; background: linear-gradient(145deg,#061d28 0%,#03111d 100%); box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.eos-basic-settings-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid rgba(0,255,136,.18); background: rgba(3,17,29,.96); }
.eos-basic-settings-header h2 { margin: 0; font-size: 24px; }
.eos-basic-settings-header p { margin: 4px 0 0; color: #91aebc; }
.eos-basic-settings-close { width: 44px; height: 44px; color: #e9f8ff; font-size: 30px; line-height: 1; border: 1px solid rgba(160,205,225,.2); border-radius: 13px; background: rgba(0,0,0,.18); cursor: pointer; }
.eos-basic-settings-note { margin: 20px 24px 0; padding: 14px 16px; color: #c9eaf7; line-height: 1.5; border: 1px solid rgba(255,197,70,.25); border-radius: 14px; background: rgba(255,197,70,.07); }
.eos-basic-settings-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 20px; padding: 22px 24px; }
.eos-basic-settings-field { display: grid; gap: 7px; min-width: 0; }
.eos-basic-settings-label { color: #a9c8d5; font-size: 13px; font-weight: 700; }
.eos-basic-settings-field input,.eos-basic-settings-field select { width: 100%; min-height: 44px; box-sizing: border-box; padding: 9px 12px; color: #effbff; border: 1px solid rgba(126,178,201,.28); border-radius: 10px; outline: none; background: #071824; }
.eos-basic-settings-field input:focus,.eos-basic-settings-field select:focus { border-color: #00e58a; box-shadow: 0 0 0 3px rgba(0,229,138,.12); }
.eos-basic-settings-status { min-height: 22px; padding: 0 24px 12px; color: #a9c8d5; }
.eos-basic-settings-status[data-kind="success"] { color: #45f2a2; }
.eos-basic-settings-status[data-kind="error"] { color: #ff8893; }
.eos-basic-settings-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px 20px; border-top: 1px solid rgba(0,255,136,.16); background: rgba(3,17,29,.96); }
.eos-basic-settings-actions button { min-width: 130px; min-height: 44px; padding: 10px 18px; font-weight: 800; border-radius: 12px; cursor: pointer; }
.eos-basic-settings-primary { color: #03151c; border: 0; background: linear-gradient(135deg,#00e58a,#45d5ff); }
.eos-basic-settings-secondary { color: #e9f8ff; border: 1px solid rgba(160,205,225,.26); background: rgba(255,255,255,.04); }
.eos-basic-settings-actions button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 760px) { .eos-basic-settings-overlay { padding: 8px; } .eos-basic-settings-dialog { width: 100%; max-height: 96vh; } .eos-basic-settings-form { grid-template-columns: 1fr; } .eos-basic-settings-actions { flex-direction: column-reverse; } .eos-basic-settings-actions button { width: 100%; } }

/* v91: server-checked first-login password setup for installer/end-user accounts */
html.eos-first-login-active,html.eos-first-login-active body { min-height: 100%; overflow: hidden !important; background: #020914 !important; }
.eos-first-login-overlay { position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; box-sizing: border-box; padding: 24px; color: #effbff; background: radial-gradient(circle at 20% 0%,rgba(0,229,138,.15),transparent 38%),linear-gradient(145deg,#020914,#061927); font-family: Inter,Roboto,Arial,sans-serif; }
.eos-first-login-card { width: min(520px,100%); box-sizing: border-box; padding: 30px; border: 1px solid rgba(0,229,138,.34); border-radius: 22px; background: rgba(4,21,33,.96); box-shadow: 0 28px 90px rgba(0,0,0,.58),0 0 42px rgba(0,229,138,.08); }
.eos-first-login-logo { display: block; width: min(290px,78%); height: 84px; margin: 0 auto 4px; object-fit: contain; }
.eos-first-login-kicker { margin-bottom: 20px; color: #00e58a; font-size: 11px; font-weight: 900; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.eos-first-login-card h1 { margin: 0 0 12px; font-size: clamp(24px,5vw,34px); text-align: center; }
.eos-first-login-intro { margin: 0 0 18px; color: #bad2dd; line-height: 1.55; text-align: center; }
.eos-first-login-account { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; padding: 10px 12px; border: 1px solid rgba(133,193,218,.18); border-radius: 11px; background: rgba(255,255,255,.035); }
.eos-first-login-card form { display: grid; gap: 14px; }
.eos-first-login-card form>label:not(.eos-first-login-show) { display: grid; gap: 7px; color: #b9d4df; font-size: 13px; font-weight: 800; }
.eos-first-login-card input[type="password"],.eos-first-login-card input[type="text"] { min-height: 48px; box-sizing: border-box; padding: 10px 13px; color: #fff; border: 1px solid rgba(126,178,201,.32); border-radius: 11px; outline: none; background: #061722; font-size: 16px; }
.eos-first-login-card input:focus { border-color: #00e58a; box-shadow: 0 0 0 3px rgba(0,229,138,.13); }
.eos-first-login-show { display: flex; align-items: center; gap: 9px; color: #c6dbe4; cursor: pointer; }
.eos-first-login-rules { margin: 0; color: #9db9c5; font-size: 12px; line-height: 1.45; }
.eos-first-login-status { min-height: 22px; color: #b9d4df; font-size: 13px; }
.eos-first-login-status[data-kind="error"] { color: #ff8791; }
.eos-first-login-status[data-kind="success"] { color: #45f2a2; }
.eos-first-login-submit { min-height: 48px; border: 0; border-radius: 12px; color: #03151c; background: linear-gradient(135deg,#00e58a,#45d5ff); font-weight: 900; cursor: pointer; }
.eos-first-login-submit:disabled { opacity: .58; cursor: wait; }
.eos-first-login-logout { display: block; color: #a9c9d6; text-align: center; text-decoration: none; }
.eos-first-login-logout:hover { color: #fff; }
.eos-role-hidden { display: none !important; }
@media (max-width: 580px) { .eos-first-login-overlay { padding: 10px; } .eos-first-login-card { padding: 22px 17px; border-radius: 16px; } }

/* v87 RC4: passwordless first activation, account management and modern sales UI */
:root {
    --nx-surface-1: rgba(5, 22, 33, .94);
    --nx-surface-2: rgba(8, 31, 45, .88);
    --nx-surface-3: rgba(13, 42, 57, .72);
    --nx-border-soft: rgba(130, 205, 226, .16);
    --nx-border-accent: rgba(0, 229, 138, .32);
    --nx-shadow-soft: 0 18px 50px rgba(0, 0, 0, .30);
    --nx-shadow-float: 0 26px 90px rgba(0, 0, 0, .50);
}

html.eos-app body {
    background:
        radial-gradient(circle at 10% -10%, rgba(0, 229, 138, .10), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(69, 213, 255, .08), transparent 30%),
        #020a12 !important;
}
html.eos-app #app-paper {
    border: 1px solid var(--nx-border-soft) !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(4, 18, 29, .96), rgba(3, 13, 22, .98)) !important;
    box-shadow: var(--nx-shadow-soft) !important;
}
html.eos-app .eos-top-toolbar,
html.eos-app .MuiAppBar-root .MuiToolbar-root {
    backdrop-filter: blur(18px) saturate(125%);
    border-bottom: 1px solid rgba(132, 208, 228, .12);
    background: linear-gradient(90deg, rgba(2, 12, 21, .94), rgba(5, 25, 37, .92)) !important;
}
html.eos-app .nexowatt-native-nav-item {
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}
html.eos-app .nexowatt-native-nav-item:hover {
    transform: translateY(-1px);
    border-color: rgba(69, 213, 255, .18) !important;
    background: rgba(69, 213, 255, .055) !important;
}
html.eos-app .nexowatt-native-nav-item.Mui-selected,
html.eos-app .nexowatt-native-nav-item[aria-current="page"] {
    border-color: var(--nx-border-accent) !important;
    background: linear-gradient(135deg, rgba(0, 229, 138, .13), rgba(69, 213, 255, .08)) !important;
    box-shadow: 0 10px 26px rgba(0, 229, 138, .08) !important;
}
html.eos-app .MuiDialog-paper {
    border: 1px solid var(--nx-border-soft) !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(6, 25, 38, .99), rgba(3, 14, 24, .99)) !important;
    box-shadow: var(--nx-shadow-float) !important;
}
html.eos-app .MuiButton-root,
html.eos-app .MuiIconButton-root,
html.eos-app .MuiInputBase-root {
    border-radius: 11px;
}
html.eos-app .MuiButton-containedPrimary {
    color: #03131a !important;
    background: linear-gradient(135deg, #00e58a, #45d5ff) !important;
    box-shadow: 0 10px 24px rgba(0, 229, 138, .16) !important;
}
html.eos-app .MuiTableHead-root .MuiTableCell-root,
html.eos-app .MuiDataGrid-columnHeaders {
    font-weight: 800 !important;
    letter-spacing: .015em;
    background: rgba(69, 213, 255, .055) !important;
}
html.eos-app .MuiTableRow-root,
html.eos-app .MuiDataGrid-row {
    transition: background .14s ease, transform .14s ease;
}
html.eos-app .MuiTableRow-root:hover,
html.eos-app .MuiDataGrid-row:hover {
    background: rgba(0, 229, 138, .045) !important;
}
html.eos-app :focus-visible {
    outline: 2px solid rgba(69, 213, 255, .86) !important;
    outline-offset: 2px !important;
}

/* Modern login and one-time activation */
html.eos-modern-login body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 229, 138, .16), transparent 34%),
        radial-gradient(circle at 88% 85%, rgba(69, 213, 255, .13), transparent 36%),
        linear-gradient(145deg, #020914, #061927 58%, #03111d);
}
.eos-passwordless-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2147483000;
    display: grid;
    grid-template-columns: 38px auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    min-width: 270px;
    min-height: 64px;
    padding: 10px 16px 10px 12px;
    color: #effbff;
    text-align: left;
    border: 1px solid rgba(0, 229, 138, .34);
    border-radius: 17px;
    background: linear-gradient(140deg, rgba(6, 31, 43, .97), rgba(2, 14, 24, .98));
    box-shadow: 0 20px 65px rgba(0, 0, 0, .48), 0 0 34px rgba(0, 229, 138, .08);
    cursor: pointer;
    backdrop-filter: blur(14px);
}
.eos-passwordless-launcher>span {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #03151c;
    font-size: 22px;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, #00e58a, #45d5ff);
}
.eos-passwordless-launcher strong { font-size: 14px; line-height: 1.25; }
.eos-passwordless-launcher small { color: #9fbcc8; font-size: 11px; }
.eos-passwordless-launcher:hover { transform: translateY(-2px); border-color: rgba(69, 213, 255, .52); }
.eos-passwordless-card { position: relative; }
.eos-passwordless-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    color: #d7edf5;
    font-size: 26px;
    line-height: 1;
    border: 1px solid rgba(150, 205, 226, .20);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
}
.eos-activation-steps {
    display: grid;
    grid-template-columns: 28px 1fr 28px 1fr 28px;
    align-items: center;
    width: min(300px, 88%);
    margin: 4px auto 22px;
}
.eos-activation-steps span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #8aa9b7;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(133, 193, 218, .25);
    border-radius: 50%;
    background: #061722;
}
.eos-activation-steps span.active,
.eos-activation-steps span.done { color: #03151c; border-color: transparent; background: linear-gradient(135deg, #00e58a, #45d5ff); }
.eos-activation-steps i { height: 2px; background: linear-gradient(90deg, rgba(0,229,138,.45), rgba(69,213,255,.26)); }
.eos-passwordless-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eos-passwordless-quick button,
.eos-passwordless-secondary {
    min-height: 43px;
    color: #dceff6;
    font-weight: 750;
    border: 1px solid rgba(133, 193, 218, .22);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
}
.eos-passwordless-quick button:hover,
.eos-passwordless-secondary:hover { border-color: rgba(69, 213, 255, .44); background: rgba(69, 213, 255, .07); }

/* Account management */
.eos-account-management-launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-left: 6px;
    padding: 7px 12px;
    color: #dff8ff;
    font-weight: 800;
    border: 1px solid rgba(0, 229, 138, .26);
    border-radius: 12px;
    background: rgba(0, 229, 138, .065);
    cursor: pointer;
}
.eos-account-management-launcher svg { width: 21px; height: 21px; fill: #00e58a; }
.eos-account-management-launcher:hover { border-color: rgba(69, 213, 255, .45); background: rgba(69, 213, 255, .075); }
.eos-account-management-launcher.eos-account-management-floating { position: fixed; right: 20px; bottom: 90px; z-index: 22000; box-shadow: var(--nx-shadow-soft); }
.eos-account-management-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(0, 7, 14, .80);
    backdrop-filter: blur(7px);
}
.eos-account-management-dialog {
    width: min(940px, 96vw);
    max-height: min(880px, 94vh);
    overflow: auto;
    color: #ecfaff;
    border: 1px solid rgba(0, 229, 138, .28);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(6, 29, 42, .99), rgba(2, 13, 23, .99));
    box-shadow: var(--nx-shadow-float);
}
.eos-account-management-dialog>header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid rgba(133, 193, 218, .13);
    background: rgba(3, 18, 29, .97);
}
.eos-account-management-kicker { margin-bottom: 5px; color: #00e58a; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eos-account-management-dialog h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.eos-account-management-dialog header p { margin: 8px 0 0; max-width: 700px; color: #9fbcc8; line-height: 1.5; }
.eos-account-management-close { width: 43px; height: 43px; flex: 0 0 auto; color: #e7f7fc; font-size: 29px; border: 1px solid rgba(133, 193, 218, .20); border-radius: 13px; background: rgba(255,255,255,.035); cursor: pointer; }
.eos-account-management-security { margin: 20px 26px 0; padding: 13px 15px; color: #c4e4ef; line-height: 1.45; border: 1px solid rgba(69, 213, 255, .18); border-radius: 13px; background: rgba(69, 213, 255, .055); }
.eos-account-management-status { min-height: 22px; margin: 14px 26px 0; color: #a8c6d2; }
.eos-account-management-status[data-kind="success"] { color: #45f2a2; }
.eos-account-management-status[data-kind="error"] { color: #ff8791; }
.eos-account-list { display: grid; gap: 12px; padding: 12px 26px 24px; }
.eos-account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 20px;
    padding: 17px;
    border: 1px solid rgba(133, 193, 218, .15);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(69,213,255,.025));
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.eos-account-row:hover { transform: translateY(-1px); border-color: rgba(0, 229, 138, .30); background: linear-gradient(135deg, rgba(0,229,138,.055), rgba(69,213,255,.035)); }
.eos-account-row-main { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 13px; min-width: 0; }
.eos-account-avatar { display: grid; place-items: center; width: 46px; height: 46px; color: #03151c; font-size: 18px; font-weight: 900; border-radius: 14px; background: linear-gradient(135deg, #00e58a, #45d5ff); }
.eos-account-avatar-enduser { background: linear-gradient(135deg, #45d5ff, #8b9dff); }
.eos-account-meta { display: grid; gap: 4px; min-width: 0; }
.eos-account-meta strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.eos-account-meta span { overflow: hidden; color: #9bb8c5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.eos-account-status-badge { padding: 6px 9px; font-size: 11px; font-weight: 900; white-space: nowrap; border-radius: 999px; }
.eos-account-status-badge.active { color: #55f4ad; background: rgba(0, 229, 138, .10); }
.eos-account-status-badge.pending { color: #ffd36a; background: rgba(255, 197, 70, .10); }
.eos-account-status-badge.disabled { color: #ff9099; background: rgba(255, 94, 108, .10); }
.eos-account-details { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; padding-left: 59px; color: #91afbc; font-size: 12px; }
.eos-account-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; }
.eos-account-reset { min-height: 42px; padding: 8px 13px; color: #03151c; font-weight: 900; border: 0; border-radius: 11px; background: linear-gradient(135deg, #00e58a, #45d5ff); cursor: pointer; }
.eos-account-reset:disabled { opacity: .48; cursor: not-allowed; }
.eos-account-empty { padding: 30px; color: #97b4c0; text-align: center; border: 1px dashed rgba(133,193,218,.20); border-radius: 15px; }
.eos-account-management-dialog>footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 22px; border-top: 1px solid rgba(133,193,218,.12); background: rgba(3,18,29,.97); }
.eos-account-management-dialog>footer button { min-height: 42px; padding: 8px 16px; color: #e7f7fc; font-weight: 800; border: 1px solid rgba(133,193,218,.22); border-radius: 11px; background: rgba(255,255,255,.035); cursor: pointer; }
.eos-account-refresh { color: #03151c !important; border: 0 !important; background: linear-gradient(135deg, #00e58a, #45d5ff) !important; }

@media (max-width: 720px) {
    .eos-passwordless-launcher { right: 10px; bottom: 10px; min-width: 0; width: calc(100% - 20px); }
    .eos-passwordless-quick { grid-template-columns: 1fr; }
    .eos-account-management-overlay { padding: 7px; }
    .eos-account-management-dialog { width: 100%; max-height: 97vh; border-radius: 18px; }
    .eos-account-management-dialog>header { padding: 19px 17px 16px; }
    .eos-account-management-security,.eos-account-management-status { margin-left: 17px; margin-right: 17px; }
    .eos-account-list { padding-left: 17px; padding-right: 17px; }
    .eos-account-row { grid-template-columns: 1fr; }
    .eos-account-row-main { grid-template-columns: 42px minmax(0,1fr); }
    .eos-account-status-badge { grid-column: 2; justify-self: start; }
    .eos-account-details { padding-left: 0; }
    .eos-account-actions { grid-column: 1; grid-row: auto; }
    .eos-account-reset { width: 100%; }
    .eos-account-management-dialog>footer { flex-direction: column; padding: 14px 17px 18px; }
    .eos-account-management-dialog>footer button { width: 100%; }
    .eos-account-management-launcher span { display: none; }
    .eos-account-management-launcher { min-width: 40px; padding: 7px 9px; }
}


/* ========================================================================== 
   NexoWatt EOS 7.9.94 – stable product layout
   Integrated first login, header assistant, role-safe overview and account
   management exclusively below "Zugänge & Rechte".
   ========================================================================== */

html.eos-app .eos-top-toolbar {
    overflow: visible !important;
}

.eos-brand-badge:is(button) {
    appearance: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.eos-brand-badge:is(button):focus-visible {
    outline: 3px solid rgba(69, 213, 255, .78);
    outline-offset: 3px;
}

/* First login is part of the normal login card – never a floating page action. */
.eos-passwordless-launcher,
.eos-account-management-launcher,
.eos-account-management-floating {
    display: none !important;
}
html.eos-login .eos-login-card-modern {
    /* Compact product login: the form remains the proven inner card while the
       decorative rear frame keeps a fixed, restrained footprint. */
    box-sizing: border-box !important;
    width: min(380px, calc(100vw - 52px)) !important;
    height: auto !important;
    min-height: 510px !important;
    max-width: 380px !important;
    max-height: none !important;
    overflow: visible !important;
}
.eos-login-role-selector {
    display: none !important;

    width: 100%;
    margin: 14px 0 5px;
    padding: 13px;
    border: 1px solid rgba(69, 213, 255, .18);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(4, 23, 36, .82), rgba(2, 12, 23, .74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.eos-login-role-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.eos-login-role-heading strong { color: #effcff; font-size: 13px; }
.eos-login-role-heading span { color: #88aab8; font-size: 10px; text-align: right; }
.eos-login-role-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.eos-login-role-buttons button {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    color: #dceff6;
    text-align: left;
    border: 1px solid rgba(133, 193, 218, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .028);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.eos-login-role-buttons button span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #03151c;
    font-size: 14px;
    font-weight: 900;
    border-radius: 8px;
    background: linear-gradient(135deg, #00e58a, #45d5ff);
}
.eos-login-role-buttons button strong {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
}
.eos-login-role-buttons button:hover,
.eos-login-role-buttons button.active {
    transform: translateY(-1px);
    border-color: rgba(0, 229, 138, .46);
    background: linear-gradient(145deg, rgba(0, 229, 138, .10), rgba(69, 213, 255, .055));
}
.eos-login-first-hint {
    min-height: 29px;
    margin: 10px 2px 0;
    color: #91b2bf;
    font-size: 11px;
    line-height: 1.35;
}
.eos-login-first-ready .eos-login-first-hint { color: #5cefb0; }
.eos-login-first-status {
    min-height: 20px;
    margin: 4px 2px 0;
    color: #9dbcc9;
    font-size: 12px;
}
.eos-login-first-status[data-kind="error"] { color: #ff8d98; }
.eos-login-first-status[data-kind="success"] { color: #54f1aa; }
.eos-login-first-status:empty { display: none; min-height: 0; margin: 0; }

.eos-first-login-native-submit-hidden {
    display: none !important;
}
.eos-first-login-submit-proxy {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    margin-top: 8px;
    padding: 8px 18px;
    color: #03161d;
    font: inherit;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
    border: 1px solid rgba(82, 255, 190, .7);
    border-radius: 5px;
    background: linear-gradient(135deg, #00e58a, #45d5ff);
    box-shadow: 0 10px 24px rgba(0, 229, 138, .18), inset 0 1px 0 rgba(255,255,255,.35);
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.eos-first-login-submit-proxy:hover,
.eos-first-login-submit-proxy:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 229, 138, .24), 0 0 0 3px rgba(69, 213, 255, .16);
}
.eos-first-login-submit-proxy:disabled {
    cursor: progress;
    opacity: .62;
    transform: none;
}
.eos-login-first-ready button[type="submit"] {
    color: #03151c !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: linear-gradient(135deg, #00e58a, #45d5ff) !important;
    box-shadow: 0 0 0 1px rgba(0, 229, 138, .28), 0 12px 28px rgba(0, 229, 138, .14) !important;
    cursor: pointer !important;
}
.eos-login-first-ready button[type="submit"].Mui-disabled { pointer-events: auto !important; }
.eos-first-login-password-optional .MuiInputLabel-asterisk { display: none !important; }
.eos-login-first-checking button[type="submit"],
.eos-login-first-blocked button[type="submit"] {
    color: rgba(218, 235, 242, .55) !important;
    opacity: .72 !important;
    background: #314050 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* EOS Assist lives in the fixed header and opens below it. */
.eos-assist-root.eos-assist-header-root {
    position: relative !important;
    inset: auto !important;
    z-index: 1500 !important;
    margin-left: auto;
    flex: 0 0 auto;
}
.eos-assist-header-root .eos-assist-button {
    min-width: 132px;
    height: 46px;
    padding: 6px 13px;
    border-radius: 15px;
}
.eos-assist-header-root .eos-assist-panel {
    position: fixed !important;
    top: calc(var(--nx-shell-top) + var(--nx-header-h) + 8px) !important;
    right: calc(var(--nx-page-x) + 10px) !important;
    bottom: auto !important;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - var(--nx-content-top) - 12px);
    overflow: auto;
    transform-origin: top right;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .58), 0 0 36px rgba(0, 229, 138, .13);
}
.eos-assist-header-root.eos-assist-open .eos-assist-panel {
    transform: translateY(0) scale(1);
}

/* Modern overview – current Overview tab, never Easy mode. */
#app-paper { position: relative !important; }
.eos-overview-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 14px 16px 18px;
    padding: clamp(20px, 2.6vw, 32px);
    color: #edfbff;
    border: 1px solid rgba(0, 229, 138, .24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 30%, rgba(0, 229, 138, .14), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(69, 213, 255, .10), transparent 34%),
        linear-gradient(145deg, rgba(6, 31, 44, .97), rgba(2, 13, 23, .98));
    box-shadow: 0 22px 56px rgba(0, 0, 0, .31), inset 0 1px 0 rgba(255, 255, 255, .055);
}
.eos-overview-eyebrow {
    color: #00e58a;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.eos-overview-hero h1 {
    margin: 6px 0 5px;
    font-size: clamp(26px, 3.7vw, 42px);
    line-height: 1.05;
}
.eos-overview-hero p {
    max-width: 760px;
    margin: 0;
    color: #a3c0cc;
    font-size: 14px;
    line-height: 1.55;
}
.eos-overview-role {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 10px 14px;
    color: #dff8ff;
    font-size: 12px;
    font-weight: 850;
    border: 1px solid rgba(69, 213, 255, .20);
    border-radius: 999px;
    background: rgba(69, 213, 255, .055);
}
.eos-overview-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00e58a;
    box-shadow: 0 0 13px rgba(0, 229, 138, .88);
}
.eos-native-overview-hero + .MuiPaper-root,
.eos-native-overview-hero + div { border-radius: 18px; }
.eos-role-safe-overview {
    position: absolute;
    inset: 0;
    z-index: 1000;
    isolation: isolate;
    pointer-events: auto !important;
    overflow: auto;
    padding: 0 0 24px;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 229, 138, .07), transparent 33%),
        linear-gradient(180deg, rgba(3, 15, 27, .995), rgba(3, 17, 29, .995));
}
.eos-overview-grid {
    display: grid;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 13px;
    padding: 0 16px 20px;
}
.eos-overview-action {
    min-height: 105px;
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
    touch-action: manipulation;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 13px;
    padding: 17px;
    color: #eafaff;
    text-align: left;
    text-decoration: none;
    border: 1px solid rgba(133, 193, 218, .14);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(10, 35, 50, .84), rgba(3, 16, 28, .92));
    box-shadow: 0 13px 28px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .035);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.eos-overview-action > * { pointer-events: none !important; }
.eos-overview-action:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 138, .35);
    background: linear-gradient(145deg, rgba(0, 229, 138, .085), rgba(69, 213, 255, .045));
    box-shadow: 0 18px 36px rgba(0, 0, 0, .26), 0 0 24px rgba(0, 229, 138, .055);
}
.eos-overview-action-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #03151c;
    font-size: 24px;
    font-weight: 950;
    border-radius: 16px;
    background: linear-gradient(135deg, #00e58a, #45d5ff);
    box-shadow: 0 10px 22px rgba(0, 229, 138, .13);
}
.eos-overview-action > span:nth-child(2) { display: grid; gap: 6px; min-width: 0; }
.eos-overview-action strong { font-size: 16px; }
.eos-overview-action small { color: #91afbc; font-size: 12px; line-height: 1.4; }
.eos-overview-action i { color: #59e5bd; font-size: 29px; font-style: normal; }
.eos-official-reserve-hidden { display: none !important; }

/* Internal fallback services are never exposed outside Admin / Service. */
html.eos-role-installer [data-instance^="admin."],
html.eos-role-installer [data-instance^="backitup."],
html.eos-role-installer [data-instance^="xterm."],
html.eos-role-enduser [data-instance^="admin."],
html.eos-role-enduser [data-instance^="backitup."],
html.eos-role-enduser [data-instance^="xterm."],
html.eos-role-installer [data-instance-id^="admin."],
html.eos-role-installer [data-instance-id^="backitup."],
html.eos-role-installer [data-instance-id^="xterm."],
html.eos-role-enduser [data-instance-id^="admin."],
html.eos-role-enduser [data-instance-id^="backitup."],
html.eos-role-enduser [data-instance-id^="xterm."] { display: none !important; }

html.eos-role-enduser #app-paper[data-eos-datapoints-readonly] [data-eos-object-writable="1"],
html.eos-role-enduser #app-paper[data-eos-datapoints-readonly] [data-eos-enduser-write-blocked="1"] {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0.62 !important;
}



/* Final 7.9.94 interaction guards. */
html.eos-safe-overview-active #app-paper { position: relative !important; }
html.eos-safe-overview-active #app-paper > :not(#eos-role-safe-overview):not(.MuiSnackbar-root):not([role="presentation"]) {
    pointer-events: none !important;
}
.eos-role-safe-overview .eos-overview-action {
    appearance: none;
    -webkit-appearance: none;
    opacity: 1 !important;
}
.eos-role-safe-overview .eos-overview-action:focus-visible {
    outline: 3px solid rgba(69, 213, 255, .85);
    outline-offset: 3px;
}

/* Account management is available only inside Zugänge & Rechte. */
.eos-account-management-entry {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 16px;
    padding: 24px;
    color: #eafaff;
    border: 1px solid rgba(0, 229, 138, .26);
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 50%, rgba(0, 229, 138, .12), transparent 42%),
        linear-gradient(145deg, rgba(7, 31, 45, .98), rgba(2, 14, 24, .98));
    box-shadow: 0 20px 52px rgba(0, 0, 0, .30);
}
.eos-account-management-entry-copy { min-width: 0; }
.eos-account-management-entry h1 { margin: 4px 0 7px; font-size: clamp(24px, 3vw, 34px); }
.eos-account-management-entry p { max-width: 750px; margin: 0; color: #9dbac6; line-height: 1.5; }
.eos-account-management-entry-security { margin-top: 12px; color: #71e3c0; font-size: 12px; line-height: 1.45; }
.eos-account-management-entry-button {
    min-width: 230px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 12px 17px;
    color: #03151c;
    font-weight: 950;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #00e58a, #45d5ff);
    box-shadow: 0 14px 28px rgba(0, 229, 138, .14);
    cursor: pointer;
}
.eos-account-management-entry-button svg { width: 24px; height: 24px; fill: currentColor; }
html.eos-account-page-installer #app-paper > :not(.eos-account-management-entry):not(.MuiSnackbar-root):not([role="presentation"]) {
    display: none !important;
}
html.eos-account-page-installer .eos-account-management-entry { min-height: calc(100% - 32px); }

/* Existing overview cards receive a restrained modern surface. */
html.eos-route-intro #app-paper .MuiCard-root,
html.eos-route-intro #app-paper [class*="introCard"],
html.eos-route-intro #app-paper [class*="card"] {
    border-radius: 18px !important;
    border-color: rgba(133, 193, 218, .15) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .20) !important;
}

@media (max-width: 900px) {
    .eos-assist-header-root .eos-assist-button { min-width: 47px; width: 47px; padding: 6px; }
    .eos-assist-header-root .eos-assist-button strong,
    .eos-assist-header-root .eos-assist-button small { display: none; }
    .eos-account-management-entry { align-items: stretch; flex-direction: column; }
    .eos-account-management-entry-button { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
    html.eos-login main.MuiPaper-root::before {
        width: calc(100vw - 16px);
        height: min(480px, calc(100vh - 16px));
        border-radius: 20px;
    }
    html.eos-login main.MuiPaper-root > .eos-login-card-modern,
    html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username),
    html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) {
        width: calc(100vw - 44px) !important;
        height: min(424px, calc(100vh - 44px)) !important;
        padding: 22px !important;
        border-radius: 18px !important;
    }
    .eos-login-role-buttons { grid-template-columns: 1fr; }
    .eos-login-role-buttons button { min-height: 46px; }
    .eos-overview-hero { align-items: flex-start; flex-direction: column; margin: 9px; border-radius: 18px; }
    .eos-overview-grid { grid-template-columns: 1fr; padding: 0 9px 16px; }
    .eos-overview-action { min-height: 90px; }
    .eos-account-management-entry { margin: 9px; padding: 19px; border-radius: 18px; }
    .eos-assist-header-root .eos-assist-panel { right: 8px !important; width: calc(100vw - 16px); }
}

/* NexoWatt EOS 7.9.97 – orderly login, moderately enlarged. */
html.eos-login,
html.eos-login body {
    min-height: 100%;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
html.eos-login #root {
    min-height: 100dvh;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 12px 8px;
}
html.eos-login main.MuiPaper-root {
    box-sizing: border-box !important;
    min-height: calc(100dvh - 24px) !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    overflow: visible !important;
}
html.eos-login main.MuiPaper-root::before {
    width: min(440px, calc(100vw - 20px)) !important;
    height: min(580px, calc(100dvh - 20px)) !important;
    min-height: 0 !important;
    border-radius: 25px !important;
}
html.eos-login main.MuiPaper-root > .eos-login-card-modern,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username),
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) {
    box-sizing: border-box !important;
    width: min(380px, calc(100vw - 52px)) !important;
    min-width: 0 !important;
    min-height: 510px !important;
    height: auto !important;
    max-width: 380px !important;
    max-height: none !important;
    padding: 28px 30px 26px !important;
    overflow: visible !important;
    border-radius: 23px !important;
}
/* A cached older runtime may still leave data attributes on a Grid/form
   ancestor. They must never become a second full-size login card. */
html.eos-login [data-nw-login-card="true"]:not(.MuiPaper-root):not(.eos-login-card-modern),
html.eos-login [data-nw-login-shell="true"]:not(main):not(.MuiPaper-root) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
html.eos-login main.MuiPaper-root > .eos-login-card-modern *,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username) *,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) * {
    box-sizing: border-box;
    max-width: 100%;
}
html.eos-login .MuiAlert-root,
html.eos-login [role="alert"],
html.eos-login .eos-login-first-status,
html.eos-login .eos-login-first-hint {
    position: static !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    flex-shrink: 0 !important;
}
html.eos-login input,
html.eos-login button,
html.eos-login form { max-width: 100% !important; }
@media (max-width: 500px) {
    html.eos-login #root { padding: 8px; }
    html.eos-login main.MuiPaper-root { min-height: calc(100dvh - 16px) !important; }
    html.eos-login main.MuiPaper-root::before {
        width: calc(100vw - 12px) !important;
        height: calc(100% - 4px) !important;
        border-radius: 20px !important;
    }
    html.eos-login main.MuiPaper-root > .eos-login-card-modern,
    html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username),
    html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) {
        width: calc(100vw - 38px) !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 24px 22px !important;
        border-radius: 18px !important;
    }
}
@media (max-height: 620px) {
    html.eos-login #root { place-items: start center; }
    html.eos-login main.MuiPaper-root { min-height: 0 !important; padding: 10px 0 !important; }
    html.eos-login main.MuiPaper-root::before { height: calc(100% - 6px) !important; }
    html.eos-login main.MuiPaper-root > .eos-login-card-modern,
    html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username),
    html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) { min-height: 0 !important; }
}

/* Native Intro owns the overview for every EOS role. */
#eos-role-safe-overview,
.eos-role-safe-overview { display: none !important; }
html.eos-safe-overview-active #app-paper > :not(.MuiSnackbar-root):not([role="presentation"]) { pointer-events: auto !important; }
.eos-intro-admin-edit-hidden { display: none !important; }

/* NexoWatt EOS 7.9.98 – stable scrolling, clean login fields and expandable errors. */
html.eos-app,
html.eos-app body,
html.eos-app #root {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}
html.eos-app #app-paper {
    height: calc(100vh - var(--nx-content-top) - 12px) !important;
    height: calc(100dvh - var(--nx-content-top) - 12px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - var(--nx-content-top) - 12px) !important;
    max-height: calc(100dvh - var(--nx-content-top) - 12px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 138, .88) rgba(3, 18, 29, .72);
}
html.eos-app #app-paper::-webkit-scrollbar { width: 11px; }
html.eos-app #app-paper::-webkit-scrollbar-track {
    border-radius: 12px;
    background: rgba(3, 18, 29, .72);
}
html.eos-app #app-paper::-webkit-scrollbar-thumb {
    min-height: 46px;
    border: 2px solid rgba(3, 18, 29, .72);
    border-radius: 12px;
    background: linear-gradient(180deg, #00e58a, #39c9ef);
}
html.eos-app #app-paper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #21f2a1, #60dcff);
}

html.eos-login main.MuiPaper-root::before {
    width: min(456px, calc(100vw - 20px)) !important;
    height: min(536px, calc(100dvh - 20px)) !important;
    border-radius: 24px !important;
}
html.eos-login main.MuiPaper-root > .eos-login-card-modern,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username),
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) {
    width: min(400px, calc(100vw - 48px)) !important;
    max-width: 400px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 30px 32px 28px !important;
    gap: 0 !important;
    overflow: visible !important;
    border-radius: 22px !important;
}
html.eos-login .eos-login-card-modern > .MuiGrid2-root,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username) > .MuiGrid2-root,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) > .MuiGrid2-root {
    width: 100% !important;
    min-width: 0 !important;
}
html.eos-login .MuiFormControl-root {
    width: 100% !important;
    margin: 13px 0 3px !important;
}
html.eos-login .MuiInputLabel-root { display: none !important; }
html.eos-login .MuiOutlinedInput-root {
    min-height: 46px !important;
    border-radius: 6px !important;
    background: rgba(4, 19, 31, .76) !important;
}
html.eos-login .MuiOutlinedInput-input {
    min-height: 0 !important;
    padding: 11px 14px !important;
    line-height: 22px !important;
}
html.eos-login .MuiOutlinedInput-input::placeholder {
    color: rgba(245, 251, 255, .92) !important;
    opacity: 1 !important;
}
html.eos-login .MuiOutlinedInput-notchedOutline legend {
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
}
html.eos-login .MuiFormControlLabel-root {
    margin: 7px 0 5px !important;
}
html.eos-login .MuiButton-root[type="submit"] {
    min-height: 44px !important;
    margin: 8px 0 0 !important;
}
html.eos-login .eos-login-card-modern > .MuiBox-root:last-child,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username) > .MuiBox-root:last-child,
html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) > .MuiBox-root:last-child {
    margin-top: 28px !important;
}
html.eos-login .MuiAlert-root,
html.eos-login [role="alert"] {
    margin: 14px 0 1px !important;
    padding: 9px 11px !important;
    line-height: 1.35 !important;
}
@media (max-width: 500px) {
    html.eos-login main.MuiPaper-root::before {
        width: calc(100vw - 12px) !important;
        height: auto !important;
        min-height: min(520px, calc(100dvh - 12px)) !important;
    }
    html.eos-login main.MuiPaper-root > .eos-login-card-modern,
    html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#username),
    html.eos-login main.MuiPaper-root > .MuiPaper-root:has(#password) {
        width: calc(100vw - 38px) !important;
        max-width: none !important;
        padding: 25px 22px 23px !important;
    }
}


/* NexoWatt EOS 7.10.1 – persistent native overview scrolling. */
html.eos-app.eos-route-intro #app-paper {
    height: calc(100dvh - var(--nx-content-top) - 12px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - var(--nx-content-top) - 12px) !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    scrollbar-gutter: stable !important;
    overscroll-behavior: contain;
}

/* NexoWatt EOS 7.10.1 – edit control inside the lowest card grid. */
html.eos-route-intro .eos-native-intro-grid { position: relative !important; width:100% !important; padding-bottom:72px !important; overflow:visible !important; }
html.eos-route-intro .eos-overview-edit-controls { position:absolute !important; right:16px !important; bottom:16px !important; z-index:3 !important; padding:6px !important; border:1px solid rgba(0,229,138,.24) !important; border-radius:16px !important; background:rgba(3,23,34,.94) !important; }
html.eos-route-intro .eos-overview-edit-controls .MuiFab-root { position:static !important; inset:auto !important; margin:0 !important; }




/* NexoWatt EOS 7.10.9 – clean modern core operating surfaces.
   These rules are presentation-only: native ioBroker/EOS event handlers,
   accordions, state editors and virtualized tables remain authoritative. */

/* Structure is intentionally unavailable in this EOS foundation release. */
html.eos-app [data-eos-tab="tab-enums"],
html.eos-app a[href="#tab-enums"],
html.eos-app a[href="#/tab-enums"],
html.eos-app .nexowatt-native-nav-item:has(a[href*="tab-enums"]) {
    display: none !important;
}


/* Shared technical toolbars. */
html.eos-app #app-paper[data-eos-technical-surface] .MuiToolbar-root,
html.eos-app #app-paper[data-eos-technical-surface] [role="toolbar"] {
    min-height: 54px !important;
    margin: 0 14px 10px !important;
    padding: 7px 10px !important;
    gap: 7px !important;
    color: #eaf9ff !important;
    border: 1px solid rgba(133, 193, 218, .13) !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, rgba(9, 31, 47, .94), rgba(4, 18, 30, .95)) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.035) !important;
}
html.eos-app #app-paper[data-eos-technical-surface] .MuiToolbar-root .MuiIconButton-root,
html.eos-app #app-paper[data-eos-technical-surface] [role="toolbar"] button {
    min-width: 38px;
    min-height: 38px;
    color: #dff8ff !important;
    border: 1px solid rgba(133, 193, 218, .12) !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.025) !important;
}
html.eos-app #app-paper[data-eos-technical-surface] .MuiToolbar-root .MuiIconButton-root:hover,
html.eos-app #app-paper[data-eos-technical-surface] [role="toolbar"] button:hover {
    color: #fff !important;
    border-color: rgba(0,229,138,.30) !important;
    background: rgba(0,229,138,.085) !important;
}
html.eos-app #app-paper[data-eos-technical-surface] .MuiToolbar-root .MuiInputBase-root,
html.eos-app #app-paper[data-eos-technical-surface] [role="toolbar"] input {
    min-height: 38px !important;
    border-radius: 10px !important;
    background: rgba(2, 13, 23, .72) !important;
}

/* Dienste & Instanzen – modern operating cards while preserving every native action. */
html.eos-route-instances #app-paper .MuiAccordion-root {
    margin: 7px 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(133, 193, 218, .14) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(10, 32, 48, .94), rgba(5, 20, 32, .95)) !important;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .17) !important;
}
html.eos-route-instances #app-paper .MuiAccordion-root::before { display: none !important; }
html.eos-route-instances #app-paper .MuiAccordionSummary-root {
    min-height: 52px !important;
    padding: 0 14px !important;
    transition: background .15s ease, border-color .15s ease !important;
}
html.eos-route-instances #app-paper .MuiAccordionSummary-root:hover {
    background: rgba(0, 229, 138, .045) !important;
}
html.eos-route-instances #app-paper .MuiAccordionSummary-root.Mui-expanded {
    min-height: 54px !important;
    background: linear-gradient(90deg, rgba(0,229,138,.08), rgba(69,213,255,.035)) !important;
}
html.eos-route-instances #app-paper .MuiAccordionDetails-root {
    padding: 15px 18px 18px !important;
    border-top: 1px solid rgba(133, 193, 218, .12) !important;
    background: rgba(2, 14, 24, .54) !important;
}
html.eos-route-instances #app-paper .eos-service-row {
    transition: filter .14s ease, box-shadow .14s ease, transform .14s ease !important;
}
html.eos-route-instances #app-paper .eos-service-row:hover {
    filter: brightness(1.07);
}
html.eos-route-instances #app-paper tr.eos-service-row > td {
    border-top: 1px solid rgba(133, 193, 218, .09) !important;
    border-bottom: 1px solid rgba(1, 8, 14, .35) !important;
}
html.eos-route-instances #app-paper tr.eos-service-row > td:first-child { border-radius: 10px 0 0 10px; }
html.eos-route-instances #app-paper tr.eos-service-row > td:last-child { border-radius: 0 10px 10px 0; }
html.eos-route-instances #app-paper .eos-service-row-expanded {
    box-shadow: inset 3px 0 0 rgba(0,229,138,.62) !important;
}
html.eos-route-instances #app-paper .MuiTableContainer-root,
html.eos-route-instances #app-paper [role="grid"] {
    margin: 0 14px 14px !important;
    overflow: auto !important;
    border: 1px solid rgba(133, 193, 218, .12) !important;
    border-radius: 15px !important;
    background: rgba(2, 14, 24, .42) !important;
}
html.eos-route-instances #app-paper .MuiTableHead-root .MuiTableCell-root {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgba(7, 29, 43, .97) !important;
}

/* Datenpunkte – calm, readable technical tree/grid. */
html.eos-route-objects #app-paper [role="grid"],
html.eos-route-objects #app-paper [role="treegrid"],
html.eos-route-objects #app-paper .MuiDataGrid-root,
html.eos-route-objects #app-paper .ReactVirtualized__Grid {
    border-color: rgba(133, 193, 218, .15) !important;
    background: linear-gradient(180deg, rgba(5, 21, 34, .82), rgba(2, 13, 23, .90)) !important;
}
html.eos-route-objects #app-paper .MuiDataGrid-columnHeaders,
html.eos-route-objects #app-paper [role="columnheader"],
html.eos-route-objects #app-paper thead th {
    color: #e8f8ff !important;
    font-weight: 850 !important;
    background: linear-gradient(180deg, rgba(13, 42, 59, .97), rgba(6, 25, 39, .97)) !important;
    border-bottom-color: rgba(0, 229, 138, .20) !important;
}
html.eos-route-objects #app-paper .eos-datapoint-row,
html.eos-route-objects #app-paper .MuiDataGrid-row,
html.eos-route-objects #app-paper [role="row"] {
    transition: background .12s ease, box-shadow .12s ease !important;
}
html.eos-route-objects #app-paper .eos-datapoint-row:hover,
html.eos-route-objects #app-paper .MuiDataGrid-row:hover,
html.eos-route-objects #app-paper [role="row"]:hover {
    background: rgba(69, 213, 255, .045) !important;
}
html.eos-route-objects #app-paper .Mui-selected,
html.eos-route-objects #app-paper [aria-selected="true"] {
    color: #f4ffff !important;
    background: linear-gradient(90deg, rgba(0, 229, 138, .19), rgba(69, 213, 255, .08)) !important;
    box-shadow: inset 3px 0 0 #00e58a !important;
}
html.eos-route-objects #app-paper .eos-object-value-cell {
    min-height: 30px !important;
    padding: 3px 7px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    font-variant-numeric: tabular-nums;
}
html.eos-route-objects #app-paper .eos-object-value-cell[data-eos-object-writable="1"] {
    border-color: rgba(0,229,138,.12) !important;
    background: rgba(0,229,138,.035) !important;
}
html.eos-route-objects #app-paper input,
html.eos-route-objects #app-paper .MuiSelect-select {
    border-radius: 9px !important;
}
html.eos-role-enduser.eos-route-objects #app-paper[data-eos-datapoints-readonly]::before {
    content: 'NUR LESEN';
    position: sticky;
    top: 112px;
    z-index: 75;
    float: right;
    margin: 0 24px -32px 0;
    padding: 6px 10px;
    color: #89b5c5;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .13em;
    border: 1px solid rgba(133,193,218,.18);
    border-radius: 999px;
    background: rgba(3,17,28,.88);
    pointer-events: none;
}

/* Systemlogs – diagnostic stream with severity accenting. */
html.eos-route-logs #app-paper .MuiTableContainer-root,
html.eos-route-logs #app-paper [role="grid"] {
    margin: 0 14px 14px !important;
    overflow: auto !important;
    border: 1px solid rgba(133, 193, 218, .13) !important;
    border-radius: 15px !important;
    background: rgba(2, 13, 22, .72) !important;
}
html.eos-route-logs #app-paper .MuiTableHead-root .MuiTableCell-root,
html.eos-route-logs #app-paper [role="columnheader"] {
    position: sticky;
    top: 0;
    z-index: 5;
    color: #e9f9ff !important;
    font-weight: 850 !important;
    background: rgba(7, 29, 43, .98) !important;
    border-bottom: 1px solid rgba(0,229,138,.18) !important;
}
html.eos-route-logs #app-paper .eos-log-row {
    box-shadow: inset 3px 0 0 rgba(133,193,218,.25) !important;
    transition: background .12s ease, filter .12s ease !important;
}
html.eos-route-logs #app-paper .eos-log-row:hover { filter: brightness(1.08); }
html.eos-route-logs #app-paper .eos-log-row-error {
    background: rgba(255, 77, 103, .075) !important;
    box-shadow: inset 3px 0 0 #ff4d67 !important;
}
html.eos-route-logs #app-paper .eos-log-row-warn {
    background: rgba(255, 201, 51, .06) !important;
    box-shadow: inset 3px 0 0 #ffc933 !important;
}
html.eos-route-logs #app-paper .eos-log-row-info {
    box-shadow: inset 3px 0 0 rgba(69, 213, 255, .55) !important;
}
html.eos-route-logs #app-paper .eos-log-row-debug {
    opacity: .78;
    box-shadow: inset 3px 0 0 rgba(157, 181, 193, .35) !important;
}
html.eos-route-logs #app-paper .eos-log-row td,
html.eos-route-logs #app-paper .eos-log-row [role="cell"] {
    font-variant-numeric: tabular-nums;
    border-bottom-color: rgba(133,193,218,.075) !important;
}
html.eos-route-logs #app-paper pre,
html.eos-route-logs #app-paper code {
    color: #dff7ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 850px) {
    html.eos-app #app-paper[data-eos-technical-surface] .MuiToolbar-root,
    html.eos-app #app-paper[data-eos-technical-surface] [role="toolbar"],
    html.eos-route-instances #app-paper .MuiAccordion-root,
    html.eos-route-instances #app-paper .MuiTableContainer-root,
    html.eos-route-instances #app-paper [role="grid"],
    html.eos-route-logs #app-paper .MuiTableContainer-root,
    html.eos-route-logs #app-paper [role="grid"] {
        margin-left: 9px !important;
        margin-right: 9px !important;
    }
}
