/* ===================================================== */
/* DASHBOARD LANDING PAGE (MODERN HUB)                   */
/* ===================================================== */

.dashboard-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--bg-primary, #0c0d14);
    color: var(--text-primary, #fff);
    grid-template-columns: 72px 1fr 460px;
    height: 100vh;
    overflow: hidden;
}

.dashboard-container.active {
    display: grid;
    animation: dashEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dashboard-container {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

@keyframes dashEntrance {
    from {
        opacity: 0;
        transform: scale(0.99);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Grundzustand: Normal sichtbar ohne Opacity: 0 Fallstrick */
.dash-hero-card,
.dash-role-card {
    opacity: 1;
    transform: translateY(0);
}

/* Entrance-Animation feuert NUR EINMAL sauber über das Dashboard-Parent ab */
.dashboard-container.active .dash-hero-card {
    animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.04s);
}

.dashboard-container.active .dash-role-card {
    animation: cardEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.02s + 0.1s);
}

.dash-assistant-dock {
    animation: dockSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dockSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.on-dashboard #top-bar,
body.on-dashboard .main-menu-trigger,
body.on-dashboard #agents-panel {
    display: none !important;
}

.dash-sidebar {
    background: rgba(18, 18, 26, 0.85);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
    z-index: 10;
}

/* 1. FEINERES HAUPTLOGO MIT DEZENTEM GLOW */
/* Hauptlogo ohne Box-Glow, eingefärbt in Glow/Highlight-Farbe */
.dash-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-custom, var(--accent)) !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: 0.2s ease;
}

.dash-logo svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.6px;
    color: var(--color-custom, var(--accent)) !important;
    filter: none !important;
}

.dash-logo:hover {
    background: var(--accent-tint) !important;
    border-color: var(--color-custom, var(--accent)) !important;
    box-shadow: none !important;
    transform: scale(1.05);
}

/* SIDEBAR ICONS MIT FEINEM GLOW & BESSERER HELLIGKEIT */
.dash-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary, #b3b3c2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: 0.15s ease;
}

.dash-nav-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.6px;
    opacity: 0.9;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
}

.dash-nav-btn span {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.dash-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.dash-nav-btn:hover svg {
    opacity: 1;
    color: var(--color-custom, var(--accent)) !important;
    filter: drop-shadow(0 0 8px var(--accent-glow)) !important;
}

.dash-user {
    margin-top: auto;
    cursor: pointer;
}

.dash-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 1. SCROLL-CONTAINER MIT GENUG PUFFER UNTEN */
.dash-content {
    overflow: hidden;
    padding: 24px 30px 0 30px;
    display: flex;
    flex-direction: column;
    background: rgba(12, 13, 20, 0.7);
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    height: 100vh;
    box-sizing: border-box;
}

/* 1. SECTIONS MIT FESTEM PLATZHALTER (Verhindert das Hochrutschen nach oben links) */
.dash-section:first-child {
    flex-shrink: 0;
    min-height: 335px; /* Reserviert sofort den Platz für die Hero-Reihe */
}

.dash-section:last-child {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    margin-bottom: 0;
}

/* 2. SANFTE ENTRANCE-ANIMATION FÜR DIE ÜBERSCHRIFTEN & BADGES */
.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(6px);
    animation: headerFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dash-section:first-child .dash-section-header {
    animation-delay: 0.05s;
}

.dash-section:last-child .dash-section-header {
    animation-delay: 0.18s;
}

@keyframes headerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-count-badge {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 9px;
    border-radius: 20px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

/* 3. ALL CHARACTERS GRID (Elastisch & 90px Bottom-Padding) */
.dash-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 6px;
    padding-bottom: 90px !important;
    padding-left: 4px;
    padding-right: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dash-roles-grid::-webkit-scrollbar {
    display: none;
}

.dash-section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.dash-hero-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* ===================================================== */
/* HERO CARDS & HOVER LIFT                               */
/* ===================================================== */

.dash-hero-card {
    position: relative;
    height: 290px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    cursor: pointer;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease, 
                box-shadow 0.3s ease !important;
    animation: cardEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.05s + 0.08s);
}

/* Ganze Hero-Karte hebt sich an & wird leicht größer */
.dash-hero-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    border-color: var(--color-custom, var(--accent)) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-tint) !important;
    z-index: 5;
}

/* ELEGANTES, INSTANT-SLOW-ZOOM FÜR DIE HERO-BILDER */
.dash-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1);
    /* Butterweicher Übergang beim Verlassen der Karte */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Startet sofort beim Hovern ohne Ruckeln */
.dash-hero-card:hover .dash-hero-bg {
    animation: heroSlowZoom 12s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes heroSlowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08); /* Sehr dezenter, cineastischer Slow-Zoom */
    }
}

.dash-fallback-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.dash-fallback-avatar svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

.dash-hero-overlay {
    position: absolute;
    inset: 0;
    /* Oben komplett transparent, erst ab 45% sanfter Schatten für den Text unten */
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0) 45%, 
        rgba(12, 13, 20, 0.6) 70%, 
        rgba(12, 13, 20, 0.95) 92%
    );
    z-index: 2;
    pointer-events: none;
}

.dash-hero-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-custom, var(--accent)) !important;
}

/* 1. ELEGANTES GLAS-ZAHNRAD AUF DEN HERO-KARTEN */
.dash-hero-edit-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(18, 18, 26, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary, #b3b3c2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-hero-edit-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.7px;
    transition: transform 0.3s ease;
}

.dash-hero-card:hover .dash-hero-edit-btn {
    opacity: 1;
}

.dash-hero-edit-btn:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px var(--accent-glow) !important;
}

.dash-hero-edit-btn:hover svg {
    transform: rotate(45deg);
}

/* 2. ASSISTANT-DOCK ARRETIERUNG (Verhindert das Ausbrechen) */
.dash-assistant-dock {
    position: relative !important;
    width: 460px !important;
    height: 100vh !important;
    background: rgba(18, 18, 26, 0.9) !important;
    border-left: 1px solid var(--border) !important;
    backdrop-filter: blur(20px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#dash-assistant-dock #assistant-panel {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.dash-hero-info {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-hero-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-hero-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
}

.dash-hero-preview {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dash-hero-preview .text-dialog {
    color: var(--color-dialog, #e0e0e0);
}

.dash-hero-preview .text-italic {
    color: var(--color-italic, #a0a0b0);
    font-style: italic;
}

.dash-hero-preview .text-bold {
    color: var(--color-bold, #fff);
    font-weight: 600;
}

/* Dashboard Scroll-Container sauberes Scrolling mit Puffer */
.dash-main-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 28px 90px 28px;
}

/* Auf extra schmalen Desktop-Fenstern (Companion-Mode) */
@media (max-width: 900px) {
    .dash-roles-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

/* Größere, wertigere Rollen-Karten */
/* ===================================================== */
/* ALL CHARACTERS CARDS & HOVER LIFT                     */
/* ===================================================== */

.dash-role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    min-height: 72px;
    opacity: 0;
    transform: none;
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.2s ease, 
                border-color 0.2s ease, 
                box-shadow 0.2s ease !important;
    animation: cardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.03s + 0.18s);
}

/* Untere Karten heben sich beim Hovern an & wachsen sanft */
.dash-role-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.025) !important; /* Nur noch vergrößern, kein Hochrutschen */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    z-index: 10;
    position: relative;
}

/* GEMEINSAME ENTRANCE-ANIMATION OHNE TRANSFORM-LOCK */
@keyframes cardEntrance {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dash-role-avatar {
    width: 48px; /* Größerer Avatar */
    height: 48px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-role-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-role-avatar svg {
    width: 22px;
    height: 22px;
    opacity: 0.5;
}

.dash-role-info {
    flex: 1;
    min-width: 0;
}

.dash-role-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-role-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.dash-role-edit {
    opacity: 0;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.15s;
    padding: 4px;
}

.dash-role-card:hover .dash-role-edit {
    opacity: 1;
}

.dash-role-edit:hover {
    color: var(--accent);
}

.dash-assistant-dock {
    position: relative !important;
    width: 460px !important;
    height: 100vh !important;
    background: rgba(18, 18, 26, 0.9) !important;
    border-left: 1px solid var(--border) !important;
    backdrop-filter: blur(20px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#dash-assistant-dock #assistant-panel {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

#dash-assistant-dock #assistant-panel .asst-toolbar {
    cursor: default !important;
}

#dash-assistant-dock .asst-resizer {
    display: none !important;
}

/* Settings (#left-panel), Notes (#right-panel) & Theme-Panel (#theme-panel) exakt identisch links docken */
body.on-dashboard #left-panel,
body.on-dashboard #right-panel,
body.on-dashboard #theme-panel {
    position: fixed !important;
    top: 12px !important;
    bottom: 12px !important;
    left: 84px !important;
    right: auto !important;
    height: calc(100vh - 24px) !important;
    width: 440px !important;       /* vorher: 380px */
    max-width: 460px !important;   /* vorher: 420px */
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    background: rgba(18, 18, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 100 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    transform: translateX(-120%) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

body.on-dashboard #left-panel.open,
body.on-dashboard #right-panel.open,
body.on-dashboard #theme-panel.open {
    transform: translateX(0) !important;
}

body.on-dashboard #nav-more-menu.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    z-index: 99999 !important;
    background: var(--bg-secondary, #181824) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
    border-radius: 12px !important;
    min-width: 180px !important;
}

/* Resize-Griffe auf dem Dashboard komplett deaktivieren / ausblenden */
body.on-dashboard .panel-resize-handle {
    display: none !important;
    pointer-events: none !important;
}

/* Inneren Content sauber in die Rundung einpassen */
body.on-dashboard #left-panel .panel-content,
body.on-dashboard #right-panel .panel-content,
body.on-dashboard #theme-panel .theme-content,
body.on-dashboard #settings-panel {
    height: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

body.on-dashboard #theme-panel .theme-content {
    height: calc(100% - 55px) !important;
    overflow-y: auto !important;
}

body.on-dashboard #theme-panel .panel-resize-handle {
    display: none !important;
    pointer-events: none !important;
}

/* ===================================================== */
/* DASHBOARD MOBILE RESPONSIVE                           */
/* ===================================================== */

.dash-mobile-topbar {
    display: none;
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr !important;
        height: 100dvh !important;
    }

    .dashboard-container.active {
        display: block !important;
    }

    .dash-sidebar,
    .dash-assistant-dock {
        display: none !important;
    }

    .dash-mobile-topbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
    }

    .dash-mobile-topbar .icon-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid var(--border) !important;
        color: var(--text-secondary) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dash-content {
        display: block !important;
        padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px)) 12px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: 100dvh !important;
        min-height: 0 !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
    }

    .dash-section:first-child {
        min-height: auto !important;
    }

    .dash-section:last-child {
        display: block !important;
        flex: none !important;
        min-height: auto !important;
        margin-top: 16px;
    }

    /* 2. HERO CARDS: SCHLANKES HOCHKANT-FORMAT (ca. 0.65 Ratio) & KEIN TOUCH-HOVER GLITCH */
    .dash-hero-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        padding: 4px 2px 14px 2px !important;
        scrollbar-width: none !important;
    }

    .dash-hero-grid::-webkit-scrollbar {
        display: none !important;
    }

    .dash-hero-card {
        flex: 0 0 58vw !important;
        max-width: 220px !important;
        height: 330px !important;
        scroll-snap-align: start !important;
        padding: 12px !important;
        transform: none !important;
    }

    .dash-hero-card:hover {
        transform: none !important;
    }

    .dash-hero-card:hover .dash-hero-bg {
        animation: none !important;
    }

    .dash-hero-edit-btn {
        opacity: 1 !important;
        top: 8px !important;
        left: 8px !important;
        width: 28px !important;
        height: 28px !important;
    }

    .dash-hero-badge {
        top: 8px !important;
        right: 8px !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .dash-hero-preview {
        -webkit-line-clamp: 2 !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    /* 3. ALL CHARACTERS: 2-SPALTEN OHNE ABSCHNEIDEN (minmax(0, 1fr)) */
    .dash-roles-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        overflow-y: visible !important;
        max-height: none !important;
        padding-bottom: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .dash-role-card {
        padding: 8px 10px !important;
        min-height: 52px !important;
        gap: 8px !important;
        border-radius: 10px !important;
        min-width: 0 !important;
        transform: none !important;
    }

    .dash-role-card:hover {
        transform: none !important;
    }

    .dash-role-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 8px !important;
    }

    .dash-role-name {
        font-size: 12px !important;
    }

    .dash-role-meta {
        font-size: 10px !important;
    }

    .dash-role-edit {
        opacity: 1 !important;
        padding: 2px !important;
    }

    /* FIX: Verhindert das Verschwinden von Text & Overlay beim Berühren/Wischen */
    .dash-hero-card,
    .dash-hero-card:active,
    .dash-hero-card:focus {
        transform: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .dash-hero-card .dash-hero-bg,
    .dash-hero-card:active .dash-hero-bg,
    .dash-hero-card:hover .dash-hero-bg {
        animation: none !important;
        transform: scale(1) !important;
        transition: none !important;
        will-change: auto !important;
    }

    .dash-hero-overlay {
        z-index: 2 !important;
        transform: translateZ(0);
    }

    .dash-hero-info {
        position: relative !important;
        z-index: 10 !important;
        transform: translateZ(0);
    }

    /* Sidepanels */
    body.on-dashboard #left-panel,
    body.on-dashboard #right-panel,
    body.on-dashboard #theme-panel {
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        transform: translateX(-100%) !important;
    }

    body.on-dashboard #left-panel.open,
    body.on-dashboard #right-panel.open,
    body.on-dashboard #theme-panel.open {
        transform: translateX(0) !important;
    }
}
