@layer mindz.shell{
/*
 * MindZ Shell — camada de compatibilidade.
 * A estrutura oficial do shell, navegação, títulos, breadcrumbs e abas
 * pertence a mindz_structure.css. Este arquivo preserva somente ações e
 * recursos especializados ainda utilizados pelo shell.js.
 */

:root{
    --shell-bg: var(--bg);
    --shell-surface: var(--surface);
    --shell-surface-alt: var(--surface-alt);
    --shell-surface-soft: var(--surface-soft);
    --shell-border: var(--border);
    --shell-border-soft: var(--border-soft);
    --shell-text: var(--text);
    --shell-text-soft: var(--text-soft);
    --shell-text-muted: var(--text-muted);
    --shell-primary: var(--primary);
    --shell-primary-soft: var(--primary-soft);
    --shell-title-graphite: var(--title-color);
    --shell-shadow: 0 8px 22px color-mix(in srgb, var(--shadow-color) 5.5%, transparent);
}

:root[data-theme="dark"]{
    --shell-title-graphite: var(--shell-text);
}

/* =========================================================
   SHELL GLOBAL
   - Este arquivo controla apenas estrutura fixa do sistema:
     sidebar, topbar, área principal e menus.
   - Layout de telas, cards, tabelas, botões, campos e popups
     deve permanecer no global.css.
   ========================================================= */


/* =========================================================
   SIDEBAR
   ========================================================= */


/* =========================================================
   CORREÇÃO DE SOBREPOSIÇÃO DO MENU LATERAL
   - O submenu aberto no hover precisa sair da área da sidebar.
   - Por isso a sidebar não pode cortar overflow.
   - Popups globais continuam acima porque usam z-index maior no global.css.
   ========================================================= */


/* =========================================================
   SIDEBAR SEM MARCA / SEM CARTÃO DE RECOLHER
   - A lógica de recolher/expandir continua no shell.js.
   - A interface visual da logo e do botão foi removida do menu.
   ========================================================= */


.sidebar-brand-row{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}


/* =========================================================
   TOPBAR
   ========================================================= */


.topbar-environment-badge{
    --env-accent: var(--info);

    min-height: 46px;
    padding: 8px 14px;
    border: 1px solid color-mix(in srgb, var(--env-accent) 30%, var(--shell-border));
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--env-accent) 10%, var(--shell-surface));
    color: var(--shell-title-graphite);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: var(--shell-shadow);
    transition: background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.topbar-environment-badge:hover{
    background: color-mix(in srgb, var(--env-accent) 16%, var(--shell-surface));
    border-color: color-mix(in srgb, var(--env-accent) 48%, var(--shell-border));
    transform: translateY(-1px);
}

.topbar-environment-badge.hidden{
    display: none;
}

.topbar-environment-badge.is-development{
    --env-accent: var(--info);
}

.topbar-environment-badge.is-test{
    --env-accent: var(--warning);
}

.topbar-environment-badge.is-test-power{
    --env-accent: var(--chart-purple);
}

.topbar-environment-badge.is-test-power .topbar-environment-badge__dot{
    animation: mindzEnvPulse 1.4s ease-in-out infinite;
}

@keyframes mindzEnvPulse{

    0%,
100%{ transform: scale(1); opacity: 1; }
    50%{ transform: scale(1.22); opacity: .68; }

}


.topbar-environment-badge.is-production{
    --env-accent: var(--danger);
}

.topbar-environment-badge__dot{
    width: 9px;
    height: 9px;
    border-radius: var(--radius-pill);
    background: var(--env-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--env-accent) 18%, transparent);
}

.topbar-environment-badge__text{
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

.topbar-environment-badge__text strong{
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-environment-badge__text small{
    color: var(--shell-text-muted);
    font-size: 11px;
    font-weight: 520;
}


.topbar-notification-button{
    position: relative;
    
    height: 46px;
    
    min-height: 46px;
    padding: 0;
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    background: var(--shell-surface);
    color: var(--shell-title-graphite);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shell-shadow);
    transition: background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.topbar-notification-button:hover{
    background: var(--shell-surface);
    border-color: var(--shell-primary);
    color: var(--shell-primary);
    transform: translateY(-1px);
}

.topbar-notification-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-notification-icon svg{
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-notification-badge{
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid var(--shell-bg);
    border-radius: 999px;
    background: var(--danger);
    color: var(--primary-contrast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.topbar-notification-badge.hidden{
    display: none;
}

.topbar-theme-toggle{
    
    height: 46px;
    
    min-height: 46px;
    
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    background: var(--shell-surface);
    color: var(--shell-title-graphite);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shell-shadow);
}

.topbar-theme-toggle:hover{
    background: var(--shell-primary-soft);
    border-color: var(--shell-primary);
    color: var(--shell-primary);
    transform: none;
}

.topbar-theme-toggle:disabled{
    opacity: 0.72;
    transform: none;
}

.topbar-theme-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-theme-icon svg{
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-theme-icon-dark{
    display: none;
}

:root[data-theme="dark"] .topbar-theme-icon-light{
    display: none;
}

:root[data-theme="dark"] .topbar-theme-icon-dark{
    display: inline-flex;
}

.topbar-user-compact{
    
    
    
    display: inline-flex;
    align-items: center;
    
    
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    background: var(--shell-surface);
    color: var(--shell-title-graphite);
    text-decoration: none;
    box-shadow: var(--shell-shadow);
    transition: background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.topbar-user-compact:hover{
    background: var(--shell-surface);
    border-color: var(--shell-primary);
    transform: translateY(-1px);
}

.topbar-user-compact-avatar{
    
    
    
    border-radius: 999px;
    
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
}

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


.topbar-user-compact-info strong{
    display: block;
    
    
    
    
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-compact-info small{
    display: block;
    
    
    
    
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


@media (max-width: 768px){

    

    .topbar-notification-button,
.topbar-theme-toggle{
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .topbar-environment-badge{
        min-height: 42px;
        padding-inline: 12px;
    }

    .topbar-environment-badge__text small{
        display: none;
    }

    .topbar-user-compact{
        
        
        height: 46px;
        padding-right: 10px;
    }

    .topbar-user-compact-avatar{
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .topbar-user-compact-info small{
        display: none;
    }

}


/* =========================================================
   TOPBAR ADMIN
   ========================================================= */

.topbar-admin-wrapper{
    position: relative;
    z-index: var(--z-sticky);
    display: inline-flex;
    align-items: center;
}

.topbar-admin-wrapper::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
    background: transparent;
    pointer-events: auto;
}

.topbar-admin-badge{
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
    border-radius: 999px;
    text-decoration: none;
    color: var(--shell-text);
    box-shadow: var(--shell-shadow);
    transition: border-color 0.16s ease,
        background 0.16s ease,
        transform 0.16s ease;
    cursor: pointer;
}

.topbar-admin-badge:hover{
    transform: translateY(-1px);
    border-color: var(--shell-primary);
    background: var(--shell-primary-soft);
}

.topbar-admin-icon{
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--shell-primary);
    color: var(--primary-contrast);
}

.topbar-admin-icon svg,
.topbar-admin-arrow svg,
.topbar-admin-popup-icon svg,
.topbar-admin-subpopup-icon svg{
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-admin-text{
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.topbar-admin-text strong{
    color: var(--shell-text);
    font-size: 13px;
    font-weight: 620;
    line-height: 1.15;
    white-space: nowrap;
}

.topbar-admin-text small,
.topbar-admin-text span{
    color: var(--shell-text-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

.topbar-admin-arrow{
    width: 16px;
    height: 16px;
    color: var(--shell-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease;
}

.topbar-admin-wrapper.open .topbar-admin-arrow{
    transform: rotate(180deg);
}

.topbar-admin-popup,
.topbar-admin-subpopup{
    position: absolute;
    z-index: var(--z-sidebar);
    width: 286px;
    padding: 10px;
    border: 1px solid var(--shell-border);
    border-radius: 18px;
    background: var(--shell-surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease,
        visibility 0.16s ease,
        transform 0.16s ease;
}

.topbar-admin-popup{
    top: calc(100% + 10px);
    right: 0;
    transform: translateY(-6px);
}

.topbar-admin-subpopup{
    top: 0;
    left: calc(100% + 8px);
    z-index: calc(var(--z-sidebar) + 10);
    transform: translateX(-6px);
}

.topbar-admin-wrapper.open .topbar-admin-popup,
.topbar-admin-wrapper:hover .topbar-admin-popup,
.topbar-admin-popup:hover,
.topbar-admin-popup-item-nested:hover .topbar-admin-subpopup,
.topbar-admin-popup-item-nested:focus-within .topbar-admin-subpopup,
.topbar-admin-subpopup:hover{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, 0);
}

.topbar-admin-popup::before,
.topbar-admin-subpopup::before{
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--shell-surface);
    border-color: var(--shell-border);
}

.topbar-admin-popup::before{
    top: -7px;
    right: 28px;
    border-left: 1px solid var(--shell-border);
    border-top: 1px solid var(--shell-border);
    transform: rotate(45deg);
}

.topbar-admin-subpopup::before{
    top: 22px;
    left: -6px;
    width: 12px;
    height: 12px;
    border-left: 1px solid var(--shell-border);
    border-bottom: 1px solid var(--shell-border);
    transform: rotate(45deg);
}

.topbar-admin-popup-item,
.topbar-admin-popup-item-nested,
.topbar-admin-subpopup-item{
    position: relative;
    z-index: calc(var(--z-base) + 1);
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--shell-text);
    transition: background 0.16s ease, color 0.16s ease;
}

.topbar-admin-popup-item:hover,
.topbar-admin-popup-item-nested:hover,
.topbar-admin-subpopup-item:hover{
    background: var(--shell-primary-soft);
}

.topbar-admin-popup-icon,
.topbar-admin-subpopup-icon{
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--shell-primary);
    background: transparent;
}

.topbar-admin-popup-item strong,
.topbar-admin-popup-item-nested strong,
.topbar-admin-subpopup-item strong{
    display: block;
    color: var(--shell-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.topbar-admin-popup-item small,
.topbar-admin-popup-item-nested small,
.topbar-admin-subpopup-item small{
    display: block;
    margin-top: 3px;
    color: var(--shell-text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.topbar-admin-popup-arrow{
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--shell-text-muted);
    transform: rotate(-90deg);
}

.topbar-admin-popup-item-nested::after{
    content: "";
    position: absolute;
    top: 0;
    right: -14px;
    width: 18px;
    height: 100%;
}

/* =========================================================
   SIDEBAR RECOLHIDA
   ========================================================= */


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1024px){

    :root{
        --shell-sidebar-width: 260px;
        --shell-sidebar-collapsed-width: 76px;
    }

    

    

    .topbar-user-compact{
        min-width: 172px;
        max-width: 220px;
    }

    .topbar-user-compact-info small{
        display: none;
    }

}


@media (max-width: 1024px){

    :root{
        --shell-sidebar-width: 0px;
        --shell-sidebar-collapsed-width: 0px;
    }

    

    

    

    

    

    

    

    .topbar-admin-wrapper,
.topbar-admin-badge{
        width: 100%;
    }

    .topbar-admin-badge{
        justify-content: flex-start;
    }

    .topbar-admin-popup{
        left: 0;
        right: auto;
        width: 100%;
        min-width: 100%;
    }

    .topbar-admin-popup::before{
        left: 28px;
        right: auto;
    }

    .topbar-admin-subpopup{
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .topbar-admin-subpopup::before,
.topbar-admin-popup-item-nested::after{
        display: none;
    }

}


@media (max-width: 640px){

    

    

    .topbar-user-compact{
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        height: 48px;
        padding: 4px;
        justify-content: center;
    }

    .topbar-user-compact-info{
        display: none;
    }

    .topbar-user-compact-avatar{
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

}


/* =========================================================
   Sidebar hierárquica RBAC
   ========================================================= */


.sidebar-section-loading{
    margin-top: 4px;
}


/* =========================================================
   Ajuste menu lateral - flyout no hover, distribuição e rodapé fixo
   ========================================================= */


/* =========================================================
   Ajuste final menu lateral - flyout sem scroll e itens neutros
   ========================================================= */


/* =========================================================
   Sidebar premium com logo fixa
   - Mantem a logica/hierarquia do menu em shell.js.
   - Apenas reposiciona a marca e reativa estados visuais.
   ========================================================= */


/* =========================================================
   Ajuste menu lateral - flyout somente no hover real
   - O popup não fica preso após clique.
   - O popup permite mover o mouse até ele sem sumir.
   - Ao sair do tópico/popup, ele fecha automaticamente.
   - Itens permanecem neutros, sem realce de cor ou borda.
   ========================================================= */


/* =========================================================
   SIDEBAR LOGO LIGHT/DARK - SEM CONTRASTE
   Escopo: somente área visual da marca no menu lateral.
   ========================================================= */


/* Estado padrão da imagem da logo */


/* Logo quando o menu está expandido */


/* Logo quando o menu está recolhido */


/* =========================================================
   TEMA PREMIUM - CORES E TIPOGRAFIA DO SHELL
   Sidebar clean, topbar premium e suporte completo a light/dark.
   ========================================================= */


/* Cabeçalho global alinhado ao padrão da tela Início */


.topbar-notification-button,
.topbar-theme-toggle,
.topbar-user-compact{
    
    
    color: var(--shell-title-graphite);
    box-shadow: var(--shell-shadow);
}

.topbar-notification-button:hover,
.topbar-theme-toggle:hover,
.topbar-user-compact:hover{
    
    
    color: var(--shell-primary);
}

.topbar-user-compact-info strong,
.topbar-user-compact-info span{
    color: var(--shell-title-graphite);
    font-weight: 520;
}


/* =========================================================
   Topbar global - mesmos objetos e funções da tela Início
   ========================================================= */


.topbar-notification-button,
.topbar-user-compact,
.topbar-theme-toggle{
    background: var(--surface);
    color: #263238;
    border: 1px solid color-mix(in srgb, var(--shadow-color) 10%, transparent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--shadow-color) 6%, transparent);
}

.topbar-notification-button,
.topbar-theme-toggle{
    height: 48px;
    min-height: 48px;
}

.topbar-notification-button{
    width: 48px;
    min-width: 48px;
}

.topbar-theme-toggle{
    width: 86px;
    min-width: 86px;
    gap: 8px;
    padding: 0 8px 0 11px;
}

.topbar-user-compact{
    min-width: 132px;
    max-width: 210px;
    height: 48px;
    min-height: 48px;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    font: inherit;
}

.topbar-notification-button:hover,
.topbar-theme-toggle:hover,
.topbar-user-compact:hover{
    
    border-color: color-mix(in srgb, var(--shadow-color) 16%, transparent);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--shadow-color) 10%, transparent);
    transform: translateY(-1px);
}

.topbar-theme-icon svg,
.topbar-notification-icon svg{
    width: 19px;
    height: 19px;
}

.topbar-theme-toggle__track{
    width: 42px;
    height: 24px;
    padding: 3px;
    
    align-items: center;
    justify-content: flex-start;
    border-radius: 999px;
    background: var(--shell-primary);
}

.topbar-theme-toggle__track span{
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-black) 20%, transparent);
    transition: transform 0.18s ease;
}

.topbar-theme-toggle.is-dark .topbar-theme-toggle__track span{
    transform: translateX(18px);
}

.topbar-user-compact-avatar{
    width: 42px;
    height: 42px;
    min-width: 42px;
    
    
}

.topbar-user-compact-info{
    min-width: 0;
    display: grid;
    gap: 1px;
    text-align: left;
}

.topbar-user-compact-info strong,
.topbar-user-compact-info small{
    max-width: 92px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-compact-info strong{
    color: var(--shell-title-graphite);
    font-size: 13px;
    font-weight: 520;
    line-height: 1.1;
}

.topbar-user-compact-info small{
    color: var(--shell-text-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
}

.topbar-user-compact-chevron{
    color: var(--shell-text-muted);
    font-size: 18px;
    line-height: 1;
}

.topbar-action-modal-backdrop{
    position: fixed;
    inset: 0;
    
    padding: 24px;
    display: grid;
    place-items: center;
    
    
}

.topbar-action-modal{
    
    
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    
    
    
    
}

:root[data-theme="dark"] .topbar-action-modal{
    background: var(--shell-surface);
}

.topbar-action-modal__header{
    padding: 18px 22px;
    display: flex;
    
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--shell-border);
}

.topbar-action-modal__header h3{
    margin: 0;
    
    font-size: 20px;
    font-weight: 620;
    
}

.topbar-action-modal__header p{
    margin: 5px 0 0;
    color: var(--shell-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.topbar-action-modal__close{
    
    
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    
    
    font-size: 22px;
    cursor: pointer;
}

.topbar-action-modal__body{
    min-height: 0;
    overflow: auto;
    padding: 16px 22px;
}

.topbar-notification-list,
.topbar-user-actions{
    display: grid;
    
}

.topbar-notification-item{
    min-height: 64px;
    width: 100%;
    padding: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--shell-border);
    
    
    
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.topbar-notification-item:hover{
    background: var(--shell-primary-soft, color-mix(in srgb, var(--primary) 8%, transparent));
}

.topbar-notification-item__icon{
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    
    
}

.topbar-notification-item__icon svg,
.topbar-user-action svg{
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-notification-item strong,
.topbar-notification-item small{
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}


.topbar-notification-item small{
    margin-top: 3px;
    
    font-size: 12px;
    font-weight: 500;
}

.topbar-notification-item b{
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--shell-primary);
    color: var(--color-white);
    font-size: 13px;
}

.topbar-empty-text{
    margin: 0;
    color: var(--shell-text-muted);
    font-size: 14px;
}

.topbar-user-actions__profile,
.topbar-user-action{
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid var(--shell-border);
    border-radius: 16px;
    background: var(--shell-surface-soft, color-mix(in srgb, var(--shadow-color) 4%, transparent));
    color: var(--shell-title-graphite);
    text-decoration: none;
}

.topbar-user-actions__profile{
    background: var(--shell-primary-soft, color-mix(in srgb, var(--primary) 8%, transparent));
}

.topbar-user-actions__avatar{
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    background: var(--shell-surface-soft, color-mix(in srgb, var(--shadow-color) 6%, transparent));
    color: var(--shell-title-graphite);
    font-size: 13px;
    font-weight: 620;
}

.topbar-user-actions__avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-user-actions__profile span,
.topbar-user-action span{
    min-width: 0;
    display: grid;
    gap: 3px;
}

.topbar-user-actions__profile strong,
.topbar-user-action strong,
.topbar-user-actions__profile small,
.topbar-user-action small{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-actions__profile strong,
.topbar-user-action strong{
    color: var(--shell-title-graphite);
    font-size: 14px;
    font-weight: 620;
}

.topbar-user-actions__profile small,
.topbar-user-action small{
    color: var(--shell-text-muted);
    font-size: 12px;
    font-weight: 500;
}

.topbar-user-action{
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.topbar-user-action:hover{
    background: var(--shell-primary-soft, color-mix(in srgb, var(--primary) 8%, transparent));
}

.topbar-user-action svg{
    color: var(--shell-primary);
}

@media (max-width: 768px){

    .topbar-theme-toggle{
        width: 78px;
        min-width: 78px;
    }

    .topbar-user-compact{
        min-width: 48px;
        max-width: 48px;
        padding: 3px;
    }

    .topbar-user-compact-info,
.topbar-user-compact-chevron{
        display: none;
    }

}


/* =========================================================
   AJUSTE FINAL - CABEÇALHOS FIXOS PREMIUM SEM SOBREPOR SIDEBAR
   - A topbar fica fixa de verdade no viewport.
   - No desktop, começa depois da largura real da sidebar.
   - Quando a sidebar está recolhida, acompanha a largura recolhida.
   - A sidebar fica acima da topbar para não haver sobreposição visual.
   - O conteúdo recebe compensação superior para não ficar escondido.
   - Cabeçalho usa a mesma cor do fundo geral da tela.
   - Objetos da direita permanecem em pills brancos no light mode.
   - Preserva modo dark sem CSS inline.
   ========================================================= */

:root{
    --shell-page-bg: radial-gradient(circle at 90% -10%, rgba(169, 176, 219, 0.32), transparent 28%),
        radial-gradient(circle at 74% 1%, rgba(232, 234, 247, 0.78), transparent 20%),
        var(--app-bg);
    --shell-header-bg: var(--app-bg);
    --shell-header-title: var(--title-color);
    --shell-header-subtitle: var(--text-muted);
    --shell-header-border: color-mix(in srgb, var(--shadow-color) 5.5%, transparent);
    --shell-header-control-bg: var(--surface);
    --shell-header-control-bg-hover: var(--surface-alt);
    --shell-header-control-text: var(--title-color);
    --shell-header-control-border: var(--border);
    --shell-header-control-border-hover: var(--border-strong);
    --shell-header-control-shadow: var(--shadow-xs);
    --shell-header-control-shadow-hover: var(--shadow-sm);
    --shell-fixed-topbar-left: var(--shell-sidebar-width);
}

:root[data-theme="dark"]{
    --shell-page-bg: var(--app-bg);
    --shell-header-bg: var(--shell-page-bg);
    --shell-header-title: var(--text);
    --shell-header-subtitle: var(--text-muted);
    --shell-header-border: color-mix(in srgb, var(--neutral) 14%, transparent);
    --shell-header-control-bg: var(--surface);
    --shell-header-control-bg-hover: var(--surface-alt);
    --shell-header-control-text: var(--text);
    --shell-header-control-border: color-mix(in srgb, var(--neutral) 18%, transparent);
    --shell-header-control-border-hover: color-mix(in srgb, var(--neutral) 26%, transparent);
    --shell-header-control-shadow: none;
    --shell-header-control-shadow-hover: none;
}


.topbar-notification-button:hover,
.topbar-theme-toggle:hover,
.topbar-user-compact:hover,
.topbar-admin-badge:hover{
    
    
    
    
    transform: translateY(-1px);
}

.topbar-notification-icon,
.topbar-theme-icon,
.topbar-user-compact-chevron,
.topbar-admin-arrow{
    color: var(--shell-header-control-text);
}

.topbar-user-compact-info strong,
.topbar-user-compact-info span,
.topbar-admin-text strong{
    color: var(--shell-header-title);
}

.topbar-user-compact-info small,
.topbar-admin-text small,
.topbar-admin-text span{
    color: var(--shell-header-subtitle);
}

.topbar-user-compact-avatar{
    background: var(--shell-surface-soft);
    color: var(--shell-header-title);
}

.topbar-notification-badge{
    border-color: var(--shell-header-control-bg);
}


/* =========================================================
   EXCEÇÃO DA TELA INÍCIO
   - A página /inicio usa um cabeçalho próprio dentro da tela.
   - Portanto, ela não deve receber o cabeçalho global fixo.
   - Remove a compensação superior criada para as telas com topbar padrão.
   ========================================================= */


/* =========================================================
   AJUSTE FINAL - SHELL PREMIUM LEVE E FINO
   - Somente acabamento visual de cores, bordas e sombras.
   - Não altera estrutura, menus, rotas, permissões ou comportamento.
   ========================================================= */


.topbar-notification-button,
.topbar-theme-toggle,
.topbar-user-compact,
.topbar-admin-badge{
    background: var(--shell-header-control-bg);
    border-color: var(--shell-header-control-border);
    color: var(--shell-header-control-text);
    box-shadow: var(--shell-header-control-shadow);
}

.topbar-notification-button:hover,
.topbar-theme-toggle:hover,
.topbar-user-compact:hover,
.topbar-admin-badge:hover{
    background: var(--shell-header-control-bg-hover);
    border-color: var(--shell-header-control-border-hover);
    color: var(--primary);
    box-shadow: var(--shell-header-control-shadow-hover);
}

/* =========================================================
   SHELL — refinamento visual e legibilidade
   ========================================================= */


.topbar-notification-button,
.topbar-theme-toggle,
.topbar-user-compact,
.topbar-admin-badge{
    backdrop-filter: blur(12px);
}


/* Central de notificações no padrão visual global. */
.topbar-action-modal-backdrop{
    background: var(--modal-backdrop);
}

.topbar-action-modal{
    border-color: var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.topbar-action-modal__header{
    align-items: center;
    border-bottom-color: var(--border-soft);
}

.topbar-action-modal__header h3{
    color: var(--title-color);
}

.topbar-action-modal__header p,
.topbar-empty-text{
    color: var(--text-muted);
}

.topbar-action-modal__close{
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-color: var(--border);
    background: var(--surface-alt);
    color: var(--text-soft);
}

.topbar-action-modal__close:hover,
.topbar-action-modal__close:focus-visible{
    border-color: var(--border-strong);
    background: var(--primary-soft);
    color: var(--primary);
}

/* Popups globais sempre acima do shell e de modais comuns. */
.topbar-action-modal-backdrop{
    
    overflow: auto;
    overscroll-behavior: contain;
    isolation: isolate;
}

.topbar-action-modal{
    position: relative;
    z-index: var(--z-flyout);
    width: min(760px, calc(100vw - 32px));
    max-height: min(82vh, calc(100vh - 48px));
}

@media (max-width: 640px){

    .topbar-action-modal-backdrop{
        padding: 12px;
    }

    .topbar-action-modal{
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: var(--radius-lg);
    }

}


.topbar-notification-item{
    border-color: var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    color: var(--text);
}

.topbar-notification-item:hover,
.topbar-notification-item:focus-visible{
    border-color: var(--border-strong);
    background: var(--primary-subtle);
    outline: none;
}

.topbar-notification-item__icon{
    background: var(--primary-soft);
    color: var(--primary);
}


.topbar-notification-item small{
    color: var(--text-muted);
}

.topbar-notification-count-badge{
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.topbar-notification-empty{
    min-height: 150px;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    text-align: center;
}

.topbar-notification-empty strong{
    color: var(--text);
    font-size: 15px;
}

.topbar-notification-empty span{
    color: var(--text-muted);
    font-size: 13px;
}


/* Simulação de acesso controlada */
.mindz-impersonation-banner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 20px 0;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 251, 235, .96), rgba(254, 243, 199, .88));
    color: #78350f;
    box-shadow: 0 14px 32px rgba(146, 64, 14, .12);
    z-index: calc(var(--z-base) + 8);
}

[data-theme="dark"] .mindz-impersonation-banner{
    background: linear-gradient(135deg, rgba(69, 44, 12, .96), rgba(92, 61, 18, .88));
    border-color: rgba(251, 191, 36, .28);
    color: var(--warning-border);
}

.mindz-impersonation-banner__content,
.mindz-impersonation-banner__actions{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mindz-impersonation-banner__content strong,
.mindz-impersonation-banner__content small{
    display: block;
    line-height: 1.25;
}

.mindz-impersonation-banner__content strong{
    font-size: .92rem;
}

.mindz-impersonation-banner__content small{
    margin-top: 2px;
    opacity: .78;
    font-size: .78rem;
}

.mindz-impersonation-banner__pulse{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--warning) 16%, transparent);
    flex: 0 0 auto;
}

.mindz-impersonation-banner__link,
.mindz-impersonation-banner__stop{
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.mindz-impersonation-banner__link{
    display: inline-flex;
    align-items: center;
    color: var(--warning-strong);
    background: color-mix(in srgb, var(--color-white) 55%, transparent);
    border: 1px solid rgba(146, 64, 14, .18);
}

.mindz-impersonation-banner__stop{
    border: 0;
    color: var(--color-white);
    background: var(--warning-strong);
}

[data-theme="dark"] .mindz-impersonation-banner__link{
    color: var(--warning-border);
    background: color-mix(in srgb, var(--color-white) 8%, transparent);
    border-color: rgba(253, 230, 138, .22);
}

[data-theme="dark"] .mindz-impersonation-banner__stop{
    background: var(--warning);
}

.mindz-impersonation-banner__stop:disabled{
    cursor: not-allowed;
    opacity: .55;
    background: rgba(180, 83, 9, .45);
}

[data-theme="dark"] .mindz-impersonation-banner__stop:disabled{
    background: rgba(217, 119, 6, .35);
}

@media (max-width: 768px){

    .mindz-impersonation-banner{
        align-items: flex-start;
        flex-direction: column;
    }

    .mindz-impersonation-banner__actions{
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

}


/* Toast global migrado para mindz_interactions.css. */

/* =========================================================
   FIX 402 - Sidebar flyout acima do topbar e sem scroll horizontal
   - Somente camada visual; não altera navegação ou permissões.
   ========================================================= */
:root{
    --shell-sidebar-flyout-z: 70000;
}


/* FIX 403 - Sidebar flyout portal fallback */


/* =========================================================
   Microinterações premium do shell
   ========================================================= */


/* =========================================================
   Premium shell - fase 2
   ========================================================= */

.topbar-action-modal{
    border: 1px solid color-mix(in srgb, var(--shell-border) 80%, transparent);
    border-radius: 24px;
    box-shadow: 0 28px 72px color-mix(in srgb, var(--shadow-color) 16%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--shell-surface) 97%, transparent), color-mix(in srgb, var(--shell-surface-alt) 95%, transparent));
}

:root[data-theme="dark"] .topbar-action-modal{
    box-shadow: 0 30px 78px color-mix(in srgb, var(--color-black) 32%, transparent);
}

.topbar-action-modal__header{
    background: linear-gradient(180deg, color-mix(in srgb, var(--shell-surface-alt) 92%, transparent), color-mix(in srgb, var(--shell-surface) 98%, transparent));
}

.topbar-notification-list,
.topbar-user-actions{
    gap: 12px;
}

.topbar-notification-item,
.topbar-user-action{
    border-radius: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}


/* =========================================================
   Premium shell - fase 3
   - refinamento final sidebar/topbar
   ========================================================= */


.topbar-notification-button,
.topbar-theme-toggle,
.topbar-user-compact{
    border-radius: 18px;
}

.topbar-notification-item,
.topbar-user-action{
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--shell-border) 82%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--shell-surface-soft) 96%, transparent), color-mix(in srgb, var(--shell-surface) 98%, transparent));
}

.topbar-notification-item::before,
.topbar-user-action::before{
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--shell-primary) 24%, transparent), transparent);
    pointer-events: none;
}

.topbar-action-modal__header h3{
    letter-spacing: -0.03em;
}


/* =========================================================
   Premium shell - fase 4
   - dark/topbar/sidebar acabamento final
   ========================================================= */


.topbar-notification-button,
.topbar-theme-toggle,
.topbar-user-compact{
    background: linear-gradient(180deg, color-mix(in srgb, var(--shell-surface) 98%, transparent), color-mix(in srgb, var(--shell-surface-alt) 94%, transparent));
    border-color: color-mix(in srgb, var(--shell-border) 82%, transparent);
}

.topbar-notification-button:hover,
.topbar-theme-toggle:hover,
.topbar-user-compact:hover{
    background: color-mix(in srgb, var(--shell-primary) 8%, var(--shell-surface));
}

.topbar-action-modal-backdrop{
    backdrop-filter: blur(12px) saturate(1.05);
}

.topbar-action-modal{
    outline: 1px solid color-mix(in srgb, var(--color-white) 8%, transparent);
    outline-offset: -2px;
}

.topbar-notification-item,
.topbar-user-action{
    position: relative;
}

.topbar-notification-item:hover,
.topbar-user-action:hover{
    border-color: color-mix(in srgb, var(--shell-primary) 22%, var(--shell-border));
}


@media (max-width: 768px){

    .topbar-action-modal{
        border-radius: 22px;
    }

}


/* =========================================================
   MindZ Mascot Global Widget
   ========================================================= */
























@media (max-width: 768px){

    

    

    

}


@media (prefers-reduced-motion: reduce){

    

}




















/* Correções do widget global do mascote */








/* Pendências elegantes do mascote */












/* Mascote mais conversador e sobreposição total */







/* Mascote: interação espaçada e sobreposição correta */
.topbar-action-modal-backdrop{
    z-index: calc(var(--z-modal) + 2);
}





/* =========================================================
   MindZ Orb Widget - substitui mascote por objeto HTML/CSS
   ========================================================= */





















































@keyframes mindzOrbFloat{

    0%,
100%{ transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1); }
    22%{ transform: translate3d(1px, -5px, 0) rotateX(4deg) rotateY(-5deg) scale(1.012); }
    50%{ transform: translate3d(0, -9px, 0) rotateX(-2deg) rotateY(4deg) scale(1.018); }
    78%{ transform: translate3d(-1px, -4px, 0) rotateX(3deg) rotateY(2deg) scale(1.01); }

}


@keyframes mindzOrbShadow{

    0%,
100%{ transform: translateX(-50%) scale(1); opacity: 0.78; }
    50%{ transform: translateX(-50%) scale(0.78); opacity: 0.48; }

}


@keyframes mindzOrbCore{

    0%,
100%{ transform: scale(1); opacity: 1; }
    50%{ transform: scale(0.92); opacity: 0.86; }

}


@keyframes mindzOrbRingOne{

    to{ transform: rotateZ(360deg) rotateX(12deg); }

}


@keyframes mindzOrbRingTwo{

    to{ transform: rotateZ(360deg) rotateY(16deg); }

}


@keyframes mindzOrbRingThree{

    to{ transform: rotateZ(360deg); }

}


@keyframes mindzOrbSatelliteOne{

    0%,
100%{ transform: translate3d(0, 0, 0) scale(1); opacity: 0.92; }
    45%{ transform: translate3d(-72px, 72px, 0) scale(0.68); opacity: 0.48; }
    55%{ transform: translate3d(-80px, 66px, 0) scale(0.58); opacity: 0.36; }

}


@keyframes mindzOrbSatelliteTwo{

    0%,
100%{ transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.66; }
    50%{ transform: translate3d(-92px, -52px, 0) scale(1.05); opacity: 0.92; }

}


@keyframes mindzOrbSpark{

    0%,
100%{ transform: scale(0.6); opacity: 0.28; }
    45%{ transform: scale(1.4); opacity: 1; }
    70%{ transform: scale(0.82); opacity: 0.58; }

}


@keyframes mindzOrbClick{

    0%{ transform: scale(1); }
    45%{ transform: scale(0.88); filter: brightness(1.12) saturate(1.18); }
    100%{ transform: scale(1.08); }

}


@keyframes mindzOrbDrag{

    from{ transform: rotateZ(-5deg) scale(1.02); }
    to{ transform: rotateZ(5deg) scale(1.06); }

}


@keyframes mindzOrbSleep{

    0%,
100%{ transform: translate3d(0, 2px, 0) scale(0.96); opacity: 0.82; }
    50%{ transform: translate3d(0, -2px, 0) scale(0.98); opacity: 0.9; }

}


@media (max-width: 768px){

    

    

    

}


@media (prefers-reduced-motion: reduce){

    

}


/* =========================================================
   MindZ Orb Card - formato retangular com logo central
   ========================================================= */


































@keyframes mindzOrbCardFloat{

    0%,
100%{ transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    32%{ transform: translate3d(0, -4px, 0) rotate(-0.8deg) scale(1.006); }
    66%{ transform: translate3d(0, -2px, 0) rotate(0.7deg) scale(1.003); }

}


@keyframes mindzOrbCardClick{

    0%{ transform: translate3d(0, 0, 0) scale(1); }
    55%{ transform: translate3d(0, -3px, 0) scale(0.982); }
    100%{ transform: translate3d(0, 0, 0) scale(1.012); }

}


@keyframes mindzOrbCardDrag{

    from{ transform: rotate(-1.2deg) scale(1.018); }
    to{ transform: rotate(1.2deg) scale(1.028); }

}


@keyframes mindzOrbCardSleep{

    0%,
100%{ transform: translate3d(0, 1px, 0) scale(0.99); opacity: 0.9; }
    50%{ transform: translate3d(0, -2px, 0) scale(0.985); opacity: 0.82; }

}


@media (max-width: 768px){

    

    

    

}


/* Resumo inteligente do MindZ Orb */





/* Ajuste do balão do objeto MindZ: sem título e com resposta Sim/Não */














/* Correção final: botão Sim visível e verde + ações de notificações */













/* Correção: botões Sim/Não no mesmo padrão e clique funcional */






/* =========================================================
   MindZ Facilitador Contextual Premium
   ========================================================= */




































.ph-facilitador-card{
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 7px;
    
    
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-white) 86%, transparent), rgba(239, 246, 255, 0.66));
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 84%, transparent);
}

.ph-facilitador-card::after{
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -48px;
    top: -58px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%);
    pointer-events: none;
}

[data-theme="dark"] .ph-facilitador-card,
:root[data-theme="dark"] .ph-facilitador-card{
    border-color: color-mix(in srgb, var(--primary) 25%, transparent);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), color-mix(in srgb, var(--shadow-color) 72%, transparent));
}

.ph-facilitador-card__label{
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ph-facilitador-card__title{
    color: var(--shell-title-graphite);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.ph-facilitador-card p{
    margin: 0;
    color: var(--shell-text-muted);
    font-size: 13px;
    font-weight: 560;
    line-height: 1.45;
}

[data-theme="dark"] .ph-facilitador-card__title,
:root[data-theme="dark"] .ph-facilitador-card__title{
    color: rgba(248, 250, 252, 0.96);
}

[data-theme="dark"] .ph-facilitador-card p,
:root[data-theme="dark"] .ph-facilitador-card p{
    color: rgba(203, 213, 225, 0.82);
}

.ph-facilitador-grid{
    display: grid;
    
    
}

.ph-facilitador-metric{
    
    
    align-content: start;
    
    text-align: left;
    
    border: 1px solid color-mix(in srgb, var(--neutral) 20%, transparent);
    
    background: color-mix(in srgb, var(--color-white) 72%, transparent);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ph-facilitador-metric:hover,
.ph-facilitador-metric:focus-visible{
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 36%, transparent);
    box-shadow: 0 16px 28px color-mix(in srgb, var(--shadow-color) 10%, transparent);
    outline: none;
}

[data-theme="dark"] .ph-facilitador-metric,
:root[data-theme="dark"] .ph-facilitador-metric{
    border-color: color-mix(in srgb, var(--neutral) 18%, transparent);
    background: color-mix(in srgb, var(--shadow-color) 54%, transparent);
}

.ph-facilitador-metric__top{
    display: flex;
    
    justify-content: space-between;
    gap: 10px;
}

.ph-facilitador-metric strong{
    color: var(--shell-title-graphite);
    font-size: 12px;
    font-weight: 820;
    letter-spacing: -0.01em;
}

.ph-facilitador-metric em{
    min-width: 34px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.ph-facilitador-metric small{
    color: var(--shell-text-muted);
    font-size: 12px;
    font-weight: 560;
    line-height: 1.35;
}

[data-theme="dark"] .ph-facilitador-metric strong,
:root[data-theme="dark"] .ph-facilitador-metric strong{
    color: rgba(248, 250, 252, 0.94);
}

[data-theme="dark"] .ph-facilitador-metric small,
:root[data-theme="dark"] .ph-facilitador-metric small{
    color: rgba(203, 213, 225, 0.78);
}

.ph-facilitador-metric--success em{
    color: var(--success-strong);
    background: rgba(16, 185, 129, 0.13);
}

.ph-facilitador-metric--warning em{
    color: var(--warning-strong);
    background: color-mix(in srgb, var(--warning) 14%, transparent);
}

.ph-facilitador-metric--danger em{
    color: var(--danger);
    background: rgba(244, 63, 94, 0.13);
}

.ph-facilitador-metric--info em{
    color: var(--primary-hover);
    background: color-mix(in srgb, var(--accent) 13%, transparent);
}

.ph-facilitador-actions{
    display: flex;
    flex-wrap: wrap;
    
}

.ph-facilitador-action,
.ph-facilitador-ask button{
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
    border-radius: 14px;
    color: var(--primary);
    background: rgba(239, 246, 255, 0.84);
    font-size: 12px;
    font-weight: 780;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ph-facilitador-action:hover,
.ph-facilitador-action:focus-visible,
.ph-facilitador-ask button:hover,
.ph-facilitador-ask button:focus-visible{
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 40%, transparent);
    background: rgba(219, 234, 254, 0.95);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 14%, transparent);
    outline: none;
}

.ph-facilitador-ask{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), color-mix(in srgb, var(--accent) 8%, transparent));
}

.ph-facilitador-ask div{
    min-width: 0;
    display: grid;
    gap: 3px;
}

.ph-facilitador-ask span{
    color: var(--shell-title-graphite);
    font-size: 13px;
    font-weight: 820;
}

.ph-facilitador-ask small{
    color: var(--shell-text-muted);
    font-size: 12px;
    font-weight: 560;
}

.ph-facilitador-skeleton{
    height: 98px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.52), rgba(248, 250, 252, 0.9), rgba(226, 232, 240, 0.52));
    background-size: 220% 100%;
    animation: phFacilitadorSkeleton 1.2s ease-in-out infinite;
}



@keyframes phFacilitadorSkeleton{

    to{ background-position: -220% 0; }

}


@media (max-width: 640px){

    

    .ph-facilitador-grid{
        grid-template-columns: 1fr;
    }

    .ph-facilitador-ask{
        align-items: stretch;
        flex-direction: column;
    }

    .ph-facilitador-ask button{
        width: 100%;
    }

}


/* Correção do Facilitador Contextual: X padronizado e fallback sem travar carregamento */








@keyframes phFacilitadorSoftLoading{

    to{ transform: translateX(120%); }

}























:root:not([data-theme="dark"]) .ph-facilitador-card{
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: none;
}

:root:not([data-theme="dark"]) .ph-facilitador-card::after{
    display: none;
}

:root:not([data-theme="dark"]) .ph-facilitador-card__label{
    width: fit-content;
    padding: 4px 10px;
    border: 1px solid #D8E6FF;
    border-radius: 999px;
    background: #F5F8FF;
    color: var(--primary);
    letter-spacing: 0.06em;
}

:root:not([data-theme="dark"]) .ph-facilitador-card__title{
    color: var(--title-color);
    font-weight: 760;
}

:root:not([data-theme="dark"]) .ph-facilitador-card p{
    color: var(--text-muted);
    font-weight: 500;
}

:root:not([data-theme="dark"]) .ph-facilitador-metric{
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: none;
}

:root:not([data-theme="dark"]) .ph-facilitador-metric:hover,
:root:not([data-theme="dark"]) .ph-facilitador-metric:focus-visible{
    background: #F8FAFD;
    border-color: color-mix(in srgb, var(--primary) 18%, var(--border));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--shadow-color) 8%, transparent);
}

:root:not([data-theme="dark"]) .ph-facilitador-metric strong{
    color: var(--title-color);
    font-weight: 680;
}

:root:not([data-theme="dark"]) .ph-facilitador-metric small{
    color: var(--text-muted);
    font-weight: 500;
}

:root:not([data-theme="dark"]) .ph-facilitador-metric em{
    background: var(--info-soft);
    color: var(--primary);
}

:root:not([data-theme="dark"]) .ph-facilitador-action,
:root:not([data-theme="dark"]) .ph-facilitador-ask button{
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 12px;
    background: var(--surface);
    color: var(--primary);
    box-shadow: none;
}

:root:not([data-theme="dark"]) .ph-facilitador-action:hover,
:root:not([data-theme="dark"]) .ph-facilitador-action:focus-visible,
:root:not([data-theme="dark"]) .ph-facilitador-ask button:hover,
:root:not([data-theme="dark"]) .ph-facilitador-ask button:focus-visible{
    background: var(--info-soft);
    border-color: var(--primary);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 10%, transparent);
}

:root:not([data-theme="dark"]) .ph-facilitador-ask{
    background: #F8FAFD;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
}





/* =========================================================
   MindZ Header Resumo Contextual — ajuste solicitado
   ========================================================= */
.topbar-mindz-context-wrapper{
    position: relative;
    
    
    flex: 0 0 auto;
}

.topbar-mindz-context-button{
    
    
    
    display: inline-flex;
    
    gap: 10px;
    
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
    color: var(--shell-primary);
    box-shadow: var(--shadow-sm);
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.topbar-mindz-context-button:hover,
.topbar-mindz-context-button:focus-visible{
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--shell-primary) 34%, var(--shell-border));
    box-shadow: 0 16px 36px color-mix(in srgb, var(--shadow-color) 11%, transparent);
    outline: none;
}

.topbar-mindz-context-button__icon{
    
    
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--shell-primary);
    background: color-mix(in srgb, var(--shell-primary) 9%, var(--surface));
    flex: 0 0 auto;
}

.topbar-mindz-context-button__icon svg{
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-mindz-context-button__text{
    display: grid;
    gap: 1px;
    line-height: 1.05;
    text-align: left;
}

.topbar-mindz-context-button__text strong{
    color: var(--shell-title-graphite);
    font-size: 13px;
    font-weight: 850;
}

.topbar-mindz-context-button__text small{
    color: var(--shell-text-muted);
    font-size: 11px;
    font-weight: 720;
}

.topbar-mindz-context-hint{
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: max-content;
    max-width: 260px;
    padding: 11px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--shell-primary) 20%, var(--shell-border));
    background: var(--shell-surface);
    color: var(--shell-title-graphite);
    box-shadow: 0 18px 42px color-mix(in srgb, var(--shadow-color) 14%, transparent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: var(--z-dropdown);
}

.topbar-mindz-context-hint::before{
    content: "";
    position: absolute;
    right: 26px;
    top: -6px;
    width: 12px;
    height: 12px;
    border-left: 1px solid color-mix(in srgb, var(--shell-primary) 20%, var(--shell-border));
    border-top: 1px solid color-mix(in srgb, var(--shell-primary) 20%, var(--shell-border));
    background: inherit;
    transform: rotate(45deg);
}

.topbar-mindz-context-hint.is-visible{
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes mindz-svg-shake-header{

    0%{ transform: rotate(0deg) translateX(0); }
    20%{ transform: rotate(-5deg) translateX(-1px); }
    40%{ transform: rotate(5deg) translateX(1px); }
    60%{ transform: rotate(-3deg) translateX(-1px); }
    80%{ transform: rotate(3deg) translateX(1px); }
    100%{ transform: rotate(0deg) translateX(0); }

}


.topbar-mindz-context-button:hover .topbar-mindz-context-button__icon,
.topbar-mindz-context-button:focus-visible .topbar-mindz-context-button__icon,
.ph-facilitador-metric:hover .ph-facilitador-metric__icon,
.ph-facilitador-metric:focus-visible .ph-facilitador-metric__icon{
    animation: mindz-svg-shake-header 0.42s ease-in-out;
}

@keyframes mindz-bell-ring-continuous{

    0%{ transform: rotate(0deg); }
    8%{ transform: rotate(10deg); }
    16%{ transform: rotate(-10deg); }
    24%{ transform: rotate(8deg); }
    32%{ transform: rotate(-8deg); }
    40%{ transform: rotate(4deg); }
    48%{ transform: rotate(-4deg); }
    56%{ transform: rotate(0deg); }
    100%{ transform: rotate(0deg); }

}


.topbar-notification-icon svg,
.topbar-notification-button svg,
#topbarNotificationsBtn svg{
    transform-origin: 50% 10%;
    animation: mindz-bell-ring-continuous 1.8s ease-in-out infinite;
}

/* O antigo objeto flutuante deixa de aparecer. O acesso fica apenas no cabeçalho. */





















.ph-facilitador-card{
    border-radius: 20px;
    padding: 18px;
}

.ph-facilitador-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ph-facilitador-metric{
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border-radius: 18px;
    min-height: 112px;
}

.ph-facilitador-metric__icon{
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: color-mix(in srgb, var(--shell-primary) 9%, var(--surface));
    color: var(--shell-primary);
}

.ph-facilitador-metric__icon svg{
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ph-facilitador-metric__body{
    min-width: 0;
    display: grid;
    gap: 7px;
    width: 100%;
}

.ph-facilitador-actions{
    gap: 10px;
}

@media (max-width: 1024px){

    .topbar-mindz-context-button__text{
        display: none;
    }

    .topbar-mindz-context-button{
        
        
        justify-content: center;
    }

    

    .ph-facilitador-grid{
        grid-template-columns: 1fr;
    }

}


@media (prefers-reduced-motion: reduce){

    .topbar-mindz-context-button:hover .topbar-mindz-context-button__icon,
.topbar-mindz-context-button:focus-visible .topbar-mindz-context-button__icon,
.ph-facilitador-metric:hover .ph-facilitador-metric__icon,
.ph-facilitador-metric:focus-visible .ph-facilitador-metric__icon,
.topbar-notification-icon svg,
.topbar-notification-button svg,
#topbarNotificationsBtn svg{
        animation: none;
    }

}


/* =========================================================
   Ajuste final — MindZ header e sino alinhados aos controles
   ========================================================= */


.topbar-mindz-context-wrapper{
    align-self: flex-start;
    height: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: flex-start;
}

.topbar-mindz-context-button{
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 12px;
    border-radius: 999px;
    align-items: center;
    align-self: flex-start;
    box-sizing: border-box;
}

.topbar-mindz-context-button__icon{
    width: 38px;
    height: 38px;
    min-width: 38px;
    
}

.topbar-mindz-context-button__text{
    min-width: 0;
}

.topbar-mindz-context-button__text strong,
.topbar-mindz-context-button__text small{
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-notification-button,
.topbar-theme-toggle,
.topbar-user-compact,
.topbar-mindz-context-button{
    align-self: flex-start;
}

#phHomeNotificationsBtn svg,
.ph-home-icon-btn#phHomeNotificationsBtn svg,
.topbar-notification-icon svg,
.topbar-notification-button svg,
#topbarNotificationsBtn svg{
    transform-origin: 50% 10%;
    animation: mindz-bell-ring-continuous 1.8s ease-in-out infinite;
}







@media (max-width: 1024px){

    .topbar-mindz-context-button{
        width: 48px;
        min-width: 48px;
        padding: 0;
    }

    .topbar-mindz-context-button__icon{
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

}


@media (prefers-reduced-motion: reduce){

    #phHomeNotificationsBtn svg,
.ph-home-icon-btn#phHomeNotificationsBtn svg,
.topbar-notification-icon svg,
.topbar-notification-button svg,
#topbarNotificationsBtn svg{
        animation: none;
    }

}


/* =========================================================
   Ajuste finalíssimo — raio igual ao usuário e clique robusto
   ========================================================= */


.topbar-mindz-context-wrapper,
.topbar-mindz-context-button,
.topbar-notification-button,
.topbar-theme-toggle,
.topbar-user-compact{
    height: var(--mindz-header-control-height);
    min-height: var(--mindz-header-control-height);
    max-height: var(--mindz-header-control-height);
    align-self: flex-start;
    box-sizing: border-box;
}


.topbar-mindz-context-button{
    pointer-events: auto;
    position: relative;
    z-index: calc(var(--z-base) + 2);
}

.topbar-mindz-context-button__icon{
    border-radius: var(--mindz-header-control-radius);
}



@media (max-width: 1024px){

    

}


/* =========================================================
   Correção final — MindZ, simulação no header, CSP/badges visuais
   ========================================================= */
:root{
    --mindz-header-control-height: 48px;
    --mindz-header-control-radius: var(--radius-pill);
}


.topbar-impersonation-object{
    height: var(--mindz-header-control-height);
    min-height: var(--mindz-header-control-height);
    max-height: var(--mindz-header-control-height);
    max-width: 360px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 10px;
    border: 1px solid var(--shell-border);
    border-radius: var(--mindz-header-control-radius);
    background: var(--shell-surface);
    color: var(--shell-title-graphite);
    box-shadow: var(--shell-shadow, 0 12px 28px color-mix(in srgb, var(--shadow-color) 8%, transparent));
    box-sizing: border-box;
    align-self: flex-start;
}

.topbar-impersonation-object__pulse{
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--shell-primary);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--shell-primary) 12%, transparent);
    flex: 0 0 auto;
}

.topbar-impersonation-object__text{
    min-width: 0;
    display: grid;
    gap: 1px;
}

.topbar-impersonation-object__text strong,
.topbar-impersonation-object__text small{
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-impersonation-object__text strong{
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
}

.topbar-impersonation-object__text small{
    color: var(--shell-text-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
}

.topbar-impersonation-object__actions{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.topbar-impersonation-object__link,
.topbar-impersonation-object__stop{
    min-height: 34px;
    padding: 0 10px;
    border-radius: var(--mindz-header-control-radius);
    border: 1px solid var(--shell-border);
    background: var(--shell-surface);
    color: var(--shell-title-graphite);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.topbar-impersonation-object__stop{
    background: var(--shell-primary);
    border-color: var(--shell-primary);
    color: var(--primary-contrast);
}

.topbar-impersonation-object__stop:disabled{
    opacity: 0.48;
    cursor: not-allowed;
}

.topbar-impersonation-object__link:hover,
.topbar-impersonation-object__stop:hover:not(:disabled){
    transform: translateY(-1px);
}

.topbar-mindz-context-button,
.topbar-user-compact,
.ph-home-mindz-context-button,
.ph-home-profile-pill{
    border-radius: var(--mindz-header-control-radius);
}

.topbar-mindz-context-button__icon,
.ph-home-mindz-context-button .topbar-mindz-context-button__icon{
    border-radius: var(--mindz-header-control-radius);
}


@media (max-width: 1280px){

    .topbar-impersonation-object__actions,
.topbar-impersonation-object__text small{
        display: none;
    }

    .topbar-impersonation-object{
        max-width: 210px;
        padding-right: 12px;
    }

}


@media (max-width: 1024px){

    .topbar-impersonation-object{
        display: none;
    }

}



.ph-facilitador-metric{
    position: relative;
}

.ph-facilitador-metric__top{
    align-items: flex-start;
}

.ph-facilitador-count-badge{
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--danger-color);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--danger) 24%, transparent), 0 0 0 4px color-mix(in srgb, var(--danger) 10%, transparent);
    flex: 0 0 auto;
}

.ph-facilitador-status-ok{
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
    flex: 0 0 auto;
}

.ph-facilitador-status-ok svg{
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ph-facilitador-status-ok svg circle{
    opacity: 0.32;
}

@keyframes ph-facilitador-ok-pulse{

    0%,
100%{ transform: scale(1); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08); }
    50%{ transform: scale(1.07); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.04); }

}


.ph-facilitador-metric--success .ph-facilitador-status-ok{
    animation: ph-facilitador-ok-pulse 1.8s ease-in-out infinite;
}

.ph-facilitador-value-pill{
    min-width: 34px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--shell-primary);
    background: color-mix(in srgb, var(--shell-primary) 10%, transparent);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 850;
    flex: 0 0 auto;
}

.ph-facilitador-metric__body small{
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce){

    .ph-facilitador-metric--success .ph-facilitador-status-ok{
        animation: none;
    }

}


/* =========================================================
   MindZ global — Cabeçalho fixo sem campos em formato pílula
   ========================================================= */


/* Mapa organizacional - overlay global para ações do card */


@media (max-width: 768px){

    

    

}


.orgz-print-frame{
    position: fixed;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}


/* =========================================================
   FIX v510 - Pop-up do mapa no mesmo padrão de Colaboradores
   ========================================================= */


@media (max-width: 1024px){

    

    

}


/* =========================================================
   FIX v511 - Pop-ups do organograma acima de topbar/sidebar
   ========================================================= */


/* =========================================================
   FIX v512 - Modo embed/modal para telas reaproveitadas em pop-ups
   ========================================================= */
html.mindz-embed-mode,
body.mindz-embed-mode{
    width: 100%;
    min-height: 100%;
    overflow: auto;
    background: var(--bg);
}


body.mindz-embed-mode .page,
body.mindz-embed-mode .feedback-page,
body.mindz-embed-mode .colaboradores-page{
    max-width: none;
    margin: 0;
    padding: 0;
}


/* AJUSTE GLOBAL MODAIS 95 CENTRALIZADAS */
body.app-dialog-open{
    overflow: hidden;
}


/* =========================================================
   MindZ — loading global padronizado com o SVG da tela Início
   ========================================================= */
.mindz-loading-state,
.ph-home-loading{
    width: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 32px 20px;
    color: var(--text-muted);
    text-align: center;
}

.mindz-loading-svg,
.ph-home-loading__spinner{
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: var(--primary);
}

.mindz-loading-svg svg,
.ph-home-loading__spinner svg{
    width: 42px;
    height: 42px;
    display: block;
}

.mindz-loading-state strong,
.ph-home-loading strong{
    color: var(--title-color);
    font-size: 15px;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.mindz-loading-state span:not(.mindz-loading-svg):not(.ph-home-loading__spinner),
.ph-home-loading span:not(.mindz-loading-svg):not(.ph-home-loading__spinner){
    max-width: 420px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   Ajuste v515 - Sidebar clean: ícones sem cápsula/borda
   ========================================================= */


/* =========================================================
   Ajuste MindZ - Ícones do menu com suporte a SVG fill e stroke
   ========================================================= */


/* =========================================================
   Ajuste final - Menu lateral com ícones finos
   ========================================================= */


/* =========================================================
   Ajuste global - Ícones light do sistema
   ========================================================= */
:root{
    --mindz-icon-stroke-light: 1.35;
}


/* =========================================================
   Ajuste MindZ v516 - Shell com ícones e letras light
   ========================================================= */
:root{
    --mindz-shell-icon-stroke-light: 1.35;
    --mindz-shell-font-light: 420;
    --mindz-shell-font-medium-light: 520;
    --mindz-shell-font-title-light: 610;
}


/* =========================================================
   MindZ — Botão e modal de personalização visual
   ========================================================= */
.topbar-theme-toggle.topbar-theme-customizer{
    width: auto;
    min-width: 88px;
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--title-color);
    border-color: var(--border);
}


.topbar-theme-button-label{
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: currentColor;
}

.topbar-theme-toggle__track{
    display: none;
}

.mindz-theme-modal-backdrop{
    position: fixed;
    inset: 0;
    z-index: var(--z-dropdown);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--modal-backdrop);
    backdrop-filter: blur(10px);
}

.mindz-theme-modal-backdrop.hidden{
    display: none;
}

body.mindz-theme-modal-open{
    overflow: hidden;
}

.mindz-theme-modal{
    width: min(780px, calc(100vw - 40px));
    max-height: min(720px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 28px 80px color-mix(in srgb, var(--shadow-color) 22%, transparent);
}

.mindz-theme-modal__header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 12%, transparent), transparent 38%),
        var(--surface);
}

.mindz-theme-modal__eyebrow{
    display: inline-flex;
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mindz-theme-modal__header h2{
    margin: 0;
    color: var(--title-color);
    font-size: 22px;
    font-weight: 760;
    line-height: 1.16;
}

.mindz-theme-modal__header p{
    margin: 6px 0 0;
    max-width: 560px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.mindz-theme-modal__close{
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--title-color);
}

.mindz-theme-modal__body{
    padding: 18px 20px 8px;
    overflow: auto;
}

.mindz-theme-profile-grid{
    display: grid;
    
    
}

.mindz-theme-profile-card{
    position: relative;
    display: grid;
    
    
    gap: 12px;
    
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mindz-theme-profile-card:hover,
.mindz-theme-profile-card:focus-visible{
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 16px 38px color-mix(in srgb, var(--primary) 14%, transparent);
    outline: none;
    transform: translateY(-1px);
}

.mindz-theme-profile-card.is-active{
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 68%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}

.mindz-theme-profile-card__preview{
    position: relative;
    
    
    
    
    
    
    
    
    overflow: hidden;
}

.mindz-theme-profile-card__preview span{
    
    
    margin-left: -6px;
    border-radius: 999px;
    background: var(--theme-swatch);
    
    
}

.mindz-theme-profile-card__preview span:first-child{
    margin-left: 0;
}

.mindz-theme-profile-card__content{
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mindz-theme-profile-card__content strong{
    color: var(--title-color);
    font-size: 14px;
    font-weight: 760;
    line-height: 1.2;
}

.mindz-theme-profile-card__content small{
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.mindz-theme-profile-card__content em{
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1px solid var(--badge-border);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.mindz-theme-profile-card__check{
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: transparent;
    background: var(--surface);
}

.mindz-theme-profile-card__check svg{
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mindz-theme-profile-card.is-active .mindz-theme-profile-card__check{
    background: var(--primary);
    color: var(--primary-contrast);
    border-color: var(--primary);
}

.mindz-theme-modal__footer{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border-soft);
    background: var(--surface);
}

:root[data-theme="verde"] .topbar-theme-toggle.topbar-theme-customizer,
:root[data-theme="violet"] .topbar-theme-toggle.topbar-theme-customizer,
:root[data-theme="ocean"] .topbar-theme-toggle.topbar-theme-customizer,
:root[data-theme="graphite"] .topbar-theme-toggle.topbar-theme-customizer,
:root[data-theme="nossoporto"] .topbar-theme-toggle.topbar-theme-customizer{
    background: var(--surface);
    color: var(--title-color);
    border-color: var(--border);
}

@media (max-width: 768px){

    .mindz-theme-profile-grid{
        grid-template-columns: 1fr;
    }

    .topbar-theme-button-label{
        display: none;
    }

    .topbar-theme-toggle.topbar-theme-customizer{
        min-width: 48px;
        width: 48px;
        padding: 0;
    }

}


.mindz-theme-profile-card[data-theme-profile="light"] .mindz-theme-swatch--1{ background: #f6f7fc; }
.mindz-theme-profile-card[data-theme-profile="light"] .mindz-theme-swatch--2{ background: var(--primary); }
.mindz-theme-profile-card[data-theme-profile="light"] .mindz-theme-swatch--3{ background: var(--surface); }
.mindz-theme-profile-card[data-theme-profile="ocean"] .mindz-theme-swatch--1{ background: #f4f8ff; }
.mindz-theme-profile-card[data-theme-profile="ocean"] .mindz-theme-swatch--2{ background: #155bc2; }
.mindz-theme-profile-card[data-theme-profile="ocean"] .mindz-theme-swatch--3{ background: #eaf2ff; }
.mindz-theme-profile-card[data-theme-profile="verde"] .mindz-theme-swatch--1{ background: #f6fbf8; }
.mindz-theme-profile-card[data-theme-profile="verde"] .mindz-theme-swatch--2{ background: #2f6f55; }
.mindz-theme-profile-card[data-theme-profile="verde"] .mindz-theme-swatch--3{ background: #e8f4ee; }
.mindz-theme-profile-card[data-theme-profile="violet"] .mindz-theme-swatch--1{ background: #fbf8ff; }
.mindz-theme-profile-card[data-theme-profile="violet"] .mindz-theme-swatch--2{ background: #8d4f9f; }
.mindz-theme-profile-card[data-theme-profile="violet"] .mindz-theme-swatch--3{ background: #f4e9f8; }
.mindz-theme-profile-card[data-theme-profile="graphite"] .mindz-theme-swatch--1{ background: #f5f6f8; }
.mindz-theme-profile-card[data-theme-profile="graphite"] .mindz-theme-swatch--2{ background: #344054; }
.mindz-theme-profile-card[data-theme-profile="graphite"] .mindz-theme-swatch--3{ background: #eef2f6; }
.mindz-theme-profile-card[data-theme-profile="nossoporto"] .mindz-theme-swatch--1{ background: #4bb9bc; }
.mindz-theme-profile-card[data-theme-profile="nossoporto"] .mindz-theme-swatch--2{ background: #004e99; }
.mindz-theme-profile-card[data-theme-profile="nossoporto"] .mindz-theme-swatch--3{ background: #98be3f; }
.mindz-theme-profile-card[data-theme-profile="dark"] .mindz-theme-swatch--1{ background: #111827; }
.mindz-theme-profile-card[data-theme-profile="dark"] .mindz-theme-swatch--2{ background: #60a5fa; }
.mindz-theme-profile-card[data-theme-profile="dark"] .mindz-theme-swatch--3{ background: #1f2937; }


/* =========================================================
   MindZ FIX v620 — botão de personalização e consistência visual
   ========================================================= */


.topbar-theme-toggle.topbar-theme-customizer:hover,
.topbar-theme-toggle.topbar-theme-customizer:focus-visible{
    background: var(--shell-surface);
    border-color: var(--shell-primary);
    color: var(--shell-primary);
    transform: translateY(-1px);
    outline: none;
}

.topbar-theme-toggle.topbar-theme-customizer .topbar-theme-icon{
    width: 20px;
    height: 20px;
}

.topbar-theme-toggle.topbar-theme-customizer .topbar-theme-icon svg{
    width: 20px;
    height: 20px;
}

.topbar-theme-toggle.topbar-theme-customizer .topbar-theme-button-label{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* FIX vTema-Modal — botão Tema abre modal sempre e no padrão topbar */
.topbar-theme-toggle.topbar-theme-customizer,
body .topbar-theme-toggle.topbar-theme-customizer{
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.topbar-theme-toggle.topbar-theme-customizer .topbar-theme-button-label,
body .topbar-theme-toggle.topbar-theme-customizer .topbar-theme-button-label{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar-theme-toggle.topbar-theme-customizer .topbar-theme-icon,
body .topbar-theme-toggle.topbar-theme-customizer .topbar-theme-icon{
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-theme-toggle.topbar-theme-customizer .topbar-theme-icon svg,
body .topbar-theme-toggle.topbar-theme-customizer .topbar-theme-icon svg{
    width: 20px;
    height: 20px;
}

.mindz-theme-modal-backdrop.is-open,
body .mindz-theme-modal-backdrop.is-open{
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mindz-theme-modal-backdrop[aria-hidden="false"],
body .mindz-theme-modal-backdrop[aria-hidden="false"]{
    display: flex;
}

/* =========================================================
   MindZ FIX — notificações e perfis visuais premium
   ========================================================= */
.topbar-action-modal:has(.topbar-notification-list--grid){
    width: min(980px, calc(100vw - 32px));
}

.topbar-notification-list--grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.topbar-notification-item--uniform,
.topbar-notification-item--uniform:hover,
.topbar-notification-item--uniform:focus-visible,
.topbar-notification-item--uniform[class*="topbar-notification-item--"]{
    min-height: 76px;
    height: 100%;
    border-color: var(--border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 96%, transparent), color-mix(in srgb, var(--surface) 99%, transparent));
    color: var(--text);
}

.topbar-notification-item--uniform:hover,
.topbar-notification-item--uniform:focus-visible{
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.topbar-notification-item--uniform .topbar-notification-item__icon,
.topbar-notification-item--uniform[class*="topbar-notification-item--"] .topbar-notification-item__icon{
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    color: var(--primary);
}

.topbar-notification-count-badge,
.topbar-notification-item--uniform .topbar-notification-count-badge{
    min-width: 32px;
    height: 28px;
    border-color: color-mix(in srgb, var(--primary) 72%, transparent);
    background: var(--primary);
    color: var(--color-white);
    font-weight: 720;
}

@media (max-width: 768px){

    .topbar-notification-list--grid{
        grid-template-columns: 1fr;
    }

}


.mindz-theme-profile-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mindz-theme-profile-card{
    grid-template-columns: 92px minmax(0, 1fr) 28px;
    min-height: 128px;
    align-items: stretch;
}

.mindz-theme-profile-card__preview{
    --preview-bg: #f6f7fc;
    --preview-surface: #ffffff;
    --preview-soft: #eef2ff;
    --preview-primary: var(--primary);
    --preview-border: rgba(100, 116, 139, .28);
    width: 86px;
    height: 94px;
    display: grid;
    grid-template-columns: 18px 1fr 1fr;
    grid-template-rows: 18px 1fr 1fr;
    gap: 5px;
    padding: 8px;
    align-items: stretch;
    justify-content: stretch;
    border-radius: 18px;
    background: var(--preview-bg);
    border: 1px solid var(--preview-border);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 72%, transparent), 0 14px 30px color-mix(in srgb, var(--shadow-color) 10%, transparent);
}

.mindz-theme-profile-card__preview span{
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    box-shadow: none;
}

.mindz-theme-profile-card__mock-top{
    grid-column: 1 / -1;
    grid-row: 1;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--preview-primary), color-mix(in srgb, var(--preview-primary) 72%, var(--surface)));
}

.mindz-theme-profile-card__mock-side{
    grid-column: 1;
    grid-row: 2 / -1;
    border-radius: 12px;
    background: color-mix(in srgb, var(--preview-primary) 22%, var(--preview-surface));
}

.mindz-theme-profile-card__mock-hero{
    grid-column: 2 / -1;
    grid-row: 2;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--preview-soft), color-mix(in srgb, var(--preview-primary) 16%, var(--preview-surface)));
    border: 1px solid color-mix(in srgb, var(--preview-primary) 18%, transparent);
}

.mindz-theme-profile-card__mock-card{
    grid-row: 3;
    border-radius: 12px;
    background: var(--preview-surface);
    border: 1px solid color-mix(in srgb, var(--preview-primary) 14%, transparent);
}

.mindz-theme-profile-card__mock-card--one{ grid-column: 2; }
.mindz-theme-profile-card__mock-card--two{ grid-column: 3; }

.mindz-theme-profile-card[data-theme-profile="light"] .mindz-theme-profile-card__preview{
    --preview-bg: #f6f7fc;
    --preview-surface: #ffffff;
    --preview-soft: #eef2ff;
    --preview-primary: var(--primary);
}

.mindz-theme-profile-card[data-theme-profile="ocean"] .mindz-theme-profile-card__preview{
    --preview-bg: #f4f8ff;
    --preview-surface: #ffffff;
    --preview-soft: #eaf2ff;
    --preview-primary: #155bc2;
}

.mindz-theme-profile-card[data-theme-profile="verde"] .mindz-theme-profile-card__preview{
    --preview-bg: #f6fbf8;
    --preview-surface: #ffffff;
    --preview-soft: #e8f4ee;
    --preview-primary: #2f6f55;
}

.mindz-theme-profile-card[data-theme-profile="violet"] .mindz-theme-profile-card__preview{
    --preview-bg: #fbf8ff;
    --preview-surface: #ffffff;
    --preview-soft: #f4e9f8;
    --preview-primary: #8d4f9f;
}

.mindz-theme-profile-card[data-theme-profile="graphite"] .mindz-theme-profile-card__preview{
    --preview-bg: #f5f6f8;
    --preview-surface: #ffffff;
    --preview-soft: #eef2f6;
    --preview-primary: #344054;
}

.mindz-theme-profile-card[data-theme-profile="nossoporto"] .mindz-theme-profile-card__preview{
    --preview-bg: #e8f6f6;
    --preview-surface: #ffffff;
    --preview-soft: #eef6da;
    --preview-primary: #004e99;
}

.mindz-theme-profile-card[data-theme-profile="dark"] .mindz-theme-profile-card__preview{
    --preview-bg: #111827;
    --preview-surface: #1f2937;
    --preview-soft: #243244;
    --preview-primary: var(--chart-blue);
    --preview-border: rgba(148, 163, 184, .32);
}

.mindz-theme-profile-card__usage{
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 620;
    line-height: 1;
}

@media (max-width: 768px){

    

    .mindz-theme-profile-card{
        grid-template-columns: 82px minmax(0, 1fr) 28px;
    }

    .mindz-theme-profile-card__preview{
        width: 76px;
    }

}


/* Badge de notificação sobre o ícone no menu recolhido */


/* Ajustes finais — menu lateral com peso uniforme */


.topbar-mindz-context-wrapper,
#topbarMindzContextWrapper,
#btnMindzResumoContextual{
    display: none;
}

/* Pop-up de notificações — linhas padronizadas e contadores brancos */
.topbar-notification-item,
.topbar-notification-item--uniform,
.topbar-notification-item--uniform[class*="topbar-notification-item--"]{
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: none;
}

.topbar-notification-item:hover,
.topbar-notification-item:focus-visible,
.topbar-notification-item--uniform:hover,
.topbar-notification-item--uniform:focus-visible{
    border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
    background: color-mix(in srgb, var(--primary) 5%, var(--surface));
}

.topbar-notification-item strong,
.topbar-notification-item small{
    color: var(--text);
    font-weight: 430;
}

.topbar-notification-item strong{
    color: var(--title-color);
    font-size: 14px;
    font-weight: 540;
}


/* =========================================================
   Menu lateral escalável: navegação por níveis no flyout
   ========================================================= */


/* =========================================================
   MindZ | menu escalável em cascata lateral
   ========================================================= */


/* =========================================================
   MindZ | menu em cascata — colunas uniformes e abertura por hover
   ========================================================= */


/* =========================================================
   MindZ | menu em cascata — navegação confortável e fundo desfocado
   ========================================================= */


/* =========================================================
   MindZ | menu reduzido fecha flyouts e itens sem negrito
   ========================================================= */


/* =========================================================
   MindZ | flyout comunicação/alinhamento e bordas visíveis
   ========================================================= */


/* =========================================================
   MindZ v66 - Menu lateral: ícone ativo premium
   ========================================================= */


/* =========================================================
   MindZ v67 - Menu lateral selecionado mais limpo
   ========================================================= */


/* =========================================================
   MindZ v68 — Shell executivo premium
   ========================================================= */


/* =========================================================
   MindZ v69 — Correção premium do shell lateral
   Objetivo: grid rigoroso, estado ativo único e flyout alinhado.
   Mantém lógica, rotas, permissões e comportamento do shell.js.
   ========================================================= */
:root{
    --mindz-nav-item-h: 46px;
    --mindz-nav-icon: 22px;
    --mindz-nav-radius: 14px;
    --mindz-nav-x: 12px;
    --mindz-nav-gap: 12px;
    --mindz-nav-active-bg: color-mix(in srgb, var(--shell-primary) 8%, transparent);
    --mindz-nav-hover-bg: color-mix(in srgb, var(--shell-primary) 6%, transparent);
    --mindz-nav-active-border: color-mix(in srgb, var(--shell-primary) 84%, transparent);
    
}


/* Flyout v69: alinhado ao item pai, sem borrar o conteúdo da tela */


/* Estado recolhido: centralizado e sem cápsulas deformadas */


/* =========================================================
   V70 - MENU LATERAL RECOLHIDO: ÍCONES LIMPOS E ALINHADOS
   - Quando o menu está recolhido, todos os itens viram apenas ícone.
   - Submenus não exibem chevron/seta no modo reduzido.
   - O item ativo usa o mesmo padrão visual do ícone de Início.
   - Sem CSS inline: todo comportamento visual fica centralizado aqui.
   ========================================================= */
:root{
    --shell-collapsed-item-size: 50px;
    --shell-collapsed-icon-size: 20px;
    --shell-collapsed-active-radius: 16px;
    --shell-collapsed-active-bg: color-mix(in srgb, var(--primary) 10%, var(--surface) 90%);
    --shell-collapsed-active-border: color-mix(in srgb, var(--primary) 22%, var(--border) 78%);
    --shell-collapsed-active-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 12%, transparent);
}


/* =========================================================
   V71 - Shell: flyouts cascata com o mesmo desenho da flyout principal
   ========================================================= */


/* =========================================================
   V72 - Shell: flyouts unificadas e mais performáticas
   ========================================================= */


/* =========================================================
   MindZ v73 — Menu lateral leve, flyouts iguais e ativo sem círculo
   - Remove camadas pesadas/backdrop visual.
   - Unifica 1ª, 2ª e 3ª flyout com o mesmo radius/layout.
   - Mantém lógica de navegação e submenus do shell.js.
   ========================================================= */
:root{
    --mindz-nav-flyout-w: 292px;
    --mindz-nav-flyout-radius: 18px;
    --mindz-nav-flyout-item-h: 42px;
    --mindz-nav-flyout-gap: 6px;
    --mindz-nav-flyout-shadow: 0 18px 44px color-mix(in srgb, var(--shadow-color) 12%, transparent);
    --mindz-nav-selected-bg: color-mix(in srgb, var(--shell-primary) 9%, var(--shell-surface));
    --mindz-nav-selected-border: color-mix(in srgb, var(--shell-primary) 84%, transparent);
}


/* =========================================================
   MindZ v74 — Shell lateral mais leve e flyouts 100% uniformes
   - Corrige o primeiro flyout sem radius visual.
   - Remove círculo/bolha do item selecionado.
   - Reduz custo de pintura: sem blur/backdrop, sem scale, sombra mais leve.
   ========================================================= */
:root{
    --mindz-v74-flyout-width: 292px;
    --mindz-v74-flyout-radius: 18px;
    --mindz-v74-flyout-shadow: 0 16px 38px color-mix(in srgb, var(--shadow-color) 12%, transparent);
    --mindz-v74-item-radius: 13px;
    --mindz-v74-active-bg: color-mix(in srgb, var(--shell-primary) 8%, var(--shell-surface));
    --mindz-v74-active-line: color-mix(in srgb, var(--shell-primary) 76%, transparent);
}


/* MINDZ_SHELL_NOTIFICACOES_UNIFORMES_V93 */
.topbar-notification-list--grid .topbar-notification-item,
.topbar-notification-item--uniform,
.topbar-notification-item--uniform[class*="topbar-notification-item--"]{
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, var(--primary) 6%);
    color: var(--text);
    box-shadow: none;
}

.topbar-notification-list--grid .topbar-notification-item:hover,
.topbar-notification-item--uniform:hover,
.topbar-notification-item--uniform:focus-visible{
    background: color-mix(in srgb, var(--surface) 90%, var(--primary) 10%);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
}

.topbar-notification-item--uniform .topbar-notification-item__icon,
.topbar-notification-list--grid .topbar-notification-item .topbar-notification-item__icon{
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
}

.topbar-notification-item--uniform:hover .topbar-notification-item__icon,
.topbar-notification-list--grid .topbar-notification-item:hover .topbar-notification-item__icon,
.topbar-notification-item--uniform:focus-visible .topbar-notification-item__icon{
    background: color-mix(in srgb, var(--primary) 22%, transparent);
    color: var(--primary);
}

.topbar-notification-item--uniform .topbar-notification-item__icon svg,
.topbar-notification-item--uniform .topbar-notification-item__icon svg *,
.topbar-notification-list--grid .topbar-notification-item .topbar-notification-item__icon svg,
.topbar-notification-list--grid .topbar-notification-item .topbar-notification-item__icon svg *{
    color: currentColor;
    stroke: currentColor;
    fill: none;
}
}


/* =========================================================
   MindZ 26690 — Topbar limpa na Home e Visual no menu lateral
   ========================================================= */
body.inicio-shell-clean-topbar .app-topbar {
    display: none !important;
}

body.inicio-shell-clean-topbar #appArea,
body.inicio-shell-clean-topbar .app-area {
    padding-top: 0 !important;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-theme-button {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(105, 122, 178, .18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(246,248,255,.86));
    color: var(--sidebar-text, #56627c);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sidebar-theme-button:hover {
    transform: translateY(-1px);
    border-color: rgba(93,108,185,.36);
    box-shadow: 0 12px 24px rgba(31,42,68,.08);
    color: var(--primary, #5d6cb9);
}

.sidebar-theme-button__icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-theme-button__icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-theme-button__label {
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.sidebar-collapsed .sidebar-theme-button {
    justify-content: center;
    padding: 10px;
}

.sidebar-collapsed .sidebar-theme-button__label {
    display: none;
}

/* O botão de personalização visual não deve aparecer na topbar de nenhuma tela. */
.app-topbar .topbar-theme-toggle,
.app-topbar #btnAlternarTema,
.app-topbar .ph-home-theme-toggle {
    display: none !important;
}


/* Build 26692: Home sem objetos no topo direito e visual apenas no menu lateral. */
body.inicio-shell-clean-topbar #topbarActions,
body.inicio-premium-v2 #topbarActions,
body.inicio-dashboard-v3 #topbarActions {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.app-topbar [data-theme-customizer-open="true"],
.app-topbar .topbar-theme-customizer,
.app-topbar .topbar-theme-toggle,
.app-topbar #btnAlternarTema,
.app-topbar .ph-home-theme-toggle,
#topbarActions [data-theme-customizer-open="true"],
#topbarActions .topbar-theme-customizer,
#topbarActions .topbar-theme-toggle,
#topbarActions #btnAlternarTema,
#topbarActions .ph-home-theme-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* =========================================================
   MindZ Shell 26693 — Perfil no menu lateral
   ========================================================= */
.sidebar-user-profile-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 8px;
}

.sidebar-user-profile-button {
    width: 100%;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid rgba(219, 227, 243, .95);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,249,255,.94));
    color: var(--text-primary, #25314a);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(31, 42, 68, .045);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.sidebar-user-profile-button:hover,
.sidebar-user-profile-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(93, 108, 185, .34);
    box-shadow: 0 14px 30px rgba(31, 42, 68, .08);
    outline: none;
}

.sidebar-user-profile-button__avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(93,108,185,.14), rgba(93,108,185,.06));
    color: var(--primary, #5d6cb9);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(93,108,185,.18);
}

.sidebar-user-profile-button__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-user-profile-button__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.sidebar-user-profile-button__text strong {
    display: block;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #25314a);
}

.sidebar-user-profile-button__text small {
    display: block;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--text-muted, #6b7894);
}

.app-shell.sidebar-collapsed .sidebar-user-profile-button {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 6px;
    border-radius: 16px;
    justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-user-profile-button__text {
    display: none;
}

.app-shell.sidebar-collapsed .sidebar-user-profile-button__avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

/* O card de usuário não deve mais existir na topbar; fica no rodapé do menu lateral. */
#topbarUsuarioCompacto,
.topbar-user-compact.ph-home-profile-pill {
    display: none !important;
}


/* Build 26694 - Home sem objetos superiores e perfil somente no menu lateral */
body.inicio-premium-v2 #topbarActions,
body.inicio-shell-clean-topbar #topbarActions,
body[data-page="inicio"] #topbarActions,
body.page-inicio #topbarActions,
#topbarActions.topbar-actions--inicio-clean {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#topbarUsuarioCompacto,
.topbar-user-compact,
.ph-home-profile-pill,
.topbar-actions [data-theme-customizer-open="true"],
#topbarActions [data-theme-customizer-open="true"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sidebar-user-profile-button {
    margin-bottom: 10px;
}

.sidebar-footer .sidebar-user-profile-button + .sidebar-theme-button,
.shell-sidebar-footer .sidebar-user-profile-button + .sidebar-theme-button {
    margin-top: 8px;
}

/* =========================================================
   MindZ Shell 26695 — Avatar redondo no rodapé do menu lateral
   ========================================================= */
.sidebar-footer {
    align-items: center;
    gap: 9px;
}

.sidebar-user-profile-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 2px;
}

.sidebar-user-profile-button {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 3px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border: 1px solid rgba(93, 108, 185, .24) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,247,255,.94)) !important;
    box-shadow: 0 10px 24px rgba(31, 42, 68, .075) !important;
    overflow: visible !important;
}

.sidebar-user-profile-button:hover,
.sidebar-user-profile-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(93, 108, 185, .42) !important;
    box-shadow: 0 14px 28px rgba(31, 42, 68, .11) !important;
    outline: none;
}

.sidebar-user-profile-button__avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255,255,255,.96) !important;
    outline: 1px solid rgba(93,108,185,.18) !important;
    background: linear-gradient(135deg, rgba(93,108,185,.14), rgba(93,108,185,.05)) !important;
    color: var(--primary, #5d6cb9) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.sidebar-user-profile-button__avatar img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 999px !important;
}

.sidebar-user-profile-button__text {
    display: none !important;
}

.sidebar-theme-button {
    order: 2;
    margin-top: 0 !important;
}

.sidebar-user-profile-slot {
    order: 1;
}

.app-shell.sidebar-collapsed .sidebar-user-profile-button,
.app-shell.sidebar-collapsed .sidebar-user-profile-button__avatar {
    border-radius: 999px !important;
}

.app-shell.sidebar-collapsed .sidebar-user-profile-button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 3px !important;
}

.app-shell.sidebar-collapsed .sidebar-user-profile-button__avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
}

/* =========================================================
   MindZ Shell 26696 — Visual garantido no menu lateral + sair seguro
   ========================================================= */
#appSidebar .sidebar-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 9px !important;
}

#appSidebar #sidebarUserProfileSlot {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

#appSidebar #btnAlternarTemaSidebar,
#appSidebar .sidebar-footer .sidebar-theme-button[data-theme-customizer-open="true"] {
    order: 2 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    border: 1px solid rgba(93, 108, 185, .22) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,248,255,.94)) !important;
    color: var(--primary, #5d6cb9) !important;
    box-shadow: 0 10px 24px rgba(31, 42, 68, .055) !important;
}

#appSidebar #btnAlternarTemaSidebar:hover,
#appSidebar .sidebar-footer .sidebar-theme-button[data-theme-customizer-open="true"]:hover {
    transform: translateY(-1px);
    border-color: rgba(93, 108, 185, .40) !important;
    box-shadow: 0 14px 28px rgba(31, 42, 68, .095) !important;
}

#appSidebar #btnAlternarTemaSidebar .sidebar-theme-button__icon,
#appSidebar .sidebar-footer .sidebar-theme-button[data-theme-customizer-open="true"] .sidebar-theme-button__icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#appSidebar #btnAlternarTemaSidebar .sidebar-theme-button__icon svg,
#appSidebar .sidebar-footer .sidebar-theme-button[data-theme-customizer-open="true"] .sidebar-theme-button__icon svg {
    width: 20px !important;
    height: 20px !important;
}

#appSidebar #btnAlternarTemaSidebar .sidebar-theme-button__label,
#appSidebar .sidebar-footer .sidebar-theme-button[data-theme-customizer-open="true"] .sidebar-theme-button__label {
    display: none !important;
}

#appSidebar #btnToggleSidebar {
    order: 3 !important;
}

#appSidebar .sidebar-user-profile-button,
#appSidebar .sidebar-user-profile-button__avatar,
#appSidebar .sidebar-user-profile-button__avatar img {
    border-radius: 999px !important;
    aspect-ratio: 1 / 1 !important;
}

/* O visual pode existir no menu lateral, mas nunca na topbar. */
.app-topbar #btnAlternarTemaSidebar,
#topbarActions #btnAlternarTemaSidebar,
.app-topbar [data-theme-customizer-open="true"],
#topbarActions [data-theme-customizer-open="true"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* =========================================================
   MindZ Shell 26697 — Perfil visual abre no menu lateral e cards com prévia real
   ========================================================= */
#appSidebar #btnAlternarTemaSidebar,
#appSidebar .sidebar-footer .sidebar-theme-button[data-theme-customizer-open="true"]{
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#appSidebar #btnAlternarTemaSidebar:focus-visible{
    outline: 3px solid color-mix(in srgb, var(--primary) 34%, transparent) !important;
    outline-offset: 3px;
}

.mindz-theme-modal{
    width: min(1060px, calc(100vw - 40px));
}

.mindz-theme-modal__body{
    padding-top: 18px;
}

.mindz-theme-profile-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mindz-theme-profile-card{
    grid-template-columns: 148px minmax(0, 1fr) 32px !important;
    min-height: 156px !important;
    padding: 16px !important;
    align-items: stretch !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--preview-primary, var(--primary)) 10%, transparent), transparent 38%),
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface-alt) 96%, transparent)) !important;
}

.mindz-theme-profile-card__preview{
    width: 136px !important;
    height: 118px !important;
    grid-template-columns: 22px 1fr 1fr !important;
    grid-template-rows: 22px 1fr 1fr !important;
    gap: 7px !important;
    padding: 10px !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.62), transparent 42%),
        var(--preview-bg, #f6f7fc) !important;
    border: 1px solid color-mix(in srgb, var(--preview-primary, var(--primary)) 22%, transparent) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.58),
        0 16px 34px rgba(31,42,68,.10) !important;
}

.mindz-theme-profile-card__mock-top{
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 7px !important;
    background: linear-gradient(90deg, var(--preview-primary), color-mix(in srgb, var(--preview-primary) 70%, var(--preview-soft))) !important;
}

.mindz-theme-profile-card__mock-top i{
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.76);
}

.mindz-theme-profile-card__mock-side{
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 7px 5px !important;
    background: color-mix(in srgb, var(--preview-primary) 18%, var(--preview-surface)) !important;
}

.mindz-theme-profile-card__mock-side i{
    width: 10px;
    height: 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--preview-primary) 62%, var(--preview-surface));
}

.mindz-theme-profile-card__mock-hero{
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px !important;
    background: linear-gradient(135deg, var(--preview-soft), color-mix(in srgb, var(--preview-primary) 14%, var(--preview-surface))) !important;
    border: 1px solid color-mix(in srgb, var(--preview-primary) 22%, transparent) !important;
}

.mindz-theme-profile-card__mock-hero i:first-child{
    width: 54%;
    height: 8px;
    border-radius: 999px;
    background: var(--preview-primary);
}

.mindz-theme-profile-card__mock-hero i:last-child{
    width: 78%;
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--preview-text) 26%, transparent);
}

.mindz-theme-profile-card__mock-card{
    background: var(--preview-surface) !important;
    border-color: color-mix(in srgb, var(--preview-primary) 18%, transparent) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.20) !important;
}

.mindz-theme-profile-card__content{
    gap: 9px !important;
    justify-content: center;
}

.mindz-theme-profile-card__title-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mindz-theme-profile-card__title-row strong{
    min-width: 0;
    color: var(--title-color);
    font-size: 15px;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.mindz-theme-profile-card__mode{
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--preview-primary, var(--primary)) 10%, var(--surface));
    color: color-mix(in srgb, var(--preview-primary, var(--primary)) 84%, var(--title-color));
    font-size: 11px;
    font-weight: 760;
}

.mindz-theme-profile-card__swatches{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mindz-theme-profile-card__swatches i{
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(100,116,139,.22);
    box-shadow: 0 4px 10px rgba(31,42,68,.08);
}

.mindz-theme-profile-card__meta{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mindz-theme-profile-card__meta em{
    width: auto !important;
    max-width: 100%;
}

.mindz-theme-profile-card.is-active{
    border-color: color-mix(in srgb, var(--preview-primary, var(--primary)) 54%, var(--border)) !important;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--preview-primary, var(--primary)) 14%, transparent) !important;
}

.mindz-theme-profile-card.is-active::after{
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--preview-primary, var(--primary)), color-mix(in srgb, var(--preview-primary, var(--primary)) 50%, var(--preview-soft, var(--surface))));
}

@media (max-width: 860px){
    .mindz-theme-profile-grid{
        grid-template-columns: 1fr;
    }

    .mindz-theme-profile-card{
        grid-template-columns: 120px minmax(0, 1fr) 30px !important;
    }

    .mindz-theme-profile-card__preview{
        width: 112px !important;
    }
}

/* =========================================================
   MindZ 27170 — Opções do usuário na topbar + notificações premium
   - remove o perfil do rodapé lateral para economizar altura
   - mantém a mesma central de opções/permissões do shell
   - centraliza a central de notificações em todas as resoluções
   ========================================================= */

/* O acesso às opções do usuário passa a existir somente no cabeçalho fixo. */
#appSidebar .sidebar-user-profile-slot,
#appSidebar #sidebarUserProfileButton {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Reativa o componente de usuário da topbar, anteriormente desabilitado
   por releases antigas. Mantém somente o avatar para economizar espaço. */
#topbarUsuarioCompacto.topbar-user-compact,
.topbar-actions #topbarUsuarioCompacto.topbar-user-compact {
    display: inline-flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 4px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    overflow: visible !important;
}

#topbarUsuarioCompacto .topbar-user-compact-info,
#topbarUsuarioCompacto .topbar-user-compact-chevron {
    display: none !important;
}

#topbarUsuarioCompacto .topbar-user-compact-avatar {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    border-radius: 999px !important;
}

/* Home usa o mesmo conceito em seu cabeçalho especializado. */
#phHomeUserOptionsBtn.ph-home-user-options-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
}

#phHomeUserOptionsBtn.ph-home-user-options-button svg {
    width: 20px !important;
    height: 20px !important;
}

/* Centralização real do popup na viewport, sem depender do fluxo da página. */
#topbarActionModalBackdrop.topbar-action-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(14px, 2.2vw, 28px) !important;
    overflow: auto !important;
    box-sizing: border-box !important;
}

#topbarActionModalBackdrop .topbar-action-modal {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: auto !important;
    width: min(760px, calc(100vw - 32px)) !important;
    max-width: 760px !important;
    max-height: min(82vh, calc(100vh - 32px)) !important;
}

/* Notificações: lista vertical, leitura esquerda→direita e superfície premium. */
#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-action-modal {
    width: min(720px, calc(100vw - 32px)) !important;
}

#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-list--grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
}

#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item,
#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item--uniform {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 66px !important;
    height: auto !important;
    padding: 10px 12px !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 11px !important;
    border-radius: 15px !important;
    text-align: left !important;
    box-shadow: 0 5px 16px color-mix(in srgb, var(--shadow-color) 5%, transparent) !important;
}

#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item > span:nth-child(2) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    text-align: left !important;
}

#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item strong,
#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item small {
    width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item strong {
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item small {
    margin-top: 3px !important;
    line-height: 1.35 !important;
}

#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-count-badge {
    justify-self: end !important;
    min-width: 28px !important;
    height: 26px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
}

@media (max-width: 760px) {
    #topbarActionModalBackdrop.topbar-action-modal-backdrop {
        padding: 12px !important;
    }

    #topbarActionModalBackdrop .topbar-action-modal,
    #topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-action-modal {
        width: min(100%, 560px) !important;
        max-height: calc(100dvh - 24px) !important;
    }

    #topbarUsuarioCompacto.topbar-user-compact {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
    }

    #topbarUsuarioCompacto .topbar-user-compact-avatar {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
    }
}


/* =========================================================
   MindZ 27171 — Notificações: vermelho + acabamento premium
   ========================================================= */
.topbar-notification-badge,
.ph-home-notification-badge,
[data-mindz-notification-badge="true"] {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: color-mix(in srgb, var(--shell-bg, #1f2a44) 72%, #fff 28%) !important;
    box-shadow: 0 5px 14px rgba(220, 38, 38, .28) !important;
}
#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item {
    border: 1px solid color-mix(in srgb, var(--primary, #5d6cb9) 14%, var(--border, #dbe3f3)) !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface, #fff) 99%, white), color-mix(in srgb, var(--surface, #fff) 96%, var(--primary, #5d6cb9) 4%)) !important;
    box-shadow: 0 8px 24px rgba(31, 42, 68, .055) !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}
#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item:hover,
#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item:focus-visible {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--primary, #5d6cb9) 30%, var(--border, #dbe3f3)) !important;
    box-shadow: 0 12px 30px rgba(31, 42, 68, .085) !important;
}
#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-item__icon {
    justify-self: start !important;
}
#topbarActionModalBackdrop[data-topbar-action-type="notificacoes"] .topbar-notification-count-badge {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(220, 38, 38, .18) !important;
}
